configure revision 7817a6f41b9e16da0325252ec24226b40f15a923
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Copyright (C) 1996-2001 Internet Software Consortium.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Permission to use, copy, modify, and distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# copyright notice and this permission notice appear in all copies.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# From configure.in Revision: 1.217
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## This program is free software; you can redistribute it and/or modify
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## it under the terms of the GNU General Public License as published by
ddfe394c061049bbd71125ad41c3dd3092b2bbfdAndreas Gustafsson## the Free Software Foundation; either version 2 of the License, or
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## (at your option) any later version.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## This program is distributed in the hope that it will be useful, but
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley## General Public License for more details.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## You should have received a copy of the GNU General Public License
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## along with this program; if not, write to the Free Software
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley## As a special exception to the GNU General Public License, if you
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## distribute this file as part of a program that contains a
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## configuration script generated by Autoconf, you may include it under
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley## the same distribution terms that you use for the rest of that program.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# serial 40 AC_PROG_LIBTOOL
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews# AC_ENABLE_SHARED - implement the --enable-shared flag
cee7525336d4710a64368875d92eb439d4d3efb1Mark Andrews# Usage: AC_ENABLE_SHARED[(DEFAULT)]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence# AC_ENABLE_STATIC - implement the --enable-static flag
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_CHECK_LIBM - check for math library
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl convenience library and INCLTDL to the include flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl header and adds --enable-ltdl-convenience to the
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# configure arguments. Note that LIBLTDL and INCLTDL are not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# with '${top_builddir}/' and INCLTDL will be prefixed with
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# '${top_srcdir}/' (note the single quotes!). If your package is not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# flat and you're not using automake, define top_builddir and
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# top_srcdir appropriately in the Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl installable library and INCLTDL to the include flags for
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# the libltdl header and adds --enable-ltdl-install to the configure
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# with '${top_srcdir}/' (note the single quotes!). If your package is
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# not flat and you're not using automake, define top_builddir and
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# top_srcdir appropriately in the Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Guess values for system-dependent variables and create Makefiles.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Generated automatically using autoconf version 2.13
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# This configure script is free software; the Free Software Foundation
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# gives unlimited permission to copy, distribute and modify it.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Any additions from configure.in:
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-openssl=PATH Specify path for system-supplied openssl
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley (rather than using bind-9 internal openssl)"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-gssapi=PATH Specify path for system-supplied GSSAPI"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-randomdev=PATH Specify path for random device"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --disable-threads disable multithreading"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --with-libtool use GNU libtool (following indented options supported)"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley --enable-ipv6 use IPv6 [default=autodetect]"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Initialize some variables set by options.
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# The variables have the same names as the options, with
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# dashes changed to underlines.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# Initialize some other variables.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# Maximum number of lines to put in a shell here document.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley # If the previous option needs an argument, assign it.
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley if test -n "$ac_prev"; then
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley eval "$ac_prev=\$ac_option"
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Reject names that are not valid shell variable names.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "enable_${ac_feature}=no" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Reject names that are not valid shell variable names.
3740b569ae76295b941d57a724a43beb75b533baBob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Obsolete; use --with-gas.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Omit some internal or obsolete options to make the list less imposing.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # This message is too long to be a string in the A/UX 3.1 sh.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob HalleyUsage: configure [options] [host]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob HalleyOptions: [defaults in brackets after descriptions]
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob HalleyConfiguration:
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --cache-file=FILE cache test results in FILE
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --help print this message
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --no-create do not create output files
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --quiet, --silent do not print \`checking...' messages
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --version print the version of autoconf that created configure
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyDirectory and file names:
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley [$ac_default_prefix]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley [same as prefix]
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --datadir=DIR read-only architecture-independent data in DIR
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley [PREFIX/share]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley [PREFIX/com]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --includedir=DIR C header files in DIR [PREFIX/include]
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --program-transform-name=PROGRAM
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley run sed PROGRAM on installed program names
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --host=HOST configure for HOST [guessed]
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
ce3761f64d3d734cc94605026985898900ecc474Bob HalleyFeatures and packages:
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
ce3761f64d3d734cc94605026985898900ecc474Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --x-includes=DIR X include files are in DIR
5fc1b54cc6134bd70f4e22df90a2e5631aaea77aBob Halley --x-libraries=DIR X library files are in DIR
ce3761f64d3d734cc94605026985898900ecc474Bob Halley if test -n "$ac_help"; then
ce3761f64d3d734cc94605026985898900ecc474Bob Halley echo "--enable and --with options recognized:$ac_help"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -includedir | --includedir | --includedi | --included | --include \
ce3761f64d3d734cc94605026985898900ecc474Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --localstate | --localstat | --localsta | --localst \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
00d81794884f1eee59ca058a292f2d1e50d9547cBob Halley # Obsolete; use --without-fp.
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
f18f3c93e7fecf120302658f93addae573a6e874Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f0bbac2c0f1afa74b88cab902daf11202ebe7cbdBob Halley -program-transform-name | --program-transform-name \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-nam | --program-transform-na \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -program-transform-name=* | --program-transform-name=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-nam=* | --program-transform-na=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --program-transform-n=* | --program-transform-=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedst | --shareds | --shared | --share | --shar \
1366b7833c86343de278480b9abd71754e418bfaBob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366b7833c86343de278480b9abd71754e418bfaBob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bcfcece57e9411ee4bd352b45a8b1ac1dbcf01f4Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -version | --version | --versio | --versi | --vers)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure generated by autoconf version 2.13"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Reject names that are not valid shell variable names.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Reject names that are not valid shell variable names.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley eval "with_${ac_package}=no" ;;
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Obsolete; use --with-x.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$ac_prev"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# File descriptor usage:
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 0 standard input
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 1 file creation
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 2 errors and warnings
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 3 some systems may open it to /dev/tty
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 4 used on the Kubota Titan
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# 6 checking for... messages and results
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# 5 compiler messages saved in config.log
29b487b0a458d655f0aad9257ca46021f4903d08Bob HalleyThis file contains any messages produced by compilers while
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Strip out --no-create and --no-recursion so they do not pile up.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Also quote any args containing shell metacharacters.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# NLS nuisances.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Only set these to C if already set. These must not be set unconditionally
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# because not all systems understand e.g. LANG=C (notably SCO).
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Non-C LC_CTYPE values break the ctype check.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# A filename unique to this package, relative to the directory that
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Find the source files, if location was not specified.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$srcdir"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Try the directory containing this script, then its parent.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# Prefer explicitly selected file to automatically selected ones.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$CONFIG_SITE"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if test -r "$ac_site_file"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "loading site script $ac_site_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -r "$cache_file"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "loading cache $cache_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley echo "creating cache $cache_file"
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyif test -z "$ac_aux_dir"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Make sure we can run config.sub.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "configure:699: checking host system type" >&5
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley @echo 'ac_maketemp="${MAKE}"'
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif test -n "$ac_maketemp"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley# Extract the first word of "ranlib", so it can be a program name with args.
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley if test -n "$RANLIB"; then
6957b87f931bb110ba4d0adf495932691ba550b1Bob Halley ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif test -n "$RANLIB"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# Find a good install program. We prefer a C program (faster),
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# so one script is as good as another. But avoid the broken or
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# incompatible versions:
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews# ./install, which can be erroneously created by make from ./install.sh.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsecho "configure:789: checking for a BSD compatible install" >&5
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif test -z "$INSTALL"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewsif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # Account for people who put trailing slashes in PATH elements.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # OSF1 and SCO ODT 3.0 have their own names for install.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # Don't use installbsd from OSF since it installs stuff as root
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # by default.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # AIX install. It has an incompatible calling convention.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews if test "${ac_cv_path_install+set}" = set; then
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # As a last resort, use the slow shell script. We don't cache a
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # path for INSTALL within a source directory, because that will
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # break other packages using the cache if that directory is
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrews # removed, or if the path is relative.
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
aa8e34546c1e51e69f5a4935d28cb0c543e7401aAndreas Gustafsson# It thinks the first close brace ends the variable substitution.
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7c0539bea56022274da04263eb41fbb5b8835c38Mark Andrewstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "ar", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a path.
29b487b0a458d655f0aad9257ca46021f4903d08Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
d2b77d720f1dcdc85a761b1de1a94d32fbdef81aBrian Wellingtonif test -n "$AR"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# The POSIX ln(1) program. Non-POSIX systems may substitute
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# "copy" or something.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyar program not found. Please fix your PATH to include the directory in
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleywhich ar resides, or set AR in the environment with the full path to ar.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$ETAGS"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$ETAGS" && break
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# GNU emacs etags, and it requires the -L flag.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:950: checking for Exuberant Ctags etags" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Perl is optional; it is used only by some of the system test scripts.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif test -n "$PERL"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$PERL" && break
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# Special processing of paths depending on whether --prefix,
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# --sysconfdir or --localstatedir arguments were given. What's
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# desired is some compatability with the way previous versions
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# of BIND built; they defaulted to /usr/local for most parts of
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# the installation, but named.boot/named.conf was in /etc
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# and named.pid was in /var/run.
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# So ... if none of --prefix, --sysconfdir or --localstatedir are
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# specified, set things up that way. If --prefix is given, use
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# it for sysconfdir and localstatedir the way configure normally
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# would. To change the prefix for everything but leave named.conf
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# in /etc or named.pid in /var/run, then do this the usual configure way:
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/somewhere --sysconfdir=/etc
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/somewhere --localstatedir=/var
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley# To put named.conf and named.pid in /usr/local with everything else,
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley# set the prefix explicitly to /usr/local even though that's the default:
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley# ./configure --prefix=/usr/local
bd53af8229e28cfec8bfd9572b4d31514ea97f48Bob Halley '${prefix}/etc')
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley '${prefix}/var')
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Make sure INSTALL uses an absolute path, else it will be wrong in all
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# configure based on the location of the file where it is substituted.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# subdirectory of install-sh, This relative path will be wrong for all
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# directories more than one level down from install-sh.
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews # Not all systems have dirname.
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# On these hosts, we really want to use cc, not gcc, even if it is
f257e9369c27578eb87077923dc010a6614e2a7aMark Andrews# found. The gcc that these systems have will not correctly handle
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews# However, if the user sets $CC to be something, let that override
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews# our change.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Use Sun's cc if it is available, but watch
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # out for /usr/ucb/cc; it will never be the right
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # compiler to use.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # If setting CC here fails, the AC_PROG_CC done
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # below might still find gcc.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -f "$ac_dir/cc"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Find the machine's endian flavor.
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:1116: checking whether byte ordering is bigendian" >&5
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley# See if sys/param.h defines the BYTE_ORDER macro.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1123 "configure"
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <sys/types.h>
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#include <sys/param.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley bogus endian macros
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # It does; now see whether it defined to BIG_ENDIAN or not.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1138 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <sys/types.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/param.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#if BYTE_ORDER != BIG_ENDIAN
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halley not big endian
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1169 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley /* Are we little or big endian? From Harbison&Steele. */
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley char c[sizeof (long)];
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley exit (u.c[sizeof (long) - 1] == 1);
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#define WORDS_BIGENDIAN 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# was --with-openssl specified?
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyecho "configure:1210: checking for compatible OpenSSL library" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-openssl or --without-openssl was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_openssl+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# If the user didn't specify where openssl is, and we didn't find or it
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# is incompatible with our code, use our internal one.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# XXX This appears to assume that the user specified path is correct,
577179503f2eb7695ec668d8eeb41889a150e28fBob Halley# and does no checking.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley openssl_makefiles="lib/dns/sec/openssl/Makefile \
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley { echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# This would include the system openssl path (and linker options to use
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# it as needed) if it is found.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# was --with-gssapi specified?
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1272: checking for GSSAPI library" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-gssapi or --without-gssapi was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_gssapi+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
af3459443207253f197cd684567bfea0311ab76dMark Andrews# was --with-randomdev specified?
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for random device""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1308: checking for random device" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --with-randomdev or --without-randomdev was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_randomdev+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define PATH_RANDOMDEV "/dev/srandom"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define PATH_RANDOMDEV "/dev/random"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#define PATH_RANDOMDEV "$use_randomdev"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence# Extract the first word of "gcc", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
af3459443207253f197cd684567bfea0311ab76dMark Andrewsif test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Extract the first word of "cc", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # We found a bogon in the path, so make sure we never use it.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # We chose a different compiler from the bogus one.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley # However, it has the same basename, so the bogon will be chosen
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # first if we set CC to just the basename; use the full file name.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -z "$CC"; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence # Extract the first word of "cl", so it can be a program name with args.
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c3e95f11e02c51fc786b9124c817ab72dda3084cBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$CC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -n "$CC"; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceecho "configure:1468: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#line 1479 "configure"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence#include "confdefs.h"
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrencemain(){return(0);}
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceif { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrence # If we can't run a trivial program, we are probably using a cross compiler.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1510: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1515: checking whether we are using GNU C" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#ifdef __GNUC__
213a9ec2addc5bcf3b168fe507312e7b25960e0bDavid Lawrenceif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1543: checking whether ${CC-cc} accepts -g" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "$ac_test_CFLAGS" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley if test -n "$YACC"; then
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley ac_cv_prog_YACC="$YACC" # Let the user override the test.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif test -n "$YACC"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleytest -n "$YACC" && break
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1611: checking how to run the C preprocessor" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff# On Suns, sometimes $CPP names a directory.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$CPP"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # This must be in double quotes, not single quotes, because CPP may get
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley # not just through cpp.
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#line 1626 "configure"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <assert.h>
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley{ (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyif test -z "$ac_err"; then
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#line 1643 "configure"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include "confdefs.h"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#include <assert.h>
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley{ (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$ac_err"; then
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley#line 1660 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <assert.h>
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley{ (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif test -z "$ac_err"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1691: checking for ANSI C header files" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1696 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdarg.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <string.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <float.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
38d2d0e9326a2f70b5893302b89a26978b539405Bob Halley{ (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test -z "$ac_err"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1721 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <string.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1739 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1760 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <ctype.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffint main () { int i; for (i = 0; i < 256; i++)
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define STDC_HEADERS 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1804 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <$ac_hdr>
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley{ (eval echo configure:1809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif test -z "$ac_err"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley eval "ac_cv_header_$ac_safe=yes"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_header_$ac_safe=no"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define $ac_tr_hdr 1
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyecho "configure:1837: checking for working const" >&5
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington#line 1842 "configure"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#include "confdefs.h"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* Ultrix mips cc rejects this. */
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtontypedef int charset[2]; const charset x;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* SunOS 4.1.1 cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleychar const *const *ccp;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* NEC SVR4.0.2 mips cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleystruct point {int x, y;};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleystatic struct point const zero = {0,0};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* AIX XL C 1.02.0.0 rejects this.
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley It does not let you subtract one const X* pointer from another in an arm
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley of an if-expression whose if-part is not a constant expression */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyconst char *g = "string";
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyccp = &g + (g ? g-g : 0);
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley/* HPUX 7.0 cc rejects these. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyp = (char**) ccp;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyccp = (char const *const *) p;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* SCO 3.2v4 cc rejects this. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff int x[] = {25, 17};
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley const int *foo = &x[0];
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley typedef const int *iptr;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* AIX XL C 1.02.0.0 rejects this saying
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley struct s { int j; const int *ap[3]; };
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington struct s *b; b->j = 5;
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellington const int foo = 10;
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley; return 0; }
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonif { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#line 1919 "configure"
6e952e42e56e01e4b49d4a41a40a4e8f4cb0e8bfBob Halley#include "confdefs.h"
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley} $ac_kw foo() {
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley; return 0; }
e22d03eb45fdc504bca3d6227725d45a3ff7d192Brian Wellingtonif { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley#define inline
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley#define inline $ac_cv_c_inline
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#line 1957 "configure"
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#include "confdefs.h"
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#include <sys/types.h>
b5b97de45a561784bd88fb8fa7e1464a28ad9a44Bob Halley#if STDC_HEADERS
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stdlib.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <stddef.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define size_t unsigned
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:1985: checking whether time.h and sys/time.h may both be included" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 1990 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/types.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <sys/time.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <time.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleystruct tm *tp;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#define TIME_WITH_SYS_TIME 1
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# check if we need to #include sys/select.h explicitly
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:2026: checking if unistd.h defines fd_set" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#line 2028 "configure"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include "confdefs.h"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley#include <unistd.h>
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyfd_set read_set; return (0);
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley; return 0; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif { (eval echo configure:2036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "need either working unistd.h or sys/select.h"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "need either unistd.h or sys/select.h"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Begin pthreads checking.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# First, decide whether to use multithreading or not.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho $ac_n "checking whether to look for thread support""... $ac_c" 1>&6
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyecho "configure:2079: checking whether to look for thread support" >&5
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Check whether --enable-threads or --disable-threads was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${enable_threads+set}" = set; then
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley { echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; }
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # Search for / configure pthreads in a system-dependent fashion.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # NetBSD has multiple pthreads implementations. The
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # recommended one to use is "unproven-pthreads". The
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # older "mit-pthreads" may also work on some NetBSD
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # versions. The PTL2 thread library does not
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # currently work with bind9, but can be chosen with
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # the --with-ptl2 option for those who wish to
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley # experiment with it.
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halleyecho "configure:2116: checking which NetBSD thread library to use" >&5
ed7f35a9f73f9895be856d7861fe9752cb52e3b7Bob Halley # Check whether --with-ptl2 or --without-ptl2 was given.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyif test "${with_ptl2+set}" = set; then
a0abd77baacdd97272356faab5efc79dd1483077Bob Halley echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley { echo "configure: error: no thread library found.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob HalleyPlease install the devel/unproven-pthreads package and rerun configure.
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyecho "configure:2155: checking for pthread_create in -lpthread" >&5
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2163 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* We use char because int might match the return type of a gcc2
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar pthread_create();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleypthread_create()
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley; return 0; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#define $ac_tr_lib 1
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2200: checking for __pthread_create in -lpthread" >&5
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2208 "configure"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews#include "confdefs.h"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews/* We use char because int might match the return type of a gcc2
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrence builtin and then its argument prototype would still apply. */
ecb6c5782ea248307e86c4bceac6c371d27576a6David Lawrencechar __pthread_create();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley__pthread_create()
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley; return 0; }
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halleyif { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9192e92f7d0f4e78385a1d5f9b6607cc5bf0e42aBob Halley#define $ac_tr_lib 1
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewsecho $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2245: checking for __pthread_create_system in -lpthread" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2253 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* We use char because int might match the return type of a gcc2
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar __pthread_create_system();
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews__pthread_create_system()
b5819ca3eb4abf5b159a91ec2a413980b2cd0732Mark Andrews; return 0; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=yes"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley eval "ac_cv_lib_$ac_lib_var=no"
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews#define $ac_tr_lib 1
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2290: checking for pthread_create in -lc_r" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#line 2298 "configure"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include "confdefs.h"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley/* Override any gcc2 internal prototype to avoid an error. */
8db3b065b4659f593f7b8eaa7c9ca0c3daa4da02Bob Halley/* We use char because int might match the return type of a gcc2
c5839c39bd07c9dd3d4cd598035deb0537098475Bob Halley builtin and then its argument prototype would still apply. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleychar pthread_create();
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleypthread_create()
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley; return 0; }
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
86131d8d7aaf1bb8b8bfc7819985d05ea369b708Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=no"
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
571469b0a58b011966bbea91ca992928554d6ca1David Lawrence ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
86921103ec656d7a0176d356b5adac10a362d2d3Bob Halley#define $ac_tr_lib 1
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyecho "configure:2335: checking for pthread_create in -lc" >&5
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#line 2343 "configure"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#include "confdefs.h"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews/* We use char because int might match the return type of a gcc2
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews builtin and then its argument prototype would still apply. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewschar pthread_create();
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewspthread_create()
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews; return 0; }
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrewsif { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a41d348e14b0465c6444cdfd2d59f9370fd44fe8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_lib_$ac_lib_var=no"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews ac_tr_lib=HAVE_LIB`echo c | sed -e 's/^a-zA-Z0-9_/_/g' \
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff#define $ac_tr_lib 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley # We'd like to use sigwait() too
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2400: checking for sigwait in -lc" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#line 2408 "configure"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#include "confdefs.h"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* We use char because int might match the return type of a gcc2
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley builtin and then its argument prototype would still apply. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleychar sigwait();
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2441: checking for sigwait in -lpthread" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
518be7faab2498c795e6dc9bb25ac10ca38b3a8dMark Andrews#line 2449 "configure"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley#include "confdefs.h"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* We use char because int might match the return type of a gcc2
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews builtin and then its argument prototype would still apply. */
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrewschar sigwait();
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2482: checking for _Psigwait in -lpthread" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#line 2490 "configure"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#include "confdefs.h"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley/* We use char because int might match the return type of a gcc2
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley builtin and then its argument prototype would still apply. */
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleychar _Psigwait();
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley; return 0; }
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
ce3761f64d3d734cc94605026985898900ecc474Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley#define HAVE_SIGWAIT 1
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halley echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyecho "configure:2531: checking for pthread_attr_getstacksize" >&5
84c3294183a1cca851ce3f7f33c86772cd57bee1Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#line 2536 "configure"
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews#include "confdefs.h"
ce3761f64d3d734cc94605026985898900ecc474Bob Halley/* System header to define __stub macros and hopefully few prototypes,
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff which can conflict with char pthread_attr_getstacksize(); below. */
95c86af1e92dae4ff837a39e7e2dcb7308dd9cceBob Halley#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar pthread_attr_getstacksize();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencepthread_attr_getstacksize();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_attr_getstacksize=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_attr_getstacksize=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_func_'pthread_attr_getstacksize`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Additional OS-specific issues related to pthreads and sigwait.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # One more place to look for sigwait.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2591: checking for sigwait in -lc_r" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#line 2599 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar sigwait();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_SIGWAIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # BSDI 3.0 through 4.0.1 needs pthread_init() to be
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # called before certain pthreads calls. This is deprecated
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define NEED_PTHREAD_INIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # LinuxThreads requires some changes to the way we
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # deal with signals.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_LINUXTHREADS 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Ensure the right sigwait() semantics on Solaris and make
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # sure we call pthread_setconcurrency.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define _POSIX_PTHREAD_SEMANTICS 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2665: checking for pthread_setconcurrency" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
d92d2f722ad5a2063010a6720fe137ada7562e30David Lawrence#line 2670 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* System header to define __stub macros and hopefully few prototypes,
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence which can conflict with char pthread_setconcurrency(); below. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar pthread_setconcurrency();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencepthread_setconcurrency();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_setconcurrency=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_pthread_setconcurrency=no"
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graffif eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define CALL_PTHREAD_SETCONCURRENCY 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # UnixWare does things its own way.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_UNIXWARE_SIGWAIT 1
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence # Look for sysconf to allow detection of the number of processors.
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence echo $ac_n "checking for sysconf""... $ac_c" 1>&6
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceecho "configure:2731: checking for sysconf" >&5
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#line 2736 "configure"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include "confdefs.h"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* System header to define __stub macros and hopefully few prototypes,
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence which can conflict with char sysconf(); below. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#include <assert.h>
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* We use char because int might match the return type of a gcc2
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence builtin and then its argument prototype would still apply. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrencechar sysconf();
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence/* The GNU C library defines this for functions which it implements
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence to always fail with ENOSYS. Some functions are actually named
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence something starting with __ and the normal name is an alias. */
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#if defined (__stub_sysconf) || defined (__stub___sysconf)
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_sysconf=yes"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence eval "ac_cv_func_sysconf=no"
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrenceif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
605ae28c5a73ad6c86425dfc0ed1d49652141c67David Lawrence#define HAVE_SYSCONF 1
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley# flockfile is usually provided by pthreads, but we may want to use it
3dbea10f98472c452cc2467634059f28a87feb29Bob Halley# even if compiled with --disable-threads.
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyecho $ac_n "checking for flockfile""... $ac_c" 1>&6
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#line 2841 "configure"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#include "confdefs.h"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* System header to define __stub macros and hopefully few prototypes,
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley which can conflict with char flockfile(); below. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#include <assert.h>
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* We use char because int might match the return type of a gcc2
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley builtin and then its argument prototype would still apply. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleychar flockfile();
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley/* The GNU C library defines this for functions which it implements
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley to always fail with ENOSYS. Some functions are actually named
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley something starting with __ and the normal name is an alias. */
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley#if defined (__stub_flockfile) || defined (__stub___flockfile)
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley; return 0; }
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley eval "ac_cv_func_flockfile=yes"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halley eval "ac_cv_func_flockfile=no"
453603c018a9e7c3ee7726868f27c95798544ed7Bob Halleyif eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff#define HAVE_FLOCKFILE 1
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Indicate what the final decision was regarding threads.
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyecho $ac_n "checking whether to build with threads""... $ac_c" 1>&6
70fdfcd1fa7ebd059deffa9a2cecc29df96dfe52Bob Halleyecho "configure:2891: checking whether to build with threads" >&5
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley# End of pthreads stuff.
08c8a934ceb2dfc6a5ebfd3be4ba5a1b3243bc73Bob Halley# Additional compiler settings.
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # The version of the C compiler that constantly warns about
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # 'const' as well as alignment issues is unfortunately not
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # able to be discerned via the version of the operating
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # system, nor does cc have a version flag.
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # Turn off the pointlessly noisy warnings.
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff # Silence more than 250 instances of
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # "prototyped function redeclared without prototype"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # and 11 instances of
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley # "variable ... was set but never used"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley YACC="yacc" # bison calls alloca, avoid on UnixWare
8326257468615966b10820260beb3ee96eee94b5Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley#line 2972 "configure"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley#include "confdefs.h"
63c8c8f2a1c1e490305fde095321798f0342739dBob Halley/* System header to define __stub macros and hopefully few prototypes,
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley which can conflict with char catgets(); below. */
6f5c11ea91e890e78eaa31a73e309e07f09f0ec0Bob Halley#include <assert.h>
8326257468615966b10820260beb3ee96eee94b5Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* We use char because int might match the return type of a gcc2
8326257468615966b10820260beb3ee96eee94b5Bob Halley builtin and then its argument prototype would still apply. */
8326257468615966b10820260beb3ee96eee94b5Bob Halleychar catgets();
8326257468615966b10820260beb3ee96eee94b5Bob Halley/* The GNU C library defines this for functions which it implements
8326257468615966b10820260beb3ee96eee94b5Bob Halley to always fail with ENOSYS. Some functions are actually named
8326257468615966b10820260beb3ee96eee94b5Bob Halley something starting with __ and the normal name is an alias. */
8326257468615966b10820260beb3ee96eee94b5Bob Halley#if defined (__stub_catgets) || defined (__stub___catgets)
8326257468615966b10820260beb3ee96eee94b5Bob Halley; return 0; }
8326257468615966b10820260beb3ee96eee94b5Bob Halleyif { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
419590499823ce15b5d2ad4fe71eaf04bd5a86c0Michael Graff eval "ac_cv_func_catgets=yes"
8326257468615966b10820260beb3ee96eee94b5Bob Halley eval "ac_cv_func_catgets=no"
000027219d9824bdfb0b2c1865ec4d4bc839b631Mark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley#define HAVE_CATGETS 1
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# -lxnet buys us one big porting headache... standards, gotta love 'em.
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(xnet, socket, ,
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(socket, socket)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# AC_CHECK_LIB(nsl, inet_ntoa)
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley# Use this for now, instead:
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halley echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyecho "configure:3033: checking for socket in -lsocket" >&5
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
345a84c9f1e87c179a6ec9053200a94d5888fa13Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#line 3041 "configure"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson#include "confdefs.h"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson/* We use char because int might match the return type of a gcc2
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson builtin and then its argument prototype would still apply. */
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafssonif { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson echo "configure: failed program was:" >&5
b4b4adc097365bd3f980b30bc7cc30199f4b8456Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
yes)
NONE)
[\\/]* | [A-Za-z]:[\\/]*)
if test -z "$LD"; then
if test -n "$LD"; then
if test -n "$NM"; then
*-*-irix6*)
*N32*)
if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# 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 -r "$cache_file"; then
echo "loading cache $cache_file"
echo "creating cache $cache_file"
# Redirect the config.log output again, so that the ltconfig log is not
O=lo
A=la
SA=a
no)
no)
yes)
no)
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
*-UnixWare*)
yes)
if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
no)
if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
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