configure revision b6ec7affc66bd3f0fe47fc77b13e1d36b9ab24af
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#! /bin/sh
e3ef0f1b1fe8aeb64c9a99db3f1c655a62801099Tinderbox User
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 1996-2000 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# purpose with or without fee is hereby granted, provided that the above
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# copyright notice and this permission notice appear in all copies.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6b7257f756eb0530cdf54df9a7fab8d51a5001c3David Lawrence# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6b7257f756eb0530cdf54df9a7fab8d51a5001c3David Lawrence# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# From configure.in Revision: 1.199
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
ce2be9b7211ab5bacaa10fe74ef35def3a3f6089David Lawrence## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence## Copyright (C) 1996-1999, 2000 Free Software Foundation, Inc.
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington##
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews## This program is free software; you can redistribute it and/or modify
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence## it under the terms of the GNU General Public License as published by
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont## the Free Software Foundation; either version 2 of the License, or
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews## (at your option) any later version.
f96b41064bcd427d8125a096fd646c1f068d8ed7David Lawrence##
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington## This program is distributed in the hope that it will be useful, but
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence## WITHOUT ANY WARRANTY; without even the implied warranty of
f96b41064bcd427d8125a096fd646c1f068d8ed7David Lawrence## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e19501436a92cd48eba2ff47d90fa49c661ec8d8Brian Wellington## General Public License for more details.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence##
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence## You should have received a copy of the GNU General Public License
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews## along with this program; if not, write to the Free Software
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson##
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence## As a special exception to the GNU General Public License, if you
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington## distribute this file as part of a program that contains a
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington## configuration script generated by Autoconf, you may include it under
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington## the same distribution terms that you use for the rest of that program.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# serial 40 AC_PROG_LIBTOOL
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
d32b13e0be7f01020365c83a0bd36483ace4d7c3Mark Andrews# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
d32b13e0be7f01020365c83a0bd36483ace4d7c3Mark Andrews
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
3f96cf3e4f96b36cc1ad2ec7edc5b8e285fced8fBrian Wellington# AC_ENABLE_SHARED - implement the --enable-shared flag
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7318a964ece83f748bc7e9814d8c3a61c2b4d946Mark Andrews# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence# `yes'.
4cd765650776027d05fe7fca248478918e02e63bDavid Lawrence
80b67b3a4f2d9fc7fdd32a50edc67ff189894da2Danny Mayer
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington# AC_ENABLE_STATIC - implement the --enable-static flag
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews# Usage: AC_ENABLE_STATIC[(DEFAULT)]
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington# `yes'.
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# AC_DISABLE_STATIC - set the default static flag to --disable-static
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
4144efb39046963989ad002cf88a0c195401100aJeremy Reed# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt# `yes'.
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
bfafdac0616107ff32389532e7040567cd84b8aaBrian Wellington
2ba574f329c14376d26d7c0f22c89d7a978a2625Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews# AC_PROG_LD - find the path to the GNU or non-GNU linker
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington# AC_PROG_NM - find the path to a BSD-compatible name lister
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont# AC_CHECK_LIBM - check for math library
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
5b79d154014f87b6c54b1ec2d3912c35b02042a1Mark Andrews# the libltdl convenience library and INCLTDL to the include flags for
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt# the libltdl header and adds --enable-ltdl-convenience to the
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrence# configure arguments. Note that LIBLTDL and INCLTDL are not
f7c21e46c4b5fdae516b91374c24a87671f83ea3Andreas Gustafsson# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrence# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# with '${top_builddir}/' and INCLTDL will be prefixed with
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaraman# '${top_srcdir}/' (note the single quotes!). If your package is not
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# flat and you're not using automake, define top_builddir and
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaraman# top_srcdir appropriately in the Makefiles.
d6a0e00dc3e047f8470b938878926957070def77Mark Andrews
19977879caf8579a5fafb0cf3bf1cb983063796cEvan Hunt
d6a0e00dc3e047f8470b938878926957070def77Mark Andrews# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
d6a0e00dc3e047f8470b938878926957070def77Mark Andrews# the libltdl installable library and INCLTDL to the include flags for
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# the libltdl header and adds --enable-ltdl-install to the configure
b326d7e3a3a50eb65dd06db007d2fddc62606bbfMark Andrews# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
5455f30a7532738d750252c00e649890c694ee30Brian Wellington# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
5455f30a7532738d750252c00e649890c694ee30Brian Wellington# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
60213f2815a7e6584a2285546d05633fa7b6f5b4Mark Andrews# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
c30d291128e099a284fa6272b91b2bd64519a209Mark Andrews# with '${top_srcdir}/' (note the single quotes!). If your package is
6150d3cb666a58d5e3a15275562c9fc5c5b6b2d8Evan Hunt# not flat and you're not using automake, define top_builddir and
6150d3cb666a58d5e3a15275562c9fc5c5b6b2d8Evan Hunt# top_srcdir appropriately in the Makefiles.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Guess values for system-dependent variables and create Makefiles.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Generated automatically using autoconf version 2.13
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrews#
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrews# This configure script is free software; the Free Software Foundation
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrews# gives unlimited permission to copy, distribute and modify it.
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrews
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrews# Defaults:
ecaed3593cd14f2491d1bd81fc98cb940e12f8bbMark Andrewsac_help=
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaramanac_default_prefix=/usr/local
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaraman# Any additions from configure.in:
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaramanac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --enable-threads use multithreading"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --with-openssl=PATH Specify path for system-supplied openssl
323bb31d7c54078aa62146b3aa946b755cbfd52bMark Andrews (rather than using bind-9 internal openssl)"
323bb31d7c54078aa62146b3aa946b755cbfd52bMark Andrewsac_help="$ac_help
547411428e467f2a2848886eaac0a8b3e136a9abEvan Hunt --with-gssapi=PATH Specify path for system-supplied GSSAPI"
547411428e467f2a2848886eaac0a8b3e136a9abEvan Huntac_help="$ac_help
547411428e467f2a2848886eaac0a8b3e136a9abEvan Hunt --with-randomdev=PATH Specify path for random device"
547411428e467f2a2848886eaac0a8b3e136a9abEvan Huntac_help="$ac_help
629a0159401a6c0d991a78a6d0b90ee84e83668cEvan Hunt --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
547411428e467f2a2848886eaac0a8b3e136a9abEvan Huntac_help="$ac_help
547411428e467f2a2848886eaac0a8b3e136a9abEvan Hunt --with-libtool use GNU libtool (following indented options supported)"
547411428e467f2a2848886eaac0a8b3e136a9abEvan Huntac_help="$ac_help
547411428e467f2a2848886eaac0a8b3e136a9abEvan Hunt --enable-shared[=PKGS] build shared libraries [default=yes]"
547411428e467f2a2848886eaac0a8b3e136a9abEvan Huntac_help="$ac_help
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Hunt --enable-static[=PKGS] build static libraries [default=yes]"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --disable-libtool-lock avoid locking (might break parallel builds)"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --enable-ipv6 use IPv6 [default=autodetect]"
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_help="$ac_help
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
62ec9fd1681ffae7d6b0d54618599ecf650e3100Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Initialize some variables set by options.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# The variables have the same names as the options, with
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaraman# dashes changed to underlines.
fc39b6a96109b78154ec148d20eaf29e8abc14b6Mukund Sivaramanbuild=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewscache_file=./config.cache
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsexec_prefix=NONE
9c03f13e18c1b0c32f62391a17300378605bbc7bEvan Hunthost=NONE
9c03f13e18c1b0c32f62391a17300378605bbc7bEvan Huntno_create=
9c03f13e18c1b0c32f62391a17300378605bbc7bEvan Huntnonopt=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsno_recursion=
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsprefix=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsprogram_prefix=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsprogram_suffix=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsprogram_transform_name=s,x,x,
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewssilent=
9bd876a683709be588f6fac6781a76fdd57b2f08Mark Andrewssite=
9bd876a683709be588f6fac6781a76fdd57b2f08Mark Andrewssrcdir=
9bd876a683709be588f6fac6781a76fdd57b2f08Mark Andrewstarget=NONE
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsverbose=
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsx_includes=NONE
fdcfc6bae754ee8f0b43dfd872284a294a8f2fd2Mark Andrewsx_libraries=NONE
fdcfc6bae754ee8f0b43dfd872284a294a8f2fd2Mark Andrewsbindir='${exec_prefix}/bin'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewssbindir='${exec_prefix}/sbin'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewslibexecdir='${exec_prefix}/libexec'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsdatadir='${prefix}/share'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewssysconfdir='${prefix}/etc'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewssharedstatedir='${prefix}/com'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewslocalstatedir='${prefix}/var'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewslibdir='${exec_prefix}/lib'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsincludedir='${prefix}/include'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsoldincludedir='/usr/include'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsinfodir='${prefix}/info'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsmandir='${prefix}/man'
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Initialize some other variables.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewssubdirs=
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark AndrewsMFLAGS= MAKEFLAGS=
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark AndrewsSHELL=${CONFIG_SHELL-/bin/sh}
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews# Maximum number of lines to put in a shell here document.
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsac_max_here_lines=12
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan Huntac_prev=
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsfor ac_option
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrewsdo
d96f74a3cb6212ac9e4a7a0fa8924f850348eae9Mark Andrews
94b166ffa58ef0ff263563c0550d0b30eb9f7772David Lawrence # If the previous option needs an argument, assign it.
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence if test -n "$ac_prev"; then
87983da955bf63128de85d180359bdc418516c3cDavid Lawrence eval "$ac_prev=\$ac_option"
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence ac_prev=
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence continue
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence fi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington case "$ac_option" in
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington *) ac_optarg= ;;
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews esac
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews # Accept the important Cygnus configure options, so we can diagnose typos.
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews case "$ac_option" in
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater -bindir | --bindir | --bindi | --bind | --bin | --bi)
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews ac_prev=bindir ;;
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews bindir="$ac_optarg" ;;
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews -build | --build | --buil | --bui | --bu)
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews ac_prev=build ;;
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington build="$ac_optarg" ;;
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington -cache-file | --cache-file | --cache-fil | --cache-fi \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=cache_file ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington cache_file="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=datadir ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington | --da=*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington datadir="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -disable-* | --disable-*)
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews # Reject names that are not valid shell variable names.
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews fi
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington eval "enable_${ac_feature}=no" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -enable-* | --enable-*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington # Reject names that are not valid shell variable names.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington fi
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington case "$ac_option" in
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington *=*) ;;
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington *) ac_optarg=yes ;;
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence esac
e1d05d323526e7e65df13a6d3dfbec30f6ddb500Brian Wellington eval "enable_${ac_feature}='$ac_optarg'" ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews | --exec | --exe | --ex)
287910778c57d4836a52b03b697c2ef342d0eaa9Francis Dupont ac_prev=exec_prefix ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --exec=* | --exe=* | --ex=*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington exec_prefix="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -gas | --gas | --ga | --g)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington # Obsolete; use --with-gas.
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence with_gas=yes ;;
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt -help | --help | --hel | --he)
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence # Omit some internal or obsolete options to make the list less imposing.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington # This message is too long to be a string in the A/UX 3.1 sh.
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews cat << EOF
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark AndrewsUsage: configure [options] [host]
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonOptions: [defaults in brackets after descriptions]
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonConfiguration:
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --cache-file=FILE cache test results in FILE
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --help print this message
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --no-create do not create output files
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --quiet, --silent do not print \`checking...' messages
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --version print the version of autoconf that created configure
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian WellingtonDirectory and file names:
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --prefix=PREFIX install architecture-independent files in PREFIX
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington [$ac_default_prefix]
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
927e4c9fecf448bf3894c68fcaf9dc2f89557f3aEvan Hunt [same as prefix]
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt --bindir=DIR user executables in DIR [EPREFIX/bin]
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
927e4c9fecf448bf3894c68fcaf9dc2f89557f3aEvan Hunt --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington --datadir=DIR read-only architecture-independent data in DIR
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington [PREFIX/share]
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --sharedstatedir=DIR modifiable architecture-independent data in DIR
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt [PREFIX/com]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --libdir=DIR object code libraries in DIR [EPREFIX/lib]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --includedir=DIR C header files in DIR [PREFIX/include]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --infodir=DIR info documentation in DIR [PREFIX/info]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --mandir=DIR man documentation in DIR [PREFIX/man]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --srcdir=DIR find the sources in DIR [configure dir or ..]
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt --program-prefix=PREFIX prepend PREFIX to installed program names
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --program-suffix=SUFFIX append SUFFIX to installed program names
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --program-transform-name=PROGRAM
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews run sed PROGRAM on installed program names
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark AndrewsEOF
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews cat << EOF
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark AndrewsHost type:
f07fe5a1ac9d1345eb7a36a0bc38716a03e25f61Mark Andrews --build=BUILD configure for building on BUILD [BUILD=HOST]
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --host=HOST configure for HOST [guessed]
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington --target=TARGET configure for TARGET [TARGET=HOST]
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark AndrewsFeatures and packages:
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --x-includes=DIR X include files are in DIR
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews --x-libraries=DIR X library files are in DIR
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark AndrewsEOF
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews if test -n "$ac_help"; then
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews echo "--enable and --with options recognized:$ac_help"
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews fi
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews exit 0 ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -host | --host | --hos | --ho)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=host ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -host=* | --host=* | --hos=* | --ho=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews host="$ac_optarg" ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews -includedir | --includedir | --includedi | --included | --include \
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews | --includ | --inclu | --incl | --inc)
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_prev=includedir ;;
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
bcae9a15c1e9c50a6e6433168d5225b1de89d6b9Evan Hunt | --includ=* | --inclu=* | --incl=* | --inc=*)
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews includedir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -infodir | --infodir | --infodi | --infod | --info | --inf)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=infodir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews infodir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -libdir | --libdir | --libdi | --libd)
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt ac_prev=libdir ;;
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt -libdir=* | --libdir=* | --libdi=* | --libd=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews libdir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews | --libexe | --libex | --libe)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=libexecdir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --libexe=* | --libex=* | --libe=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews libexecdir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -localstatedir | --localstatedir | --localstatedi | --localstated \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --localstate | --localstat | --localsta | --localst \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --locals | --local | --loca | --loc | --lo)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=localstatedir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --localstate=* | --localstat=* | --localsta=* | --localst=* \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews localstatedir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=mandir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews mandir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -nfp | --nfp | --nf)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt # Obsolete; use --without-fp.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt with_fp=no ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --no-cr | --no-c)
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt no_create=yes ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt -no-recursion | --no-recursion | --no-recursio | --no-recursi \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt no_recursion=yes ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --oldin | --oldi | --old | --ol | --o)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=oldincludedir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews oldincludedir="$ac_optarg" ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=prefix ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews prefix="$ac_optarg" ;;
35b65c4cdf44dbdcd2121743e9760e2354c1e279Ondřej Surý
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -program-prefix | --program-prefix | --program-prefi | --program-pref \
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews | --program-pre | --program-pr | --program-p)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews ac_prev=program_prefix ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -program-prefix=* | --program-prefix=* | --program-prefi=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews program_prefix="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -program-suffix | --program-suffix | --program-suffi | --program-suff \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --program-suf | --program-su | --program-s)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=program_suffix ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -program-suffix=* | --program-suffix=* | --program-suffi=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington program_suffix="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington -program-transform-name | --program-transform-name \
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington | --program-transform-nam | --program-transform-na \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --program-transform-n | --program-transform- \
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews | --program-transform | --program-transfor \
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews | --program-transfo | --program-transf \
420e5e1022ff5ca4697ed5286462eeaf03614e53Brian Wellington | --program-trans | --program-tran \
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews | --progr-tra | --program-tr | --program-t)
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington ac_prev=program_transform_name ;;
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews -program-transform-name=* | --program-transform-name=* \
420e5e1022ff5ca4697ed5286462eeaf03614e53Brian Wellington | --program-transform-nam=* | --program-transform-na=* \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --program-transform-n=* | --program-transform-=* \
420e5e1022ff5ca4697ed5286462eeaf03614e53Brian Wellington | --program-transform=* | --program-transfor=* \
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews | --program-transfo=* | --program-transf=* \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --program-trans=* | --program-tran=* \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --progr-tra=* | --program-tr=* | --program-t=*)
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews program_transform_name="$ac_optarg" ;;
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | -silent | --silent | --silen | --sile | --sil)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington silent=yes ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=sbindir ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --sbi=* | --sb=*)
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews sbindir="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt -sharedstatedir | --sharedstatedir | --sharedstatedi \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sharedst | --shareds | --shared | --share | --shar \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sha | --sh)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt ac_prev=sharedstatedir ;;
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt | --sha=* | --sh=*)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt sharedstatedir="$ac_optarg" ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt -site | --site | --sit)
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt ac_prev=site ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -site=* | --site=* | --sit=*)
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt site="$ac_optarg" ;;
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=srcdir ;;
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington srcdir="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington | --syscon | --sysco | --sysc | --sys | --sy)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=sysconfdir ;;
35b65c4cdf44dbdcd2121743e9760e2354c1e279Ondřej Surý -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington sysconfdir="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington -target | --target | --targe | --targ | --tar | --ta | --t)
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_prev=target ;;
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews target="$ac_optarg" ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington -v | -verbose | --verbose | --verbos | --verbo | --verb)
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence verbose=yes ;;
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence -version | --version | --versio | --versi | --vers)
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence echo "configure generated by autoconf version 2.13"
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence exit 0 ;;
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews -with-* | --with-*)
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews # Reject names that are not valid shell variable names.
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
4423c99613db1399dbb5c51e86ef0d351a1418c2Mark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews fi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
240e53b13217af266abb3dae8ba103614daf2bf7Mark Andrews case "$ac_option" in
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews *=*) ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews *) ac_optarg=yes ;;
240e53b13217af266abb3dae8ba103614daf2bf7Mark Andrews esac
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews eval "with_${ac_package}='$ac_optarg'" ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews -without-* | --without-*)
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_package=`echo $ac_option|sed -e 's/-*without-//'`
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington # Reject names that are not valid shell variable names.
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington fi
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ac_package=`echo $ac_package| sed 's/-/_/g'`
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington eval "with_${ac_package}=no" ;;
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington --x)
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington # Obsolete; use --with-x.
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington with_x=yes ;;
bcdf37e0ff7d73310b7bf247d755194a5718ba38Mark Andrews
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington | --x-incl | --x-inc | --x-in | --x-i)
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence ac_prev=x_includes ;;
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence x_includes="$ac_optarg" ;;
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence -x-libraries | --x-libraries | --x-librarie | --x-librari \
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews ac_prev=x_libraries ;;
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews x_libraries="$ac_optarg" ;;
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews ;;
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews *)
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews echo "configure: warning: $ac_option: invalid host type" 1>&2
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test "x$nonopt" != xNONE; then
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews nonopt="$ac_option"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ;;
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence esac
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrencedone
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test -n "$ac_prev"; then
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
17a00ff54c51f6bdfddd7d9ceaef6f2dcf387cc1Mark Andrewsfi
17a00ff54c51f6bdfddd7d9ceaef6f2dcf387cc1Mark Andrews
17a00ff54c51f6bdfddd7d9ceaef6f2dcf387cc1Mark Andrewstrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# File descriptor usage:
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# 0 standard input
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# 1 file creation
4144efb39046963989ad002cf88a0c195401100aJeremy Reed# 2 errors and warnings
4144efb39046963989ad002cf88a0c195401100aJeremy Reed# 3 some systems may open it to /dev/tty
4144efb39046963989ad002cf88a0c195401100aJeremy Reed# 4 used on the Kubota Titan
4144efb39046963989ad002cf88a0c195401100aJeremy Reed# 6 checking for... messages and results
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence# 5 compiler messages saved in config.log
73a691c373488e4f70387a62462cd8ce0d991705David Lawrenceif test "$silent" = yes; then
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence exec 6>/dev/null
73a691c373488e4f70387a62462cd8ce0d991705David Lawrenceelse
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence exec 6>&1
73a691c373488e4f70387a62462cd8ce0d991705David Lawrencefi
73a691c373488e4f70387a62462cd8ce0d991705David Lawrenceexec 5>./config.log
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
0a77211c806fa84fd66638b5cccf550c7cd7760dAndreas Gustafssonecho "\
0a77211c806fa84fd66638b5cccf550c7cd7760dAndreas GustafssonThis file contains any messages produced by compilers while
73a691c373488e4f70387a62462cd8ce0d991705David Lawrencerunning configure, to aid debugging if configure makes a mistake.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews" 1>&5
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Strip out --no-create and --no-recursion so they do not pile up.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Also quote any args containing shell metacharacters.
0a77211c806fa84fd66638b5cccf550c7cd7760dAndreas Gustafssonac_configure_args=
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfor ac_arg
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrewsdo
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews case "$ac_arg" in
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews | --no-cr | --no-c) ;;
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_configure_args="$ac_configure_args '$ac_arg'" ;;
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews *) ac_configure_args="$ac_configure_args $ac_arg" ;;
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews esac
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafssondone
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# NLS nuisances.
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater# Only set these to C if already set. These must not be set unconditionally
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# because not all systems understand e.g. LANG=C (notably SCO).
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Non-C LC_CTYPE values break the ctype check.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test "${LANG+set}" = set; then LANG=C; export LANG; fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# confdefs.h avoids OS command line length limits that DEFS can exceed.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsrm -rf conftest* confdefs.h
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# AIX cpp loses on an empty file, so make sure it contains at least a newline.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsecho > confdefs.h
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# A filename unique to this package, relative to the directory that
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# configure is in, which we can look for to find out if srcdir is correct.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsac_unique_file=lib/dns/name.c
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Find the source files, if location was not specified.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test -z "$srcdir"; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_srcdir_defaulted=yes
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # Try the directory containing this script, then its parent.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_prog=$0
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews srcdir=$ac_confdir
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test ! -r $srcdir/$ac_unique_file; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews srcdir=..
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewselse
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_srcdir_defaulted=no
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test ! -r $srcdir/$ac_unique_file; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test "$ac_srcdir_defaulted" = yes; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews else
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewssrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews# Prefer explicitly selected file to automatically selected ones.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif test -z "$CONFIG_SITE"; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test "x$prefix" != xNONE; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews else
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfor ac_site_file in $CONFIG_SITE; do
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test -r "$ac_site_file"; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews echo "loading site script $ac_site_file"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews . "$ac_site_file"
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt fi
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntdone
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntif test -r "$cache_file"; then
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt echo "loading cache $cache_file"
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews . $cache_file
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrewselse
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews echo "creating cache $cache_file"
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt > $cache_file
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntfi
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntac_ext=c
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntac_cpp='$CPP $CPPFLAGS'
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntcross_compiling=$ac_cv_prog_cc_cross
4eb998928b9aef0ceda42d7529980d658138698aEvan Hunt
4eb998928b9aef0ceda42d7529980d658138698aEvan Huntac_exeext=
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsac_objext=o
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_n= ac_c='
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews' ac_t=' '
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews else
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_n=-n ac_c= ac_t=
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews fi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewselse
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_n= ac_c='\c' ac_t=
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfi
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsac_aux_dir=
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewsfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews if test -f $ac_dir/install-sh; then
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews ac_aux_dir=$ac_dir
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews ac_install_sh="$ac_aux_dir/install-sh -c"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews break
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews elif test -f $ac_dir/install.sh; then
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews ac_aux_dir=$ac_dir
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews ac_install_sh="$ac_aux_dir/install.sh -c"
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews break
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews fi
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsdone
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsif test -z "$ac_aux_dir"; then
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsfi
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsac_config_guess=$ac_aux_dir/config.guess
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsac_config_sub=$ac_aux_dir/config.sub
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# Make sure we can run config.sub.
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrewselse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsfi
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsecho $ac_n "checking host system type""... $ac_c" 1>&6
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsecho "configure:699: checking host system type" >&5
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewshost_alias=$host
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewscase "$host_alias" in
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark AndrewsNONE)
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews case $nonopt in
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews NONE)
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews fi ;;
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews *) host_alias=$nonopt ;;
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews esac ;;
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsesac
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewshost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewshost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewshost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewshost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsecho "$ac_t""$host" 1>&6
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsecho "configure:721: checking whether ${MAKE-make} sets \${MAKE}" >&5
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewselse
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews cat > conftestmake <<\EOF
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsall:
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews @echo 'ac_maketemp="${MAKE}"'
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark AndrewsEOF
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewseval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsif test -n "$ac_maketemp"; then
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews eval ac_cv_prog_make_${ac_make}_set=yes
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewselse
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews eval ac_cv_prog_make_${ac_make}_set=no
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsfi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsrm -f conftestmake
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsfi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews echo "$ac_t""yes" 1>&6
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews SET_MAKE=
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewselse
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews echo "$ac_t""no" 1>&6
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews SET_MAKE="MAKE=${MAKE-make}"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsfi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews# Extract the first word of "ranlib", so it can be a program name with args.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsset dummy ranlib; ac_word=$2
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsecho "configure:750: checking for $ac_word" >&5
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewselse
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews if test -n "$RANLIB"; then
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrewselse
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_dummy="$PATH"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews for ac_dir in $ac_dummy; do
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews test -z "$ac_dir" && ac_dir=.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews if test -f $ac_dir/$ac_word; then
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_cv_prog_RANLIB="ranlib"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews break
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews fi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews done
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews IFS="$ac_save_ifs"
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
73a691c373488e4f70387a62462cd8ce0d991705David Lawrencefi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencefi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceRANLIB="$ac_cv_prog_RANLIB"
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrenceif test -n "$RANLIB"; then
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt echo "$ac_t""$RANLIB" 1>&6
4716e94840921878b26e493576f84afe4fe08752Mark Andrewselse
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington echo "$ac_t""no" 1>&6
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonfi
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington# Find a good install program. We prefer a C program (faster),
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington# so one script is as good as another. But avoid the broken or
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington# incompatible versions:
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence# SysV /etc/install, /usr/sbin/install
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews# SunOS /usr/etc/install
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews# IRIX /sbin/install
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# AIX /bin/install
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# AFS /usr/afsws/bin/install, which mishandles nonexistent args
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# ./install, which can be erroneously created by make from ./install.sh.
bfafdac0616107ff32389532e7040567cd84b8aaBrian Wellingtonecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
73a691c373488e4f70387a62462cd8ce0d991705David Lawrenceecho "configure:789: checking for a BSD compatible install" >&5
e851ea826066ac5a5b01c2c23218faa0273a12e8Evan Huntif test -z "$INSTALL"; then
bfafdac0616107ff32389532e7040567cd84b8aaBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewselse
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews for ac_dir in $PATH; do
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews # Account for people who put trailing slashes in PATH elements.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews case "$ac_dir/" in
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson *)
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson # OSF1 and SCO ODT 3.0 have their own names for install.
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson # Don't use installbsd from OSF since it installs stuff as root
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # by default.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews for ac_prog in ginstall scoinst install; do
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews if test -f $ac_dir/$ac_prog; then
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt if test $ac_prog = install &&
94b50bce2b5deeac93734457d5474736d7b76af1Michael Sawyer grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence # AIX install. It has an incompatible calling convention.
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews :
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews else
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_cv_path_install="$ac_dir/$ac_prog -c"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews break 2
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews fi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews fi
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews done
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ;;
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews esac
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews done
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews IFS="$ac_save_IFS"
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrencefi
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence if test "${ac_cv_path_install+set}" = set; then
4144efb39046963989ad002cf88a0c195401100aJeremy Reed INSTALL="$ac_cv_path_install"
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence else
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence # As a last resort, use the slow shell script. We don't cache a
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # path for INSTALL within a source directory, because that will
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # break other packages using the cache if that directory is
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews # removed, or if the path is relative.
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews INSTALL="$ac_install_sh"
5096958739769958dd7a6b69356bf41260033873David Lawrence fi
b39ad8a69bc2859b99c9f5a63d916789b566e470Andreas Gustafssonfi
5096958739769958dd7a6b69356bf41260033873David Lawrenceecho "$ac_t""$INSTALL" 1>&6
5096958739769958dd7a6b69356bf41260033873David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# It thinks the first close brace ends the variable substitution.
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencetest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencetest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrewstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt
e7c0d42b11358f08e04316d31c67c23261dcdf36Evan Hunt# Extract the first word of "ar", so it can be a program name with args.
9e804040a29b9c3066c8471b43835f30707039b7Evan Huntset dummy ar; ac_word=$2
9e804040a29b9c3066c8471b43835f30707039b7Evan Huntecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
9e804040a29b9c3066c8471b43835f30707039b7Evan Huntecho "configure:850: checking for $ac_word" >&5
9e804040a29b9c3066c8471b43835f30707039b7Evan Huntif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrenceelse
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence case "$AR" in
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews /*)
94b50bce2b5deeac93734457d5474736d7b76af1Michael Sawyer ac_cv_path_AR="$AR" # Let the user override the test with a path.
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence ;;
30a4d5b0c23eb7a73d9635a98250560437a42d59David Lawrence ?:/*)
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
3734f3f1bad4160cdd7563bc4801bca7e82f8abdDavid Lawrence ;;
3734f3f1bad4160cdd7563bc4801bca7e82f8abdDavid Lawrence *)
3734f3f1bad4160cdd7563bc4801bca7e82f8abdDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater ac_dummy="$PATH"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence for ac_dir in $ac_dummy; do
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews test -z "$ac_dir" && ac_dir=.
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews if test -f $ac_dir/$ac_word; then
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews ac_cv_path_AR="$ac_dir/$ac_word"
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews break
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews fi
47c5b8af920a93763c97d9a93ea1fd766961a5b3Evan Hunt done
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrews IFS="$ac_save_ifs"
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence ;;
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceesac
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencefi
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark AndrewsAR="$ac_cv_path_AR"
0f8c9b5eed7e8714ceb7d6d3675555df9c5f6350Mark Andrewsif test -n "$AR"; then
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater echo "$ac_t""$AR" 1>&6
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceelse
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence echo "$ac_t""no" 1>&6
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencefi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David LawrenceARFLAGS="cruv"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence# The POSIX ln(1) program. Non-POSIX systems may substitute
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark Andrews# "copy" or something.
72ddc4cef9c6a6de53aae530dea1ddbb90631131Mark AndrewsLN=ln
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Huntcase "$AR" in
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington "")
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence { echo "configure: error:
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Huntar program not found. Please fix your PATH to include the directory in
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonwhich ar resides, or set AR in the environment with the full path to ar.
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington" 1>&2; exit 1; }
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington ;;
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonesac
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonfor ac_prog in etags emacs-etags
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtondo
1d16cf8bb8596c3e4dc1123a5bdf360bf24a272bAutomatic Updater# Extract the first word of "$ac_prog", so it can be a program name with args.
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonset dummy $ac_prog; ac_word=$2
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonecho "configure:906: checking for $ac_word" >&5
73a691c373488e4f70387a62462cd8ce0d991705David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt echo $ac_n "(cached) $ac_c" 1>&6
d7ba3622ffa20c653ef6c8cfae42d8cd26465b7fBrian Wellingtonelse
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington case "$ETAGS" in
3db78e0855a8dfc162180880cd70d9c1a03d9301David Lawrence /*)
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
6dc32b43da2c7af5bf460a45a17d03226c162c91Michael Sawyer ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt ?:/*)
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt ;;
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson *)
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson ac_dummy="$PATH"
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson for ac_dir in $ac_dummy; do
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson test -z "$ac_dir" && ac_dir=.
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson if test -f $ac_dir/$ac_word; then
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson ac_cv_path_ETAGS="$ac_dir/$ac_word"
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson break
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson fi
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt done
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson IFS="$ac_save_ifs"
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson ;;
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonesac
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonfi
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas GustafssonETAGS="$ac_cv_path_ETAGS"
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonif test -n "$ETAGS"; then
e851ea826066ac5a5b01c2c23218faa0273a12e8Evan Hunt echo "$ac_t""$ETAGS" 1>&6
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonelse
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson echo "$ac_t""no" 1>&6
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonfi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssontest -n "$ETAGS" && break
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssondone
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafsson
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
326bcfa0e2a6b924cb829a0bcc3bf9590ce21ad6Mark Andrews
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence#
e4cd5a1e5d0358abeee7618b02b4592c055d957fBrian Wellington# Perl is optional; it is used only by some of the system test scripts.
73a691c373488e4f70387a62462cd8ce0d991705David Lawrence#
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencefor ac_prog in perl5 perl
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsdo
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# Extract the first word of "$ac_prog", so it can be a program name with args.
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrewsset dummy $ac_prog; ac_word=$2
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Huntecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
984ca288f1291c7b7bda9b3809a7af714e3ec82aAndreas Gustafssonecho "configure:951: checking for $ac_word" >&5
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafssonelse
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence case "$PERL" in
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington /*)
2ba574f329c14376d26d7c0f22c89d7a978a2625Mark Andrews ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
ff2add63ae297d3c0f925f7479aefc15fd9aec31David Lawrence ;;
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington ?:/*)
ff2add63ae297d3c0f925f7479aefc15fd9aec31David Lawrence ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington ;;
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington *)
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ff2add63ae297d3c0f925f7479aefc15fd9aec31David Lawrence ac_dummy="$PATH"
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington for ac_dir in $ac_dummy; do
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington test -z "$ac_dir" && ac_dir=.
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington if test -f $ac_dir/$ac_word; then
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt ac_cv_path_PERL="$ac_dir/$ac_word"
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington break
71ca6e64b4d208a090d255eb64c24f945e615ea0Brian Wellington fi
d32b13e0be7f01020365c83a0bd36483ace4d7c3Mark Andrews done
d32b13e0be7f01020365c83a0bd36483ace4d7c3Mark Andrews IFS="$ac_save_ifs"
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt ;;
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Huntesac
8f66dad9393ae0724f758c4a51e06ff55c2d1219Brian Wellingtonfi
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan HuntPERL="$ac_cv_path_PERL"
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceif test -n "$PERL"; then
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt echo "$ac_t""$PERL" 1>&6
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrenceelse
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington echo "$ac_t""no" 1>&6
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellingtonfi
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrence
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencetest -n "$PERL" && break
20bd7b4bbf2437ef2f9109edca168ab0ce8445b3David Lawrencedone
#
# Special processing of paths depending on whether --prefix,
# --sysconfdir or --localstatedir arguments were given. What's
# desired is some compatability with the way previous versions
# of BIND built; they defaulted to /usr/local for most parts of
# the installation, but named.boot/named.conf was in /etc
# and named.pid was in /var/run.
#
# So ... if none of --prefix, --sysconfdir or --localstatedir are
# specified, set things up that way. If --prefix is given, use
# it for sysconfdir and localstatedir the way configure normally
# would. To change the prefix for everything but leave named.conf
# in /etc or named.pid in /var/run, then do this the usual configure way:
# ./configure --prefix=/somewhere --sysconfdir=/etc
# ./configure --prefix=/somewhere --localstatedir=/var
#
# To put named.conf and named.pid in /usr/local with everything else,
# set the prefix explicitly to /usr/local even though that's the default:
# ./configure --prefix=/usr/local
#
case "$prefix" in
NONE)
case "$sysconfdir" in
'${prefix}/etc')
sysconfdir=/etc
;;
esac
case "$localstatedir" in
'${prefix}/var')
localstatedir=/var
;;
esac
;;
esac
#
# Make sure INSTALL uses an absolute path, else it will be wrong in all
# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
# configure based on the location of the file where it is substituted.
# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
# subdirectory of install-sh, This relative path will be wrong for all
# directories more than one level down from install-sh.
#
case "$INSTALL" in
/*)
;;
*)
#
# Not all systems have dirname.
#
ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
test "$ac_dir" = "$ac_prog" && ac_dir=.
test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
INSTALL="$ac_dir/$ac_prog"
;;
esac
#
# Decide whether to use multithreading or not.
#
echo $ac_n "checking whether to use threads""... $ac_c" 1>&6
echo "configure:1053: checking whether to use threads" >&5
# Check whether --enable-threads or --disable-threads was given.
if test "${enable_threads+set}" = set; then
enableval="$enable_threads"
:
fi
case "$enable_threads" in
yes|'')
echo "$ac_t""yes" 1>&6
use_threads=true
ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
;;
no)
echo "$ac_t""no" 1>&6
use_threads=false
ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
;;
*)
{ echo "configure: error: "--enable-threads takes yes or no"" 1>&2; exit 1; }
;;
esac
#
# On these hosts, we really want to use cc, not gcc, even if it is
# found. The gcc that these systems have will not correctly handle
# pthreads.
#
# However, if the user sets $CC to be something, let that override
# our change.
#
if test "X$CC" = "X" ; then
case "$host" in
*-dec-osf*)
CC="cc"
;;
*-solaris*)
# Use Sun's cc if it is available, but watch
# out for /usr/ucb/cc; it will never be the right
# compiler to use.
#
# If setting CC here fails, the AC_PROG_CC done
# below might still find gcc.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
case "$ac_dir" in
/usr/ucb)
# exclude
;;
*)
if test -f "$ac_dir/cc"; then
CC="$ac_dir/cc"
break
fi
;;
esac
done
IFS="$ac_save_ifs"
;;
*-hp-hpux*)
CC="cc"
;;
mips-sgi-irix*)
CC="cc"
;;
esac
fi
#
# Find the machine's endian flavor.
#
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:1127: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1134 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
EOF
if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1149 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
EOF
if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_bigendian=no
fi
rm -f conftest*
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1180 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF
fi
#
# was --with-openssl specified?
#
echo $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
echo "configure:1221: checking for compatible OpenSSL library" >&5
# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
withval="$with_openssl"
use_openssl="$withval"
else
use_openssl="no"
fi
#
# If the user didn't specify where openssl is, and we didn't find or it
# is incompatible with our code, use our internal one.
#
# XXX This appears to assume that the user specified path is correct,
# and does no checking.
#
case "$use_openssl" in
no)
DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
dst_privateopenssl='openssl'
DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
DST_OPENSSL_LIB=''
DST_OPENSSL_OBJS='${OPENSSLOBJS}'
echo "$ac_t""using private library" 1>&6
;;
yes)
{ echo "configure: error: --with-openssl must specify a path" 1>&2; exit 1; }
;;
*)
DST_PRIVATEOPENSSL=''
dst_privateopenssl=''
DST_OPENSSL_INC="-I$use_openssl/include"
DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
DST_OPENSSL_LIB=''
echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
;;
esac
#
# This would include the system openssl path (and linker options to use
# it as needed) if it is found.
#
#
# was --with-gssapi specified?
#
echo $ac_n "checking for GSSAPI library""... $ac_c" 1>&6
echo "configure:1278: checking for GSSAPI library" >&5
# Check whether --with-gssapi or --without-gssapi was given.
if test "${with_gssapi+set}" = set; then
withval="$with_gssapi"
use_gssapi="$withval"
else
use_gssapi="no"
fi
case "$use_gssapi" in
no)
USE_GSSAPI=''
DST_GSSAPI_INC=''
DNS_GSSAPI_LIBS=''
echo "$ac_t""not specified" 1>&6
;;
yes)
{ echo "configure: error: --with-gssapi must specify a path" 1>&2; exit 1; }
;;
*)
USE_GSSAPI='-DGSSAPI'
DST_GSSAPI_INC="-I$use_gssapi/include"
DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
echo "$ac_t""using gssapi from $use_gssapi/lib and $use_gssapi/include" 1>&6
;;
esac
#
# was --with-randomdev specified?
#
echo $ac_n "checking for random device""... $ac_c" 1>&6
echo "configure:1314: checking for random device" >&5
# Check whether --with-randomdev or --without-randomdev was given.
if test "${with_randomdev+set}" = set; then
withval="$with_randomdev"
use_randomdev="$withval"
else
use_randomdev="unspec"
fi
case "$use_randomdev" in
unspec)
case "$host" in
*-openbsd*)
cat >> confdefs.h <<\EOF
#define PATH_RANDOMDEV "/dev/srandom"
EOF
echo "$ac_t""using /dev/srandom" 1>&6
;;
*-linux*|*-freebsd*|*-netbsd*)
cat >> confdefs.h <<\EOF
#define PATH_RANDOMDEV "/dev/random"
EOF
echo "$ac_t""using /dev/random" 1>&6
;;
*)
echo "$ac_t""not found" 1>&6
;;
esac
;;
yes)
{ echo "configure: error: --with-randomdev must specify a path" 1>&2; exit 1; }
;;
*)
cat >> confdefs.h <<EOF
#define PATH_RANDOMDEV "$use_randomdev"
EOF
echo "$ac_t""using "$use_randomdev"" 1>&6
;;
esac
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1361: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="gcc"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1391: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_prog_rejected=no
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
break
fi
done
IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# -gt 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
set dummy "$ac_dir/$ac_word" "$@"
shift
ac_cv_prog_CC="$@"
fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
if test -z "$CC"; then
case "`uname -s`" in
*win32* | *WIN32*)
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1442: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="cl"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
echo "$ac_t""$CC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
;;
esac
fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:1474: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
#line 1485 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
ac_cv_prog_cc_cross=no
else
ac_cv_prog_cc_cross=yes
fi
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1516: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1521: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
else
GCC=
fi
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1549: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
ac_cv_prog_cc_g=yes
else
ac_cv_prog_cc_g=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1585: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_YACC="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
echo "$ac_t""$YACC" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1617: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1632 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1649 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1666 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1697: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1702 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
ac_cv_header_stdc=yes
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1727 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "memchr" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1745 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "free" >/dev/null 2>&1; then
:
else
rm -rf conftest*
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1766 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
ac_cv_header_stdc=no
fi
rm -fr conftest*
fi
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
fi
for ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1805: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1810 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1843: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1848 "configure"
#include "confdefs.h"
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this. */
char *t;
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
struct s { int j; const int *ap[3]; };
struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
}
; return 0; }
EOF
if { (eval echo configure:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_c_const=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:1918: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
#line 1925 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
fi
echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
inline | yes) ;;
no) cat >> confdefs.h <<\EOF
#define inline
EOF
;;
*) cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
;;
esac
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1958: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1963 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest*
ac_cv_type_size_t=yes
else
rm -rf conftest*
ac_cv_type_size_t=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1991: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1996 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_header_time=no
fi
rm -f conftest*
fi
echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF
fi
if $use_threads
then
#
# Search for / configure pthreads in a system-dependent fashion.
#
case "$host" in
*-netbsd*)
# NetBSD has multiple pthreads implementations. The
# recommended one to use is "unproven-pthreads". The
# older "mit-pthreads" may also work on some NetBSD
# versions. The PTL2 thread library does not
# currently work with bind9, but can be chosen with
# the --with-ptl2 option for those who wish to
# experiment with it.
CC="gcc"
echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
echo "configure:2042: checking which NetBSD thread library to use" >&5
# Check whether --with-ptl2 or --without-ptl2 was given.
if test "${with_ptl2+set}" = set; then
withval="$with_ptl2"
use_ptl2="$withval"
else
use_ptl2="no"
fi
: ${LOCALBASE:=/usr/pkg}
if test "X$use_ptl2" = "Xyes"
then
echo "$ac_t""PTL2" 1>&6
echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
CC=ptlgcc
else
echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
if test ! -d $LOCALBASE/pthreads
then
{ echo "configure: error: no thread library found.
Please install the devel/unproven-pthreads package and rerun configure.
" 1>&2; exit 1; }
fi
pkg="$LOCALBASE/pthreads"
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
lib2="-lpthread -lm -lgcc -lpthread"
LIBS="$lib1 $lib2 $LIBS"
CPPFLAGS="$CPPFLAGS -I$pkg/include"
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
fi
;;
*)
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2081: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2089 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2126: checking for __pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2134 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create();
int main() {
__pthread_create()
; return 0; }
EOF
if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
echo "configure:2173: checking for __pthread_create_system in -lpthread" >&5
ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2181 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char __pthread_create_system();
int main() {
__pthread_create_system()
; return 0; }
EOF
if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthread $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
echo "configure:2220: checking for pthread_create in -lpthreads" >&5
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthreads $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2228 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/^a-zA-Z0-9_/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lpthreads $LIBS"
else
echo "$ac_t""no" 1>&6
fi
fi
;;
esac
#
# We'd like to use sigwait() too
#
echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
echo "configure:2275: checking for sigwait in -lc" >&5
ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2283 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2316: checking for sigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2324 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
echo "configure:2357: checking for _Psigwait in -lpthread" >&5
ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2365 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _Psigwait();
int main() {
_Psigwait()
; return 0; }
EOF
if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
fi
fi
#
# Additional OS-specific issues related to pthreads and sigwait.
#
case "$host" in
#
# One more place to look for sigwait.
#
*-freebsd*)
echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
echo "configure:2414: checking for sigwait in -lc_r" >&5
ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2422 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sigwait();
int main() {
sigwait()
; return 0; }
EOF
if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SIGWAIT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# BSDI 3.1 through 4.0.1 needs pthread_init() to be
# called before certain pthreads calls. This is deprecated
# in BSD/OS 4.1.
#
*-bsdi3.1*|*-bsdi4.0*)
cat >> confdefs.h <<\EOF
#define NEED_PTHREAD_INIT 1
EOF
;;
#
# LinuxThreads requires some changes to the way we
# deal with signals.
#
*-linux*)
cat >> confdefs.h <<\EOF
#define HAVE_LINUXTHREADS 1
EOF
;;
#
# Ensure the right sigwait() semantics on Solaris and make
# sure we call pthread_setconcurrency.
#
*-solaris*)
cat >> confdefs.h <<\EOF
#define _POSIX_PTHREAD_SEMANTICS 1
EOF
echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
echo "configure:2488: checking for pthread_setconcurrency" >&5
if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2493 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_setconcurrency(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_setconcurrency();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
choke me
#else
pthread_setconcurrency();
#endif
; return 0; }
EOF
if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_pthread_setconcurrency=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'pthread_setconcurrency`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define CALL_PTHREAD_SETCONCURRENCY 1
EOF
else
echo "$ac_t""no" 1>&6
fi
;;
#
# UnixWare does things its own way.
#
*-UnixWare*)
cat >> confdefs.h <<\EOF
#define HAVE_UNIXWARE_SIGWAIT 1
EOF
;;
esac
#
# Look for sysconf to allow detection of the number of processors.
#
echo $ac_n "checking for sysconf""... $ac_c" 1>&6
echo "configure:2554: checking for sysconf" >&5
if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2559 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sysconf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sysconf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sysconf) || defined (__stub___sysconf)
choke me
#else
sysconf();
#endif
; return 0; }
EOF
if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_sysconf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_sysconf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SYSCONF 1
EOF
else
echo "$ac_t""no" 1>&6
fi
if test "X$GCC" = "Xyes"; then
case "$host" in
*-freebsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-openbsd*)
CC="$CC -pthread"
CCOPT="$CCOPT -pthread"
;;
*-solaris*)
LIBS="$LIBS -lthread"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
esac
else
case $host in
*-dec-osf*)
CC="$CC -std -pthread"
CCOPT="$CCOPT -std -pthread"
MKDEPCC="$CC"
;;
*-solaris*)
CC="$CC -mt"
CCOPT="$CCOPT -mt"
;;
*-hp-hpux*)
CC="$CC -Ae -z"
# The version of the C compiler that constantly
# warns about 'const' as well as alignment issues
# is unfortunately not able to be discerned via
# the version of the operating system, nor does
# cc have a version flag.
case "`$CC +W 123 2>&1`" in
*Unknown?option*)
STD_CWARNINGS="+w1"
;;
*)
# Turn off the pointlessly noisy warnings.
STD_CWARNINGS="+w1 +W 474,530"
;;
esac
CCOPT="$CCOPT -Ae -z"
LIBS="-Wl,+vnocompatwarnings $LIBS"
;;
*-ibm-aix*)
STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
;;
*-UnixWare*)
CC="$CC -Kthread -w"
CCOPT="$CCOPT -Kthread"
;;
esac
fi
thread_dir=pthreads
else
thread_dir=nothreads
fi
#
# End of pthreads stuff.
#
ISC_THREAD_DIR=$thread_dir
#
# flockfile is usually provided by pthreads, but we may want to use it
# even if compiled with --disable-threads.
#
echo $ac_n "checking for flockfile""... $ac_c" 1>&6
echo "configure:2678: checking for flockfile" >&5
if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2683 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char flockfile(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char flockfile();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_flockfile) || defined (__stub___flockfile)
choke me
#else
flockfile();
#endif
; return 0; }
EOF
if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_flockfile=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_flockfile=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'flockfile`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_FLOCKFILE 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# NLS
#
echo $ac_n "checking for catgets""... $ac_c" 1>&6
echo "configure:2733: checking for catgets" >&5
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2738 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char catgets();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_catgets) || defined (__stub___catgets)
choke me
#else
catgets();
#endif
; return 0; }
EOF
if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_catgets=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CATGETS 1
EOF
else
echo "$ac_t""no" 1>&6
fi
#
# -lxnet buys us one big porting headache... standards, gotta love 'em.
#
# AC_CHECK_LIB(xnet, socket, ,
# AC_CHECK_LIB(socket, socket)
# AC_CHECK_LIB(nsl, inet_ntoa)
# )
#
# Use this for now, instead:
#
case "$host" in
mips-sgi-irix*)
;;
*)
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2799: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2807 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lsocket $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
echo "configure:2846: checking for inet_ntoa in -lnsl" >&5
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2854 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntoa();
int main() {
inet_ntoa()
; return 0; }
EOF
if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lnsl $LIBS"
else
echo "$ac_t""no" 1>&6
fi
;;
esac
MKDEPCC="$CC"
MKDEPCFLAGS="-M"
IRIX_DNSSEC_WARNINGS_HACK=""
if test "X$GCC" = "Xyes"; then
STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
else
case "$host" in
*-solaris*)
MKDEPCC="$CC"
MKDEPCFLAGS="-xM"
;;
*-hp-hpux*)
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
;;
*-sgi-irix*)
STD_CWARNINGS="-fullwarn -woff 1209"
#
# Silence more than 250 instances of
# "prototyped function redeclared without prototype"
# and 11 instances of
# "variable ... was set but never used"
# from lib/dns/sec/openssl.
#
IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
;;
*-UnixWare*)
MKDEPCC="$CC"
YACC="yacc" # bison calls alloca, avoid on UnixWare
;;
esac
fi
#
#
# GNU libtool support
#
# Check whether --with-libtool or --without-libtool was given.
if test "${with_libtool+set}" = set; then
withval="$with_libtool"
use_libtool="$withval"
else
use_libtool="no"
fi
case $use_libtool in
yes)
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_shared=yes
fi
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_static=yes
fi
# Check whether --enable-fast-install or --disable-fast-install was given.
if test "${enable_fast_install+set}" = set; then
enableval="$enable_fast_install"
p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac
else
enable_fast_install=yes
fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:3016: checking build system type" >&5
build_alias=$build
case "$build_alias" in
NONE)
case $nonopt in
NONE) build_alias=$host_alias ;;
*) build_alias=$nonopt ;;
esac ;;
esac
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$build" 1>&6
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
test "$withval" = no || with_gnu_ld=yes
else
with_gnu_ld=no
fi
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:3045: checking for ld used by GCC" >&5
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:3069: checking for GNU ld" >&5
else
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:3072: checking for non-GNU ld" >&5
fi
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi
LD="$ac_cv_path_LD"
if test -n "$LD"; then
echo "$ac_t""$LD" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:3107: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi
fi
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:3123: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi
fi
NM="$ac_cv_path_NM"
echo "$ac_t""$NM" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3159: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
rm -f conftestdata
ac_cv_prog_LN_S="ln -s"
else
ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
fi
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
if test "${enable_libtool_lock+set}" = set; then
enableval="$enable_libtool_lock"
:
fi
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$lt_target" in
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3208 "configure"' > conftest.$ac_ext
if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:3230: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3235 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
lt_cv_cc_needs_belf=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
lt_cv_cc_needs_belf=no
fi
rm -f conftest*
fi
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
esac
# Save cache, so that ltconfig can load it
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
# Reload cache, that may have been modified by ltconfig
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
O=lo
A=la
;;
*)
O=o
A=a
LIBTOOL=
;;
esac
# File name extension for static archive files, for those few places
# where they are treated differently from dynamic ones.
SA=a
#
# Here begins a very long section to determine the system's networking
# capabilities. The order of the tests is signficant.
#
#
# IPv6
#
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
:
fi
case "$enable_ipv6" in
yes|''|autodetect)
cat >> confdefs.h <<\EOF
#define WANT_IPV6 1
EOF
;;
no)
;;
esac
#
# We do the IPv6 compilation checking after libtool so that we can put
# the right suffix on the files.
#
echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
echo "configure:3393: checking for IPv6 structures" >&5
cat > conftest.$ac_ext <<EOF
#line 3395 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct sockaddr_in6 sin6; return (0);
; return 0; }
EOF
if { (eval echo configure:3405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
found_ipv6=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
found_ipv6=no
fi
rm -f conftest*
#
# See whether IPv6 support is provided via a Kame add-on.
# This is done before other IPv6 linking tests to LIBS is properly set.
#
echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
echo "configure:3423: checking for Kame IPv6 support" >&5
# Check whether --with-kame or --without-kame was given.
if test "${with_kame+set}" = set; then
withval="$with_kame"
use_kame="$withval"
else
use_kame="no"
fi
case "$use_kame" in
no)
;;
yes)
kame_path=/usr/local/v6
;;
*)
kame_path="$use_kame"
;;
esac
case "$use_kame" in
no)
echo "$ac_t""no" 1>&6
;;
*)
if test -f $kame_path/lib/libinet6.a; then
echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
LIBS="-L$kame_path/lib -linet6 $LIBS"
else
{ echo "configure: error: $kame_path/lib/libinet6.a not found.
Please choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
#
# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
# Including it on Kame-using platforms is very bad, though, because
# Kame uses #error against direct inclusion. So include it on only
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# This is done before the in6_pktinfo check because that's what
# netinet6/in6.h is needed for.
#
case "$host" in
*-bsdi4.[01]*)
ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
isc_netinet6in6_hack="#include <netinet6/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
isc_netinet6in6_hack=""
;;
esac
#
# This is similar to the netinet6/in6.h issue.
#
case "$host" in
*-UnixWare*)
ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
isc_netinetin6_hack="#include <netinet/in6.h>"
;;
*)
ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
isc_netinetin6_hack=""
;;
esac
#
# Now delve deeper into the suitability of the IPv6 support.
#
case "$found_ipv6" in
yes)
ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
echo "configure:3513: checking for in6addr_any" >&5
cat > conftest.$ac_ext <<EOF
#line 3515 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
int main() {
struct in6_addr in6; in6 = in6addr_any; return (0);
; return 0; }
EOF
if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
fi
rm -f conftest*
echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
echo "configure:3542: checking for sin6_scope_id in struct sockaddr_in6" >&5
cat > conftest.$ac_ext <<EOF
#line 3544 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
fi
rm -f conftest*
LWRES_HAVE_SIN6_SCOPE_ID="$result"
echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
echo "configure:3572: checking for in6_pktinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3574 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
$isc_netinetin6_hack
$isc_netinet6in6_hack
int main() {
struct in6_pktinfo xyzzy; return (0);
; return 0; }
EOF
if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
fi
rm -f conftest*
;;
no)
ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
ISC_IPV6_H="ipv6.h"
ISC_IPV6_O="ipv6.$O"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
;;
esac
#
# Check for network functions that are often missing. We do this
# after the libtool checking, so we can put the right suffix on
# the files. It also needs to come after checking for a Kame add-on,
# which provides some (all?) of the desired functions.
#
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3637: checking for inet_ntop" >&5
cat > conftest.$ac_ext <<EOF
#line 3639 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_ntop(0, 0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3664: checking for inet_pton" >&5
cat > conftest.$ac_ext <<EOF
#line 3666 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
inet_pton(0, 0, 0); return (0);
; return 0; }
EOF
if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
rm -f conftest*
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3691: checking for inet_aton" >&5
cat > conftest.$ac_ext <<EOF
#line 3693 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int main() {
struct in_addr in; inet_aton(0, &in); return (0);
; return 0; }
EOF
if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
fi
rm -f conftest*
#
# Look for a 4.4BSD-style sa_len member in struct sockaddr.
#
case "$host" in
*-dec-osf*)
# Turn on 4.4BSD style sa_len support.
cat >> confdefs.h <<\EOF
#define _SOCKADDR_LEN 1
EOF
;;
esac
echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:3736: checking for sa_len in struct sockaddr" >&5
cat > conftest.$ac_ext <<EOF
#line 3738 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa; sa.sa_len = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
fi
rm -f conftest*
#
# Look for a 4.4BSD or 4.3BSD struct msghdr
#
echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
echo "configure:3768: checking for struct msghdr flavor" >&5
cat > conftest.$ac_ext <<EOF
#line 3770 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct msghdr msg; msg.msg_flags = 0; return (0);
; return 0; }
EOF
if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""4.4BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""4.3BSD" 1>&6
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
fi
rm -f conftest*
#
# Look for in_port_t.
#
echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
echo "configure:3797: checking for type in_port_t" >&5
cat > conftest.$ac_ext <<EOF
#line 3799 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
int main() {
in_port_t port = 25; return (0);
; return 0; }
EOF
if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
fi
rm -f conftest*
#
# Check for addrinfo
#
echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
echo "configure:3826: checking for struct addrinfo" >&5
cat > conftest.$ac_ext <<EOF
#line 3828 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
struct addrinfo a; return (0);
; return 0; }
EOF
if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
cat >> confdefs.h <<\EOF
#define HAVE_ADDRINFO 1
EOF
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
fi
rm -f conftest*
echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
echo "configure:3855: checking for int sethostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3857 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = sethostent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
echo "configure:3880: checking for int endhostent" >&5
cat > conftest.$ac_ext <<EOF
#line 3882 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endhostent(); return(0);
; return 0; }
EOF
if { (eval echo configure:3890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
fi
rm -f conftest*
echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
echo "configure:3905: checking for getnetbyaddr(in_addr_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 3907 "configure"
#include "confdefs.h"
#include <netdb.h>
struct netent *getnetbyaddr(in_addr_t, int);
int main() {
; return 0; }
EOF
if { (eval echo configure:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
fi
rm -f conftest*
echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
echo "configure:3931: checking for int setnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 3933 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = setnetent(0); return(0);
; return 0; }
EOF
if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
echo "configure:3956: checking for int endnetent" >&5
cat > conftest.$ac_ext <<EOF
#line 3958 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
int i = endnetent(); return(0);
; return 0; }
EOF
if { (eval echo configure:3966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
fi
rm -f conftest*
echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
echo "configure:3981: checking for gethostbyaddr(const void *, size_t, ...)" >&5
cat > conftest.$ac_ext <<EOF
#line 3983 "configure"
#include "confdefs.h"
#include <netdb.h>
struct hostent *gethostbyaddr(const void *, size_t, int);
int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
fi
rm -f conftest*
echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
echo "configure:4007: checking for h_errno in netdb.h" >&5
cat > conftest.$ac_ext <<EOF
#line 4009 "configure"
#include "confdefs.h"
#include <netdb.h>
int main() {
h_errno = 1; return(0);
; return 0; }
EOF
if { (eval echo configure:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
fi
rm -f conftest*
echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
echo "configure:4032: checking for getipnodebyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4037 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getipnodebyname(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getipnodebyname();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
choke me
#else
getipnodebyname();
#endif
; return 0; }
EOF
if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getipnodebyname=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
fi
echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
echo "configure:4081: checking for getnameinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4086 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getnameinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getnameinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
choke me
#else
getnameinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getnameinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getnameinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
fi
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
echo "configure:4130: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4135 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getaddrinfo(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getaddrinfo();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
choke me
#else
getaddrinfo();
#endif
; return 0; }
EOF
if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
cat >> confdefs.h <<\EOF
#define HAVE_GETADDRINFO 1
EOF
else
echo "$ac_t""no" 1>&6
ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
fi
#
# Look for a sysctl call to get the list of network interfaces.
#
echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
echo "configure:4190: checking for interface list sysctl" >&5
cat > conftest.$ac_ext <<EOF
#line 4192 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
#ifdef NET_RT_IFLIST
found_rt_iflist
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "found_rt_iflist" >/dev/null 2>&1; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_IFLIST_SYSCTL 1
EOF
else
rm -rf conftest*
echo "$ac_t""no" 1>&6
fi
rm -f conftest*
#
# Check for some other useful functions that are not ever-present.
#
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:4222: checking for strsep" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4227 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strsep(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strsep();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_strsep) || defined (__stub___strsep)
choke me
#else
strsep();
#endif
; return 0; }
EOF
if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_strsep=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
else
echo "$ac_t""no" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:4271: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4276 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char vsnprintf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
choke me
#else
vsnprintf();
#endif
; return 0; }
EOF
if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
fi
echo $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
echo "configure:4328: checking for sizeof(long long int) == sizeof(long int)" >&5
if test "$cross_compiling" = yes; then
echo "$ac_t""default yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
cat > conftest.$ac_ext <<EOF
#line 4334 "configure"
#include "confdefs.h"
main() { exit(!(sizeof(long long int) == sizeof(long int))); }
EOF
if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
echo "$ac_t""no" 1>&6
ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
fi
rm -fr conftest*
fi
#
# Security Stuff
#
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:4358: checking for chroot" >&5
if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4363 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char chroot(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char chroot();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_chroot) || defined (__stub___chroot)
choke me
#else
chroot();
#endif
; return 0; }
EOF
if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_chroot=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_chroot=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CHROOT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
for ac_hdr in linux/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4412: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4417 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
for ac_hdr in linux/prctl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4452: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4457 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
#
# Random remaining OS-specific issues.
# XXXDCL print messages to indicate some compensation is being done?
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
case "$host" in
*-bsdi3.1*)
hack_shutup_sputaux=yes
;;
*-bsdi4.0*)
hack_shutup_sigwait=yes
hack_shutup_sputaux=yes
;;
*-bsdi4.1*)
hack_shutup_stdargcast=yes
;;
*-solaris2.8)
hack_shutup_pthreadonceinit=yes
;;
esac
case "$hack_shutup_pthreadonceinit" in
yes)
#
# Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
#
ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
;;
esac
case "$hack_shutup_sigwait" in
yes)
#
# Shut up a -Wmissing-prototypes warning for sigwait().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SIGWAIT 1
EOF
;;
esac
case "$hack_shutup_sputaux" in
yes)
#
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
#
cat >> confdefs.h <<\EOF
#define SHUTUP_SPUTAUX 1
EOF
;;
esac
case "$hack_shutup_stdargcast" in
yes)
#
# Shut up a -Wcast-qual warning from va_start().
#
cat >> confdefs.h <<\EOF
#define SHUTUP_STDARG_CAST 1
EOF
;;
esac
#
# Look for jade, preferring openjade if installed.
#
for ac_prog in openjade jade
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4567: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$JADE" in
/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_path_JADE="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
;;
esac
fi
JADE="$ac_cv_path_JADE"
if test -n "$JADE"; then
echo "$ac_t""$JADE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$JADE" && break
done
test -n "$JADE" || JADE="jade"
#
# Look for SGML files. NetBSD has them under /usr/pkg/share
# (if installed), FreeBSD has them under /usr/local/share.
#
SGMLDIR=""
echo $ac_n "checking for SGML files""... $ac_c" 1>&6
echo "configure:4613: checking for SGML files" >&5
for d in /usr/pkg/share/sgml /usr/local/share/sgml
do
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
then
SGMLDIR=$d
echo "$ac_t""in $SGMLDIR" 1>&6
break
fi
done
if test "X$SGMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
SGMLDIR=/usr/local/share/sgml
fi
#
# Look for XML files.
#
XGMLDIR=""
echo $ac_n "checking for XML files""... $ac_c" 1>&6
echo "configure:4639: checking for XML files" >&5
for d in /usr/pkg/share/xml /usr/local/share/xml
do
if test -f $d/dtd/docbook/docbookx.dtd
then
XMLDIR=$d
echo "$ac_t""in $XMLDIR" 1>&6
break
fi
done
if test "X$XMLDIR" = "X"
then
echo "$ac_t"""not found"" 1>&6;
XMLDIR=/usr/local/share/xml
fi
#
# Substitutions
#
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
. $srcdir/version
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@CCOPT@%$CCOPT%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@LN@%$LN%g
s%@ETAGS@%$ETAGS%g
s%@PERL@%$PERL%g
s%@ISC_PLATFORM_USETHREADS@%$ISC_PLATFORM_USETHREADS%g
s%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
s%@dst_privateopenssl@%$dst_privateopenssl%g
s%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
s%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
s%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
s%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
s%@USE_GSSAPI@%$USE_GSSAPI%g
s%@DST_GSSAPI_INC@%$DST_GSSAPI_INC%g
s%@DNS_GSSAPI_LIBS@%$DNS_GSSAPI_LIBS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@ISC_THREAD_DIR@%$ISC_THREAD_DIR%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
s%@ISC_PLATFORM_FIXIN6ISADDR@%$ISC_PLATFORM_FIXIN6ISADDR%g
s%@ISC_IPV6_H@%$ISC_IPV6_H%g
s%@ISC_IPV6_O@%$ISC_IPV6_O%g
s%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
s%@ISC_IPV6_C@%$ISC_IPV6_C%g
s%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
s%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
s%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
s%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
s%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
s%@JADE@%$JADE%g
s%@SGMLDIR@%$SGMLDIR%g
s%@XMLDIR@%$XMLDIR%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
s%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
s%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
s%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
/@BIND9_INCLUDES@/r $BIND9_INCLUDES
s%@BIND9_INCLUDES@%%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
s%@BIND9_VERSION@%$BIND9_VERSION%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_API@%%g
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/$thread_dir/Makefile
lib/isc/$thread_dir/include/Makefile
lib/isc/$thread_dir/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/check/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/nsupdate/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/net/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/system/conf.sh
bin/tests/system/lwresd/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
doc/Makefile
doc/arm/catalog
doc/arm/nominum-docbook-html.dsl
doc/arm/validate.sh
doc/arm/genhtml.sh
isc-config.sh
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
chmod a+x isc-config.sh
# Tell Emacs to edit this file in shell mode.
# Local Variables:
# mode: sh
# End: