configure revision afb4ad8f988591bccae0ee2ac73b2fef5d969366
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley#! /bin/sh
9d5ed744c46ef241b9d3ba134bf3155e0b62ac9eAutomatic Updater
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# From configure.in Revision: 1.83
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence## Copyright (C) 1996-1999 Free Software Foundation, Inc.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews##
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## This program is free software; you can redistribute it and/or modify
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## it under the terms of the GNU General Public License as published by
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## the Free Software Foundation; either version 2 of the License, or
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews## (at your option) any later version.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews##
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley## This program is distributed in the hope that it will be useful, but
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley## WITHOUT ANY WARRANTY; without even the implied warranty of
e4d304b70b81ca9956c2eff7c24aacf4dd00266eEvan Hunt## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence## General Public License for more details.
e419f613d8591885df608cb73065921be07dd12eBob Halley##
e419f613d8591885df608cb73065921be07dd12eBob Halley## You should have received a copy of the GNU General Public License
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence## along with this program; if not, write to the Free Software
fca5f81ad69098ea8abba130c7f841c951ef91c2Bob Halley## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
519b239fc4ef1e070e2da182a4ea559ae0152151Mark Andrews##
e419f613d8591885df608cb73065921be07dd12eBob Halley## As a special exception to the GNU General Public License, if you
e419f613d8591885df608cb73065921be07dd12eBob Halley## distribute this file as part of a program that contains a
394f4aec2189750d7f861d00f97fe28ffcd9f659Mark Andrews## configuration script generated by Autoconf, you may include it under
9695ae1c24b168996e3a267855dc754971ccb32cBob Halley## the same distribution terms that you use for the rest of that program.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# serial 40 AC_PROG_LIBTOOL
1c776a2909632bc755f3fddd3b53addd792ab4d0Brian Wellington
e419f613d8591885df608cb73065921be07dd12eBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence# AC_ENABLE_SHARED - implement the --enable-shared flag
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington# Usage: AC_ENABLE_SHARED[(DEFAULT)]
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence# `yes'.
e419f613d8591885df608cb73065921be07dd12eBob Halley
e419f613d8591885df608cb73065921be07dd12eBob Halley
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_ENABLE_STATIC - implement the --enable-static flag
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Usage: AC_ENABLE_STATIC[(DEFAULT)]
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# `yes'.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater# AC_DISABLE_STATIC - set the default static flag to --disable-static
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# `yes'.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_PROG_LD - find the path to the GNU or non-GNU linker
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
d2ef84e07b67e72a4bd9c729c6b8228067d17584Mark Andrews
d2ef84e07b67e72a4bd9c729c6b8228067d17584Mark Andrews# AC_PROG_NM - find the path to a BSD-compatible name lister
d2ef84e07b67e72a4bd9c729c6b8228067d17584Mark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_CHECK_LIBM - check for math library
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# the libltdl convenience library, adds --enable-ltdl-convenience to
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# to be `${top_builddir}/libltdl'. Make sure you start DIR with
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# '${top_builddir}/' (note the single quotes!) if your package is not
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence# flat, and, if you're not using automake, define top_builddir as
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews# appropriate in the Makefiles.
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# the libltdl installable library, and adds --enable-ltdl-install to
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# to be `${top_builddir}/libltdl'. Make sure you start DIR with
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# '${top_builddir}/' (note the single quotes!) if your package is not
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# flat, and, if you're not using automake, define top_builddir as
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# appropriate in the Makefiles.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Guess values for system-dependent variables and create Makefiles.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Generated automatically using autoconf version 2.13
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# This configure script is free software; the Free Software Foundation
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# gives unlimited permission to copy, distribute and modify it.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Defaults:
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_help=
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_default_prefix=/usr/local
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Any additions from configure.in:
50105afc551903541608b11851d73278b23579a3Mark Andrewsac_help="$ac_help
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews --with-mit-pthreads use the mit-pthreads thread library"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyac_help="$ac_help
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews --with-ptl2 use the ptl2 thread library"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyac_help="$ac_help
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrence --with-libtool use GNU libtool"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_help="$ac_help
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrence --enable-shared[=PKGS] build shared libraries [default=yes]"
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonac_help="$ac_help
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews --enable-static[=PKGS] build static libraries [default=yes]"
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrenceac_help="$ac_help
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonac_help="$ac_help
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrence --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrenceac_help="$ac_help
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews --disable-libtool-lock avoid locking (might break parallel builds)"
50105afc551903541608b11851d73278b23579a3Mark Andrewsac_help="$ac_help
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews --enable-ipv6 use IPv6 [default=autodetect]"
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonac_help="$ac_help
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrence
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington# Initialize some variables set by options.
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews# The variables have the same names as the options, with
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews# dashes changed to underlines.
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrencebuild=NONE
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtoncache_file=./config.cache
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonexec_prefix=NONE
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonhost=NONE
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonno_create=
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonnonopt=NONE
ed019cabc1cc75d4412010c331876e4ae5080a4dDavid Lawrenceno_recursion=
76c8294c81fb48b1da6e1fc5b83322a4cedb8e58Andreas Gustafssonprefix=NONE
76c8294c81fb48b1da6e1fc5b83322a4cedb8e58Andreas Gustafssonprogram_prefix=NONE
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssonprogram_suffix=NONE
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsprogram_transform_name=s,x,x,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewssilent=
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewssite=
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewssrcdir=
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewstarget=NONE
50105afc551903541608b11851d73278b23579a3Mark Andrewsverbose=
50105afc551903541608b11851d73278b23579a3Mark Andrewsx_includes=NONE
50105afc551903541608b11851d73278b23579a3Mark Andrewsx_libraries=NONE
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsbindir='${exec_prefix}/bin'
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewssbindir='${exec_prefix}/sbin'
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewslibexecdir='${exec_prefix}/libexec'
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsdatadir='${prefix}/share'
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewssysconfdir='${prefix}/etc'
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewssharedstatedir='${prefix}/com'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewslocalstatedir='${prefix}/var'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewslibdir='${exec_prefix}/lib'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsincludedir='${prefix}/include'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsoldincludedir='/usr/include'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsinfodir='${prefix}/info'
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsmandir='${prefix}/man'
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews# Initialize some other variables.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewssubdirs=
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsMFLAGS= MAKEFLAGS=
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsSHELL=${CONFIG_SHELL-/bin/sh}
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Maximum number of lines to put in a shell here document.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsac_max_here_lines=12
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsac_prev=
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfor ac_option
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleydo
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # If the previous option needs an argument, assign it.
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington if test -n "$ac_prev"; then
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington eval "$ac_prev=\$ac_option"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_prev=
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley continue
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley fi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley case "$ac_option" in
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff *) ac_optarg= ;;
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff esac
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff # Accept the important Cygnus configure options, so we can diagnose typos.
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley case "$ac_option" in
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley -bindir | --bindir | --bindi | --bind | --bin | --bi)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=bindir ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews bindir="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -build | --build | --buil | --bui | --bu)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=build ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -build=* | --build=* | --buil=* | --bui=* | --bu=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews build="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -cache-file | --cache-file | --cache-fil | --cache-fi \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=cache_file ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cache_file="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prev=datadir ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --da=*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews datadir="$ac_optarg" ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -disable-* | --disable-*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews # Reject names that are not valid shell variable names.
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews fi
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ac_feature=`echo $ac_feature| sed 's/-/_/g'`
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews eval "enable_${ac_feature}=no" ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -enable-* | --enable-*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews # Reject names that are not valid shell variable names.
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews fi
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ac_feature=`echo $ac_feature| sed 's/-/_/g'`
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews case "$ac_option" in
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews *=*) ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews *) ac_optarg=yes ;;
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews esac
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews eval "enable_${ac_feature}='$ac_optarg'" ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews | --exec | --exe | --ex)
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews ac_prev=exec_prefix ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews | --exec=* | --exe=* | --ex=*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews exec_prefix="$ac_optarg" ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -gas | --gas | --ga | --g)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews # Obsolete; use --with-gas.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews with_gas=yes ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -help | --help | --hel | --he)
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington # Omit some internal or obsolete options to make the list less imposing.
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington # This message is too long to be a string in the A/UX 3.1 sh.
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington cat << EOF
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian WellingtonUsage: configure [options] [host]
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian WellingtonOptions: [defaults in brackets after descriptions]
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsConfiguration:
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --cache-file=FILE cache test results in FILE
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --help print this message
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --no-create do not create output files
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --quiet, --silent do not print \`checking...' messages
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff --version print the version of autoconf that created configure
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian WellingtonDirectory and file names:
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff --prefix=PREFIX install architecture-independent files in PREFIX
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington [$ac_default_prefix]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington [same as prefix]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --bindir=DIR user executables in DIR [EPREFIX/bin]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --datadir=DIR read-only architecture-independent data in DIR
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews [PREFIX/share]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews --sharedstatedir=DIR modifiable architecture-independent data in DIR
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington [PREFIX/com]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --libdir=DIR object code libraries in DIR [EPREFIX/lib]
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington --includedir=DIR C header files in DIR [PREFIX/include]
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson --infodir=DIR info documentation in DIR [PREFIX/info]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --mandir=DIR man documentation in DIR [PREFIX/man]
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews --srcdir=DIR find the sources in DIR [configure dir or ..]
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews --program-prefix=PREFIX prepend PREFIX to installed program names
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews --program-suffix=SUFFIX append SUFFIX to installed program names
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson --program-transform-name=PROGRAM
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellington run sed PROGRAM on installed program names
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian WellingtonEOF
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington cat << EOF
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian WellingtonHost type:
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --build=BUILD configure for building on BUILD [BUILD=HOST]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --host=HOST configure for HOST [guessed]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington --target=TARGET configure for TARGET [TARGET=HOST]
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian WellingtonFeatures and packages:
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington --x-includes=DIR X include files are in DIR
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson --x-libraries=DIR X library files are in DIR
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas GustafssonEOF
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington if test -n "$ac_help"; then
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington echo "--enable and --with options recognized:$ac_help"
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington fi
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington exit 0 ;;
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington -host | --host | --hos | --ho)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=host ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington -host=* | --host=* | --hos=* | --ho=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews host="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington -includedir | --includedir | --includedi | --included | --include \
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington | --includ | --inclu | --incl | --inc)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prev=includedir ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --includ=* | --inclu=* | --incl=* | --inc=*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews includedir="$ac_optarg" ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington -infodir | --infodir | --infodi | --infod | --info | --inf)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=infodir ;;
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington infodir="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -libdir | --libdir | --libdi | --libd)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington ac_prev=libdir ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington -libdir=* | --libdir=* | --libdi=* | --libd=*)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington libdir="$ac_optarg" ;;
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington | --libexe | --libex | --libe)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington ac_prev=libexecdir ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington | --libexe=* | --libex=* | --libe=*)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington libexecdir="$ac_optarg" ;;
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews -localstatedir | --localstatedir | --localstatedi | --localstated \
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews | --localstate | --localstat | --localsta | --localst \
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews | --locals | --local | --loca | --loc | --lo)
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews ac_prev=localstatedir ;;
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews | --localstate=* | --localstat=* | --localsta=* | --localst=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington localstatedir="$ac_optarg" ;;
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington ac_prev=mandir ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington mandir="$ac_optarg" ;;
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews -nfp | --nfp | --nf)
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews # Obsolete; use --without-fp.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews with_fp=no ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
50105afc551903541608b11851d73278b23579a3Mark Andrews | --no-cr | --no-c)
50105afc551903541608b11851d73278b23579a3Mark Andrews no_create=yes ;;
50105afc551903541608b11851d73278b23579a3Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
a05f23d07e1b60a1d88119678111a47014480611Mark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
a05f23d07e1b60a1d88119678111a47014480611Mark Andrews no_recursion=yes ;;
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
a05f23d07e1b60a1d88119678111a47014480611Mark Andrews | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
a05f23d07e1b60a1d88119678111a47014480611Mark Andrews | --oldin | --oldi | --old | --ol | --o)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=oldincludedir ;;
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington oldincludedir="$ac_optarg" ;;
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington ac_prev=prefix ;;
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington prefix="$ac_optarg" ;;
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -program-prefix | --program-prefix | --program-prefi | --program-pref \
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington | --program-pre | --program-pr | --program-p)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=program_prefix ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington -program-prefix=* | --program-prefix=* | --program-prefi=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews program_prefix="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -program-suffix | --program-suffix | --program-suffi | --program-suff \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --program-suf | --program-su | --program-s)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prev=program_suffix ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -program-suffix=* | --program-suffix=* | --program-suffi=* \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews program_suffix="$ac_optarg" ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -program-transform-name | --program-transform-name \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --program-transform-nam | --program-transform-na \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --program-transform-n | --program-transform- \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --program-transform | --program-transfor \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-transfo | --program-transf \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-trans | --program-tran \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --progr-tra | --program-tr | --program-t)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=program_transform_name ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -program-transform-name=* | --program-transform-name=* \
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews | --program-transform-nam=* | --program-transform-na=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-transform-n=* | --program-transform-=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-transform=* | --program-transfor=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-transfo=* | --program-transf=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --program-trans=* | --program-tran=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --progr-tra=* | --program-tr=* | --program-t=*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews program_transform_name="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -q | -quiet | --quiet | --quie | --qui | --qu | --q \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | -silent | --silent | --silen | --sile | --sil)
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington silent=yes ;;
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews ac_prev=sbindir ;;
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews | --sbi=* | --sb=*)
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews sbindir="$ac_optarg" ;;
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -sharedstatedir | --sharedstatedir | --sharedstatedi \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --sharedst | --shareds | --shared | --share | --shar \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --sha | --sh)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prev=sharedstatedir ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews | --sha=* | --sh=*)
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews sharedstatedir="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -site | --site | --sit)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prev=site ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -site=* | --site=* | --sit=*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews site="$ac_optarg" ;;
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews ac_prev=srcdir ;;
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews srcdir="$ac_optarg" ;;
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --syscon | --sysco | --sysc | --sys | --sy)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prev=sysconfdir ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews sysconfdir="$ac_optarg" ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews -target | --target | --targe | --targ | --tar | --ta | --t)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ac_prev=target ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews target="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -v | -verbose | --verbose | --verbos | --verbo | --verb)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews verbose=yes ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -version | --version | --versio | --versi | --vers)
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater echo "configure generated by autoconf version 2.13"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews exit 0 ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -with-* | --with-*)
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews # Reject names that are not valid shell variable names.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews case "$ac_option" in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *=*) ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *) ac_optarg=yes ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews esac
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews eval "with_${ac_package}='$ac_optarg'" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -without-* | --without-*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_package=`echo $ac_option|sed -e 's/-*without-//'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Reject names that are not valid shell variable names.
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews fi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_package=`echo $ac_package| sed 's/-/_/g'`
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews eval "with_${ac_package}=no" ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews --x)
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington # Obsolete; use --with-x.
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington with_x=yes ;;
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --x-incl | --x-inc | --x-in | --x-i)
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington ac_prev=x_includes ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington x_includes="$ac_optarg" ;;
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington -x-libraries | --x-libraries | --x-librarie | --x-librari \
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington ac_prev=x_libraries ;;
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington x_libraries="$ac_optarg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellington ;;
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson *)
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews echo "configure: warning: $ac_option: invalid host type" 1>&2
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews fi
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews if test "x$nonopt" != xNONE; then
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
76c8294c81fb48b1da6e1fc5b83322a4cedb8e58Andreas Gustafsson fi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington nonopt="$ac_option"
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington esac
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtondone
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -n "$ac_prev"; then
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellingtonfi
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssontrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington# File descriptor usage:
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington# 0 standard input
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 1 file creation
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 2 errors and warnings
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 3 some systems may open it to /dev/tty
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 4 used on the Kubota Titan
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 6 checking for... messages and results
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# 5 compiler messages saved in config.log
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test "$silent" = yes; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews exec 6>/dev/null
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews exec 6>&1
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsexec 5>./config.log
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "\
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsThis file contains any messages produced by compilers while
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrunning configure, to aid debugging if configure makes a mistake.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews" 1>&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Strip out --no-create and --no-recursion so they do not pile up.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Also quote any args containing shell metacharacters.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_configure_args=
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfor ac_arg
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsdo
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews case "$ac_arg" in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --no-cr | --no-c) ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_configure_args="$ac_configure_args '$ac_arg'" ;;
17a3fcecd069130a5f318685493b0db5639a77c9Brian Wellington *) ac_configure_args="$ac_configure_args $ac_arg" ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews esac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsdone
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews# NLS nuisances.
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews# Only set these to C if already set. These must not be set unconditionally
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# because not all systems understand e.g. LANG=C (notably SCO).
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Non-C LC_CTYPE values break the ctype check.
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrewsif test "${LANG+set}" = set; then LANG=C; export LANG; fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
50105afc551903541608b11851d73278b23579a3Mark Andrewsif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# confdefs.h avoids OS command line length limits that DEFS can exceed.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -rf conftest* confdefs.h
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# AIX cpp loses on an empty file, so make sure it contains at least a newline.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho > confdefs.h
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# A filename unique to this package, relative to the directory that
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# configure is in, which we can look for to find out if srcdir is correct.
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonac_unique_file=lib/dns/name.c
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Find the source files, if location was not specified.
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test -z "$srcdir"; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington ac_srcdir_defaulted=yes
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews # Try the directory containing this script, then its parent.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_prog=$0
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews srcdir=$ac_confdir
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews if test ! -r $srcdir/$ac_unique_file; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews srcdir=..
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews fi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_srcdir_defaulted=no
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test ! -r $srcdir/$ac_unique_file; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington if test "$ac_srcdir_defaulted" = yes; then
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington else
421e4cf66e4cba0b0751a34a9c027e39fe0474f9Mark Andrews { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉 fi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewssrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews# Prefer explicitly selected file to automatically selected ones.
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test -z "$CONFIG_SITE"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews if test "x$prefix" != xNONE; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews else
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c99d9017ba00099bfa89e1ed53e63a5cb07d28d5Mark Andrews fi
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsfi
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellingtonfor ac_site_file in $CONFIG_SITE; do
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson if test -r "$ac_site_file"; then
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews echo "loading site script $ac_site_file"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews . "$ac_site_file"
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington fi
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsdone
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsif test -r "$cache_file"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "loading cache $cache_file"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews . $cache_file
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington echo "creating cache $cache_file"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews > $cache_file
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_ext=c
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_cpp='$CPP $CPPFLAGS'
d1cbf714097e900ed1703529584d3e1a50e8a4a8Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtoncross_compiling=$ac_cv_prog_cc_cross
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonac_exeext=
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_objext=o
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_n= ac_c='
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews' ac_t=' '
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews else
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_n=-n ac_c= ac_t=
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews fi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_n= ac_c='\c' ac_t=
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews
638fe804a524ee0c028863c0301b999c79de7651Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_aux_dir=
638fe804a524ee0c028863c0301b999c79de7651Mark Andrewsfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
638fe804a524ee0c028863c0301b999c79de7651Mark Andrews if test -f $ac_dir/install-sh; then
638fe804a524ee0c028863c0301b999c79de7651Mark Andrews ac_aux_dir=$ac_dir
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_install_sh="$ac_aux_dir/install-sh -c"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews break
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington elif test -f $ac_dir/install.sh; then
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews ac_aux_dir=$ac_dir
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews ac_install_sh="$ac_aux_dir/install.sh -c"
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews break
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews fi
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsdone
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsif test -z "$ac_aux_dir"; then
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsfi
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsac_config_guess=$ac_aux_dir/config.guess
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsac_config_sub=$ac_aux_dir/config.sub
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews# Make sure we can run config.sub.
676619a22fbc760875adb00b58aaef6a22ced18aMark Andrewsif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking host system type""... $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "configure:672: checking host system type" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewshost_alias=$host
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewscase "$host_alias" in
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsNONE)
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews case $nonopt in
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews NONE)
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews fi ;;
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews *) host_alias=$nonopt ;;
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews esac ;;
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsesac
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewshost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewshost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewshost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "$ac_t""$host" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonecho "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat > conftestmake <<\EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsall:
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington @echo 'ac_maketemp="${MAKE}"'
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewseval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif test -n "$ac_maketemp"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval ac_cv_prog_make_${ac_make}_set=yes
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval ac_cv_prog_make_${ac_make}_set=no
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftestmake
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""yes" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews SET_MAKE=
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews SET_MAKE="MAKE=${MAKE-make}"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Extract the first word of "ranlib", so it can be a program name with args.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsset dummy ranlib; ac_word=$2
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "configure:723: checking for $ac_word" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews if test -n "$RANLIB"; then
95b484c9580d06eb2f9735a22e9841389c2859baMark Andrews ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_dummy="$PATH"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews for ac_dir in $ac_dummy; do
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews test -z "$ac_dir" && ac_dir=.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews if test -f $ac_dir/$ac_word; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_cv_prog_RANLIB="ranlib"
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington break
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington fi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews done
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews IFS="$ac_save_ifs"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsRANLIB="$ac_cv_prog_RANLIB"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test -n "$RANLIB"; then
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington echo "$ac_t""$RANLIB" 1>&6
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonelse
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington echo "$ac_t""no" 1>&6
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonfi
216030f2849b0812910fbc1817ca17208a112663Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Find a good install program. We prefer a C program (faster),
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington# so one script is as good as another. But avoid the broken or
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# incompatible versions:
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington# SysV /etc/install, /usr/sbin/install
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington# SunOS /usr/etc/install
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington# IRIX /sbin/install
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington# AIX /bin/install
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b0d31c78bc24080d4c470a8bd98862375f6e3055Mark Andrews# ./install, which can be erroneously created by make from ./install.sh.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellingtonecho "configure:762: checking for a BSD compatible install" >&5
8839b6acbf816fedc15b8e9e1c71fd606a9cd8eaBrian Wellingtonif test -z "$INSTALL"; then
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson echo $ac_n "(cached) $ac_c" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonelse
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews for ac_dir in $PATH; do
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews # Account for people who put trailing slashes in PATH elements.
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson case "$ac_dir/" in
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
b0d31c78bc24080d4c470a8bd98862375f6e3055Mark Andrews *)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # OSF1 and SCO ODT 3.0 have their own names for install.
f15af68028adc665d3bdddf955fc52bad83f0514Brian Wellington # Don't use installbsd from OSF since it installs stuff as root
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # by default.
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews for ac_prog in ginstall scoinst install; do
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -f $ac_dir/$ac_prog; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test $ac_prog = install &&
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington # AIX install. It has an incompatible calling convention.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews :
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews else
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater ac_cv_path_install="$ac_dir/$ac_prog -c"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews break 2
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews fi
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington fi
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews done
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ;;
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews esac
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews done
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater IFS="$ac_save_IFS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews if test "${ac_cv_path_install+set}" = set; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews INSTALL="$ac_cv_path_install"
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews else
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews # As a last resort, use the slow shell script. We don't cache a
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews # path for INSTALL within a source directory, because that will
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews # break other packages using the cache if that directory is
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews # removed, or if the path is relative.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews INSTALL="$ac_install_sh"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews fi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "$ac_t""$INSTALL" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# It thinks the first close brace ends the variable substitution.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewstest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtontest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
94766449d6125cd5870891b70d46573e5deaceb4Brian WellingtonSTD_CINCLUDES=""
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsSTD_CDEFINES=""
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsSTD_CWARNINGS=""
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellington# Extract the first word of "ar", so it can be a program name with args.
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellingtonset dummy ar; ac_word=$2
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellingtonecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "configure:825: checking for $ac_word" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews case "$AR" in
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews /*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_cv_path_AR="$AR" # Let the user override the test with a path.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ?:/*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews *)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_dummy="$PATH"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews for ac_dir in $ac_dummy; do
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews test -z "$ac_dir" && ac_dir=.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews if test -f $ac_dir/$ac_word; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ac_cv_path_AR="$ac_dir/$ac_word"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews break
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews fi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews done
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews IFS="$ac_save_ifs"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsesac
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsAR="$ac_cv_path_AR"
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test -n "$AR"; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington echo "$ac_t""$AR" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsARFLAGS="cruv"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif test "X$CC" = "X" ; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews case "$host" in
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *-dec-osf*)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CC="cc"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *-sun-solaris*)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews for ac_dir in $PATH; do
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews test -z "$ac_dir" && ac_dir=.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews case "$ac_dir" in
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews /usr/ucb)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews # exclude
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews if test -f "$ac_dir/cc"; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CC="$ac_dir/cc"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews break
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews fi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews esac
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews done
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews IFS="$ac_save_ifs"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *-hp-hpux*)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CC="cc"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews mips-sgi-irix*)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CC="cc"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews esac
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewscase "$host" in
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *-netbsd*)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CC="gcc"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo $ac_n "checking which thread library to use""... $ac_c" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsecho "configure:898: checking which thread library to use" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews # Check whether --with-mit-pthreads or --without-mit-pthreads was given.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif test "${with_mit_pthreads+set}" = set; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews withval="$with_mit_pthreads"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_mit_pthreads="$withval"
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updaterelse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_mit_pthreads="no"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews # Check whether --with-ptl2 or --without-ptl2 was given.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif test "${with_ptl2+set}" = set; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews withval="$with_ptl2"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_ptl2="$withval"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_ptl2="no"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews case "$use_mit_pthreads+$use_ptl2" in
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews no+no)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews if test -d /usr/pkg/pthreads
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_mit_pthreads="yes"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews fi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews if test -d /usr/pkg/PTL
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews use_ptl2="yes"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews fi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews esac
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews case "$use_mit_pthreads+$use_ptl2" in
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews yes+no)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""mit-pthreads" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews pkg="/usr/pkg/pthreads"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews lib1="-L$pkg/lib -Wl,-R$pkg/lib"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews lib2="-lpthread -lm -lgcc -lpthread"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews LIBS="$lib1 $lib2 $LIBS"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews CPPFLAGS="-I$pkg/include $CPPFLAGS"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews STD_CINCLUDES="-I$pkg/include"
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater ;;
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater no+yes)
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater echo "$ac_t""PTL2" 1>&6
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater CC=ptlgcc
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews *)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews { echo "configure: error: no thread library.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsPlease choose a thread library using one of
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews configure --with-mit-pthreads
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews configure --with-ptl2
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews" 1>&2; exit 1; }
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews esac
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsesac
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews# Extract the first word of "gcc", so it can be a program name with args.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsset dummy gcc; ac_word=$2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:962: checking for $ac_word" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6f071989da905bb5ab2c6dfd01a71ee5ecea5918Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -n "$CC"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_dummy="$PATH"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews for ac_dir in $ac_dummy; do
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews test -z "$ac_dir" && ac_dir=.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -f $ac_dir/$ac_word; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_prog_CC="gcc"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington break
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews done
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington IFS="$ac_save_ifs"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsCC="$ac_cv_prog_CC"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -n "$CC"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""$CC" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test -z "$CC"; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington # Extract the first word of "cc", so it can be a program name with args.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsset dummy cc; ac_word=$2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:992: checking for $ac_word" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -n "$CC"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_prog_CC="$CC" # Let the user override the test.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prog_rejected=no
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_dummy="$PATH"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington for ac_dir in $ac_dummy; do
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington test -z "$ac_dir" && ac_dir=.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews if test -f $ac_dir/$ac_word; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_prog_rejected=yes
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews continue
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews fi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_prog_CC="cc"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews break
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews fi
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington done
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington IFS="$ac_save_ifs"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test $ac_prog_rejected = yes; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # We found a bogon in the path, so make sure we never use it.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews set dummy $ac_cv_prog_CC
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews shift
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test $# -gt 0; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # We chose a different compiler from the bogus one.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # However, it has the same basename, so the bogon will be chosen
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # first if we set CC to just the basename; use the full file name.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews shift
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews set dummy "$ac_dir/$ac_word" "$@"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews shift
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ac_cv_prog_CC="$@"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews fi
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellingtonfi
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellingtonfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas GustafssonCC="$ac_cv_prog_CC"
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssonif test -n "$CC"; then
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson echo "$ac_t""$CC" 1>&6
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssonelse
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington echo "$ac_t""no" 1>&6
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssonfi
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews if test -z "$CC"; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley case "`uname -s`" in
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley *win32* | *WIN32*)
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # Extract the first word of "cl", so it can be a program name with args.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyset dummy cl; ac_word=$2
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrewsecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonecho "configure:1043: checking for $ac_word" >&5
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonelse
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington if test -n "$CC"; then
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington ac_cv_prog_CC="$CC" # Let the user override the test.
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonelse
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington ac_dummy="$PATH"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley for ac_dir in $ac_dummy; do
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley test -z "$ac_dir" && ac_dir=.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley if test -f $ac_dir/$ac_word; then
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington ac_cv_prog_CC="cl"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley break
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley fi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley done
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence IFS="$ac_save_ifs"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
5c29047792191d6141f69b2684314d0b762fedebBrian WellingtonCC="$ac_cv_prog_CC"
5c29047792191d6141f69b2684314d0b762fedebBrian Wellingtonif test -n "$CC"; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo "$ac_t""$CC" 1>&6
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellingtonelse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo "$ac_t""no" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington ;;
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley esac
63bf060be4ff2a7ade02fd86abb98694a5afc250Brian Wellington fi
63bf060be4ff2a7ade02fd86abb98694a5afc250Brian Wellington test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonfi
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonecho "configure:1075: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonac_ext=c
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonac_cpp='$CPP $CPPFLAGS'
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleycross_compiling=$ac_cv_prog_cc_cross
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington
368b37b616234fce3d23099eb180f1dd38e1fb62Mark Andrewscat > conftest.$ac_ext << EOF
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#line 1086 "configure"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include "confdefs.h"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleymain(){return(0);}
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian WellingtonEOF
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonif { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington ac_cv_prog_cc_works=yes
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington # If we can't run a trivial program, we are probably using a cross compiler.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley if (./conftest; exit) 2>/dev/null; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_cv_prog_cc_cross=no
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley else
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_cv_prog_cc_cross=yes
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews fi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington echo "configure: failed program was:" >&5
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews cat conftest.$ac_ext >&5
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_cv_prog_cc_works=no
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉fi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyrm -fr conftest*
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyac_ext=c
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyac_cpp='$CPP $CPPFLAGS'
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtoncross_compiling=$ac_cv_prog_cc_cross
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonif test $ac_cv_prog_cc_works = no; then
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
a9ba7e65644c50e1549b38150ba8d4787e1fe643Brian Wellingtonfi
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho "configure:1117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscross_compiling=$ac_cv_prog_cc_cross
78951552dccf0d0004d61072bbc71fa4b1aab30fAndreas Gustafsson
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1122: checking whether we are using GNU C" >&5
78951552dccf0d0004d61072bbc71fa4b1aab30fAndreas Gustafssonif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
78951552dccf0d0004d61072bbc71fa4b1aab30fAndreas Gustafsson cat > conftest.c <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#ifdef __GNUC__
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews yes;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#endif
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_prog_gcc=yes
a9ba7e65644c50e1549b38150ba8d4787e1fe643Brian Wellingtonelse
a9ba7e65644c50e1549b38150ba8d4787e1fe643Brian Wellington ac_cv_prog_gcc=no
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsecho "$ac_t""$ac_cv_prog_gcc" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif test $ac_cv_prog_gcc = yes; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley GCC=yes
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
77c67dfb2607618f5e7940486daebafd42a502abBrian Wellington GCC=
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonac_test_CFLAGS="${CFLAGS+set}"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyac_save_CFLAGS="$CFLAGS"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyCFLAGS=
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1150: checking whether ${CC-cc} accepts -g" >&5
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo 'void f(){}' > conftest.c
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington ac_cv_prog_cc_g=yes
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellingtonelse
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington ac_cv_prog_cc_g=no
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyrm -f conftest*
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonif test "$ac_test_CFLAGS" = set; then
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington CFLAGS="$ac_save_CFLAGS"
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonelif test $ac_cv_prog_cc_g = yes; then
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington if test "$GCC" = yes; then
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington CFLAGS="-g -O2"
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington else
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington CFLAGS="-g"
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington fi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley if test "$GCC" = yes; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley CFLAGS="-O2"
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson else
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington CFLAGS=
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington fi
77c67dfb2607618f5e7940486daebafd42a502abBrian Wellingtonfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfor ac_prog in 'bison -y' byacc
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleydo
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# Extract the first word of "$ac_prog", so it can be a program name with args.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyset dummy $ac_prog; ac_word=$2
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho "configure:1186: checking for $ac_word" >&5
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo $ac_n "(cached) $ac_c" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley if test -n "$YACC"; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_cv_prog_YACC="$YACC" # Let the user override the test.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_dummy="$PATH"
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington for ac_dir in $ac_dummy; do
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington test -z "$ac_dir" && ac_dir=.
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington if test -f $ac_dir/$ac_word; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_cv_prog_YACC="$ac_prog"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley break
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley fi
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington done
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington IFS="$ac_save_ifs"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyYACC="$ac_cv_prog_YACC"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif test -n "$YACC"; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo "$ac_t""$YACC" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
77c67dfb2607618f5e7940486daebafd42a502abBrian Wellington echo "$ac_t""no" 1>&6
77c67dfb2607618f5e7940486daebafd42a502abBrian Wellingtonfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtontest -n "$YACC" && break
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtondone
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleytest -n "$YACC" || YACC="yacc"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1218: checking how to run the C preprocessor" >&5
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews# On Suns, sometimes $CPP names a directory.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -n "$CPP" && test -d "$CPP"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews CPP=
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -z "$CPP"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # This must be in double quotes, not single quotes, because CPP may get
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington # substituted into the Makefile and "${CC-cc}" will confuse make.
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington CPP="${CC-cc} -E"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # On the NeXT, cc -E runs the code through the compiler's parser,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # not just through cpp.
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews cat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1233 "configure"
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews#include "confdefs.h"
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews#include <assert.h>
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsSyntax Error
25496cebadd170fd5fae2aabf0469eef551259aaBrian WellingtonEOF
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellingtonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -z "$ac_err"; then
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews :
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellingtonelse
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington echo "$ac_err" >&5
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington echo "configure: failed program was:" >&5
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington cat conftest.$ac_ext >&5
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington rm -rf conftest*
368b37b616234fce3d23099eb180f1dd38e1fb62Mark Andrews CPP="${CC-cc} -E -traditional-cpp"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat > conftest.$ac_ext <<EOF
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews#line 1250 "configure"
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include <assert.h>
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsSyntax Error
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews{ (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -z "$ac_err"; then
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews :
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewselse
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington echo "$ac_err" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat conftest.$ac_ext >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews CPP="${CC-cc} -nologo -E"
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington cat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1267 "configure"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include <assert.h>
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsSyntax Error
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsEOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews{ (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test -z "$ac_err"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews :
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_err" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews CPP=/lib/cpp
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -f conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews ac_cv_prog_CPP="$CPP"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews CPP="$ac_cv_prog_CPP"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews ac_cv_prog_CPP="$CPP"
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsfi
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsecho "$ac_t""$CPP" 1>&6
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsecho "configure:1298: checking for ANSI C header files" >&5
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrewsif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
cc7d91bd5c6b9be5a3c67a99112b885602c24873Mark Andrewselse
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews cat > conftest.$ac_ext <<EOF
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews#line 1303 "configure"
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews#include "confdefs.h"
fabf2ee6b01ee06a0de940b83d53cf57f9f79265Mark Andrews#include <stdlib.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <stdarg.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <string.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <float.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews{ (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellingtonif test -z "$ac_err"; then
25496cebadd170fd5fae2aabf0469eef551259aaBrian Wellington rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_cv_header_stdc=yes
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
3ce4b8b03ebd017c1d1b320429219ba91e705ea4Andreas Gustafsson echo "$ac_err" >&5
3ce4b8b03ebd017c1d1b320429219ba91e705ea4Andreas Gustafsson echo "configure: failed program was:" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
3ce4b8b03ebd017c1d1b320429219ba91e705ea4Andreas Gustafsson ac_cv_header_stdc=no
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
3ce4b8b03ebd017c1d1b320429219ba91e705ea4Andreas Gustafssonrm -f conftest*
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif test $ac_cv_header_stdc = yes; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleycat > conftest.$ac_ext <<EOF
c03bb27f0675a6e60ceea66b451548e8481bc05cMark Andrews#line 1328 "configure"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include "confdefs.h"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include <string.h>
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyEOF
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley egrep "memchr" >/dev/null 2>&1; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley :
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson rm -rf conftest*
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence ac_cv_header_stdc=no
78951552dccf0d0004d61072bbc71fa4b1aab30fAndreas Gustafssonfi
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencerm -f conftest*
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonfi
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif test $ac_cv_header_stdc = yes; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssoncat > conftest.$ac_ext <<EOF
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson#line 1346 "configure"
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson#include "confdefs.h"
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson#include <stdlib.h>
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas GustafssonEOF
368b37b616234fce3d23099eb180f1dd38e1fb62Mark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley egrep "free" >/dev/null 2>&1; then
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington :
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonelse
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington rm -rf conftest*
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington ac_cv_header_stdc=no
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonfi
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonrm -f conftest*
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafssonfi
1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6Andreas Gustafsson
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceif test $ac_cv_header_stdc = yes; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif test "$cross_compiling" = yes; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews :
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat > conftest.$ac_ext <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#line 1367 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <ctype.h>
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssonint main () { int i; for (i = 0; i < 256; i++)
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafssonif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
0a3e2e1d590dac7fb011e72bd3a4982c179d8e68Brian Wellingtonexit (0); }
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyEOF
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonthen
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington :
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonelse
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington echo "configure: failed program was:" >&5
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews cat conftest.$ac_ext >&5
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews rm -fr conftest*
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews ac_cv_header_stdc=no
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrewsfi
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrewsrm -fr conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonfi
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonfi
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellington
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "$ac_t""$ac_cv_header_stdc" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test $ac_cv_header_stdc = yes; then
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellington cat >> confdefs.h <<\EOF
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellington#define STDC_HEADERS 1
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian WellingtonEOF
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellington
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonfi
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellington
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonfor ac_hdr in fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtondo
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonecho "configure:1405: checking for $ac_hdr" >&5
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellingtonelse
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellington cat > conftest.$ac_ext <<EOF
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellington#line 1410 "configure"
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington#include "confdefs.h"
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington#include <$ac_hdr>
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian WellingtonEOF
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellingtonac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington{ (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ba393f380e4cd93029f6a7291d6c2d14f9022b3cBrian Wellingtonac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellingtonif test -z "$ac_err"; then
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson rm -rf conftest*
d6643ef587324e40d8bda63e9f80be8141e101edBrian Wellington eval "ac_cv_header_$ac_safe=yes"
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellingtonelse
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington echo "$ac_err" >&5
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington echo "configure: failed program was:" >&5
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington cat conftest.$ac_ext >&5
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington rm -rf conftest*
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington eval "ac_cv_header_$ac_safe=no"
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellingtonfi
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellingtonrm -f conftest*
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellingtonfi
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellingtonif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington echo "$ac_t""yes" 1>&6
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
75f6c57d9544aa77a3b1a04587b4702c07343c90Brian Wellington cat >> confdefs.h <<EOF
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington#define $ac_tr_hdr 1
e83cae7fa837e4757c687035d6f6c0900f152749Brian WellingtonEOF
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellingtonelse
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington echo "$ac_t""no" 1>&6
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellingtonfi
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtondone
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonecho $ac_n "checking for working const""... $ac_c" 1>&6
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellingtonecho "configure:1443: checking for working const" >&5
187604c1adfe841d909d4a8453b6900e652f7f6dBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat > conftest.$ac_ext <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#line 1448 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint main() {
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews/* Ultrix mips cc rejects this. */
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewstypedef int charset[2]; const charset x;
538fea1c91c68c0a5569c7b8552c8fd0490055efBrian Wellington/* SunOS 4.1.1 cc rejects this. */
538fea1c91c68c0a5569c7b8552c8fd0490055efBrian Wellingtonchar const *const *ccp;
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonchar **p;
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellington/* NEC SVR4.0.2 mips cc rejects this. */
538fea1c91c68c0a5569c7b8552c8fd0490055efBrian Wellingtonstruct point {int x, y;};
25276bd1ecb372b82c9235648e5defab0655dcd5Mark Andrewsstatic struct point const zero = {0,0};
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson/* AIX XL C 1.02.0.0 rejects this.
777ac454c0cdec27dc11d80b9b2a8d7239d833a8Brian Wellington It does not let you subtract one const X* pointer from another in an arm
e49c834de8cdf92d4b85ef0fbf1d9dc59620a342Brian Wellington of an if-expression whose if-part is not a constant expression */
25276bd1ecb372b82c9235648e5defab0655dcd5Mark Andrewsconst char *g = "string";
25276bd1ecb372b82c9235648e5defab0655dcd5Mark Andrewsccp = &g + (g ? g-g : 0);
93c786e0924aeca2c258e32355349e6ae60a0f72Andreas Gustafsson/* HPUX 7.0 cc rejects these. */
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington++ccp;
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonp = (char**) ccp;
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellingtonccp = (char const *const *) p;
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington{ /* SCO 3.2v4 cc rejects this. */
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington char *t;
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington char const *s = 0 ? (char *) 0 : (char const *) 0;
e1f16346db02486f751c6db683fffe53c866c186Andreas Gustafsson
e1f16346db02486f751c6db683fffe53c866c186Andreas Gustafsson *t++ = 0;
e1f16346db02486f751c6db683fffe53c866c186Andreas Gustafsson}
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley int x[] = {25, 17};
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews const int *foo = &x[0];
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ++foo;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews}
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
50105afc551903541608b11851d73278b23579a3Mark Andrews typedef const int *iptr;
50105afc551903541608b11851d73278b23579a3Mark Andrews iptr p = 0;
50105afc551903541608b11851d73278b23579a3Mark Andrews ++p;
50105afc551903541608b11851d73278b23579a3Mark Andrews}
50105afc551903541608b11851d73278b23579a3Mark Andrews{ /* AIX XL C 1.02.0.0 rejects this saying
50105afc551903541608b11851d73278b23579a3Mark Andrews "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
50105afc551903541608b11851d73278b23579a3Mark Andrews struct s { int j; const int *ap[3]; };
50105afc551903541608b11851d73278b23579a3Mark Andrews struct s *b; b->j = 5;
50105afc551903541608b11851d73278b23579a3Mark Andrews}
50105afc551903541608b11851d73278b23579a3Mark Andrews{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
50105afc551903541608b11851d73278b23579a3Mark Andrews const int foo = 10;
50105afc551903541608b11851d73278b23579a3Mark Andrews}
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrews; return 0; }
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ac_cv_c_const=yes
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews echo "configure: failed program was:" >&5
50105afc551903541608b11851d73278b23579a3Mark Andrews cat conftest.$ac_ext >&5
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrews ac_cv_c_const=no
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrewsrm -f conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsecho "$ac_t""$ac_cv_c_const" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif test $ac_cv_c_const = no; then
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews cat >> confdefs.h <<\EOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#define const
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsEOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews
fcbc5d2353971f65726a9e86c1f37c813f9c2176Mark Andrewsfi
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews
fcbc5d2353971f65726a9e86c1f37c813f9c2176Mark Andrewsecho $ac_n "checking for inline""... $ac_c" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsecho "configure:1518: checking for inline" >&5
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewselse
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews ac_cv_c_inline=no
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsfor ac_kw in inline __inline__ __inline; do
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews cat > conftest.$ac_ext <<EOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#line 1525 "configure"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#include "confdefs.h"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews
394f4aec2189750d7f861d00f97fe28ffcd9f659Mark Andrewsint main() {
394f4aec2189750d7f861d00f97fe28ffcd9f659Mark Andrews} $ac_kw foo() {
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews; return 0; }
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsEOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif { (eval echo configure:1532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews rm -rf conftest*
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews ac_cv_c_inline=$ac_kw; break
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews echo "configure: failed program was:" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat conftest.$ac_ext >&5
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrewsrm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsdone
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrews
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrewsecho "$ac_t""$ac_cv_c_inline" 1>&6
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrewscase "$ac_cv_c_inline" in
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews inline | yes) ;;
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater no) cat >> confdefs.h <<\EOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#define inline
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsEOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews ;;
50105afc551903541608b11851d73278b23579a3Mark Andrews *) cat >> confdefs.h <<EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#define inline $ac_cv_c_inline
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrews ;;
50105afc551903541608b11851d73278b23579a3Mark Andrewsesac
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsecho $ac_n "checking for size_t""... $ac_c" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewsecho "configure:1558: checking for size_t" >&5
50105afc551903541608b11851d73278b23579a3Mark Andrewsif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
50105afc551903541608b11851d73278b23579a3Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews cat > conftest.$ac_ext <<EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#line 1563 "configure"
50105afc551903541608b11851d73278b23579a3Mark Andrews#include "confdefs.h"
50105afc551903541608b11851d73278b23579a3Mark Andrews#include <sys/types.h>
50105afc551903541608b11851d73278b23579a3Mark Andrews#if STDC_HEADERS
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews#include <stdlib.h>
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews#include <stddef.h>
50105afc551903541608b11851d73278b23579a3Mark Andrews#endif
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50105afc551903541608b11851d73278b23579a3Mark Andrews egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrews ac_cv_type_size_t=yes
50105afc551903541608b11851d73278b23579a3Mark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ac_cv_type_size_t=no
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsrm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "$ac_t""$ac_cv_type_size_t" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewsif test $ac_cv_type_size_t = no; then
50105afc551903541608b11851d73278b23579a3Mark Andrews cat >> confdefs.h <<\EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#define size_t unsigned
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrews
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrewsecho $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewsecho "configure:1591: checking whether time.h and sys/time.h may both be included" >&5
50105afc551903541608b11851d73278b23579a3Mark Andrewsif eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat > conftest.$ac_ext <<EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#line 1596 "configure"
50105afc551903541608b11851d73278b23579a3Mark Andrews#include "confdefs.h"
50105afc551903541608b11851d73278b23579a3Mark Andrews#include <sys/types.h>
50105afc551903541608b11851d73278b23579a3Mark Andrews#include <sys/time.h>
50105afc551903541608b11851d73278b23579a3Mark Andrews#include <time.h>
50105afc551903541608b11851d73278b23579a3Mark Andrewsint main() {
50105afc551903541608b11851d73278b23579a3Mark Andrewsstruct tm *tp;
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews; return 0; }
f1263d2aa405087e74caf001cd443079f50ee903Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrewsif { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrews ac_cv_header_time=yes
50105afc551903541608b11851d73278b23579a3Mark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews echo "configure: failed program was:" >&5
50105afc551903541608b11851d73278b23579a3Mark Andrews cat conftest.$ac_ext >&5
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrews ac_cv_header_time=no
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrewsrm -f conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsecho "$ac_t""$ac_cv_header_time" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewsif test $ac_cv_header_time = yes; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews cat >> confdefs.h <<\EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#define TIME_WITH_SYS_TIME 1
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrews
50105afc551903541608b11851d73278b23579a3Mark Andrewsecho $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrewsecho "configure:1627: checking for pthread_create in -lpthread" >&5
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrewsac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
50105afc551903541608b11851d73278b23579a3Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
50105afc551903541608b11851d73278b23579a3Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
50105afc551903541608b11851d73278b23579a3Mark Andrewselse
50105afc551903541608b11851d73278b23579a3Mark Andrews ac_save_LIBS="$LIBS"
50105afc551903541608b11851d73278b23579a3Mark AndrewsLIBS="-lpthread $LIBS"
50105afc551903541608b11851d73278b23579a3Mark Andrewscat > conftest.$ac_ext <<EOF
50105afc551903541608b11851d73278b23579a3Mark Andrews#line 1635 "configure"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#include "confdefs.h"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews/* We use char because int might match the return type of a gcc2
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews builtin and then its argument prototype would still apply. */
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrewschar pthread_create();
50105afc551903541608b11851d73278b23579a3Mark Andrews
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewspthread_create()
50105afc551903541608b11851d73278b23579a3Mark Andrews; return 0; }
50105afc551903541608b11851d73278b23579a3Mark AndrewsEOF
50105afc551903541608b11851d73278b23579a3Mark Andrewsif { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50105afc551903541608b11851d73278b23579a3Mark Andrews rm -rf conftest*
50105afc551903541608b11851d73278b23579a3Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat conftest.$ac_ext >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -f conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsLIBS="$ac_save_LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
50105afc551903541608b11851d73278b23579a3Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""yes" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat >> confdefs.h <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#define $ac_tr_lib 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews LIBS="-lpthread $LIBS"
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsecho $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsecho "configure:1672: checking for __pthread_create in -lpthread" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_save_LIBS="$LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="-lpthread $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1680 "configure"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* We use char because int might match the return type of a gcc2
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews builtin and then its argument prototype would still apply. */
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewschar __pthread_create();
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews__pthread_create()
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews; return 0; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat conftest.$ac_ext >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -f conftest*
f1263d2aa405087e74caf001cd443079f50ee903Mark AndrewsLIBS="$ac_save_LIBS"
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""yes" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews cat >> confdefs.h <<EOF
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews#define $ac_tr_lib 1
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews LIBS="-lpthread $LIBS"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1719: checking for __pthread_create_system in -lpthread" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_save_LIBS="$LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="-lpthread $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1727 "configure"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* We use char because int might match the return type of a gcc2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews builtin and then its argument prototype would still apply. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewschar __pthread_create_system();
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews__pthread_create_system()
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews; return 0; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat conftest.$ac_ext >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -f conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="$ac_save_LIBS"
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrewsfi
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews echo "$ac_t""yes" 1>&6
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/^a-zA-Z0-9_/_/g' \
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews cat >> confdefs.h <<EOF
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater#define $ac_tr_lib 1
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark AndrewsEOF
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews LIBS="-lpthread $LIBS"
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrewselse
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews echo "$ac_t""no" 1>&6
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrewsfi
cf224bbf7bab87bc28b12f5b30f5ca3f3e5bf604Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "$ac_cv_lib_pthread" != "yes"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1772: checking for pthread_create in -lc_r" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_save_LIBS="$LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="-lc_r $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1780 "configure"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* We use char because int might match the return type of a gcc2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews builtin and then its argument prototype would still apply. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewschar pthread_create();
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewspthread_create()
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews; return 0; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "configure: failed program was:" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat conftest.$ac_ext >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsrm -f conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="$ac_save_LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""yes" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
50105afc551903541608b11851d73278b23579a3Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat >> confdefs.h <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#define $ac_tr_lib 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews LIBS="-lc_r $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1822: checking for sigwait in -lpthread" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_save_LIBS="$LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsLIBS="-lpthread $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscat > conftest.$ac_ext <<EOF
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#line 1830 "configure"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#include "confdefs.h"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews/* We use char because int might match the return type of a gcc2
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews builtin and then its argument prototype would still apply. */
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewschar sigwait();
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewssigwait()
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews; return 0; }
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat conftest.$ac_ext >&5
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews rm -rf conftest*
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsfi
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsrm -f conftest*
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsLIBS="$ac_save_LIBS"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsfi
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews echo "$ac_t""yes" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews cat >> confdefs.h <<\EOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#define HAVE_SIGWAIT 1
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsEOF
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewselse
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews echo "$ac_t""no" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsecho $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsecho "configure:1863: checking for _Psigwait in -lpthread" >&5
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
394f4aec2189750d7f861d00f97fe28ffcd9f659Mark Andrewselse
394f4aec2189750d7f861d00f97fe28ffcd9f659Mark Andrews ac_save_LIBS="$LIBS"
c5387e694299c41361660e54f23e89c7da3ede1dMark AndrewsLIBS="-lpthread $LIBS"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrewscat > conftest.$ac_ext <<EOF
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#line 1871 "configure"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews#include "confdefs.h"
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews/* Override any gcc2 internal prototype to avoid an error. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* We use char because int might match the return type of a gcc2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews builtin and then its argument prototype would still apply. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewschar _Psigwait();
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews_Psigwait()
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews; return 0; }
f1263d2aa405087e74caf001cd443079f50ee903Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews rm -rf conftest*
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrewselse
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews echo "configure: failed program was:" >&5
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews cat conftest.$ac_ext >&5
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews rm -rf conftest*
c5387e694299c41361660e54f23e89c7da3ede1dMark Andrews eval "ac_cv_lib_$ac_lib_var=no"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsLIBS="$ac_save_LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""yes" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat >> confdefs.h <<\EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#define HAVE_SIGWAIT 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""no" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewscase "$host" in
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews *-sun-solaris*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat >> confdefs.h <<\EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#define _POSIX_PTHREAD_SEMANTICS 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsesac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho $ac_n "checking for catgets""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1919: checking for catgets" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews cat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1924 "configure"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include "confdefs.h"
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrews/* System header to define __stub macros and hopefully few prototypes,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews which can conflict with char catgets(); below. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#include <assert.h>
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater/* Override any gcc2 internal prototype to avoid an error. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* We use char because int might match the return type of a gcc2
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews builtin and then its argument prototype would still apply. */
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewschar catgets();
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsint main() {
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* The GNU C library defines this for functions which it implements
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews to always fail with ENOSYS. Some functions are actually named
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrews something starting with __ and the normal name is an alias. */
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#if defined (__stub_catgets) || defined (__stub___catgets)
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewschoke me
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#else
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscatgets();
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#endif
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews; return 0; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_func_catgets=yes"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_func_catgets=no"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""yes" 1>&6
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrews cat >> confdefs.h <<\EOF
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrews#define HAVE_CATGETS 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrewscase "$host" in
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews *-bsdi3.1*)
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews cat >> confdefs.h <<\EOF
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#define NEED_PTHREAD_INIT 1
8d414d155953f89a4eff40f16878438a8c9228f3Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ;;
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews *-linux*)
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat >> confdefs.h <<\EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#define HAVE_LINUXTHREADS 1
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsesac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscase "$host" in
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews mips-sgi-irix*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:1991: checking for socket in -lsocket" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_save_LIBS="$LIBS"
93d6dfaf66258337985427c86181f01fc51f0bb4Mark AndrewsLIBS="-lsocket $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscat > conftest.$ac_ext <<EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#line 1999 "configure"
50105afc551903541608b11851d73278b23579a3Mark Andrews#include "confdefs.h"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington/* We use char because int might match the return type of a gcc2
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews builtin and then its argument prototype would still apply. */
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewschar socket();
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsint main() {
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewssocket()
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews; return 0; }
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic UpdaterEOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat conftest.$ac_ext >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsLIBS="$ac_save_LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""yes" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat >> confdefs.h <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#define $ac_tr_lib 1
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews LIBS="-lsocket $LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "configure:2038: checking for inet_ntoa in -lnsl" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_save_LIBS="$LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsLIBS="-lnsl $LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewscat > conftest.$ac_ext <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#line 2046 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews/* We use char because int might match the return type of a gcc2
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews builtin and then its argument prototype would still apply. */
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewschar inet_ntoa();
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint main() {
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsinet_ntoa()
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews; return 0; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_lib_$ac_lib_var=yes"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat conftest.$ac_ext >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews eval "ac_cv_lib_$ac_lib_var=no"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsLIBS="$ac_save_LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""yes" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat >> confdefs.h <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#define $ac_tr_lib 1
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews LIBS="-lnsl $LIBS"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ;;
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsesac
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsMKDEPCC="$CC"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsMKDEPCFLAGS="-M"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test "X$GCC" = "Xyes"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews case "$host" in
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews *-sun-solaris*)
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews LIBS="$LIBS -lthread"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ;;
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington esac
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewselse
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington case "$host" in
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington *-dec-osf*)
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington CC="$CC -pthread"
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington MKDEPCC="$CC"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington *-sun-solaris*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews CC="$CC -mt"
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington MKDEPCC="$CC"
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews MKDEPCFLAGS="-xM"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington ;;
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington *-hp-hpux*)
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington CC="$CC -Ae -z +w1"
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington ;;
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington esac
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonfi
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtoncase "$host" in
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington *-dec-osf*)
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington cat >> confdefs.h <<\EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#define _SOCKADDR_LEN 1
94766449d6125cd5870891b70d46573e5deaceb4Brian WellingtonEOF
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington ;;
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonesac
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsecho $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellingtonecho "configure:2128: checking for sa_len in struct sockaddr" >&5
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtoncat > conftest.$ac_ext <<EOF
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington#line 2130 "configure"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington#include "confdefs.h"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington#include <sys/types.h>
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington#include <sys/socket.h>
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsint main() {
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonstruct sockaddr sa; sa.sa_len = 0; return (0);
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington; return 0; }
e83cae7fa837e4757c687035d6f6c0900f152749Brian WellingtonEOF
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellingtonif { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellington rm -rf conftest*
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellington echo "$ac_t""yes" 1>&6
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellington ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellingtonelse
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews echo "configure: failed program was:" >&5
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrews cat conftest.$ac_ext >&5
cc3aafe737334d444781f8a34ffaf459e075bb9aMark Andrews rm -rf conftest*
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellington echo "$ac_t""no" 1>&6
d6be55c63f83194d97a565d0fd7b632b31b52a68Brian Wellington ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsfi
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellingtonrm -f conftest*
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewsecho $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellingtonecho "configure:2155: checking for struct msghdr flavor" >&5
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellingtoncat > conftest.$ac_ext <<EOF
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellington#line 2157 "configure"
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington#include "confdefs.h"
c70908209ee26c51a8e7242a56fdb73847249728Brian Wellington
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews#include <sys/types.h>
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews#include <sys/socket.h>
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellingtonint main() {
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellingtonstruct msghdr msg; msg.msg_flags = 0; return (0);
32b2cdf212de957e3f9b0efca59f098ed4fb42deBrian Wellington; return 0; }
94766449d6125cd5870891b70d46573e5deaceb4Brian WellingtonEOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""4.4BSD" 1>&6
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonelse
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington echo "configure: failed program was:" >&5
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington cat conftest.$ac_ext >&5
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence rm -rf conftest*
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington echo "$ac_t""4.3BSD" 1>&6
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonfi
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellingtonrm -f conftest*
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
777ac454c0cdec27dc11d80b9b2a8d7239d833a8Brian Wellingtonecho $ac_n "checking for type in_port_t""... $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "configure:2181: checking for type in_port_t" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewscat > conftest.$ac_ext <<EOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#line 2183 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <sys/types.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <netinet/in.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint main() {
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsin_port_t port = 25; return (0);
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews; return 0; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""yes" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews cat conftest.$ac_ext >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho "configure:2207: checking for struct addrinfo" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewscat > conftest.$ac_ext <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#line 2209 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <netdb.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint main() {
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsstruct addrinfo a; return (0);
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews; return 0; }
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif { (eval echo configure:2217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""yes" 1>&6
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington echo "configure: failed program was:" >&5
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""no" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrewsrm -f conftest*
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking for int sethostent""... $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "configure:2232: checking for int sethostent" >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewscat > conftest.$ac_ext <<EOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#line 2234 "configure"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include "confdefs.h"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews#include <netdb.h>
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint main() {
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsint i = sethostent(0); return(0);
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews; return 0; }
f1263d2aa405087e74caf001cd443079f50ee903Mark AndrewsEOF
f1263d2aa405087e74caf001cd443079f50ee903Mark Andrewsif { (eval echo configure:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews echo "$ac_t""yes" 1>&6
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrewselse
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews echo "configure: failed program was:" >&5
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews cat conftest.$ac_ext >&5
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews rm -rf conftest*
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsrm -f conftest*
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho $ac_n "checking for int endhostent""... $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "configure:2257: checking for int endhostent" >&5
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updatercat > conftest.$ac_ext <<EOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#line 2259 "configure"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#include "confdefs.h"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <netdb.h>
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsint i = endhostent(); return(0);
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews; return 0; }
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsEOF
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""yes" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "configure: failed program was:" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews cat conftest.$ac_ext >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""no" 1>&6
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrewsfi
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrewsrm -f conftest*
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrewsecho $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrewsecho "configure:2282: checking for getnetbyaddr(in_addr_t, ...)" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewscat > conftest.$ac_ext <<EOF
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#line 2284 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <netdb.h>
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsstruct netent *getnetbyaddr(in_addr_t, int);
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsint main() {
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews; return 0; }
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""yes" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "configure: failed program was:" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews cat conftest.$ac_ext >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""no" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsrm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho $ac_n "checking for int setnetent""... $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "configure:2308: checking for int setnetent" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewscat > conftest.$ac_ext <<EOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#line 2310 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <netdb.h>
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint i = setnetent(0); return(0);
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews; return 0; }
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""yes" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "configure: failed program was:" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews cat conftest.$ac_ext >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""no" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsrm -f conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updaterecho $ac_n "checking for int endnetent""... $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "configure:2333: checking for int endnetent" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewscat > conftest.$ac_ext <<EOF
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#line 2335 "configure"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#include "confdefs.h"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <netdb.h>
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint i = endnetent(); return(0);
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews; return 0; }
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""yes" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "configure: failed program was:" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat conftest.$ac_ext >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""no" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsrm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho $ac_n "checking for gethostbyadd(const void *, size_t, ...)""... $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "configure:2358: checking for gethostbyadd(const void *, size_t, ...)" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewscat > conftest.$ac_ext <<EOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#line 2360 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <netdb.h>
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsstruct hostent *gethostbyaddr(const void *, size_t, int);
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsreturn(0);
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews; return 0; }
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""yes" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "configure: failed program was:" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""no" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsrm -f conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsecho "configure:2384: checking for h_errno in netdb.h" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewscat > conftest.$ac_ext <<EOF
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#line 2386 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#include <netdb.h>
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsint main() {
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsh_errno = 1; return(0);
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews; return 0; }
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsEOF
676619a22fbc760875adb00b58aaef6a22ced18aMark Andrewsif { (eval echo configure:2394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""yes" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "configure: failed program was:" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat conftest.$ac_ext >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""no" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
676619a22fbc760875adb00b58aaef6a22ced18aMark Andrewsrm -f conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrewsecho $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrewsecho "configure:2409: checking for getipnodebyname" >&5
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrewsif eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat > conftest.$ac_ext <<EOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#line 2414 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews/* System header to define __stub macros and hopefully few prototypes,
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews which can conflict with char getipnodebyname(); below. */
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <assert.h>
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* We use char because int might match the return type of a gcc2
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews builtin and then its argument prototype would still apply. */
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewschar getipnodebyname();
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsint main() {
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* The GNU C library defines this for functions which it implements
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews to always fail with ENOSYS. Some functions are actually named
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews something starting with __ and the normal name is an alias. */
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewschoke me
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#else
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsgetipnodebyname();
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#endif
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews; return 0; }
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark AndrewsEOF
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews eval "ac_cv_func_getipnodebyname=yes"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "configure: failed program was:" >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews cat conftest.$ac_ext >&5
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews eval "ac_cv_func_getipnodebyname=no"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsrm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsif eval "test \"`echo '$ac_cv_func_'getipnodebyname`\" = yes"; then
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""yes" 1>&6
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewselse
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews echo "$ac_t""no" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsfi
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsecho $ac_n "checking for getnameinfo""... $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "configure:2458: checking for getnameinfo" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat > conftest.$ac_ext <<EOF
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#line 2463 "configure"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#include "confdefs.h"
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* System header to define __stub macros and hopefully few prototypes,
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews which can conflict with char getnameinfo(); below. */
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <assert.h>
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* We use char because int might match the return type of a gcc2
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews builtin and then its argument prototype would still apply. */
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewschar getnameinfo();
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews/* The GNU C library defines this for functions which it implements
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews to always fail with ENOSYS. Some functions are actually named
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews something starting with __ and the normal name is an alias. */
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewschoke me
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews#else
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrewsgetnameinfo();
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews#endif
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews; return 0; }
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews eval "ac_cv_func_getnameinfo=yes"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "configure: failed program was:" >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews cat conftest.$ac_ext >&5
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews rm -rf conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews eval "ac_cv_func_getnameinfo=no"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsrm -f conftest*
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif eval "test \"`echo '$ac_cv_func_'getnameinfo`\" = yes"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""yes" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonelse
e4d304b70b81ca9956c2eff7c24aacf4dd00266eEvan Hunt echo "$ac_t""no" 1>&6
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark AndrewsISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonecho "configure:2507: checking for getaddrinfo" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington echo $ac_n "(cached) $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat > conftest.$ac_ext <<EOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#line 2512 "configure"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include "confdefs.h"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews/* System header to define __stub macros and hopefully few prototypes,
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews which can conflict with char getaddrinfo(); below. */
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews#include <assert.h>
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews/* Override any gcc2 internal prototype to avoid an error. */
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews/* We use char because int might match the return type of a gcc2
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews builtin and then its argument prototype would still apply. */
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrewschar getaddrinfo();
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrewsint main() {
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
8bedd9647f4d6894e12a8c94d3ccc624dddcee50Mark Andrews/* The GNU C library defines this for functions which it implements
2f012d936b5ccdf6520c96a4de23721dc58a2221Automatic Updater to always fail with ENOSYS. Some functions are actually named
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews something starting with __ and the normal name is an alias. */
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrews#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewschoke me
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrews#else
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrewsgetaddrinfo();
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrews#endif
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrews
0ad024cc4272894e877e3a7896f80a2892bc703cMark Andrews; return 0; }
0ad024cc4272894e877e3a7896f80a2892bc703cMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews eval "ac_cv_func_getaddrinfo=yes"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "configure: failed program was:" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews cat conftest.$ac_ext >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews eval "ac_cv_func_getaddrinfo=no"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonfi
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉rm -f conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsfi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""yes" 1>&6
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonelse
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews echo "$ac_t""no" 1>&6
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark AndrewsISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrewsfi
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews
676619a22fbc760875adb00b58aaef6a22ced18aMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "configure:2561: checking for interface list sysctl" >&5
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrewscat > conftest.$ac_ext <<EOF
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews#line 2563 "configure"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#include "confdefs.h"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#include <sys/param.h>
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#include <sys/sysctl.h>
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#include <sys/socket.h>
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews#ifdef NET_RT_IFLIST
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfound_rt_iflist
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#endif
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark AndrewsEOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews egrep "found_rt_iflist" >/dev/null 2>&1; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews rm -rf conftest*
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews echo "$ac_t""yes" 1>&6
676619a22fbc760875adb00b58aaef6a22ced18aMark Andrews cat >> confdefs.h <<\EOF
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#define HAVE_IFLIST_SYSCTL 1
35541328a8c18ba1f984300dfe30ec8713c90031Mark AndrewsEOF
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonelse
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington rm -rf conftest*
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington echo "$ac_t""no" 1>&6
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonfi
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉rm -f conftest*
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
6036112f4874637240d461c3ccbcb8dbfb1f405bAndreas Gustafsson# Check whether --with-libtool or --without-libtool was given.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif test "${with_libtool+set}" = set; then
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews withval="$with_libtool"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews use_libtool="$withval"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews use_libtool="no"
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉fi
e407562a75eb93073bb72089cced150d7ffe4d4fTatuya JINMEI 神明達哉
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
6036112f4874637240d461c3ccbcb8dbfb1f405bAndreas Gustafssoncase $use_libtool in
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson yes)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Check whether --enable-shared or --disable-shared was given.
6036112f4874637240d461c3ccbcb8dbfb1f405bAndreas Gustafssonif test "${enable_shared+set}" = set; then
6036112f4874637240d461c3ccbcb8dbfb1f405bAndreas Gustafsson enableval="$enable_shared"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews p=${PACKAGE-default}
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewscase "$enableval" in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsyes) enable_shared=yes ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsno) enable_shared=no ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews*)
9840a0767d02f6c6b9d1f73d54e0cab2e8192a93Mark Andrews enable_shared=no
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Look at the argument we got. We use all the common list separators.
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews for pkg in $enableval; do
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews if test "X$pkg" = "X$p"; then
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews enable_shared=yes
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews fi
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews done
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews IFS="$ac_save_ifs"
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrews ;;
1ea2595e1b33cc63ea73ee1d54b580b717d7d155Mark Andrewsesac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews enable_shared=yes
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Check whether --enable-static or --disable-static was given.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "${enable_static+set}" = set; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews enableval="$enable_static"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews p=${PACKAGE-default}
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtoncase "$enableval" in
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonyes) enable_static=yes ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrewsno) enable_static=no ;;
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews*)
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews enable_static=no
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews # Look at the argument we got. We use all the common list separators.
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews for pkg in $enableval; do
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews if test "X$pkg" = "X$p"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews enable_static=yes
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews fi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews done
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews IFS="$ac_save_ifs"
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews ;;
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrewsesac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews enable_static=yes
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrewsfi
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Check whether --enable-fast-install or --disable-fast-install was given.
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsif test "${enable_fast_install+set}" = set; then
c941e32d221fbb0cb760e3bc24c7f221c0cf8b97Mark Andrews enableval="$enable_fast_install"
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews p=${PACKAGE-default}
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewscase "$enableval" in
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsyes) enable_fast_install=yes ;;
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrewsno) enable_fast_install=no ;;
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews*)
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews enable_fast_install=no
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews # Look at the argument we got. We use all the common list separators.
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews for pkg in $enableval; do
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews if test "X$pkg" = "X$p"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews enable_fast_install=yes
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews fi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews done
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews IFS="$ac_save_ifs"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ;;
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsesac
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews enable_fast_install=yes
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsecho $ac_n "checking build system type""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:2670: checking build system type" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsbuild_alias=$build
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtoncase "$build_alias" in
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian WellingtonNONE)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews case $nonopt in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews NONE) build_alias=$host_alias ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *) build_alias=$nonopt ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews esac ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsesac
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonbuild_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsbuild_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsbuild_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "$ac_t""$build" 1>&6
ff30cdeb783ca7ffe69b222c56197828e882c229Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Check whether --with-gnu-ld or --without-gnu-ld was given.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "${with_gnu_ld+set}" = set; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews withval="$with_gnu_ld"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews test "$withval" = no || with_gnu_ld=yes
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewselse
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews with_gnu_ld=no
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsac_prog=ld
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "$ac_cv_prog_gcc" = yes; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Check if gcc -print-prog-name=ld gives a path.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "configure:2699: checking for ld used by GCC" >&5
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prog=`($CC -print-prog-name=ld) 2>&5`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews case "$ac_prog" in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Accept absolute paths.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews [\\/]* | [A-Za-z]:[\\/]*)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews re_direlt='/[^/][^/]*/\.\./'
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews # Canonicalize the path of ld
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews done
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews test -z "$LD" && LD="$ac_prog"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews "")
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington # If it fails, then pretend we aren't using GCC.
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington ac_prog=ld
48ed268b3378a8b729a0037bc4ae2ed73647a96aBrian Wellington ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *)
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington # If it is relative, then search for the first ld in PATH.
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson with_gnu_ld=unknown
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington esac
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonelif test "$with_gnu_ld" = yes; then
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonecho "configure:2723: checking for GNU ld" >&5
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonelse
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellingtonecho "configure:2726: checking for non-GNU ld" >&5
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonfi
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo $ac_n "(cached) $ac_c" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews if test -z "$LD"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews for ac_dir in $PATH; do
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews test -z "$ac_dir" && ac_dir=.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ac_cv_path_LD="$ac_dir/$ac_prog"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews # Check to see if the program is GNU ld. I'd rather use --version,
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews # but apparently some GNU ld's only accept -v.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews # Break only if it was the GNU/non-GNU ld that we prefer.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews test "$with_gnu_ld" != no && break
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews else
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews test "$with_gnu_ld" != yes && break
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews fi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews fi
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews done
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews IFS="$ac_save_ifs"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews ac_cv_path_LD="$LD" # Let the user override the test with a path.
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark AndrewsLD="$ac_cv_path_LD"
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsif test -n "$LD"; then
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""$LD" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewselse
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrews echo "$ac_t""no" 1>&6
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewsfi
60ab03125c137c48a6b2ed6df1d2c8657757e09dMark Andrewstest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonecho "configure:2762: checking if the linker ($LD) is GNU ld" >&5
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellingtonelse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # I'd rather use --version here, but apparently some GNU ld's only accept -v.
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff ac_cv_prog_gnu_ld=yes
115635379a2baf2100695018109ad39e0dac349dAndreas Gustafssonelse
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington ac_cv_prog_gnu_ld=no
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonfi
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellingtonfi
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellingtonecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsecho "configure:2778: checking for BSD-compatible nm" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence echo $ac_n "(cached) $ac_c" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyelse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley if test -n "$NM"; then
d2ef84e07b67e72a4bd9c729c6b8228067d17584Mark Andrews # Let the user override the test.
d2ef84e07b67e72a4bd9c729c6b8228067d17584Mark Andrews ac_cv_path_NM="$NM"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewselse
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews test -z "$ac_dir" && ac_dir=.
60783293cc27f74a84ec93c95c5d46edd30bd8e0Brian Wellington if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
60783293cc27f74a84ec93c95c5d46edd30bd8e0Brian Wellington # Check to see if the nm accepts a BSD-compat flag.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # Adding the `sed 1q' prevents false positives on HP-UX, which says:
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley # nm: unknown option "B" ignored
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ac_cv_path_NM="$ac_dir/nm -B"
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson break
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence ac_cv_path_NM="$ac_dir/nm -p"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews break
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews else
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
6bc1a645619a14707da68b130dafe41721fd2f25Brian Wellington continue # so that we can try to find one that supports BSD flags
6bc1a645619a14707da68b130dafe41721fd2f25Brian Wellington fi
6bc1a645619a14707da68b130dafe41721fd2f25Brian Wellington fi
60783293cc27f74a84ec93c95c5d46edd30bd8e0Brian Wellington done
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson IFS="$ac_save_ifs"
6bc1a645619a14707da68b130dafe41721fd2f25Brian Wellington test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsfi
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrewsfi
60783293cc27f74a84ec93c95c5d46edd30bd8e0Brian Wellington
60783293cc27f74a84ec93c95c5d46edd30bd8e0Brian WellingtonNM="$ac_cv_path_NM"
6bc1a645619a14707da68b130dafe41721fd2f25Brian Wellingtonecho "$ac_t""$NM" 1>&6
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonecho "configure:2815: checking whether ln -s works" >&5
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtonif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo $ac_n "(cached) $ac_c" 1>&6
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonelse
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington rm -f conftestdata
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceif ln -s X conftestdata 2>/dev/null
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsthen
664e11f0b14c78cef7cf6b8c70323a1da494e351Mark Andrews rm -f conftestdata
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington ac_cv_prog_LN_S="ln -s"
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellingtonelse
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington ac_cv_prog_LN_S=ln
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyLN_S="$ac_cv_prog_LN_S"
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafssonif test "$ac_cv_prog_LN_S" = "ln -s"; then
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington echo "$ac_t""yes" 1>&6
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrenceelse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "$ac_t""no" 1>&6
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrewsfi
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# Check for any special flags to pass to ltconfig.
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrewslibtool_flags="--cache-file=$cache_file"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtontest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencetest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencetest "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencetest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellingtontest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test "${enable_libtool_lock+set}" = set; then
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley enableval="$enable_libtool_lock"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews :
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewstest "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewstest x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# Some flags need to be propagated to the compiler or linker for good
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley# libtool support.
ec371edc34e2adb9e337b774d1a6e613f5863655Brian Wellingtoncase "$host" in
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley*-*-irix6*)
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley # Find out which ABI we are using.
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley echo '#line 2859 "configure"' > conftest.$ac_ext
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley if { (eval echo configure:2860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley case "`/usr/bin/file conftest.o`" in
e419f613d8591885df608cb73065921be07dd12eBob Halley *32-bit*)
e419f613d8591885df608cb73065921be07dd12eBob Halley LD="${LD-ld} -32"
e419f613d8591885df608cb73065921be07dd12eBob Halley ;;
e419f613d8591885df608cb73065921be07dd12eBob Halley *N32*)
e419f613d8591885df608cb73065921be07dd12eBob Halley LD="${LD-ld} -n32"
ec371edc34e2adb9e337b774d1a6e613f5863655Brian Wellington ;;
ec371edc34e2adb9e337b774d1a6e613f5863655Brian Wellington *64-bit*)
ec371edc34e2adb9e337b774d1a6e613f5863655Brian Wellington LD="${LD-ld} -64"
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley ;;
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley esac
e419f613d8591885df608cb73065921be07dd12eBob Halley fi
e419f613d8591885df608cb73065921be07dd12eBob Halley rm -rf conftest*
e419f613d8591885df608cb73065921be07dd12eBob Halley ;;
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafsson
e419f613d8591885df608cb73065921be07dd12eBob Halley*-*-sco3.2v5*)
e419f613d8591885df608cb73065921be07dd12eBob Halley # On SCO OpenServer 5, we need -belf to get full-featured binaries.
62a84c4a27033bb0e7316256964a6950b1e230bdAndreas Gustafsson SAVE_CFLAGS="$CFLAGS"
ef97e09e20da2133adc731cf7e29e72d04dfc93fAndreas Gustafsson CFLAGS="$CFLAGS -belf"
e419f613d8591885df608cb73065921be07dd12eBob Halley echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonecho "configure:2881: checking whether the C compiler needs -belf" >&5
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonif eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington echo $ac_n "(cached) $ac_c" 1>&6
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafssonelse
e419f613d8591885df608cb73065921be07dd12eBob Halley cat > conftest.$ac_ext <<EOF
e419f613d8591885df608cb73065921be07dd12eBob Halley#line 2886 "configure"
e419f613d8591885df608cb73065921be07dd12eBob Halley#include "confdefs.h"
e419f613d8591885df608cb73065921be07dd12eBob Halley
e419f613d8591885df608cb73065921be07dd12eBob Halleyint main() {
e419f613d8591885df608cb73065921be07dd12eBob Halley
e419f613d8591885df608cb73065921be07dd12eBob Halley; return 0; }
e419f613d8591885df608cb73065921be07dd12eBob HalleyEOF
ec371edc34e2adb9e337b774d1a6e613f5863655Brian Wellingtonif { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
e419f613d8591885df608cb73065921be07dd12eBob Halley rm -rf conftest*
e419f613d8591885df608cb73065921be07dd12eBob Halley lt_cv_cc_needs_belf=yes
e419f613d8591885df608cb73065921be07dd12eBob Halleyelse
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews echo "configure: failed program was:" >&5
e419f613d8591885df608cb73065921be07dd12eBob Halley cat conftest.$ac_ext >&5
e419f613d8591885df608cb73065921be07dd12eBob Halley rm -rf conftest*
e419f613d8591885df608cb73065921be07dd12eBob Halley lt_cv_cc_needs_belf=no
e419f613d8591885df608cb73065921be07dd12eBob Halleyfi
e419f613d8591885df608cb73065921be07dd12eBob Halleyrm -f conftest*
e419f613d8591885df608cb73065921be07dd12eBob Halleyfi
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsecho "$ac_t""$lt_cv_cc_needs_belf" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test x"$lt_cv_cc_needs_belf" != x"yes"; then
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington CFLAGS="$SAVE_CFLAGS"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley fi
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington ;;
fe5ba8ddb55b2b3ee139e13b7891817117ad4e63Brian Wellington
3676eeb6ca95c66aae1256f37af8c990d9f25eb4Brian Wellington
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellingtonesac
b5debbe212097d1c573a2ba3bd9a3d526d86b0aeBrian Wellington
613efcd8fbd0d1ce0d0afd1ac85d95cf85bffc27Brian Wellington
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington# Save cache, so that ltconfig can load it
feb40fc5f911d0b2050fb9fd34950a52930b981dBrian Wellingtoncat > confcache <<\EOF
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# This file is a shell script that caches the results of configure
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews# tests run on this system so they can be shared between configure
5c6117688525d0e8d247f50c63364f66bd8d4185Brian Wellington# scripts and configure runs. It is not useful on other systems.
6fac7ff1f9ec9c3873d3b55c5079fa79aba1f146Mark Andrews# If it contains results you don't want to keep, you may remove or edit it.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews#
8d414d155953f89a4eff40f16878438a8c9228f3Mark Andrews# By default, configure uses ./config.cache as the cache file,
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington# creating it if it does not exist already. You can give configure
ca9af3aaf798f98624fc1dc69d8c7d51bf01334dBrian Wellington# the --cache-file=FILE option to use a different cache file; that is
35541328a8c18ba1f984300dfe30ec8713c90031Mark Andrews# what configure does when it calls configure scripts in
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington# subdirectories, so they share the cache.
e419f613d8591885df608cb73065921be07dd12eBob Halley# Giving --cache-file=/dev/null disables caching, for debugging configure.
e419f613d8591885df608cb73065921be07dd12eBob Halley# config.status only pays attention to the cache file if you give it the
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews# --recheck option to rerun configure.
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews#
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyEOF
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# The following way of writing the cache mishandles newlines in values,
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley# but we know of no workaround that is simple, portable, and efficient.
e419f613d8591885df608cb73065921be07dd12eBob Halley# So, don't put newlines in cache variables' values.
e419f613d8591885df608cb73065921be07dd12eBob Halley# Ultrix sh set writes to stderr and can't be redirected directly,
e419f613d8591885df608cb73065921be07dd12eBob Halley# and sets the high bit in the cache file unless we assign to the vars.
e419f613d8591885df608cb73065921be07dd12eBob Halley(set) 2>&1 |
470c726bc894b1c528cb84e7e1f7e44770ffc485Mark Andrews case `(ac_space=' '; set | grep ac_space) 2>&1` in
e419f613d8591885df608cb73065921be07dd12eBob Halley *ac_space=\ *)
e419f613d8591885df608cb73065921be07dd12eBob Halley # `set' does not quote correctly, so add quotes (double-quote substitution
ef97e09e20da2133adc731cf7e29e72d04dfc93fAndreas Gustafsson # turns \\\\ into \\, and sed turns \\ into \).
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafsson sed -n \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence -e "s/'/'\\\\''/g" \
e419f613d8591885df608cb73065921be07dd12eBob Halley -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley ;;
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley *)
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews # `set' quotes correctly as required by POSIX, so do not add quotes.
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews ;;
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews esac >> confcache
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewsif cmp -s $cache_file confcache; then
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews :
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewselse
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews if test -w $cache_file; then
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews echo "updating cache $cache_file"
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews cat confcache > $cache_file
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews else
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews echo "not updating unwritable cache $cache_file"
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews fi
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewsfi
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewsrm -f confcache
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley
e419f613d8591885df608cb73065921be07dd12eBob Halley# Actually configure libtool. ac_aux_dir is where install-sh is found.
e419f613d8591885df608cb73065921be07dd12eBob HalleyCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
e419f613d8591885df608cb73065921be07dd12eBob HalleyLD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
264fd373f3f6cc7f271bdff14a020385620015f1Andreas GustafssonLN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas GustafssonDLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
e419f613d8591885df608cb73065921be07dd12eBob Halley$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
264fd373f3f6cc7f271bdff14a020385620015f1Andreas Gustafsson|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
264fd373f3f6cc7f271bdff14a020385620015f1Andreas Gustafsson
264fd373f3f6cc7f271bdff14a020385620015f1Andreas Gustafsson# Reload cache, that may have been modified by ltconfig
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsif test -r "$cache_file"; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "loading cache $cache_file"
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews . $cache_file
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewselse
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews echo "creating cache $cache_file"
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews > $cache_file
305227476756aecb11cebbc811dba88a2d147b34Mark Andrewsfi
305227476756aecb11cebbc811dba88a2d147b34Mark Andrews
e2c3f8059e77a8e11c4378d22e5d8e78b423a28fMark Andrews
e419f613d8591885df608cb73065921be07dd12eBob Halley# This can be used to rebuild libtool when needed
e419f613d8591885df608cb73065921be07dd12eBob HalleyLIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
e419f613d8591885df608cb73065921be07dd12eBob Halley
e419f613d8591885df608cb73065921be07dd12eBob Halley# Always use our own libtool.
e419f613d8591885df608cb73065921be07dd12eBob HalleyLIBTOOL='$(SHELL) $(top_builddir)/libtool'
e419f613d8591885df608cb73065921be07dd12eBob Halley
1872808932603066d401d3de97db11af8ffee78aAndreas Gustafsson# Redirect the config.log output again, so that the ltconfig log is not
e419f613d8591885df608cb73065921be07dd12eBob Halley# clobbered by the next message.
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyexec 5>>./config.log
e419f613d8591885df608cb73065921be07dd12eBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley O=lo
e419f613d8591885df608cb73065921be07dd12eBob Halley A=la
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley ;;
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley *)
e83cae7fa837e4757c687035d6f6c0900f152749Brian Wellington O=o
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington A=a
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington LIBTOOL=
23e4260821eefa5019808e18e14e2b366461aad7Brian Wellington
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsesac
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews# Check whether --enable-ipv6 or --disable-ipv6 was given.
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrewsif test "${enable_ipv6+set}" = set; then
7d116211ec7b063891130f191e3ed437b45dba70Mark Andrews enableval="$enable_ipv6"
1872808932603066d401d3de97db11af8ffee78aAndreas Gustafsson :
fe5ba8ddb55b2b3ee139e13b7891817117ad4e63Brian Wellingtonfi
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafsson
5e387b9ce6bafdfadedb5b34e4c33a4404e5d589Brian Wellington
ef97e09e20da2133adc731cf7e29e72d04dfc93fAndreas Gustafssoncase "$enable_ipv6" in
1872808932603066d401d3de97db11af8ffee78aAndreas Gustafsson yes|''|autodetect)
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafsson echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halleyecho "configure:3017: checking for IPv6 structures" >&5
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley cat > conftest.$ac_ext <<EOF
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley#line 3019 "configure"
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley#include "confdefs.h"
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include <sys/types.h>
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include <sys/socket.h>
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley#include <netinet/in.h>
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyint main() {
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleystruct sockaddr_in6 sin6; return (0);
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley; return 0; }
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob HalleyEOF
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyif { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews rm -rf conftest*
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson echo "$ac_t""yes" 1>&6
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellington found_ipv6=yes
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewselse
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo "configure: failed program was:" >&5
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley cat conftest.$ac_ext >&5
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley rm -rf conftest*
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley echo "$ac_t""no" 1>&6
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halley found_ipv6=no
0ec4b862c9abd11c82c88ed62438f0cf06fed25dBob Halleyfi
e419f613d8591885df608cb73065921be07dd12eBob Halleyrm -f conftest*
bf43fdafa3bff9e84cb03f1a19aca74514d2516eBob Halley ;;
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson no)
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson found_ipv6=no
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson ;;
9cd6710f91bdffef5aed68ab02533e398f6134d7Brian Wellingtonesac
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssoncase "$found_ipv6" in
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews yes)
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1",
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson ;;
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson no)
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_IPV6_H="ipv6.h"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_IPV6_O="ipv6.$O"
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews ISC_ISCIPV6_O="unix/ipv6.$O"
94766449d6125cd5870891b70d46573e5deaceb4Brian Wellington ISC_IPV6_C="ipv6.c"
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington ;;
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellingtonesac
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellington
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssonecho $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssonecho "configure:3067: checking for Kame IPv6 support" >&5
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrews# Check whether --with-kame or --without-kame was given.
5be3685b0e57677c0cc03113099cb8f99f9a070bMark Andrewsif test "${with_kame+set}" = set; then
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson withval="$with_kame"
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson use_kame="$withval"
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafssonelse
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson use_kame="no"
18b7133679efa8f60fd4e396c628576f3f416b3eBrian Wellingtonfi
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington
5b0413f993b1c1ed837d23641e9f696cda1ee293Brian Wellington
5b0413f993b1c1ed837d23641e9f696cda1ee293Brian Wellingtoncase "$use_kame" in
5b0413f993b1c1ed837d23641e9f696cda1ee293Brian Wellington no)
5b0413f993b1c1ed837d23641e9f696cda1ee293Brian Wellington ;;
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson yes)
34aa7909371f13b4bc0ba6d155cfc38bfa1e3c5cAndreas Gustafsson kame_path=/usr/local/v6
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson ;;
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson *)
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson kame_path="$use_kame"
1b1e1fda4638334b484aa38c15f53a131c0b0fdfAndreas Gustafsson ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsesac
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewscase "$use_kame" in
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews no)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""no" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ;;
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews *)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews if test -f $kame_path/lib/libinet6.a; then
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews echo "$ac_t""$kame_path/lib/libinet6.a" 1>&6
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews LIBS="$kame_path/lib -linet6 $LIBS"
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews else
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews { echo "configure: error: $kame_path/lib/libinet6.a not found.
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark AndrewsPlease choose the proper path with the following command:
configure --with-kame=PATH
" 1>&2; exit 1; }
fi
;;
esac
echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
echo "configure:3109: checking for inet_ntop" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3114 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_ntop(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntop();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
choke me
#else
inet_ntop();
#endif
; return 0; }
EOF
if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_ntop=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_ntop=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_ntop`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
fi
echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
echo "configure:3161: checking for inet_pton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3166 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_pton();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
choke me
#else
inet_pton();
#endif
; return 0; }
EOF
if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_pton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_pton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
fi
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3213: checking for inet_aton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3218 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_aton();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton();
#endif
; return 0; }
EOF
if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_inet_aton=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
fi
echo $ac_n "checking for strsep""... $ac_c" 1>&6
echo "configure:3265: checking for strsep" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3270 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strsep(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strsep();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_strsep) || defined (__stub___strsep)
choke me
#else
strsep();
#endif
; return 0; }
EOF
if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strsep=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_strsep=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'strsep`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS strsep.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS strsep.c"
ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
fi
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
echo "configure:3316: checking for vsnprintf" >&5
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3321 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vsnprintf(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char vsnprintf();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
choke me
#else
vsnprintf();
#endif
; return 0; }
EOF
if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vsnprintf=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_vsnprintf=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
echo "$ac_t""yes" 1>&6
ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
else
echo "$ac_t""no" 1>&6
ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O"
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
fi
echo $ac_n "checking for chroot""... $ac_c" 1>&6
echo "configure:3377: checking for chroot" >&5
if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3382 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char chroot(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char chroot();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_chroot) || defined (__stub___chroot)
choke me
#else
chroot();
#endif
; return 0; }
EOF
if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_chroot=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_func_chroot=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'chroot`\" = yes"; then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_CHROOT 1
EOF
else
echo "$ac_t""no" 1>&6
fi
for ac_hdr in linux/capability.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:3431: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3436 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
echo "$ac_t""no" 1>&6
fi
done
BIND9_TOP_BUILDDIR=`pwd`
if test "X$srcdir" != "X"; then
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
else
BIND9_ISC_BUILDINCLUDE=""
BIND9_DNS_BUILDINCLUDE=""
BIND9_OMAPI_BUILDINCLUDE=""
BIND9_LWRES_BUILDINCLUDE=""
fi
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
BIND9_VERSION=$srcdir/version
LIBISC_API=$srcdir/lib/isc/api
LIBDNS_API=$srcdir/lib/dns/api
LIBOMAPI_API=$srcdir/lib/omapi/api
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "make/rules
make/includes
Makefile
make/Makefile
make/mkdep
lib/Makefile
lib/isc/Makefile
lib/isc/include/Makefile
lib/isc/include/isc/Makefile
lib/isc/include/isc/platform.h
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
lib/isc/unix/include/isc/Makefile
lib/isc/nls/Makefile
lib/isc/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/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/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
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@STD_CINCLUDES@%$STD_CINCLUDES%g
s%@STD_CDEFINES@%$STD_CDEFINES%g
s%@STD_CWARNINGS@%$STD_CWARNINGS%g
s%@AR@%$AR%g
s%@ARFLAGS@%$ARFLAGS%g
s%@CC@%$CC%g
s%@YACC@%$YACC%g
s%@CPP@%$CPP%g
s%@MKDEPCC@%$MKDEPCC%g
s%@MKDEPCFLAGS@%$MKDEPCFLAGS%g
s%@MKDEPPROG@%$MKDEPPROG%g
s%@ISC_PLATFORM_HAVESALEN@%$ISC_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_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%@ISC_PLATFORM_HAVEIPV6@%$ISC_PLATFORM_HAVEIPV6%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%@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
/@BIND9_VERSION@/r $BIND9_VERSION
s%@BIND9_VERSION@%%g
/@LIBISC_API@/r $LIBISC_API
s%@LIBISC_API@%%g
/@LIBDNS_API@/r $LIBDNS_API
s%@LIBDNS_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/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/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
"}
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