configure revision fa67ca21f6d5033221d9893b3c38a7bf8fecdb18
174a4f7b80af7f7a33cd9a098c13af23e5ec2a28David Lawrence# Copyright (C) 1996-2000 Internet Software Consortium.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Permission to use, copy, modify, and distribute this software for any
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# purpose with or without fee is hereby granted, provided that the above
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# copyright notice and this permission notice appear in all copies.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# From configure.in Revision: 1.197
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is free software; you can redistribute it and/or modify
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## it under the terms of the GNU General Public License as published by
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the Free Software Foundation; either version 2 of the License, or
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## (at your option) any later version.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is distributed in the hope that it will be useful, but
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## General Public License for more details.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## You should have received a copy of the GNU General Public License
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## along with this program; if not, write to the Free Software
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## As a special exception to the GNU General Public License, if you
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## distribute this file as part of a program that contains a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## configuration script generated by Autoconf, you may include it under
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the same distribution terms that you use for the rest of that program.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# serial 40 AC_PROG_LIBTOOL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_CHECK_LIBM - check for math library
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the libltdl convenience library and INCLTDL to the include flags for
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the libltdl header and adds --enable-ltdl-convenience to the
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# configure arguments. Note that LIBLTDL and INCLTDL are not
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# with '${top_builddir}/' and INCLTDL will be prefixed with
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# '${top_srcdir}/' (note the single quotes!). If your package is not
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# flat and you're not using automake, define top_builddir and
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# top_srcdir appropriately in the Makefiles.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the libltdl installable library and INCLTDL to the include flags for
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the libltdl header and adds --enable-ltdl-install to the configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# with '${top_srcdir}/' (note the single quotes!). If your package is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# not flat and you're not using automake, define top_builddir and
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# top_srcdir appropriately in the Makefiles.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Guess values for system-dependent variables and create Makefiles.
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff# Generated automatically using autoconf version 2.13
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This configure script is free software; the Free Software Foundation
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff# gives unlimited permission to copy, distribute and modify it.
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence# Any additions from configure.in:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-threads use multithreading"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-openssl=PATH Specify path for system-supplied openssl
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley (rather than using bind-9 internal openssl)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-gssapi=PATH Specify path for system-supplied GSSAPI"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-randomdev=PATH Specify path for random device"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-libtool use GNU libtool (following indented options supported)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-ipv6 use IPv6 [default=autodetect]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some variables set by options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The variables have the same names as the options, with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# dashes changed to underlines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some other variables.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Maximum number of lines to put in a shell here document.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If the previous option needs an argument, assign it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "$ac_prev=\$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-gas.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Omit some internal or obsolete options to make the list less imposing.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This message is too long to be a string in the A/UX 3.1 sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyUsage: configure [options] [host]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyOptions: [defaults in brackets after descriptions]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyConfiguration:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --cache-file=FILE cache test results in FILE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --help print this message
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --no-create do not create output files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --quiet, --silent do not print \`checking...' messages
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --version print the version of autoconf that created configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDirectory and file names:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [$ac_default_prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [same as prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --datadir=DIR read-only architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/share]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/com]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --includedir=DIR C header files in DIR [PREFIX/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-transform-name=PROGRAM
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley run sed PROGRAM on installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --host=HOST configure for HOST [guessed]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyFeatures and packages:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-includes=DIR X include files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-libraries=DIR X library files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_help"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "--enable and --with options recognized:$ac_help"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir | --includedir | --includedi | --included | --include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate | --localstat | --localsta | --localst \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --without-fp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name | --program-transform-name \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam | --program-transform-na \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name=* | --program-transform-name=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam=* | --program-transform-na=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n=* | --program-transform-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# Make sure we can run config.sub.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking host system type""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:699: checking host system type" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff @echo 'ac_maketemp="${MAKE}"'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$ac_maketemp"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:750: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Find a good install program. We prefer a C program (faster),
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# so one script is as good as another. But avoid the broken or
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# incompatible versions:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AFS /usr/afsws/bin/install, which mishandles nonexistent args
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:789: checking for a BSD compatible install" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -z "$INSTALL"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Account for people who put trailing slashes in PATH elements.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Don't use installbsd from OSF since it installs stuff as root
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # by default.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # AIX install. It has an incompatible calling convention.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson if test "${ac_cv_path_install+set}" = set; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence # As a last resort, use the slow shell script. We don't cache a
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence # path for INSTALL within a source directory, because that will
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence # break other packages using the cache if that directory is
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence # removed, or if the path is relative.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# It thinks the first close brace ends the variable substitution.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencetest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencetest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencetest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "ar", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho "configure:850: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a path.
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$AR"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# The POSIX ln(1) program. Non-POSIX systems may substitute
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# "copy" or something.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffar program not found. Please fix your PATH to include the directory in
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffwhich ar resides, or set AR in the environment with the full path to ar.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho "configure:906: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceif test -n "$ETAGS"; then
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrencetest -n "$ETAGS" && break
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Perl is optional; it is used only by some of the system test scripts.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Extract the first word of "$ac_prog", so it can be a program name with args.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:951: checking for $ac_word" >&5
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test -n "$PERL"; then
1ce985ab3c6670662d555c108b35fed84a6a1001David Lawrencetest -n "$PERL" && break
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Special processing of paths depending on whether --prefix,
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# --sysconfdir or --localstatedir arguments were given. What's
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# desired is some compatability with the way previous versions
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# of BIND built; they defaulted to /usr/local for most parts of
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# the installation, but named.boot/named.conf was in /etc
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# So ... if none of --prefix, --sysconfdir or --localstatedir are
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# specified, set things up that way. If --prefix is given, use
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# it for sysconfdir and localstatedir the way configure normally
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# would. To change the prefix for everything but leave named.conf
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# in /etc or named.pid in /var/run, then do this the usual configure way:
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# ./configure --prefix=/somewhere --sysconfdir=/etc
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# ./configure --prefix=/somewhere --localstatedir=/var
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# To put named.conf and named.pid in /usr/local with everything else,
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# set the prefix explicitly to /usr/local even though that's the default:
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff# ./configure --prefix=/usr/local
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff '${prefix}/etc')
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff '${prefix}/var')
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff# Make sure INSTALL uses an absolute path, else it will be wrong in all
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# configure based on the location of the file where it is substituted.
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# subdirectory of install-sh, This relative path will be wrong for all
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff# directories more than one level down from install-sh.
08a768e82ad64ede97f640c88e02984b59122753Michael Graff # Not all systems have dirname.
08a768e82ad64ede97f640c88e02984b59122753Michael Graff test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# Decide whether to use multithreading or not.
08a768e82ad64ede97f640c88e02984b59122753Michael Graffecho $ac_n "checking whether to use threads""... $ac_c" 1>&6
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonecho "configure:1053: checking whether to use threads" >&5
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# Check whether --enable-threads or --disable-threads was given.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test "${enable_threads+set}" = set; then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#ifdef ISC_PLATFORM_USETHREADS
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#else /* ISC_PLATFORM_USETHREADS */
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#+ AC_MSG_ERROR(["--enable-threads is not implemented"])
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#endif /* ISC_PLATFORM_USETHREADS */
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson { echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; }
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# On these hosts, we really want to use cc, not gcc, even if it is
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# found. The gcc that these systems have will not correctly handle
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# However, if the user sets $CC to be something, let that override
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson # Use Sun's cc if it is available, but watch
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson # out for /usr/ucb/cc; it will never be the right
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson # compiler to use.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson # If setting CC here fails, the AC_PROG_CC done
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson # below might still find gcc.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f "$ac_dir/cc"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the machine's endian flavor.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1131: checking whether byte ordering is bigendian" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# See if sys/param.h defines the BYTE_ORDER macro.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1138 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/param.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bogus endian macros
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # It does; now see whether it defined to BIG_ENDIAN or not.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1153 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/param.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if BYTE_ORDER != BIG_ENDIAN
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley not big endian
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1184 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley /* Are we little or big endian? From Harbison&Steele. */
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson char c[sizeof (long)];
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley exit (u.c[sizeof (long) - 1] == 1);
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define WORDS_BIGENDIAN 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# was --with-openssl specified?
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1225: checking for compatible OpenSSL library" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Check whether --with-openssl or --without-openssl was given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${with_openssl+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# If the user didn't specify where openssl is, and we didn't find or it
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# is incompatible with our code, use our internal one.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# XXX This appears to assume that the user specified path is correct,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and does no checking.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley { echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This would include the system openssl path (and linker options to use
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# it as needed) if it is found.
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson# was --with-gssapi specified?
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1282: checking for GSSAPI library" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Check whether --with-gssapi or --without-gssapi was given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${with_gssapi+set}" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# was --with-randomdev specified?
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for random device""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1318: checking for random device" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --with-randomdev or --without-randomdev was given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${with_randomdev+set}" = set; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#define PATH_RANDOMDEV "/dev/srandom"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#define PATH_RANDOMDEV "/dev/random"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#define PATH_RANDOMDEV "$use_randomdev"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# Extract the first word of "gcc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CC="$CC" # Let the user override the test.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # We found a bogon in the path, so make sure we never use it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # We chose a different compiler from the bogus one.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # However, it has the same basename, so the bogon will be chosen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # first if we set CC to just the basename; use the full file name.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cl", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonecho "configure:1446: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1478: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1489 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonif { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If we can't run a trivial program, we are probably using a cross compiler.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1520: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1525: checking whether we are using GNU C" >&5
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef __GNUC__
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1553: checking whether ${CC-cc} accepts -g" >&5
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$ac_test_CFLAGS" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$YACC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_YACC="$YACC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$YACC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$YACC" && break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1621: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1636 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1653 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1670 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1701: checking for ANSI C header files" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1706 "configure"
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1731 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1749 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1770 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1814 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif test -z "$ac_err"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_header_$ac_safe=yes"
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence eval "ac_cv_header_$ac_safe=no"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define $ac_tr_hdr 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho "configure:1847: checking for working const" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#line 1852 "configure"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include "confdefs.h"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* Ultrix mips cc rejects this. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleytypedef int charset[2]; const charset x;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* SunOS 4.1.1 cc rejects this. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleychar const *const *ccp;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleystruct point {int x, y;};
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleystatic struct point const zero = {0,0};
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* AIX XL C 1.02.0.0 rejects this.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley It does not let you subtract one const X* pointer from another in an arm
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley of an if-expression whose if-part is not a constant expression */
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceconst char *g = "string";
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyccp = &g + (g ? g-g : 0);
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley/* HPUX 7.0 cc rejects these. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyp = (char**) ccp;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyccp = (char const *const *) p;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley{ /* SCO 3.2v4 cc rejects this. */
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence char const *s = 0 ? (char *) 0 : (char const *) 0;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley int x[] = {25, 17};
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley const int *foo = &x[0];
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley typedef const int *iptr;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley struct s { int j; const int *ap[3]; };
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley struct s *b; b->j = 5;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley const int foo = 10;
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley; return 0; }
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho $ac_n "checking for inline""... $ac_c" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho "configure:1922: checking for inline" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#line 1929 "configure"
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#include "confdefs.h"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence} $ac_kw foo() {
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define inline
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define inline $ac_cv_c_inline
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho $ac_n "checking for size_t""... $ac_c" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 1967 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include <sys/types.h>
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#if STDC_HEADERS
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#include <stdlib.h>
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include <stddef.h>
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define size_t unsigned
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:1995: checking whether time.h and sys/time.h may both be included" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 2000 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include <sys/types.h>
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include <sys/time.h>
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#include <time.h>
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleystruct tm *tp;
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define TIME_WITH_SYS_TIME 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Search for / configure pthreads in a system-dependent fashion.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # NetBSD has multiple pthreads implementations. The
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # recommended one to use is "unproven-pthreads". The
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # older "mit-pthreads" may also work on some NetBSD
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # versions. The PTL2 thread library does not
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # currently work with bind9, but can be chosen with
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # the --with-ptl2 option for those who wish to
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # experiment with it.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:2046: checking which NetBSD thread library to use" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Check whether --with-ptl2 or --without-ptl2 was given.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif test "${with_ptl2+set}" = set; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence { echo "configure: error: no thread library found.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyPlease install the devel/unproven-pthreads package and rerun configure.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho "configure:2085: checking for pthread_create in -lpthread" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#line 2093 "configure"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* Override any gcc2 internal prototype to avoid an error. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley/* We use char because int might match the return type of a gcc2
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley builtin and then its argument prototype would still apply. */
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleychar pthread_create();
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleypthread_create()
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrenceif { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence eval "ac_cv_lib_$ac_lib_var=no"
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#define $ac_tr_lib 1
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho "configure:2130: checking for __pthread_create in -lpthread" >&5
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 2138 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencechar __pthread_create();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley__pthread_create()
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_lib_$ac_lib_var=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#define $ac_tr_lib 1
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho "configure:2177: checking for __pthread_create_system in -lpthread" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#line 2185 "configure"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar __pthread_create_system();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley__pthread_create_system()
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho "configure:2224: checking for pthread_create in -lpthreads" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#line 2232 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar pthread_create();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleypthread_create()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/^a-zA-Z0-9_/_/g' \
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define $ac_tr_lib 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # We'd like to use sigwait() too
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho "configure:2279: checking for sigwait in -lc" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 2287 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar sigwait();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define HAVE_SIGWAIT 1
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho "configure:2320: checking for sigwait in -lpthread" >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
1ce985ab3c6670662d555c108b35fed84a6a1001David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 2328 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* We use char because int might match the return type of a gcc2
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley builtin and then its argument prototype would still apply. */
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleychar sigwait();
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
7c9a9096f6df01b46c466dc1c48d85748cd16480David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
335b5eb5d08eb06844a99619afd52055e46db9c3David Lawrence#define HAVE_SIGWAIT 1
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceecho "configure:2361: checking for _Psigwait in -lpthread" >&5
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley#line 2369 "configure"
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrence#include "confdefs.h"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence/* We use char because int might match the return type of a gcc2
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence builtin and then its argument prototype would still apply. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar _Psigwait();
a30e7fc23415fd238d067a8a871607bca36068baMichael Graffif { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
f95dfb12a71564c3e8d53c5462dfd764efe357c2Bob Halley#define HAVE_SIGWAIT 1
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley # Additional OS-specific issues related to pthreads and sigwait.
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley # One more place to look for sigwait.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:2418: checking for sigwait in -lc_r" >&5
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff#line 2426 "configure"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff#include "confdefs.h"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff/* Override any gcc2 internal prototype to avoid an error. */
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff/* We use char because int might match the return type of a gcc2
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff builtin and then its argument prototype would still apply. */
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrencechar sigwait();
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffif { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff eval "ac_cv_lib_$ac_lib_var=yes"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff eval "ac_cv_lib_$ac_lib_var=no"
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence#define HAVE_SIGWAIT 1
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence # BSDI 3.1 through 4.0.1 needs pthread_init() to be
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley # called before certain pthreads calls. This is deprecated
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence#define NEED_PTHREAD_INIT 1
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence # LinuxThreads requires some changes to the way we
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # deal with signals.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#define HAVE_LINUXTHREADS 1
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews # Ensure the right sigwait() semantics on Solaris and make
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews # sure we call pthread_setconcurrency.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#define _POSIX_PTHREAD_SEMANTICS 1
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2492: checking for pthread_setconcurrency" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2497 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* System header to define __stub macros and hopefully few prototypes,
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews which can conflict with char pthread_setconcurrency(); below. */
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#include <assert.h>
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence/* We use char because int might match the return type of a gcc2
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews builtin and then its argument prototype would still apply. */
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrencechar pthread_setconcurrency();
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews/* The GNU C library defines this for functions which it implements
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews to always fail with ENOSYS. Some functions are actually named
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews something starting with __ and the normal name is an alias. */
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewspthread_setconcurrency();
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews; return 0; }
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsif { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews eval "ac_cv_func_pthread_setconcurrency=yes"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews eval "ac_cv_func_pthread_setconcurrency=no"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsif eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#define CALL_PTHREAD_SETCONCURRENCY 1
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews # UnixWare does things its own way.
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#define HAVE_UNIXWARE_SIGWAIT 1
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence # Look for sysconf to allow detection of the number of processors.
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews echo $ac_n "checking for sysconf""... $ac_c" 1>&6
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#line 2563 "configure"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#include "confdefs.h"
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews which can conflict with char sysconf(); below. */
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#include <assert.h>
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews/* We use char because int might match the return type of a gcc2
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews builtin and then its argument prototype would still apply. */
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewschar sysconf();
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews/* The GNU C library defines this for functions which it implements
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews to always fail with ENOSYS. Some functions are actually named
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews something starting with __ and the normal name is an alias. */
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#if defined (__stub_sysconf) || defined (__stub___sysconf)
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews; return 0; }
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsif { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews eval "ac_cv_func_sysconf=yes"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews eval "ac_cv_func_sysconf=no"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#define HAVE_SYSCONF 1
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence # The version of the C compiler that constantly
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews # warns about 'const' as well as alignment issues
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews # is unfortunately not able to be discerned via
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews # the version of the operating system, nor does
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews # cc have a version flag.
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews # Turn off the pointlessly noisy warnings.
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews# End of pthreads stuff.
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews# flockfile is usually provided by pthreads, but we may want to use it
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# even if compiled with --disable-threads.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for flockfile""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2682: checking for flockfile" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2687 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* System header to define __stub macros and hopefully few prototypes,
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews which can conflict with char flockfile(); below. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <assert.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* We use char because int might match the return type of a gcc2
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews builtin and then its argument prototype would still apply. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewschar flockfile();
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* The GNU C library defines this for functions which it implements
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews to always fail with ENOSYS. Some functions are actually named
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews something starting with __ and the normal name is an alias. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#if defined (__stub_flockfile) || defined (__stub___flockfile)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_func_flockfile=yes"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_func_flockfile=no"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#define HAVE_FLOCKFILE 1
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for catgets""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2742 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* System header to define __stub macros and hopefully few prototypes,
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews which can conflict with char catgets(); below. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <assert.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* We use char because int might match the return type of a gcc2
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews builtin and then its argument prototype would still apply. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewschar catgets();
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* The GNU C library defines this for functions which it implements
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews to always fail with ENOSYS. Some functions are actually named
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews something starting with __ and the normal name is an alias. */
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#if defined (__stub_catgets) || defined (__stub___catgets)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_func_catgets=yes"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_func_catgets=no"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#define HAVE_CATGETS 1
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# -lxnet buys us one big porting headache... standards, gotta love 'em.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# AC_CHECK_LIB(xnet, socket, ,
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# AC_CHECK_LIB(socket, socket)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# AC_CHECK_LIB(nsl, inet_ntoa)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# Use this for now, instead:
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2803: checking for socket in -lsocket" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2811 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* We use char because int might match the return type of a gcc2
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews builtin and then its argument prototype would still apply. */
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewschar socket();
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#define $ac_tr_lib 1
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonecho "configure:2850: checking for inet_ntoa in -lnsl" >&5
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#line 2858 "configure"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#include "confdefs.h"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson/* We use char because int might match the return type of a gcc2
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence builtin and then its argument prototype would still apply. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencechar inet_ntoa();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define $ac_tr_lib 1
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Silence more than 250 instances of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # "prototyped function redeclared without prototype"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # and 11 instances of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # "variable ... was set but never used"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley YACC="yacc" # bison calls alloca, avoid on UnixWare
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# GNU libtool support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --with-libtool or --without-libtool was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${with_libtool+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check whether --enable-shared or --disable-shared was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_shared+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --enable-static or --disable-static was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_static+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --enable-fast-install or --disable-fast-install was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_fast_install+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking build system type""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3020: checking build system type" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --with-gnu-ld or --without-gnu-ld was given.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceif test "${with_gnu_ld+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check if gcc -print-prog-name=ld gives a path.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3049: checking for ld used by GCC" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Accept absolute paths.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley [\\/]* | [A-Za-z]:[\\/]*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Canonicalize the path of ld
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If it fails, then pretend we aren't using GCC.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If it is relative, then search for the first ld in PATH.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3076: checking for non-GNU ld" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -z "$LD"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check to see if the program is GNU ld. I'd rather use --version,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # but apparently some GNU ld's only accept -v.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Break only if it was the GNU/non-GNU ld that we prefer.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_LD="$LD" # Let the user override the test with a path.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -n "$LD"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3111: checking if the linker ($LD) is GNU ld" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # I'd rather use --version here, but apparently some GNU ld's only accept -v.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3127: checking for BSD-compatible nm" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$NM"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Let the user override the test.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check to see if the nm accepts a BSD-compat flag.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Adding the `sed 1q' prevents false positives on HP-UX, which says:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # nm: unknown option "B" ignored
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley continue # so that we can try to find one that supports BSD flags
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3163: checking whether ln -s works" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check for any special flags to pass to ltconfig.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_libtool_lock+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Some flags need to be propagated to the compiler or linker for good
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# libtool support.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Find out which ABI we are using.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # On SCO OpenServer 5, we need -belf to get full-featured binaries.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3234: checking whether the C compiler needs -belf" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 3239 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Save cache, so that ltconfig can load it
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This file is a shell script that caches the results of configure
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# tests run on this system so they can be shared between configure
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# scripts and configure runs. It is not useful on other systems.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# If it contains results you don't want to keep, you may remove or edit it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# By default, configure uses ./config.cache as the cache file,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# creating it if it does not exist already. You can give configure
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the --cache-file=FILE option to use a different cache file; that is
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# what configure does when it calls configure scripts in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# subdirectories, so they share the cache.
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson# Giving --cache-file=/dev/null disables caching, for debugging configure.
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson# config.status only pays attention to the cache file if you give it the
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson# --recheck option to rerun configure.
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson# The following way of writing the cache mishandles newlines in values,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# but we know of no workaround that is simple, portable, and efficient.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# So, don't put newlines in cache variables' values.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Ultrix sh set writes to stderr and can't be redirected directly,
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# and sets the high bit in the cache file unless we assign to the vars.
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence case `(ac_space=' '; set | grep ac_space) 2>&1` in
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence # `set' does not quote correctly, so add quotes (double-quote substitution
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence # turns \\\\ into \\, and sed turns \\ into \).
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence -e "s/'/'\\\\''/g" \
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # `set' quotes correctly as required by POSIX, so do not add quotes.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence if test -w $cache_file; then
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "updating cache $cache_file"
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson echo "not updating unwritable cache $cache_file"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence# Actually configure libtool. ac_aux_dir is where install-sh is found.
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# Reload cache, that may have been modified by ltconfig
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyif test -r "$cache_file"; then
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "loading cache $cache_file"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence echo "creating cache $cache_file"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# This can be used to rebuild libtool when needed
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid LawrenceLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# Always use our own libtool.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# Redirect the config.log output again, so that the ltconfig log is not
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# clobbered by the next message.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# File name extension for static archive files, for those few places
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# where they are treated differently from dynamic ones.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# Here begins a very long section to determine the system's networking
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# capabilities. The order of the tests is signficant.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# Check whether --enable-ipv6 or --disable-ipv6 was given.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrenceif test "${enable_ipv6+set}" = set; then
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#define WANT_IPV6 1
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence# We do the IPv6 compilation checking after libtool so that we can put
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence# the right suffix on the files.
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrenceecho $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrenceecho "configure:3397: checking for IPv6 structures" >&5
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#line 3399 "configure"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#include "confdefs.h"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#include <sys/types.h>
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#include <sys/socket.h>
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence#include <netinet/in.h>
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrencestruct sockaddr_in6 sin6; return (0);
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrenceif { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# See whether IPv6 support is provided via a Kame add-on.
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# This is done before other IPv6 linking tests to LIBS is properly set.
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
b67a66514e9778907586786041705aaa832e8113Bob Halleyecho "configure:3427: checking for Kame IPv6 support" >&5
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence# Check whether --with-kame or --without-kame was given.
b67a66514e9778907586786041705aaa832e8113Bob Halleyif test "${with_kame+set}" = set; then
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff { echo "configure: error: $kame_path/lib/libinet6.a not found.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael GraffPlease choose the proper path with the following command:
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff configure --with-kame=PATH
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence# Including it on Kame-using platforms is very bad, though, because
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# Kame uses #error against direct inclusion. So include it on only
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# This is done before the in6_pktinfo check because that's what
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# netinet6/in6.h is needed for.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# This is similar to the netinet6/in6.h issue.
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
b67a66514e9778907586786041705aaa832e8113Bob Halley ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Now delve deeper into the suitability of the IPv6 support.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffecho "configure:3517: checking for in6addr_any" >&5
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence#line 3519 "configure"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence#include "confdefs.h"
a2495a1323842d2f2c6269eea66a2ba7e0baffccDavid Lawrence#include <sys/types.h>
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include <sys/socket.h>
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include <netinet/in.h>
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence$isc_netinetin6_hack
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrencestruct in6_addr in6; in6 = in6addr_any; return (0);
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffif { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrenceecho "configure:3546: checking for sin6_scope_id in struct sockaddr_in6" >&5
28ed3013196c373745dbde87b75a490148dab840Bob Halley#line 3548 "configure"
a2495a1323842d2f2c6269eea66a2ba7e0baffccDavid Lawrence#include "confdefs.h"
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include <sys/types.h>
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#include <sys/socket.h>
28ed3013196c373745dbde87b75a490148dab840Bob Halley#include <netinet/in.h>
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence$isc_netinetin6_hack
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence$isc_netinet6in6_hack
28ed3013196c373745dbde87b75a490148dab840Bob Halleystruct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
28ed3013196c373745dbde87b75a490148dab840Bob Halley; return 0; }
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrenceif { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
a2495a1323842d2f2c6269eea66a2ba7e0baffccDavid Lawrenceecho "configure:3576: checking for in6_pktinfo" >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#line 3578 "configure"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#include "confdefs.h"
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence#include <sys/types.h>
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence#include <sys/socket.h>
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include <netinet/in.h>
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff$isc_netinetin6_hack
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff$isc_netinet6in6_hack
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrencestruct in6_pktinfo xyzzy; return (0);
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffif { (eval echo configure:3591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# Check for network functions that are often missing. We do this
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# after the libtool checking, so we can put the right suffix on
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# the files. It also needs to come after checking for a Kame add-on,
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# which provides some (all?) of the desired functions.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho "configure:3641: checking for inet_ntop" >&5
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#line 3643 "configure"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include "confdefs.h"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include <sys/types.h>
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#include <netinet/in.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <arpa/inet.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsinet_ntop(0, 0, 0, 0); return (0);
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews; return 0; }
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsecho "configure:3668: checking for inet_pton" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#line 3670 "configure"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include "confdefs.h"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <sys/types.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <netinet/in.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include <arpa/inet.h>
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceinet_pton(0, 0, 0); return (0);
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews; return 0; }
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsif { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrewsecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrewsecho "configure:3695: checking for inet_aton" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#line 3697 "configure"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include "confdefs.h"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <netinet/in.h>
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#include <arpa/inet.h>
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halleystruct in_addr in; inet_aton(0, &in); return (0);
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews; return 0; }
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsif { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews# Look for a 4.4BSD-style sa_len member in struct sockaddr.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # Turn on 4.4BSD style sa_len support.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#define _SOCKADDR_LEN 1
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3740: checking for sa_len in struct sockaddr" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#line 3742 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/types.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/socket.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleystruct sockaddr sa; sa.sa_len = 0; return (0);
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# Look for a 4.4BSD or 4.3BSD struct msghdr
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3772: checking for struct msghdr flavor" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#line 3774 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/types.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/socket.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleystruct msghdr msg; msg.msg_flags = 0; return (0);
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# Look for in_port_t.
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3801: checking for type in_port_t" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#line 3803 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/types.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <netinet/in.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyin_port_t port = 25; return (0);
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# Check for addrinfo
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceecho "configure:3830: checking for struct addrinfo" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#line 3832 "configure"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include "confdefs.h"
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrence#include <netdb.h>
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleystruct addrinfo a; return (0);
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley; return 0; }
bcea9925141b1e0076cd7b078f1dae1449a1229bDavid Lawrenceif { (eval echo configure:3840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#define HAVE_ADDRINFO 1
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyecho "configure:3859: checking for int sethostent" >&5
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#line 3861 "configure"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include "confdefs.h"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#include <netdb.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyint i = sethostent(0); return(0);
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrenceif { (eval echo configure:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a8d1c8621c88fd86950ddfa14d82cde0f851686aDavid Lawrence ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:3884: checking for int endhostent" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 3886 "configure"
ff82c51f2ebe78c7dc7def880a9a70c2b3f1fd0dBob Halley#include "confdefs.h"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#include <netdb.h>
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graffint i = endhostent(); return(0);
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley; return 0; }
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif { (eval echo configure:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonecho "configure:3909: checking for getnetbyaddr(in_addr_t, ...)" >&5
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael Graff#line 3911 "configure"
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafsson#include "confdefs.h"
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley#include <netdb.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleystruct netent *getnetbyaddr(in_addr_t, int);
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrenceif { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b2f85baf7905bad89781f8ef73003d4cfa955257Michael Graff ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:3935: checking for int setnetent" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 3937 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <netdb.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint i = setnetent(0); return(0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:3960: checking for int endnetent" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 3962 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <netdb.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint i = endnetent(); return(0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:3985: checking for gethostbyaddr(const void *, size_t, ...)" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 3987 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <netdb.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct hostent *gethostbyaddr(const void *, size_t, int);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:4011: checking for h_errno in netdb.h" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4013 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <netdb.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyh_errno = 1; return(0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyecho "configure:4036: checking for getipnodebyname" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4041 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char getipnodebyname(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington/* We use char because int might match the return type of a gcc2
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington builtin and then its argument prototype would still apply. */
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonchar getipnodebyname();
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington/* The GNU C library defines this for functions which it implements
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington to always fail with ENOSYS. Some functions are actually named
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews something starting with __ and the normal name is an alias. */
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsgetipnodebyname();
44aae046c38e796e581110b7ecdf4478167d684dBob Halleyif { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
44aae046c38e796e581110b7ecdf4478167d684dBob Halley eval "ac_cv_func_getipnodebyname=yes"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_func_getipnodebyname=no"
44aae046c38e796e581110b7ecdf4478167d684dBob Halleyif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
a4fe5869c06072365156af9c332fd55fb4af2e43William King ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
b2e6071406542058cca3c34cbe04d324322dfa05Bob HalleyISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafssonecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
95be83b467e2384d414693982318a5c06cccf1d7Andreas Gustafssonecho "configure:4085: checking for getnameinfo" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4090 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char getnameinfo(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar getnameinfo();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleygetnameinfo();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_getnameinfo=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_getnameinfo=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graffecho "configure:4134: checking for getaddrinfo" >&5
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graffif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
08a768e82ad64ede97f640c88e02984b59122753Michael Graff#line 4139 "configure"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister/* System header to define __stub macros and hopefully few prototypes,
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff which can conflict with char getaddrinfo(); below. */
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley#include <assert.h>
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley/* Override any gcc2 internal prototype to avoid an error. */
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley/* We use char because int might match the return type of a gcc2
3c8e458ed2118828b13f35ca6fcc409da66c2869David Lawrence builtin and then its argument prototype would still apply. */
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleychar getaddrinfo();
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* The GNU C library defines this for functions which it implements
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews to always fail with ENOSYS. Some functions are actually named
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews something starting with __ and the normal name is an alias. */
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsgetaddrinfo();
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getaddrinfo=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getaddrinfo=no"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#define HAVE_GETADDRINFO 1
a7c7193f985cbb2d995775ae8be44878a6d453bdBob HalleyISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Look for a sysctl call to get the list of network interfaces.
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halleyecho "configure:4194: checking for interface list sysctl" >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#line 4196 "configure"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#include "confdefs.h"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#include <sys/param.h>
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#include <sys/sysctl.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/socket.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef NET_RT_IFLIST
2180f41c907e013715cbc54c64545b26fc3c0dbaMichael Grafffound_rt_iflist
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define HAVE_IFLIST_SYSCTL 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Check for some other useful functions that are not ever-present.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4231 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char strsep(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar strsep();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_strsep) || defined (__stub___strsep)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_func_strsep=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_strsep=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonecho "configure:4275: checking for vsnprintf" >&5
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington#line 4280 "configure"
f8e602a972e393cdacadd9852e0965bf1105dc7bMark Andrews#include "confdefs.h"
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff/* System header to define __stub macros and hopefully few prototypes,
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff which can conflict with char vsnprintf(); below. */
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff#include <assert.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley/* We use char because int might match the return type of a gcc2
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence builtin and then its argument prototype would still apply. */
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrencechar vsnprintf();
44aae046c38e796e581110b7ecdf4478167d684dBob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
690a68b8112039e633e26f9216c0d463751e011aMichael Graff something starting with __ and the normal name is an alias. */
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
44aae046c38e796e581110b7ecdf4478167d684dBob Halley; return 0; }
a4fe5869c06072365156af9c332fd55fb4af2e43William Kingif { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a4fe5869c06072365156af9c332fd55fb4af2e43William King eval "ac_cv_func_vsnprintf=yes"
e855fd594d04413c29504bdc6b8792be9fa79bd2Andreas Gustafsson eval "ac_cv_func_vsnprintf=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:4332: checking for sizeof(long long int) == sizeof(long int)" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4338 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain() { exit(!(sizeof(long long int) == sizeof(long int))); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Security Stuff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4367 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char chroot(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar chroot();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_chroot) || defined (__stub___chroot)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_chroot=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_chroot=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define HAVE_CHROOT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4421 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 4461 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
yes)
yes)
yes)
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
yes)
if test -n "$JADE"; then
test -n "$JADE" && break
SGMLDIR=$d
XMLDIR=$d
# By default, configure uses ./config.cache as the cache file,
# config.status only pays attention to the cache file if you give it the
*ac_space=\ *)
sed -n \
esac >> confcache
if test -w $cache_file; then
echo "updating cache $cache_file"
echo "not updating unwritable cache $cache_file"
if test "x$srcdir" = x.; then
# Without the "./", some shells look in PATH for config.status.
while $ac_more_lines; do
ac_more_lines=false
if test -z "$ac_sed_cmds"; then
if test -z "$ac_sed_cmds"; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
.) srcdir=.
# $configure_input" ;;
*) ac_comsub= ;;
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
cat >> conftest.vals <<\EOF
# Break up conftest.vals because some shells have a limit on
rm -f conftest.tail
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
rm -f conftest.vals
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
rm -f conftest.h
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<\EOF
chmod a+x isc-config.sh