2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

all "dnl" comments are now "#" comments so they appear in configure

This commit is contained in:
David Lawrence
2000-02-11 18:35:11 +00:00
parent 6f6eeb26e4
commit df3c4c7988

View File

@@ -1,19 +1,19 @@
dnl Copyright (C) 1998, 1999, 2000 Internet Software Consortium. # Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
dnl #
dnl Permission to use, copy, modify, and distribute this software for any # Permission to use, copy, modify, and distribute this software for any
dnl purpose with or without fee is hereby granted, provided that the above # purpose with or without fee is hereby granted, provided that the above
dnl copyright notice and this permission notice appear in all copies. # copyright notice and this permission notice appear in all copies.
dnl #
dnl THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS # THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
dnl ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES # ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
dnl OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
dnl CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL # CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
dnl DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE. # SOFTWARE.
AC_REVISION($Revision: 1.98 $) AC_REVISION($Revision: 1.99 $)
AC_PREREQ(2.13) AC_PREREQ(2.13)
@@ -38,26 +38,26 @@ ARFLAGS="cruv"
AC_SUBST(AR) AC_SUBST(AR)
AC_SUBST(ARFLAGS) AC_SUBST(ARFLAGS)
dnl #
dnl Special processing of paths depending on whether --prefix, # Special processing of paths depending on whether --prefix,
dnl --sysconfdir or --localstatedir arguments were given. What's # --sysconfdir or --localstatedir arguments were given. What's
dnl desired is some compatability with the way previous versions # desired is some compatability with the way previous versions
dnl of BIND built; they defaulted to /usr/local for most parts of # of BIND built; they defaulted to /usr/local for most parts of
dnl the installation, but named.boot/named.conf was in /etc # the installation, but named.boot/named.conf was in /etc
dnl and named.pid was in /var/run. # and named.pid was in /var/run.
dnl #
dnl So ... if none of --prefix, --sysconfdir or --localstatedir are # So ... if none of --prefix, --sysconfdir or --localstatedir are
dnl specified, set things up that way. If --prefix is given, use # specified, set things up that way. If --prefix is given, use
dnl it for sysconfdir and localstatedir the way configure normally # it for sysconfdir and localstatedir the way configure normally
dnl would. To change the prefix for everything but leave named.conf # would. To change the prefix for everything but leave named.conf
dnl in /etc or named.pid in /var/run, then do this the usual configure way: # in /etc or named.pid in /var/run, then do this the usual configure way:
dnl ./configure --prefix=/somewhere --sysconfdir=/etc # ./configure --prefix=/somewhere --sysconfdir=/etc
dnl ./configure --prefix=/somewhere --localstatedir=/var # ./configure --prefix=/somewhere --localstatedir=/var
dnl #
dnl To put named.conf and named.pid in /usr/local with everything else, # To put named.conf and named.pid in /usr/local with everything else,
dnl set the prefix explicitly to /usr/local even though that's the default: # set the prefix explicitly to /usr/local even though that's the default:
dnl ./configure --prefix=/usr/local # ./configure --prefix=/usr/local
dnl #
case "$prefix" in case "$prefix" in
NONE) NONE)
case "$sysconfdir" in case "$sysconfdir" in
@@ -73,21 +73,21 @@ case "$prefix" in
;; ;;
esac esac
dnl #
dnl Make sure INSTALL uses an absolute path, else it will be wrong in all # Make sure INSTALL uses an absolute path, else it will be wrong in all
dnl Makefiles, since they use make/rules.in and INSTALL will be adjusted by # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
dnl configure based on the location of the file where it is substituted. # configure based on the location of the file where it is substituted.
dnl Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
dnl subdirectory of install-sh, This relative path will be wrong for all # subdirectory of install-sh, This relative path will be wrong for all
dnl directories more than one level down from install-sh. # directories more than one level down from install-sh.
dnl #
case "$INSTALL" in case "$INSTALL" in
/*) /*)
;; ;;
*) *)
dnl #
dnl Not all systems have dirname. # Not all systems have dirname.
dnl #
changequote({, }) changequote({, })
ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
changequote([, ]) changequote([, ])
@@ -99,20 +99,26 @@ case "$INSTALL" in
;; ;;
esac esac
dnl #
dnl On these hosts, we really want to use cc, not gcc, even if it is # On these hosts, we really want to use cc, not gcc, even if it is
dnl found. The gcc that these systems have will not correctly handle # found. The gcc that these systems have will not correctly handle
dnl pthreads. # pthreads.
dnl #
dnl However, if the user sets $CC to be something, let that override # However, if the user sets $CC to be something, let that override
dnl our change. # our change.
dnl #
if test "X$CC" = "X" ; then if test "X$CC" = "X" ; then
case "$host" in case "$host" in
*-dec-osf*) *-dec-osf*)
CC="cc" CC="cc"
;; ;;
*-sun-solaris*) *-sun-solaris*)
# Use Sun's cc if it is available, but watch
# out for /usr/ucb/cc; it will never be the right
# compiler to use.
#
# If setting CC here fails, the AC_PROG_CC done
# below might still find gcc.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
@@ -139,12 +145,11 @@ if test "X$CC" = "X" ; then
esac esac
fi fi
dnl #
dnl NetBSD has two alternative pthreads implementations. Make the # NetBSD has two alternative pthreads implementations. Make the
dnl user choose one by saying --with-mit-pthreads or --with-ptl2 # user choose one by saying --with-mit-pthreads or --with-ptl2
dnl if necessary. # if necessary.
dnl #
case "$host" in case "$host" in
*-netbsd*) *-netbsd*)
CC="gcc" CC="gcc"
@@ -158,9 +163,9 @@ case "$host" in
[ --with-ptl2 use the ptl2 thread library], [ --with-ptl2 use the ptl2 thread library],
use_ptl2="$withval", use_ptl2="no") use_ptl2="$withval", use_ptl2="no")
dnl If user did not choose a thread library explicitly, # If user did not choose a thread library explicitly,
dnl try to choose one automatically. This will work when # try to choose one automatically. This will work when
dnl exactly one library is installed. # exactly one library is installed.
case "$use_mit_pthreads+$use_ptl2" in case "$use_mit_pthreads+$use_ptl2" in
no+no) no+no)
@@ -187,9 +192,9 @@ case "$host" in
;; ;;
no+yes) no+yes)
AC_MSG_RESULT(PTL2) AC_MSG_RESULT(PTL2)
dnl pkg="/usr/pkg/PTL" # pkg="/usr/pkg/PTL"
dnl LIBS="-L/usr/pkg/lib -lPTL $LIBS" # LIBS="-L/usr/pkg/lib -lPTL $LIBS"
dnl STD_CINCLUDES="-nostdinc -idirafter $pkg/include" # STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
CC=ptlgcc CC=ptlgcc
;; ;;
*) *)
@@ -211,9 +216,9 @@ AC_PROG_YACC
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h) AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/sockio.h netinet6/in6.h)
dnl #
dnl HAVE_NETINET6_IN6_H needs to go in platform.h. # HAVE_NETINET6_IN6_H needs to go in platform.h.
dnl #
case "$ac_cv_header_netinet6_in6_h" in case "$ac_cv_header_netinet6_in6_h" in
yes) yes)
ISC_PLATFORM_HAVENETINET6IN6H="#define ISC_PLATFORM_HAVENETINET6IN6H 1" ISC_PLATFORM_HAVENETINET6IN6H="#define ISC_PLATFORM_HAVENETINET6IN6H 1"
@@ -237,9 +242,9 @@ AC_CHECK_LIB(pthread, pthread_create,,
AC_CHECK_LIB(pthread, __pthread_create_system) AC_CHECK_LIB(pthread, __pthread_create_system)
) )
dnl #
dnl We'd like to use sigwait() too # We'd like to use sigwait() too
dnl #
AC_CHECK_LIB(c, sigwait, AC_CHECK_LIB(c, sigwait,
AC_DEFINE(HAVE_SIGWAIT), AC_DEFINE(HAVE_SIGWAIT),
AC_CHECK_LIB(pthread, sigwait, AC_CHECK_LIB(pthread, sigwait,
@@ -248,34 +253,34 @@ AC_CHECK_LIB(c, sigwait,
AC_DEFINE(HAVE_SIGWAIT),)) AC_DEFINE(HAVE_SIGWAIT),))
) )
dnl #
dnl Additional OS-specific searching for sigwait. # Additional OS-specific searching for sigwait.
dnl #
case "$host" in case "$host" in
*-freebsd*) *-freebsd*)
AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),) AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),)
;; ;;
esac esac
dnl #
dnl Make sure we get the right sigwait() semantics... # Make sure we get the right sigwait() semantics...
dnl #
case "$host" in case "$host" in
*-sun-solaris*) *-sun-solaris*)
AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
;; ;;
esac esac
dnl #
dnl NLS # NLS
dnl #
AC_CHECK_FUNC(catgets, AC_DEFINE(HAVE_CATGETS),) AC_CHECK_FUNC(catgets, AC_DEFINE(HAVE_CATGETS),)
dnl #
dnl BSDI 3.1 through 4.0.1 needs pthread_init() to be called before certain # BSDI 3.1 through 4.0.1 needs pthread_init() to be called before certain
dnl pthreads calls. LinuxThreads requires some changes to the way we deal with # pthreads calls. LinuxThreads requires some changes to the way we deal with
dnl signals. # signals.
dnl #
case "$host" in case "$host" in
*-bsdi3.1*|*-bsdi4.0*) *-bsdi3.1*|*-bsdi4.0*)
AC_DEFINE(NEED_PTHREAD_INIT) AC_DEFINE(NEED_PTHREAD_INIT)
@@ -285,17 +290,16 @@ case "$host" in
;; ;;
esac esac
dnl #
# -lxnet buys us one big porting headache... standards, gotta love 'em.
dnl -lxnet buys us one big porting headache... standards, gotta love 'em. #
dnl # AC_CHECK_LIB(xnet, socket, ,
dnl AC_CHECK_LIB(xnet, socket, , # AC_CHECK_LIB(socket, socket)
dnl AC_CHECK_LIB(socket, socket) # AC_CHECK_LIB(nsl, inet_ntoa)
dnl AC_CHECK_LIB(nsl, inet_ntoa) # )
dnl ) #
dnl # Use this for now, instead:
dnl Use this for now, instead: #
dnl
case "$host" in case "$host" in
mips-sgi-irix*) mips-sgi-irix*)
;; ;;
@@ -342,20 +346,19 @@ AC_SUBST(MKDEPCC)
AC_SUBST(MKDEPCFLAGS) AC_SUBST(MKDEPCFLAGS)
AC_SUBST(MKDEPPROG) AC_SUBST(MKDEPPROG)
dnl #
dnl Networking specifics. # Networking specifics.
dnl #
case "$host" in case "$host" in
*-dec-osf*) *-dec-osf*)
dnl Turn on 4.4BSD style sa_len support. # Turn on 4.4BSD style sa_len support.
AC_DEFINE(_SOCKADDR_LEN) AC_DEFINE(_SOCKADDR_LEN)
;; ;;
esac esac
dnl #
dnl Look for a 4.4BSD-style sa_len member in struct sockaddr. # Look for a 4.4BSD-style sa_len member in struct sockaddr.
dnl #
AC_MSG_CHECKING(for sa_len in struct sockaddr) AC_MSG_CHECKING(for sa_len in struct sockaddr)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
@@ -370,10 +373,9 @@ AC_TRY_COMPILE([
AC_SUBST(ISC_PLATFORM_HAVESALEN) AC_SUBST(ISC_PLATFORM_HAVESALEN)
AC_SUBST(LWRES_PLATFORM_HAVESALEN) AC_SUBST(LWRES_PLATFORM_HAVESALEN)
dnl #
dnl Look for a 4.4BSD or 4.3BSD struct msghdr # Look for a 4.4BSD or 4.3BSD struct msghdr
dnl #
AC_MSG_CHECKING(for struct msghdr flavor) AC_MSG_CHECKING(for struct msghdr flavor)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
@@ -385,9 +387,9 @@ AC_TRY_COMPILE([
ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"]) ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"])
AC_SUBST(ISC_PLATFORM_MSGHDRFLAVOR) AC_SUBST(ISC_PLATFORM_MSGHDRFLAVOR)
dnl #
dnl Look for in_port_t. # Look for in_port_t.
dnl #
AC_MSG_CHECKING(for type in_port_t) AC_MSG_CHECKING(for type in_port_t)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
@@ -399,9 +401,9 @@ AC_TRY_COMPILE([
ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"]) ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"])
AC_SUBST(ISC_PLATFORM_NEEDPORTT) AC_SUBST(ISC_PLATFORM_NEEDPORTT)
dnl #
dnl Check for addrinfo # Check for addrinfo
dnl #
AC_MSG_CHECKING(for struct addrinfo) AC_MSG_CHECKING(for struct addrinfo)
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <netdb.h>], #include <netdb.h>],
@@ -497,10 +499,9 @@ AC_SUBST(ISC_LWRES_GETIPNODEPROTO)
AC_SUBST(ISC_LWRES_GETADDRINFOPROTO) AC_SUBST(ISC_LWRES_GETADDRINFOPROTO)
AC_SUBST(ISC_LWRES_GETNAMEINFOPROTO) AC_SUBST(ISC_LWRES_GETNAMEINFOPROTO)
dnl #
dnl Look for a sysctl call to get the list of network interfaces. # Look for a sysctl call to get the list of network interfaces.
dnl #
AC_MSG_CHECKING(for interface list sysctl) AC_MSG_CHECKING(for interface list sysctl)
AC_EGREP_CPP(found_rt_iflist, [ AC_EGREP_CPP(found_rt_iflist, [
#include <sys/param.h> #include <sys/param.h>
@@ -514,9 +515,9 @@ found_rt_iflist
AC_DEFINE(HAVE_IFLIST_SYSCTL)], AC_DEFINE(HAVE_IFLIST_SYSCTL)],
[AC_MSG_RESULT(no)]) [AC_MSG_RESULT(no)])
dnl #
dnl GNU libtool support # GNU libtool support
dnl #
AC_ARG_WITH(libtool, AC_ARG_WITH(libtool,
[ --with-libtool use GNU libtool], [ --with-libtool use GNU libtool],
use_libtool="$withval", use_libtool="no") use_libtool="$withval", use_libtool="no")
@@ -537,16 +538,16 @@ esac
AC_SUBST(O) AC_SUBST(O)
AC_SUBST(A) AC_SUBST(A)
dnl #
dnl IPv6 # IPv6
dnl #
AC_ARG_ENABLE(ipv6, AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 use IPv6 [default=autodetect]]) [ --enable-ipv6 use IPv6 [default=autodetect]])
dnl #
dnl We do the IPv6 compilation checking after libtool so that we can put # We do the IPv6 compilation checking after libtool so that we can put
dnl the right suffix on the files. # the right suffix on the files.
dnl #
case "$enable_ipv6" in case "$enable_ipv6" in
yes|''|autodetect) yes|''|autodetect)
AC_MSG_CHECKING(for IPv6 structures) AC_MSG_CHECKING(for IPv6 structures)
@@ -587,9 +588,9 @@ AC_SUBST(ISC_IPV6_O)
AC_SUBST(ISC_ISCIPV6_O) AC_SUBST(ISC_ISCIPV6_O)
AC_SUBST(ISC_IPV6_C) AC_SUBST(ISC_IPV6_C)
dnl #
dnl IPv6 support provided via Kame # IPv6 support provided via Kame
dnl #
AC_MSG_CHECKING(for Kame IPv6 support) AC_MSG_CHECKING(for Kame IPv6 support)
AC_ARG_WITH(kame, AC_ARG_WITH(kame,
[ --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]], [ --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]],
@@ -626,11 +627,11 @@ Please choose the proper path with the following command:
esac esac
dnl #
dnl Check for network functions that are often missing. We do this # Check for network functions that are often missing. We do this
dnl after the libtool checking, so we can put the right suffix on # after the libtool checking, so we can put the right suffix on
dnl the files. # the files.
dnl #
AC_CHECK_FUNC(inet_ntop, AC_CHECK_FUNC(inet_ntop,
[ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"], [ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"],
[ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" [ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
@@ -676,18 +677,16 @@ AC_TRY_RUN([main() { exit(!(sizeof(long long int) == sizeof(long int))); }],
ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"]) ISC_PLATFORM_LONGLONGEQUALLONG="#define ISC_PLATFORM_LONGLONGEQUALLONG 1"])
AC_SUBST(ISC_PLATFORM_LONGLONGEQUALLONG) AC_SUBST(ISC_PLATFORM_LONGLONGEQUALLONG)
dnl #
dnl Security Stuff # Security Stuff
dnl #
AC_CHECK_FUNC(chroot, AC_DEFINE(HAVE_CHROOT)) AC_CHECK_FUNC(chroot, AC_DEFINE(HAVE_CHROOT))
AC_CHECK_HEADERS(linux/capability.h) AC_CHECK_HEADERS(linux/capability.h)
dnl #
dnl Substitutions # Substitutions
dnl #
AC_SUBST(BIND9_TOP_BUILDDIR) AC_SUBST(BIND9_TOP_BUILDDIR)
BIND9_TOP_BUILDDIR=`pwd` BIND9_TOP_BUILDDIR=`pwd`