configure revision 495c00c1c995c96587b38d2d5fa41f127869d5b8
0b1f1952f4a1c8ddb90dc2dfcab30669903c6e8eBrian Wellington# From configure.in Revision: 1.123
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Copyright (C) 1996-1999 Free Software Foundation, Inc.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is free software; you can redistribute it and/or modify
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## it under the terms of the GNU General Public License as published by
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## the Free Software Foundation; either version 2 of the License, or
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## (at your option) any later version.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is distributed in the hope that it will be useful, but
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## WITHOUT ANY WARRANTY; without even the implied warranty of
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## General Public License for more details.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## You should have received a copy of the GNU General Public License
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## along with this program; if not, write to the Free Software
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## As a special exception to the GNU General Public License, if you
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## distribute this file as part of a program that contains a
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## configuration script generated by Autoconf, you may include it under
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews## the same distribution terms that you use for the rest of that program.
c132e9113c1587bc9a684cb0ac800fa7a26b91aaMark Andrews# serial 40 AC_PROG_LIBTOOL
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_LD - find the path to the GNU or non-GNU linker
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_PROG_NM - find the path to a BSD-compatible name lister
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_CHECK_LIBM - check for math library
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the libltdl convenience library, adds --enable-ltdl-convenience to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# to be `${top_builddir}/libltdl'. Make sure you start DIR with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# flat, and, if you're not using automake, define top_builddir as
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# appropriate in the Makefiles.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the libltdl installable library, and adds --enable-ltdl-install to
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# to be `${top_builddir}/libltdl'. Make sure you start DIR with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# flat, and, if you're not using automake, define top_builddir as
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# appropriate in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Guess values for system-dependent variables and create Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Generated automatically using autoconf version 2.13
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This configure script is free software; the Free Software Foundation
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# gives unlimited permission to copy, distribute and modify it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Any additions from configure.in:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-mit-pthreads use the mit-pthreads thread library"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-ptl2 use the ptl2 thread library"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-libtool use GNU libtool"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --enable-ipv6 use IPv6 [default=autodetect]"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Initialize some variables set by options.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The variables have the same names as the options, with
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# dashes changed to underlines.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Initialize some other variables.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# Maximum number of lines to put in a shell here document.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If the previous option needs an argument, assign it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$ac_prev"; then
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington eval "$ac_prev=\$ac_option"
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson # Accept the important Cygnus configure options, so we can diagnose typos.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -bindir | --bindir | --bindi | --bind | --bin | --bi)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # Reject names that are not valid shell variable names.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafsson ac_feature=`echo $ac_feature| sed 's/-/_/g'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "enable_${ac_feature}=no" ;;
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graff ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Reject names that are not valid shell variable names.
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington eval "enable_${ac_feature}='$ac_optarg'" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Obsolete; use --with-gas.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Omit some internal or obsolete options to make the list less imposing.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # This message is too long to be a string in the A/UX 3.1 sh.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonUsage: configure [options] [host]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonOptions: [defaults in brackets after descriptions]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonConfiguration:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --cache-file=FILE cache test results in FILE
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --help print this message
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --no-create do not create output files
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --quiet, --silent do not print \`checking...' messages
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --version print the version of autoconf that created configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonDirectory and file names:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --prefix=PREFIX install architecture-independent files in PREFIX
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [$ac_default_prefix]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [same as prefix]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --bindir=DIR user executables in DIR [EPREFIX/bin]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --datadir=DIR read-only architecture-independent data in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington [PREFIX/share]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --sharedstatedir=DIR modifiable architecture-independent data in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --libdir=DIR object code libraries in DIR [EPREFIX/lib]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --includedir=DIR C header files in DIR [PREFIX/include]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --infodir=DIR info documentation in DIR [PREFIX/info]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --mandir=DIR man documentation in DIR [PREFIX/man]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --srcdir=DIR find the sources in DIR [configure dir or ..]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-prefix=PREFIX prepend PREFIX to installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-suffix=SUFFIX append SUFFIX to installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --program-transform-name=PROGRAM
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington run sed PROGRAM on installed program names
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --build=BUILD configure for building on BUILD [BUILD=HOST]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --host=HOST configure for HOST [guessed]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --target=TARGET configure for TARGET [TARGET=HOST]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonFeatures and packages:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --x-includes=DIR X include files are in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington --x-libraries=DIR X library files are in DIR
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -n "$ac_help"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "--enable and --with options recognized:$ac_help"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews -includedir | --includedir | --includedi | --included | --include \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --includ=* | --inclu=* | --incl=* | --inc=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -infodir | --infodir | --infodi | --infod | --info | --inf)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libdir=* | --libdir=* | --libdi=* | --libd=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -localstatedir | --localstatedir | --localstatedi | --localstated \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --localstate | --localstat | --localsta | --localst \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --locals | --local | --loca | --loc | --lo)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --localstate=* | --localstat=* | --localsta=* | --localst=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Obsolete; use --without-fp.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -no-recursion | --no-recursion | --no-recursio | --no-recursi \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-prefix | --program-prefix | --program-prefi | --program-pref \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-pre | --program-pr | --program-p)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-prefix=* | --program-prefix=* | --program-prefi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-suffix | --program-suffix | --program-suffi | --program-suff \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-suf | --program-su | --program-s)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-suffix=* | --program-suffix=* | --program-suffi=* \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -program-transform-name | --program-transform-name \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform-nam | --program-transform-na \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform-n | --program-transform- \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington | --program-transform | --program-transfor \
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson | --progr-tra | --program-tr | --program-t)
53fea9cd6857d349dfe484aea7468aec9e2129afAndreas Gustafsson -program-transform-name=* | --program-transform-name=* \
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews | --program-transform-nam=* | --program-transform-na=* \
dea69adf2425f8d0217109d8fc06378b859ce8b4Mark Andrews | --program-transform-n=* | --program-transform-=* \
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence | --program-transform=* | --program-transfor=* \
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson | --program-transfo=* | --program-transf=* \
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:672: checking host system type" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley @echo 'ac_maketemp="${MAKE}"'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_maketemp"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "ranlib", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$RANLIB"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$RANLIB"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find a good install program. We prefer a C program (faster),
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# so one script is as good as another. But avoid the broken or
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# incompatible versions:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AFS /usr/afsws/bin/install, which mishandles nonexistent args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./install, which can be erroneously created by make from ./install.sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:762: checking for a BSD compatible install" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$INSTALL"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Account for people who put trailing slashes in PATH elements.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # OSF1 and SCO ODT 3.0 have their own names for install.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Don't use installbsd from OSF since it installs stuff as root
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # by default.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # AIX install. It has an incompatible calling convention.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "${ac_cv_path_install+set}" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # As a last resort, use the slow shell script. We don't cache a
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # path for INSTALL within a source directory, because that will
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # break other packages using the cache if that directory is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # removed, or if the path is relative.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# It thinks the first close brace ends the variable substitution.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "ar", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$AR"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ETAGS"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$ETAGS" && break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Special processing of paths depending on whether --prefix,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# --sysconfdir or --localstatedir arguments were given. What's
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# desired is some compatability with the way previous versions
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# of BIND built; they defaulted to /usr/local for most parts of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the installation, but named.boot/named.conf was in /etc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# and named.pid was in /var/run.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# So ... if none of --prefix, --sysconfdir or --localstatedir are
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# specified, set things up that way. If --prefix is given, use
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# it for sysconfdir and localstatedir the way configure normally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# would. To change the prefix for everything but leave named.conf
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# in /etc or named.pid in /var/run, then do this the usual configure way:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/somewhere --sysconfdir=/etc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/somewhere --localstatedir=/var
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# To put named.conf and named.pid in /usr/local with everything else,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# set the prefix explicitly to /usr/local even though that's the default:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# ./configure --prefix=/usr/local
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley '${prefix}/etc')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley '${prefix}/var')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure INSTALL uses an absolute path, else it will be wrong in all
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure based on the location of the file where it is substituted.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# subdirectory of install-sh, This relative path will be wrong for all
d63b6310b43f414af232f65d20f735976f5efe87Mark Andrews# directories more than one level down from install-sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Not all systems have dirname.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On these hosts, we really want to use cc, not gcc, even if it is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# found. The gcc that these systems have will not correctly handle
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# However, if the user sets $CC to be something, let that override
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# our change.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Use Sun's cc if it is available, but watch
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # out for /usr/ucb/cc; it will never be the right
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # compiler to use.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # If setting CC here fails, the AC_PROG_CC done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # below might still find gcc.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f "$ac_dir/cc"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# If the user didn't specify where openssl is, and we didn't find or it
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# is imcompatible with our code, use our internal one.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# XXXMLG Implement this check!
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:1013: checking for compatible OpenSSL library" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffDST_OPENSSL_INC='-I${srcdir}/../openssl/include'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# This would include the system openssl path (and linker options to use
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# it as needed) if it is found.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# testing with alternate openssl libraries... XXXMLG
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DNS_OPENSSL_LIBS="-L/usr/pkg/lib -lssl -lcrypto"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_PRIVATEOPENSSL=''
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# dst_privateopenssl=''
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_OPENSSL_INC='-I/usr/pkg/include'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# DST_OPENSSL_LIB=''
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# NetBSD has two alternative pthreads implementations. Make the
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# user choose one by saying --with-mit-pthreads or --with-ptl2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# if necessary.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1054: checking which thread library to use" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test "${with_mit_pthreads+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Check whether --with-ptl2 or --without-ptl2 was given.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test "${with_ptl2+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # If user did not choose a thread library explicitly,
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # try to choose one automatically. This will work when
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # exactly one library is installed.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# LIBS="-L$LOCALBASE/lib -lPTL $LIBS"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrencePlease choose a thread library using one of
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence configure --with-mit-pthreads
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff configure --with-ptl2
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "gcc", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho "configure:1126: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence if test -n "$CC"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_prog_CC="$CC" # Let the user override the test.
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceif test -n "$CC"; then
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceif test -z "$CC"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley # Extract the first word of "cc", so it can be a program name with args.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho "configure:1156: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -n "$CC"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # We found a bogon in the path, so make sure we never use it.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # We chose a different compiler from the bogus one.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # However, it has the same basename, so the bogon will be chosen
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff # first if we set CC to just the basename; use the full file name.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$CC"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley if test -z "$CC"; then
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halley # Extract the first word of "cl", so it can be a program name with args.
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3b77946b751f39bd4db5a7d1fe48a81e6b1e7a28Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -n "$CC"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_prog_CC="$CC" # Let the user override the test.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif test -n "$CC"; then
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonecho "configure:1239: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#line 1250 "configure"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#include "confdefs.h"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonmain(){return(0);}
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson # If we can't run a trivial program, we are probably using a cross compiler.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho "configure:1281: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceecho "configure:1286: checking whether we are using GNU C" >&5
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence#ifdef __GNUC__
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceecho "configure:1314: checking whether ${CC-cc} accepts -g" >&5
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffif test "$ac_test_CFLAGS" = set; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# Extract the first word of "$ac_prog", so it can be a program name with args.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho "configure:1350: checking for $ac_word" >&5
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence if test -n "$YACC"; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_cv_prog_YACC="$YACC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$YACC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -n "$YACC" && break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1382: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1397 "configure"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1414 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1431 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1462: checking for ANSI C header files" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1467 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdlib.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdarg.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <string.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <float.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1492 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1510 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1531 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1574 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley{ (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$ac_err"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_header_$ac_safe=yes"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# HAVE_NETINET6_IN6_H needs to go in platform.h.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Including it on Kame-using platforms is very bad, though, because
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Kame has an #error against direct inclusion. So include it on only
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_HAVENETINET6IN6H="#define ISC_PLATFORM_HAVENETINET6IN6H 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LWRES_PLATFORM_HAVENETINET6IN6H="#define LWRES_PLATFORM_HAVENETINET6IN6H 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_HAVENETINET6IN6H="#undef ISC_PLATFORM_HAVENETINET6IN6H"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LWRES_PLATFORM_HAVENETINET6IN6H="#undef LWRES_PLATFORM_HAVENETINET6IN6H"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1629: checking for working const" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1634 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Ultrix mips cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytypedef int charset[2]; const charset x;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* SunOS 4.1.1 cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar const *const *ccp;
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews/* NEC SVR4.0.2 mips cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews struct s { int j; const int *ap[3]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:1683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1711 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#define inline $ac_cv_c_inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1749 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsecho "configure:1777: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews#line 1782 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1813: checking for pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1821 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleypthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1858: checking for __pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1866 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar __pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley__pthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff eval "ac_cv_lib_$ac_lib_var=no"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1905: checking for __pthread_create_system in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1913 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar __pthread_create_system();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley__pthread_create_system()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#define $ac_tr_lib 1
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews# We'd like to use sigwait() too
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewsecho $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsecho "configure:1959: checking for sigwait in -lc" >&5
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#line 1967 "configure"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews#include "confdefs.h"
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews/* We use char because int might match the return type of a gcc2
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews builtin and then its argument prototype would still apply. */
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewschar sigwait();
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrews; return 0; }
874d2a5138ac7e82b31940d21c13e160f665cf27Mark Andrewsif { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellington#define HAVE_SIGWAIT 1
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonecho "configure:2000: checking for sigwait in -lpthread" >&5
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
4320bd85180d1514af4477c4d2dadf0accbebac0Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2008 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* We use char because int might match the return type of a gcc2
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson builtin and then its argument prototype would still apply. */
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonchar sigwait();
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define HAVE_SIGWAIT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2041: checking for _Psigwait in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2049 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews builtin and then its argument prototype would still apply. */
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewschar _Psigwait();
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews; return 0; }
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsif { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
180936722e0c7fd1ee7e021a52e6fad3c220b782Mark Andrews#define HAVE_SIGWAIT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Additional OS-specific issues related to pthreads.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # One more place to look for sigwait.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2098: checking for sigwait in -lc_r" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2106 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar sigwait();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews#define HAVE_SIGWAIT 1
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews # BSDI 3.1 through 4.0.1 needs pthread_init() to be called before
754cca729dd82ae8363917dc00ad44f9d900635bMark Andrews # certain pthreads calls. This is deprecated in BSD/OS 4.1.
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define NEED_PTHREAD_INIT 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews # LinuxThreads requires some changes to the way we deal with signals.
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define HAVE_LINUXTHREADS 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews # Ensure the right sigwait() semantics on Solaris.
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#define _POSIX_PTHREAD_SEMANTICS 1
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsecho $ac_n "checking for catgets""... $ac_c" 1>&6
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews#line 2180 "configure"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include "confdefs.h"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews which can conflict with char catgets(); below. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#include <assert.h>
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* We use char because int might match the return type of a gcc2
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews builtin and then its argument prototype would still apply. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewschar catgets();
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews/* The GNU C library defines this for functions which it implements
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews to always fail with ENOSYS. Some functions are actually named
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews something starting with __ and the normal name is an alias. */
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#if defined (__stub_catgets) || defined (__stub___catgets)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews; return 0; }
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsif { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews eval "ac_cv_func_catgets=yes"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews eval "ac_cv_func_catgets=no"
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews#define HAVE_CATGETS 1
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews# -lxnet buys us one big porting headache... standards, gotta love 'em.
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(xnet, socket, ,
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(socket, socket)
7817a6f41b9e16da0325252ec24226b40f15a923Mark Andrews# AC_CHECK_LIB(nsl, inet_ntoa)
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Use this for now, instead:
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2241: checking for socket in -lsocket" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2249 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* We use char because int might match the return type of a gcc2
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson builtin and then its argument prototype would still apply. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define $ac_tr_lib 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2288: checking for inet_ntoa in -lnsl" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2296 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson/* We use char because int might match the return type of a gcc2
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson builtin and then its argument prototype would still apply. */
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonchar inet_ntoa();
66065f71b3ce2f28daeed264780ee20f347a1bf5Mark Andrews; return 0; }
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#define $ac_tr_lib 1
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# Networking specifics.
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson # Turn on 4.4BSD style sa_len support.
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#define _SOCKADDR_LEN 1
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson# Look for a 4.4BSD-style sa_len member in struct sockaddr.
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonecho "configure:2391: checking for sa_len in struct sockaddr" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#line 2393 "configure"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include "confdefs.h"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include <sys/types.h>
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson#include <sys/socket.h>
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafssonstruct sockaddr sa; sa.sa_len = 0; return (0);
06ccdb9fe7d87ac1a97ca9ac045a83bf7fd49496Andreas Gustafssonif { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson echo "configure: failed program was:" >&5
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
093823a75c8884f766fb4b3956b3f15535df3560Andreas Gustafsson LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson# Look for a 4.4BSD or 4.3BSD struct msghdr
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
49fa7b3b6ee5d3f84e50eaf4978b694986d931f0Mark Andrewsecho "configure:2423: checking for struct msghdr flavor" >&5
49fa7b3b6ee5d3f84e50eaf4978b694986d931f0Mark Andrews#line 2425 "configure"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include "confdefs.h"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include <sys/types.h>
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson#include <sys/socket.h>
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonstruct msghdr msg; msg.msg_flags = 0; return (0);
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafssonif { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson echo "configure: failed program was:" >&5
badcc5419ccdba7635aa400a2c5b30e35af29b6fAndreas Gustafsson ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson# Look for in_port_t.
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2452: checking for type in_port_t" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2454 "configure"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <sys/types.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netinet/in.h>
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonin_port_t port = 25; return (0);
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonif { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington# Check for addrinfo
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellingtonecho "configure:2481: checking for struct addrinfo" >&5
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#line 2483 "configure"
b0954235fd6d64aab3c81c19c656af776095a63fBrian Wellington#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonstruct addrinfo a; return (0);
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellingtonif { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson echo "configure: failed program was:" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonecho "configure:2506: checking for int sethostent" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2508 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonint i = sethostent(0); return(0);
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonif { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
fba21fcab9db48ac75701c7086d6f70b83cc020eAndreas Gustafsson echo "configure: failed program was:" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonecho "configure:2531: checking for int endhostent" >&5
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#line 2533 "configure"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#include "confdefs.h"
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington#include <netdb.h>
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellingtonint i = endhostent(); return(0);
898ad3e515d05d77c55976041658b22ce995b777Brian Wellingtonif { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3dec5690e9aafafcbe81d9888f6a41a0b9fd9813Brian Wellington ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellingtonecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
74bb5715b64789cf73b73165d2f630ed4613f1ccBrian Wellingtonecho "configure:2556: checking for getnetbyaddr(in_addr_t, ...)" >&5
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#line 2558 "configure"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include "confdefs.h"
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafsson#include <netdb.h>
5ff133b82082d82f0ba89b7c999c6b62b6298e46Andreas Gustafssonstruct netent *getnetbyaddr(in_addr_t, int);
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
4c692849bc49bdcc6f98afadd7bb2fc8a63ff39bMark Andrewsecho "configure:2582: checking for int setnetent" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2584 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint i = setnetent(0); return(0);
6ef891fbe943d6776ed17439ccb8bbb8e314b7d8Andreas Gustafssonif { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3b520900319f8982de2650705907fb452bd836c8Brian Wellington ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho "configure:2607: checking for int endnetent" >&5
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#line 2609 "configure"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonint i = endnetent(); return(0);
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonif { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2632: checking for gethostbyadd(const void *, size_t, ...)" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2634 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson#include <netdb.h>
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafssonstruct hostent *gethostbyaddr(const void *, size_t, int);
d3ea05978f26c409ff66b42a0dff222110e2c1e6Mark Andrews; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson echo "configure: failed program was:" >&5
9ce476812c93a1bb8b416adbe707ee5000a015f1Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2658: checking for h_errno in netdb.h" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2660 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <netdb.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonh_errno = 1; return(0);
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson echo "configure: failed program was:" >&5
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2683: checking for getipnodebyname" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2688 "configure"
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington#include "confdefs.h"
37f069964bb4774ebd6278287a6ada446c1bd6a8Andreas Gustafsson/* System header to define __stub macros and hopefully few prototypes,
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson which can conflict with char getipnodebyname(); below. */
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <assert.h>
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* We use char because int might match the return type of a gcc2
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington builtin and then its argument prototype would still apply. */
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellingtonchar getipnodebyname();
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington/* The GNU C library defines this for functions which it implements
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington to always fail with ENOSYS. Some functions are actually named
bf9ded3245a91ef3c06a2b9a4f87d6faa8d387f4Brian Wellington something starting with __ and the normal name is an alias. */
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
ce7994d137a013133e874b92604183923267fc94Brian Wellingtongetipnodebyname();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington eval "ac_cv_func_getipnodebyname=yes"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_getipnodebyname=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2732: checking for getnameinfo" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2737 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char getnameinfo(); below. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar getnameinfo();
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* The GNU C library defines this for functions which it implements
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence to always fail with ENOSYS. Some functions are actually named
ce7994d137a013133e874b92604183923267fc94Brian Wellington something starting with __ and the normal name is an alias. */
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencegetnameinfo();
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_func_getnameinfo=yes"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_func_getnameinfo=no"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho "configure:2781: checking for getaddrinfo" >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington#line 2786 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* System header to define __stub macros and hopefully few prototypes,
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence which can conflict with char getaddrinfo(); below. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include <assert.h>
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* We use char because int might match the return type of a gcc2
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar getaddrinfo();
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleygetaddrinfo();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_func_getaddrinfo=yes"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson eval "ac_cv_func_getaddrinfo=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Look for a sysctl call to get the list of network interfaces.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2837: checking for interface list sysctl" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2839 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#include <sys/param.h>
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include <sys/sysctl.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include <sys/socket.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#ifdef NET_RT_IFLIST
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfound_rt_iflist
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ce7994d137a013133e874b92604183923267fc94Brian Wellington#define HAVE_IFLIST_SYSCTL 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# GNU libtool support
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# Check whether --with-libtool or --without-libtool was given.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif test "${with_libtool+set}" = set; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # Check whether --enable-shared or --disable-shared was given.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif test "${enable_shared+set}" = set; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington # Look at the argument we got. We use all the common list separators.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley# Check whether --enable-static or --disable-static was given.
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonif test "${enable_static+set}" = set; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # Look at the argument we got. We use all the common list separators.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley# Check whether --enable-fast-install or --disable-fast-install was given.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif test "${enable_fast_install+set}" = set; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley # Look at the argument we got. We use all the common list separators.
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking build system type""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2949: checking build system type" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# Check whether --with-gnu-ld or --without-gnu-ld was given.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif test "${with_gnu_ld+set}" = set; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Check if gcc -print-prog-name=ld gives a path.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:2978: checking for ld used by GCC" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Accept absolute paths.
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence [\\/]* | [A-Za-z]:[\\/]*)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence # Canonicalize the path of ld
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # If it fails, then pretend we aren't using GCC.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # If it is relative, then search for the first ld in PATH.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3005: checking for non-GNU ld" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -z "$LD"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Check to see if the program is GNU ld. I'd rather use --version,
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # but apparently some GNU ld's only accept -v.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Break only if it was the GNU/non-GNU ld that we prefer.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_LD="$LD" # Let the user override the test with a path.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif test -n "$LD"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleytest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3041: checking if the linker ($LD) is GNU ld" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:3057: checking for BSD-compatible nm" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -n "$NM"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Let the user override the test.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Check to see if the nm accepts a BSD-compat flag.
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley # nm: unknown option "B" ignored
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley continue # so that we can try to find one that supports BSD flags
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonecho "configure:3094: checking whether ln -s works" >&5
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Check for any special flags to pass to ltconfig.
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif test "${enable_libtool_lock+set}" = set; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtontest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington# Some flags need to be propagated to the compiler or linker for good
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# libtool support.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # Find out which ABI we are using.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo '#line 3138 "configure"' > conftest.$ac_ext
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley # On SCO OpenServer 5, we need -belf to get full-featured binaries.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho "configure:3160: checking whether the C compiler needs -belf" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#line 3165 "configure"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson if test x"$lt_cv_cc_needs_belf" != x"yes"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley# Save cache, so that ltconfig can load it
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# This file is a shell script that caches the results of configure
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# tests run on this system so they can be shared between configure
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# scripts and configure runs. It is not useful on other systems.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# If it contains results you don't want to keep, you may remove or edit it.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# By default, configure uses ./config.cache as the cache file,
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# creating it if it does not exist already. You can give configure
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# the --cache-file=FILE option to use a different cache file; that is
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence# what configure does when it calls configure scripts in
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# subdirectories, so they share the cache.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# Giving --cache-file=/dev/null disables caching, for debugging configure.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# config.status only pays attention to the cache file if you give it the
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# --recheck option to rerun configure.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# The following way of writing the cache mishandles newlines in values,
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley# but we know of no workaround that is simple, portable, and efficient.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence# So, don't put newlines in cache variables' values.
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence# Ultrix sh set writes to stderr and can't be redirected directly,
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# and sets the high bit in the cache file unless we assign to the vars.
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff case `(ac_space=' '; set | grep ac_space) 2>&1` in
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # `set' does not quote correctly, so add quotes (double-quote substitution
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # turns \\\\ into \\, and sed turns \\ into \).
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff -e "s/'/'\\\\''/g" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff # `set' quotes correctly as required by POSIX, so do not add quotes.
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff if test -w $cache_file; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "updating cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "not updating unwritable cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Actually configure libtool. ac_aux_dir is where install-sh is found.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Reload cache, that may have been modified by ltconfig
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif test -r "$cache_file"; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "loading cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "creating cache $cache_file"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# This can be used to rebuild libtool when needed
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Always use our own libtool.
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonLIBTOOL='$(SHELL) $(top_builddir)/libtool'
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# Redirect the config.log output again, so that the ltconfig log is not
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# clobbered by the next message.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# File name extension for static archive files, for those few places
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# where they are treated differently from dynamic ones.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# Check whether --enable-ipv6 or --disable-ipv6 was given.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif test "${enable_ipv6+set}" = set; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# We do the IPv6 compilation checking after libtool so that we can put
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington# the right suffix on the files.
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho "configure:3309: checking for IPv6 structures" >&5
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#line 3311 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <sys/types.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <sys/socket.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <netinet/in.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonstruct sockaddr_in6 sin6; return (0);
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:3344: checking for in6addr_any" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 3346 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/types.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/socket.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <netinet/in.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonstruct in6_addr in6; in6 = in6addr_any; return (0);
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
1a1eba30c39d0962d778388554975be8a970f8d3Brian Wellington ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington# IPv6 support provided via Kame
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3392: checking for Kame IPv6 support" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington# Check whether --with-kame or --without-kame was given.
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif test "${with_kame+set}" = set; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington { echo "configure: error: $kame_path/lib/libinet6.a not found.
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas GustafssonPlease choose the proper path with the following command:
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington configure --with-kame=PATH
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# Check for network functions that are often missing. We do this
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington# after the libtool checking, so we can put the right suffix on
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho "configure:3439: checking for inet_ntop" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#line 3441 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <sys/types.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <netinet/in.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <arpa/inet.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtoninet_ntop(0, 0, 0, 0); return (0);
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3466: checking for inet_pton" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#line 3468 "configure"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include "confdefs.h"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <sys/types.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <netinet/in.h>
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include <arpa/inet.h>
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssoninet_pton(0, 0, 0); return (0);
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonif { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellingtonecho "configure:3493: checking for inet_aton" >&5
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#line 3495 "configure"
17ad53f0875b5fafd86f8d7ee43939c9cce7481eBrian Wellington#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <sys/types.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <netinet/in.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <arpa/inet.h>
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonstruct in_addr in; inet_aton(0, &in); return (0);
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# Check for some other useful functions that are not ever-present.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for strsep""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:3526: checking for strsep" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 3531 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char strsep(); below. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar strsep();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* The GNU C library defines this for functions which it implements
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence to always fail with ENOSYS. Some functions are actually named
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence something starting with __ and the normal name is an alias. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#if defined (__stub_strsep) || defined (__stub___strsep)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_strsep=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_strsep=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#line 3582 "configure"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* System header to define __stub macros and hopefully few prototypes,
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley which can conflict with char vsnprintf(); below. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar vsnprintf();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* The GNU C library defines this for functions which it implements
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley to always fail with ENOSYS. Some functions are actually named
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley something starting with __ and the normal name is an alias. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_vsnprintf=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_vsnprintf=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:3634: checking for sizeof(long long int) == sizeof(long int)" >&5
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#line 3640 "configure"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#include "confdefs.h"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffmain() { exit(!(sizeof(long long int) == sizeof(long int))); }
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# Security Stuff
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonecho $ac_n "checking for chroot""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 3669 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* System header to define __stub macros and hopefully few prototypes,
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley which can conflict with char chroot(); below. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include <assert.h>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar chroot();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* The GNU C library defines this for functions which it implements
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley to always fail with ENOSYS. Some functions are actually named
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley something starting with __ and the normal name is an alias. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#if defined (__stub_chroot) || defined (__stub___chroot)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_func_chroot=yes"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson eval "ac_cv_func_chroot=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define HAVE_CHROOT 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 3723 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff#include <$ac_hdr>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley{ (eval echo configure:3728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif test -z "$ac_err"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_header_$ac_safe=yes"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff eval "ac_cv_header_$ac_safe=no"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define $ac_tr_hdr 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobecho "configure:3758: checking for $ac_hdr" >&5
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#line 3763 "configure"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#include "confdefs.h"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#include <$ac_hdr>
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob{ (eval echo configure:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif test -z "$ac_err"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "ac_cv_header_$ac_safe=yes"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob eval "ac_cv_header_$ac_safe=no"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacobif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define $ac_tr_hdr 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Random remaining OS-specific issues.
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob#define SHUTUP_SPUTAUX 1
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob# Substitutions
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
94d523a04a9a5875fd1a4078ccfa8e9a158a004aStephen Jacob BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsBIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This file is a shell script that caches the results of configure
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson# tests run on this system so they can be shared between configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# scripts and configure runs. It is not useful on other systems.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If it contains results you don't want to keep, you may remove or edit it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# By default, configure uses ./config.cache as the cache file,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# creating it if it does not exist already. You can give configure
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the --cache-file=FILE option to use a different cache file; that is
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# what configure does when it calls configure scripts in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# subdirectories, so they share the cache.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Giving --cache-file=/dev/null disables caching, for debugging configure.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# config.status only pays attention to the cache file if you give it the
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson# --recheck option to rerun configure.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# The following way of writing the cache mishandles newlines in values,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# but we know of no workaround that is simple, portable, and efficient.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# So, don't put newlines in cache variables' values.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Ultrix sh set writes to stderr and can't be redirected directly,
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# and sets the high bit in the cache file unless we assign to the vars.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington case `(ac_space=' '; set | grep ac_space) 2>&1` in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # `set' does not quote correctly, so add quotes (double-quote substitution
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # turns \\\\ into \\, and sed turns \\ into \).
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -e "s/'/'\\\\''/g" \
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # `set' quotes correctly as required by POSIX, so do not add quotes.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -w $cache_file; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "updating cache $cache_file"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson echo "not updating unwritable cache $cache_file"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "x$prefix" = xNONE && prefix=$ac_default_prefix
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Let make expand exec_prefix.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Any assignment to VPATH causes Sun make to only execute
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the first set of double-colon rules, so remove it if not needed.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# If there is a colon in the path, we need to keep it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "x$srcdir" = x.; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Without the "./", some shells look in PATH for config.status.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Generated automatically by configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Run this file to recreate the current configuration.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This directory was configured as follows,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# $0 $ac_configure_args
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Compiler output produced by configure, useful for debugging
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews# configure, is in ./config.log if it exists.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "\$ac_option" in
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$CONFIG_STATUS generated by autoconf version 2.13"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -help | --help | --hel | --he | --h)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "\$ac_cs_usage"; exit 0 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *) echo "\$ac_cs_usage"; exit 1 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_srcdir=$srcdir
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_INSTALL="$INSTALL"
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewstrap 'rm -fr `echo "make/rules
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence make/includes
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews make/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/include/isc/platform.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/nls/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/include/Makefile
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews lib/dns/sec/openssl/include/openssl/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dnssafe/Makefile
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews lib/dns/sec/dst/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews lib/dns/sec/dst/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dst/include/dst/Makefile
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson lib/dns/config/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews lib/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/netdb.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/platform.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/include/omapi/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews lib/tests/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/include/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/lwresd/Makefile
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews bin/rndc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/dig/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/names/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/master/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews bin/tests/rbt/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/db/Makefile
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews bin/tests/tasks/Makefile
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews bin/tests/timers/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/mem/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/sockaddr/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/headerdep_test.sh
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being on the right side of a sed subst in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@SHELL@%$SHELL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CFLAGS@%$CFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CPPFLAGS@%$CPPFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CXXFLAGS@%$CXXFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@FFLAGS@%$FFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DEFS@%$DEFS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LDFLAGS@%$LDFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LIBS@%$LIBS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@exec_prefix@%$exec_prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@prefix@%$prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@program_transform_name@%$program_transform_name%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@bindir@%$bindir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sbindir@%$sbindir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@libexecdir@%$libexecdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@datadir@%$datadir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sysconfdir@%$sysconfdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@sharedstatedir@%$sharedstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@localstatedir@%$localstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@libdir@%$libdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@includedir@%$includedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@oldincludedir@%$oldincludedir%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@infodir@%$infodir%g
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewss%@mandir@%$mandir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@host@%$host%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@host_alias@%$host_alias%g
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewss%@host_cpu@%$host_cpu%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@host_vendor@%$host_vendor%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@host_os@%$host_os%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@SET_MAKE@%$SET_MAKE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@RANLIB@%$RANLIB%g
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewss%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_DATA@%$INSTALL_DATA%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@STD_CINCLUDES@%$STD_CINCLUDES%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@STD_CDEFINES@%$STD_CDEFINES%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@STD_CWARNINGS@%$STD_CWARNINGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ARFLAGS@%$ARFLAGS%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ETAGS@%$ETAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@dst_privateopenssl@%$dst_privateopenssl%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@YACC@%$YACC%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@CPP@%$CPP%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_HAVENETINET6IN6H@%$ISC_PLATFORM_HAVENETINET6IN6H%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@LWRES_PLATFORM_HAVENETINET6IN6H@%$LWRES_PLATFORM_HAVENETINET6IN6H%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@MKDEPCC@%$MKDEPCC%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@MKDEPPROG@%$MKDEPPROG%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build@%$build%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build_alias@%$build_alias%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@build_cpu@%$build_cpu%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@build_vendor@%$build_vendor%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@build_os@%$build_os%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LN_S@%$LN_S%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@LIBTOOL@%$LIBTOOL%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_IPV6_H@%$ISC_IPV6_H%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_IPV6_O@%$ISC_IPV6_O%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_IPV6_C@%$ISC_IPV6_C%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssons%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewss%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrewss%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@BIND9_INCLUDES@/r $BIND9_INCLUDES
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_INCLUDES@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@BIND9_MAKE_RULES@%%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@BIND9_VERSION@%$BIND9_VERSION%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@LIBISC_API@/r $LIBISC_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBISC_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@LIBDNS_API@/r $LIBDNS_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBDNS_API@%%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington/@LIBLWRES_API@/r $LIBLWRES_API
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LIBLWRES_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/@LIBOMAPI_API@/r $LIBOMAPI_API
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%@LIBOMAPI_API@%%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Split the substitutions into bite-sized pieces for seds with
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# small command number limits, like on Digital OSF/1 and HP-UX.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_end=$ac_max_sed_cmds # Line after last line for current file.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed "${ac_end}q" conftest.subs > conftest.s$ac_file
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews if test -z "$ac_sed_cmds"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafssonif test -z "$ac_sed_cmds"; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian WellingtonCONFIG_FILES=\${CONFIG_FILES-"make/rules
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington make/includes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington make/Makefile
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews lib/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/include/isc/platform.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/unix/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/nls/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/pthreads/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/isc/pthreads/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/isc/pthreads/include/isc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/include/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/dns/include/dns/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/openssl/include/openssl/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dnssafe/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/dns/sec/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dst/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/sec/dst/include/dst/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/dns/config/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/Makefile
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews lib/lwres/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/netdb.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/lwres/include/lwres/platform.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/omapi/Makefile
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews lib/omapi/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/omapi/include/omapi/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/include/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington lib/tests/include/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/named/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/named/unix/Makefile
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson bin/lwresd/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/rndc/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/dig/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/names/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/master/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/rbt/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/db/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/tasks/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/timers/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/dst/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/mem/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/sockaddr/Makefile
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington bin/tests/headerdep_test.sh
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Remove last slash and all that follows it. Not all systems have dirname.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # The file is in a subdirectory.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # A "../" for each directory in $ac_dir_suffix.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *) # Relative path.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@configure_input@%$configure_input%g
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleys%@top_srcdir@%$top_srcdir%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# NAME is the cpp macro being defined and VALUE is the value it is being given.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# ac_d sets the value in "#define NAME VALUE" lines.
e19a1c3cd91e22996e829eb776dafe6783a967b0Mark Andrews# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonif test "${CONFIG_HEADERS+set}" != set; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington CONFIG_HEADERS="config.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington rm -f conftest.frag conftest.in conftest.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Transform confdefs.h into a sed script conftest.vals that substitutes
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the proper values into config.h.in to produce config.h. And first:
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being on the right side of a sed subst in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Protect against being in an unquoted here document in config.status.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons/[\\&%]/\\&/g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%[\\$`]%\\&%g
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtonsed -n -f conftest.hdr confdefs.h > conftest.vals
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# This sed command replaces #undef with comments. This is necessary, for
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# example, in the case of _POSIX_SOURCE, which is predefined and required
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# on some systems where configure will not decide to define it.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtons%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# Break up conftest.vals because some shells have a limit on
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington# the size of here documents, and old seds have small limits too.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # grep -c gives empty output for an empty file on some AIX systems.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington # Write a limited-size here document to conftest.frag.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed -f conftest.frag conftest.in > conftest.out
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if cmp -s $ac_file conftest.h 2>/dev/null; then
439a2f855bf99c3dcc1bba21e387f4050c1ab869Andreas Gustafsson # Remove last slash and all that follows it. Not all systems have dirname.
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellington if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
b4ec020a0cd1f0437a0fdaab8659f00337079287Brian Wellingtontest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1