NetBSD/crypto/dist/heimdal/configure
2000-08-02 19:57:59 +00:00

18977 lines
469 KiB
Bash
Executable File

#! /bin/sh
# From configure.in Revision: 1.246
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.14a.
#
# Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
#
# Initializations.
#
ac_default_prefix=/usr/local
cross_compiling=no
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh='sed y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
ac_tr_cpp='sed y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
# By default always use an empty string as the executable extension.
# Only change it if the script calls AC_EXEEXT.
ac_exeext=
# By default assume that objects files use an extension of .o. Only
# change it if the script calls AC_OBJEXT.
ac_objext=o
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#include <sys/types.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#else
# if HAVE_STRINGS_H
# include <strings.h>
# endif
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
ac_default_prefix=/usr/heimdal
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
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'
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
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
# 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_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build_alias=$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 ;;
--config-cache | -C)
cache_file=config.cache ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir=$ac_optarg ;;
-disable-* | --disable-*)
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
{ echo "configure: error: invalid feature name: $ac_feature" >&2; exit 1; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
eval "enable_$ac_feature=no" ;;
-enable-* | --enable-*)
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
{ echo "configure: error: invalid feature name: $ac_feature" >&2; exit 1; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) 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 | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
-host | --host | --hos | --ho)
ac_prev=host_alias ;;
-host=* | --host=* | --hos=* | --ho=*)
host_alias=$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_alias ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target_alias=$ac_optarg ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
-with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
{ echo "configure: error: invalid package name: $ac_package" >&2; exit 1; }
ac_package=`echo $ac_package| sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) ac_optarg=yes ;;
esac
eval "with_$ac_package='$ac_optarg'" ;;
-without-* | --without-*)
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-a-zA-Z0-9_]" >/dev/null &&
{ echo "configure: error: invalid package name: $ac_package" >&2; exit 1; }
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: unrecognized option: $ac_option
Try \`configure --help' for more information." >&2; exit 1; }
;;
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^a-zA-Z0-9_]" >/dev/null &&
{ echo "configure: error: invalid variable name: $ac_envvar" >&2; exit 1; }
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
echo "configure: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^a-zA-Z0-9.]" >/dev/null &&
echo "configure: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
;;
esac
done
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "configure: error: missing argument to $ac_option" >&2; exit 1; }
fi
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
localstatedir libdir includedir oldincludedir infodir mandir \
exec_prefix prefix
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
NONE ) ;;
*) { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" >&2; exit 1; };;
esac
done
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
build=$build_alias
host=$host_alias
target=$target_alias
# FIXME: should be removed in autoconf 3.0.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
echo "configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
# 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: cannot find sources in $ac_confdir or .." >&2; exit 1; }
else
{ echo "configure: error: cannot find sources in $srcdir" >&2; exit 1; }
fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# 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
\`configure' configures heimdal 0.3a to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
EOF
cat <<EOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
EOF
cat <<\EOF
Program names:
--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
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST build programs to run on HOST [BUILD]
EOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of heimdal 0.3a:";;
esac
cat <<\EOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-dependency-tracking Speeds up one-time builds
--enable-dependency-tracking Do not reject slow dependency extractors
--enable-shared=PKGS build shared libraries default=no
--enable-static=PKGS build static libraries default=yes
--enable-fast-install=PKGS optimize for fast installation default=yes
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-dce if you want support for DCE/DFS PAG's.
--enable-kaserver if you want the KDC to try to emulate a kaserver
--enable-kaserver-db if you want support for reading kaserver databases in hprop
--disable-otp if you don't want OTP support
--enable-osfc2 enable some OSF C2 support
--enable-bigendian the target is big endian
--enable-littleendian the target is little endian
--enable-netinfo enable netinfo for configuration lookup
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-pic try to use only PIC/non-PIC objects default=use both
--without-berkeley-db if you don't want berkeley db
--without-ipv6 do not enable IPv6 support
--with-openldap=dir use openldap in dir
--with-openldap-lib=dir use openldap libraries in dir
--with-openldap-include=dir use openldap headers in dir
--with-krb4=dir use krb4 in dir
--with-krb4-lib=dir use krb4 libraries in dir
--with-krb4-include=dir use krb4 headers in dir
--with-readline=dir use readline in dir
--with-readline-lib=dir use readline libraries in dir
--with-readline-include=dir use readline headers in dir
--with-hesiod=dir use hesiod in dir
--with-hesiod-lib=dir use hesiod libraries in dir
--with-hesiod-include=dir use hesiod headers in dir
--with-x use the X Window System
--without-ipv6 do not enable IPv6 support
Some relevant environment variables, which you can use to override the
choices made by the configure script or to help it to find libraries and
programs with nonstandard names/locations:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
EOF
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
cd $ac_subdir
# A "../" for each directory in /$ac_subdir.
ac_dots=`echo $ac_subdir |
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_subdir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
esac
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_sub_srcdir/configure; then
echo
$SHELL $ac_sub_srcdir/configure --help=recursive
elif test -f $ac_sub_srcdir/configure.in; then
echo
$ac_configure --help
else
echo "configure: WARNING: no configuration information is in $ac_subdir" >&2
fi
cd $ac_popdir
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\EOF
configure (heimdal 0.3a) 2.14a
Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
EOF
exit 0
fi
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
# Support unset when possible.
if (unset FOO) >/dev/null 2>&1; then
ac_unset=unset
else
ac_unset=false
fi
# NLS nuisances.
$ac_unset LANG || test "${LANG+set}" != set || LANG=C && export LANG
$ac_unset LC_ALL || test "${LC_ALL+set}" != set || LC_ALL=C && export LC_ALL
$ac_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || LC_CTYPE=C && export LC_CTYPE
$ac_unset LANGUAGE || test "${LANGUAGE+set}" != set || LANGUAGE=C && export LANGUAGE
$ac_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || LC_MESSAGES=C && export LC_MESSAGES
# IFS
# We need space, tab and new line, in precisely that order.
ac_nl='
'
IFS=" $ac_nl"
# CDPATH.
$ac_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
ac_configure_args=
ac_sep=
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_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
ac_sep=" " ;;
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
ac_sep=" " ;;
esac
# Get rid of the leading space.
done
# 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.
It was created by configure (heimdal 0.3a) 2.14a, executed with
> $0 $ac_configure_args
" >&5
# 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
# 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
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
echo "loading cache $cache_file"
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
ac_config_headers="$ac_config_headers include/config.h"
ac_config_commands="$ac_config_commands default-1"
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
elif test -f $ac_dir/shtool; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
{ echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2; exit 1; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $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
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# 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 "configure:695: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_save_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.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall 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.
:
elif test $ac_prog = install &&
grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
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 "configure:741: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&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_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo "configure:748: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "$*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "$*" != "X $srcdir/configure conftestfile" \
&& test "$*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&2; exit 1; }
fi
test "$2" = conftestfile
)
then
# Ok.
:
else
{ echo "configure: error: newly created file is older than distributed files!
Check your system clock" >&2; exit 1; }
fi
rm -f conftest*
echo "configure:783: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
program_transform_name=
else
# Double any \ or $. echo might interpret backslashes.
cat <<\EOF >conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF
program_transform_name=`echo $program_transform_name | sed -f conftestsed`
rm -f conftestsed
fi
test "$program_prefix" != NONE &&
program_transform_name="s,^,${program_prefix},;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"
test x"${MISSING+set}" = xset || \
MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
if eval "$MISSING --run :"; then
am_missing_run="$MISSING --run "
else
am_missing_run=
am_backtick='`'
echo "configure: WARNING: ${am_backtick}missing' script is too old or missing" >&2
fi
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "configure:815: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_AWK="$ac_prog"
break
done
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
echo "configure:836: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
echo "configure:839: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$AWK" && break
done
echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&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 "configure:864: result: yes" >&5
echo "${ECHO_T}yes" >&6
SET_MAKE=
else
echo "configure:868: result: no" >&5
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
enableval="$enable_dependency_tracking"
fi
if test "x$enable_dependency_tracking" = xno; then
AMDEP="#"
else
am_depcomp="$ac_aux_dir/depcomp"
if test ! -f "$am_depcomp"; then
AMDEP="#"
else
AMDEP=
fi
fi
if test -z "$AMDEP"; then
AMDEPBACKSLASH='\'
else
AMDEPBACKSLASH=
fi
if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
DEPDIR=.deps
else
DEPDIR=_deps
fi
# test to see if srcdir already configured
if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
{ echo "configure: error: source directory already configured; run \"make distclean\" there first" >&2; exit 1; }
fi
# Define the identity of the package.
PACKAGE=heimdal
VERSION=0.3a
cat >>confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
cat >>confdefs.h <<EOF
#define VERSION "$VERSION"
EOF
# Some tools Automake needs.
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
AMTAR=${AMTAR-"${am_missing_run}tar"}
if test -z "$install_sh"; then
install_sh="$ac_aux_dir/install-sh"
test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
fi
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ echo "configure: error: cannot run $ac_config_sub" >&2; exit 1; }
echo "configure:926: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
{ echo "configure: error: cannot guess build type; you must specify one" >&2; exit 1; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
fi
echo "configure:938: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "configure:944: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || exit 1
fi
echo "configure:954: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
CANONICAL_HOST=$host
sunos=no
case "$host" in
*-*-sunos4*)
sunos=40
;;
*-*-solaris2.7)
sunos=57
;;
*-*-solaris2.8)
sunos=58
;;
*-*-solaris2*)
sunos=50
;;
esac
if test "$sunos" != no; then
cat >>confdefs.h <<EOF
#define SunOS $sunos
EOF
fi
aix=no
case "$host" in
*-*-aix3*)
aix=3
;;
*-*-aix4*)
aix=4
;;
esac
#test -z "$CFLAGS" && CFLAGS="-g"
ac_config_commands="$ac_config_commands default-2"
echo "configure:993: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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.
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
cat >conftest.$ac_ext <<EOF
#line 1011 "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:1017: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
CPP="${CC-cc} -E -traditional-cpp"
cat >conftest.$ac_ext <<EOF
#line 1027 "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:1033: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
CPP="${CC-cc} -nologo -E"
cat >conftest.$ac_ext <<EOF
#line 1043 "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:1049: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
CPP=/lib/cpp
fi
rm -f conftest*
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 "configure:1070: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
case "${CC+set} $ac_configure_args" in
*" CC="* );;
"set "*) ac_configure_args="CC='$CC' $ac_configure_args";;
esac
case "${CFLAGS+set} $ac_configure_args" in
*" CFLAGS="* );;
"set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
esac
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "configure:1088: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc"
break
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "configure:1109: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "configure:1112: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$ac_cv_prog_CC"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "configure:1119: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_ac_ct_CC="gcc"
break
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "configure:1140: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "configure:1143: result: no" >&5
echo "${ECHO_T}no" >&6
fi
CC="$ac_ct_CC"
else
CC=""
fi
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 "configure:1154: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
break
done
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 $# != 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" ${1+"$@"}
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "configure:1194: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "configure:1197: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$CC"; then
for ac_prog in cl
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 "configure:1205: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_CC="$ac_prog"
break
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "configure:1226: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "configure:1229: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$CC" && break
done
fi
fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" >&2; exit 1; }
echo "configure:1237: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
cat >conftest.$ac_ext <<EOF
#line 1240 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:1249: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# FIXME: these cross compiler hacks should be removed for autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./conftest'; { (eval echo configure:1253: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ echo "configure: error: cannot run C compiled programs.
To enable cross compilation, use \`--host'." >&2; exit 1; }
fi
fi
fi
echo "configure:1264: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
echo "configure:1269: result: no" >&5
echo "${ECHO_T}no" >&6
{ echo "configure: error: C compiler cannot create executables" >&2; exit 77; }
fi
rm -f conftest*echo "configure:1273: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "configure:1275: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6
echo "configure:1277: checking whether we are using GNU C" >&5
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
if test "${ac_cv_prog_gcc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# The semicolon is to pacify NeXT's syntax-checking cpp.
cat >conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1288: \"$ac_try\") >&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 "configure:1294: result: $ac_cv_prog_gcc" >&5
echo "${ECHO_T}$ac_cv_prog_gcc" >&6
ac_gnu_compiler=$ac_cv_prog_gcc
if test $ac_gnu_compiler = yes; then
GCC=yes
else
GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS=
echo "configure:1305: checking whether ${CC-cc} accepts -g" >&5
echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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 "configure:1318: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
echo "configure:1335: checking for Cygwin environment" >&5
echo $ECHO_N "checking for Cygwin environment... $ECHO_C" >&6
if test "${ac_cv_cygwin+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 1341 "configure"
#include "confdefs.h"
int
main ()
{
#ifndef __CYGWIN__
# define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
;
return 0;
}
EOF
if { (eval echo configure:1354: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_cygwin=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_cygwin=no
fi
rm -f conftest*
fi
echo "configure:1363: result: $ac_cv_cygwin" >&5
echo "${ECHO_T}$ac_cv_cygwin" >&6
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo "configure:1366: checking for mingw32 environment" >&5
echo $ECHO_N "checking for mingw32 environment... $ECHO_C" >&6
if test "${ac_cv_mingw32+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 1372 "configure"
#include "confdefs.h"
int
main ()
{
return __MINGW32__;
;
return 0;
}
EOF
if { (eval echo configure:1382: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_mingw32=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_mingw32=no
fi
rm -f conftest*
fi
echo "configure:1391: result: $ac_cv_mingw32" >&5
echo "${ECHO_T}$ac_cv_mingw32" >&6
test "$ac_cv_mingw32" = yes && MINGW32=yes
echo "configure:1394: checking for EMX OS/2 environment" >&5
echo $ECHO_N "checking for EMX OS/2 environment... $ECHO_C" >&6
if test "${ac_cv_emxos2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 1400 "configure"
#include "confdefs.h"
int
main ()
{
return __EMX__;
;
return 0;
}
EOF
if { (eval echo configure:1410: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_emxos2=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_emxos2=no
fi
rm -f conftest*
fi
echo "configure:1419: result: $ac_cv_emxos2" >&5
echo "${ECHO_T}$ac_cv_emxos2" >&6
test "$ac_cv_emxos2" = yes && EMXOS2=yes
echo "configure:1422: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if test "${ac_cv_exeext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
ac_cv_exeext=.exe
else
cat >conftest.$ac_ext <<EOF
#line 1431 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:1440: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
for ac_file in conftest.*; do
case $ac_file in
*.$ac_ext | *.o | *.obj | *.xcoff) ;;
*) ac_cv_exeext=`echo $ac_file | sed s/conftest//` ;;
esac
done
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
{ echo "configure: error: cannot compile and link" >&2; exit 1; }
fi
rm -f conftest*
test -n "$ac_cv_exeext" && ac_cv_exeext=no
fi
fi
echo "configure:1456: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
EXEEXT=
test "$ac_cv_exeext" != no && EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "configure:1461: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 1467 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:1476: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
for ac_file in conftest.*; do
case $ac_file in
*.$ac_ext) ;;
*) ac_cv_objext=`echo $ac_file | sed s/conftest.//` ;;
esac
done
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
{ echo "configure: error: cannot compile" >&2; exit 1; }
fi
rm -f conftest*
fi
echo "configure:1490: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$ac_cv_objext
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
depcc="$CC"
depcpp="$CPP"
echo "configure:1502: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -z "$AMDEP"; then
echo '#include "conftest.h"' > conftest.c
echo 'int i;' > conftest.h
am_cv_CC_dependencies_compiler_type=none
for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
case "$depmode" in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then
continue
else
break
fi
;;
none) break ;;
esac
if depmode="$depmode" \
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
$SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
grep conftest.h conftest.Po > /dev/null 2>&1; then
am_cv_CC_dependencies_compiler_type="$depmode"
break
fi
done
rm -f conftest.*
else
am_cv_CC_dependencies_compiler_type=none
fi
fi
echo "configure:1538: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
echo "configure:1541: checking for ${CC-cc} option to accept ANSI C" >&5
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
cat >conftest.$ac_ext <<EOF
#line 1559 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
EOF
if { (eval echo configure:1597: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_prog_cc_stdc=$ac_arg; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CC=$ac_save_CC
fi
case "x$ac_cv_prog_cc_stdc" in
x|xno)
echo "configure:1609: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
*)
echo "configure:1612: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
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 "configure:1620: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_YACC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_YACC="$ac_prog"
break
done
fi
fi
YACC=$ac_cv_prog_YACC
if test -n "$YACC"; then
echo "configure:1641: result: $YACC" >&5
echo "${ECHO_T}$YACC" >&6
else
echo "configure:1644: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
for ac_prog in flex lex
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 "configure:1654: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$LEX"; then
ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_LEX="$ac_prog"
break
done
fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
echo "configure:1675: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
else
echo "configure:1678: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$LEX" && break
done
test -n "$LEX" || LEX="${am_missing_run}flex"
# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
echo "configure:1686: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$LEX"; then
ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_LEX="flex"
break
done
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
fi
fi
LEX=$ac_cv_prog_LEX
if test -n "$LEX"; then
echo "configure:1708: result: $LEX" >&5
echo "${ECHO_T}$LEX" >&6
else
echo "configure:1711: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$LEXLIB"
then
case $LEX in
flex*) ac_lib=fl ;;
*) ac_lib=l ;;
esac
ac_ac_Lib=`echo "ac_cv_lib_$ac_lib_yywrap" | $ac_tr_sh`
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:1725: checking for yywrap in -l$ac_lib" >&5
echo $ECHO_N "checking for yywrap in -l$ac_lib... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Lib+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-l$ac_lib $LIBS"
cat >conftest.$ac_ext <<EOF
#line 1733 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:1750: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_Lib=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Lib=no"
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:1760: result: `eval echo '${'$ac_ac_Lib'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Lib'}'`" >&6
if test `eval echo '${'$ac_ac_Lib'}'` = yes; then
LEXLIB="-l$ac_lib"
fi
fi
echo "configure:1766: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# The minimal lex program is just a single line: %%. But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
ac_cv_prog_lex_root=lexyy
else
{ echo "configure: error: cannot find output from $LEX; giving up" >&2; exit 1; }
fi
fi
echo "configure:1783: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
echo "configure:1786: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<EOF
`cat $LEX_OUTPUT_ROOT.c`
EOF
if { (eval echo configure:1801: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_lex_yytext_pointer=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"
fi
echo "configure:1811: result: $ac_cv_prog_lex_yytext_pointer" >&5
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
if test $ac_cv_prog_lex_yytext_pointer = yes; then
cat >>confdefs.h <<\EOF
#define YYTEXT_POINTER 1
EOF
fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "configure:1820: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_RANLIB="ranlib"
break
done
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
echo "configure:1842: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
echo "configure:1845: result: no" >&5
echo "${ECHO_T}no" >&6
fi
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "configure:1852: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_AWK="$ac_prog"
break
done
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
echo "configure:1873: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
echo "configure:1876: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$AWK" && break
done
echo "configure:1881: checking for ln -s or something else" >&5
echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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
touch conftestdata1
if ln conftestdata1 conftestdata2; then
rm -f conftestdata*
ac_cv_prog_LN_S=ln
else
ac_cv_prog_LN_S=cp
fi
fi
fi
LN_S="$ac_cv_prog_LN_S"
echo "configure:1902: result: $ac_cv_prog_LN_S" >&5
echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
# Check whether --with-mips_abi or --without-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
withval="$with_mips_abi"
fi
case "$host_os" in
irix*)
with_mips_abi="${with_mips_abi:-yes}"
if test -n "$GCC"; then
# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
#
# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
# GCC and revert back to O32. The same goes if O32 is asked for - old
# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
#
# Don't you just love *all* the different SGI ABIs?
case "${with_mips_abi}" in
32|o32) abi='-mabi=32'; abilibdirext='' ;;
n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
64) abi='-mabi=64'; abilibdirext='64' ;;
no) abi=''; abilibdirext='';;
*) { echo "configure: error: \"Invalid ABI specified\"" >&2; exit 1; } ;;
esac
if test -n "$abi" ; then
ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
echo "configure:1929: checking if $CC supports the $abi option" >&5
echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
if eval "test \"\${$ac_foo+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
cat >conftest.$ac_ext <<EOF
#line 1937 "configure"
#include "confdefs.h"
int
main ()
{
int x;
;
return 0;
}
EOF
if { (eval echo configure:1947: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval $ac_foo=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval $ac_foo=no
fi
rm -f conftest*
CFLAGS="$save_CFLAGS"
fi
ac_res=`eval echo \\\$$ac_foo`
echo "configure:1958: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
if test $ac_res = no; then
# Try to figure out why that failed...
case $abi in
-mabi=32)
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mabi=n32"
cat >conftest.$ac_ext <<EOF
#line 1967 "configure"
#include "confdefs.h"
int
main ()
{
int x;
;
return 0;
}
EOF
if { (eval echo configure:1977: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_res=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_res=no
fi
rm -f conftest*
CLAGS="$save_CFLAGS"
if test $ac_res = yes; then
# New GCC
{ echo "configure: error: $CC does not support the $with_mips_abi ABI" >&2; exit 1; }
fi
# Old GCC
abi=''
abilibdirext=''
;;
-mabi=n32|-mabi=64)
if test $with_mips_abi = yes; then
# Old GCC, default to O32
abi=''
abilibdirext=''
else
# Some broken GCC
{ echo "configure: error: $CC does not support the $with_mips_abi ABI" >&2; exit 1; }
fi
;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
else
case "${with_mips_abi}" in
32|o32) abi='-32'; abilibdirext='' ;;
n32|yes) abi='-n32'; abilibdirext='32' ;;
64) abi='-64'; abilibdirext='64' ;;
no) abi=''; abilibdirext='';;
*) { echo "configure: error: \"Invalid ABI specified\"" >&2; exit 1; } ;;
esac
fi #if test -n "$GCC"; then
;;
esac
CC="$CC $abi"
libdir="$libdir$abilibdirext"
echo "configure:2020: checking for __attribute__" >&5
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
if test "${ac_cv___attribute__+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 2026 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
static void foo(void) __attribute__ ((noreturn));
static void
foo(void)
{
exit(1);
}
;
return 0;
}
EOF
if { (eval echo configure:2042: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv___attribute__=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
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 "configure:2056: result: $ac_cv___attribute__" >&5
echo "${ECHO_T}$ac_cv___attribute__" >&6
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=no
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo "configure:2134: checking for ld used by GCC" >&5
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
case "$ac_prog" in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
echo "configure:2164: checking for GNU ld" >&5
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
else
echo "configure:2167: checking for non-GNU ld" >&5
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
fi
if test "${ac_cv_path_LD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
LD="$ac_cv_path_LD"
if test -n "$LD"; then
echo "configure:2196: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
echo "configure:2199: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" >&2; exit 1; }
echo "configure:2203: checking if the linker ($LD) is GNU ld" >&5
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
if test "${ac_cv_prog_gnu_ld+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi
fi
echo "configure:2215: result: $ac_cv_prog_gnu_ld" >&5
echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
with_gnu_ld=$ac_cv_prog_gnu_ld
echo "configure:2218: checking for $LD option to reload object files" >&5
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
if test "${lt_cv_ld_reload_flag+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
lt_cv_ld_reload_flag='-r'
fi
echo "configure:2225: result: $lt_cv_ld_reload_flag" >&5
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
reload_flag=$lt_cv_ld_reload_flag
test -n "$reload_flag" && reload_flag=" $reload_flag"
echo "configure:2229: checking for BSD-compatible nm" >&5
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
if test "${ac_cv_path_NM+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$tmp_nm -B"
break
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$tmp_nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi
NM="$ac_cv_path_NM"
echo "configure:2263: result: $NM" >&5
echo "${ECHO_T}$NM" >&6
echo "configure:2265: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
if test "${ac_cv_prog_LN_S+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
rm -f conftest.sym conftest.file
echo >conftest.file
if ln -s conftest.file conftest.sym 2>/dev/null; then
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 "configure:2280: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "configure:2283: result: no" >&5
echo "${ECHO_T}no" >&6
fi
echo "configure:2286: checking how to recognise dependant libraries" >&5
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
if test "${lt_cv_deplibs_check_method+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
lt_cv_file_magic_cmd='${MAGIC}'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [regex]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
case "$host_os" in
aix4*)
lt_cv_deplibs_check_method=pass_all
;;
beos*)
lt_cv_deplibs_check_method=pass_all
;;
bsdi4*)
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so
;;
cygwin* | mingw*)
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
lt_cv_file_magic_cmd='${OBJDUMP} -f'
;;
freebsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
case "$host_cpu" in
i*86 )
lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;;
esac
else
lt_cv_deplibs_check_method=pass_all
fi
;;
gnu*)
lt_cv_deplibs_check_method=pass_all
;;
hpux10.20*)
# TODO: Does this work for hpux-11 too?
lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
irix5* | irix6*)
case "$host_os" in
irix5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
*)
case "$LD" in
*-32|*"-32 ") libmagic=32-bit;;
*-n32|*"-n32 ") libmagic=N32;;
*-64|*"-64 ") libmagic=64-bit;;
*) libmagic=never-match;;
esac
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
;;
esac
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
lt_cv_deplibs_check_method=pass_all
;;
# This must be Linux ELF.
linux-gnu*)
case "$host_cpu" in
alpha* | i*86 | powerpc* | sparc* | ia64* )
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
else
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
fi
;;
osf3* | osf4* | osf5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
lt_cv_file_magic_test_file=/shlib/libc.so
lt_cv_deplibs_check_method=pass_all
;;
sco3.2v5*)
lt_cv_deplibs_check_method=pass_all
;;
solaris*)
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_test_file=/lib/libc.so
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case "$host_vendor" in
ncr)
lt_cv_deplibs_check_method=pass_all
;;
motorola)
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
;;
esac
;;
esac
fi
echo "configure:2407: result: $lt_cv_deplibs_check_method" >&5
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
# Only perform the check for file, if the check method requires it
case "$deplibs_check_method" in
file_magic*)
if test "$file_magic_cmd" = '${MAGIC}'; then
echo "configure:2415: checking for ${ac_tool_prefix}file" >&5
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case "$MAGIC" in
/*)
lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
;;
*)
ac_save_MAGIC="$MAGIC"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="/usr/bin:$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/${ac_tool_prefix}file; then
lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
if test -n "$file_magic_test_file"; then
case "$deplibs_check_method" in
"file_magic "*)
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
MAGIC="$lt_cv_path_MAGIC"
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
egrep "$file_magic_regex" > /dev/null; then
:
else
cat <<EOF 1>&2
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org
EOF
fi ;;
esac
fi
break
fi
done
IFS="$ac_save_ifs"
MAGIC="$ac_save_MAGIC"
;;
esac
fi
MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
echo "configure:2467: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
echo "configure:2470: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$lt_cv_path_MAGIC"; then
if test -n "$ac_tool_prefix"; then
echo "configure:2475: checking for file" >&5
echo $ECHO_N "checking for file... $ECHO_C" >&6
if test "${lt_cv_path_MAGIC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case "$MAGIC" in
/*)
lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
;;
*)
ac_save_MAGIC="$MAGIC"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="/usr/bin:$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/file; then
lt_cv_path_MAGIC="$ac_dir/file"
if test -n "$file_magic_test_file"; then
case "$deplibs_check_method" in
"file_magic "*)
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
MAGIC="$lt_cv_path_MAGIC"
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
egrep "$file_magic_regex" > /dev/null; then
:
else
cat <<EOF 1>&2
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org
EOF
fi ;;
esac
fi
break
fi
done
IFS="$ac_save_ifs"
MAGIC="$ac_save_MAGIC"
;;
esac
fi
MAGIC="$lt_cv_path_MAGIC"
if test -n "$MAGIC"; then
echo "configure:2527: result: $MAGIC" >&5
echo "${ECHO_T}$MAGIC" >&6
else
echo "configure:2530: result: no" >&5
echo "${ECHO_T}no" >&6
fi
else
MAGIC=:
fi
fi
fi
;;
esac
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo "configure:2542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
break
done
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
echo "configure:2563: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
echo "configure:2566: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$ac_cv_prog_RANLIB"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo "configure:2573: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_RANLIB"; then
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
break
done
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
echo "configure:2595: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
echo "configure:2598: result: no" >&5
echo "${ECHO_T}no" >&6
fi
RANLIB="$ac_ct_RANLIB"
else
RANLIB=":"
fi
fi
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "configure:2608: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$STRIP"; then
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
break
done
fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
echo "configure:2629: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
echo "configure:2632: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -z "$ac_cv_prog_STRIP"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "configure:2639: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_STRIP"; then
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
test -f $ac_dir/$ac_word || continue
ac_cv_prog_ac_ct_STRIP="strip"
break
done
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
echo "configure:2661: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
echo "configure:2664: result: no" >&5
echo "${ECHO_T}no" >&6
fi
STRIP="$ac_ct_STRIP"
else
STRIP=":"
fi
fi
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Check whether --with-pic or --without-pic was given.
if test "${with_pic+set}" = set; then
withval="$with_pic"
pic_mode="$withval"
else
pic_mode=default
fi
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 2699 "configure"' > conftest.$ac_ext
if { (eval echo configure:2700: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
echo "configure:2719: checking whether the C compiler needs -belf" >&5
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
if test "${lt_cv_cc_needs_belf+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
cat >conftest.$ac_ext <<EOF
#line 2731 "configure"
#include "confdefs.h"
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:2740: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
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 >&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
fi
echo "configure:2755: result: $lt_cv_cc_needs_belf" >&5
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
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 | grep ac_space) 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='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
;;
esac;
} |
sed 's/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
if cmp -s $cache_file confcache; then :; else
if test -w $cache_file; then
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cat confcache >$cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|| { echo "configure: error: libtool configure failed" >&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
echo "loading cache $cache_file"
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
else
echo "creating cache $cache_file"
>$cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
# -Wno-implicit-int for broken X11 headers
# leave these out for now:
# -Wcast-align doesn't work well on alpha osf/1
# -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
# -Wmissing-declarations -Wnested-externs
WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
WFLAGS_NOUNUSED="-Wno-unused"
WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi
berkeley_db=db
# Check whether --with-berkeley-db or --without-berkeley-db was given.
if test "${with_berkeley_db+set}" = set; then
withval="$with_berkeley_db"
if test "$withval" = no; then
berkeley_db=""
fi
fi
if test "$berkeley_db"; then
for ac_header in \
db.h \
db_185.h \
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:2873: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 2879 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2884: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:2896: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
fi
echo "configure:2905: checking for dbopen" >&5
echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dbopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in $berkeley_db; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 2920 "configure"
#include "confdefs.h"
#include <stdio.h>
#if defined(HAVE_DB_185_H)
#include <db_185.h>
#elif defined(HAVE_DB_H)
#include <db.h>
#endif
int
main ()
{
dbopen(NULL, 0, 0, 0, NULL)
;
return 0;
}
EOF
if { (eval echo configure:2936: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_dbopen"
if false; then
for ac_func in dbopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:2954: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 2960 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:2988: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:2997: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# dbopen
eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dbopen=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_dbopen=yes"
eval "LIB_dbopen="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:3017: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_dbopen=no"
eval "LIB_dbopen="
echo "configure:3023: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_dbopen=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 "configure:3035: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:3039: checking for dbm_firstkey" >&5
echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" $berkeley_db gdbm ndbm; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 3054 "configure"
#include "confdefs.h"
int
main ()
{
dbm_firstkey()
;
return 0;
}
EOF
if { (eval echo configure:3064: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in dbm_firstkey
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:3082: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3088 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:3116: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:3125: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:3145: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_dbm_firstkey=no"
eval "LIB_dbm_firstkey="
echo "configure:3151: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:3163: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:3167: checking for db_create" >&5
echo $ECHO_N "checking for db_create... $ECHO_C" >&6
if test "${ac_cv_funclib_db_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" $berkeley_db; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 3182 "configure"
#include "confdefs.h"
int
main ()
{
db_create()
;
return 0;
}
EOF
if { (eval echo configure:3192: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_db_create"
if false; then
for ac_func in db_create
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:3210: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3216 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:3244: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:3253: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# db_create
eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_db_create=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_db_create=yes"
eval "LIB_db_create="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:3273: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_db_create=no"
eval "LIB_db_create="
echo "configure:3279: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_db_create=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 "configure:3291: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
DBLIB="$LIB_dbopen"
if test "$LIB_dbopen" != "$LIB_db_create"; then
DBLIB="$DBLIB $LIB_db_create"
fi
if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
DBLIB="$DBLIB $LIB_dbm_firstkey"
fi
echo "configure:3302: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat >conftest.$ac_ext <<EOF
#line 3310 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif
EOF
if { (eval echo configure:3316: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
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 "configure:3325: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&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 "configure:3339: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3345 "configure"
#include "confdefs.h"
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in
an arm of an if-expression whose if-part is not a constant
expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
#endif
;
return 0;
}
EOF
if { (eval echo configure:3399: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "configure:3408: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
cat >>confdefs.h <<\EOF
#define const
EOF
fi
echo "configure:3415: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3421 "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:3429: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
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 3443 "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
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 3458 "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
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 3476 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#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:3500: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
fi
fi
echo "configure:3512: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
echo "configure:3519: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3525 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
return 0;
if (sizeof (size_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:3539: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_size_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "configure:3548: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
:
else
cat >>confdefs.h <<EOF
#define size_t unsigned
EOF
fi
echo "configure:3557: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3563 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
return 0;
if (sizeof (pid_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:3577: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_pid_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest*
fi
echo "configure:3586: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
:
else
cat >>confdefs.h <<EOF
#define pid_t int
EOF
fi
echo "configure:3595: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3601 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes
else
ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
echo "configure:3613: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
cat >>confdefs.h <<\EOF
#define uid_t int
EOF
cat >>confdefs.h <<\EOF
#define gid_t int
EOF
fi
echo "configure:3623: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3629 "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:3649: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_signal=void
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest*
fi
echo "configure:3658: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
if test "$ac_cv_type_signal" = "void" ; then
cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF
fi
echo "configure:3669: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3675 "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:3688: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "configure:3697: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
for ac_header in standards.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:3711: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3717 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3722: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:3734: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
for i in netinet/ip.h netinet/tcp.h; do
cv=`echo "$i" | sed 'y%./+-%__p_%'`
echo "configure:3744: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3750 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3759: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "ac_cv_header_$cv=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_header_$cv=no"
fi
rm -f conftest*
fi
echo "configure:3771: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
done
if false;then
for ac_header in netinet/ip.h netinet/tcp.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:3790: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3796 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3801: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:3813: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
fi
for ac_func in getlogin setlogin
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:3825: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3831 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:3859: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:3868: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
if test "$ac_cv_func_getlogin" = yes; then
echo "configure:3877: checking if getlogin is posix" >&5
echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
if test "${ac_cv_func_getlogin_posix+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
ac_cv_func_getlogin_posix=no
else
ac_cv_func_getlogin_posix=yes
fi
fi
echo "configure:3888: result: $ac_cv_func_getlogin_posix" >&5
echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
if test "$ac_cv_func_getlogin_posix" = yes; then
cat >>confdefs.h <<\EOF
#define POSIX_GETLOGIN 1
EOF
fi
fi
echo "configure:3897: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 3907 "configure"
#include "confdefs.h"
#include <stddef.h>
#include <stdlib.h>
int main()
{
return realloc(NULL, 17) == NULL;
}
EOF
if { (eval echo configure:3916: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
fi
rm -f conftest*
fi
fi
echo "configure:3927: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF
fi
DIR_roken=roken
LIB_roken='$(top_builddir)/lib/roken/libroken.la'
CPPFLAGS_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
# -Wno-implicit-int for broken X11 headers
# leave these out for now:
# -Wcast-align doesn't work well on alpha osf/1
# -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
# -Wmissing-declarations -Wnested-externs
WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
WFLAGS_NOUNUSED="-Wno-unused"
WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi
echo "configure:3950: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3956 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
ac_cv_type_ssize_t=yes
else
ac_cv_type_ssize_t=no
fi
rm -f conftest*
fi
echo "configure:3973: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
cat >>confdefs.h <<\EOF
#define ssize_t int
EOF
fi
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "configure:3981: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 3987 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
int
main ()
{
long long foo;
;
return 0;
}
EOF
if { (eval echo configure:4002: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:4012: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:4017: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4023 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
return 0;
if (sizeof (long long))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:4037: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_long_long=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest*
fi
echo "configure:4046: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
for ac_header in \
arpa/inet.h \
arpa/nameser.h \
config.h \
crypt.h \
dbm.h \
db.h \
dirent.h \
errno.h \
err.h \
fcntl.h \
grp.h \
ndbm.h \
netdb.h \
netinet/in.h \
netinet/in6.h \
netinet/in_systm.h \
netinet6/in6.h \
paths.h \
pwd.h \
resolv.h \
rpcsvc/dbm.h \
rpcsvc/ypclnt.h \
shadow.h \
sys/ioctl.h \
sys/param.h \
sys/proc.h \
sys/resource.h \
sys/socket.h \
sys/stat.h \
sys/sysctl.h \
sys/time.h \
sys/tty.h \
sys/types.h \
sys/uio.h \
sys/utsname.h \
sys/wait.h \
syslog.h \
termios.h \
unistd.h \
userconf.h \
usersec.h \
winsock.h \
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:4107: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4113 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4118: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:4130: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
if test "$ac_cv_header_err_h" = yes; then
have_err_h_TRUE=
have_err_h_FALSE='#'
else
have_err_h_TRUE='#'
have_err_h_FALSE=
fi
if test "$ac_cv_header_fnmatch_h" = yes; then
have_fnmatch_h_TRUE=
have_fnmatch_h_FALSE='#'
else
have_fnmatch_h_TRUE='#'
have_fnmatch_h_FALSE=
fi
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
withval="$with_ipv6"
if test "$withval" = "no"; then
ac_cv_lib_ipv6=no
fi
fi
if test "${ac_cv_lib_ipv6+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
v6type=unknown
v6lib=none
echo "configure:4165: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
case $i in
v6d)
cat >conftest.$ac_ext <<EOF
#line 4171 "configure"
#include "confdefs.h"
dnl
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=v6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*
;;
toshiba)
cat >conftest.$ac_ext <<EOF
#line 4189 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
kame)
cat >conftest.$ac_ext <<EOF
#line 4207 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
inria)
cat >conftest.$ac_ext <<EOF
#line 4225 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
zeta)
cat >conftest.$ac_ext <<EOF
#line 4241 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
linux)
if test -d /usr/inet6; then
v6type=$i
v6lib=inet6
v6libdir=/usr/inet6
CFLAGS="-DINET6 $CFLAGS"
fi
;;
esac
if test "$v6type" != "unknown"; then
break
fi
done
echo "configure:4270: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6
if test "$v6lib" != "none"; then
for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
if test -d $dir -a -f $dir/lib$v6lib.a; then
LIBS="-L$dir -l$v6lib $LIBS"
break
fi
done
fi
cat >conftest.$ac_ext <<EOF
#line 4281 "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_NETINET_IN6_H
#include <netinet/in6.h>
#endif
int
main ()
{
struct sockaddr_in6 sin6;
int s;
s = socket(AF_INET6, SOCK_DGRAM, 0);
sin6.sin6_family = AF_INET6;
sin6.sin6_port = htons(17);
sin6.sin6_addr = in6addr_any;
bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
;
return 0;
}
EOF
if { (eval echo configure:4309: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest*
fi
echo "configure:4318: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "configure:4320: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
EOF
fi
echo "configure:4327: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 4342 "configure"
#include "confdefs.h"
int
main ()
{
socket()
;
return 0;
}
EOF
if { (eval echo configure:4352: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in socket
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:4370: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4376 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:4404: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:4413: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:4433: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_socket=no"
eval "LIB_socket="
echo "configure:4439: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:4451: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_socket"; then
LIBS="$LIB_socket $LIBS"
fi
echo "configure:4458: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 4473 "configure"
#include "confdefs.h"
int
main ()
{
gethostbyname()
;
return 0;
}
EOF
if { (eval echo configure:4483: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:4501: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4507 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:4535: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:4544: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:4564: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_gethostbyname=no"
eval "LIB_gethostbyname="
echo "configure:4570: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:4582: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_gethostbyname"; then
LIBS="$LIB_gethostbyname $LIBS"
fi
echo "configure:4589: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 4604 "configure"
#include "confdefs.h"
int
main ()
{
syslog()
;
return 0;
}
EOF
if { (eval echo configure:4614: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:4632: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4638 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:4666: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:4675: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:4695: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_syslog=no"
eval "LIB_syslog="
echo "configure:4701: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:4713: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_syslog"; then
LIBS="$LIB_syslog $LIBS"
fi
echo "configure:4720: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" inet6 ip6; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 4735 "configure"
#include "confdefs.h"
int
main ()
{
gethostbyname2()
;
return 0;
}
EOF
if { (eval echo configure:4745: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
if false; then
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:4763: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4769 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:4797: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:4806: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_gethostbyname2=yes"
eval "LIB_gethostbyname2="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:4826: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_gethostbyname2=no"
eval "LIB_gethostbyname2="
echo "configure:4832: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_gethostbyname2=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 "configure:4844: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_gethostbyname2"; then
LIBS="$LIB_gethostbyname2 $LIBS"
fi
echo "configure:4851: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 4866 "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:4889: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:4907: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 4913 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:4941: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:4950: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:4970: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_res_search=no"
eval "LIB_res_search="
echo "configure:4976: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:4988: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_res_search"; then
LIBS="$LIB_res_search $LIBS"
fi
echo "configure:4995: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 5010 "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:5033: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:5051: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5057 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:5085: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:5094: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:5114: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_dn_expand=no"
eval "LIB_dn_expand="
echo "configure:5120: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:5132: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_dn_expand"; then
LIBS="$LIB_dn_expand $LIBS"
fi
echo "configure:5139: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 5149 "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:5160: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
fi
rm -f conftest*
fi
fi
echo "configure:5171: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
if test "$ac_cv_func_snprintf_working" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
fi
if test "$ac_cv_func_snprintf_working" = yes; then
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "configure:5181: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5187 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:5200: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_snprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5209: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
EOF
fi
fi
fi
echo "configure:5219: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 5229 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
int foo(int num, ...)
{
char bar[3];
va_list arg;
va_start(arg, num);
vsnprintf(bar, 2, "%s", arg);
va_end(arg);
return strcmp(bar, "1");
}
int main()
{
return foo(0, "12");
}
EOF
if { (eval echo configure:5248: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
fi
rm -f conftest*
fi
fi
echo "configure:5259: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
if test "$ac_cv_func_vsnprintf_working" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
EOF
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "configure:5269: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5275 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:5288: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_vsnprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5297: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
EOF
fi
fi
fi
echo "configure:5307: checking for working glob" >&5
echo $ECHO_N "checking for working glob... $ECHO_C" >&6
if test "${ac_cv_func_glob_working+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_glob_working=yes
cat >conftest.$ac_ext <<EOF
#line 5314 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
int
main ()
{
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
;
return 0;
}
EOF
if { (eval echo configure:5326: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_glob_working=no
fi
rm -f conftest*
fi
echo "configure:5335: result: $ac_cv_func_glob_working" >&5
echo "${ECHO_T}$ac_cv_func_glob_working" >&6
if test "$ac_cv_func_glob_working" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF
fi
if test "$ac_cv_func_glob_working" = yes; then
if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
echo "configure:5345: checking if glob needs a prototype" >&5
echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_glob_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5351 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <glob.h>
int
main ()
{
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);
;
return 0;
}
EOF
if { (eval echo configure:5365: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_glob_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_glob_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5374: result: $ac_cv_func_glob_noproto" >&5
echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
if test "$ac_cv_func_glob_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF
fi
fi
fi
if test "$ac_cv_func_glob_working" != yes; then
LIBOBJS="$LIBOBJS glob.o"
fi
if test "$ac_cv_func_glob_working" = yes; then
have_glob_h_TRUE=
have_glob_h_FALSE='#'
else
have_glob_h_TRUE='#'
have_glob_h_FALSE=
fi
for ac_func in \
asnprintf \
asprintf \
cgetent \
getconfattr \
getrlimit \
getspnam \
sysconf \
sysctl \
uname \
vasnprintf \
vasprintf \
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:5408: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5414 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:5442: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:5451: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
if test "$ac_cv_func_cgetent" = no; then
LIBOBJS="$LIBOBJS getcap.o"
fi
echo "configure:5462: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 5477 "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 ()
{
getsockopt(0,0,0,0,0)
;
return 0;
}
EOF
if { (eval echo configure:5493: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_getsockopt"
if false; then
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:5511: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5517 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:5545: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:5554: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_getsockopt=yes"
eval "LIB_getsockopt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:5574: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_getsockopt=no"
eval "LIB_getsockopt="
echo "configure:5580: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_getsockopt=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 "configure:5592: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:5596: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 5611 "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 ()
{
setsockopt(0,0,0,0,0)
;
return 0;
}
EOF
if { (eval echo configure:5627: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_setsockopt"
if false; then
for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:5645: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5651 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:5679: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:5688: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_setsockopt=yes"
eval "LIB_setsockopt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:5708: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_setsockopt=no"
eval "LIB_setsockopt="
echo "configure:5714: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_setsockopt=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 "configure:5726: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:5730: checking for hstrerror" >&5
echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
if test "${ac_cv_funclib_hstrerror+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 5745 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
hstrerror(17)
;
return 0;
}
EOF
if { (eval echo configure:5758: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in hstrerror
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:5776: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5782 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:5810: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:5819: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:5839: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_hstrerror=no"
eval "LIB_hstrerror="
echo "configure:5845: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:5857: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&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
if test "$ac_cv_func_hstrerror" = yes; then
if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
echo "configure:5869: checking if hstrerror needs a prototype" >&5
echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5875 "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:5890: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_hstrerror_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_hstrerror_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5899: result: $ac_cv_func_hstrerror_noproto" >&5
echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
if test "$ac_cv_func_hstrerror_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_HSTRERROR_PROTO 1
EOF
fi
fi
fi
if test "$ac_cv_func_asprintf" = yes; then
if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
echo "configure:5911: checking if asprintf needs a prototype" >&5
echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5917 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asprintf (struct foo*);
asprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:5931: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_asprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5940: result: $ac_cv_func_asprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
if test "$ac_cv_func_asprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_ASPRINTF_PROTO 1
EOF
fi
fi
fi
if test "$ac_cv_func_vasprintf" = yes; then
if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
echo "configure:5952: checking if vasprintf needs a prototype" >&5
echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5958 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasprintf (struct foo*);
vasprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:5972: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_vasprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:5981: result: $ac_cv_func_vasprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
if test "$ac_cv_func_vasprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_VASPRINTF_PROTO 1
EOF
fi
fi
fi
if test "$ac_cv_func_asnprintf" = yes; then
if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
echo "configure:5993: checking if asnprintf needs a prototype" >&5
echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 5999 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int asnprintf (struct foo*);
asnprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6013: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_asnprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_asnprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6022: result: $ac_cv_func_asnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
if test "$ac_cv_func_asnprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_ASNPRINTF_PROTO 1
EOF
fi
fi
fi
if test "$ac_cv_func_vasnprintf" = yes; then
if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
echo "configure:6034: checking if vasnprintf needs a prototype" >&5
echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6040 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vasnprintf (struct foo*);
vasnprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6054: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_vasnprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vasnprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6063: result: $ac_cv_func_vasnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
if test "$ac_cv_func_vasnprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_VASNPRINTF_PROTO 1
EOF
fi
fi
fi
for ac_func in \
chown \
copyhostent \
daemon \
err \
errx \
fchown \
flock \
fnmatch \
freeaddrinfo \
freehostent \
gai_strerror \
getaddrinfo \
getcwd \
getdtablesize \
getegid \
geteuid \
getgid \
gethostname \
getipnodebyaddr \
getipnodebyname \
getnameinfo \
getopt \
gettimeofday \
getuid \
getusershell \
inet_aton \
inet_ntop \
inet_pton \
initgroups \
innetgr \
iruserok \
lstat \
memmove \
mkstemp \
putenv \
rcmd \
readv \
recvmsg \
sendmsg \
setegid \
setenv \
seteuid \
strcasecmp \
strdup \
strerror \
strftime \
strlcat \
strlcpy \
strlwr \
strncasecmp \
strndup \
strnlen \
strptime \
strsep \
strsep_copy \
strtok_r \
strupr \
swab \
unsetenv \
verr \
verrx \
vsyslog \
vwarn \
vwarnx \
warn \
warnx \
writev \
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:6143: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6149 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:6177: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:6186: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
if false; then
for ac_func in \
chown \
copyhostent \
daemon \
err \
errx \
fchown \
flock \
fnmatch \
freeaddrinfo \
freehostent \
gai_strerror \
getaddrinfo \
getcwd \
getdtablesize \
getegid \
geteuid \
getgid \
gethostname \
getipnodebyaddr \
getipnodebyname \
getnameinfo \
getopt \
gettimeofday \
getuid \
getusershell \
inet_aton \
inet_ntop \
inet_pton \
initgroups \
innetgr \
iruserok \
lstat \
memmove \
mkstemp \
putenv \
rcmd \
readv \
recvmsg \
sendmsg \
setegid \
setenv \
seteuid \
strcasecmp \
strdup \
strerror \
strftime \
strlcat \
strlcpy \
strlwr \
strncasecmp \
strndup \
strnlen \
strptime \
strsep \
strsep_copy \
strtok_r \
strupr \
swab \
unsetenv \
verr \
verrx \
vsyslog \
vwarn \
vwarnx \
warn \
warnx \
writev \
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:6268: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6274 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:6302: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:6311: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
done
if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
echo "configure:6322: checking if setenv needs a prototype" >&5
echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_setenv_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6328 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int setenv (struct foo*);
setenv(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6341: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_setenv_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_setenv_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6350: result: $ac_cv_func_setenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
if test "$ac_cv_func_setenv_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_SETENV_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
echo "configure:6360: checking if unsetenv needs a prototype" >&5
echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6366 "configure"
#include "confdefs.h"
#include <stdlib.h>
int
main ()
{
struct foo { int foo; } xx;
extern int unsetenv (struct foo*);
unsetenv(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_unsetenv_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_unsetenv_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6388: result: $ac_cv_func_unsetenv_noproto" >&5
echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
if test "$ac_cv_func_unsetenv_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_UNSETENV_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
echo "configure:6398: checking if gethostname needs a prototype" >&5
echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostname_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6404 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6417: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_gethostname_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostname_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6426: result: $ac_cv_func_gethostname_noproto" >&5
echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
if test "$ac_cv_func_gethostname_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
echo "configure:6436: checking if mkstemp needs a prototype" >&5
echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6442 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6455: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_mkstemp_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_mkstemp_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6464: result: $ac_cv_func_mkstemp_noproto" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
if test "$ac_cv_func_mkstemp_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
echo "configure:6474: checking if getusershell needs a prototype" >&5
echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_getusershell_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6480 "configure"
#include "confdefs.h"
#include <unistd.h>
int
main ()
{
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6493: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_getusershell_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getusershell_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6502: result: $ac_cv_func_getusershell_noproto" >&5
echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
if test "$ac_cv_func_getusershell_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_GETUSERSHELL_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
echo "configure:6512: checking if inet_aton needs a prototype" >&5
echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6518 "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:6542: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_inet_aton_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_inet_aton_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6551: result: $ac_cv_func_inet_aton_noproto" >&5
echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
if test "$ac_cv_func_inet_aton_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF
fi
fi
echo "configure:6560: checking for crypt" >&5
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
if test "${ac_cv_funclib_crypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypt; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 6575 "configure"
#include "confdefs.h"
int
main ()
{
crypt()
;
return 0;
}
EOF
if { (eval echo configure:6585: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_crypt"
if false; then
for ac_func in crypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:6603: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6609 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:6637: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:6646: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# crypt
eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_crypt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_crypt=yes"
eval "LIB_crypt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:6666: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_crypt=no"
eval "LIB_crypt="
echo "configure:6672: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_crypt=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 "configure:6684: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:6688: checking if gethostbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6694 "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
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
struct hostent *gethostbyname(const char *);
;
return 0;
}
EOF
if { (eval echo configure:6719: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_gethostbyname_proto_compat=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyname_proto_compat=no"
fi
rm -f conftest*
fi
echo "configure:6728: result: $ac_cv_func_gethostbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
cat >>confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF
fi
echo "configure:6736: checking if gethostbyaddr is compatible with system prototype" >&5
echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6742 "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
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
struct hostent *gethostbyaddr(const void *, size_t, int);
;
return 0;
}
EOF
if { (eval echo configure:6767: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_gethostbyaddr_proto_compat=no"
fi
rm -f conftest*
fi
echo "configure:6776: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
cat >>confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF
fi
echo "configure:6784: checking if getservbyname is compatible with system prototype" >&5
echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6790 "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
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int
main ()
{
struct servent *getservbyname(const char *, const char *);
;
return 0;
}
EOF
if { (eval echo configure:6815: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_getservbyname_proto_compat=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_getservbyname_proto_compat=no"
fi
rm -f conftest*
fi
echo "configure:6824: result: $ac_cv_func_getservbyname_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
cat >>confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
EOF
fi
echo "configure:6832: checking if openlog is compatible with system prototype" >&5
echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6838 "configure"
#include "confdefs.h"
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif
int
main ()
{
void openlog(const char *, int, int);
;
return 0;
}
EOF
if { (eval echo configure:6851: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_openlog_proto_compat=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_openlog_proto_compat=no"
fi
rm -f conftest*
fi
echo "configure:6860: result: $ac_cv_func_openlog_proto_compat" >&5
echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
if test "$ac_cv_func_openlog_proto_compat" = yes; then
cat >>confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
EOF
fi
if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
echo "configure:6869: checking if crypt needs a prototype" >&5
echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_crypt_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6875 "configure"
#include "confdefs.h"
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int
main ()
{
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6893: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_crypt_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_crypt_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6902: result: $ac_cv_func_crypt_noproto" >&5
echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
if test "$ac_cv_func_crypt_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
echo "configure:6912: checking if strtok_r needs a prototype" >&5
echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6918 "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:6931: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_strtok_r_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strtok_r_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6940: result: $ac_cv_func_strtok_r_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
if test "$ac_cv_func_strtok_r_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_STRTOK_R_PROTO 1
EOF
fi
fi
if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
echo "configure:6950: checking if strsep needs a prototype" >&5
echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_strsep_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6956 "configure"
#include "confdefs.h"
#include <string.h>
int
main ()
{
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
;
return 0;
}
EOF
if { (eval echo configure:6969: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_strsep_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_strsep_noproto=no"
fi
rm -f conftest*
fi
echo "configure:6978: result: $ac_cv_func_strsep_noproto" >&5
echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
if test "$ac_cv_func_strsep_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
EOF
fi
fi
echo "configure:6987: checking for h_errno" >&5
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
if test "${ac_cv_var_h_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 6993 "configure"
#include "confdefs.h"
extern int h_errno;
int foo() { return h_errno; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:7005: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var_h_errno=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errno=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var_h_errno`
echo "configure:7015: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_H_ERRNO 1
EOF
echo "configure:7023: checking if h_errno is properly declared" >&5
echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errno_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7029 "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:7046: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_h_errno_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errno_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7055: result: $ac_cv_var_h_errno_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
EOF
fi
fi
echo "configure:7064: checking for h_errlist" >&5
echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7070 "configure"
#include "confdefs.h"
extern int h_errlist;
int foo() { return h_errlist; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:7082: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var_h_errlist=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_errlist=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var_h_errlist`
echo "configure:7092: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_H_ERRLIST 1
EOF
echo "configure:7100: checking if h_errlist is properly declared" >&5
echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7106 "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:7120: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_h_errlist_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_errlist_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7129: result: $ac_cv_var_h_errlist_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
EOF
fi
fi
echo "configure:7138: checking for h_nerr" >&5
echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7144 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:7156: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var_h_nerr=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_h_nerr=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var_h_nerr`
echo "configure:7166: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_H_NERR 1
EOF
echo "configure:7174: checking if h_nerr is properly declared" >&5
echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7180 "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:7194: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_h_nerr_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_h_nerr_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7203: result: $ac_cv_var_h_nerr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_H_NERR_DECLARATION 1
EOF
fi
fi
echo "configure:7212: checking for __progname" >&5
echo $ECHO_N "checking for __progname... $ECHO_C" >&6
if test "${ac_cv_var___progname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7218 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:7230: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var___progname=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var___progname=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var___progname`
echo "configure:7240: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE___PROGNAME 1
EOF
echo "configure:7248: checking if __progname is properly declared" >&5
echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
if test "${ac_cv_var___progname_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7254 "configure"
#include "confdefs.h"
#ifdef HAVE_ERR_H
#include <err.h>
#endif
extern struct { int foo; } __progname;
int
main ()
{
__progname.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7268: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var___progname_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var___progname_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7277: result: $ac_cv_var___progname_declaration" >&5
echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE___PROGNAME_DECLARATION 1
EOF
fi
fi
echo "configure:7286: checking if optarg is properly declared" >&5
echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optarg_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7292 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optarg;
int
main ()
{
optarg.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7307: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_optarg_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optarg_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7316: result: $ac_cv_var_optarg_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
EOF
fi
echo "configure:7324: checking if optind is properly declared" >&5
echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optind_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7330 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optind;
int
main ()
{
optind.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7345: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_optind_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optind_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7354: result: $ac_cv_var_optind_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
EOF
fi
echo "configure:7362: checking if opterr is properly declared" >&5
echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_opterr_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7368 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } opterr;
int
main ()
{
opterr.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7383: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_opterr_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_opterr_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7392: result: $ac_cv_var_opterr_declaration" >&5
echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
EOF
fi
echo "configure:7400: checking if optopt is properly declared" >&5
echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_optopt_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7406 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
int
main ()
{
optopt.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7421: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_optopt_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_optopt_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7430: result: $ac_cv_var_optopt_declaration" >&5
echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF
fi
echo "configure:7438: checking if environ is properly declared" >&5
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_environ_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7444 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int
main ()
{
environ.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7456: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_environ_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_environ_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7465: result: $ac_cv_var_environ_declaration" >&5
echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_ENVIRON_DECLARATION 1
EOF
fi
echo "configure:7473: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7479 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_gmtoff;
;
return 0;
}
EOF
if { (eval echo configure:7490: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_tm_tm_gmtoff=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
fi
rm -f conftest*
fi
echo "configure:7499: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
EOF
fi
echo "configure:7509: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7515 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_zone;
;
return 0;
}
EOF
if { (eval echo configure:7526: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_tm_tm_zone=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
fi
rm -f conftest*
fi
echo "configure:7535: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
EOF
fi
echo "configure:7545: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7551 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:7563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var_timezone=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "configure:7573: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF
echo "configure:7581: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7587 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int
main ()
{
timezone.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:7599: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_timezone_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:7608: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
EOF
fi
fi
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "configure:7618: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7624 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
sa_family_t foo;
;
return 0;
}
EOF
if { (eval echo configure:7640: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:7650: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:7655: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7661 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
return 0;
if (sizeof (sa_family_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:7675: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_sa_family_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest*
fi
echo "configure:7684: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "configure:7697: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7703 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
socklen_t foo;
;
return 0;
}
EOF
if { (eval echo configure:7719: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:7729: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:7734: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7740 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
return 0;
if (sizeof (socklen_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:7754: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_socklen_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
fi
rm -f conftest*
fi
echo "configure:7763: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "configure:7776: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7782 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr foo;
;
return 0;
}
EOF
if { (eval echo configure:7798: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:7808: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:7813: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7819 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
return 0;
if (sizeof (struct sockaddr))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:7833: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
fi
rm -f conftest*
fi
echo "configure:7842: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "configure:7855: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7861 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
;
return 0;
}
EOF
if { (eval echo configure:7877: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:7887: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:7892: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7898 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
return 0;
if (sizeof (struct sockaddr_storage))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:7912: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr_storage=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
fi
rm -f conftest*
fi
echo "configure:7921: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "configure:7934: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7940 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
;
return 0;
}
EOF
if { (eval echo configure:7956: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:7966: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:7971: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 7977 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
return 0;
if (sizeof (struct addrinfo))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:7991: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_addrinfo=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
fi
rm -f conftest*
fi
echo "configure:8000: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
echo "configure:8012: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<EOF
#line 8020 "configure"
#include "confdefs.h"
#include <$i>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "struct[ ]*winsize" >/dev/null 2>&1; then
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 "configure:8036: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<EOF
#line 8039 "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
cat >>confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF
fi
rm -f conftest*
cat >conftest.$ac_ext <<EOF
#line 8051 "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
cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
fi
rm -f conftest*
echo "configure:8062: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8068 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
;
return 0;
}
EOF
if { (eval echo configure:8082: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_struct_spwd=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
fi
rm -f conftest*
fi
echo "configure:8091: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
if test "$ac_cv_struct_spwd" = "yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
EOF
fi
echo "configure:8098: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8104 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; x.sa_len;
;
return 0;
}
EOF
if { (eval echo configure:8116: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr_sa_len=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
fi
rm -f conftest*
fi
echo "configure:8125: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF
fi
ac_config_files="$ac_config_files lib/roken/Makefile"
LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
# Check whether --with-openldap or --without-openldap was given.
if test "${with_openldap+set}" = set; then
withval="$with_openldap"
fi
# Check whether --with-openldap-lib or --without-openldap-lib was given.
if test "${with_openldap_lib+set}" = set; then
withval="$with_openldap_lib"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-openldap-lib" >&2; exit 1; }
elif test "X$with_openldap" = "X"; then
with_openldap=yes
fi
fi
# Check whether --with-openldap-include or --without-openldap-include was given.
if test "${with_openldap_include+set}" = set; then
withval="$with_openldap_include"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-openldap-include" >&2; exit 1; }
elif test "X$with_openldap" = "X"; then
with_openldap=yes
fi
fi
echo "configure:8160: checking for openldap" >&5
echo $ECHO_N "checking for openldap... $ECHO_C" >&6
case "$with_openldap" in
yes) ;;
no) ;;
"") ;;
*) if test "$with_openldap_include" = ""; then
with_openldap_include="$with_openldap/include"
fi
if test "$with_openldap_lib" = ""; then
with_openldap_lib="$with_openldap/lib$abilibdirext"
fi
;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
header_dirs="$header_dirs $i/include"
lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
case "$with_openldap_include" in
yes) ;;
no) ;;
*) header_dirs="$with_openldap_include $header_dirs";;
esac
case "$with_openldap_lib" in
yes) ;;
no) ;;
*) lib_dirs="$with_openldap_lib $lib_dirs";;
esac
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
CFLAGS="-I$i $save_CFLAGS"
cat >conftest.$ac_ext <<EOF
#line 8197 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:8207: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ires=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
LIBS="-L$i -lldap -llber $save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 8218 "configure"
#include "confdefs.h"
#include <ldap.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:8228: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
lres=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
openldap_includedir="$ires"
openldap_libdir="$lres"
INCLUDE_openldap="-I$openldap_includedir"
LIB_openldap="-L$openldap_libdir -lldap -llber"
cat >>confdefs.h <<EOF
#define OPENLDAP 1
EOF
with_openldap=yes
echo "configure:8248: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
INCLUDE_openldap=
LIB_openldap=
with_openldap=no
echo "configure:8254: result: $with_openldap" >&5
echo "${ECHO_T}$with_openldap" >&6
fi
if test "$openldap_libdir"; then
LIB_openldap="-rpath $openldap_libdir $LIB_openldap"
fi
# Check whether --with-krb4 or --without-krb4 was given.
if test "${with_krb4+set}" = set; then
withval="$with_krb4"
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" >&2; exit 1; }
elif test "X$with_krb4" = "X"; then
with_krb4=yes
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" >&2; exit 1; }
elif test "X$with_krb4" = "X"; then
with_krb4=yes
fi
fi
echo "configure:8282: checking for krb4" >&5
echo $ECHO_N "checking for krb4... $ECHO_C" >&6
case "$with_krb4" in
yes) ;;
no) ;;
"") ;;
*) if test "$with_krb4_include" = ""; then
with_krb4_include="$with_krb4/include"
fi
if test "$with_krb4_lib" = ""; then
with_krb4_lib="$with_krb4/lib$abilibdirext"
fi
;;
esac
header_dirs=
lib_dirs=
d='/usr/athena'
for i in $d; do
header_dirs="$header_dirs $i/include"
lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
case "$with_krb4_include" in
yes) ;;
no) ;;
*) header_dirs="$with_krb4_include $header_dirs";;
esac
case "$with_krb4_lib" in
yes) ;;
no) ;;
*) lib_dirs="$with_krb4_lib $lib_dirs";;
esac
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
CFLAGS="-I$i $save_CFLAGS"
cat >conftest.$ac_ext <<EOF
#line 8319 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:8329: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ires=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
LIBS="-L$i -lkrb -ldes $save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 8340 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:8350: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
lres=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
krb4_includedir="$ires"
krb4_libdir="$lres"
INCLUDE_krb4="-I$krb4_includedir"
LIB_krb4="-L$krb4_libdir -lkrb"
cat >>confdefs.h <<EOF
#define KRB4 1
EOF
with_krb4=yes
echo "configure:8370: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
INCLUDE_krb4=
LIB_krb4=
with_krb4=no
echo "configure:8376: result: $with_krb4" >&5
echo "${ECHO_T}$with_krb4" >&6
fi
LIB_kdb=
if test "$with_krb4" != "no"; then
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $INCLUDE_krb4"
save_LIBS="$LIBS"
LIBS="$LIB_krb4 -ldes $LIBS"
EXTRA_LIB45=lib45.a
echo "configure:8387: checking for four valued krb_put_int" >&5
echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
if test "${ac_cv_func_krb_put_int_four+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8393 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
char tmp[4];
krb_put_int(17, tmp, 4, sizeof(tmp));
;
return 0;
}
EOF
if { (eval echo configure:8405: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_func_krb_put_int_four=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_put_int_four=no
fi
rm -f conftest*
fi
echo "configure:8415: result: $ac_cv_func_krb_put_int_four" >&5
echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
if test "$ac_cv_func_krb_put_int_four" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
EOF
fi
echo "configure:8424: checking for KRB_VERIFY_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_secure+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8430 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
int x = KRB_VERIFY_SECURE
;
return 0;
}
EOF
if { (eval echo configure:8441: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_func_krb_verify_secure=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_secure=no
fi
rm -f conftest*
fi
echo "configure:8451: result: $ac_cv_func_krb_verify_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
if test "$ac_cv_func_krb_verify_secure" != yes; then
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE 1
EOF
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_SECURE_FAIL 2
EOF
fi
echo "configure:8463: checking for KRB_VERIFY_NOT_SECURE" >&5
echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8469 "configure"
#include "confdefs.h"
#include <krb.h>
int
main ()
{
int x = KRB_VERIFY_NOT_SECURE
;
return 0;
}
EOF
if { (eval echo configure:8480: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_func_krb_verify_not_secure=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_verify_not_secure=no
fi
rm -f conftest*
fi
echo "configure:8490: result: $ac_cv_func_krb_verify_not_secure" >&5
echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
if test "$ac_cv_func_krb_verify_not_secure" != yes; then
cat >>confdefs.h <<\EOF
#define KRB_VERIFY_NOT_SECURE 0
EOF
fi
echo "configure:8499: checking for krb_enable_debug" >&5
echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 8514 "configure"
#include "confdefs.h"
int
main ()
{
krb_enable_debug()
;
return 0;
}
EOF
if { (eval echo configure:8524: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
if false; then
for ac_func in krb_enable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:8542: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8548 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:8576: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:8585: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# krb_enable_debug
eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_enable_debug=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_krb_enable_debug=yes"
eval "LIB_krb_enable_debug="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:8605: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_krb_enable_debug=no"
eval "LIB_krb_enable_debug="
echo "configure:8611: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_krb_enable_debug=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 "configure:8623: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_krb_enable_debug"; then
LIBS="$LIB_krb_enable_debug $LIBS"
fi
echo "configure:8631: checking for krb_disable_debug" >&5
echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 8646 "configure"
#include "confdefs.h"
int
main ()
{
krb_disable_debug()
;
return 0;
}
EOF
if { (eval echo configure:8656: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
if false; then
for ac_func in krb_disable_debug
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:8674: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8680 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:8708: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:8717: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# krb_disable_debug
eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_disable_debug=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_krb_disable_debug=yes"
eval "LIB_krb_disable_debug="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:8737: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_krb_disable_debug=no"
eval "LIB_krb_disable_debug="
echo "configure:8743: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_krb_disable_debug=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 "configure:8755: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_krb_disable_debug"; then
LIBS="$LIB_krb_disable_debug $LIBS"
fi
echo "configure:8763: checking for krb_get_our_ip_for_realm" >&5
echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 8778 "configure"
#include "confdefs.h"
int
main ()
{
krb_get_our_ip_for_realm()
;
return 0;
}
EOF
if { (eval echo configure:8788: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
if false; then
for ac_func in krb_get_our_ip_for_realm
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:8806: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8812 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:8840: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:8849: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# krb_get_our_ip_for_realm
eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_krb_get_our_ip_for_realm=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
eval "LIB_krb_get_our_ip_for_realm="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:8869: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_krb_get_our_ip_for_realm=no"
eval "LIB_krb_get_our_ip_for_realm="
echo "configure:8875: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_krb_get_our_ip_for_realm=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 "configure:8887: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_krb_get_our_ip_for_realm"; then
LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
fi
echo "configure:8894: checking for krb_mk_req with const arguments" >&5
echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 8900 "configure"
#include "confdefs.h"
#include <krb.h>
int krb_mk_req(KTEXT a, const char *s, const char *i,
const char *r, int32_t checksum)
{ return 17; }
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:8913: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_func_krb_mk_req_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_krb_mk_req_const=no
fi
rm -f conftest*
fi
echo "configure:8923: result: $ac_cv_func_krb_mk_req_const" >&5
echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
cat >>confdefs.h <<\EOF
#define KRB_MK_REQ_CONST 1
EOF
fi
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
LIB_kdb="-lkdb -lkrb"
if test "$krb4_libdir"; then
LIB_krb4="-rpath $krb4_libdir $LIB_krb4"
LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb"
fi
fi
if test "$with_krb4" != "no"; then
KRB4_TRUE=
KRB4_FALSE='#'
else
KRB4_TRUE='#'
KRB4_FALSE=
fi
if true; then
KRB5_TRUE=
KRB5_FALSE='#'
else
KRB5_TRUE='#'
KRB5_FALSE=
fi
cat >>confdefs.h <<\EOF
#define KRB5 1
EOF
# Check whether --enable-dce or --disable-dce was given.
if test "${enable_dce+set}" = set; then
enableval="$enable_dce"
fi
if test "$enable_dce" = yes; then
cat >>confdefs.h <<\EOF
#define DCE 1
EOF
fi
if test "$with_dce" = yes; then
DCE_TRUE=
DCE_FALSE='#'
else
DCE_TRUE='#'
DCE_FALSE=
fi
## XXX quite horrible:
if test -f /etc/ibmcxx.cfg; then
x=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg`
dpagaix_LDADD=`echo $x | sed -n -e '/libraries/{;s/^^=*=\(.*\)/\1/;s/,/ /gp;}'`
dpagaix_CFLAGS=`echo $x | sed -n -e '/options/{;s/^^=*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
else
dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
fi
# Check whether --enable-kaserver or --disable-kaserver was given.
if test "${enable_kaserver+set}" = set; then
enableval="$enable_kaserver"
fi
if test "$enable_kaserver" = yes; then
cat >>confdefs.h <<\EOF
#define KASERVER 1
EOF
if test "$with_krb4" = "no"; then
{ echo "configure: error: kaserver requires krb4" >&2; exit 1; }
exit 1
fi
fi
# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
if test "${enable_kaserver_db+set}" = set; then
enableval="$enable_kaserver_db"
fi
if test "$enable_kaserver_db" = yes; then
cat >>confdefs.h <<\EOF
#define KASERVER_DB 1
EOF
if test "$with_krb4" = "no"; then
{ echo "configure: error: kaserver-db requires krb4" >&2; exit 1; }
exit 1
fi
fi
otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
enableval="$enable_otp"
if test "$enableval" = "no"; then
otp=no
fi
fi
if test "$otp" = "yes"; then
cat >>confdefs.h <<\EOF
#define OTP 1
EOF
LIB_otp='$(top_builddir)/lib/otp/libotp.la'
fi
if test "$otp" = yes; then
OTP_TRUE=
OTP_FALSE='#'
else
OTP_TRUE='#'
OTP_FALSE=
fi
# Check whether --enable-osfc2 or --disable-osfc2 was given.
if test "${enable_osfc2+set}" = set; then
enableval="$enable_osfc2"
fi
LIB_security=
if test "$enable_osfc2" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_OSFC2 1
EOF
LIB_security=-lsecurity
fi
# Extract the first word of "nroff", so it can be a program name with args.
set dummy nroff; ac_word=$2
echo "configure:9045: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NROFF+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $NROFF in
[\\/]* | ?:[\\/]*)
ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
;;
*)
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_word"; then
ac_cv_path_NROFF=$ac_dir/$ac_word
break
fi
done
;;
esac
fi
NROFF=$ac_cv_path_NROFF
if test -n "$NROFF"; then
echo "configure:9070: result: $NROFF" >&5
echo "${ECHO_T}$NROFF" >&6
else
echo "configure:9073: result: no" >&5
echo "${ECHO_T}no" >&6
fi
# Extract the first word of "groff", so it can be a program name with args.
set dummy groff; ac_word=$2
echo "configure:9078: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GROFF+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $GROFF in
[\\/]* | ?:[\\/]*)
ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
;;
*)
ac_save_IFS=$IFS; IFS=':'
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_word"; then
ac_cv_path_GROFF=$ac_dir/$ac_word
break
fi
done
;;
esac
fi
GROFF=$ac_cv_path_GROFF
if test -n "$GROFF"; then
echo "configure:9103: result: $GROFF" >&5
echo "${ECHO_T}$GROFF" >&6
else
echo "configure:9106: result: no" >&5
echo "${ECHO_T}no" >&6
fi
echo "configure:9109: checking how to format man pages" >&5
echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
if test "${ac_cv_sys_man_format+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.1 << END
.Dd January 1, 1970
.Dt CONFTEST 1
.Sh NAME
.Nm conftest
.Nd
foobar
END
if test "$NROFF" ; then
for i in "-mdoc" "-mandoc"; do
if "$NROFF" $i conftest.1 2> /dev/null | \
grep Jan > /dev/null 2>&1 ; then
ac_cv_sys_man_format="$NROFF $i"
break
fi
done
fi
if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
for i in "-mdoc" "-mandoc"; do
if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
grep Jan > /dev/null 2>&1 ; then
ac_cv_sys_man_format="$GROFF -Tascii $i"
break
fi
done
fi
if test "$ac_cv_sys_man_format"; then
ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
fi
fi
echo "configure:9144: result: $ac_cv_sys_man_format" >&5
echo "${ECHO_T}$ac_cv_sys_man_format" >&6
if test "$ac_cv_sys_man_format"; then
CATMAN="$ac_cv_sys_man_format"
fi
if test "$CATMAN"; then
CATMAN_TRUE=
CATMAN_FALSE='#'
else
CATMAN_TRUE='#'
CATMAN_FALSE=
fi
echo "configure:9157: checking extension of pre-formatted manual pages" >&5
echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
if test "${ac_cv_sys_catman_ext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if grep _suffix /etc/man.conf > /dev/null 2>&1; then
ac_cv_sys_catman_ext=0
else
ac_cv_sys_catman_ext=number
fi
fi
echo "configure:9168: result: $ac_cv_sys_catman_ext" >&5
echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
if test "$ac_cv_sys_catman_ext" = number; then
CATMANEXT='$$ext'
else
CATMANEXT=0
fi
# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
withval="$with_readline"
fi
# Check whether --with-readline-lib or --without-readline-lib was given.
if test "${with_readline_lib+set}" = set; then
withval="$with_readline_lib"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-readline-lib" >&2; exit 1; }
elif test "X$with_readline" = "X"; then
with_readline=yes
fi
fi
# Check whether --with-readline-include or --without-readline-include was given.
if test "${with_readline_include+set}" = set; then
withval="$with_readline_include"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-readline-include" >&2; exit 1; }
elif test "X$with_readline" = "X"; then
with_readline=yes
fi
fi
echo "configure:9197: checking for readline" >&5
echo $ECHO_N "checking for readline... $ECHO_C" >&6
case "$with_readline" in
yes) ;;
no) ;;
"") ;;
*) if test "$with_readline_include" = ""; then
with_readline_include="$with_readline/include"
fi
if test "$with_readline_lib" = ""; then
with_readline_lib="$with_readline/lib$abilibdirext"
fi
;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
header_dirs="$header_dirs $i/include"
lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
case "$with_readline_include" in
yes) ;;
no) ;;
*) header_dirs="$with_readline_include $header_dirs";;
esac
case "$with_readline_lib" in
yes) ;;
no) ;;
*) lib_dirs="$with_readline_lib $lib_dirs";;
esac
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
CFLAGS="-I$i $save_CFLAGS"
cat >conftest.$ac_ext <<EOF
#line 9234 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <readline.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:9245: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ires=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
LIBS="-L$i -lreadline $save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 9256 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <readline.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:9267: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
lres=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
readline_includedir="$ires"
readline_libdir="$lres"
INCLUDE_readline="-I$readline_includedir"
LIB_readline="-L$readline_libdir -lreadline"
cat >>confdefs.h <<EOF
#define READLINE 1
EOF
with_readline=yes
echo "configure:9287: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
INCLUDE_readline=
LIB_readline=
with_readline=no
echo "configure:9293: result: $with_readline" >&5
echo "${ECHO_T}$with_readline" >&6
fi
# Check whether --with-hesiod or --without-hesiod was given.
if test "${with_hesiod+set}" = set; then
withval="$with_hesiod"
fi
# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
if test "${with_hesiod_lib+set}" = set; then
withval="$with_hesiod_lib"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-hesiod-lib" >&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
with_hesiod=yes
fi
fi
# Check whether --with-hesiod-include or --without-hesiod-include was given.
if test "${with_hesiod_include+set}" = set; then
withval="$with_hesiod_include"
if test "$withval" = "yes" -o "$withval" = "no"; then
{ echo "configure: error: No argument for --with-hesiod-include" >&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
with_hesiod=yes
fi
fi
echo "configure:9318: checking for hesiod" >&5
echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
case "$with_hesiod" in
yes) ;;
no) ;;
"") ;;
*) if test "$with_hesiod_include" = ""; then
with_hesiod_include="$with_hesiod/include"
fi
if test "$with_hesiod_lib" = ""; then
with_hesiod_lib="$with_hesiod/lib$abilibdirext"
fi
;;
esac
header_dirs=
lib_dirs=
d=''
for i in $d; do
header_dirs="$header_dirs $i/include"
lib_dirs="$lib_dirs $i/lib$abilibdirext"
done
case "$with_hesiod_include" in
yes) ;;
no) ;;
*) header_dirs="$with_hesiod_include $header_dirs";;
esac
case "$with_hesiod_lib" in
yes) ;;
no) ;;
*) lib_dirs="$with_hesiod_lib $lib_dirs";;
esac
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
CFLAGS="-I$i $save_CFLAGS"
cat >conftest.$ac_ext <<EOF
#line 9355 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:9365: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ires=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
LIBS="-L$i -lhesiod $save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 9376 "configure"
#include "confdefs.h"
#include <hesiod.h>
int
main ()
{
;
return 0;
}
EOF
if { (eval echo configure:9386: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
lres=$i;break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
hesiod_includedir="$ires"
hesiod_libdir="$lres"
INCLUDE_hesiod="-I$hesiod_includedir"
LIB_hesiod="-L$hesiod_libdir -lhesiod"
cat >>confdefs.h <<EOF
#define HESIOD 1
EOF
with_hesiod=yes
echo "configure:9406: result: headers $ires, libraries $lres" >&5
echo "${ECHO_T}headers $ires, libraries $lres" >&6
else
INCLUDE_hesiod=
LIB_hesiod=
with_hesiod=no
echo "configure:9412: result: $with_hesiod" >&5
echo "${ECHO_T}$with_hesiod" >&6
fi
# Check whether --enable-bigendian or --disable-bigendian was given.
if test "${enable_bigendian+set}" = set; then
enableval="$enable_bigendian"
krb_cv_c_bigendian=yes
fi
# Check whether --enable-littleendian or --disable-littleendian was given.
if test "${enable_littleendian+set}" = set; then
enableval="$enable_littleendian"
krb_cv_c_bigendian=no
fi
echo "configure:9425: checking whether byte order is known at compile time" >&5
echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
if test "${krb_cv_c_bigendian_compile+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 9431 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
;
return 0;
}
EOF
if { (eval echo configure:9445: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
krb_cv_c_bigendian_compile=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian_compile=no
fi
rm -f conftest*
fi
echo "configure:9454: result: $krb_cv_c_bigendian_compile" >&5
echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
if test "$krb_cv_c_bigendian_compile" = "no"; then
echo "configure:9457: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${krb_cv_c_bigendian+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$krb_cv_c_bigendian" = ""; then
krb_cv_c_bigendian=unknown
fi
cat >conftest.$ac_ext <<EOF
#line 9466 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
;
return 0;
}
EOF
if { (eval echo configure:9480: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
krb_cv_c_bigendian=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=no
fi
rm -f conftest*
if test "$krb_cv_c_bigendian" = "unknown"; then
if test "$cross_compiling" = yes; then
{ echo "configure: error: specify either --enable-bigendian or --enable-littleendian" >&2; exit 1; }
else
cat >conftest.$ac_ext <<EOF
#line 9493 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:9506: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
krb_cv_c_bigendian=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
krb_cv_c_bigendian=yes
fi
rm -f conftest*
fi
fi
fi
echo "configure:9518: result: $krb_cv_c_bigendian" >&5
echo "${ECHO_T}$krb_cv_c_bigendian" >&6
if test "$krb_cv_c_bigendian" = "yes"; then
cat >>confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
fi
if test "$krb_cv_c_bigendian_compile" = "yes"; then
cat >>confdefs.h <<\EOF
#define ENDIANESS_IN_SYS_PARAM_H 1
EOF
fi
echo "configure:9531: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat >conftest.$ac_ext <<EOF
#line 9539 "configure"
#include "confdefs.h"
#ifndef __cplusplus
$ac_kw int foo () {return 0; }
#endif
EOF
if { (eval echo configure:9545: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
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 "configure:9554: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&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
if test "$aix" != no; then
AIX_TRUE=
AIX_FALSE='#'
else
AIX_TRUE='#'
AIX_FALSE=
fi
if test "$aix" = 4; then
AIX4_TRUE=
AIX4_FALSE='#'
else
AIX4_TRUE='#'
AIX4_FALSE=
fi
aix_dynamic_afs=yes
if test "$aix_dynamic_afs" = yes; then
AIX_DYNAMIC_AFS_TRUE=
AIX_DYNAMIC_AFS_FALSE='#'
else
AIX_DYNAMIC_AFS_TRUE='#'
AIX_DYNAMIC_AFS_FALSE=
fi
echo "configure:9590: checking for dlopen" >&5
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
if test "${ac_cv_funclib_dlopen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" dl; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 9605 "configure"
#include "confdefs.h"
int
main ()
{
dlopen()
;
return 0;
}
EOF
if { (eval echo configure:9615: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_dlopen"
if false; then
for ac_func in dlopen
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:9633: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 9639 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:9667: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:9676: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# dlopen
eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_dlopen=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_dlopen=yes"
eval "LIB_dlopen="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:9696: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_dlopen=no"
eval "LIB_dlopen="
echo "configure:9702: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_dlopen=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 "configure:9714: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test "$aix" != no; then
if test "$aix_dynamic_afs" = yes; then
if test "$ac_cv_funclib_dlopen" = yes; then
AIX_EXTRA_KAFS=
elif test "$ac_cv_funclib_dlopen" != no; then
AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
else
AIX_EXTRA_KAFS=-lld
fi
else
AIX_EXTRA_KAFS=
fi
fi
if test "$ac_cv_funclib_dlopen" != no; then
HAVE_DLOPEN_TRUE=
HAVE_DLOPEN_FALSE='#'
else
HAVE_DLOPEN_TRUE='#'
HAVE_DLOPEN_FALSE=
fi
echo "configure:9738: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6
# 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 test "${ac_cv_have_x+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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
# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/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'
if test "$ac_x_includes" = no; then
# Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified.
cat >conftest.$ac_ext <<EOF
#line 9825 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:9830: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
# 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
for ac_dir in $ac_x_header_dirs; do
if test -r "$ac_dir/X11/Intrinsic.h"; 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.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
LIBS="-lXt $LIBS"
cat >conftest.$ac_ext <<EOF
#line 9855 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
int
main ()
{
XtMalloc (0)
;
return 0;
}
EOF
if { (eval echo configure:9866: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
# Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
if test -r $ac_dir/libXt.$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 "configure:9900: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&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 "configure:9910: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&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 "configure:9930: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
cat >conftest.$ac_ext <<EOF
EOF
if { (eval echo configure:9935: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_R_nospace=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_nospace=no
fi
rm -f conftest*
if test $ac_R_nospace = yes; then
echo "configure:9944: result: no" >&5
echo "${ECHO_T}no" >&6
X_LIBS="$X_LIBS -R$x_libraries"
else
LIBS="$ac_xsave_LIBS -R $x_libraries"
cat >conftest.$ac_ext <<EOF
EOF
if { (eval echo configure:9951: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_R_space=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_R_space=no
fi
rm -f conftest*
if test $ac_R_space = yes; then
echo "configure:9960: result: yes" >&5
echo "${ECHO_T}yes" >&6
X_LIBS="$X_LIBS -R $x_libraries"
else
echo "configure:9964: result: neither works" >&5
echo "${ECHO_T}neither works" >&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 says this is needed for Ultrix, if the X
# libraries were built with DECnet support. And Karl Berry says
# the Alpha needs dnet_stub (dnet does not exist).
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:9984: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet $LIBS"
cat >conftest.$ac_ext <<EOF
#line 9992 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10009: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_dnet_dnet_ntoa=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_dnet_ntoa=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10019: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10029: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10037 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10054: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10064: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi
fi
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions.
# Chad R. Larson 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 T.E. Dickey.
# The functions gethostbyname, getservbyname, and inet_addr are
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
echo "configure:10078: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10084 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gethostbyname ();
char (*f) ();
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
f = gethostbyname;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10112: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_func_gethostbyname=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_gethostbyname=no
fi
rm -f conftest*
fi
echo "configure:10121: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
if test $ac_cv_func_gethostbyname = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10128: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10136 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10153: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_nsl_gethostbyname=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_nsl_gethostbyname=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10163: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test $ac_cv_lib_nsl_gethostbyname = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi
if test $ac_cv_lib_nsl_gethostbyname = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10173: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10181 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10198: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_bsd_gethostbyname=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_bsd_gethostbyname=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10208: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test $ac_cv_lib_bsd_gethostbyname = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi
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 Leinen: 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 "configure:10222: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10228 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char connect ();
char (*f) ();
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
f = connect;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10256: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_func_connect=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_connect=no
fi
rm -f conftest*
fi
echo "configure:10265: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6
if test $ac_cv_func_connect = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10272: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10280 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10297: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_socket_connect=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_socket_connect=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10307: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test $ac_cv_lib_socket_connect = yes; then
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi
fi
# Guillermo Gomez says -lposix is necessary on A/UX.
echo "configure:10314: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10320 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char remove ();
char (*f) ();
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
f = remove;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10348: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_func_remove=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_remove=no
fi
rm -f conftest*
fi
echo "configure:10357: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6
if test $ac_cv_func_remove = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10364: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10372 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10389: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_posix_remove=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_posix_remove=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10399: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test $ac_cv_lib_posix_remove = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi
fi
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
echo "configure:10406: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10412 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char shmat ();
char (*f) ();
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
f = shmat;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10440: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_func_shmat=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_shmat=no
fi
rm -f conftest*
fi
echo "configure:10449: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6
if test $ac_cv_func_shmat = no; then
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10456: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10464 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10481: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_ipc_shmat=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipc_shmat=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10491: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test $ac_cv_lib_ipc_shmat = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
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.
# John Interrante, Karl Berry
case "${LDFLAGS+set} $ac_configure_args" in
*" LDFLAGS="* );;
"set "*) ac_configure_args="LDFLAGS='$LDFLAGS' $ac_configure_args";;
esac
echo "configure:10511: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<EOF
#line 10519 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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:10536: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_ICE_IceConnectionNumber=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ICE_IceConnectionNumber=no
fi
rm -f conftest*
LIBS=$ac_check_lib_save_LIBS
fi
echo "configure:10546: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi
LDFLAGS=$ac_save_LDFLAGS
fi
# try to figure out if we need any additional ld flags, like -R
# and yes, the autoconf X test is utterly broken
if test "$no_x" != yes; then
echo "configure:10556: checking for special X linker flags" >&5
echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_save_libs="$LIBS"
ac_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS $X_CFLAGS"
krb_cv_sys_x_libs_rpath=""
krb_cv_sys_x_libs=""
for rflag in "" "-R" "-R " "-rpath "; do
if test "$rflag" = ""; then
foo="$X_LIBS"
else
foo=""
for flag in $X_LIBS; do
case $flag in
-L*)
foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
;;
*)
foo="$foo $flag"
;;
esac
done
fi
LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
if test "$cross_compiling" = yes; then
{ echo "configure: error: cannot run test program while cross compiling" >&2; exit 1; }
else
cat >conftest.$ac_ext <<EOF
#line 10587 "configure"
#include "confdefs.h"
#include <X11/Xlib.h>
foo()
{
XOpenDisplay(NULL);
}
main()
{
return 0;
}
EOF
if { (eval echo configure:10600: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
:
fi
rm -f conftest*
fi
done
LIBS="$ac_save_libs"
CFLAGS="$ac_save_cflags"
fi
echo "configure:10615: result: $krb_cv_sys_x_libs_rpath" >&5
echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
X_LIBS="$krb_cv_sys_x_libs"
fi
if test "$no_x" != yes; then
HAVE_X_TRUE=
HAVE_X_FALSE='#'
else
HAVE_X_TRUE='#'
HAVE_X_FALSE=
fi
save_CFLAGS="$CFLAGS"
CFLAGS="$X_CFLAGS $CFLAGS"
save_LIBS="$LIBS"
LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS"
echo "configure:10632: checking for XauWriteAuth" >&5
echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" X11 Xau; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 10647 "configure"
#include "confdefs.h"
int
main ()
{
XauWriteAuth()
;
return 0;
}
EOF
if { (eval echo configure:10657: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
if false; then
for ac_func in XauWriteAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:10675: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10681 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:10718: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# XauWriteAuth
eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauWriteAuth=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_XauWriteAuth=yes"
eval "LIB_XauWriteAuth="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:10738: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_XauWriteAuth=no"
eval "LIB_XauWriteAuth="
echo "configure:10744: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_XauWriteAuth=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 "configure:10756: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
echo "configure:10762: checking for XauReadAuth" >&5
echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" X11 Xau; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 10777 "configure"
#include "confdefs.h"
int
main ()
{
XauReadAuth()
;
return 0;
}
EOF
if { (eval echo configure:10787: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
if false; then
for ac_func in XauReadAuth
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:10805: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10811 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10839: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:10848: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# XauReadAuth
eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauReadAuth=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_XauReadAuth=yes"
eval "LIB_XauReadAuth="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:10868: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_XauReadAuth=no"
eval "LIB_XauReadAuth="
echo "configure:10874: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_XauReadAuth=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 "configure:10886: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
LIBS="$LIB_XauReadAauth $LIBS"
echo "configure:10891: checking for XauFileName" >&5
echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
if test "${ac_cv_funclib_XauFileName+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" X11 Xau; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 10906 "configure"
#include "confdefs.h"
int
main ()
{
XauFileName()
;
return 0;
}
EOF
if { (eval echo configure:10916: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_XauFileName"
if false; then
for ac_func in XauFileName
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:10934: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 10940 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:10968: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:10977: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# XauFileName
eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_XauFileName=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_XauFileName=yes"
eval "LIB_XauFileName="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:10997: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_XauFileName=no"
eval "LIB_XauFileName="
echo "configure:11003: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_XauFileName=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 "configure:11015: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
LIBS="$ac_xxx"
case "$ac_cv_funclib_XauWriteAuth" in
yes) ;;
no) ;;
*) if test "$ac_cv_funclib_XauReadAuth" = yes; then
if test "$ac_cv_funclib_XauFileName" = yes; then
LIB_XauReadAuth="$LIB_XauWriteAuth"
else
LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
fi
else
if test "$ac_cv_funclib_XauFileName" = yes; then
LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
else
LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
fi
fi
;;
esac
if test "$AUTOMAKE" != ""; then
if test "$ac_cv_func_XauWriteAuth" != "yes"; then
NEED_WRITEAUTH_TRUE=
NEED_WRITEAUTH_FALSE='#'
else
NEED_WRITEAUTH_TRUE='#'
NEED_WRITEAUTH_FALSE=
fi
else
if test "$ac_cv_func_XauWriteAuth" != "yes"; then
NEED_WRITEAUTH_TRUE=
NEED_WRITEAUTH_FALSE='#'
else
NEED_WRITEAUTH_TRUE='#'
NEED_WRITEAUTH_FALSE=
fi
fi
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS
echo "configure:11061: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11067 "configure"
#include "confdefs.h"
int
main ()
{
/* FIXME: Include the comments suggested by Paul. */
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in
an arm of an if-expression whose if-part is not a constant
expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
#endif
;
return 0;
}
EOF
if { (eval echo configure:11121: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "configure:11130: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
cat >>confdefs.h <<\EOF
#define const
EOF
fi
echo "configure:11137: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11143 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((off_t *) 0)
return 0;
if (sizeof (off_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:11157: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_off_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_off_t=no
fi
rm -f conftest*
fi
echo "configure:11166: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
:
else
cat >>confdefs.h <<EOF
#define off_t long
EOF
fi
echo "configure:11175: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11181 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
return 0;
if (sizeof (size_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:11195: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_size_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "configure:11204: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
:
else
cat >>confdefs.h <<EOF
#define size_t unsigned
EOF
fi
echo "configure:11213: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11219 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <unistd.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
ac_cv_type_ssize_t=yes
else
ac_cv_type_ssize_t=no
fi
rm -f conftest*
fi
echo "configure:11236: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = no; then
cat >>confdefs.h <<\EOF
#define ssize_t int
EOF
fi
echo "configure:11243: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11249 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((pid_t *) 0)
return 0;
if (sizeof (pid_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:11263: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_pid_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_pid_t=no
fi
rm -f conftest*
fi
echo "configure:11272: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
:
else
cat >>confdefs.h <<EOF
#define pid_t int
EOF
fi
echo "configure:11281: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11287 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes
else
ac_cv_type_uid_t=no
fi
rm -f conftest*
fi
echo "configure:11299: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then
cat >>confdefs.h <<\EOF
#define uid_t int
EOF
cat >>confdefs.h <<\EOF
#define gid_t int
EOF
fi
echo "configure:11309: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11315 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
ac_cv_type_mode_t=yes
else
ac_cv_type_mode_t=no
fi
rm -f conftest*
fi
echo "configure:11331: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = no; then
cat >>confdefs.h <<\EOF
#define mode_t unsigned short
EOF
fi
echo "configure:11338: checking for sig_atomic_t" >&5
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11344 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <signal.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
ac_cv_type_sig_atomic_t=yes
else
ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*
fi
echo "configure:11361: result: $ac_cv_type_sig_atomic_t" >&5
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
if test $ac_cv_type_sig_atomic_t = no; then
cat >>confdefs.h <<\EOF
#define sig_atomic_t int
EOF
fi
cv=`echo "long long" | sed 'y%./+- %__p__%'`
echo "configure:11369: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11375 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
int
main ()
{
long long foo;
;
return 0;
}
EOF
if { (eval echo configure:11390: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:11400: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:11405: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11411 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((long long *) 0)
return 0;
if (sizeof (long long))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:11425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_long_long=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest*
fi
echo "configure:11434: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
cat >>confdefs.h <<EOF
#define HAVE_LONG_LONG 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
echo "configure:11446: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11452 "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:11465: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "configure:11474: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
echo "configure:11481: checking whether struct tm is in sys/time.h or time.h" >&5
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
if test "${ac_cv_struct_tm+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11487 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int
main ()
{
struct tm *tp; tp->tm_sec;
;
return 0;
}
EOF
if { (eval echo configure:11499: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_struct_tm=time.h
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*
fi
echo "configure:11508: result: $ac_cv_struct_tm" >&5
echo "${ECHO_T}$ac_cv_struct_tm" >&6
if test $ac_cv_struct_tm = sys/time.h; then
cat >>confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
EOF
fi
echo "configure:11515: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11521 "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:11529: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
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 11543 "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
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 11558 "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
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 11576 "configure"
#include "confdefs.h"
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#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:11600: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
fi
fi
echo "configure:11612: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_header in \
arpa/ftp.h \
arpa/inet.h \
arpa/nameser.h \
arpa/telnet.h \
bind/bitypes.h \
bsdsetjmp.h \
crypt.h \
curses.h \
dbm.h \
dirent.h \
dlfcn.h \
err.h \
errno.h \
fcntl.h \
fnmatch.h \
grp.h \
inttypes.h \
io.h \
limits.h \
maillock.h \
ndbm.h \
net/if.h \
netdb.h \
netinet/in.h \
netinet/in6.h \
netinet/in6_machtypes.h \
netinet/in6_var.h \
netinet/in_systm.h \
netinet6/in6.h \
netinfo/ni.h \
paths.h \
pthread.h \
pty.h \
pwd.h \
resolv.h \
rpcsvc/dbm.h \
sac.h \
security/pam_modules.h \
sgtty.h \
shadow.h \
siad.h \
signal.h \
stropts.h \
sys/bitypes.h \
sys/category.h \
sys/file.h \
sys/filio.h \
sys/ioccom.h \
sys/ioctl.h \
sys/param.h \
sys/proc.h \
sys/pty.h \
sys/ptyio.h \
sys/ptyvar.h \
sys/resource.h \
sys/select.h \
sys/socket.h \
sys/sockio.h \
sys/stat.h \
sys/str_tty.h \
sys/stream.h \
sys/stropts.h \
sys/strtty.h \
sys/syscall.h \
sys/sysctl.h \
sys/termio.h \
sys/time.h \
sys/timeb.h \
sys/times.h \
sys/tty.h \
sys/types.h \
sys/uio.h \
sys/un.h \
sys/utsname.h \
sys/wait.h \
syslog.h \
term.h \
termio.h \
termios.h \
time.h \
tmpdir.h \
udb.h \
unistd.h \
userconf.h \
usersec.h \
util.h \
utmp.h \
utmpx.h \
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:11714: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11720 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11725: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:11737: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
for ac_header in standards.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:11752: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11758 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11763: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:11775: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
for i in netinet/ip.h netinet/tcp.h; do
cv=`echo "$i" | sed 'y%./+-%__p_%'`
echo "configure:11785: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11791 "configure"
#include "confdefs.h"
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11800: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "ac_cv_header_$cv=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_header_$cv=no"
fi
rm -f conftest*
fi
echo "configure:11812: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
ac_res=`eval echo \\$ac_cv_header_$cv`
if test "$ac_res" = yes; then
ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
done
if false;then
for ac_header in netinet/ip.h netinet/tcp.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:11831: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 11837 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:11842: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:11854: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
fi
# Check whether --enable-netinfo or --disable-netinfo was given.
if test "${enable_netinfo+set}" = set; then
enableval="$enable_netinfo"
fi
if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_NETINFO 1
EOF
fi
if test "$ac_cv_header_err_h" = yes; then
have_err_h_TRUE=
have_err_h_FALSE='#'
else
have_err_h_TRUE='#'
have_err_h_FALSE=
fi
if test "$ac_cv_header_fnmatch_h" = yes; then
have_fnmatch_h_TRUE=
have_fnmatch_h_FALSE='#'
else
have_fnmatch_h_TRUE='#'
have_fnmatch_h_FALSE=
fi
# Check whether --with-ipv6 or --without-ipv6 was given.
if test "${with_ipv6+set}" = set; then
withval="$with_ipv6"
if test "$withval" = "no"; then
ac_cv_lib_ipv6=no
fi
fi
if test "${ac_cv_lib_ipv6+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
v6type=unknown
v6lib=none
echo "configure:11898: checking ipv6 stack type" >&5
echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
for i in v6d toshiba kame inria zeta linux; do
case $i in
v6d)
cat >conftest.$ac_ext <<EOF
#line 11904 "configure"
#include "confdefs.h"
dnl
#include </usr/local/v6/include/sys/types.h>
#ifdef __V6D__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=v6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-I/usr/local/v6/include $CFLAGS"
fi
rm -f conftest*
;;
toshiba)
cat >conftest.$ac_ext <<EOF
#line 11922 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _TOSHIBA_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
kame)
cat >conftest.$ac_ext <<EOF
#line 11940 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef __KAME__
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
inria)
cat >conftest.$ac_ext <<EOF
#line 11958 "configure"
#include "confdefs.h"
dnl
#include <netinet/in.h>
#ifdef IPV6_INRIA_VERSION
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
zeta)
cat >conftest.$ac_ext <<EOF
#line 11974 "configure"
#include "confdefs.h"
dnl
#include <sys/param.h>
#ifdef _ZETA_MINAMI_INET6
yes
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
v6type=$i; v6lib=inet6;
v6libdir=/usr/local/v6/lib;
CFLAGS="-DINET6 $CFLAGS"
fi
rm -f conftest*
;;
linux)
if test -d /usr/inet6; then
v6type=$i
v6lib=inet6
v6libdir=/usr/inet6
CFLAGS="-DINET6 $CFLAGS"
fi
;;
esac
if test "$v6type" != "unknown"; then
break
fi
done
echo "configure:12003: result: $v6type" >&5
echo "${ECHO_T}$v6type" >&6
if test "$v6lib" != "none"; then
for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
if test -d $dir -a -f $dir/lib$v6lib.a; then
LIBS="-L$dir -l$v6lib $LIBS"
break
fi
done
fi
cat >conftest.$ac_ext <<EOF
#line 12014 "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_NETINET_IN6_H
#include <netinet/in6.h>
#endif
int
main ()
{
struct sockaddr_in6 sin6;
int s;
s = socket(AF_INET6, SOCK_DGRAM, 0);
sin6.sin6_family = AF_INET6;
sin6.sin6_port = htons(17);
sin6.sin6_addr = in6addr_any;
bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
;
return 0;
}
EOF
if { (eval echo configure:12042: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_lib_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_lib_ipv6=no
fi
rm -f conftest*
fi
echo "configure:12051: checking for IPv6" >&5
echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
echo "configure:12053: result: $ac_cv_lib_ipv6" >&5
echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
if test "$ac_cv_lib_ipv6" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_IPV6 1
EOF
fi
echo "configure:12060: checking for socket" >&5
echo $ECHO_N "checking for socket... $ECHO_C" >&6
if test "${ac_cv_funclib_socket+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12075 "configure"
#include "confdefs.h"
int
main ()
{
socket()
;
return 0;
}
EOF
if { (eval echo configure:12085: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in socket
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12103: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12109 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12137: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12146: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:12166: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_socket=no"
eval "LIB_socket="
echo "configure:12172: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:12184: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_socket"; then
LIBS="$LIB_socket $LIBS"
fi
echo "configure:12191: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12206 "configure"
#include "confdefs.h"
int
main ()
{
gethostbyname()
;
return 0;
}
EOF
if { (eval echo configure:12216: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in gethostbyname
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12234: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12240 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12268: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12277: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:12297: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_gethostbyname=no"
eval "LIB_gethostbyname="
echo "configure:12303: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:12315: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_gethostbyname"; then
LIBS="$LIB_gethostbyname $LIBS"
fi
echo "configure:12322: checking for syslog" >&5
echo $ECHO_N "checking for syslog... $ECHO_C" >&6
if test "${ac_cv_funclib_syslog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12337 "configure"
#include "confdefs.h"
int
main ()
{
syslog()
;
return 0;
}
EOF
if { (eval echo configure:12347: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in syslog
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12365: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12371 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12399: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12408: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:12428: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_syslog=no"
eval "LIB_syslog="
echo "configure:12434: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:12446: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_syslog"; then
LIBS="$LIB_syslog $LIBS"
fi
echo "configure:12453: checking for logwtmp" >&5
echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
if test "${ac_cv_funclib_logwtmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" util; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12468 "configure"
#include "confdefs.h"
int
main ()
{
logwtmp()
;
return 0;
}
EOF
if { (eval echo configure:12478: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_logwtmp"
if false; then
for ac_func in logwtmp
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12496: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12502 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12530: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12539: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# logwtmp
eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_logwtmp=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_logwtmp=yes"
eval "LIB_logwtmp="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:12559: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_logwtmp=no"
eval "LIB_logwtmp="
echo "configure:12565: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_logwtmp=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 "configure:12577: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:12581: checking for tgetent" >&5
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
if test "${ac_cv_funclib_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" termcap ncurses curses; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12596 "configure"
#include "confdefs.h"
int
main ()
{
tgetent()
;
return 0;
}
EOF
if { (eval echo configure:12606: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in tgetent
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12624: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12630 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12658: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12667: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:12687: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_tgetent=no"
eval "LIB_tgetent="
echo "configure:12693: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:12705: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:12709: checking for gethostbyname2" >&5
echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" inet6 ip6; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12724 "configure"
#include "confdefs.h"
int
main ()
{
gethostbyname2()
;
return 0;
}
EOF
if { (eval echo configure:12734: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_gethostbyname2"
if false; then
for ac_func in gethostbyname2
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12752: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12758 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12786: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12795: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# gethostbyname2
eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_gethostbyname2=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_gethostbyname2=yes"
eval "LIB_gethostbyname2="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:12815: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_gethostbyname2=no"
eval "LIB_gethostbyname2="
echo "configure:12821: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_gethostbyname2=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 "configure:12833: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_gethostbyname2"; then
LIBS="$LIB_gethostbyname2 $LIBS"
fi
echo "configure:12840: checking for res_search" >&5
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
if test "${ac_cv_funclib_res_search+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12855 "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:12878: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in res_search
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:12896: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 12902 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:12930: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:12939: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:12959: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_res_search=no"
eval "LIB_res_search="
echo "configure:12965: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:12977: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_res_search"; then
LIBS="$LIB_res_search $LIBS"
fi
echo "configure:12984: checking for dn_expand" >&5
echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
if test "${ac_cv_funclib_dn_expand+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 12999 "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:13022: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in dn_expand
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13040: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13046 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13074: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13083: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:13103: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_dn_expand=no"
eval "LIB_dn_expand="
echo "configure:13109: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:13121: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test -n "$LIB_dn_expand"; then
LIBS="$LIB_dn_expand $LIBS"
fi
echo "configure:13128: checking for working snprintf" >&5
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_working+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 13138 "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:13149: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_snprintf_working=no
fi
rm -f conftest*
fi
fi
echo "configure:13160: result: $ac_cv_func_snprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
if test "$ac_cv_func_snprintf_working" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF
fi
if test "$ac_cv_func_snprintf_working" = yes; then
if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
echo "configure:13170: checking if snprintf needs a prototype" >&5
echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_snprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13176 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:13189: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_snprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_snprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:13198: result: $ac_cv_func_snprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
if test "$ac_cv_func_snprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
EOF
fi
fi
fi
echo "configure:13208: checking for working vsnprintf" >&5
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_working+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_vsnprintf_working=yes
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 13218 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
int foo(int num, ...)
{
char bar[3];
va_list arg;
va_start(arg, num);
vsnprintf(bar, 2, "%s", arg);
va_end(arg);
return strcmp(bar, "1");
}
int main()
{
return foo(0, "12");
}
EOF
if { (eval echo configure:13237: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_vsnprintf_working=no
fi
rm -f conftest*
fi
fi
echo "configure:13248: result: $ac_cv_func_vsnprintf_working" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
if test "$ac_cv_func_vsnprintf_working" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_VSNPRINTF 1
EOF
fi
if test "$ac_cv_func_vsnprintf_working" = yes; then
if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
echo "configure:13258: checking if vsnprintf needs a prototype" >&5
echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13264 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
struct foo { int foo; } xx;
extern int vsnprintf (struct foo*);
vsnprintf(&xx);
;
return 0;
}
EOF
if { (eval echo configure:13277: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_func_vsnprintf_noproto=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_func_vsnprintf_noproto=no"
fi
rm -f conftest*
fi
echo "configure:13286: result: $ac_cv_func_vsnprintf_noproto" >&5
echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
if test "$ac_cv_func_vsnprintf_noproto" = yes; then
cat >>confdefs.h <<\EOF
#define NEED_VSNPRINTF_PROTO 1
EOF
fi
fi
fi
for ac_func in \
_getpty \
_scrsize \
fcntl \
getmsg \
gettimeofday \
getuid \
grantpt \
mktime \
ptsname \
rand \
random \
revoke \
select \
setitimer \
setpcred \
setpgid \
setproctitle \
setregid \
setresgid \
setresuid \
setreuid \
setsid \
setutent \
sigaction \
strstr \
timegm \
ttyname \
ttyslot \
umask \
unlockpt \
vhangup \
yp_get_default_domain \
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13331: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13337 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13365: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13374: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
for ac_header in capability.h sys/capability.h
do
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
case "${CPPFLAGS+set} $ac_configure_args" in
*" CPPFLAGS="* );;
"set "*) ac_configure_args="CPPFLAGS='$CPPFLAGS' $ac_configure_args";;
esac
echo "configure:13389: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13395 "configure"
#include "confdefs.h"
#include <$ac_header>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:13400: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
eval "$ac_ac_Header=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_Header=no"
fi
rm -f conftest*
fi
echo "configure:13412: result: `eval echo '${'$ac_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
EOF
fi
done
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13423: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13429 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13457: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13466: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
echo "configure:13474: checking for getpwnam_r" >&5
echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" c_r; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 13489 "configure"
#include "confdefs.h"
int
main ()
{
getpwnam_r()
;
return 0;
}
EOF
if { (eval echo configure:13499: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
if false; then
for ac_func in getpwnam_r
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13517: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13523 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13551: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13560: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# getpwnam_r
eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getpwnam_r=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_getpwnam_r=yes"
eval "LIB_getpwnam_r="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:13580: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_getpwnam_r=no"
eval "LIB_getpwnam_r="
echo "configure:13586: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_getpwnam_r=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 "configure:13598: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test "$ac_cv_func_getpwnam_r" = yes; then
echo "configure:13603: checking if getpwnam_r is posix" >&5
echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_libs="$LIBS"
LIBS="$LIBS $LIB_getpwnam_r"
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 13614 "configure"
#include "confdefs.h"
#include <pwd.h>
int main()
{
struct passwd pw, *pwd;
return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}
EOF
if { (eval echo configure:13623: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
ac_cv_func_getpwnam_r_posix=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_getpwnam_r_posix=no
fi
rm -f conftest*
fi
LIBS="$ac_libs"
fi
echo "configure:13635: result: $ac_cv_func_getpwnam_r_posix" >&5
echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
if test "$ac_cv_func_getpwnam_r_posix" = yes; then
cat >>confdefs.h <<\EOF
#define POSIX_GETPWNAM_R 1
EOF
fi
fi
echo "configure:13644: checking for getsockopt" >&5
echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_getsockopt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 13659 "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 ()
{
getsockopt(0,0,0,0,0)
;
return 0;
}
EOF
if { (eval echo configure:13675: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_getsockopt"
if false; then
for ac_func in getsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13693: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13699 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13727: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13736: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# getsockopt
eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_getsockopt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_getsockopt=yes"
eval "LIB_getsockopt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:13756: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_getsockopt=no"
eval "LIB_getsockopt="
echo "configure:13762: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_getsockopt=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 "configure:13774: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:13778: checking for setsockopt" >&5
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
if test "${ac_cv_funclib_setsockopt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" ; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 13793 "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 ()
{
setsockopt(0,0,0,0,0)
;
return 0;
}
EOF
if { (eval echo configure:13809: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_setsockopt"
if false; then
for ac_func in setsockopt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13827: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13833 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13861: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13870: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# setsockopt
eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_setsockopt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_setsockopt=yes"
eval "LIB_setsockopt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:13890: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_setsockopt=no"
eval "LIB_setsockopt="
echo "configure:13896: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_setsockopt=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 "configure:13908: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
for ac_func in getudbnam setlim
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:13915: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13921 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:13949: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:13958: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
echo "configure:13966: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 13972 "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:13992: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_signal=void
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_signal=int
fi
rm -f conftest*
fi
echo "configure:14001: result: $ac_cv_type_signal" >&5
echo "${ECHO_T}$ac_cv_type_signal" >&6
cat >>confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
if test "$ac_cv_type_signal" = "void" ; then
cat >>confdefs.h <<\EOF
#define VOID_RETSIGTYPE 1
EOF
fi
echo "configure:14012: checking if realloc if broken" >&5
echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
if test "${ac_cv_func_realloc_broken+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<EOF
#line 14022 "configure"
#include "confdefs.h"
#include <stddef.h>
#include <stdlib.h>
int main()
{
return realloc(NULL, 17) == NULL;
}
EOF
if { (eval echo configure:14031: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_realloc_broken=yes
fi
rm -f conftest*
fi
fi
echo "configure:14042: result: $ac_cv_func_realloc_broken" >&5
echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
if test "$ac_cv_func_realloc_broken" = yes ; then
cat >>confdefs.h <<\EOF
#define BROKEN_REALLOC 1
EOF
fi
echo "configure:14050: checking for ut_addr in struct utmp" >&5
echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14056 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_addr;
;
return 0;
}
EOF
if { (eval echo configure:14067: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_addr=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_addr=no
fi
rm -f conftest*
fi
echo "configure:14076: result: $ac_cv_type_struct_utmp_ut_addr" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_ADDR 1
EOF
fi
echo "configure:14086: checking for ut_host in struct utmp" >&5
echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14092 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_host;
;
return 0;
}
EOF
if { (eval echo configure:14103: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_host=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_host=no
fi
rm -f conftest*
fi
echo "configure:14112: result: $ac_cv_type_struct_utmp_ut_host" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
EOF
fi
echo "configure:14122: checking for ut_id in struct utmp" >&5
echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14128 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_id;
;
return 0;
}
EOF
if { (eval echo configure:14139: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_id=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_id=no
fi
rm -f conftest*
fi
echo "configure:14148: result: $ac_cv_type_struct_utmp_ut_id" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_ID 1
EOF
fi
echo "configure:14158: checking for ut_pid in struct utmp" >&5
echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14164 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_pid;
;
return 0;
}
EOF
if { (eval echo configure:14175: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_pid=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_pid=no
fi
rm -f conftest*
fi
echo "configure:14184: result: $ac_cv_type_struct_utmp_ut_pid" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_PID 1
EOF
fi
echo "configure:14194: checking for ut_type in struct utmp" >&5
echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14200 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_type;
;
return 0;
}
EOF
if { (eval echo configure:14211: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_type=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_type=no
fi
rm -f conftest*
fi
echo "configure:14220: result: $ac_cv_type_struct_utmp_ut_type" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
EOF
fi
echo "configure:14230: checking for ut_user in struct utmp" >&5
echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14236 "configure"
#include "confdefs.h"
#include <utmp.h>
int
main ()
{
struct utmp x; x.ut_user;
;
return 0;
}
EOF
if { (eval echo configure:14247: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmp_ut_user=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmp_ut_user=no
fi
rm -f conftest*
fi
echo "configure:14256: result: $ac_cv_type_struct_utmp_ut_user" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_USER 1
EOF
fi
echo "configure:14266: checking for ut_exit in struct utmpx" >&5
echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14272 "configure"
#include "confdefs.h"
#include <utmpx.h>
int
main ()
{
struct utmpx x; x.ut_exit;
;
return 0;
}
EOF
if { (eval echo configure:14283: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmpx_ut_exit=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_exit=no
fi
rm -f conftest*
fi
echo "configure:14292: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
EOF
fi
echo "configure:14302: checking for ut_syslen in struct utmpx" >&5
echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14308 "configure"
#include "confdefs.h"
#include <utmpx.h>
int
main ()
{
struct utmpx x; x.ut_syslen;
;
return 0;
}
EOF
if { (eval echo configure:14319: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_utmpx_ut_syslen=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_utmpx_ut_syslen=no
fi
rm -f conftest*
fi
echo "configure:14328: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
EOF
fi
echo "configure:14338: checking for tm_gmtoff in struct tm" >&5
echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14344 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_gmtoff;
;
return 0;
}
EOF
if { (eval echo configure:14355: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_tm_tm_gmtoff=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_gmtoff=no
fi
rm -f conftest*
fi
echo "configure:14364: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
EOF
fi
echo "configure:14374: checking for tm_zone in struct tm" >&5
echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14380 "configure"
#include "confdefs.h"
#include <time.h>
int
main ()
{
struct tm x; x.tm_zone;
;
return 0;
}
EOF
if { (eval echo configure:14391: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_tm_tm_zone=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_tm_tm_zone=no
fi
rm -f conftest*
fi
echo "configure:14400: result: $ac_cv_type_struct_tm_tm_zone" >&5
echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
EOF
fi
echo "configure:14410: checking for timezone" >&5
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
if test "${ac_cv_var_timezone+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14416 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int
main ()
{
foo()
;
return 0;
}
EOF
if { (eval echo configure:14428: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_var_timezone=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_var_timezone=no
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_var_timezone`
echo "configure:14438: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
cat >>confdefs.h <<EOF
#define HAVE_TIMEZONE 1
EOF
echo "configure:14446: checking if timezone is properly declared" >&5
echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
if test "${ac_cv_var_timezone_declaration+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14452 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int
main ()
{
timezone.foo = 1;
;
return 0;
}
EOF
if { (eval echo configure:14464: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_var_timezone_declaration=no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_var_timezone_declaration=yes"
fi
rm -f conftest*
fi
echo "configure:14473: result: $ac_cv_var_timezone_declaration" >&5
echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_TIMEZONE_DECLARATION 1
EOF
fi
fi
cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo "configure:14483: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14489 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
sa_family_t foo;
;
return 0;
}
EOF
if { (eval echo configure:14505: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:14515: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:14520: checking for sa_family_t" >&5
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
if test "${ac_cv_type_sa_family_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14526 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((sa_family_t *) 0)
return 0;
if (sizeof (sa_family_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:14540: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_sa_family_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_sa_family_t=no
fi
rm -f conftest*
fi
echo "configure:14549: result: $ac_cv_type_sa_family_t" >&5
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
if test $ac_cv_type_sa_family_t = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SA_FAMILY_T 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo "configure:14562: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14568 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
socklen_t foo;
;
return 0;
}
EOF
if { (eval echo configure:14584: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:14594: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:14599: checking for socklen_t" >&5
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
if test "${ac_cv_type_socklen_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14605 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((socklen_t *) 0)
return 0;
if (sizeof (socklen_t))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:14619: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_socklen_t=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_socklen_t=no
fi
rm -f conftest*
fi
echo "configure:14628: result: $ac_cv_type_socklen_t" >&5
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
if test $ac_cv_type_socklen_t = yes; then
cat >>confdefs.h <<EOF
#define HAVE_SOCKLEN_T 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
echo "configure:14641: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14647 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr foo;
;
return 0;
}
EOF
if { (eval echo configure:14663: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:14673: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:14678: checking for struct sockaddr" >&5
echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14684 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr *) 0)
return 0;
if (sizeof (struct sockaddr))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:14698: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr=no
fi
rm -f conftest*
fi
echo "configure:14707: result: $ac_cv_type_struct_sockaddr" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
if test $ac_cv_type_struct_sockaddr = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo "configure:14720: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14726 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <sys/socket.h>
int
main ()
{
struct sockaddr_storage foo;
;
return 0;
}
EOF
if { (eval echo configure:14742: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:14752: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:14757: checking for struct sockaddr_storage" >&5
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14763 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct sockaddr_storage *) 0)
return 0;
if (sizeof (struct sockaddr_storage))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:14777: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr_storage=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_storage=no
fi
rm -f conftest*
fi
echo "configure:14786: result: $ac_cv_type_struct_sockaddr_storage" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
if test $ac_cv_type_struct_sockaddr_storage = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
echo "configure:14799: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14805 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#include <netdb.h>
int
main ()
{
struct addrinfo foo;
;
return 0;
}
EOF
if { (eval echo configure:14821: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval "ac_cv_type_$cv=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "ac_cv_type_$cv=no"
fi
rm -f conftest*
fi
ac_foo=`eval echo \\$ac_cv_type_$cv`
echo "configure:14831: result: $ac_foo" >&5
echo "${ECHO_T}$ac_foo" >&6
if test "$ac_foo" = yes; then
ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
if false; then
echo "configure:14836: checking for struct addrinfo" >&5
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14842 "configure"
#include "confdefs.h"
$ac_includes_default
int
main ()
{
if ((struct addrinfo *) 0)
return 0;
if (sizeof (struct addrinfo))
return 0;
;
return 0;
}
EOF
if { (eval echo configure:14856: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_addrinfo=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_addrinfo=no
fi
rm -f conftest*
fi
echo "configure:14865: result: $ac_cv_type_struct_addrinfo" >&5
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
if test $ac_cv_type_struct_addrinfo = yes; then
cat >>confdefs.h <<EOF
#define HAVE_STRUCT_ADDRINFO 1
EOF
fi
fi
cat >>confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
fi
echo "configure:14877: checking for struct winsize" >&5
echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
if test "${ac_cv_struct_winsize+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_struct_winsize=no
for i in sys/termios.h sys/ioctl.h; do
cat >conftest.$ac_ext <<EOF
#line 14885 "configure"
#include "confdefs.h"
#include <$i>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "struct[ ]*winsize" >/dev/null 2>&1; then
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 "configure:14901: result: $ac_cv_struct_winsize" >&5
echo "${ECHO_T}$ac_cv_struct_winsize" >&6
cat >conftest.$ac_ext <<EOF
#line 14904 "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
cat >>confdefs.h <<\EOF
#define HAVE_WS_XPIXEL 1
EOF
fi
rm -f conftest*
cat >conftest.$ac_ext <<EOF
#line 14916 "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
cat >>confdefs.h <<\EOF
#define HAVE_WS_YPIXEL 1
EOF
fi
rm -f conftest*
echo "configure:14927: checking for struct spwd" >&5
echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
if test "${ac_cv_struct_spwd+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14933 "configure"
#include "confdefs.h"
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int
main ()
{
struct spwd foo;
;
return 0;
}
EOF
if { (eval echo configure:14947: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_struct_spwd=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_struct_spwd=no
fi
rm -f conftest*
fi
echo "configure:14956: result: $ac_cv_struct_spwd" >&5
echo "${ECHO_T}$ac_cv_struct_spwd" >&6
if test "$ac_cv_struct_spwd" = "yes"; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SPWD 1
EOF
fi
echo "configure:14963: checking for sa_len in struct sockaddr" >&5
echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 14969 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
struct sockaddr x; x.sa_len;
;
return 0;
}
EOF
if { (eval echo configure:14981: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_type_struct_sockaddr_sa_len=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_type_struct_sockaddr_sa_len=no
fi
rm -f conftest*
fi
echo "configure:14990: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
EOF
fi
for i in int8_t int16_t int32_t int64_t; do
echo "configure:15001: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15008 "configure"
#include "confdefs.h"
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#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
int
main ()
{
$i x;
;
return 0;
}
EOF
if { (eval echo configure:15033: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval ac_cv_type_$i=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
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 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $type 1
EOF
fi
echo "configure:15049: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
done
for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
echo "configure:15053: checking for $i" >&5
echo $ECHO_N "checking for $i... $ECHO_C" >&6
if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15060 "configure"
#include "confdefs.h"
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#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
int
main ()
{
$i x;
;
return 0;
}
EOF
if { (eval echo configure:15085: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
eval ac_cv_type_$i=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
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 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >>confdefs.h <<EOF
#define $type 1
EOF
fi
echo "configure:15101: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6
done
echo "configure:15104: checking for MD4Init" >&5
echo $ECHO_N "checking for MD4Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD4Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_MD4Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15119 "configure"
#include "confdefs.h"
int
main ()
{
MD4Init()
;
return 0;
}
EOF
if { (eval echo configure:15129: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4Init=$ac_lib; else ac_cv_funclib_MD4Init=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_MD4Init=\${ac_cv_funclib_MD4Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_MD4Init"
if false; then
for ac_func in MD4Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15147: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15153 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15181: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15190: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# MD4Init
eval "ac_tr_func=HAVE_`echo MD4Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD4Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_MD4Init=yes"
eval "LIB_MD4Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15210: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_MD4Init=no"
eval "LIB_MD4Init="
echo "configure:15216: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_MD4Init=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 "configure:15228: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15232: checking for MD4_Init" >&5
echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD4_Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15247 "configure"
#include "confdefs.h"
int
main ()
{
MD4_Init()
;
return 0;
}
EOF
if { (eval echo configure:15257: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_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_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_MD4_Init"
if false; then
for ac_func in MD4_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15275: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15281 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15309: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15318: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# MD4_Init
eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD4_Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_MD4_Init=yes"
eval "LIB_MD4_Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15338: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_MD4_Init=no"
eval "LIB_MD4_Init="
echo "configure:15344: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_MD4_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 "configure:15356: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15360: checking for MD5Init" >&5
echo $ECHO_N "checking for MD5Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD5Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_MD5Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15375 "configure"
#include "confdefs.h"
int
main ()
{
MD5Init()
;
return 0;
}
EOF
if { (eval echo configure:15385: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5Init=$ac_lib; else ac_cv_funclib_MD5Init=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_MD5Init=\${ac_cv_funclib_MD5Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_MD5Init"
if false; then
for ac_func in MD5Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15403: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15409 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15437: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15446: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# MD5Init
eval "ac_tr_func=HAVE_`echo MD5Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD5Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_MD5Init=yes"
eval "LIB_MD5Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15466: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_MD5Init=no"
eval "LIB_MD5Init="
echo "configure:15472: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_MD5Init=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 "configure:15484: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15488: checking for MD5_Init" >&5
echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_MD5_Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15503 "configure"
#include "confdefs.h"
int
main ()
{
MD5_Init()
;
return 0;
}
EOF
if { (eval echo configure:15513: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_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_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_MD5_Init"
if false; then
for ac_func in MD5_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15531: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15537 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15565: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15574: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# MD5_Init
eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_MD5_Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_MD5_Init=yes"
eval "LIB_MD5_Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15594: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_MD5_Init=no"
eval "LIB_MD5_Init="
echo "configure:15600: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_MD5_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 "configure:15612: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15616: checking for SHA1Init" >&5
echo $ECHO_N "checking for SHA1Init... $ECHO_C" >&6
if test "${ac_cv_funclib_SHA1Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_SHA1Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15631 "configure"
#include "confdefs.h"
int
main ()
{
SHA1Init()
;
return 0;
}
EOF
if { (eval echo configure:15641: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1Init=$ac_lib; else ac_cv_funclib_SHA1Init=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_SHA1Init=\${ac_cv_funclib_SHA1Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_SHA1Init"
if false; then
for ac_func in SHA1Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15659: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15665 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15693: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15702: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# SHA1Init
eval "ac_tr_func=HAVE_`echo SHA1Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_SHA1Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_SHA1Init=yes"
eval "LIB_SHA1Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15722: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_SHA1Init=no"
eval "LIB_SHA1Init="
echo "configure:15728: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_SHA1Init=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 "configure:15740: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15744: checking for SHA1_Init" >&5
echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6
if test "${ac_cv_funclib_SHA1_Init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15759 "configure"
#include "confdefs.h"
int
main ()
{
SHA1_Init()
;
return 0;
}
EOF
if { (eval echo configure:15769: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_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_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_SHA1_Init"
if false; then
for ac_func in SHA1_Init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15787: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15793 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15821: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15830: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# SHA1_Init
eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_SHA1_Init=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_SHA1_Init=yes"
eval "LIB_SHA1_Init="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15850: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_SHA1_Init=no"
eval "LIB_SHA1_Init="
echo "configure:15856: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_SHA1_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 "configure:15868: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:15872: checking for des_cbc_encrypt" >&5
echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6
if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
ac_save_LIBS="$LIBS"
for ac_lib in "" crypto des; do
if test -n "$ac_lib"; then
ac_lib="-l$ac_lib"
else
ac_lib=""
fi
LIBS=" $ac_lib $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 15887 "configure"
#include "confdefs.h"
int
main ()
{
des_cbc_encrypt()
;
return 0;
}
EOF
if { (eval echo configure:15897: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
LIBS="$ac_save_LIBS"
fi
fi
eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
if false; then
for ac_func in des_cbc_encrypt
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:15915: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 15921 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:15949: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:15958: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# des_cbc_encrypt
eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "LIB_des_cbc_encrypt=$ac_res"
case "$ac_res" in
yes)
eval "ac_cv_func_des_cbc_encrypt=yes"
eval "LIB_des_cbc_encrypt="
cat >>confdefs.h <<EOF
#define $ac_tr_func 1
EOF
echo "configure:15978: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_des_cbc_encrypt=no"
eval "LIB_des_cbc_encrypt="
echo "configure:15984: result: no" >&5
echo "${ECHO_T}no" >&6
;;
*)
eval "ac_cv_func_des_cbc_encrypt=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 "configure:15996: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
echo "configure:16000: checking for el_init" >&5
echo $ECHO_N "checking for el_init... $ECHO_C" >&6
if test "${ac_cv_funclib_el_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&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"
else
ac_lib=""
fi
LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
cat >conftest.$ac_ext <<EOF
#line 16015 "configure"
#include "confdefs.h"
int
main ()
{
el_init()
;
return 0;
}
EOF
if { (eval echo configure:16025: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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"
if false; then
for ac_func in el_init
do
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
echo "configure:16043: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$ac_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 16049 "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. */
#ifdef __cplusplus
extern "C"
#endif
/* 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 ();
char (*f) ();
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
f = $ac_func;
#endif
;
return 0;
}
EOF
if { (eval echo configure:16077: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "$ac_ac_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
eval "$ac_ac_var=no"
fi
rm -f conftest*
fi
echo "configure:16086: result: `eval echo '${'$ac_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
if test `eval echo '${'$ac_ac_var'}'` = yes; then
cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
EOF
fi
done
fi
# 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 "configure:16106: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
no)
eval "ac_cv_func_el_init=no"
eval "LIB_el_init="
echo "configure:16112: result: no" >&5
echo "${ECHO_T}no" >&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 "configure:16124: result: yes, in $ac_res" >&5
echo "${ECHO_T}yes, in $ac_res" >&6
;;
esac
if test "$ac_cv_func_el_init" = yes ; then
echo "configure:16129: checking for four argument el_init" >&5
echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
if test "${ac_cv_func_el_init_four+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<EOF
#line 16135 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <histedit.h>
int
main ()
{
el_init("", NULL, NULL, NULL);
;
return 0;
}
EOF
if { (eval echo configure:16147: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
ac_cv_func_el_init_four=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_func_el_init_four=no
fi
rm -f conftest*
fi
echo "configure:16156: result: $ac_cv_func_el_init_four" >&5
echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
if test "$ac_cv_func_el_init_four" = yes; then
cat >>confdefs.h <<\EOF
#define HAVE_FOUR_VALUED_EL_INIT 1
EOF
fi
fi
ac_foo=no
if test "$with_readline" = yes; then
:
elif test "$ac_cv_func_readline" = yes; then
:
elif test "$ac_cv_func_el_init" = yes; then
ac_foo=yes
LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
else
LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
fi
if test "$ac_foo" = yes; then
el_compat_TRUE=
el_compat_FALSE='#'
else
el_compat_TRUE='#'
el_compat_FALSE=
fi
if test "$readline_libdir"; then
LIB_readline="-rpath $readline_libdir $LIB_readline"
fi
LIB_readline="$LIB_readline \$(LIB_tgetent)"
cat >>confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF
cat >>confdefs.h <<\EOF
#define AUTHENTICATION 1
EOF
cat >>confdefs.h <<\EOF
#define ENCRYPTION 1
EOF
cat >>confdefs.h <<\EOF
#define DES_ENCRYPTION 1
EOF
cat >>confdefs.h <<\EOF
#define DIAGNOSTICS 1
EOF
cat >>confdefs.h <<\EOF
#define OLD_ENVIRON 1
EOF
if false; then
cat >>confdefs.h <<\EOF
#define ENV_HACK 1
EOF
fi
# Simple test for streamspty, based on the existance of getmsg(), alas
# this breaks on SunOS4 which have streams but BSD-like ptys
#
# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
if test "$ac_cv_func_getmsg" = yes; then
echo "configure:16215: checking for streamspty" >&5
echo $ECHO_N "checking for streamspty... $ECHO_C" >&6
case "$host" in
*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
krb_cv_sys_streamspty=no
;;
*)
krb_cv_sys_streamspty=yes
;;
esac
echo "configure:16225: result: $krb_cv_sys_streamspty" >&5
echo "${ECHO_T}$krb_cv_sys_streamspty" >&6
fi
if test "$krb_cv_sys_streamspty" = yes; then
cat >>confdefs.h <<\EOF
#define STREAMSPTY 1
EOF
fi
echo "configure:16234: checking which authentication modules should be built" >&5
echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
LIB_AUTH_SUBDIRS=
if test "$ac_cv_header_siad_h" = yes; then
LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac
echo "configure:16246: result: $LIB_AUTH_SUBDIRS" >&5
echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
for i in bin lib libexec sbin; do
i=${i}dir
foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
x="\$${i}"
eval y="$x"
while test "x$y" != "x$x"; do
x="$y"
eval y="$x"
done
cat >>confdefs.h <<EOF
#define $foo "$x"
EOF
done
if false; then
# hack to shut up automake
LIBOBJS="$LIBOBJS make-print-version.o"
fi
LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
ac_config_files="$ac_config_files Makefile \
include/Makefile \
include/kadm5/Makefile \
lib/Makefile \
lib/45/Makefile \
lib/auth/Makefile \
lib/auth/afskauthlib/Makefile \
lib/auth/pam/Makefile \
lib/auth/sia/Makefile \
lib/asn1/Makefile \
lib/com_err/Makefile \
lib/des/Makefile \
lib/editline/Makefile \
lib/gssapi/Makefile \
lib/hdb/Makefile \
lib/kadm5/Makefile \
lib/kafs/Makefile \
lib/kdfs/Makefile \
lib/krb5/Makefile \
lib/otp/Makefile \
lib/sl/Makefile \
lib/vers/Makefile \
kuser/Makefile \
kpasswd/Makefile \
kadmin/Makefile \
admin/Makefile \
kdc/Makefile \
appl/Makefile \
appl/afsutil/Makefile \
appl/ftp/Makefile \
appl/ftp/common/Makefile \
appl/ftp/ftp/Makefile \
appl/ftp/ftpd/Makefile \
appl/kx/Makefile \
appl/login/Makefile \
appl/otp/Makefile \
appl/popper/Makefile \
appl/push/Makefile \
appl/rsh/Makefile \
appl/su/Makefile \
appl/xnlock/Makefile \
appl/telnet/Makefile \
appl/telnet/libtelnet/Makefile \
appl/telnet/telnet/Makefile \
appl/telnet/telnetd/Makefile \
appl/test/Makefile \
appl/kf/Makefile \
appl/dceutils/Makefile \
doc/Makefile \
"
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 | grep ac_space) 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='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
;;
esac;
} |
sed 's/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
if cmp -s $cache_file confcache; then :; else
if test -w $cache_file; then
test "x$cache_file" != "x/dev/null" && 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
DEFS=-DHAVE_CONFIG_H
# Save into config.log some information that might help in debugging.
echo >&5
echo "Cache variables:" >&5
# 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 | grep ac_space) 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='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
;;
esac;
} | sed 's/^/| /' >&5
echo >&5
echo "confdefs.h:" >&5
cat confdefs.h | sed 's/^/| /' >&5
: ${CONFIG_STATUS=./config.status}
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
echo creating $CONFIG_STATUS
cat >$CONFIG_STATUS <<\EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
debug=false
me=`echo "$0" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}
EOF
# Files that config.status was made for.
if test -n "$ac_config_files"; then
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_headers"; then
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_links"; then
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_commands"; then
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi
cat >>$CONFIG_STATUS <<\EOF
ac_cs_usage="\
\`$me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] FILE...
-h, --help print this help, then exit
-V, --version print version number, then exit
-d, --debug don't remove temporary files
--recheck update $me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
$config_files
Configuration headers:
$config_headers
Configuration commands:
$config_commands
Report bugs to <bug-autoconf@gnu.org>."
EOF
cat >>$CONFIG_STATUS <<EOF
ac_cs_version="\\
$CONFIG_STATUS generated by autoconf version 2.14a.
Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
`echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
EOF
cat >>$CONFIG_STATUS <<\EOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
case $1 in
--*=*)
ac_option=`expr "x$1" : 'x\([^=]*\)='`
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
shift
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
shift
;;
-*);;
*) # This is not an option, so the user has probably given explicit
# arguments.
ac_need_defaults=false;;
esac
case $1 in
# Handling of the options.
EOF
cat >>$CONFIG_STATUS <<EOF
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
EOF
cat >>$CONFIG_STATUS <<\EOF
--version | --vers* | -V )
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
echo "$me: ambiguous option: $ac_option
Try \`$me --help' for more information."; exit 1 ;;
--help | --hel | -h )
echo "$ac_cs_usage"; exit 0 ;;
--debug | --d* | -d )
debug=: ;;
--file | --fil | --fi | --f )
shift
CONFIG_FILES="$CONFIG_FILES $1"
ac_need_defaults=false;;
--header | --heade | --head | --hea )
shift
CONFIG_HEADERS="$CONFIG_HEADERS $1"
ac_need_defaults=false;;
# Handling of arguments.
'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
# This is an error.
-*) echo "$me: unrecognized option: $1
Try \`$me --help' for more information."; exit 1 ;;
*) echo "$me: invalid argument: $1"; exit 1 ;;
esac
shift
done
EOF
cat >>$CONFIG_STATUS <<\EOF
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
if $ac_need_defaults; then
: ${CONFIG_FILES=$config_files}
: ${CONFIG_HEADERS=$config_headers}
: ${CONFIG_COMMANDS=$config_commands}
fi
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap 'exit $?' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=$TMPDIR/cs$$-$RANDOM && (umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
exit 1;
}
EOF
cat >>$CONFIG_STATUS <<EOF
#
# INIT-COMMANDS section.
#
AMDEP="$AMDEP"
ac_aux_dir="$ac_aux_dir"
EOF
cat >>$CONFIG_STATUS <<EOF
#
# CONFIG_FILES section.
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
# Protect against being on the right side of a sed subst in config.status.
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@FFLAGS@,$FFLAGS,;t t
s,@DEFS@,$DEFS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
s,@AUTOHEADER@,$AUTOHEADER,;t t
s,@MAKEINFO@,$MAKEINFO,;t t
s,@AMTAR@,$AMTAR,;t t
s,@install_sh@,$install_sh,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@AMDEP@,$AMDEP,;t t
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
s,@DEPDIR@,$DEPDIR,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
s,@CC@,$CC,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@CPP@,$CPP,;t t
s,@CCDEPMODE@,$CCDEPMODE,;t t
s,@YACC@,$YACC,;t t
s,@LEX@,$LEX,;t t
s,@LEXLIB@,$LEXLIB,;t t
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
s,@RANLIB@,$RANLIB,;t t
s,@LN_S@,$LN_S,;t t
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
s,@LIBTOOL@,$LIBTOOL,;t t
s,@WFLAGS@,$WFLAGS,;t t
s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
s,@LIB_dbopen@,$LIB_dbopen,;t t
s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
s,@LIB_db_create@,$LIB_db_create,;t t
s,@DBLIB@,$DBLIB,;t t
s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
s,@LIB_socket@,$LIB_socket,;t t
s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
s,@LIB_syslog@,$LIB_syslog,;t t
s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
s,@LIB_res_search@,$LIB_res_search,;t t
s,@LIB_dn_expand@,$LIB_dn_expand,;t t
s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
s,@LIB_getsockopt@,$LIB_getsockopt,;t t
s,@LIB_setsockopt@,$LIB_setsockopt,;t t
s,@LIB_hstrerror@,$LIB_hstrerror,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LIB_crypt@,$LIB_crypt,;t t
s,@DIR_roken@,$DIR_roken,;t t
s,@LIB_roken@,$LIB_roken,;t t
s,@CPPFLAGS_roken@,$CPPFLAGS_roken,;t t
s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
s,@LIB_openldap@,$LIB_openldap,;t t
s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
s,@LIB_krb4@,$LIB_krb4,;t t
s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
s,@KRB4_TRUE@,$KRB4_TRUE,;t t
s,@KRB4_FALSE@,$KRB4_FALSE,;t t
s,@KRB5_TRUE@,$KRB5_TRUE,;t t
s,@KRB5_FALSE@,$KRB5_FALSE,;t t
s,@LIB_kdb@,$LIB_kdb,;t t
s,@DCE_TRUE@,$DCE_TRUE,;t t
s,@DCE_FALSE@,$DCE_FALSE,;t t
s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t
s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t
s,@LIB_otp@,$LIB_otp,;t t
s,@OTP_TRUE@,$OTP_TRUE,;t t
s,@OTP_FALSE@,$OTP_FALSE,;t t
s,@LIB_security@,$LIB_security,;t t
s,@NROFF@,$NROFF,;t t
s,@GROFF@,$GROFF,;t t
s,@CATMAN@,$CATMAN,;t t
s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
s,@CATMANEXT@,$CATMANEXT,;t t
s,@INCLUDE_readline@,$INCLUDE_readline,;t t
s,@LIB_readline@,$LIB_readline,;t t
s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
s,@LIB_hesiod@,$LIB_hesiod,;t t
s,@AIX_TRUE@,$AIX_TRUE,;t t
s,@AIX_FALSE@,$AIX_FALSE,;t t
s,@AIX4_TRUE@,$AIX4_TRUE,;t t
s,@AIX4_FALSE@,$AIX4_FALSE,;t t
s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
s,@LIB_dlopen@,$LIB_dlopen,;t t
s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
s,@X_CFLAGS@,$X_CFLAGS,;t t
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
s,@X_LIBS@,$X_LIBS,;t t
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
s,@LIB_XauFileName@,$LIB_XauFileName,;t t
s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
s,@LIB_logwtmp@,$LIB_logwtmp,;t t
s,@LIB_tgetent@,$LIB_tgetent,;t t
s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
s,@LIB_MD4Init@,$LIB_MD4Init,;t t
s,@LIB_MD4_Init@,$LIB_MD4_Init,;t t
s,@LIB_MD5Init@,$LIB_MD5Init,;t t
s,@LIB_MD5_Init@,$LIB_MD5_Init,;t t
s,@LIB_SHA1Init@,$LIB_SHA1Init,;t t
s,@LIB_SHA1_Init@,$LIB_SHA1_Init,;t t
s,@LIB_des_cbc_encrypt@,$LIB_des_cbc_encrypt,;t t
s,@LIB_el_init@,$LIB_el_init,;t t
s,@el_compat_TRUE@,$el_compat_TRUE,;t t
s,@el_compat_FALSE@,$el_compat_FALSE,;t t
s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
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_lines=48
ac_sed_frag=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag
else
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
fi
if test ! -s $tmp/subs.frag; then
ac_more_lines=false
else
# The purpose of the label and of the branching condition is to
# speed up the sed processing (if there are no `@' at all, there
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
ac_sed_frag=`expr $ac_sed_frag + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_lines`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
fi # test -n "$CONFIG_FILES"
EOF
cat >>$CONFIG_STATUS <<\EOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- | *:- | *:-:* ) # input from stdin
cat >$tmp/stdin
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
*:* ) 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.
ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
. : '\(.\)'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
{ case "$ac_dir" in
[\\/]* | ?:[\\/]* ) ac_incr_dir=;;
*) ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }
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
if test x"$ac_file" != x-; then
echo creating $ac_file
rm -f "$ac_file"
fi
configure_input="Generated automatically from `echo $ac_file_in |
sed 's,.*/,,'` by configure."
# Don't redirect the output to AC_FILE directly: use `mv' so that
# updating is atomic, and doesn't need trapping.
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]* | ?:[\\/]*)
# Absolute
test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
echo $f;;
*) # Relative
if test -f "$f"; then
# Build tree
echo $f
elif test -f "$ac_given_srcdir/$f"; then
# Source tree
echo $ac_given_srcdir/$f
else
# /dev/null tree
{ echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
fi;;
esac
done`
EOF
cat >>$CONFIG_STATUS <<EOF
sed "$ac_vpsub
$extrasub
EOF
cat >>$CONFIG_STATUS <<\EOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$srcdir,;t t
s,@top_srcdir@,$top_srcdir,;t t
s,@INSTALL@,$INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
rm -f $tmp/stdin
if test x"$ac_file" != x-; then
mv $tmp/out $ac_file
else
cat $tmp/out
rm -f $tmp/out
fi
done
EOF
cat >>$CONFIG_STATUS <<\EOF
#
# CONFIG_HEADER section.
#
# 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=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- | *:- | *:-:* ) # input from stdin
cat >$tmp/stdin
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
* ) ac_file_in=$ac_file.in ;;
esac
test x"$ac_file" != x- && echo creating $ac_file
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]* | ?:[\\/]*)
# Absolute
test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
echo $f;;
*) # Relative
if test -f "$f"; then
# Build tree
echo $f
elif test -f "$ac_given_srcdir/$f"; then
# Source tree
echo $ac_given_srcdir/$f
else
# /dev/null tree
{ echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
fi;;
esac
done`
# Remove the trailing spaces.
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
EOF
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h. The first handles `#define'
# templates, and the second `#undef' templates.
# 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.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `cleanup' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions. So we use
# `t cleanup' to jump over the second main sed command when it succeeded.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\EOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
t cleanup
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: cleanup
EOF
# If some macros were called several times there might be several times
# the same #defines, which is useless. Nevertheless, we may not want to
# sort them, since we want the *last* AC_DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
# 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.undefs <<\EOF
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
EOF
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo ' :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
# Write a limited-size here document to $tmp/defines.sed.
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#define' lines.
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
echo 'CEOF
sed -f $tmp/defines.sed $tmp/in >$tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
rm -f conftest.defines
mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo ' fi # egrep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS
# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
# Write a limited-size here document to $tmp/undefs.sed.
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#undef'
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
echo 'CEOF
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
rm -f conftest.undefs
mv conftest.tail conftest.undefs
done
rm -f conftest.undefs
cat >>$CONFIG_STATUS <<\EOF
if test x"$ac_file" = x-; then
echo "/* Generated automatically by configure. */" >$tmp/config.h
else
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
fi
cat $tmp/in >>$tmp/config.h
rm -f $tmp/in
if test x"$ac_file" != x-; then
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
echo "$ac_file is unchanged"
else
ac_dir=`expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
. : '\(.\)'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
{ case "$ac_dir" in
[\\/]* | ?:[\\/]* ) ac_incr_dir=;;
*) ac_incr_dir=.;;
esac
ac_dummy=""$ac_dir""
for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
test -d $ac_incr_dir || mkdir $ac_incr_dir
done; }
fi
rm -f $ac_file
mv $tmp/config.h $ac_file
fi
else
cat $tmp/config.h
rm -f $tmp/config.h
fi
done
EOF
cat >>$CONFIG_STATUS <<\EOF
#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
case $ac_dest in
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
default-2 )
test x"$AMDEP" != x"" ||
for mf in $CONFIG_FILES; do
case "$mf" in
Makefile) dirpart=.;;
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
*) continue;;
esac
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
# Extract the definition of DEP_FILES from the Makefile without
# running `make'.
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
test -z "$DEPDIR" && continue
# When using ansi2knr, U may be empty or an underscore; expand it
U=`sed -n -e '/^U = / s///p' < "$mf"`
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
# We invoke sed twice because it is the simplest approach to
# changing $(DEPDIR) to its actual value in the expansion.
for file in `sed -n -e '
/^DEP_FILES = .*\\\\$/ {
s/^DEP_FILES = //
:loop
s/\\\\$//
p
n
/\\\\$/ b loop
p
}
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
# Make sure the directory exists.
test -f "$dirpart/$file" && continue
fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
# echo "creating $dirpart/$file"
echo '# dummy' > "$dirpart/$file"
done
done
;;
esac
done
EOF
cat >>$CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
trap 'exit 1' 1 2 15
test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
HEIMDALVERSION="$PACKAGE-$VERSION"
cat > include/newversion.h.in <<EOF
const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
const char *heimdal_version = "$HEIMDALVERSION";
EOF
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 || echo unknown) 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