PG_CONFIG
SO_TARGETS
SO_LD
+SO_LDFLAGS
SO_CFLAGS
SO
BIND9_CONFIGARGS
--enable-largefile 64-bit file support
--enable-backtrace log stack backtrace on abort [default=yes]
--enable-symtable use internal symbol table for backtrace
- [all|minimal(default)|none]
+ [all|minimal(default)|none]
--enable-ipv6 use IPv6 default=autodetect
--enable-getifaddrs Enable the use of getifaddrs() [yes|no].
--disable-isc-spnego use SPNEGO from GSSAPI library
--with-openssl=PATH Build with OpenSSL yes|no|path.
(Crypto is required for DNSSEC)
--with-pkcs11=PATH Build with PKCS11 support yes|no|path
- (PATH is for the PKCS11 provider)
+ (PATH is for the PKCS11 provider)
--with-ecdsa Crypto ECDSA
--with-gost Crypto GOST yes|no|raw|asn1.
--with-libxml2=PATH Build with libxml2 library yes|no|path
esac
break
fi
- testscript='try: import argparse
+ testscript='try: import argparse
except: exit(1)'
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
$as_echo_n "checking python module 'argparse'... " >&6; }
- if $PYTHON -c "$testscript"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
+ if $PYTHON -c "$testscript"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
$as_echo "found, using $PYTHON" >&6; }
- else
+ else
case "$use_python" in
unspec)
PYTHON=""
$as_echo "not found, python disabled" >&6; }
;;
yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no found" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no found" >&5
$as_echo "no found" >&6; }
- as_fn_error $? "python 'argparse' module not supported" "$LINENO" 5
+ as_fn_error $? "python 'argparse' module not supported" "$LINENO" 5
;;
esac
- fi
+ fi
;;
esac
CHECKDS=''
COVERAGE=''
if test "X$PYTHON" != "X"; then
- PYTHON_TOOLS=python
+ PYTHON_TOOLS=python
CHECKDS=checkds
COVERAGE=coverage
fi
LIBS="$LIBS -L$use_geoip/lib"
esac
elif test "$use_geoip" = "yes"
- then
+ then
as_fn_error $? "GeoIP path not found" "$LINENO" 5
else
as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
{
struct in6_addr in6;
- int i = GEOIP_CITY_EDITION_REV0_V6;
+ int i = GEOIP_CITY_EDITION_REV0_V6;
GeoIP_record_by_ipnum_v6(NULL, in6);
;
for d in $krb5dirs
do
if test -f $d/include/gssapi/gssapi_krb5.h -o \
- -f $d/include/krb5.h
+ -f $d/include/krb5.h
then
if test -f $d/include/gssapi/gssapi.h -o \
- -f $d/include/gssapi.h
+ -f $d/include/gssapi.h
then
use_gssapi=$d
break
$as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h
- gosttype="asn1"
+ gosttype="asn1"
with_gost="yes"
;;
auto|yes|no)
;;
esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
$as_echo_n "checking for OpenSSL DSA support... " >&6; }
- if test -f $use_openssl/include/openssl/dsa.h
- then
- $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
+ if test -f $use_openssl/include/openssl/dsa.h
+ then
+ $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- fi
+ fi
- for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
+ for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
$as_echo_n "checking for OpenSSL ECDSA support... " >&6; }
- have_ecdsa=""
- if test "$cross_compiling" = yes; then :
+ have_ecdsa=""
+ if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5
$as_echo "using --with-ecdsa" >&6; }
else
if ac_fn_c_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- have_ecdsa="yes"
+ have_ecdsa="yes"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- have_ecdsa="no"
+ have_ecdsa="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- case "$with_ecdsa" in
- yes)
- case "$have_ecdsa" in
- no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;;
- *) have_ecdsa=yes ;;
- esac
- ;;
- no)
- have_ecdsa=no ;;
- *)
- case "$have_ecdsa" in
- yes|no) ;;
- *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;;
- esac
- ;;
- esac
- case $have_ecdsa in
- yes)
- OPENSSL_ECDSA="yes"
+ case "$with_ecdsa" in
+ yes)
+ case "$have_ecdsa" in
+ no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;;
+ *) have_ecdsa=yes ;;
+ esac
+ ;;
+ no)
+ have_ecdsa=no ;;
+ *)
+ case "$have_ecdsa" in
+ yes|no) ;;
+ *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+ case $have_ecdsa in
+ yes)
+ OPENSSL_ECDSA="yes"
$as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h
- ;;
- *)
- ;;
- esac
+ ;;
+ *)
+ ;;
+ esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
$as_echo_n "checking for OpenSSL GOST support... " >&6; }
- have_gost=""
- case "$use_pkcs11" in
- auto|no)
- ;;
- *)
- if $use_threads; then
- CC="$CC -pthread"
- fi
- ;;
- esac
- if test "$cross_compiling" = yes; then :
+ have_gost=""
+ case "$use_pkcs11" in
+ auto|no)
+ ;;
+ *)
+ if $use_threads; then
+ CC="$CC -pthread"
+ fi
+ ;;
+ esac
+ if test "$cross_compiling" = yes; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5
$as_echo "using --with-gost" >&6; }
else
if ac_fn_c_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- have_gost="yes"
+ have_gost="yes"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- have_gost="no"
+ have_gost="no"
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- case "$with_gost" in
- yes)
- case "$have_gost" in
- no) as_fn_error $? "gost not supported" "$LINENO" 5 ;;
- *) have_gost=yes ;;
- esac
- ;;
- no)
- have_gost=no ;;
- *)
- case "$have_gost" in
- yes|no) ;;
- *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;;
- esac
- ;;
- esac
- case $have_gost in
- yes)
+ case "$with_gost" in
+ yes)
+ case "$have_gost" in
+ no) as_fn_error $? "gost not supported" "$LINENO" 5 ;;
+ *) have_gost=yes ;;
+ esac
+ ;;
+ no)
+ have_gost=no ;;
+ *)
+ case "$have_gost" in
+ yes|no) ;;
+ *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+ case $have_gost in
+ yes)
OPENSSL_GOST="yes"
OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}'
OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}'
$as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h
;;
- *)
- ;;
- esac
- CC="$saved_cc"
- CFLAGS="$saved_cflags"
- LIBS="$saved_libs"
- OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
- OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
+ *)
+ ;;
+ esac
+ CC="$saved_cc"
+ CFLAGS="$saved_cflags"
+ LIBS="$saved_libs"
+ OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
+ OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
- ;;
+ ;;
esac
#
yes|*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- if ! $use_threads; then
+ if ! $use_threads; then
as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5
- fi
+ fi
if test "$CRYPTO" != ""
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5
$as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; }
- saved_cc="$CC"
+ saved_cc="$CC"
saved_cflags="$CFLAGS"
saved_libs="$LIBS"
- CC="$CC -pthread"
+ CC="$CC -pthread"
CFLAGS="$CFLAGS $DST_OPENSSL_INC"
LIBS="$LIBS $DNS_OPENSSL_LIBS"
if test "$cross_compiling" = yes; then :
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- CC="$saved_cc"
+ CC="$saved_cc"
CFLAGS="$saved_cflags"
LIBS="$saved_libs"
else
CRYPTO="-DPKCS11CRYPTO"
PKCS11LINKOBJS='${PKCS11LINKOBJS}'
PKCS11LINKSRCS='${PKCS11LINKSRCS}'
- PKCS11_TEST=pkcs11
+ PKCS11_TEST=pkcs11
case "$with_ecdsa" in
no)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled PKCS11 ECDSA" >&5
;;
auto|yes)
if test -f "/usr/include/json/json.h"
- then
+ then
libjson_cflags="-I /usr/include/json"
have_libjson="yes"
- elif test -f "/usr/include/json-c/json.h"
- then
+ elif test -f "/usr/include/json-c/json.h"
+ then
libjson_cflags="-I /usr/include/json-c"
have_libjson="yes"
- fi
+ fi
;;
*)
if test -f "${use_libjson}/include/json/json.h"
- then
+ then
libjson_cflags="-I${use_libjson}/include/json"
LIBS="$LIBS -L${use_libjson}/lib"
have_libjson="yes"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found libjson include but not library." >&5
$as_echo "$as_me: WARNING: found libjson include but not library." >&2;}
- have_libjson=""
+ have_libjson=""
fi
else
#include <sys/socket.h>
#include <netdb.h>
int getnameinfo(const struct sockaddr *, socklen_t, char *,
- socklen_t, char *, socklen_t, unsigned int);
+ socklen_t, char *, socklen_t, unsigned int);
int
main ()
{
#include <sys/socket.h>
#include <netdb.h>
int getnameinfo(const struct sockaddr *, socklen_t, char *,
- size_t, char *, size_t, int);
+ size_t, char *, size_t, int);
int
main ()
{
READLINE_LIB="$readline"
fi
LIBS="$saved_LIBS"
- ;;
+ ;;
esac
# Older HP-UX doesn't have gettune
#
case "$host" in
- *-hp-hpux*)
+ *-hp-hpux*)
for ac_header in sys/dyntune.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
i[3456]86-*)
# XXX: some old x86 architectures actually do not support
# (some of) these operations. Do we need stricter checks?
- # The cast to long int works around a bug in the HP C Compiler
+ # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
fi
;;
x86_64-*|amd64-*)
- # The cast to long int works around a bug in the HP C Compiler
+ # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
;;
*)
docbook_xsl_trees="$withval"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
$as_echo "$docbook_xsl_trees" >&6; }
;;
esac
#
SO="so"
SO_CFLAGS=""
+SO_LDFLAGS=""
SO_LD=""
SO_TARGETS=""
if test "$have_dl" = "yes"; then
LIBS="-ldl $LIBS"
fi
- for ac_func in dlopen dlclose dlsym
+ for ac_func in dlopen dlclose dlsym
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
case $host in
*-linux*)
SO_CFLAGS="-fPIC"
+ SO_LDFLAGS=""
if test "$have_dl" = "yes"
then
if test "$use_libtool" = "yes"; then
- SO_LD="${CC} -Xcompiler -shared"
+ SO_LDFLAGS="-Xcompiler -shared"
+ SO_LD="${CC}"
else
- SO_LD="${CC} -shared"
+ SO_LDFLAGS="-shared"
+ SO_LD="${CC}"
fi
else
- SO_LD="ld -shared"
+ SO_LDFLAGS="-shared"
+ SO_LD="ld"
fi
;;
*-freebsd*|*-openbsd*|*-netbsd*)
SO_CFLAGS="-fpic"
- SO_LD="ld -Bshareable -x"
+ SO_LDFLAGS="-Bshareable -x"
+ SO_LD="ld"
;;
*-solaris*)
SO_CFLAGS="-KPIC"
- SO_LD="ld -G -z text"
- ;;
+ SO_LDFLAGS="-G -z text"
+ SO_LD="ld"
+ ;;
*-hp-hpux*)
SO=sl
SO_CFLAGS="+z"
- SO_LD="ld -b"
- ;;
+ SO_LDFLAGS="-b"
+ SO_LD="ld"
+ ;;
*)
SO_CFLAGS="-fPIC"
;;
if test "X$GCC" = "Xyes"; then
SO_CFLAGS="-fPIC"
- test -n "$SO_LD" || SO_LD="${CC} -shared"
+ if test -z "$SO_LD"
+ then
+ if test "$use_libtool" = "yes"; then
+ SO_LDFLAGS="-Xcompiler -shared"
+ SO_LD="${CC}"
+ else
+ SO_LDFLAGS="-shared"
+ SO_LD="${CC}"
+ fi
+ fi
fi
# If we still don't know how to make shared objects, don't make any.
+
# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and distribute this software for any
# these lines are only printed if run with --enable-full-report
if test "$enable_full_report" = "yes"; then
test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" || \
- echo " IPv6 support (--enable-ipv6)"
+ echo " IPv6 support (--enable-ipv6)"
test "X$CRYPTO" = "X" -o "$want_native_pkcs11" = "yes" || \
- echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
+ echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
test "X$libxml2_libs" = "X" || echo " XML statistics (--with-libxml2)"
test "X$have_libjson" = "X" || echo " JSON statistics (--with-libjson)"
if test "$use_pkcs11" != "no"; then
if test "$want_native_pkcs11" = "yes"; then
- echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
+ echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
else
- echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
+ echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
fi
echo " Provider library: $PKCS11_PROVIDER"
fi
echo "Features disabled or unavailable on this platform:"
$use_threads || echo " Multiprocessing support (--enable-threads)"
test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" && \
- echo " IPv6 support (--enable-ipv6)"
+ echo " IPv6 support (--enable-ipv6)"
test "$use_geoip" = "no" && echo " GeoIP access control (--with-geoip)"
test "$use_gssapi" = "no" && echo " GSS-API (--with-gssapi)"
esac
break
fi
- testscript='try: import argparse
+ testscript='try: import argparse
except: exit(1)'
AC_MSG_CHECKING([python module 'argparse'])
- if $PYTHON -c "$testscript"; then
- AC_MSG_RESULT([found, using $PYTHON])
- else
+ if $PYTHON -c "$testscript"; then
+ AC_MSG_RESULT([found, using $PYTHON])
+ else
case "$use_python" in
unspec)
PYTHON=""
AC_MSG_RESULT([not found, python disabled])
;;
yes)
- AC_MSG_RESULT([no found])
- AC_MSG_ERROR([python 'argparse' module not supported])
+ AC_MSG_RESULT([no found])
+ AC_MSG_ERROR([python 'argparse' module not supported])
;;
esac
- fi
+ fi
;;
esac
CHECKDS=''
COVERAGE=''
if test "X$PYTHON" != "X"; then
- PYTHON_TOOLS=python
+ PYTHON_TOOLS=python
CHECKDS=checkds
COVERAGE=coverage
fi
LIBS="$LIBS -L$use_geoip/lib"
esac
elif test "$use_geoip" = "yes"
- then
+ then
AC_MSG_ERROR([GeoIP path not found])
else
AC_MSG_ERROR([GeoIP path $use_geoip does not exist])
AC_SEARCH_LIBS(fabsf, m, [],
[AC_MSG_ERROR([Math library not found])]
)
- AC_DEFINE(HAVE_GEOIP, 1, Build with GeoIP support)
+ AC_DEFINE(HAVE_GEOIP, 1, Build with GeoIP support)
GEOIPLINKSRCS='${GEOIPLINKSRCS}'
GEOIPLINKOBJS='${GEOIPLINKOBJS}'
AC_MSG_CHECKING([for GeoIP support])
])],
[
AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_GEOIP_V6, 1, Build with GeoIP Country IPv6 support)
+ AC_DEFINE(HAVE_GEOIP_V6, 1, Build with GeoIP Country IPv6 support)
],
[AC_MSG_RESULT([no])]
)
#include <netinet/in.h>
], [
struct in6_addr in6;
- int i = GEOIP_CITY_EDITION_REV0_V6;
+ int i = GEOIP_CITY_EDITION_REV0_V6;
GeoIP_record_by_ipnum_v6(NULL, in6);
])],
[
AC_MSG_RESULT([yes])
- AC_DEFINE(HAVE_GEOIP_CITY_V6, 1, Build with GeoIP City IPv6 support)
+ AC_DEFINE(HAVE_GEOIP_CITY_V6, 1, Build with GeoIP City IPv6 support)
],
[AC_MSG_RESULT([no])]
)
for d in $krb5dirs
do
if test -f $d/include/gssapi/gssapi_krb5.h -o \
- -f $d/include/krb5.h
+ -f $d/include/krb5.h
then
if test -f $d/include/gssapi/gssapi.h -o \
- -f $d/include/gssapi.h
+ -f $d/include/gssapi.h
then
use_gssapi=$d
break
#
AC_ARG_WITH(pkcs11,
[ --with-pkcs11[=PATH] Build with PKCS11 support [yes|no|path]
- (PATH is for the PKCS11 provider)],
+ (PATH is for the PKCS11 provider)],
use_pkcs11="$withval", use_pkcs11="auto")
openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
OPENSSL_ECDSA=""
OPENSSL_GOST=""
AC_ARG_WITH(ecdsa, [ --with-ecdsa Crypto ECDSA],
- with_ecdsa="$withval", with_ecdsa="auto")
+ with_ecdsa="$withval", with_ecdsa="auto")
AC_ARG_WITH(gost,
[ --with-gost Crypto GOST [yes|no|raw|asn1].],
- with_gost="$withval", with_gost="auto")
+ with_gost="$withval", with_gost="auto")
gosttype="raw"
case "$with_gost" in
raw)
asn1)
AC_DEFINE(PREFER_GOSTASN1, 1,
[Define if GOST private keys are encoded in ASN.1.])
- gosttype="asn1"
+ gosttype="asn1"
with_gost="yes"
;;
auto|yes|no)
;;
esac
- AC_MSG_CHECKING(for OpenSSL DSA support)
- if test -f $use_openssl/include/openssl/dsa.h
- then
- AC_DEFINE(HAVE_OPENSSL_DSA)
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- fi
+ AC_MSG_CHECKING(for OpenSSL DSA support)
+ if test -f $use_openssl/include/openssl/dsa.h
+ then
+ AC_DEFINE(HAVE_OPENSSL_DSA)
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
- AC_CHECK_FUNCS(EVP_sha256 EVP_sha384 EVP_sha512)
+ AC_CHECK_FUNCS(EVP_sha256 EVP_sha384 EVP_sha512)
- AC_MSG_CHECKING(for OpenSSL ECDSA support)
- have_ecdsa=""
- AC_TRY_RUN([
+ AC_MSG_CHECKING(for OpenSSL ECDSA support)
+ have_ecdsa=""
+ AC_TRY_RUN([
#include <stdio.h>
#include <openssl/ecdsa.h>
#include <openssl/objects.h>
return (0);
}
],
- [AC_MSG_RESULT(yes)
- have_ecdsa="yes"],
- [AC_MSG_RESULT(no)
- have_ecdsa="no"],
- [AC_MSG_RESULT(using --with-ecdsa)])
- case "$with_ecdsa" in
- yes)
- case "$have_ecdsa" in
- no) AC_MSG_ERROR([ecdsa not supported]) ;;
- *) have_ecdsa=yes ;;
- esac
- ;;
- no)
- have_ecdsa=no ;;
- *)
- case "$have_ecdsa" in
- yes|no) ;;
- *) AC_MSG_ERROR([need --with-ecdsa=[[yes or no]]]) ;;
- esac
- ;;
- esac
- case $have_ecdsa in
- yes)
- OPENSSL_ECDSA="yes"
- AC_DEFINE(HAVE_OPENSSL_ECDSA, 1,
- [Define if your OpenSSL version supports ECDSA.])
- ;;
- *)
- ;;
- esac
-
- AC_MSG_CHECKING(for OpenSSL GOST support)
- have_gost=""
- case "$use_pkcs11" in
- auto|no)
- ;;
- *)
- if $use_threads; then
- CC="$CC -pthread"
- fi
- ;;
- esac
- AC_TRY_RUN([
+ [AC_MSG_RESULT(yes)
+ have_ecdsa="yes"],
+ [AC_MSG_RESULT(no)
+ have_ecdsa="no"],
+ [AC_MSG_RESULT(using --with-ecdsa)])
+ case "$with_ecdsa" in
+ yes)
+ case "$have_ecdsa" in
+ no) AC_MSG_ERROR([ecdsa not supported]) ;;
+ *) have_ecdsa=yes ;;
+ esac
+ ;;
+ no)
+ have_ecdsa=no ;;
+ *)
+ case "$have_ecdsa" in
+ yes|no) ;;
+ *) AC_MSG_ERROR([need --with-ecdsa=[[yes or no]]]) ;;
+ esac
+ ;;
+ esac
+ case $have_ecdsa in
+ yes)
+ OPENSSL_ECDSA="yes"
+ AC_DEFINE(HAVE_OPENSSL_ECDSA, 1,
+ [Define if your OpenSSL version supports ECDSA.])
+ ;;
+ *)
+ ;;
+ esac
+
+ AC_MSG_CHECKING(for OpenSSL GOST support)
+ have_gost=""
+ case "$use_pkcs11" in
+ auto|no)
+ ;;
+ *)
+ if $use_threads; then
+ CC="$CC -pthread"
+ fi
+ ;;
+ esac
+ AC_TRY_RUN([
#include <openssl/conf.h>
#include <openssl/engine.h>
int main() {
#endif
}
],
- [AC_MSG_RESULT(yes)
- have_gost="yes"],
- [AC_MSG_RESULT(no)
- have_gost="no"],
- [AC_MSG_RESULT(using --with-gost)])
- case "$with_gost" in
- yes)
- case "$have_gost" in
- no) AC_MSG_ERROR([gost not supported]) ;;
- *) have_gost=yes ;;
- esac
- ;;
- no)
- have_gost=no ;;
- *)
- case "$have_gost" in
- yes|no) ;;
- *) AC_MSG_ERROR([need --with-gost=[[yes, no, raw or asn1]]]) ;;
- esac
- ;;
- esac
- case $have_gost in
- yes)
+ [AC_MSG_RESULT(yes)
+ have_gost="yes"],
+ [AC_MSG_RESULT(no)
+ have_gost="no"],
+ [AC_MSG_RESULT(using --with-gost)])
+ case "$with_gost" in
+ yes)
+ case "$have_gost" in
+ no) AC_MSG_ERROR([gost not supported]) ;;
+ *) have_gost=yes ;;
+ esac
+ ;;
+ no)
+ have_gost=no ;;
+ *)
+ case "$have_gost" in
+ yes|no) ;;
+ *) AC_MSG_ERROR([need --with-gost=[[yes, no, raw or asn1]]]) ;;
+ esac
+ ;;
+ esac
+ case $have_gost in
+ yes)
OPENSSL_GOST="yes"
OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}'
OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}'
AC_DEFINE(HAVE_OPENSSL_GOST, 1,
[Define if your OpenSSL version supports GOST.])
;;
- *)
- ;;
- esac
- CC="$saved_cc"
- CFLAGS="$saved_cflags"
- LIBS="$saved_libs"
- OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
- OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
-
- ;;
+ *)
+ ;;
+ esac
+ CC="$saved_cc"
+ CFLAGS="$saved_cflags"
+ LIBS="$saved_libs"
+ OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
+ OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
+
+ ;;
esac
#
;;
yes|*)
AC_MSG_RESULT(yes)
- if ! $use_threads; then
+ if ! $use_threads; then
AC_MSG_ERROR([PKCS11 requires thread support])
- fi
+ fi
if test "$CRYPTO" != ""
then
AC_MSG_CHECKING(for OpenSSL with PKCS11 support)
- saved_cc="$CC"
+ saved_cc="$CC"
saved_cflags="$CFLAGS"
saved_libs="$LIBS"
- CC="$CC -pthread"
+ CC="$CC -pthread"
CFLAGS="$CFLAGS $DST_OPENSSL_INC"
LIBS="$LIBS $DNS_OPENSSL_LIBS"
AC_TRY_RUN([
[AC_MSG_RESULT(cross compile, defaulting to no)
PKCS11_TEST=''
PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'])
- CC="$saved_cc"
+ CC="$saved_cc"
CFLAGS="$saved_cflags"
LIBS="$saved_libs"
else
CRYPTO="-DPKCS11CRYPTO"
PKCS11LINKOBJS='${PKCS11LINKOBJS}'
PKCS11LINKSRCS='${PKCS11LINKSRCS}'
- PKCS11_TEST=pkcs11
+ PKCS11_TEST=pkcs11
case "$with_ecdsa" in
no)
AC_MSG_RESULT([disabled PKCS11 ECDSA])
*)
PKCS11_ECDSA="yes"
AC_DEFINE(HAVE_PKCS11_ECDSA, 1,
- [Define if your PKCS11 provider supports ECDSA.])
+ [Define if your PKCS11 provider supports ECDSA.])
;;
esac
case "$with_gost" in
yes)
PKCS11_GOST="yes"
AC_DEFINE(HAVE_PKCS11_GOST, 1,
- [Define if your PKCS11 provider supports GOST.])
+ [Define if your PKCS11 provider supports GOST.])
;;
*)
AC_MSG_RESULT([disabled PKCS11 GOST])
;;
auto|yes)
if test -f "/usr/include/json/json.h"
- then
+ then
libjson_cflags="-I /usr/include/json"
have_libjson="yes"
- elif test -f "/usr/include/json-c/json.h"
- then
+ elif test -f "/usr/include/json-c/json.h"
+ then
libjson_cflags="-I /usr/include/json-c"
have_libjson="yes"
- fi
+ fi
;;
*)
if test -f "${use_libjson}/include/json/json.h"
- then
+ then
libjson_cflags="-I${use_libjson}/include/json"
LIBS="$LIBS -L${use_libjson}/lib"
have_libjson="yes"
AC_MSG_RESULT(yes)
AC_SEARCH_LIBS([json_object_new_int64], [json json-c], [],
[AC_MSG_WARN([found libjson include but not library.])
- have_libjson=""])
+ have_libjson=""])
else
AC_MSG_RESULT(no)
fi
AC_ARG_ENABLE(symtable,
[ --enable-symtable use internal symbol table for backtrace
- [[all|minimal(default)|none]]],
+ [[all|minimal(default)|none]]],
want_symtable="$enableval", want_symtable="minimal")
case $want_symtable in
yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
#include <sys/socket.h>
#include <netdb.h>
int getnameinfo(const struct sockaddr *, socklen_t, char *,
- socklen_t, char *, socklen_t, unsigned int);],
+ socklen_t, char *, socklen_t, unsigned int);],
[ return (0);],
[AC_MSG_RESULT(socklen_t for buflen; u_int for flags)
AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t,
#include <sys/socket.h>
#include <netdb.h>
int getnameinfo(const struct sockaddr *, socklen_t, char *,
- size_t, char *, size_t, int);],
+ size_t, char *, size_t, int);],
[ return (0);],
[AC_MSG_RESULT(size_t for buflen; int for flags)
AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
AC_SUBST(READLINE_LIB)
AC_ARG_WITH(readline,
- [ --with-readline[=LIBSPEC] specify readline library [default -lreadline]],
- readline="$withval", readline="-lreadline")
+ [ --with-readline[=LIBSPEC] specify readline library [default -lreadline]],
+ readline="$withval", readline="-lreadline")
case "$readline" in
no) ;;
*)
READLINE_LIB="$readline"
fi
LIBS="$saved_LIBS"
- ;;
+ ;;
esac
# Older HP-UX doesn't have gettune
#
case "$host" in
- *-hp-hpux*)
+ *-hp-hpux*)
AC_CHECK_HEADERS(sys/dyntune.h)
;;
*)
[i[3456]86-*])
# XXX: some old x86 architectures actually do not support
# (some of) these operations. Do we need stricter checks?
- AC_CHECK_SIZEOF([void *])
+ AC_CHECK_SIZEOF([void *])
if test $ac_cv_sizeof_void_p = 8; then
arch=x86_64
have_xaddq=yes
fi
;;
x86_64-*|amd64-*)
- AC_CHECK_SIZEOF([void *])
+ AC_CHECK_SIZEOF([void *])
if test $ac_cv_sizeof_void_p = 8; then
arch=x86_64
have_xaddq=yes
;;
*)
docbook_xsl_trees="$withval"
- AC_MSG_RESULT($docbook_xsl_trees)
+ AC_MSG_RESULT($docbook_xsl_trees)
;;
esac
#
SO="so"
SO_CFLAGS=""
+SO_LDFLAGS=""
SO_LD=""
SO_TARGETS=""
if test "$have_dl" = "yes"; then
LIBS="-ldl $LIBS"
fi
- AC_CHECK_FUNCS(dlopen dlclose dlsym,,dlopen=no)
+ AC_CHECK_FUNCS(dlopen dlclose dlsym,,dlopen=no)
fi
if test "$dlopen" = "yes"; then
case $host in
*-linux*)
SO_CFLAGS="-fPIC"
+ SO_LDFLAGS=""
if test "$have_dl" = "yes"
then
if test "$use_libtool" = "yes"; then
- SO_LD="${CC} -Xcompiler -shared"
+ SO_LDFLAGS="-Xcompiler -shared"
+ SO_LD="${CC}"
else
- SO_LD="${CC} -shared"
+ SO_LDFLAGS="-shared"
+ SO_LD="${CC}"
fi
else
- SO_LD="ld -shared"
+ SO_LDFLAGS="-shared"
+ SO_LD="ld"
fi
;;
*-freebsd*|*-openbsd*|*-netbsd*)
SO_CFLAGS="-fpic"
- SO_LD="ld -Bshareable -x"
+ SO_LDFLAGS="-Bshareable -x"
+ SO_LD="ld"
;;
*-solaris*)
SO_CFLAGS="-KPIC"
- SO_LD="ld -G -z text"
- ;;
+ SO_LDFLAGS="-G -z text"
+ SO_LD="ld"
+ ;;
*-hp-hpux*)
SO=sl
SO_CFLAGS="+z"
- SO_LD="ld -b"
- ;;
+ SO_LDFLAGS="-b"
+ SO_LD="ld"
+ ;;
*)
SO_CFLAGS="-fPIC"
;;
if test "X$GCC" = "Xyes"; then
SO_CFLAGS="-fPIC"
- test -n "$SO_LD" || SO_LD="${CC} -shared"
+ if test -z "$SO_LD"
+ then
+ if test "$use_libtool" = "yes"; then
+ SO_LDFLAGS="-Xcompiler -shared"
+ SO_LD="${CC}"
+ else
+ SO_LDFLAGS="-shared"
+ SO_LD="${CC}"
+ fi
+ fi
fi
# If we still don't know how to make shared objects, don't make any.
AC_SUBST(SO)
AC_SUBST(SO_CFLAGS)
+AC_SUBST(SO_LDFLAGS)
AC_SUBST(SO_LD)
AC_SUBST(SO_TARGETS)
# these lines are only printed if run with --enable-full-report
if test "$enable_full_report" = "yes"; then
test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" || \
- echo " IPv6 support (--enable-ipv6)"
+ echo " IPv6 support (--enable-ipv6)"
test "X$CRYPTO" = "X" -o "$want_native_pkcs11" = "yes" || \
- echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
+ echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
test "X$PYTHON" = "X" || echo " Python tools (--with-python)"
test "X$libxml2_libs" = "X" || echo " XML statistics (--with-libxml2)"
test "X$have_libjson" = "X" || echo " JSON statistics (--with-libjson)"
if test "$use_pkcs11" != "no"; then
if test "$want_native_pkcs11" = "yes"; then
- echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
+ echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
else
- echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
+ echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
fi
echo " Provider library: $PKCS11_PROVIDER"
fi
echo "Features disabled or unavailable on this platform:"
$use_threads || echo " Multiprocessing support (--enable-threads)"
test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" && \
- echo " IPv6 support (--enable-ipv6)"
+ echo " IPv6 support (--enable-ipv6)"
test "$use_geoip" = "no" && echo " GeoIP access control (--with-geoip)"
test "$use_gssapi" = "no" && echo " GSS-API (--with-gssapi)"