configure revision bcea9925141b1e0076cd7b078f1dae1449a1229b
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# From configure.in Revision: 1.141
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Copyright (C) 1996-1999 Free Software Foundation, Inc.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is free software; you can redistribute it and/or modify
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## it under the terms of the GNU General Public License as published by
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## the Free Software Foundation; either version 2 of the License, or
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## (at your option) any later version.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## This program is distributed in the hope that it will be useful, but
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## General Public License for more details.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## You should have received a copy of the GNU General Public License
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## along with this program; if not, write to the Free Software
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley##
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
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# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Guess values for system-dependent variables and create Makefiles.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Generated automatically using autoconf version 2.13
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This configure script is free software; the Free Software Foundation
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# gives unlimited permission to copy, distribute and modify it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Defaults:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_help=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_default_prefix=/usr/local
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# Any additions from configure.in:
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceac_help="$ac_help
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson --with-ptl2 on NetBSD, use the ptl2 thread library (experimental)"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-libtool use GNU libtool (following indented options supported)"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-shared[=PKGS] build shared libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-static[=PKGS] build static libraries [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley --disable-libtool-lock avoid locking (might break parallel builds)"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_help="$ac_help
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence --enable-ipv6 use IPv6 [default=autodetect]"
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonac_help="$ac_help
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Initialize some variables set by options.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# The variables have the same names as the options, with
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# dashes changed to underlines.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybuild=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycache_file=./config.cache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyexec_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyhost=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_create=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleynonopt=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyno_recursion=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_prefix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_suffix=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyprogram_transform_name=s,x,x,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysilent=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysite=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysrcdir=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytarget=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyverbose=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_includes=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyx_libraries=NONE
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleybindir='${exec_prefix}/bin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysbindir='${exec_prefix}/sbin'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleylibexecdir='${exec_prefix}/libexec'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydatadir='${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}
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycross_compiling=$ac_cv_prog_cc_cross
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_exeext=
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_objext=o
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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 :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:671: checking host system type" >&5
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid 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 :
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:693: checking whether ${MAKE-make} sets \${MAKE}" >&5
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo $ac_n "(cached) $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff cat > conftestmake <<\EOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffall:
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff @echo 'ac_maketemp="${MAKE}"'
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael GraffEOF
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif test -n "$ac_maketemp"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=yes
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff eval ac_cv_prog_make_${ac_make}_set=no
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffrm -f conftestmake
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""yes" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE=
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffelse
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "$ac_t""no" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff SET_MAKE="MAKE=${MAKE-make}"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# Extract the first word of "ranlib", so it can be a program name with args.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffset dummy ranlib; ac_word=$2
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:722: checking for $ac_word" >&5
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceif 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=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $ac_dummy; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley 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),
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# 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
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff# ./install, which can be erroneously created by make from ./install.sh.
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "configure:761: checking for a BSD compatible install" >&5
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceif 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=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley 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
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # by default.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_prog in ginstall scoinst install; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley 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
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff ;;
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff esac
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff done
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff IFS="$ac_save_IFS"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff if test "${ac_cv_path_install+set}" = set; then
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff 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"
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff fi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Grafffi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffecho "$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}'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -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
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence case "$AR" in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence /*)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ?:/*)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence *)
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_dummy="$PATH"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence for ac_dir in $ac_dummy; do
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence test -z "$ac_dir" && ac_dir=.
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence if test -f $ac_dir/$ac_word; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ac_cv_path_AR="$ac_dir/$ac_word"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence break
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence fi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence done
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence IFS="$ac_save_ifs"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence ;;
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceesac
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceAR="$ac_cv_path_AR"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceif test -n "$AR"; then
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""$AR" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_t""no" 1>&6
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencefi
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid LawrenceARFLAGS="cruv"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencecase "$AR" in
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence "")
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence { echo "configure: error:
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrencear program not found. Please fix your PATH to include the directory in
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffwhich ar resides, or set AR in the environment with the full path to ar.
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff" 1>&2; exit 1; }
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graffesac
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencefor ac_prog in etags emacs-etags
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrencedo
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence# Extract the first word of "$ac_prog", so it can be a program name with args.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceset dummy $ac_prog; ac_word=$2
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceecho "configure:872: checking for $ac_word" >&5
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrenceelse
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence case "$ETAGS" in
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence /*)
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ;;
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ?:/*)
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a dos path.
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ;;
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff *)
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_dummy="$PATH"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff for ac_dir in $ac_dummy; do
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff test -z "$ac_dir" && ac_dir=.
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff if test -f $ac_dir/$ac_word; then
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff ac_cv_path_ETAGS="$ac_dir/$ac_word"
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff break
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff fi
657ce0b9d84fbd66514df53d61a087e8f1161187Michael Graff done
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson IFS="$ac_save_ifs"
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonesac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonfi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas GustafssonETAGS="$ac_cv_path_ETAGS"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceif test -n "$ETAGS"; then
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson echo "$ac_t""$ETAGS" 1>&6
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonelse
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson echo "$ac_t""no" 1>&6
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonfi
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssontest -n "$ETAGS" && break
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssondone
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# Special processing of paths depending on whether --prefix,
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# --sysconfdir or --localstatedir arguments were given. What's
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# desired is some compatability with the way previous versions
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# of BIND built; they defaulted to /usr/local for most parts of
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# the installation, but named.boot/named.conf was in /etc
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# and named.pid was in /var/run.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# So ... if none of --prefix, --sysconfdir or --localstatedir are
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# specified, set things up that way. If --prefix is given, use
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# it for sysconfdir and localstatedir the way configure normally
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# would. To change the prefix for everything but leave named.conf
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# in /etc or named.pid in /var/run, then do this the usual configure way:
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# ./configure --prefix=/somewhere --sysconfdir=/etc
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# ./configure --prefix=/somewhere --localstatedir=/var
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# To put named.conf and named.pid in /usr/local with everything else,
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# set the prefix explicitly to /usr/local even though that's the default:
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# ./configure --prefix=/usr/local
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssoncase "$prefix" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson NONE)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson case "$sysconfdir" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson '${prefix}/etc')
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson sysconfdir=/etc
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson esac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson case "$localstatedir" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson '${prefix}/var')
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson localstatedir=/var
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson esac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonesac
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson
2c7e99b941c3f1ffa29f9034c710f358c09f13c9Michael Graff#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# Make sure INSTALL uses an absolute path, else it will be wrong in all
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# configure based on the location of the file where it is substituted.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# subdirectory of install-sh, This relative path will be wrong for all
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson# directories more than one level down from install-sh.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson#
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssoncase "$INSTALL" in
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson /*)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson ;;
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson *)
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson #
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson # Not all systems have dirname.
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafsson #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test "$ac_dir" = "$ac_prog" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley INSTALL="$ac_dir/$ac_prog"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# On these hosts, we really want to use cc, not gcc, even if it is
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# found. The gcc that these systems have will not correctly handle
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# pthreads.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# However, if the user sets $CC to be something, let that override
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# our change.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "X$CC" = "X" ; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$host" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-dec-osf*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-solaris*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Use Sun's cc if it is available, but watch
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # out for /usr/ucb/cc; it will never be the right
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # compiler to use.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # If setting CC here fails, the AC_PROG_CC done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # below might still find gcc.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley for ac_dir in $PATH; do
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "$ac_dir" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley /usr/ucb)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # exclude
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f "$ac_dir/cc"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CC="$ac_dir/cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *-hp-hpux*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley mips-sgi-irix*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If the user didn't specify where openssl is, and we didn't find or it
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# is imcompatible with our code, use our internal one.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# XXXMLG Implement this check!
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for compatible OpenSSL library""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1022: checking for compatible OpenSSL library" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydst_privateopenssl='openssl'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDST_OPENSSL_INC='-I${srcdir}/../openssl/include'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDST_OPENSSL_LIB=''
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDST_OPENSSL_OBJS='${OPENSSLOBJS}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "$ac_t""using private library" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# This would include the system openssl path (and linker options to use
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# it as needed) if it is found.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyDNS_OPENSSL_LIBS=""
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# testing with alternate openssl libraries... XXXMLG
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# DNS_OPENSSL_LIBS="-L/usr/pkg/lib -lssl -lcrypto"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# DST_PRIVATEOPENSSL=''
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# dst_privateopenssl=''
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# DST_OPENSSL_INC='-I/usr/pkg/include'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# DST_OPENSSL_LIB=''
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# NetBSD has multiple pthreads implementations. The recommended
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# one to use is "unproven-pthreads". The older "mit-pthreads"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# may also work on some NetBSD versions. The PTL2 thread
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# library does not currently work with bind9, but can be
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# chosen with the --with-ptl2 option for those who wish to
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# experiment with it.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$host" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *-netbsd*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CC="gcc"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1068: checking which NetBSD thread library to use" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check whether --with-ptl2 or --without-ptl2 was given.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "${with_ptl2+set}" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley withval="$with_ptl2"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley use_ptl2="$withval"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews use_ptl2="no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley : ${LOCALBASE:=/usr/pkg}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "X$use_ptl2" = "Xyes"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""PTL2" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: warning: linking with PTL2 is highly experimental and not expected to work" 1>&2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley CC=ptlgcc
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""mit-pthreads/unproven-pthreads" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test ! -d $LOCALBASE/pthreads
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews { echo "configure: error: no thread library found.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyPlease install the devel/unproven-pthreads package and rerun configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley" 1>&2; exit 1; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley pkg="$LOCALBASE/pthreads"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib1="-L$pkg/lib -Wl,-R$pkg/lib"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib2="-lpthread -lm -lgcc -lpthread"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley LIBS="$lib1 $lib2 $LIBS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPPFLAGS="$CPPFLAGS -I$pkg/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Extract the first word of "gcc", so it can be a program name with args.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyset dummy gcc; ac_word=$2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1110: 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="$CC" # Let the user override the test.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews 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
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ac_cv_prog_CC="gcc"
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
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews echo "$ac_t""$CC" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CC"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Extract the first word of "cc", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy cc; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1140: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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=":"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_prog_rejected=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_dummy="$PATH"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews 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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_prog_rejected=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley continue
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CC="cc"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley done
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley IFS="$ac_save_ifs"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_prog_rejected = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # We found a bogon in the path, so make sure we never use it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley set dummy $ac_cv_prog_CC
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley shift
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test $# -gt 0; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # We chose a different compiler from the bogus one.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # However, it has the same basename, so the bogon will be chosen
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # first if we set CC to just the basename; use the full file name.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley set dummy "$ac_dir/$ac_word" "$@"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley shift
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ac_cv_prog_CC="$@"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyCC="$ac_cv_prog_CC"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""$CC" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -z "$CC"; then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews case "`uname -s`" in
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister *win32* | *WIN32*)
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister # Extract the first word of "cl", so it can be a program name with args.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy cl; ac_word=$2
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1191: checking for $ac_word" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CC="$CC" # Let the user override the test.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_dummy="$PATH"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister for ac_dir in $ac_dummy; do
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister test -z "$ac_dir" && ac_dir=.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister if test -f $ac_dir/$ac_word; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_cv_prog_CC="cl"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister fi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister done
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister IFS="$ac_save_ifs"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerCC="$ac_cv_prog_CC"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif test -n "$CC"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""$CC" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley 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:1223: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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 Halleycat > conftest.$ac_ext << EOF
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1234 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleymain(){return(0);}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsif { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ac_cv_prog_cc_works=no
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -fr conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_ext=c
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_cpp='$CPP $CPPFLAGS'
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsac_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'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycross_compiling=$ac_cv_prog_cc_cross
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test $ac_cv_prog_cc_works = no; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1265: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewscross_compiling=$ac_cv_prog_cc_cross
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:1270: 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
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewselse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.c <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#ifdef __GNUC__
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley yes;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_gcc=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_gcc" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test $ac_cv_prog_gcc = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley GCC=yes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley GCC=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_test_CFLAGS="${CFLAGS+set}"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_save_CFLAGS="$CFLAGS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyCFLAGS=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsecho "configure:1298: 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo 'void f(){}' > conftest.c
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsif 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "$ac_test_CFLAGS" = set; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="$ac_save_CFLAGS"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelif test $ac_cv_prog_cc_g = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test "$GCC" = yes; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CFLAGS="-g -O2"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley 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
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
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.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyset dummy $ac_prog; ac_word=$2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1334: checking for $ac_word" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley test -z "$ac_dir" && ac_dir=.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley if test -f $ac_dir/$ac_word; then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ac_cv_prog_YACC="$ac_prog"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley break
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
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:1366: checking how to run the C preprocessor" >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews# On Suns, sometimes $CPP names a directory.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -n "$CPP" && test -d "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$CPP"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # This must be in double quotes, not single quotes, because CPP may get
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # substituted into the Makefile and "${CC-cc}" will confuse make.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews # 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 1381 "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:1387: \"$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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -E -traditional-cpp"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1398 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid LawrenceSyntax Error
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test -z "$ac_err"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="${CC-cc} -nologo -E"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#line 1415 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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:1421: \"$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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_err" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP=/lib/cpp
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley CPP="$ac_cv_prog_CPP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_prog_CPP="$CPP"
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrencefi
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrenceecho "$ac_t""$CPP" 1>&6
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrenceecho "configure:1446: checking for ANSI C header files" >&5
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrenceif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence echo $ac_n "(cached) $ac_c" 1>&6
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyelse
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence cat > conftest.$ac_ext <<EOF
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence#line 1451 "configure"
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence#include "confdefs.h"
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence#include <stdlib.h>
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley#include <stdarg.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley#include <float.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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 1476 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <string.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "memchr" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1494 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <stdlib.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley egrep "free" >/dev/null 2>&1; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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 :
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1515 "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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1526: \"$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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob 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
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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:1554: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif 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 1559 "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:1564: \"$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
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley eval "ac_cv_header_$ac_safe=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob 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:1592: checking for working const" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_c_const'+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 1597 "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;
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley/* SunOS 4.1.1 cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar const *const *ccp;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar **p;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* NEC SVR4.0.2 mips cc rejects this. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystruct point {int x, y;};
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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;
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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];
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++foo;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley typedef const int *iptr;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley iptr p = 0;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ++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]; };
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley struct s *b; b->j = 5;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley const int foo = 10;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob 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
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyif test $ac_cv_c_const = no; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define const
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for inline""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:1667: 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
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=no
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_kw in inline __inline__ __inline; do
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 1674 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley} $ac_kw foo() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:1681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -rf conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_cv_c_inline=$ac_kw; break
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley echo "configure: failed program was:" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat conftest.$ac_ext >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleydone
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyecho "$ac_t""$ac_cv_c_inline" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleycase "$ac_cv_c_inline" in
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley inline | yes) ;;
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley no) cat >> confdefs.h <<\EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define inline
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ;;
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley *) cat >> confdefs.h <<EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define inline $ac_cv_c_inline
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley ;;
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyesac
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho $ac_n "checking for size_t""... $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho "configure:1707: checking for size_t" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyelse
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat > conftest.$ac_ext <<EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#line 1712 "configure"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include "confdefs.h"
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#include <sys/types.h>
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#if STDC_HEADERS
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include <stdlib.h>
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include <stddef.h>
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#endif
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_cv_type_size_t=yes
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_cv_type_size_t=no
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyrm -f conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyecho "$ac_t""$ac_cv_type_size_t" 1>&6
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyif test $ac_cv_type_size_t = no; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat >> confdefs.h <<\EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#define size_t unsigned
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyecho "configure:1740: checking whether time.h and sys/time.h may both be included" >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat > conftest.$ac_ext <<EOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#line 1745 "configure"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include "confdefs.h"
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include <sys/types.h>
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include <sys/time.h>
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley#include <time.h>
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyint main() {
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleystruct tm *tp;
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley; return 0; }
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob HalleyEOF
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyif { (eval echo configure:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_cv_header_time=yes
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyelse
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley echo "configure: failed program was:" >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley cat conftest.$ac_ext >&5
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley rm -rf conftest*
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halley ac_cv_header_time=no
7c0876aa42e6abaa8779bcb83962ccf20a9f4da3Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyrm -f conftest*
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho "$ac_t""$ac_cv_header_time" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyif test $ac_cv_header_time = yes; then
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley cat >> confdefs.h <<\EOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley#define TIME_WITH_SYS_TIME 1
a2171e092382f8f8a72b1f73436ddf93918c7719Bob HalleyEOF
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyfi
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halley
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyecho "configure:1776: checking for pthread_create in -lpthread" >&5
a2171e092382f8f8a72b1f73436ddf93918c7719Bob Halleyac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
a2171e092382f8f8a72b1f73436ddf93918c7719Bob 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
491b48ec3f3ef014312688776ddbd4eab8a2c10cMichael Graff ac_save_LIBS="$LIBS"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyLIBS="-lpthread $LIBS"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleycat > conftest.$ac_ext <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#line 1784 "configure"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include "confdefs.h"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister/* We use char because int might match the return type of a gcc2
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister builtin and then its argument prototype would still apply. */
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerchar pthread_create();
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerint main() {
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerpthread_create()
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister; return 0; }
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister eval "ac_cv_lib_$ac_lib_var=yes"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister rm -rf conftest*
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister eval "ac_cv_lib_$ac_lib_var=no"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerrm -f conftest*
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyLIBS="$ac_save_LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""yes" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat >> confdefs.h <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#define $ac_tr_lib 1
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerEOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister LIBS="-lpthread $LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerecho "configure:1821: checking for __pthread_create in -lpthread" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister echo $ac_n "(cached) $ac_c" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerelse
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister ac_save_LIBS="$LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames BristerLIBS="-lpthread $LIBS"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristercat > conftest.$ac_ext <<EOF
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#line 1829 "configure"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister#include "confdefs.h"
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister/* Override any gcc2 internal prototype to avoid an error. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* We use char because int might match the return type of a gcc2
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley builtin and then its argument prototype would still apply. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleychar __pthread_create();
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerint main() {
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence__pthread_create()
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley; return 0; }
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceEOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=yes"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "configure: failed program was:" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence cat conftest.$ac_ext >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencerm -f conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceLIBS="$ac_save_LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""yes" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley cat >> confdefs.h <<EOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#define $ac_tr_lib 1
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David LawrenceEOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence LIBS="-lpthread $LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceelse
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo "$ac_t""no" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencefi
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:1868: checking for __pthread_create_system in -lpthread" >&5
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceac_lib_var=`echo pthread'_'__pthread_create_system | 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="-lpthread $LIBS"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencecat > conftest.$ac_ext <<EOF
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#line 1876 "configure"
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob 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 __pthread_create_system();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley__pthread_create_system()
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyif { (eval echo configure:1887: \"$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
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="$ac_save_LIBS"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob 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 pthread | 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="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley# We'd like to use sigwait() too
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyecho "configure:1922: checking for sigwait in -lc" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyLIBS="-lc $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 1930 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar sigwait();
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyint main() {
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleysigwait()
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley; return 0; }
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif { (eval echo configure:1941: \"$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
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 cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrenceecho "configure:1963: checking for sigwait in -lpthread" >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley ac_save_LIBS="$LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyLIBS="-lpthread $LIBS"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleycat > conftest.$ac_ext <<EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#line 1971 "configure"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#include "confdefs.h"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley/* We use char because int might match the return type of a gcc2
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley builtin and then its argument prototype would still apply. */
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleychar sigwait();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleysigwait()
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley rm -rf conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley eval "ac_cv_lib_$ac_lib_var=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_lib_$ac_lib_var=no"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyrm -f conftest*
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyLIBS="$ac_save_LIBS"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyfi
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""yes" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat >> confdefs.h <<\EOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#define HAVE_SIGWAIT 1
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""no" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyecho "configure:2004: checking for _Psigwait in -lpthread" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo $ac_n "(cached) $ac_c" 1>&6
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley ac_save_LIBS="$LIBS"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyLIBS="-lpthread $LIBS"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleycat > conftest.$ac_ext <<EOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#line 2012 "configure"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley#include "confdefs.h"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley/* We use char because int might match the return type of a gcc2
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley builtin and then its argument prototype would still apply. */
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleychar _Psigwait();
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyint main() {
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley_Psigwait()
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley; return 0; }
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob HalleyEOF
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyif { (eval echo configure:2023: \"$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_lib_$ac_lib_var=yes"
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleyelse
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "configure: failed program was:" >&5
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley cat conftest.$ac_ext >&5
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley rm -rf conftest*
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence eval "ac_cv_lib_$ac_lib_var=no"
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyfi
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyrm -f conftest*
50453ad879d0d93854de5a3385776bd799e8f35cBob HalleyLIBS="$ac_save_LIBS"
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley
50453ad879d0d93854de5a3385776bd799e8f35cBob Halleyfi
50453ad879d0d93854de5a3385776bd799e8f35cBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley echo "$ac_t""yes" 1>&6
50453ad879d0d93854de5a3385776bd799e8f35cBob Halley cat >> confdefs.h <<\EOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley#define HAVE_SIGWAIT 1
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob HalleyEOF
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halleyelse
8d4257cff01b3821abcb9a21f46c6c6a43bb1e72Bob Halley echo "$ac_t""no" 1>&6
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Bristerfi
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Grafffi
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff
882350d11c90de9de6fc1cead25690c8114b0b95Michael Grafffi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley# Additional OS-specific issues related to pthreads and sigwait.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycase "$host" in
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # One more place to look for sigwait.
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-freebsd*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho "configure:2061: checking for sigwait in -lc_r" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo $ac_n "(cached) $ac_c" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ac_save_LIBS="$LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="-lc_r $LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleycat > conftest.$ac_ext <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#line 2069 "configure"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#include "confdefs.h"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* Override any gcc2 internal prototype to avoid an error. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley/* We use char because int might match the return type of a gcc2
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley builtin and then its argument prototype would still apply. */
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleychar sigwait();
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyint main() {
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleysigwait()
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley; return 0; }
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=yes"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff echo "configure: failed program was:" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat conftest.$ac_ext >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley rm -rf conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley eval "ac_cv_lib_$ac_lib_var=no"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyrm -f conftest*
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBS="$ac_save_LIBS"
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""yes" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#define HAVE_SIGWAIT 1
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyelse
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""no" 1>&6
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyfi
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley # BSDI 3.1 through 4.0.1 needs pthread_init() to be called before
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # certain pthreads calls. This is deprecated in BSD/OS 4.1.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-bsdi3.1*|*-bsdi4.0*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define NEED_PTHREAD_INIT 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # LinuxThreads requires some changes to the way we deal with signals.
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-linux*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define HAVE_LINUXTHREADS 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # Ensure the right sigwait() semantics on Solaris.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-solaris*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define _POSIX_PTHREAD_SEMANTICS 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
ffea097efa5b9d6a0d5e8ed43d98c29de3fa5b8dMichael Graff ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley # UnixWare does things its own way.
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley #
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley *-UnixWare*)
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley cat >> confdefs.h <<\EOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley#define HAVE_UNIXWARE_SIGWAIT 1
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyEOF
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley ;;
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyesac
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff#
882350d11c90de9de6fc1cead25690c8114b0b95Michael Graff# NLS
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyecho $ac_n "checking for catgets""... $ac_c" 1>&6
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyecho "configure:2147: checking for catgets" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley cat > conftest.$ac_ext <<EOF
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley#line 2152 "configure"
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley#include "confdefs.h"
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley/* System header to define __stub macros and hopefully few prototypes,
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley which can conflict with char catgets(); below. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include <assert.h>
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* We use char because int might match the return type of a gcc2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley builtin and then its argument prototype would still apply. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar catgets();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* The GNU C library defines this for functions which it implements
b2d7494643d133f541d496eb0558d45eca2d6fa8Bob Halley to always fail with ENOSYS. Some functions are actually named
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley something starting with __ and the normal name is an alias. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#if defined (__stub_catgets) || defined (__stub___catgets)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychoke me
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#else
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleycatgets();
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
be79345c2848c2cd2cc7cb0d67eedfbc59bce213Bob HalleyEOF
0886b450e7268dabc382247637dc8ba17da12109Bob Halleyif { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_catgets=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley cat conftest.$ac_ext >&5
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley rm -rf conftest*
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley eval "ac_cv_func_catgets=no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
194b6a25192581bbc8ec731e32e8989042b202a4Michael Grafffi
a30e7fc23415fd238d067a8a871607bca36068baMichael Graff
a30e7fc23415fd238d067a8a871607bca36068baMichael Graffif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
a30e7fc23415fd238d067a8a871607bca36068baMichael Graff echo "$ac_t""yes" 1>&6
a30e7fc23415fd238d067a8a871607bca36068baMichael Graff cat >> confdefs.h <<\EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define HAVE_CATGETS 1
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley echo "$ac_t""no" 1>&6
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halleyfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley#
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley# -lxnet buys us one big porting headache... standards, gotta love 'em.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley# AC_CHECK_LIB(xnet, socket, ,
f95dfb12a71564c3e8d53c5462dfd764efe357c2Bob Halley# AC_CHECK_LIB(socket, socket)
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley# AC_CHECK_LIB(nsl, inet_ntoa)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# )
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Use this for now, instead:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleycase "$host" in
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley mips-sgi-irix*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley *)
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halley echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2213: checking for socket in -lsocket" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_save_LIBS="$LIBS"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyLIBS="-lsocket $LIBS"
83fc3f78a2126fc9ebdf190a8103d561c7f0713aBob Halleycat > conftest.$ac_ext <<EOF
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#line 2221 "configure"
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley#include "confdefs.h"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff/* Override any gcc2 internal prototype to avoid an error. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* We use char because int might match the return type of a gcc2
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff builtin and then its argument prototype would still apply. */
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleychar socket();
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffint main() {
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffsocket()
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff; return 0; }
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael GraffEOF
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffif { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff rm -rf conftest*
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff eval "ac_cv_lib_$ac_lib_var=yes"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyelse
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff echo "configure: failed program was:" >&5
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff cat conftest.$ac_ext >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley rm -rf conftest*
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff eval "ac_cv_lib_$ac_lib_var=no"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Grafffi
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffrm -f conftest*
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael GraffLIBS="$ac_save_LIBS"
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyfi
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graffif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff echo "$ac_t""yes" 1>&6
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4c5faa6bcf41d8ba253b872a04105a2fcc88c07bMichael Graff -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence cat >> confdefs.h <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#define $ac_tr_lib 1
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David LawrenceEOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence LIBS="-lsocket $LIBS"
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence
6c327669ba1d9eca870572b930c46f43e781d4a3Andreas Gustafssonelse
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence echo "$ac_t""no" 1>&6
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrencefi
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrenceecho "configure:2260: checking for inet_ntoa in -lnsl" >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrenceif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyelse
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence ac_save_LIBS="$LIBS"
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David LawrenceLIBS="-lnsl $LIBS"
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrencecat > conftest.$ac_ext <<EOF
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence#line 2268 "configure"
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence#include "confdefs.h"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence/* We use char because int might match the return type of a gcc2
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence builtin and then its argument prototype would still apply. */
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrencechar inet_ntoa();
8671e8306b3f18abf0e19c2fb9d49205962e7ab7David Lawrence
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyinet_ntoa()
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley eval "ac_cv_lib_$ac_lib_var=no"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsLIBS="$ac_save_LIBS"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat >> confdefs.h <<EOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#define $ac_tr_lib 1
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsEOF
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews LIBS="-lnsl $LIBS"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewselse
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley echo "$ac_t""no" 1>&6
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsfi
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsesac
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsMKDEPCC="$CC"
40f24178432de09181bc603cc90110546a0ddca2Mark AndrewsMKDEPCFLAGS="-M"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyIRIX_DNSSEC_WARNINGS_HACK=""
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsif test "X$GCC" = "Xyes"; then
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews case "$host" in
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-freebsd*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews CC="$CC -pthread"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-openbsd*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews CC="$CC -pthread"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-solaris*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews LIBS="$LIBS -lthread"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-ibm-aix*)
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley esac
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewselse
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews case "$host" in
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-dec-osf*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews CC="$CC -std -pthread"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews MKDEPCC="$CC"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-solaris*)
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley CC="$CC -mt"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews MKDEPCC="$CC"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews MKDEPCFLAGS="-xM"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-hp-hpux*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews CC="$CC -Ae -z +w1"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews LIBS="-Wl,+vnocompatwarnings $LIBS"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews ;;
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews *-sgi-irix*)
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews STD_CWARNINGS="-fullwarn -woff 1209"
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews #
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews # Silence more than 250 instances of
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews # "prototyped function redeclared without prototype"
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews # and 11 instances of
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley # "variable ... was set but never used"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews # from lib/dns/sec/{dnssafe,openssl}.
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley #
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews ;;
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews *-ibm-aix*)
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews ;;
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews *-UnixWare*)
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews CC="$CC -Kthread -w"
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews MKDEPCC="$CC"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley YACC="yacc" # bison calls alloca, avoid on UnixWare
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews ;;
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews esac
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewsfi
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews# Networking specifics.
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrewscase "$host" in
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews *-dec-osf*)
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews # Turn on 4.4BSD style sa_len support.
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley cat >> confdefs.h <<\EOF
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews#define _SOCKADDR_LEN 1
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyEOF
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews ;;
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsesac
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews# Look for a 4.4BSD-style sa_len member in struct sockaddr.
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsecho "configure:2388: checking for sa_len in struct sockaddr" >&5
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewscat > conftest.$ac_ext <<EOF
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#line 2390 "configure"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#include "confdefs.h"
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#include <sys/types.h>
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews#include <sys/socket.h>
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsint main() {
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsstruct sockaddr sa; sa.sa_len = 0; return (0);
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrews; return 0; }
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark AndrewsEOF
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewsif { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews rm -rf conftest*
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews echo "$ac_t""yes" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyelse
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews echo "configure: failed program was:" >&5
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews cat conftest.$ac_ext >&5
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews rm -rf conftest*
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews echo "$ac_t""no" 1>&6
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyrm -f conftest*
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews# Look for a 4.4BSD or 4.3BSD struct msghdr
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsecho "configure:2420: checking for struct msghdr flavor" >&5
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewscat > conftest.$ac_ext <<EOF
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#line 2422 "configure"
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#include "confdefs.h"
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#include <sys/types.h>
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrews#include <sys/socket.h>
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyint main() {
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsstruct msghdr msg; msg.msg_flags = 0; return (0);
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley; return 0; }
23693a38979a5f30334176bd3ddd1c42004f55b2Mark AndrewsEOF
23693a38979a5f30334176bd3ddd1c42004f55b2Mark Andrewsif { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews rm -rf conftest*
cdc65374952183e7e738ed7d35cd1c2291c43e03Mark Andrews echo "$ac_t""4.4BSD" 1>&6
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewselse
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews echo "configure: failed program was:" >&5
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews cat conftest.$ac_ext >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley rm -rf conftest*
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews echo "$ac_t""4.3BSD" 1>&6
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewsfi
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewsrm -f conftest*
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews#
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews# Look for in_port_t.
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrews#
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewsecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
700f1442882eda0cce05a51e8c6f820c51054e8eMark Andrewsecho "configure:2449: checking for type in_port_t" >&5
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewscat > conftest.$ac_ext <<EOF
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews#line 2451 "configure"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#include "confdefs.h"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#include <sys/types.h>
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include <netinet/in.h>
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsint main() {
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsin_port_t port = 25; return (0);
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews; return 0; }
6182613ef54ebb8369d951ffa4431c49b75cec51Mark AndrewsEOF
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsif { (eval echo configure:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews rm -rf conftest*
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews echo "$ac_t""yes" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewselse
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews echo "configure: failed program was:" >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews cat conftest.$ac_ext >&5
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews rm -rf conftest*
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews echo "$ac_t""no" 1>&6
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsfi
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsrm -f conftest*
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews# Check for addrinfo
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrews#
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho "configure:2478: checking for struct addrinfo" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2480 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsstruct addrinfo a; return (0);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2503: checking for int sethostent" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2505 "configure"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint i = sethostent(0); return(0);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2528: checking for int endhostent" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2530 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint i = endhostent(); return(0);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2553: checking for getnetbyaddr(in_addr_t, ...)" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#line 2555 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsstruct netent *getnetbyaddr(in_addr_t, int);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho "configure:2579: checking for int setnetent" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#line 2581 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint i = setnetent(0); return(0);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho "configure:2604: checking for int endnetent" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewscat > conftest.$ac_ext <<EOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#line 2606 "configure"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include "confdefs.h"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews#include <netdb.h>
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint main() {
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsint i = endnetent(); return(0);
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews; return 0; }
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""yes" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewselse
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "configure: failed program was:" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews cat conftest.$ac_ext >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews rm -rf conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews echo "$ac_t""no" 1>&6
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsfi
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsrm -f conftest*
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonecho "configure:2629: checking for gethostbyadd(const void *, size_t, ...)" >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleycat > conftest.$ac_ext <<EOF
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#line 2631 "configure"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include "confdefs.h"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#include <netdb.h>
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonstruct hostent *gethostbyaddr(const void *, size_t, int);
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonint main() {
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonreturn(0);
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson; return 0; }
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas GustafssonEOF
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonif { (eval echo configure:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson rm -rf conftest*
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo "$ac_t""yes" 1>&6
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonelse
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo "configure: failed program was:" >&5
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson cat conftest.$ac_ext >&5
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson rm -rf conftest*
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson echo "$ac_t""no" 1>&6
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonfi
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonrm -f conftest*
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssonecho "configure:2655: checking for h_errno in netdb.h" >&5
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafssoncat > conftest.$ac_ext <<EOF
ca485ab26fffa241a3eac1899b2d2012dd1fdb73Andreas Gustafsson#line 2657 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <netdb.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyh_errno = 1; return(0);
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2680: checking for getipnodebyname" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 2685 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* System header to define __stub macros and hopefully few prototypes,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley which can conflict with char getipnodebyname(); below. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* We use char because int might match the return type of a gcc2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley builtin and then its argument prototype would still apply. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar getipnodebyname();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* The GNU C library defines this for functions which it implements
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley to always fail with ENOSYS. Some functions are actually named
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley something starting with __ and the normal name is an alias. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychoke me
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleygetipnodebyname();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getipnodebyname=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getipnodebyname=no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2729: checking for getnameinfo" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 2734 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* System header to define __stub macros and hopefully few prototypes,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley which can conflict with char getnameinfo(); below. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <assert.h>
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* Override any gcc2 internal prototype to avoid an error. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* We use char because int might match the return type of a gcc2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley builtin and then its argument prototype would still apply. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar getnameinfo();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* The GNU C library defines this for functions which it implements
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley to always fail with ENOSYS. Some functions are actually named
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley something starting with __ and the normal name is an alias. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychoke me
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleygetnameinfo();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getnameinfo=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getnameinfo=no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2778: checking for getaddrinfo" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 2783 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* System header to define __stub macros and hopefully few prototypes,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley which can conflict with char getaddrinfo(); below. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <assert.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley/* We use char because int might match the return type of a gcc2
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley builtin and then its argument prototype would still apply. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychar getaddrinfo();
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyint main() {
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley/* The GNU C library defines this for functions which it implements
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley to always fail with ENOSYS. Some functions are actually named
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley something starting with __ and the normal name is an alias. */
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleychoke me
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleygetaddrinfo();
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getaddrinfo=yes"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "configure: failed program was:" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat conftest.$ac_ext >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley eval "ac_cv_func_getaddrinfo=no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# Look for a sysctl call to get the list of network interfaces.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2834: checking for interface list sysctl" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 2836 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <sys/param.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <sys/sysctl.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <sys/socket.h>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#ifdef NET_RT_IFLIST
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfound_rt_iflist
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#endif
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley egrep "found_rt_iflist" >/dev/null 2>&1; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""yes" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat >> confdefs.h <<\EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#define HAVE_IFLIST_SYSCTL 1
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley rm -rf conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# GNU libtool support
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --with-libtool or --without-libtool was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${with_libtool+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley withval="$with_libtool"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley use_libtool="$withval"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley use_libtool="no"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase $use_libtool in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley yes)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check whether --enable-shared or --disable-shared was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_shared+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enableval="$enable_shared"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley p=${PACKAGE-default}
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$enableval" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyyes) enable_shared=yes ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyno) enable_shared=no ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley*)
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley enable_shared=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for pkg in $enableval; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "X$pkg" = "X$p"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_shared=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="$ac_save_ifs"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_shared=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --enable-static or --disable-static was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_static+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enableval="$enable_static"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley p=${PACKAGE-default}
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$enableval" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyyes) enable_static=yes ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyno) enable_static=no ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_static=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for pkg in $enableval; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "X$pkg" = "X$p"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_static=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="$ac_save_ifs"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_static=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --enable-fast-install or --disable-fast-install was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${enable_fast_install+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enableval="$enable_fast_install"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley p=${PACKAGE-default}
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$enableval" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyyes) enable_fast_install=yes ;;
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyno) enable_fast_install=no ;;
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_fast_install=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Look at the argument we got. We use all the common list separators.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for pkg in $enableval; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test "X$pkg" = "X$p"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_fast_install=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="$ac_save_ifs"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley enable_fast_install=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking build system type""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2946: checking build system type" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_alias=$build
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycase "$build_alias" in
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyNONE)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley case $nonopt in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley NONE) build_alias=$host_alias ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *) build_alias=$nonopt ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley esac ;;
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyesac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleybuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$build" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Check whether --with-gnu-ld or --without-gnu-ld was given.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "${with_gnu_ld+set}" = set; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley withval="$with_gnu_ld"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test "$withval" = no || with_gnu_ld=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley with_gnu_ld=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_prog=ld
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test "$ac_cv_prog_gcc" = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check if gcc -print-prog-name=ld gives a path.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2975: checking for ld used by GCC" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_prog=`($CC -print-prog-name=ld) 2>&5`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley case "$ac_prog" in
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Accept absolute paths.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley [\\/]* | [A-Za-z]:[\\/]*)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley re_direlt='/[^/][^/]*/\.\./'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Canonicalize the path of ld
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test -z "$LD" && LD="$ac_prog"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley "")
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If it fails, then pretend we aren't using GCC.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_prog=ld
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley *)
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # If it is relative, then search for the first ld in PATH.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley with_gnu_ld=unknown
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley esac
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelif test "$with_gnu_ld" = yes; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:2999: checking for GNU ld" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3002: checking for non-GNU ld" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -z "$LD"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $PATH; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test -z "$ac_dir" && ac_dir=.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_LD="$ac_dir/$ac_prog"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check to see if the program is GNU ld. I'd rather use --version,
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # but apparently some GNU ld's only accept -v.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Break only if it was the GNU/non-GNU ld that we prefer.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test "$with_gnu_ld" != no && break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley else
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test "$with_gnu_ld" != yes && break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley fi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley done
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="$ac_save_ifs"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_LD="$LD" # Let the user override the test with a path.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyLD="$ac_cv_path_LD"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif test -n "$LD"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""$LD" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleytest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3038: checking if the linker ($LD) is GNU ld" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # I'd rather use --version here, but apparently some GNU ld's only accept -v.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_gnu_ld=yes
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_prog_gnu_ld=no
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3054: checking for BSD-compatible nm" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -n "$NM"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Let the user override the test.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_NM="$NM"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley test -z "$ac_dir" && ac_dir=.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Check to see if the nm accepts a BSD-compat flag.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # Adding the `sed 1q' prevents false positives on HP-UX, which says:
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley # nm: unknown option "B" ignored
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_NM="$ac_dir/nm -B"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ac_cv_path_NM="$ac_dir/nm -p"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley break
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley else
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence continue # so that we can try to find one that supports BSD flags
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence fi
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence fi
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence done
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence IFS="$ac_save_ifs"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencefi
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonfi
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyNM="$ac_cv_path_NM"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceecho "$ac_t""$NM" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonecho "configure:3091: checking whether ln -s works" >&5
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
c0ef1acf49b383d8b6d3742cb963f7d08f5762e3Andreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyelse
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley rm -f conftestdata
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyif ln -s X conftestdata 2>/dev/null
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleythen
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley rm -f conftestdata
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley ac_cv_prog_LN_S="ln -s"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyelse
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence ac_cv_prog_LN_S=ln
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
a7c7193f985cbb2d995775ae8be44878a6d453bdBob HalleyLN_S="$ac_cv_prog_LN_S"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyif test "$ac_cv_prog_LN_S" = "ln -s"; then
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "$ac_t""yes" 1>&6
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceelse
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "$ac_t""no" 1>&6
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyfi
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# Check for any special flags to pass to ltconfig.
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencelibtool_flags="--cache-file=$cache_file"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleytest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrenceif test "${enable_libtool_lock+set}" = set; then
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley enableval="$enable_libtool_lock"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence :
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencefi
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrencetest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence# Some flags need to be propagated to the compiler or linker for good
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley# libtool support.
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleycase "$host" in
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley*-*-irix6*)
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley # Find out which ABI we are using.
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo '#line 3135 "configure"' > conftest.$ac_ext
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley if { (eval echo configure:3136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley case "`/usr/bin/file conftest.o`" in
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence *32-bit*)
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley LD="${LD-ld} -32"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence ;;
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence *N32*)
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence LD="${LD-ld} -n32"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence ;;
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence *64-bit*)
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence LD="${LD-ld} -64"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence ;;
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence esac
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence fi
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence rm -rf conftest*
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence ;;
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence*-*-sco3.2v5*)
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence SAVE_CFLAGS="$CFLAGS"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence CFLAGS="$CFLAGS -belf"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceecho "configure:3157: checking whether the C compiler needs -belf" >&5
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceelse
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence cat > conftest.$ac_ext <<EOF
7bb707a34778fc4bd9624d6c5de95675424ea59fDavid Lawrence#line 3162 "configure"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence#include "confdefs.h"
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceint main() {
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence
e32971f6c437485d21245d8a4a96af643b73eef4David Lawrence; return 0; }
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David LawrenceEOF
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceif { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence rm -rf conftest*
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence lt_cv_cc_needs_belf=yes
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrenceelse
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence echo "configure: failed program was:" >&5
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence cat conftest.$ac_ext >&5
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence rm -rf conftest*
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrence lt_cv_cc_needs_belf=no
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrencefi
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrencerm -f conftest*
8a9b755d32a4f6ace792ac3fd17c968cf96d2487David Lawrencefi
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff if test x"$lt_cv_cc_needs_belf" != x"yes"; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff CFLAGS="$SAVE_CFLAGS"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff fi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley ;;
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffesac
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# Save cache, so that ltconfig can load it
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffcat > confcache <<\EOF
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# This file is a shell script that caches the results of configure
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# tests run on this system so they can be shared between configure
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# scripts and configure runs. It is not useful on other systems.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# If it contains results you don't want to keep, you may remove or edit it.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# By default, configure uses ./config.cache as the cache file,
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# creating it if it does not exist already. You can give configure
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# the --cache-file=FILE option to use a different cache file; that is
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# what configure does when it calls configure scripts in
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# subdirectories, so they share the cache.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# Giving --cache-file=/dev/null disables caching, for debugging configure.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# config.status only pays attention to the cache file if you give it the
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# --recheck option to rerun configure.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff#
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael GraffEOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# The following way of writing the cache mishandles newlines in values,
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# but we know of no workaround that is simple, portable, and efficient.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# So, don't put newlines in cache variables' values.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# Ultrix sh set writes to stderr and can't be redirected directly,
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff# and sets the high bit in the cache file unless we assign to the vars.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff(set) 2>&1 |
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff case `(ac_space=' '; set | grep ac_space) 2>&1` in
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff *ac_space=\ *)
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff # `set' does not quote correctly, so add quotes (double-quote substitution
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff # turns \\\\ into \\, and sed turns \\ into \).
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff sed -n \
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff -e "s/'/'\\\\''/g" \
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff ;;
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley *)
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff # `set' quotes correctly as required by POSIX, so do not add quotes.
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley esac >> confcache
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif cmp -s $cache_file confcache; then
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff :
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley if test -w $cache_file; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "updating cache $cache_file"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley cat confcache > $cache_file
28ed3013196c373745dbde87b75a490148dab840Bob Halley else
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "not updating unwritable cache $cache_file"
28ed3013196c373745dbde87b75a490148dab840Bob Halley fi
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyrm -f confcache
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# Actually configure libtool. ac_aux_dir is where install-sh is found.
28ed3013196c373745dbde87b75a490148dab840Bob HalleyCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
28ed3013196c373745dbde87b75a490148dab840Bob HalleyLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
28ed3013196c373745dbde87b75a490148dab840Bob HalleyLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
28ed3013196c373745dbde87b75a490148dab840Bob HalleyDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
28ed3013196c373745dbde87b75a490148dab840Bob Halley${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
28ed3013196c373745dbde87b75a490148dab840Bob Halley$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
28ed3013196c373745dbde87b75a490148dab840Bob Halley|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# Reload cache, that may have been modified by ltconfig
28ed3013196c373745dbde87b75a490148dab840Bob Halleyif test -r "$cache_file"; then
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "loading cache $cache_file"
28ed3013196c373745dbde87b75a490148dab840Bob Halley . $cache_file
28ed3013196c373745dbde87b75a490148dab840Bob Halleyelse
28ed3013196c373745dbde87b75a490148dab840Bob Halley echo "creating cache $cache_file"
28ed3013196c373745dbde87b75a490148dab840Bob Halley > $cache_file
28ed3013196c373745dbde87b75a490148dab840Bob Halleyfi
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# This can be used to rebuild libtool when needed
660f6ef5471b7348436a9de18acde5d48b18e0dcBob HalleyLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# Always use our own libtool.
28ed3013196c373745dbde87b75a490148dab840Bob HalleyLIBTOOL='$(SHELL) $(top_builddir)/libtool'
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# Redirect the config.log output again, so that the ltconfig log is not
28ed3013196c373745dbde87b75a490148dab840Bob Halley# clobbered by the next message.
28ed3013196c373745dbde87b75a490148dab840Bob Halleyexec 5>>./config.log
28ed3013196c373745dbde87b75a490148dab840Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley O=lo
28ed3013196c373745dbde87b75a490148dab840Bob Halley A=la
28ed3013196c373745dbde87b75a490148dab840Bob Halley ;;
28ed3013196c373745dbde87b75a490148dab840Bob Halley *)
28ed3013196c373745dbde87b75a490148dab840Bob Halley O=o
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley A=a
28ed3013196c373745dbde87b75a490148dab840Bob Halley LIBTOOL=
28ed3013196c373745dbde87b75a490148dab840Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyesac
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
28ed3013196c373745dbde87b75a490148dab840Bob Halley# File name extension for static archive files, for those few places
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff# where they are treated differently from dynamic ones.
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffSA=a
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# IPv6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff# Check whether --enable-ipv6 or --disable-ipv6 was given.
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffif test "${enable_ipv6+set}" = set; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff enableval="$enable_ipv6"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff :
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff# We do the IPv6 compilation checking after libtool so that we can put
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff# the right suffix on the files.
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffcase "$enable_ipv6" in
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff yes|''|autodetect)
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffecho "configure:3306: checking for IPv6 structures" >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff cat > conftest.$ac_ext <<EOF
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#line 3308 "configure"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include "confdefs.h"
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include <sys/types.h>
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff#include <sys/socket.h>
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#include <netinet/in.h>
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffint main() {
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffstruct sockaddr_in6 sin6; return (0);
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff; return 0; }
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael GraffEOF
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffif { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "$ac_t""yes" 1>&6
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff found_ipv6=yes
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffelse
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "configure: failed program was:" >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff cat conftest.$ac_ext >&5
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff rm -rf conftest*
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff echo "$ac_t""no" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley found_ipv6=no
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Grafffi
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graffrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ;;
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley no)
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley found_ipv6=no
c810fcbf6c7d628e71aaaefafeccc74a3a443ca2Michael Graff ;;
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graffesac
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# See whether IPv6 support is provided via a Kame add-on.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# This is done before other IPv6 linking tests to LIBS is properly set.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsecho "configure:3341: checking for Kame IPv6 support" >&5
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley# Check whether --with-kame or --without-kame was given.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsif test "${with_kame+set}" = set; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews withval="$with_kame"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews use_kame="$withval"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewselse
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews use_kame="no"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsfi
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewscase "$use_kame" in
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews no)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ;;
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews yes)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews kame_path=/usr/local/v6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ;;
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews *)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews kame_path="$use_kame"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ;;
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsesac
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewscase "$use_kame" in
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews no)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "$ac_t""no" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley ;;
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews *)
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews if test -f $kame_path/lib/libinet6.a; then
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews LIBS="-L$kame_path/lib -linet6 $LIBS"
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews else
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews { echo "configure: error: $kame_path/lib/libinet6.a not found.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark AndrewsPlease choose the proper path with the following command:
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews configure --with-kame=PATH
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews" 1>&2; exit 1; }
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews fi
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews ;;
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrewsesac
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews#
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# Including it on Kame-using platforms is very bad, though, because
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# Kame uses #error against direct inclusion. So include it on only
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
1bb509f58b57f1d9ef413762fb9e3dd2bcaf7ed4Mark Andrews# This is done before the in6_pktinfo check because that's what
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# netinet6/in6.h is needed for.
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewscase "$host" in
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews*-bsdi4.[01]*)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews isc_netinet6in6_hack="#include <netinet6/in6.h>"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ;;
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews*)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews isc_netinet6in6_hack=""
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ;;
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsesac
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# This is similar to the netinet6/in6.h issue.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewscase "$host" in
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews*-UnixWare*)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews isc_netinetin6_hack="#include <netinet/in6.h>"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ;;
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews*)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley isc_netinetin6_hack=""
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ;;
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsesac
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# Now delve deeper into the suitability of the IPv6 support.
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewscase "$found_ipv6" in
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews yes)
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsecho "configure:3428: checking for in6addr_any" >&5
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews cat > conftest.$ac_ext <<EOF
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#line 3430 "configure"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews#include "confdefs.h"
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrews#include <sys/types.h>
f7bf83d0cc099e754327f8da8c4d6d320da1de01Mark Andrews#include <sys/socket.h>
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#include <netinet/in.h>
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews$isc_netinetin6_hack
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsint main() {
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrewsstruct in6_addr in6; in6 = in6addr_any; return (0);
64ba6e4cc3a0ccf8c8c6349fa75b937ca9bad9a6Michael Graff; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
ea31416b4fcdf23732355a8002f93f29e3b3d2dbAndreas Gustafssonif { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley rm -rf conftest*
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley echo "$ac_t""yes" 1>&6
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewselse
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley echo "configure: failed program was:" >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews cat conftest.$ac_ext >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews rm -rf conftest*
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews echo "$ac_t""no" 1>&6
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyrm -f conftest*
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsecho "configure:3454: checking for in6_pktinfo" >&5
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews cat > conftest.$ac_ext <<EOF
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley#line 3456 "configure"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include "confdefs.h"
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include <sys/types.h>
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include <sys/socket.h>
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews#include <netinet/in.h>
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews$isc_netinetin6_hack
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews$isc_netinet6in6_hack
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsint main() {
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsstruct in6_pktinfo xyzzy; return (0);
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrews; return 0; }
8a1930d026517e4733d680ac51abeb01353332c4Mark AndrewsEOF
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsif { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c5bbf59219f8787d9ada4cdc2d585019271609b6Bob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""yes" 1>&6
51a659eb711eb6a17891675d3de6b8085a766ab2Mark Andrews ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley echo "configure: failed program was:" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat conftest.$ac_ext >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""no -- disabling runtime ipv6 support" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyrm -f conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley no)
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_IPV6_H="ipv6.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_IPV6_O="ipv6.$O"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_ISCIPV6_O="unix/ipv6.$O"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_IPV6_C="ipv6.c"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ;;
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyesac
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# Check for network functions that are often missing. We do this
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# after the libtool checking, so we can put the right suffix on
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley# the files.
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for inet_ntop""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3513: checking for inet_ntop" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleycat > conftest.$ac_ext <<EOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#line 3515 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/types.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <netinet/in.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <arpa/inet.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyint main() {
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyinet_ntop(0, 0, 0, 0); return (0);
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""yes" 1>&6
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "configure: failed program was:" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat conftest.$ac_ext >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halley echo "$ac_t""no" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
660f6ef5471b7348436a9de18acde5d48b18e0dcBob Halleyrm -f conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for inet_pton""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3540: checking for inet_pton" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleycat > conftest.$ac_ext <<EOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#line 3542 "configure"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include "confdefs.h"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <sys/types.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <netinet/in.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley#include <arpa/inet.h>
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyint main() {
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyinet_pton(0, 0, 0); return (0);
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley; return 0; }
5c00d1c90030a311d2700970fa7cffc8f828a48cBob HalleyEOF
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyif { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""yes" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyelse
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "configure: failed program was:" >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley cat conftest.$ac_ext >&5
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley rm -rf conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley echo "$ac_t""no" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halley ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyfi
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyrm -f conftest*
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho $ac_n "checking for inet_aton""... $ac_c" 1>&6
5c00d1c90030a311d2700970fa7cffc8f828a48cBob Halleyecho "configure:3567: checking for inet_aton" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleycat > conftest.$ac_ext <<EOF
ff82c51f2ebe78c7dc7def880a9a70c2b3f1fd0dBob Halley#line 3569 "configure"
ff82c51f2ebe78c7dc7def880a9a70c2b3f1fd0dBob Halley#include "confdefs.h"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#include <sys/types.h>
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff#include <netinet/in.h>
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#include <arpa/inet.h>
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyint main() {
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleystruct in_addr in; inet_aton(0, &in); return (0);
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence; return 0; }
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael GraffEOF
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyif { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley rm -rf conftest*
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley echo "$ac_t""yes" 1>&6
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graffelse
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley echo "configure: failed program was:" >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley cat conftest.$ac_ext >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley rm -rf conftest*
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley echo "$ac_t""no" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonfi
1922518d7f7b5e3e77b8e1c92569c98268b9c192Andreas Gustafssonrm -f conftest*
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Check for some other useful functions that are not ever-present.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho $ac_n "checking for strsep""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:3600: checking for strsep" >&5
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrenceif eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrenceelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 3605 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char strsep(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar strsep();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_strsep) || defined (__stub___strsep)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychoke me
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleystrsep();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3628: \"$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_func_strsep=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_func_strsep=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho $ac_n "checking for vsnprintf""... $ac_c" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho "configure:3649: checking for vsnprintf" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+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 3654 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* System header to define __stub macros and hopefully few prototypes,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley which can conflict with char vsnprintf(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* Override any gcc2 internal prototype to avoid an error. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* We use char because int might match the return type of a gcc2
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley builtin and then its argument prototype would still apply. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychar vsnprintf();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyint main() {
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley/* The GNU C library defines this for functions which it implements
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley to always fail with ENOSYS. Some functions are actually named
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley something starting with __ and the normal name is an alias. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleychoke me
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyvsnprintf();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3677: \"$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_func_vsnprintf=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_func_vsnprintf=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyecho $ac_n "checking for sizeof(long long int) == sizeof(long int)""... $ac_c" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyecho "configure:3706: checking for sizeof(long long int) == sizeof(long int)" >&5
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halleyif test "$cross_compiling" = yes; then
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley echo "$ac_t""default yes" 1>&6
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat > conftest.$ac_ext <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#line 3712 "configure"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include "confdefs.h"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleymain() { exit(!(sizeof(long long int) == sizeof(long int))); }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleythen
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "configure: failed program was:" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat conftest.$ac_ext >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley rm -fr conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington ISC_PLATFORM_LONGLONGEQUALLONG="#undef ISC_PLATFORM_LONGLONGEQUALLONG"
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonfi
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonrm -fr conftest*
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonfi
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington#
affd6c025b39ec89a91056efb084fff7239ad6e3Mark Andrews# Security Stuff
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff#
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graffecho $ac_n "checking for chroot""... $ac_c" 1>&6
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graffecho "configure:3736: checking for chroot" >&5
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrenceelse
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence cat > conftest.$ac_ext <<EOF
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence#line 3741 "configure"
44aae046c38e796e581110b7ecdf4478167d684dBob Halley#include "confdefs.h"
44aae046c38e796e581110b7ecdf4478167d684dBob Halley/* System header to define __stub macros and hopefully few prototypes,
44aae046c38e796e581110b7ecdf4478167d684dBob Halley which can conflict with char chroot(); below. */
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#include <assert.h>
690a68b8112039e633e26f9216c0d463751e011aMichael Graff/* Override any gcc2 internal prototype to avoid an error. */
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley/* We use char because int might match the return type of a gcc2
6448ffb2b9ec7ebf79897941629b225ec1431666Michael Graff builtin and then its argument prototype would still apply. */
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrencechar chroot();
44aae046c38e796e581110b7ecdf4478167d684dBob Halley
44aae046c38e796e581110b7ecdf4478167d684dBob Halleyint main() {
44aae046c38e796e581110b7ecdf4478167d684dBob Halley
44aae046c38e796e581110b7ecdf4478167d684dBob Halley/* The GNU C library defines this for functions which it implements
a4fe5869c06072365156af9c332fd55fb4af2e43William King to always fail with ENOSYS. Some functions are actually named
a4fe5869c06072365156af9c332fd55fb4af2e43William King something starting with __ and the normal name is an alias. */
a4fe5869c06072365156af9c332fd55fb4af2e43William King#if defined (__stub_chroot) || defined (__stub___chroot)
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellingtonchoke me
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley#else
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafssonchroot();
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#endif
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley; return 0; }
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif { (eval echo configure:3764: \"$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_func_chroot=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_func_chroot=no"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyrm -f conftest*
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""yes" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define HAVE_CHROOT 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_hdr in linux/capability.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:3790: checking for $ac_hdr" >&5
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif 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 3795 "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"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:3800: \"$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"
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrenceelse
75a4dd0d377dca2f85cea44e28bf110314c1fe8cDavid Lawrence echo "$ac_err" >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff echo "configure: failed program was:" >&5
13494a4d4bead37f22eb6c4779c73310109f7e4aJames Brister cat conftest.$ac_ext >&5
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graff rm -rf conftest*
2b556032fd78aff37e80e755044b944a017245cdDavid Lawrence eval "ac_cv_header_$ac_safe=no"
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyfi
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyrm -f conftest*
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyfi
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley echo "$ac_t""yes" 1>&6
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley cat >> confdefs.h <<EOF
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley#define $ac_tr_hdr 1
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark AndrewsEOF
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
40f24178432de09181bc603cc90110546a0ddca2Mark Andrewselse
afb4ad8f988591bccae0ee2ac73b2fef5d969366Mark Andrews echo "$ac_t""no" 1>&6
0e7e4562fd8222047b8ccf3a508d95df4f81bc47Mark Andrewsfi
b21d8bac45b614c39a106c9ee8137589328ea075Andreas Gustafssondone
40f24178432de09181bc603cc90110546a0ddca2Mark Andrews
6182613ef54ebb8369d951ffa4431c49b75cec51Mark Andrewsfor ac_hdr in linux/prctl.h
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsdo
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrewsecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyecho "configure:3830: checking for $ac_hdr" >&5
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley echo $ac_n "(cached) $ac_c" 1>&6
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyelse
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley cat > conftest.$ac_ext <<EOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#line 3835 "configure"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include "confdefs.h"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#include <$ac_hdr>
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob HalleyEOF
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halleyac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley{ (eval echo configure:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halleyif test -z "$ac_err"; then
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley rm -rf conftest*
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley eval "ac_cv_header_$ac_safe=yes"
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halleyelse
a7c7193f985cbb2d995775ae8be44878a6d453bdBob Halley echo "$ac_err" >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley echo "configure: failed program was:" >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley cat conftest.$ac_ext >&5
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley rm -rf conftest*
51a659eb711eb6a17891675d3de6b8085a766ab2Mark Andrews eval "ac_cv_header_$ac_safe=no"
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyfi
ccdac53c027e8964753b36c4d8c7b0e98af501c2Michael Graffrm -f conftest*
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halleyfi
8a1930d026517e4733d680ac51abeb01353332c4Mark Andrewsif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6d5dcd0dc9bdbd679282b1ffc47987d24c3a1346Bob Halley echo "$ac_t""yes" 1>&6
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley cat >> confdefs.h <<EOF
4bcaefbcd3ced942139fdc830e007c6ea2b8d2feDavid Lawrence#define $ac_tr_hdr 1
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael GraffEOF
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$ac_t""no" 1>&6
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley# Random remaining OS-specific issues.
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley#
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrencecase "$host" in
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence *-bsdi3.1*|*-bsdi4.0*)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley # Shut up a -Wmissing-prototypes warning from <stdio.h>.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley #
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley cat >> confdefs.h <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#define SHUTUP_SPUTAUX 1
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyesac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Substitutions
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyBIND9_TOP_BUILDDIR=`pwd`
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "X$srcdir" != "X"; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyelse
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_ISC_BUILDINCLUDE=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_DNS_BUILDINCLUDE=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_OMAPI_BUILDINCLUDE=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley BIND9_LWRES_BUILDINCLUDE=""
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyBIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyBIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley. $srcdir/version
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyBIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob HalleyLIBISC_API=$srcdir/lib/isc/api
eb4c09176b07133532861dd9d5a38fe6ab68e48bBob Halley
694c897b20f06f8a5349fd9ac5df93947f6f5a2aBob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBDNS_API=$srcdir/lib/dns/api
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBLWRES_API=$srcdir/lib/lwres/api
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyLIBOMAPI_API=$srcdir/lib/omapi/api
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
d8dcd6ad4617cc8d7df979bd62101fa9c4bac1bcBob Halleytrap '' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > confcache <<\EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This file is a shell script that caches the results of configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# tests run on this system so they can be shared between configure
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# scripts and configure runs. It is not useful on other systems.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If it contains results you don't want to keep, you may remove or edit it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# By default, configure uses ./config.cache as the cache file,
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# creating it if it does not exist already. You can give configure
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# the --cache-file=FILE option to use a different cache file; that is
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# what configure does when it calls configure scripts in
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# subdirectories, so they share the cache.
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# Giving --cache-file=/dev/null disables caching, for debugging configure.
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# config.status only pays attention to the cache file if you give it the
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington# --recheck option to rerun configure.
f8e602a972e393cdacadd9852e0965bf1105dc7bMark Andrews#
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael GraffEOF
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff# The following way of writing the cache mishandles newlines in values,
c68fa795a1c87fd5d0386e0503dc5666490ac77fMichael Graff# but we know of no workaround that is simple, portable, and efficient.
c7620c99f1139b77f14678e21a44f7c8c4236a7bMark Andrews# So, don't put newlines in cache variables' values.
de476e9bd35b6be1759d5680eb89a394eb67bc39Bob Halley# Ultrix sh set writes to stderr and can't be redirected directly,
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence# and sets the high bit in the cache file unless we assign to the vars.
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence(set) 2>&1 |
860728724ad298f60d5c6e7485d37c3b2b1ad632David Lawrence case `(ac_space=' '; set | grep ac_space) 2>&1` in
44aae046c38e796e581110b7ecdf4478167d684dBob Halley *ac_space=\ *)
44aae046c38e796e581110b7ecdf4478167d684dBob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
44aae046c38e796e581110b7ecdf4478167d684dBob Halley # turns \\\\ into \\, and sed turns \\ into \).
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley sed -n \
690a68b8112039e633e26f9216c0d463751e011aMichael Graff -e "s/'/'\\\\''/g" \
1cafbcfa6f7560597e577f78795143b4964464d9Bob Halley -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6448ffb2b9ec7ebf79897941629b225ec1431666Michael Graff ;;
12ccbb032ec1b5f6b93aac923f2645a19fc90c75David Lawrence *)
44aae046c38e796e581110b7ecdf4478167d684dBob Halley # `set' quotes correctly as required by POSIX, so do not add quotes.
44aae046c38e796e581110b7ecdf4478167d684dBob Halley sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
44aae046c38e796e581110b7ecdf4478167d684dBob Halley ;;
44aae046c38e796e581110b7ecdf4478167d684dBob Halley esac >> confcache
a4fe5869c06072365156af9c332fd55fb4af2e43William Kingif cmp -s $cache_file confcache; then
a4fe5869c06072365156af9c332fd55fb4af2e43William King :
a4fe5869c06072365156af9c332fd55fb4af2e43William Kingelse
65c4736d9c0ebc6d9b1d991593b55566909da9cdBrian Wellington if test -w $cache_file; then
b2e6071406542058cca3c34cbe04d324322dfa05Bob Halley echo "updating cache $cache_file"
683da0cd900532fc45fa4dfb687b5041156ec8abAndreas Gustafsson cat confcache > $cache_file
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley else
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "not updating unwritable cache $cache_file"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley fi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f confcache
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$prefix" = xNONE && prefix=$ac_default_prefix
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Let make expand exec_prefix.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Any assignment to VPATH causes Sun make to only execute
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# the first set of double-colon rules, so remove it if not needed.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# If there is a colon in the path, we need to keep it.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyif test "x$srcdir" = x.; then
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfi
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyDEFS=-DHAVE_CONFIG_H
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Without the "./", some shells look in PATH for config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley: ${CONFIG_STATUS=./config.status}
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyecho creating $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyrm -f $CONFIG_STATUS
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat > $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#! /bin/sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Generated automatically by configure.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Run this file to recreate the current configuration.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# This directory was configured as follows,
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# $0 $ac_configure_args
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley#
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Compiler output produced by configure, useful for debugging
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# configure, is in ./config.log if it exists.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyfor ac_option
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydo
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley case "\$ac_option" in
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "$CONFIG_STATUS generated by autoconf version 2.13"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley -help | --help | --hel | --he | --h)
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley echo "\$ac_cs_usage"; exit 0 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley *) echo "\$ac_cs_usage"; exit 1 ;;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley esac
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleydone
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_srcdir=$srcdir
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleyac_given_INSTALL="$INSTALL"
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleytrap 'rm -fr `echo "make/rules
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley make/includes
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley make/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley make/mkdep
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/include/isc/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/unix/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/nls/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/isc/pthreads/include/isc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/include/dns/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/openssl/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/openssl/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/openssl/include/openssl/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/dnssafe/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/dst/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/dst/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/sec/dst/include/dst/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/dns/config/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/lwres/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/lwres/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/lwres/include/lwres/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/lwres/include/lwres/netdb.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/lwres/include/lwres/platform.h
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/omapi/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/omapi/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/omapi/include/omapi/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/tests/include/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley lib/tests/include/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/named/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/named/unix/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/lwresd/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/rndc/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/dig/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/names/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/master/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/rbt/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/db/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/tasks/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/timers/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/dst/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/mem/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/sockaddr/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/system/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/tests/headerdep_test.sh
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley bin/dnssec/Makefile
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob HalleyEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleycat >> $CONFIG_STATUS <<EOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley# Protect against being on the right side of a sed subst in config.status.
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleysed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$ac_vpsub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley$extrasub
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@SHELL@%$SHELL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CFLAGS@%$CFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CPPFLAGS@%$CPPFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CXXFLAGS@%$CXXFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@FFLAGS@%$FFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DEFS@%$DEFS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LDFLAGS@%$LDFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@LIBS@%$LIBS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@exec_prefix@%$exec_prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@prefix@%$prefix%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@program_transform_name@%$program_transform_name%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@bindir@%$bindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sbindir@%$sbindir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libexecdir@%$libexecdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@datadir@%$datadir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sysconfdir@%$sysconfdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@sharedstatedir@%$sharedstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@localstatedir@%$localstatedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@libdir@%$libdir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@includedir@%$includedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@oldincludedir@%$oldincludedir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@infodir@%$infodir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@mandir@%$mandir%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host@%$host%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_alias@%$host_alias%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_cpu@%$host_cpu%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_vendor@%$host_vendor%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@host_os@%$host_os%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@SET_MAKE@%$SET_MAKE%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@RANLIB@%$RANLIB%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@INSTALL_DATA@%$INSTALL_DATA%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CINCLUDES@%$STD_CINCLUDES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CDEFINES@%$STD_CDEFINES%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@STD_CWARNINGS@%$STD_CWARNINGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@AR@%$AR%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@ARFLAGS@%$ARFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@ETAGS@%$ETAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DST_PRIVATEOPENSSL@%$DST_PRIVATEOPENSSL%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@dst_privateopenssl@%$dst_privateopenssl%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DST_OPENSSL_INC@%$DST_OPENSSL_INC%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DST_OPENSSL_LIB@%$DST_OPENSSL_LIB%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DST_OPENSSL_OBJS@%$DST_OPENSSL_OBJS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@DNS_OPENSSL_LIBS@%$DNS_OPENSSL_LIBS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CC@%$CC%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@YACC@%$YACC%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@CPP@%$CPP%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@MKDEPCC@%$MKDEPCC%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halleys%@MKDEPPROG@%$MKDEPPROG%g
s%@IRIX_DNSSEC_WARNINGS_HACK@%$IRIX_DNSSEC_WARNINGS_HACK%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_PLATFORM_HAVESALEN%g
s%@LWRES_PLATFORM_HAVESALEN@%$LWRES_PLATFORM_HAVESALEN%g
s%@ISC_PLATFORM_MSGHDRFLAVOR@%$ISC_PLATFORM_MSGHDRFLAVOR%g
s%@ISC_PLATFORM_NEEDPORTT@%$ISC_PLATFORM_NEEDPORTT%g
s%@ISC_LWRES_NEEDADDRINFO@%$ISC_LWRES_NEEDADDRINFO%g
s%@ISC_LWRES_SETHOSTENTINT@%$ISC_LWRES_SETHOSTENTINT%g
s%@ISC_LWRES_ENDHOSTENTINT@%$ISC_LWRES_ENDHOSTENTINT%g
s%@ISC_LWRES_GETNETBYADDRINADDR@%$ISC_LWRES_GETNETBYADDRINADDR%g
s%@ISC_LWRES_SETNETENTINT@%$ISC_LWRES_SETNETENTINT%g
s%@ISC_LWRES_ENDNETENTINT@%$ISC_LWRES_ENDNETENTINT%g
s%@ISC_LWRES_GETHOSTBYADDRVOID@%$ISC_LWRES_GETHOSTBYADDRVOID%g
s%@ISC_LWRES_NEEDHERRNO@%$ISC_LWRES_NEEDHERRNO%g
s%@ISC_LWRES_GETIPNODEPROTO@%$ISC_LWRES_GETIPNODEPROTO%g
s%@ISC_LWRES_GETADDRINFOPROTO@%$ISC_LWRES_GETADDRINFOPROTO%g
s%@ISC_LWRES_GETNAMEINFOPROTO@%$ISC_LWRES_GETNAMEINFOPROTO%g
s%@build@%$build%g
s%@build_alias@%$build_alias%g
s%@build_cpu@%$build_cpu%g
s%@build_vendor@%$build_vendor%g
s%@build_os@%$build_os%g
s%@LD@%$LD%g
s%@NM@%$NM%g
s%@LN_S@%$LN_S%g
s%@LIBTOOL@%$LIBTOOL%g
s%@O@%$O%g
s%@A@%$A%g
s%@SA@%$SA%g
s%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%g
s%@LWRES_PLATFORM_HAVEIPV6@%$LWRES_PLATFORM_HAVEIPV6%g
s%@ISC_PLATFORM_NEEDNETINETIN6H@%$ISC_PLATFORM_NEEDNETINETIN6H%g
s%@LWRES_PLATFORM_NEEDNETINETIN6H@%$LWRES_PLATFORM_NEEDNETINETIN6H%g
s%@ISC_PLATFORM_NEEDNETINET6IN6H@%$ISC_PLATFORM_NEEDNETINET6IN6H%g
s%@LWRES_PLATFORM_NEEDNETINET6IN6H@%$LWRES_PLATFORM_NEEDNETINET6IN6H%g
s%@ISC_PLATFORM_NEEDIN6ADDRANY@%$ISC_PLATFORM_NEEDIN6ADDRANY%g
s%@ISC_PLATFORM_HAVEIN6PKTINFO@%$ISC_PLATFORM_HAVEIN6PKTINFO%g
s%@ISC_IPV6_H@%$ISC_IPV6_H%g
s%@ISC_IPV6_O@%$ISC_IPV6_O%g
s%@ISC_ISCIPV6_O@%$ISC_ISCIPV6_O%g
s%@ISC_IPV6_C@%$ISC_IPV6_C%g
s%@ISC_PLATFORM_NEEDNTOP@%$ISC_PLATFORM_NEEDNTOP%g
s%@ISC_PLATFORM_NEEDPTON@%$ISC_PLATFORM_NEEDPTON%g
s%@ISC_PLATFORM_NEEDATON@%$ISC_PLATFORM_NEEDATON%g
s%@ISC_PLATFORM_NEEDSTRSEP@%$ISC_PLATFORM_NEEDSTRSEP%g
s%@ISC_PLATFORM_NEEDVSNPRINTF@%$ISC_PLATFORM_NEEDVSNPRINTF%g
s%@ISC_EXTRA_OBJS@%$ISC_EXTRA_OBJS%g
s%@ISC_EXTRA_SRCS@%$ISC_EXTRA_SRCS%g
s%@ISC_PLATFORM_LONGLONGEQUALLONG@%$ISC_PLATFORM_LONGLONGEQUALLONG%g
s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
s%@BIND9_DNS_BUILDINCLUDE@%$BIND9_DNS_BUILDINCLUDE%g
s%@BIND9_OMAPI_BUILDINCLUDE@%$BIND9_OMAPI_BUILDINCLUDE%g
s%@BIND9_LWRES_BUILDINCLUDE@%$BIND9_LWRES_BUILDINCLUDE%g
/@BIND9_INCLUDES@/r $BIND9_INCLUDES
s%@BIND9_INCLUDES@%%g
/@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES
s%@BIND9_MAKE_RULES@%%g
s%@BIND9_VERSION@%$BIND9_VERSION%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_API@%%g
/@LIBLWRES_API@/r $LIBLWRES_API
s%@LIBLWRES_API@%%g
/@LIBOMAPI_API@/r $LIBOMAPI_API
s%@LIBOMAPI_API@%%g
CEOF
EOF
cat >> $CONFIG_STATUS <<\EOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/pthreads/Makefile
lib/isc/pthreads/include/Makefile
lib/isc/pthreads/include/isc/Makefile
lib/dns/Makefile
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/sec/Makefile
lib/dns/sec/openssl/Makefile
lib/dns/sec/openssl/include/Makefile
lib/dns/sec/openssl/include/openssl/Makefile
lib/dns/sec/dnssafe/Makefile
lib/dns/sec/dst/Makefile
lib/dns/sec/dst/include/Makefile
lib/dns/sec/dst/include/dst/Makefile
lib/dns/config/Makefile
lib/lwres/Makefile
lib/lwres/include/Makefile
lib/lwres/include/lwres/Makefile
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/omapi/Makefile
lib/omapi/include/Makefile
lib/omapi/include/omapi/Makefile
lib/tests/Makefile
lib/tests/include/Makefile
lib/tests/include/tests/Makefile
bin/Makefile
bin/named/Makefile
bin/named/unix/Makefile
bin/lwresd/Makefile
bin/rndc/Makefile
bin/dig/Makefile
bin/tests/Makefile
bin/tests/names/Makefile
bin/tests/master/Makefile
bin/tests/rbt/Makefile
bin/tests/db/Makefile
bin/tests/tasks/Makefile
bin/tests/timers/Makefile
bin/tests/dst/Makefile
bin/tests/mem/Makefile
bin/tests/sockaddr/Makefile
bin/tests/system/Makefile
bin/tests/headerdep_test.sh
bin/dnssec/Makefile
"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_uB='\([ ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_HEADERS="config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
echo creating $ac_file
rm -f conftest.frag conftest.in conftest.out
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
cat $ac_file_inputs > conftest.in
EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF
# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
rm -f conftest.tail
while :
do
ac_lines=`grep -c . conftest.vals`
# grep -c gives empty output for an empty file on some AIX systems.
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
# Write a limited-size here document to conftest.frag.
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
echo 'CEOF
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
mv conftest.out conftest.in
' >> $CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
rm -f conftest.vals
mv conftest.tail conftest.vals
done
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.frag conftest.h
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
cat conftest.in >> conftest.h
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
echo "$ac_file is unchanged"
rm -f conftest.h
else
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
fi
rm -f $ac_file
mv conftest.h $ac_file
fi
fi; done
EOF
cat >> $CONFIG_STATUS <<EOF
EOF
cat >> $CONFIG_STATUS <<\EOF
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1