configure revision 91306d962f9d147d94b82fb14edb28f8d907cae7
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence# From configure.in Revision: 1.151
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Copyright (C) 1996-1999 Free Software Foundation, Inc.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff##
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is free software; you can redistribute it and/or modify
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## it under the terms of the GNU General Public License as published by
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## the Free Software Foundation; either version 2 of the License, or
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## (at your option) any later version.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff##
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## This program is distributed in the hope that it will be useful, but
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff## WITHOUT ANY WARRANTY; without even the implied warranty of
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## General Public License for more details.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington## You should have received a copy of the GNU General Public License
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## along with this program; if not, write to the Free Software
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## As a special exception to the GNU General Public License, if you
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## distribute this file as part of a program that contains a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## configuration script generated by Autoconf, you may include it under
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the same distribution terms that you use for the rest of that program.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# serial 40 AC_PROG_LIBTOOL
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_SHARED - implement the --enable-shared flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_SHARED[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_STATIC - implement the --enable-static flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_STATIC[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_DISABLE_STATIC - set the default static flag to --disable-static
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# `yes'.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_LD - find the path to the GNU or non-GNU linker
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_PROG_NM - find the path to a BSD-compatible name lister
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_CHECK_LIBM - check for math library
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the libltdl convenience library, adds --enable-ltdl-convenience to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# to be `${top_builddir}/libltdl'. Make sure you start DIR with
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# '${top_builddir}/' (note the single quotes!) if your package is not
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# flat, and, if you're not using automake, define top_builddir as
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# appropriate in the Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the libltdl installable library, and adds --enable-ltdl-install to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# to be `${top_builddir}/libltdl'. Make sure you start DIR with
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# '${top_builddir}/' (note the single quotes!) if your package is not
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# flat, and, if you're not using automake, define top_builddir as
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# appropriate in the Makefiles.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Guess values for system-dependent variables and create Makefiles.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Generated automatically using autoconf version 2.13
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington#
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# This configure script is free software; the Free Software Foundation
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# gives unlimited permission to copy, distribute and modify it.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# Defaults:
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonac_help=
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonac_default_prefix=/usr/local
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# Any additions from configure.in:
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonac_help="$ac_help
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson --with-libtool use GNU libtool (following indented options supported)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff --enable-shared[=PKGS] build shared libraries [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff --enable-static[=PKGS] build static libraries [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-ipv6 use IPv6 [default=autodetect]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help="$ac_help
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# Initialize some variables set by options.
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington# The variables have the same names as the options, with
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington# dashes changed to underlines.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonbuild=NONE
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtoncache_file=./config.cache
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceexec_prefix=NONE
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencehost=NONE
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonno_create=
1706598239da403b86f4befa4c08175d9e101014Andreas Gustafssonnonopt=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyno_recursion=
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffprefix=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyprogram_prefix=NONE
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffprogram_suffix=NONE
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyprogram_transform_name=s,x,x,
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffsilent=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleysite=
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffsrcdir=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytarget=NONE
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffverbose=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyx_includes=NONE
a5cf3cf61e96e0db9ffe433402783e1ddbb2fbc3Michael Graffx_libraries=NONE
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencebindir='${exec_prefix}/bin'
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonsbindir='${exec_prefix}/sbin'
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrencelibexecdir='${exec_prefix}/libexec'
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrencedatadir='${prefix}/share'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysysconfdir='${prefix}/etc'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysharedstatedir='${prefix}/com'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylocalstatedir='${prefix}/var'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibdir='${exec_prefix}/lib'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyincludedir='${prefix}/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyoldincludedir='/usr/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyinfodir='${prefix}/info'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymandir='${prefix}/man'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some other variables.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysubdirs=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyMFLAGS= MAKEFLAGS=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySHELL=${CONFIG_SHELL-/bin/sh}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Maximum number of lines to put in a shell here document.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_max_here_lines=12
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If the previous option needs an argument, assign it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "$ac_prev=\$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg= ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Accept the important Cygnus configure options, so we can diagnose typos.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=bindir ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build | --build | --buil | --bui | --bu)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=build ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley build="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file | --cache-file | --cache-fil | --cache-fi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=cache_file ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cache_file="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=datadir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --da=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley datadir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -disable-* | --disable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -enable-* | --enable-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_feature=`echo $ac_feature| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "enable_${ac_feature}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec | --exe | --ex)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=exec_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --exec=* | --exe=* | --ex=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -gas | --gas | --ga | --g)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --with-gas.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_gas=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Omit some internal or obsolete options to make the list less imposing.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This message is too long to be a string in the A/UX 3.1 sh.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyUsage: configure [options] [host]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyOptions: [defaults in brackets after descriptions]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyConfiguration:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --cache-file=FILE cache test results in FILE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --help print this message
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --no-create do not create output files
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --quiet, --silent do not print \`checking...' messages
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --version print the version of autoconf that created configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDirectory and file names:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --prefix=PREFIX install architecture-independent files in PREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [$ac_default_prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [same as prefix]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --bindir=DIR user executables in DIR [EPREFIX/bin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --datadir=DIR read-only architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/share]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --sharedstatedir=DIR modifiable architecture-independent data in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley [PREFIX/com]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --libdir=DIR object code libraries in DIR [EPREFIX/lib]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --includedir=DIR C header files in DIR [PREFIX/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --infodir=DIR info documentation in DIR [PREFIX/info]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --mandir=DIR man documentation in DIR [PREFIX/man]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --srcdir=DIR find the sources in DIR [configure dir or ..]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-prefix=PREFIX prepend PREFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-suffix=SUFFIX append SUFFIX to installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --program-transform-name=PROGRAM
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley run sed PROGRAM on installed program names
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyHost type:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --build=BUILD configure for building on BUILD [BUILD=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --host=HOST configure for HOST [guessed]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --target=TARGET configure for TARGET [TARGET=HOST]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyFeatures and packages:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-includes=DIR X include files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x-libraries=DIR X library files are in DIR
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$ac_help"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "--enable and --with options recognized:$ac_help"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host | --host | --hos | --ho)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=host ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -host=* | --host=* | --hos=* | --ho=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley host="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir | --includedir | --includedi | --included | --include \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ | --inclu | --incl | --inc)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=includedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --includ=* | --inclu=* | --incl=* | --inc=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley includedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir | --infodir | --infodi | --infod | --info | --inf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=infodir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley infodir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir | --libdir | --libdi | --libd)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libdir=* | --libdir=* | --libdi=* | --libd=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe | --libex | --libe)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=libexecdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --libexe=* | --libex=* | --libe=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley libexecdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir | --localstatedir | --localstatedi | --localstated \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate | --localstat | --localsta | --localst \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals | --local | --loca | --loc | --lo)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=localstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --localstate=* | --localstat=* | --localsta=* | --localst=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley localstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=mandir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mandir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -nfp | --nfp | --nf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Obsolete; use --without-fp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_fp=no ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_create=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no_recursion=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin | --oldi | --old | --ol | --o)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=oldincludedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley oldincludedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix | --program-prefix | --program-prefi | --program-pref \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pre | --program-pr | --program-p)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_prefix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-prefix=* | --program-prefix=* | --program-prefi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_prefix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix | --program-suffix | --program-suffi | --program-suff \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suf | --program-su | --program-s)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_suffix ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-suffix=* | --program-suffix=* | --program-suffi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_suffix="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name | --program-transform-name \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam | --program-transform-na \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n | --program-transform- \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform | --program-transfor \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo | --program-transf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans | --program-tran \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra | --program-tr | --program-t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=program_transform_name ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -program-transform-name=* | --program-transform-name=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-nam=* | --program-transform-na=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform-n=* | --program-transform-=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transform=* | --program-transfor=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-transfo=* | --program-transf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --program-trans=* | --program-tran=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --progr-tra=* | --program-tr=* | --program-t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley program_transform_name="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -q | -quiet | --quiet | --quie | --qui | --qu | --q \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | -silent | --silent | --silen | --sile | --sil)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley silent=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sbindir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sbi=* | --sb=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sbindir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir | --sharedstatedir | --sharedstatedi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst | --shareds | --shared | --share | --shar \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha | --sh)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sharedstatedir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --sha=* | --sh=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sharedstatedir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site | --site | --sit)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=site ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -site=* | --site=* | --sit=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley site="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=srcdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon | --sysco | --sysc | --sys | --sy)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=sysconfdir ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sysconfdir="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target | --target | --targe | --targ | --tar | --ta | --t)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=target ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley target="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -v | -verbose | --verbose | --verbos | --verbo | --verb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley verbose=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -with-* | --with-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *=*) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_optarg=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}='$ac_optarg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -without-* | --without-*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Reject names that are not valid shell variable names.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_package=`echo $ac_package| sed 's/-/_/g'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "with_${ac_package}=no" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley --x)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Obsolete; use --with-x.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley with_x=yes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl | --x-inc | --x-in | --x-i)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_includes ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_includes="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries | --x-libraries | --x-librarie | --x-librari \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prev=x_libraries ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley x_libraries="$ac_optarg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: warning: $ac_option: invalid host type" 1>&2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$nonopt" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley nonopt="$ac_option"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_prev"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# File descriptor usage:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 0 standard input
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 1 file creation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 2 errors and warnings
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 3 some systems may open it to /dev/tty
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 4 used on the Kubota Titan
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 6 checking for... messages and results
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# 5 compiler messages saved in config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$silent" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec 6>&1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec 5>./config.log
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "\
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyThis file contains any messages produced by compilers while
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrunning configure, to aid debugging if configure makes a mistake.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" 1>&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Strip out --no-create and --no-recursion so they do not pile up.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Also quote any args containing shell metacharacters.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure_args=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_arg
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_arg" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-cr | --no-c) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_configure_args="$ac_configure_args '$ac_arg'" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# NLS nuisances.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Only set these to C if already set. These must not be set unconditionally
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# because not all systems understand e.g. LANG=C (notably SCO).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Non-C LC_CTYPE values break the ctype check.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LANG+set}" = set; then LANG=C; export LANG; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# confdefs.h avoids OS command line length limits that DEFS can exceed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -rf conftest* confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# AIX cpp loses on an empty file, so make sure it contains at least a newline.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho > confdefs.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# A filename unique to this package, relative to the directory that
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure is in, which we can look for to find out if srcdir is correct.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_unique_file=lib/dns/name.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Find the source files, if location was not specified.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$srcdir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Try the directory containing this script, then its parent.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog=$0
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=$ac_confdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley srcdir=..
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_srcdir_defaulted=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test ! -r $srcdir/$ac_unique_file; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$ac_srcdir_defaulted" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Prefer explicitly selected file to automatically selected ones.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CONFIG_SITE"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "x$prefix" != xNONE; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_site_file in $CONFIG_SITE; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -r "$ac_site_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading site script $ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . "$ac_site_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -r "$cache_file"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "loading cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley . $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "creating cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_exeext=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_objext=o
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley' ac_t=' '
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n=-n ac_c= ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_n= ac_c='\c' ac_t=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_aux_dir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/install-sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install-sh -c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley elif test -f $ac_dir/install.sh; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_aux_dir=$ac_dir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_install_sh="$ac_aux_dir/install.sh -c"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_aux_dir"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_guess=$ac_aux_dir/config.guess
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_config_sub=$ac_aux_dir/config.sub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Make sure we can run config.sub.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking host system type""... $ac_c" 1>&6
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrenceecho "configure:671: checking host system type" >&5
866d106459313499d0ca7bfccb4b2d23d5e4377cDavid Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_alias=$host
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$host_alias" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyNONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case $nonopt in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley NONE)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) host_alias=$nonopt ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$host" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:693: checking whether ${MAKE-make} sets \${MAKE}" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftestmake <<\EOF
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonall:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley @echo 'ac_maketemp="${MAKE}"'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$ac_maketemp"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval ac_cv_prog_make_${ac_make}_set=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval ac_cv_prog_make_${ac_make}_set=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftestmake
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley SET_MAKE=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley SET_MAKE="MAKE=${MAKE-make}"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ranlib; ac_word=$2
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:722: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_dummy="$PATH"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $ac_dummy; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_dir" && ac_dir=.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_word; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_prog_RANLIB="ranlib"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_ifs"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffRANLIB="$ac_cv_prog_RANLIB"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$RANLIB"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""$RANLIB" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Find a good install program. We prefer a C program (faster),
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington# so one script is as good as another. But avoid the broken or
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# incompatible versions:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SysV /etc/install, /usr/sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SunOS /usr/etc/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# IRIX /sbin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AIX /bin/install
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# AFS /usr/afsws/bin/install, which mishandles nonexistent args
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:761: checking for a BSD compatible install" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -z "$INSTALL"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $PATH; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Account for people who put trailing slashes in PATH elements.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$ac_dir/" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # OSF1 and SCO ODT 3.0 have their own names for install.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # Don't use installbsd from OSF since it installs stuff as root
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # by default.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_prog in ginstall scoinst install; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test -f $ac_dir/$ac_prog; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test $ac_prog = install &&
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # AIX install. It has an incompatible calling convention.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff :
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_path_install="$ac_dir/$ac_prog -c"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break 2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_IFS"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test "${ac_cv_path_install+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley INSTALL="$ac_cv_path_install"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff else
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # As a last resort, use the slow shell script. We don't cache a
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # path for INSTALL within a source directory, because that will
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # break other packages using the cache if that directory is
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff # removed, or if the path is relative.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff INSTALL="$ac_install_sh"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$INSTALL" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# It thinks the first close brace ends the variable substitution.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafftest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ar", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ar; ac_word=$2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:821: checking for $ac_word" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff case "$AR" in
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff /*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_path_AR="$AR" # Let the user override the test with a path.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ?:/*)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff *)
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ac_dummy="$PATH"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff for ac_dir in $ac_dummy; do
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff test -z "$ac_dir" && ac_dir=.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f $ac_dir/$ac_word; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_AR="$ac_dir/$ac_word"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff break
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_ifs"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffesac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
3d776d762914d1b675b4fd49728ce353ccf6f77eBrian WellingtonAR="$ac_cv_path_AR"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif test -n "$AR"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""$AR" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington echo "$ac_t""no" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceARFLAGS="cruv"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# The POSIX ln(1) program. Non-POSIX systems may substitute
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# "copy" or something.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceLN=ln
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencecase "$AR" in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence "")
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff { echo "configure: error:
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencear program not found. Please fix your PATH to include the directory in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencewhich ar resides, or set AR in the environment with the full path to ar.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence" 1>&2; exit 1; }
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceesac
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefor ac_prog in etags emacs-etags
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencedo
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence# Extract the first word of "$ac_prog", so it can be a program name with args.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceset dummy $ac_prog; ac_word=$2
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceecho "configure:877: checking for $ac_word" >&5
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence case "$ETAGS" in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence /*)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ?:/*)
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson ;;
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson *)
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
91306d962f9d147d94b82fb14edb28f8d907cae7Andreas Gustafsson ac_dummy="$PATH"
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence for ac_dir in $ac_dummy; do
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence test -z "$ac_dir" && ac_dir=.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff if test -f $ac_dir/$ac_word; then
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence ac_cv_path_ETAGS="$ac_dir/$ac_word"
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence break
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence fi
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence done
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence IFS="$ac_save_ifs"
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrence ;;
f855bad4a1bf282fdddc59d89c33ff6813ab2800David Lawrenceesac
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael GraffETAGS="$ac_cv_path_ETAGS"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif test -n "$ETAGS"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo "$ac_t""$ETAGS" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington echo "$ac_t""no" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafftest -n "$ETAGS" && break
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffdone
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# Perl is optional; it is used only by some of the system test scripts.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff#
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Grafffor ac_prog in perl5 perl
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffdo
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff# Extract the first word of "$ac_prog", so it can be a program name with args.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffset dummy $ac_prog; ac_word=$2
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffecho "configure:922: checking for $ac_word" >&5
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffif eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graffelse
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff case "$PERL" in
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff /*)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ;;
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ?:/*)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ;;
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff *)
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_dummy="$PATH"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff for ac_dir in $ac_dummy; do
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff test -z "$ac_dir" && ac_dir=.
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff if test -f $ac_dir/$ac_word; then
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff ac_cv_path_PERL="$ac_dir/$ac_word"
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff break
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff fi
8e06cea14c857429ab7e7299af2dce5eeeaa5ff0Michael Graff done
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson IFS="$ac_save_ifs"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonesac
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas GustafssonPERL="$ac_cv_path_PERL"
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonif test -n "$PERL"; then
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson echo "$ac_t""$PERL" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonelse
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington echo "$ac_t""no" 1>&6
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssonfi
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssontest -n "$PERL" && break
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssondone
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# Special processing of paths depending on whether --prefix,
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# --sysconfdir or --localstatedir arguments were given. What's
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# desired is some compatability with the way previous versions
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# of BIND built; they defaulted to /usr/local for most parts of
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# the installation, but named.boot/named.conf was in /etc
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# and named.pid was in /var/run.
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# So ... if none of --prefix, --sysconfdir or --localstatedir are
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# specified, set things up that way. If --prefix is given, use
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# it for sysconfdir and localstatedir the way configure normally
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# would. To change the prefix for everything but leave named.conf
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# in /etc or named.pid in /var/run, then do this the usual configure way:
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# ./configure --prefix=/somewhere --sysconfdir=/etc
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# ./configure --prefix=/somewhere --localstatedir=/var
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# To put named.conf and named.pid in /usr/local with everything else,
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# set the prefix explicitly to /usr/local even though that's the default:
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson# ./configure --prefix=/usr/local
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson#
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafssoncase "$prefix" in
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson NONE)
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson case "$sysconfdir" in
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson '${prefix}/etc')
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson sysconfdir=/etc
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson ;;
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson esac
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson case "$localstatedir" in
3ecf3394e37dc2848a09ffc643565d454e9e6974Andreas Gustafsson '${prefix}/var')
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence localstatedir=/var
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence esac
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceesac
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Make sure INSTALL uses an absolute path, else it will be wrong in all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# configure based on the location of the file where it is substituted.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# subdirectory of install-sh, This relative path will be wrong for all
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# directories more than one level down from install-sh.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencecase "$INSTALL" in
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence /*)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence *)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence #
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # Not all systems have dirname.
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence #
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence test "$ac_dir" = "$ac_prog" && ac_dir=.
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence INSTALL="$ac_dir/$ac_prog"
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence ;;
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrenceesac
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence#
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence# On these hosts, we really want to use cc, not gcc, even if it is
ae4cbb69eef32ced103fe4561e8d2031ee4c3497David Lawrence# found. The gcc that these systems have will not correctly handle
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# pthreads.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# However, if the user sets $CC to be something, let that override
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# our change.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test "X$CC" = "X" ; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence case "$host" in
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence *-dec-osf*)
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence CC="cc"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ;;
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence *-solaris*)
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence # Use Sun's cc if it is available, but watch
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # out for /usr/ucb/cc; it will never be the right
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence # compiler to use.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence #
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff # If setting CC here fails, the AC_PROG_CC done
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence # below might still find gcc.
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence for ac_dir in $PATH; do
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence test -z "$ac_dir" && ac_dir=.
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence case "$ac_dir" in
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence /usr/ucb)
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence # exclude
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence ;;
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence *)
0293ad13207aa29bd5844cdc87d085ffc009d749David Lawrence if test -f "$ac_dir/cc"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence CC="$ac_dir/cc"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence break
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence fi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence esac
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence done
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence IFS="$ac_save_ifs"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *-hp-hpux*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff mips-sgi-irix*)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff CC="cc"
1ce985ab3c6670662d555c108b35fed84a6a1001David Lawrence ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence esac
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencefi
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence# Find the machine's endian flavor.
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho "configure:1070: checking whether byte ordering is bigendian" >&5
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceelse
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ac_cv_c_bigendian=unknown
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# See if sys/param.h defines the BYTE_ORDER macro.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencecat > conftest.$ac_ext <<EOF
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#line 1077 "configure"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#include "confdefs.h"
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#include <sys/types.h>
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#include <sys/param.h>
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceint main() {
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence bogus endian macros
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff#endif
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff; return 0; }
657ce0b9d84fbd66514df53d61a087e8f1161187Michael GraffEOF
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffif { (eval echo configure:1088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff rm -rf conftest*
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff # It does; now see whether it defined to BIG_ENDIAN or not.
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffcat > conftest.$ac_ext <<EOF
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff#line 1092 "configure"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff#include "confdefs.h"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff#include <sys/types.h>
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#include <sys/param.h>
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffint main() {
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#if BYTE_ORDER != BIG_ENDIAN
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence not big endian
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#endif
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff; return 0; }
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffEOF
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffif { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff rm -rf conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff ac_cv_c_bigendian=yes
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff echo "configure: failed program was:" >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff cat conftest.$ac_ext >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff rm -rf conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff ac_cv_c_bigendian=no
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffrm -f conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffelse
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff echo "configure: failed program was:" >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff cat conftest.$ac_ext >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffif test $ac_cv_c_bigendian = unknown; then
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffif test "$cross_compiling" = yes; then
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff cat > conftest.$ac_ext <<EOF
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#line 1123 "configure"
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#include "confdefs.h"
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffmain () {
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff /* Are we little or big endian? From Harbison&Steele. */
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff union
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff {
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff long l;
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff char c[sizeof (long)];
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff } u;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence u.l = 1;
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff exit (u.c[sizeof (long) - 1] == 1);
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff}
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffEOF
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffif { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffthen
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff ac_cv_c_bigendian=no
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffelse
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff echo "configure: failed program was:" >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff cat conftest.$ac_ext >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff rm -fr conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff ac_cv_c_bigendian=yes
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffrm -fr conftest*
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffecho "$ac_t""$ac_cv_c_bigendian" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif test $ac_cv_c_bigendian = yes; then
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff cat >> confdefs.h <<\EOF
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#define WORDS_BIGENDIAN 1
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffEOF
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Grafffi
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff# If the user didn't specify where openssl is, and we didn't find or it
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff# is imcompatible with our code, use our internal one.
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff# XXXMLG Implement this check!
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffecho "configure:1166: checking for compatible OpenSSL library" >&5
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffDST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffdst_privateopenssl='openssl'
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffDST_OPENSSL_INC='-I${srcdir}/../openssl/include'
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffDST_OPENSSL_LIB=''
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffDST_OPENSSL_OBJS='${OPENSSLOBJS}'
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graffecho "$ac_t""using private library" 1>&6
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff# This would include the system openssl path (and linker options to use
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff# it as needed) if it is found.
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff#
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael GraffDNS_OPENSSL_LIBS=""
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# testing with alternate openssl libraries... XXXMLG
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff#
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington# DNS_OPENSSL_LIBS="-L/usr/pkg/lib -lssl -lcrypto"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence# DST_PRIVATEOPENSSL=''
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# dst_privateopenssl=''
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# DST_OPENSSL_INC='-I/usr/pkg/include'
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# DST_OPENSSL_LIB=''
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington#
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# NetBSD has multiple pthreads implementations. The recommended
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# one to use is "unproven-pthreads". The older "mit-pthreads"
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff# may also work on some NetBSD versions. The PTL2 thread
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff# library does not currently work with bind9, but can be
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff# chosen with the --with-ptl2 option for those who wish to
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington# experiment with it.
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington#
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
5f9e583552f53de12062bfff12e47250abce378fBrian Wellingtoncase "$host" in
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff *-netbsd*)
08a768e82ad64ede97f640c88e02984b59122753Michael Graff CC="gcc"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
5f9e583552f53de12062bfff12e47250abce378fBrian Wellingtonecho "configure:1212: checking which NetBSD thread library to use" >&5
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington # Check whether --with-ptl2 or --without-ptl2 was given.
5f9e583552f53de12062bfff12e47250abce378fBrian Wellingtonif test "${with_ptl2+set}" = set; then
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington withval="$with_ptl2"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington use_ptl2="$withval"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellingtonelse
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington use_ptl2="no"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellingtonfi
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington : ${LOCALBASE:=/usr/pkg}
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington if test "X$use_ptl2" = "Xyes"
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington then
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington echo "$ac_t""PTL2" 1>&6
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington CC=ptlgcc
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington else
5f9e583552f53de12062bfff12e47250abce378fBrian Wellington echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff if test ! -d $LOCALBASE/pthreads
e915367e40b579d18ac13c9c58c15fec614d9890Michael Graff then
08a768e82ad64ede97f640c88e02984b59122753Michael Graff { echo "configure: error: no thread library found.
08a768e82ad64ede97f640c88e02984b59122753Michael Graff
08a768e82ad64ede97f640c88e02984b59122753Michael GraffPlease install the devel/unproven-pthreads package and rerun configure.
08a768e82ad64ede97f640c88e02984b59122753Michael Graff" 1>&2; exit 1; }
08a768e82ad64ede97f640c88e02984b59122753Michael Graff fi
08a768e82ad64ede97f640c88e02984b59122753Michael Graff
08a768e82ad64ede97f640c88e02984b59122753Michael Graff pkg="$LOCALBASE/pthreads"
08a768e82ad64ede97f640c88e02984b59122753Michael Graff lib1="-L$pkg/lib -Wl,-R$pkg/lib"
08a768e82ad64ede97f640c88e02984b59122753Michael Graff lib2="-lpthread -lm -lgcc -lpthread"
08a768e82ad64ede97f640c88e02984b59122753Michael Graff LIBS="$lib1 $lib2 $LIBS"
08a768e82ad64ede97f640c88e02984b59122753Michael Graff CPPFLAGS="$CPPFLAGS -I$pkg/include"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington fi
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington ;;
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonesac
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington# Extract the first word of "gcc", so it can be a program name with args.
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonset dummy gcc; ac_word=$2
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonecho "configure:1254: checking for $ac_word" >&5
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonelse
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington if test -n "$CC"; then
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington ac_cv_prog_CC="$CC" # Let the user override the test.
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonelse
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington ac_dummy="$PATH"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington for ac_dir in $ac_dummy; do
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington test -z "$ac_dir" && ac_dir=.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test -f $ac_dir/$ac_word; then
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington ac_cv_prog_CC="gcc"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington break
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington fi
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington done
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington IFS="$ac_save_ifs"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonfi
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonfi
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian WellingtonCC="$ac_cv_prog_CC"
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonif test -n "$CC"; then
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington echo "$ac_t""$CC" 1>&6
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonelse
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington echo "$ac_t""no" 1>&6
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonfi
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellingtonif test -z "$CC"; then
3ec6b563d7b6cb11a047f23faa2a0f206ccd93e7Brian Wellington # Extract the first word of "cc", so it can be a program name with args.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonset dummy cc; ac_word=$2
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonecho "configure:1284: checking for $ac_word" >&5
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonelse
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test -n "$CC"; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_cv_prog_CC="$CC" # Let the user override the test.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonelse
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_prog_rejected=no
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_dummy="$PATH"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington for ac_dir in $ac_dummy; do
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington test -z "$ac_dir" && ac_dir=.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test -f $ac_dir/$ac_word; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_prog_rejected=yes
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington continue
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington fi
529ff4b4959fb157194f985394951108ff5286e4Brian Wellington ac_cv_prog_CC="cc"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington break
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington fi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington done
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington IFS="$ac_save_ifs"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonif test $ac_prog_rejected = yes; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # We found a bogon in the path, so make sure we never use it.
529ff4b4959fb157194f985394951108ff5286e4Brian Wellington set dummy $ac_cv_prog_CC
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington shift
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test $# -gt 0; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # We chose a different compiler from the bogus one.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # However, it has the same basename, so the bogon will be chosen
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington # first if we set CC to just the basename; use the full file name.
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington shift
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington set dummy "$ac_dir/$ac_word" "$@"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington shift
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington ac_cv_prog_CC="$@"
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington fi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonfi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonfi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonfi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian WellingtonCC="$ac_cv_prog_CC"
529ff4b4959fb157194f985394951108ff5286e4Brian Wellingtonif test -n "$CC"; then
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington echo "$ac_t""$CC" 1>&6
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonelse
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington echo "$ac_t""no" 1>&6
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellingtonfi
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington
a14613fce99dee3cad5bf842fd6be78f8e463582Brian Wellington if test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "`uname -s`" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *win32* | *WIN32*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cl", so it can be a program name with args.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceset dummy cl; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1335: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$CC"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dummy="$PATH"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $ac_dummy; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="cl"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCC="$ac_cv_prog_CC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1367: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext << EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1378 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If we can't run a trivial program, we are probably using a cross compiler.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if (./conftest; exit) 2>/dev/null; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_cross=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_works=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_ext=c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cpp='$CPP $CPPFLAGS'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_cc_works = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1409: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycross_compiling=$ac_cv_prog_cc_cross
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:1414: checking whether we are using GNU C" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.c <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#ifdef __GNUC__
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley yes;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_gcc=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_gcc=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_gcc" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test $ac_cv_prog_gcc = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley GCC=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley GCC=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_test_CFLAGS="${CFLAGS+set}"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_save_CFLAGS="$CFLAGS"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCFLAGS=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1442: checking whether ${CC-cc} accepts -g" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo 'void f(){}' > conftest.c
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_cc_g=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif test "$ac_test_CFLAGS" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="$ac_save_CFLAGS"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelif test $ac_cv_prog_cc_g = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-g -O2"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-g"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-O2"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_prog in 'bison -y' byacc
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyset dummy $ac_prog; ac_word=$2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1478: checking for $ac_word" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -n "$YACC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_YACC="$YACC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dummy="$PATH"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $ac_dummy; do
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_YACC="$ac_prog"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyYACC="$ac_cv_prog_YACC"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$YACC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""$YACC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$YACC" && break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest -n "$YACC" || YACC="yacc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1510: checking how to run the C preprocessor" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CPP" && test -d "$CPP"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CPP=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -z "$CPP"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # This must be in double quotes, not single quotes, because CPP may get
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CPP="${CC-cc} -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # On the NeXT, cc -E runs the code through the compiler's parser,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # not just through cpp.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1525 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleySyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_err" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E -traditional-cpp"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 1542 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleySyntax Error
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -z "$ac_err"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister :
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_err" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence CPP="${CC-cc} -nologo -E"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1559 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include <assert.h>
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerSyntax Error
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -z "$ac_err"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister :
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_err" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CPP=/lib/cpp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CPP="$CPP"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister CPP="$ac_cv_prog_CPP"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$CPP" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1590: checking for ANSI C header files" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1595 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1620 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include <string.h>
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister egrep "memchr" >/dev/null 2>&1; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister :
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_header_stdc=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test $ac_cv_header_stdc = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 1638 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <stdlib.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley egrep "free" >/dev/null 2>&1; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$cross_compiling" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1659 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <ctype.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main () { int i; for (i = 0; i < 256; i++)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexit (0); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleythen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_stdc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_stdc" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_stdc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define STDC_HEADERS 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1698: checking for $ac_hdr" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1703 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <$ac_hdr>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_hdr 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for working const""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1736: checking for working const" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1741 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Ultrix mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytypedef int charset[2]; const charset x;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* SunOS 4.1.1 cc rejects this. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar const *const *ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar **p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct point {int x, y;};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystatic struct point const zero = {0,0};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* AIX XL C 1.02.0.0 rejects this.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley It does not let you subtract one const X* pointer from another in an arm
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley of an if-expression whose if-part is not a constant expression */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyconst char *g = "string";
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = &g + (g ? g-g : 0);
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* HPUX 7.0 cc rejects these. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley++ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyp = (char**) ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyccp = (char const *const *) p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* SCO 3.2v4 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char *t;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley char const *s = 0 ? (char *) 0 : (char const *) 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *t++ = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley int x[] = {25, 17};
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int *foo = &x[0];
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence ++foo;
90407942d3afe50f04ccea361de3b164a5a1702dMichael Graff}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley iptr p = 0;
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ++p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* AIX XL C 1.02.0.0 rejects this saying
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s { int j; const int *ap[3]; };
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_const=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_const" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_c_const = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1811: checking for inline" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_cv_c_inline=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_kw in inline __inline__ __inline; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1818 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=$ac_kw; break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$ac_cv_c_inline" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley inline | yes) ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley no) cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define inline $ac_cv_c_inline
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1851: checking for size_t" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1856 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if STDC_HEADERS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stddef.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_type_size_t=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_type_size_t = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define size_t unsigned
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffecho "configure:1884: checking whether time.h and sys/time.h may both be included" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1889 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/types.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <sys/time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <time.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct tm *tp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_header_time=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_header_time = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define TIME_WITH_SYS_TIME 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffecho "configure:1920: checking for pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1928 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleypthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define $ac_tr_lib 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1965: checking for __pthread_create in -lpthread" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lpthread $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1973 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar __pthread_create();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley__pthread_create()
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat >> confdefs.h <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#define $ac_tr_lib 1
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence LIBS="-lpthread $LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2012: checking for __pthread_create_system in -lpthread" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_save_LIBS="$LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceLIBS="-lpthread $LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencecat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2020 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9ce476812c93a1bb8b416adbe707ee5000a015f1Andreas Gustafssonchar __pthread_create_system();
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson__pthread_create_system()
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson; return 0; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson eval "ac_cv_lib_$ac_lib_var=yes"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson eval "ac_cv_lib_$ac_lib_var=no"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonrm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceLIBS="$ac_save_LIBS"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson echo "$ac_t""yes" 1>&6
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson cat >> confdefs.h <<EOF
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson#define $ac_tr_lib 1
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas GustafssonEOF
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson LIBS="-lpthread $LIBS"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson echo "$ac_t""no" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# We'd like to use sigwait() too
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonecho $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonecho "configure:2066: checking for sigwait in -lc" >&5
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ac_save_LIBS="$LIBS"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonLIBS="-lc $LIBS"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncat > conftest.$ac_ext <<EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2074 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson/* Override any gcc2 internal prototype to avoid an error. */
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson/* We use char because int might match the return type of a gcc2
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar sigwait();
ce7994d137a013133e874b92604183923267fc94Brian Wellington
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencesigwait()
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ce7994d137a013133e874b92604183923267fc94Brian Wellington rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_lib_$ac_lib_var=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceLIBS="$ac_save_LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat >> confdefs.h <<\EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#define HAVE_SIGWAIT 1
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2107: checking for sigwait in -lpthread" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ac_save_LIBS="$LIBS"
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceLIBS="-lpthread $LIBS"
ce7994d137a013133e874b92604183923267fc94Brian Wellingtoncat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2115 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonchar sigwait();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceint main() {
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencesigwait()
ce7994d137a013133e874b92604183923267fc94Brian Wellington; return 0; }
ce7994d137a013133e874b92604183923267fc94Brian WellingtonEOF
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonif { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "configure: failed program was:" >&5
ce7994d137a013133e874b92604183923267fc94Brian Wellington cat conftest.$ac_ext >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencerm -f conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceLIBS="$ac_save_LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonfi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""yes" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellington cat >> confdefs.h <<\EOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#define HAVE_SIGWAIT 1
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""no" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceecho "configure:2148: checking for _Psigwait in -lpthread" >&5
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ac_save_LIBS="$LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceLIBS="-lpthread $LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencecat > conftest.$ac_ext <<EOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#line 2156 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* We use char because int might match the return type of a gcc2
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence builtin and then its argument prototype would still apply. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencechar _Psigwait();
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceint main() {
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence_Psigwait()
ce7994d137a013133e874b92604183923267fc94Brian Wellington; return 0; }
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
ce7994d137a013133e874b92604183923267fc94Brian Wellington eval "ac_cv_lib_$ac_lib_var=yes"
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonelse
ce7994d137a013133e874b92604183923267fc94Brian Wellington echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="$ac_save_LIBS"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
ce7994d137a013133e874b92604183923267fc94Brian Wellington#define HAVE_SIGWAIT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Additional OS-specific issues related to pthreads and sigwait.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycase "$host" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # One more place to look for sigwait.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-freebsd*)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:2205: checking for sigwait in -lc_r" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_save_LIBS="$LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBS="-lc_r $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 2213 "configure"
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include "confdefs.h"
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* Override any gcc2 internal prototype to avoid an error. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington/* We use char because int might match the return type of a gcc2
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley builtin and then its argument prototype would still apply. */
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleychar sigwait();
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyint main() {
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonsigwait()
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley; return 0; }
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
ce7994d137a013133e874b92604183923267fc94Brian Wellington echo "configure: failed program was:" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat conftest.$ac_ext >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley rm -rf conftest*
ce7994d137a013133e874b92604183923267fc94Brian Wellington eval "ac_cv_lib_$ac_lib_var=no"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceLIBS="$ac_save_LIBS"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""yes" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat >> confdefs.h <<\EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define HAVE_SIGWAIT 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo "$ac_t""no" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
ce7994d137a013133e874b92604183923267fc94Brian Wellington # BSDI 3.1 through 4.0.1 needs pthread_init() to be called before
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # certain pthreads calls. This is deprecated in BSD/OS 4.1.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley *-bsdi3.1*|*-bsdi4.0*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define NEED_PTHREAD_INIT 1
ce7994d137a013133e874b92604183923267fc94Brian WellingtonEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
ce7994d137a013133e874b92604183923267fc94Brian Wellington # LinuxThreads requires some changes to the way we deal with signals.
ce7994d137a013133e874b92604183923267fc94Brian Wellington #
ce7994d137a013133e874b92604183923267fc94Brian Wellington *-linux*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define HAVE_LINUXTHREADS 1
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
ce7994d137a013133e874b92604183923267fc94Brian Wellington ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence # Ensure the right sigwait() semantics on Solaris.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley *-solaris*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define _POSIX_PTHREAD_SEMANTICS 1
ce7994d137a013133e874b92604183923267fc94Brian WellingtonEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
ce7994d137a013133e874b92604183923267fc94Brian Wellington #
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley # UnixWare does things its own way.
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley #
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence *-UnixWare*)
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define HAVE_UNIXWARE_SIGWAIT 1
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ;;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyesac
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley# NLS
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyecho $ac_n "checking for catgets""... $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho "configure:2291: checking for catgets" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
ce7994d137a013133e874b92604183923267fc94Brian Wellingtonelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat > conftest.$ac_ext <<EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#line 2296 "configure"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include "confdefs.h"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley which can conflict with char catgets(); below. */
ce7994d137a013133e874b92604183923267fc94Brian Wellington#include <assert.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington/* We use char because int might match the return type of a gcc2
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington builtin and then its argument prototype would still apply. */
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonchar catgets();
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint main() {
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley/* The GNU C library defines this for functions which it implements
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence to always fail with ENOSYS. Some functions are actually named
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence something starting with __ and the normal name is an alias. */
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington#if defined (__stub_catgets) || defined (__stub___catgets)
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellingtonchoke me
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycatgets();
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#endif
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington; return 0; }
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael GraffEOF
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonif { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson eval "ac_cv_func_catgets=yes"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_func_catgets=no"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencerm -f conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""yes" 1>&6
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington cat >> confdefs.h <<\EOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define HAVE_CATGETS 1
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceEOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""no" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# -lxnet buys us one big porting headache... standards, gotta love 'em.
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington#
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# AC_CHECK_LIB(xnet, socket, ,
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# AC_CHECK_LIB(socket, socket)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# AC_CHECK_LIB(nsl, inet_ntoa)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# )
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence# Use this for now, instead:
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencecase "$host" in
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence mips-sgi-irix*)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence *)
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:2357: checking for socket in -lsocket" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_save_LIBS="$LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceLIBS="-lsocket $LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencecat > conftest.$ac_ext <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 2365 "configure"
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar socket();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleysocket()
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellingtonrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define $ac_tr_lib 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley LIBS="-lsocket $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:2404: checking for inet_ntoa in -lnsl" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lnsl $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 2412 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar inet_ntoa();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyinet_ntoa()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=yes"
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellingtonelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "configure: failed program was:" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""yes" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley cat >> confdefs.h <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define $ac_tr_lib 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley LIBS="-lnsl $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonesac
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyMKDEPCC="$CC"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyMKDEPCFLAGS="-M"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian WellingtonIRIX_DNSSEC_WARNINGS_HACK=""
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellingtonif test "X$GCC" = "Xyes"; then
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington case "$host" in
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-freebsd*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -pthread"
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-openbsd*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -pthread"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-solaris*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington LIBS="$LIBS -lthread"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-ibm-aix*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington esac
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellingtonelse
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington case "$host" in
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-dec-osf*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -std -pthread"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington MKDEPCC="$CC"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-solaris*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -mt"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington MKDEPCC="$CC"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington MKDEPCFLAGS="-xM"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington *-hp-hpux*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -Ae -z +w1"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington LIBS="-Wl,+vnocompatwarnings $LIBS"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-sgi-irix*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington STD_CWARNINGS="-fullwarn -woff 1209"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington #
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington # Silence more than 250 instances of
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington # "prototyped function redeclared without prototype"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington # and 11 instances of
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington # "variable ... was set but never used"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington # from lib/dns/sec/{dnssafe,openssl}.
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington #
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-ibm-aix*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington ;;
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington *-UnixWare*)
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington CC="$CC -Kthread -w"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington MKDEPCC="$CC"
b49fb818f6e6a7b32528a9948dcccb957ac9d86dBrian Wellington YACC="yacc" # bison calls alloca, avoid on UnixWare
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ;;
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson esac
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
5bb8c225cd193798f7c8bf9f2d97f600ecfe2d8eBrian Wellington
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# Networking specifics.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleycase "$host" in
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley *-dec-osf*)
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley # Turn on 4.4BSD style sa_len support.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat >> confdefs.h <<\EOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#define _SOCKADDR_LEN 1
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyEOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ;;
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyesac
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley# Look for a 4.4BSD-style sa_len member in struct sockaddr.
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyecho "configure:2532: checking for sa_len in struct sockaddr" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleycat > conftest.$ac_ext <<EOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#line 2534 "configure"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include <sys/types.h>
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley#include <sys/socket.h>
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyint main() {
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleystruct sockaddr sa; sa.sa_len = 0; return (0);
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley; return 0; }
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob HalleyEOF
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyif { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "$ac_t""yes" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyelse
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "configure: failed program was:" >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley cat conftest.$ac_ext >&5
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley rm -rf conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley echo "$ac_t""no" 1>&6
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyfi
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halleyrm -f conftest*
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrence#
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson# Look for a 4.4BSD or 4.3BSD struct msghdr
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
fa280ff02ad0c29616a0c3a22ef02cbb3f6db7efDavid Lawrenceecho "configure:2564: checking for struct msghdr flavor" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncat > conftest.$ac_ext <<EOF
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#line 2566 "configure"
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence#include "confdefs.h"
20de4f6c6cd4af09c13c1e0a21f97e49d2139dbeBob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/types.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <sys/socket.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonstruct msghdr msg; msg.msg_flags = 0; return (0);
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson; return 0; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence rm -rf conftest*
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence echo "$ac_t""4.4BSD" 1>&6
566a01eb745d49bd866971062388cd11d525b60dDavid Lawrence ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""4.3BSD" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# Look for in_port_t.
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffecho "configure:2593: checking for type in_port_t" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffcat > conftest.$ac_ext <<EOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#line 2595 "configure"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include "confdefs.h"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include <sys/types.h>
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include <netinet/in.h>
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffint main() {
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffin_port_t port = 25; return (0);
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff; return 0; }
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffEOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff rm -rf conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "$ac_t""yes" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffelse
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "configure: failed program was:" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat conftest.$ac_ext >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff rm -rf conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "$ac_t""no" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Grafffi
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffrm -f conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff# Check for addrinfo
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffecho "configure:2622: checking for struct addrinfo" >&5
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffcat > conftest.$ac_ext <<EOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#line 2624 "configure"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include "confdefs.h"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#include <netdb.h>
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffint main() {
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffstruct addrinfo a; return (0);
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff; return 0; }
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffEOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graffif { (eval echo configure:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff rm -rf conftest*
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff echo "$ac_t""yes" 1>&6
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff cat >> confdefs.h <<\EOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff#define HAVE_ADDRINFO 1
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael GraffEOF
0eb2572d79822d02ea05448ce4e5f1759c73d171Michael Graff
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""no" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrencefi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:2651: checking for int sethostent" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssoncat > conftest.$ac_ext <<EOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#line 2653 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#include <netdb.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint main() {
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint i = sethostent(0); return(0);
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington; return 0; }
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonEOF
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif { (eval echo configure:2661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""yes" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "configure: failed program was:" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat conftest.$ac_ext >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""no" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonrm -f conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho "configure:2676: checking for int endhostent" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtoncat > conftest.$ac_ext <<EOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#line 2678 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <netdb.h>
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint main() {
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonint i = endhostent(); return(0);
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence; return 0; }
7005cfed8cd3296d356883dcb414979f22e06b13Brian WellingtonEOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonif { (eval echo configure:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""yes" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonelse
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "configure: failed program was:" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington cat conftest.$ac_ext >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington rm -rf conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington echo "$ac_t""no" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonfi
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonrm -f conftest*
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtonecho "configure:2701: checking for getnetbyaddr(in_addr_t, ...)" >&5
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellingtoncat > conftest.$ac_ext <<EOF
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#line 2703 "configure"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include "confdefs.h"
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington
7005cfed8cd3296d356883dcb414979f22e06b13Brian Wellington#include <netdb.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonstruct netent *getnetbyaddr(in_addr_t, int);
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson; return 0; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""yes" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "$ac_t""no" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonfi
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonrm -f conftest*
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonecho "configure:2727: checking for int setnetent" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencecat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2729 "configure"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include "confdefs.h"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson#include <netdb.h>
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint main() {
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonint i = setnetent(0); return(0);
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson; return 0; }
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas GustafssonEOF
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonif { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafssonelse
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson echo "configure: failed program was:" >&5
a1884b96ef53efc8b4e14be173aaee552ca0213aAndreas Gustafsson cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington echo "$ac_t""no" 1>&6
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtonrm -f conftest*
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafsson
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
9ceaa92a8ca8a0270ba296d44599e94d95033759Andreas Gustafssonecho "configure:2752: checking for int endnetent" >&5
65e218048d7be538af52710195e3ccc7d1427402Brian Wellingtoncat > conftest.$ac_ext <<EOF
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington#line 2754 "configure"
65e218048d7be538af52710195e3ccc7d1427402Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <netdb.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint main() {
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint i = endnetent(); return(0);
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington; return 0; }
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif { (eval echo configure:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""yes" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "configure: failed program was:" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington cat conftest.$ac_ext >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""no" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonrm -f conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho "configure:2777: checking for gethostbyadd(const void *, size_t, ...)" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncat > conftest.$ac_ext <<EOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#line 2779 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <netdb.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonstruct hostent *gethostbyaddr(const void *, size_t, int);
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint main() {
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonreturn(0);
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington; return 0; }
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian WellingtonEOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonif { (eval echo configure:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""yes" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonelse
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "configure: failed program was:" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington cat conftest.$ac_ext >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington rm -rf conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington echo "$ac_t""no" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonfi
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonrm -f conftest*
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonecho "configure:2803: checking for h_errno in netdb.h" >&5
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtoncat > conftest.$ac_ext <<EOF
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#line 2805 "configure"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include "confdefs.h"
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington#include <netdb.h>
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonint main() {
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellingtonh_errno = 1; return(0);
3f123dcc2fe5d2cd08ca91b732741d86a4036906Brian Wellington; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2828: checking for getipnodebyname" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2833 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char getipnodebyname(); below. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* We use char because int might match the return type of a gcc2
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence builtin and then its argument prototype would still apply. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechar getipnodebyname();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceint main() {
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* The GNU C library defines this for functions which it implements
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence to always fail with ENOSYS. Some functions are actually named
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence something starting with __ and the normal name is an alias. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencechoke me
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#else
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencegetipnodebyname();
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#endif
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence; return 0; }
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceEOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_getipnodebyname=yes"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "configure: failed program was:" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat conftest.$ac_ext >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence rm -rf conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence eval "ac_cv_func_getipnodebyname=no"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencerm -f conftest*
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""yes" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo "$ac_t""no" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid LawrenceISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrencefi
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceecho "configure:2877: checking for getnameinfo" >&5
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrenceelse
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence cat > conftest.$ac_ext <<EOF
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#line 2882 "configure"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include "confdefs.h"
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* System header to define __stub macros and hopefully few prototypes,
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence which can conflict with char getnameinfo(); below. */
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence#include <assert.h>
9a2574531e3d2ced31072200b416467fdee0c29cDavid Lawrence/* Override any gcc2 internal prototype to avoid an error. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence/* We use char because int might match the return type of a gcc2
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence builtin and then its argument prototype would still apply. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencechar getnameinfo();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* The GNU C library defines this for functions which it implements
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley to always fail with ENOSYS. Some functions are actually named
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley something starting with __ and the normal name is an alias. */
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychoke me
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#else
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleygetnameinfo();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#endif
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_getnameinfo=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "configure: failed program was:" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat conftest.$ac_ext >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_func_getnameinfo=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyrm -f conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""yes" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""no" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho "configure:2926: checking for getaddrinfo" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo $ac_n "(cached) $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat > conftest.$ac_ext <<EOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#line 2931 "configure"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* System header to define __stub macros and hopefully few prototypes,
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley which can conflict with char getaddrinfo(); below. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include <assert.h>
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar getaddrinfo();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence/* The GNU C library defines this for functions which it implements
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence to always fail with ENOSYS. Some functions are actually named
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence something starting with __ and the normal name is an alias. */
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencechoke me
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#else
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencegetaddrinfo();
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence#endif
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence; return 0; }
882350d11c90de9de6fc1cead25690c8114b0b95Michael GraffEOF
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffif { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff rm -rf conftest*
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff eval "ac_cv_func_getaddrinfo=yes"
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffelse
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_func_getaddrinfo=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define HAVE_GETADDRINFO 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# Look for a sysctl call to get the list of network interfaces.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho "configure:2986: checking for interface list sysctl" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#line 2988 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include <sys/param.h>
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff#include <sys/sysctl.h>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include <sys/socket.h>
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#ifdef NET_RT_IFLIST
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfound_rt_iflist
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#endif
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley egrep "found_rt_iflist" >/dev/null 2>&1; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#define HAVE_IFLIST_SYSCTL 1
85d10fda1bca3388a8919ad68ed79130ad23b298David LawrenceEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# GNU libtool support
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# Check whether --with-libtool or --without-libtool was given.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif test "${with_libtool+set}" = set; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley withval="$with_libtool"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley use_libtool="$withval"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley use_libtool="no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycase $use_libtool in
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley yes)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # Check whether --enable-shared or --disable-shared was given.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif test "${enable_shared+set}" = set; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley enableval="$enable_shared"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley p=${PACKAGE-default}
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycase "$enableval" in
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyyes) enable_shared=yes ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyno) enable_shared=no ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley enable_shared=no
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # Look at the argument we got. We use all the common list separators.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff for pkg in $enableval; do
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley if test "X$pkg" = "X$p"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley enable_shared=yes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley fi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley done
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley IFS="$ac_save_ifs"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyesac
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley enable_shared=yes
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# Check whether --enable-static or --disable-static was given.
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graffif test "${enable_static+set}" = set; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff enableval="$enable_static"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence p=${PACKAGE-default}
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrencecase "$enableval" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceyes) enable_static=yes ;;
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceno) enable_static=no ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_static=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews for pkg in $enableval; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test "X$pkg" = "X$p"; then
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews enable_static=yes
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews fi
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_static=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-fast-install or --disable-fast-install was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_fast_install+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_fast_install"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence p=${PACKAGE-default}
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$enableval" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceyes) enable_fast_install=yes ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceno) enable_fast_install=no ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Look at the argument we got. We use all the common list separators.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for pkg in $enableval; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test "X$pkg" = "X$p"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=yes
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews IFS="$ac_save_ifs"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enable_fast_install=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking build system type""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3098: checking build system type" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_alias=$build
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$build_alias" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceNONE)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case $nonopt in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence NONE) build_alias=$host_alias ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *) build_alias=$nonopt ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewsbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencebuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewsecho "$ac_t""$build" 1>&6
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-gnu-ld or --without-gnu-ld was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_gnu_ld+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence withval="$with_gnu_ld"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$withval" = no || with_gnu_ld=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence with_gnu_ld=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_prog=ld
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "$ac_cv_prog_gcc" = yes; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check if gcc -print-prog-name=ld gives a path.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3127: checking for ld used by GCC" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=`($CC -print-prog-name=ld) 2>&5`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "$ac_prog" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Accept absolute paths.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence [\\/]* | [A-Za-z]:[\\/]*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence re_direlt='/[^/][^/]*/\.\./'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Canonicalize the path of ld
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$LD" && LD="$ac_prog"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence ;;
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews "")
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it fails, then pretend we aren't using GCC.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_prog=ld
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # If it is relative, then search for the first ld in PATH.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence with_gnu_ld=unknown
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewselif test "$with_gnu_ld" = yes; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3151: checking for GNU ld" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3154: checking for non-GNU ld" >&5
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -z "$LD"; then
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for ac_dir in $PATH; do
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews test -z "$ac_dir" && ac_dir=.
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_LD="$ac_dir/$ac_prog"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the program is GNU ld. I'd rather use --version,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # but apparently some GNU ld's only accept -v.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Break only if it was the GNU/non-GNU ld that we prefer.
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$with_gnu_ld" != no && break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test "$with_gnu_ld" != yes && break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence done
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_LD="$LD" # Let the user override the test with a path.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLD="$ac_cv_path_LD"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -n "$LD"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""$LD" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3190: checking if the linker ($LD) is GNU ld" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # I'd rather use --version here, but apparently some GNU ld's only accept -v.
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ac_cv_prog_gnu_ld=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_cv_prog_gnu_ld=no
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3206: checking for BSD-compatible nm" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -n "$NM"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Let the user override the test.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_NM="$NM"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$ac_dir" && ac_dir=.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Check to see if the nm accepts a BSD-compat flag.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews # Adding the `sed 1q' prevents false positives on HP-UX, which says:
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews # nm: unknown option "B" ignored
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_NM="$ac_dir/nm -B"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence break
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_cv_path_NM="$ac_dir/nm -p"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews break
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence continue # so that we can try to find one that supports BSD flags
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews done
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews IFS="$ac_save_ifs"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceNM="$ac_cv_path_NM"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "$ac_t""$NM" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:3243: checking whether ln -s works" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -f conftestdata
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif ln -s X conftestdata 2>/dev/null
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsthen
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -f conftestdata
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_prog_LN_S="ln -s"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ac_cv_prog_LN_S=ln
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLN_S="$ac_cv_prog_LN_S"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "$ac_cv_prog_LN_S" = "ln -s"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for any special flags to pass to ltconfig.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencelibtool_flags="--cache-file=$cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${enable_libtool_lock+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_libtool_lock"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence :
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewstest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# Some flags need to be propagated to the compiler or linker for good
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# libtool support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews*-*-irix6*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Find out which ABI we are using.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo '#line 3287 "configure"' > conftest.$ac_ext
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if { (eval echo configure:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "`/usr/bin/file conftest.o`" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *32-bit*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LD="${LD-ld} -32"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews *N32*)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews LD="${LD-ld} -n32"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *64-bit*)
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews LD="${LD-ld} -64"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ;;
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews esac
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews fi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ;;
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington*-*-sco3.2v5*)
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington SAVE_CFLAGS="$CFLAGS"
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington CFLAGS="$CFLAGS -belf"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3309: checking whether the C compiler needs -belf" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3314 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lt_cv_cc_needs_belf=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington lt_cv_cc_needs_belf=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrencefi
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test x"$lt_cv_cc_needs_belf" != x"yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence CFLAGS="$SAVE_CFLAGS"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Save cache, so that ltconfig can load it
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > confcache <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This file is a shell script that caches the results of configure
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# tests run on this system so they can be shared between configure
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# scripts and configure runs. It is not useful on other systems.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# If it contains results you don't want to keep, you may remove or edit it.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# By default, configure uses ./config.cache as the cache file,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# creating it if it does not exist already. You can give configure
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# the --cache-file=FILE option to use a different cache file; that is
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# what configure does when it calls configure scripts in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# subdirectories, so they share the cache.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Giving --cache-file=/dev/null disables caching, for debugging configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# config.status only pays attention to the cache file if you give it the
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# --recheck option to rerun configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas GustafssonEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# The following way of writing the cache mishandles newlines in values,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# but we know of no workaround that is simple, portable, and efficient.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# So, don't put newlines in cache variables' values.
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson# Ultrix sh set writes to stderr and can't be redirected directly,
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence# and sets the high bit in the cache file unless we assign to the vars.
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson(set) 2>&1 |
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case `(ac_space=' '; set | grep ac_space) 2>&1` in
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson *ac_space=\ *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # `set' does not quote correctly, so add quotes (double-quote substitution
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # turns \\\\ into \\, and sed turns \\ into \).
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson sed -n \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -e "s/'/'\\\\''/g" \
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # `set' quotes correctly as required by POSIX, so do not add quotes.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac >> confcache
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif cmp -s $cache_file confcache; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence :
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -w $cache_file; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "updating cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat confcache > $cache_file
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson else
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo "not updating unwritable cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f confcache
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Actually configure libtool. ac_aux_dir is where install-sh is found.
90839d60d218503da04c4a0bfe57a81c33aa2241David LawrenceCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Reload cache, that may have been modified by ltconfig
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceif test -r "$cache_file"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "loading cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence . $cache_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "creating cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence > $cache_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This can be used to rebuild libtool when needed
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Always use our own libtool.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBTOOL='$(SHELL) $(top_builddir)/libtool'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Redirect the config.log output again, so that the ltconfig log is not
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# clobbered by the next message.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceexec 5>>./config.log
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence O=lo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence A=la
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley O=o
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence A=a
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LIBTOOL=
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# File name extension for static archive files, for those few places
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# where they are treated differently from dynamic ones.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleySA=a
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# IPv6
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --enable-ipv6 or --disable-ipv6 was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_ipv6+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence enableval="$enable_ipv6"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence :
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# We do the IPv6 compilation checking after libtool so that we can put
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the right suffix on the files.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$enable_ipv6" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes|''|autodetect)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3458: checking for IPv6 structures" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3460 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct sockaddr_in6 sin6; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff found_ipv6=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence found_ipv6=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence no)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence found_ipv6=no
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# See whether IPv6 support is provided via a Kame add-on.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is done before other IPv6 linking tests to LIBS is properly set.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3493: checking for Kame IPv6 support" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check whether --with-kame or --without-kame was given.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "${with_kame+set}" = set; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence withval="$with_kame"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley use_kame="$withval"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence use_kame="no"
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtonfi
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtoncase "$use_kame" in
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington no)
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington ;;
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington yes)
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington kame_path=/usr/local/v6
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington ;;
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington *)
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington kame_path="$use_kame"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$use_kame" in
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington no)
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence echo "$ac_t""no" 1>&6
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington ;;
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence if test -f $kame_path/lib/libinet6.a; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LIBS="-L$kame_path/lib -linet6 $LIBS"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence { echo "configure: error: $kame_path/lib/libinet6.a not found.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrencePlease choose the proper path with the following command:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence configure --with-kame=PATH
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence" 1>&2; exit 1; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellingtonesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Including it on Kame-using platforms is very bad, though, because
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Kame uses #error against direct inclusion. So include it on only
4108eed5092156cf0407a97a9bd8ab7775164694Brian Wellington# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This is done before the in6_pktinfo check because that's what
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# netinet6/in6.h is needed for.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*-bsdi4.[01]*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence isc_netinet6in6_hack="#include <netinet6/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley isc_netinet6in6_hack=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# This is similar to the netinet6/in6.h issue.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$host" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*-UnixWare*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinetin6_hack="#include <netinet/in6.h>"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence isc_netinetin6_hack=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Now delve deeper into the suitability of the IPv6 support.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$found_ipv6" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3581: checking for in6addr_any" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3583 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in6_addr in6; in6 = in6addr_any; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3610: checking for sin6_scope_id in struct sockaddr_in6" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3612 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrence#include <sys/socket.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinetin6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$isc_netinet6in6_hack
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrencestruct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence LWRES_HAVE_SIN6_SCOPE_ID="$result"
85d10fda1bca3388a8919ad68ed79130ad23b298David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3640: checking for in6_pktinfo" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3642 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/types.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <sys/socket.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <netinet/in.h>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinetin6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews$isc_netinet6in6_hack
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsint main() {
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsstruct in6_pktinfo xyzzy; return (0);
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews; return 0; }
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsEOF
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsif { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""yes" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewselse
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "configure: failed program was:" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat conftest.$ac_ext >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsrm -f conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ;;
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews no)
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_IPV6_H="ipv6.h"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_IPV6_O="ipv6.$O"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_ISCIPV6_O="unix/ipv6.$O"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_IPV6_C="ipv6.c"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ;;
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Check for network functions that are often missing. We do this
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# after the libtool checking, so we can put the right suffix on
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# the files.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3702: checking for inet_ntop" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewscat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3704 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceinet_ntop(0, 0, 0, 0); return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3729: checking for inet_pton" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > conftest.$ac_ext <<EOF
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#line 3731 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <sys/types.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceinet_pton(0, 0, 0); return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3756: checking for inet_aton" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3758 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <sys/types.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <netinet/in.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <arpa/inet.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestruct in_addr in; inet_aton(0, &in); return (0);
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check for some other useful functions that are not ever-present.
e544b507b8019a62c5d2716281f6832519a8791dDavid Lawrenceecho $ac_n "checking for strsep""... $ac_c" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsecho "configure:3789: checking for strsep" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3794 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char strsep(); below. */
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar strsep();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#if defined (__stub_strsep) || defined (__stub___strsep)
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewschoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencestrsep();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_strsep=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_strsep=no"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:3838: checking for vsnprintf" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3843 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char vsnprintf(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar vsnprintf();
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceint main() {
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencevsnprintf();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews; return 0; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_vsnprintf=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_vsnprintf=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3895: checking for sizeof(long long int) == sizeof(long int)" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "$cross_compiling" = yes; then
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""default yes" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewselse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson#line 3901 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencemain() { exit(!(sizeof(long long int) == sizeof(long int))); }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencethen
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -fr conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -fr conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafsson# Security Stuff
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for chroot""... $ac_c" 1>&6
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceecho "configure:3925: checking for chroot" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3930 "configure"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* System header to define __stub macros and hopefully few prototypes,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence which can conflict with char chroot(); below. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <assert.h>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* Override any gcc2 internal prototype to avoid an error. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* We use char because int might match the return type of a gcc2
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence builtin and then its argument prototype would still apply. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechar chroot();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsint main() {
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence/* The GNU C library defines this for functions which it implements
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence to always fail with ENOSYS. Some functions are actually named
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence something starting with __ and the normal name is an alias. */
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#if defined (__stub_chroot) || defined (__stub___chroot)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechoke me
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencechroot();
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#endif
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence; return 0; }
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid LawrenceEOF
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceif { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_func_chroot=yes"
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews eval "ac_cv_func_chroot=no"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyrm -f conftest*
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonfi
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley cat >> confdefs.h <<\EOF
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley#define HAVE_CHROOT 1
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsEOF
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""no" 1>&6
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfor ac_hdr in linux/capability.h
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleydo
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyecho "configure:3979: checking for $ac_hdr" >&5
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceelse
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 3984 "configure"
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence#include "confdefs.h"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include <$ac_hdr>
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews{ (eval echo configure:3989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -z "$ac_err"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_header_$ac_safe=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_err" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat conftest.$ac_ext >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_header_$ac_safe=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define $ac_tr_hdr 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrencedone
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefor ac_hdr in linux/prctl.h
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsdo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho "configure:4019: checking for $ac_hdr" >&5
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat > conftest.$ac_ext <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#line 4024 "configure"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#include "confdefs.h"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#include <$ac_hdr>
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence{ (eval echo configure:4029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test -z "$ac_err"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence rm -rf conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence eval "ac_cv_header_$ac_safe=yes"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_err" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "configure: failed program was:" >&5
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat conftest.$ac_ext >&5
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence rm -rf conftest*
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence eval "ac_cv_header_$ac_safe=no"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsrm -f conftest*
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$ac_t""yes" 1>&6
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define $ac_tr_hdr 1
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo "$ac_t""no" 1>&6
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencedone
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Random remaining OS-specific issues.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# XXXDCL print messages to indicate some compensation is being done?
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrencecase "$host" in
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence *-bsdi3.1*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence hack_shutup_sputaux=yes
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *-bsdi4.0*)
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews hack_shutup_sigwait=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence hack_shutup_sputaux=yes
0adde9f4f9369b23c67b9a29e824dda09b19022fDavid Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *-bsdi4.1*)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence hack_shutup_stdargcast=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence *-solaris2.8)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence hack_shutup_pthreadonceinit=yes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$hack_shutup_pthreadonceinit" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence yes)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecase "$hack_shutup_sigwait" in
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff yes)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Shut up a -Wmissing-prototypes warning for sigwait().
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews#define SHUTUP_SIGWAIT 1
b67a66514e9778907586786041705aaa832e8113Bob HalleyEOF
b67a66514e9778907586786041705aaa832e8113Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
b67a66514e9778907586786041705aaa832e8113Bob Halleyesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b67a66514e9778907586786041705aaa832e8113Bob Halleycase "$hack_shutup_sputaux" in
b67a66514e9778907586786041705aaa832e8113Bob Halley yes)
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews #
b67a66514e9778907586786041705aaa832e8113Bob Halley # Shut up a -Wmissing-prototypes warning from <stdio.h>.
b67a66514e9778907586786041705aaa832e8113Bob Halley #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat >> confdefs.h <<\EOF
b67a66514e9778907586786041705aaa832e8113Bob Halley#define SHUTUP_SPUTAUX 1
b67a66514e9778907586786041705aaa832e8113Bob HalleyEOF
b67a66514e9778907586786041705aaa832e8113Bob Halley
b67a66514e9778907586786041705aaa832e8113Bob Halley ;;
b67a66514e9778907586786041705aaa832e8113Bob Halleyesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
b67a66514e9778907586786041705aaa832e8113Bob Halleycase "$hack_shutup_stdargcast" in
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff yes)
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff #
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # Shut up a -Wcast-qual warning from va_start().
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence #
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews cat >> confdefs.h <<\EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#define SHUTUP_STDARG_CAST 1
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceesac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Substitutions
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceBIND9_TOP_BUILDDIR=`pwd`
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif test "X$srcdir" != "X"; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_ISC_BUILDINCLUDE=""
b0ebef19b382c4bc19591bbd387fcd64fb5ecaf5Brian Wellington BIND9_DNS_BUILDINCLUDE=""
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews BIND9_OMAPI_BUILDINCLUDE=""
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence BIND9_LWRES_BUILDINCLUDE=""
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsfi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceBIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence. $srcdir/version
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark AndrewsBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBISC_API=$srcdir/lib/isc/api
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBDNS_API=$srcdir/lib/dns/api
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBLWRES_API=$srcdir/lib/lwres/api
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceLIBOMAPI_API=$srcdir/lib/omapi/api
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewstrap '' 1 2 15
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > confcache <<\EOF
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# This file is a shell script that caches the results of configure
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# tests run on this system so they can be shared between configure
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# scripts and configure runs. It is not useful on other systems.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# If it contains results you don't want to keep, you may remove or edit it.
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# By default, configure uses ./config.cache as the cache file,
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# creating it if it does not exist already. You can give configure
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# the --cache-file=FILE option to use a different cache file; that is
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# what configure does when it calls configure scripts in
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# subdirectories, so they share the cache.
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# Giving --cache-file=/dev/null disables caching, for debugging configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# config.status only pays attention to the cache file if you give it the
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# --recheck option to rerun configure.
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff#
8313838954d67250d0ed7edf67fba5da0790d1a7Michael GraffEOF
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# The following way of writing the cache mishandles newlines in values,
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# but we know of no workaround that is simple, portable, and efficient.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# So, don't put newlines in cache variables' values.
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# Ultrix sh set writes to stderr and can't be redirected directly,
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff# and sets the high bit in the cache file unless we assign to the vars.
8313838954d67250d0ed7edf67fba5da0790d1a7Michael Graff(set) 2>&1 |
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff case `(ac_space=' '; set | grep ac_space) 2>&1` in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *ac_space=\ *)
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews # `set' does not quote correctly, so add quotes (double-quote substitution
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # turns \\\\ into \\, and sed turns \\ into \).
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed -n \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -e "s/'/'\\\\''/g" \
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence # `set' quotes correctly as required by POSIX, so do not add quotes.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac >> confcache
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceif cmp -s $cache_file confcache; then
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence :
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceelse
163bf7444f140c9201cc093c31431a56d4665af7Michael Graff if test -w $cache_file; then
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff echo "updating cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence cat confcache > $cache_file
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence else
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "not updating unwritable cache $cache_file"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence fi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f confcache
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencetest "x$prefix" = xNONE && prefix=$ac_default_prefix
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# Let make expand exec_prefix.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Grafftest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# Any assignment to VPATH causes Sun make to only execute
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# the first set of double-colon rules, so remove it if not needed.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff# If there is a colon in the path, we need to keep it.
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graffif test "x$srcdir" = x.; then
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Graff ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Grafffi
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
ece3d6c35693f9e2145434b0bf14e8b752cdeee8Michael Grafftrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
b67a66514e9778907586786041705aaa832e8113Bob Halley
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceDEFS=-DHAVE_CONFIG_H
b06bc71d84698c480410478863d9b51589fa6d0cDavid Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Without the "./", some shells look in PATH for config.status.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence: ${CONFIG_STATUS=./config.status}
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceecho creating $CONFIG_STATUS
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencerm -f $CONFIG_STATUS
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat > $CONFIG_STATUS <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#! /bin/sh
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence# Generated automatically by configure.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Run this file to recreate the current configuration.
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# This directory was configured as follows,
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# $0 $ac_configure_args
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence#
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# Compiler output produced by configure, useful for debugging
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# configure, is in ./config.log if it exists.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencefor ac_option
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencedo
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence case "\$ac_option" in
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "$CONFIG_STATUS generated by autoconf version 2.13"
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence exit 0 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence -help | --help | --hel | --he | --h)
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence echo "\$ac_cs_usage"; exit 0 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence *) echo "\$ac_cs_usage"; exit 1 ;;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence esac
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencedone
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_srcdir=$srcdir
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrenceac_given_INSTALL="$INSTALL"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Grafftrap 'rm -fr `echo "make/rules
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews make/includes
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence make/Makefile
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff make/mkdep
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff lib/Makefile
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff lib/isc/Makefile
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff lib/isc/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/include/isc/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley lib/isc/include/isc/platform.h
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence lib/isc/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/unix/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/nls/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/isc/pthreads/include/isc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/include/dns/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews lib/dns/sec/openssl/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/openssl/include/openssl/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dnssafe/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dst/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/dns/sec/dst/include/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews lib/dns/sec/dst/include/dst/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley lib/dns/config/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/netdb.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/lwres/include/lwres/platform.h
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/omapi/include/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley lib/omapi/include/omapi/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley lib/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/include/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence lib/tests/include/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/named/unix/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/lwresd/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/rndc/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/dig/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/names/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/master/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/rbt/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews bin/tests/db/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/tasks/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/timers/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/dst/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/mem/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/net/Makefile
28ed3013196c373745dbde87b75a490148dab840Bob Halley bin/tests/sockaddr/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/tests/system/Makefile
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff bin/tests/system/conf.sh
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrence bin/tests/headerdep_test.sh
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence bin/dnssec/Makefile
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David LawrenceEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencecat >> $CONFIG_STATUS <<EOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence# Protect against being on the right side of a sed subst in config.status.
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrencesed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$ac_vpsub
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrence$extrasub
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@SHELL@%$SHELL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CFLAGS@%$CFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CPPFLAGS@%$CPPFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@CXXFLAGS@%$CXXFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@FFLAGS@%$FFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@DEFS@%$DEFS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LDFLAGS@%$LDFLAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@LIBS@%$LIBS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@exec_prefix@%$exec_prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@prefix@%$prefix%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@program_transform_name@%$program_transform_name%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@bindir@%$bindir%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@sbindir@%$sbindir%g
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrences%@libexecdir@%$libexecdir%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@datadir@%$datadir%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@sysconfdir@%$sysconfdir%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@sharedstatedir@%$sharedstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@localstatedir@%$localstatedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@libdir@%$libdir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@includedir@%$includedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@oldincludedir@%$oldincludedir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@infodir@%$infodir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@mandir@%$mandir%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@host@%$host%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@host_alias@%$host_alias%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@host_cpu@%$host_cpu%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@host_vendor@%$host_vendor%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@host_os@%$host_os%g
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrences%@SET_MAKE@%$SET_MAKE%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@RANLIB@%$RANLIB%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@INSTALL_DATA@%$INSTALL_DATA%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@STD_CINCLUDES@%$STD_CINCLUDES%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@STD_CDEFINES@%$STD_CDEFINES%g
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrences%@STD_CWARNINGS@%$STD_CWARNINGS%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@AR@%$AR%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@ARFLAGS@%$ARFLAGS%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@LN@%$LN%g
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffs%@ETAGS@%$ETAGS%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@PERL@%$PERL%g
a59b51eb1d9a80d682efc669414e16dc8da47e95David Lawrences%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
905e0c15332d3209dd73ff8b2334f6b80f7fe3a6David Lawrences%@dst_privateopenssl@%$dst_privateopenssl%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@CC@%$CC%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@YACC@%$YACC%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@CPP@%$CPP%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@MKDEPCC@%$MKDEPCC%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@MKDEPPROG@%$MKDEPPROG%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@build@%$build%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@build_alias@%$build_alias%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@build_cpu@%$build_cpu%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@build_vendor@%$build_vendor%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@build_os@%$build_os%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LD@%$LD%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@NM@%$NM%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LN_S@%$LN_S%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LIBTOOL@%$LIBTOOL%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@O@%$O%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@A@%$A%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@SA@%$SA%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@LWRES_PLATFORM_NEEDIN6ADDRANY@%$LWRES_PLATFORM_NEEDIN6ADDRANY%g
0e8da6dbd60e874ad3259ac3d29a0a6193e0f9f0David Lawrences%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_IPV6_H@%$ISC_IPV6_H%g
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewss%@ISC_IPV6_O@%$ISC_IPV6_O%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@ISC_IPV6_C@%$ISC_IPV6_C%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@LWRES_HAVE_SIN6_SCOPE_ID@%$LWRES_HAVE_SIN6_SCOPE_ID%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@ISC_PLATFORM_BRACEPTHREADONCEINIT@%$ISC_PLATFORM_BRACEPTHREADONCEINIT%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@BIND9_INCLUDES@/r $BIND9_INCLUDES
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_INCLUDES@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_MAKE_RULES@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@BIND9_VERSION@%$BIND9_VERSION%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@LIBISC_API@/r $LIBISC_API
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@LIBISC_API@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@LIBDNS_API@/r $LIBDNS_API
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@LIBDNS_API@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@LIBLWRES_API@/r $LIBLWRES_API
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewss%@LIBLWRES_API@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews/@LIBOMAPI_API@/r $LIBOMAPI_API
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewss%@LIBOMAPI_API@%%g
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark AndrewsCEOF
affd6c025b39ec89a91056efb084fff7239ad6e3Mark AndrewsEOF
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewscat >> $CONFIG_STATUS <<\EOF
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# Split the substitutions into bite-sized pieces for seds with
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# small command number limits, like on Digital OSF/1 and HP-UX.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsac_file=1 # Number of current file.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsac_beg=1 # First line for current file.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsac_end=$ac_max_sed_cmds # Line after last line for current file.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsac_more_lines=:
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyac_sed_cmds=""
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewswhile $ac_more_lines; do
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews if test $ac_beg -gt 1; then
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrews sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrews else
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley sed "${ac_end}q" conftest.subs > conftest.s$ac_file
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews fi
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews if test ! -s conftest.s$ac_file; then
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ac_more_lines=false
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff rm -f conftest.s$ac_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson if test -z "$ac_sed_cmds"; then
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley ac_sed_cmds="sed -f conftest.s$ac_file"
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley else
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews fi
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ac_file=`expr $ac_file + 1`
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ac_beg=$ac_end
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ac_end=`expr $ac_end + $ac_max_sed_cmds`
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews fi
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsdone
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrewsif test -z "$ac_sed_cmds"; then
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ac_sed_cmds=cat
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsfi
8a1930d026517e4733d680ac51abeb01353332c4Mark AndrewsEOF
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewscat >> $CONFIG_STATUS <<EOF
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews
8a1930d026517e4733d680ac51abeb01353332c4Mark AndrewsCONFIG_FILES=\${CONFIG_FILES-"make/rules
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews make/includes
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews make/Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews make/mkdep
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/isc/Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/isc/include/Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/isc/include/isc/Makefile
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/isc/include/isc/platform.h
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews lib/isc/unix/Makefile
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley lib/isc/unix/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/isc/unix/include/isc/Makefile
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence lib/isc/nls/Makefile
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence lib/isc/pthreads/Makefile
90839d60d218503da04c4a0bfe57a81c33aa2241David Lawrence lib/isc/pthreads/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/isc/pthreads/include/isc/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews lib/dns/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/include/dns/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/openssl/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews lib/dns/sec/openssl/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/openssl/include/openssl/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/dnssafe/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/dst/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/dst/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/sec/dst/include/dst/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/dns/config/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/lwres/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/lwres/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/lwres/include/lwres/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/lwres/include/lwres/netdb.h
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/lwres/include/lwres/platform.h
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/omapi/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/omapi/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/omapi/include/omapi/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/tests/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/tests/include/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley lib/tests/include/tests/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/named/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/named/unix/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/lwresd/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/rndc/Makefile
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews bin/dig/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/names/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/master/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/rbt/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/db/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/tasks/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/timers/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/dst/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/mem/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/net/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/sockaddr/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/system/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/system/conf.sh
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/tests/headerdep_test.sh
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley bin/dnssec/Makefile
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley"}
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleycat >> $CONFIG_STATUS <<\EOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley case "$ac_file" in
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley *) ac_file_in="${ac_file}.in" ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley esac
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # Remove last slash and all that follows it. Not all systems have dirname.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # The file is in a subdirectory.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley test ! -d "$ac_dir" && mkdir "$ac_dir"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # A "../" for each directory in $ac_dir_suffix.
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley else
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ac_dir_suffix= ac_dots=
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley fi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley case "$ac_given_srcdir" in
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley .) srcdir=.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley if test -z "$ac_dots"; then top_srcdir=.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley *) # Relative path.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley top_srcdir="$ac_dots$ac_given_srcdir" ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley esac
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley case "$ac_given_INSTALL" in
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley [/$]*) INSTALL="$ac_given_INSTALL" ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley esac
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graff echo creating "$ac_file"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -f "$ac_file"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley case "$ac_file" in
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley *Makefile*) ac_comsub="1i\\
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# $configure_input" ;;
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley *) ac_comsub= ;;
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley esac
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews sed -e "$ac_comsub
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleys%@configure_input@%$configure_input%g
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleys%@srcdir@%$srcdir%g
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleys%@top_srcdir@%$top_srcdir%g
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleys%@INSTALL@%$INSTALL%g
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyfi; done
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyrm -f conftest.s*
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# NAME is the cpp macro being defined and VALUE is the value it is being given.
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley#
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# ac_d sets the value in "#define NAME VALUE" lines.
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_dC='\3'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_dD='%g'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_uB='\([ ]\)%\1#\2define\3'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_uC=' '
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_uD='\4%g'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_eB='$%\1#\2define\3'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_eC=' '
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyac_eD='%g'
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyif test "${CONFIG_HEADERS+set}" != set; then
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob HalleyEOF
6a976322f097bce06ef164f9bf99e51c5df1827bMichael Graffcat >> $CONFIG_STATUS <<EOF
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halley CONFIG_HEADERS="config.h"
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob HalleyEOF
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleycat >> $CONFIG_STATUS <<\EOF
134ba0e08a0ae9a564a8d8628fc633377d3fc239Bob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence case "$ac_file" in
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence *) ac_file_in="${ac_file}.in" ;;
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews esac
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews echo creating $ac_file
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence rm -f conftest.frag conftest.in conftest.out
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence cat $ac_file_inputs > conftest.in
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David LawrenceEOF
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# Transform confdefs.h into a sed script conftest.vals that substitutes
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# the proper values into config.h.in to produce config.h. And first:
19cfe6a53b6b932a375299ff8d82dbd66e54b5fdMark Andrews# Protect against being on the right side of a sed subst in config.status.
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# Protect against being in an unquoted here document in config.status.
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencerm -f conftest.vals
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencecat > conftest.hdr <<\EOF
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrences/[\\&%]/\\&/g
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrences%[\\$`]%\\&%g
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrences%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrences%ac_d%ac_u%gp
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrences%ac_u%ac_e%gp
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David LawrenceEOF
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencesed -n -f conftest.hdr confdefs.h > conftest.vals
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencerm -f conftest.hdr
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# This sed command replaces #undef with comments. This is necessary, for
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# example, in the case of _POSIX_SOURCE, which is predefined and required
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrence# on some systems where configure will not decide to define it.
17012a879742ceb6561dcc4ae3bcd4ff80dc9887David Lawrencecat >> conftest.vals <<\EOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrences%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid LawrenceEOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence# Break up conftest.vals because some shells have a limit on
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence# the size of here documents, and old seds have small limits too.
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencerm -f conftest.tail
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencewhile :
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencedo
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ac_lines=`grep -c . conftest.vals`
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # grep -c gives empty output for an empty file on some AIX systems.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Write a limited-size here document to conftest.frag.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence echo 'CEOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence sed -f conftest.frag conftest.in > conftest.out
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f conftest.in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence mv conftest.out conftest.in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence' >> $CONFIG_STATUS
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f conftest.vals
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence mv conftest.tail conftest.vals
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencedone
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencerm -f conftest.vals
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencecat >> $CONFIG_STATUS <<\EOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f conftest.frag conftest.h
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence cat conftest.in >> conftest.h
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f conftest.in
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence if cmp -s $ac_file conftest.h 2>/dev/null; then
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence echo "$ac_file is unchanged"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f conftest.h
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence else
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # Remove last slash and all that follows it. Not all systems have dirname.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence # The file is in a subdirectory.
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence test ! -d "$ac_dir" && mkdir "$ac_dir"
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence fi
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence rm -f $ac_file
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence mv conftest.h $ac_file
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence fi
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencefi; done
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David LawrenceEOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrencecat >> $CONFIG_STATUS <<EOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid LawrenceEOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrencecat >> $CONFIG_STATUS <<\EOF
8b11f3debd9a9494d5aec60ea228ab393fbdc26eDavid Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrenceexit 0
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David LawrenceEOF
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencechmod +x $CONFIG_STATUS
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencerm -fr confdefs* $ac_clean_files
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrencetest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence
ed71ea51c6ecb5d7d659b6e6a20f6b3f5c2678c6David Lawrence