configure.in revision d0fbcfeee1c1dbdb079231545de3a0c58248202f
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# Copyright (C) 1998-2002 Internet Software Consortium.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# Permission to use, copy, modify, and distribute this software for any
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# purpose with or without fee is hereby granted, provided that the above
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# copyright notice and this permission notice appear in all copies.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroederesyscmd([sed "s/^/# /" COPYRIGHT])dnl
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_DIVERT_POP()dnl
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_REVISION($Revision: 1.337 $)
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von SchroederAC_CONFIG_HEADER(config.h)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_CONFIG_SUBDIRS(lib/bind)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_CANONICAL_HOST
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von SchroederAC_PROG_MAKE_SET
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_SUBST(STD_CINCLUDES)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_SUBST(STD_CDEFINES)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_SUBST(STD_CWARNINGS)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_PATH_PROG(AR, ar)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von SchroederAC_SUBST(ARFLAGS)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# The POSIX ln(1) program. Non-POSIX systems may substitute
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# "copy" or something.
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroederar program not found. Please fix your PATH to include the directory in
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroederwhich ar resides, or set AR in the environment with the full path to ar.
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von SchroederAC_PATH_PROGS(ETAGS, etags emacs-etags)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# GNU emacs etags, and it requires the -L flag.
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroederif test "X$ETAGS" != "X"; then
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder AC_MSG_CHECKING(for Exuberant Ctags etags)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder AC_MSG_RESULT(yes)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder ETAGS="$ETAGS -L"
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder AC_MSG_RESULT(no)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# Perl is optional; it is used only by some of the system test scripts.
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von SchroederAC_PATH_PROGS(PERL, perl5 perl)
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# Special processing of paths depending on whether --prefix,
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# --sysconfdir or --localstatedir arguments were given. What's
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# desired is some compatability with the way previous versions
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# of BIND built; they defaulted to /usr/local for most parts of
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# the installation, but named.boot/named.conf was in /etc
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# So ... if none of --prefix, --sysconfdir or --localstatedir are
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# specified, set things up that way. If --prefix is given, use
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# it for sysconfdir and localstatedir the way configure normally
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# would. To change the prefix for everything but leave named.conf
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# in /etc or named.pid in /var/run, then do this the usual configure way:
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder# ./configure --prefix=/somewhere --sysconfdir=/etc
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# ./configure --prefix=/somewhere --localstatedir=/var
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder# To put named.conf and named.pid in /usr/local with everything else,
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# set the prefix explicitly to /usr/local even though that's the default:
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# ./configure --prefix=/usr/local
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroedercase "$prefix" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder case "$sysconfdir" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder '${prefix}/etc')
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder sysconfdir=/etc
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder case "$localstatedir" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder '${prefix}/var')
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder localstatedir=/var
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# Make sure INSTALL uses an absolute path, else it will be wrong in all
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# configure based on the location of the file where it is substituted.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# subdirectory of install-sh, This relative path will be wrong for all
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder# directories more than one level down from install-sh.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroedercase "$INSTALL" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder # Not all systems have dirname.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder changequote({, })
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder changequote([, ])
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder test "$ac_dir" = "$ac_prog" && ac_dir=.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder INSTALL="$ac_dir/$ac_prog"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# On these hosts, we really want to use cc, not gcc, even if it is
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder# found. The gcc that these systems have will not correctly handle
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# However, if the user sets $CC to be something, let that override
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroederif test "X$CC" = "X" ; then
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder case "$host" in
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder # Use Sun's cc if it is available, but watch
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder # out for /usr/ucb/cc; it will never be the right
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder # compiler to use.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder # If setting CC here fails, the AC_PROG_CC done
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder # below might still find gcc.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder for ac_dir in $PATH; do
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder test -z "$ac_dir" && ac_dir=.
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder case "$ac_dir" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder if test -f "$ac_dir/cc"; then
7aa5a243634268f72e64595e7618902a1d079f9fJonathan von Schroeder IFS="$ac_save_ifs"
7aa5a243634268f72e64595e7618902a1d079f9fJonathan von Schroeder mips-sgi-irix*)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# gcc's optimiser is broken at -02 for ultrasparc
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroederif test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder case "$host" in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder sparc-*-solaris*)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder CCFLAGS="-g -O1"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder# OSF 5.0: recv/send are only avaliable with -D_POSIX_PII_SOCKET or
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# -D_XOPEN_SOURCE_EXTENDED.
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/sysctl.h net/if6.h)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_CHECK_FUNC(sysctlbyname, AC_DEFINE(HAVE_SYSCTLBYNAME))
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder# UnixWare 7.1.1 with the feature supplement to the UDK compiler
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# is reported to not support "static inline" (RT #1212).
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_MSG_CHECKING(for static inline breakage)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_TRY_COMPILE(, [
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder static inline int foo1() {
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroeder static inline int foo2() {
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder [AC_MSG_RESULT(no)],
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder [AC_MSG_RESULT(yes)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder AC_DEFINE(inline, )])
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_CHECK_TYPE(ssize_t, int)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_MSG_CHECKING(for long long)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_TRY_COMPILE([],[long long i = 0; return (0);],
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder [AC_MSG_RESULT(yes)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"],
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder [AC_MSG_RESULT(no)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"])
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_SUBST(ISC_PLATFORM_HAVELONGLONG)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder# check if we have lifconf
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_MSG_CHECKING(for struct lifconf)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von SchroederAC_TRY_COMPILE([
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroederstruct lifconf lifconf;
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder [AC_MSG_RESULT(yes)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"],
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder [AC_MSG_RESULT(no)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"])
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_SUBST(ISC_PLATFORM_HAVELIFCONF)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder# check if we need to #include sys/select.h explicitly
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroedercase $ac_cv_header_unistd_h in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_MSG_CHECKING(if unistd.h or sys/types.h defines fd_set)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_TRY_COMPILE([
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder#include <sys/types.h> /* Ultrix */
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder[fd_set read_set; return (0);],
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder [AC_MSG_RESULT(yes)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"],
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder [AC_MSG_RESULT(no)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder case $ac_cv_header_sys_select_h in
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder AC_MSG_ERROR([need either working unistd.h or sys/select.h])
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder case $ac_cv_header_sys_select_h in
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder AC_MSG_ERROR([need either unistd.h or sys/select.h])
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_SUBST(ISC_PLATFORM_NEEDSYSSELECTH)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von SchroederAC_SUBST(LWRES_PLATFORM_NEEDSYSSELECTH)
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder# Find the machine's endian flavor.
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder# was --with-openssl specified?
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von SchroederAC_MSG_CHECKING(for OpenSSL library)
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von SchroederAC_ARG_WITH(openssl,
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder[ --with-openssl[=PATH] Build with OpenSSL [yes|no|path].
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder (Required for DNSSEC)],
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder use_openssl="$withval", use_openssl="no")
50bd139c03ca7e618eb93731e152cfaff3aab94dJonathan von Schroedercase "$use_openssl" in
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder AC_MSG_RESULT(no)
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder DST_OPENSSL_INC=""
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder if test "$use_openssl" = "yes"
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder # User did not specify a path - guess it
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg"
880945fae9c3f61341f1cd94439c802b7a0af194Jonathan von Schroeder for d in $openssldirs
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder if test -f $d/include/openssl/opensslv.h
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder if test "$use_openssl" = "yes"
bf453a6867cca0aa530bc8cac9eed9c3f70594b4Jonathan von Schroeder AC_MSG_RESULT(not found)
0a81f114e958d220a0bebbb90481c0b658f94e8eJonathan von Schroeder[OpenSSL was not found in any of $openssldirs; use --with-openssl=/path])
DST_OPENSSL_INC="-I$use_openssl/include"
DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
#include <openssl/err.h>
shared library configuration (e.g., LD_LIBRARY_PATH).)],
#include <openssl/err.h>],
#include <openssl/err.h>
#include <stdio.h>
#include <openssl/opensslv.h>
#include <stdio.h>
#include <openssl/opensslv.h>
# DST_GSSAPI_INC="-I$use_gssapi/include"
# DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
devrandom=/dev/arandom
devrandom=/dev/random
: ${LOCALBASE:=/usr/pkg}
if test ! -d $LOCALBASE/pthreads
AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
pkg="$LOCALBASE/pthreads"
CPPFLAGS="$CPPFLAGS -I$pkg/include"
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
# in BSD/OS 4.1.
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
# from lib/dns/sec/openssl.
LIBBIND=lib/bind
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>],
[ --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]],
kame_path=/usr/local/v6
if test -f $kame_path/lib/libinet6.a; then
AC_MSG_RESULT($kame_path/lib/libinet6.a)
LIBS="-L$kame_path/lib -linet6 $LIBS"
AC_MSG_ERROR([$kame_path/lib/libinet6.a not found.
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# netinet6/in6.h is needed for.
isc_netinet6in6_hack="#include <netinet6/in6.h>"
# This is similar to the netinet6/in6.h issue.
isc_netinetin6_hack="#include <netinet/in6.h>"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
[struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);],
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
[struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);],
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
[struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);],
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
ISC_IPV6_H="ipv6.h"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
#include <sys/types.h>
#include <net/if6.h>
#include <sys/types.h>
#include <net/if6.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
#include <sys/types.h>
#include <sys/socket.h>],
[struct sockaddr sa; sa.sa_len = 0; return (0);],
#include <sys/types.h>
#include <sys/socket.h>],
[struct msghdr msg; msg.msg_flags = 0; return (0);],
#include <sys/types.h>
#include <netinet/in.h>],
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>
AC_MSG_CHECKING(for h_errno in netdb.h)
#include <netdb.h>],
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
# because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
# reportedly defines strsep() without declaring it in <string.h> when
AC_TRY_LINK([#include <string.h>], [char *sp; char *foo = strsep(&sp, ".");],
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
AC_CHECK_HEADERS(linux/capability.h)
AC_CHECK_HEADERS(sys/prctl.h)
# BSD/OS, and perhaps some others, don't define rlim_t.
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}],
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
# Subroutine for searching for an ordinary file (e.g., a stylesheet)
# NetBSD /usr/pkg/share/sgml/docbook/catalog
# FreeBSD /usr/local/share/sgml/docbook/catalog
for s in docbook/dsssl-stylesheets
# Look for the HTML stylesheet html/docbook.dsl, used for
# FreeBSD /usr/local/share/sgml/docbook/dsssl/modular/
# Linux /usr/local/share/dsssl/docbook/
# Ditto for the print stylesheet print/docbook.dsl.
NOM_PATH_FILE(HTMLSTYLE, html/docbook.dsl, $stylepath)
NOM_PATH_FILE(PRINTSTYLE, print/docbook.dsl, $stylepath)
NOM_PATH_FILE(XMLDCL, dtds/decls/xml.dcl, $xmlpath)
# Look for docbook2man-spec.pl
NOM_PATH_FILE(DOCBOOK2MANSPEC, docbook2X/docbook2man-spec.pl, $sgmltrees)
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
LIBISC_API=$srcdir/lib/isc/api
LIBISCCC_API=$srcdir/lib/isccc/api
LIBISCCFG_API=$srcdir/lib/isccfg/api
LIBDNS_API=$srcdir/lib/dns/api
LIBBIND9_API=$srcdir/lib/bind9/api
LIBLWRES_API=$srcdir/lib/lwres/api
chmod a+x isc-config.sh