|
Packit |
aea12f |
# Copyright (C) 2000-2012 Free Software Foundation, Inc.
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# Author: Nikos Mavrogiannopoulos, Simon Josefsson
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# This file is part of GnuTLS.
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# The GnuTLS is free software; you can redistribute it and/or
|
|
Packit |
aea12f |
# modify it under the terms of the GNU Lesser General Public License
|
|
Packit |
aea12f |
# as published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
aea12f |
# the License, or (at your option) any later version.
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# The GnuTLS is distributed in the hope that it will be
|
|
Packit |
aea12f |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
|
Packit |
aea12f |
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
aea12f |
# Lesser General Public License for more details.
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
aea12f |
# along with this program. If not, see <https://www.gnu.org/licenses/>
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_DEFUN([LIBGNUTLS_EXTRA_HOOKS],
|
|
Packit |
aea12f |
[
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to build OpenSSL compatibility layer])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(openssl-compatibility,
|
|
Packit |
aea12f |
AS_HELP_STRING([--enable-openssl-compatibility],
|
|
Packit |
aea12f |
[enable the OpenSSL compatibility library]),
|
|
Packit |
aea12f |
enable_openssl=$enableval, enable_openssl=no)
|
|
Packit |
aea12f |
AC_MSG_RESULT($enable_openssl)
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_OPENSSL, test "$enable_openssl" = "yes")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
|
|
Packit |
aea12f |
gl_SOCKETS
|
|
Packit |
aea12f |
])
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_DEFUN([LIBGNUTLS_HOOKS],
|
|
Packit |
aea12f |
[
|
|
Packit |
aea12f |
# Library code modified: REVISION++
|
|
Packit |
aea12f |
# Interfaces changed/added/removed: CURRENT++ REVISION=0
|
|
Packit |
aea12f |
# Interfaces added: AGE++
|
|
Packit |
aea12f |
# + add new version symbol in libgnutls.map, see Symbol and library versioning
|
|
Packit |
aea12f |
# in CONTRIBUTION.md for more info.
|
|
Packit |
aea12f |
#
|
|
Packit |
aea12f |
# Interfaces removed: AGE=0 (+bump all symbol versions in .map)
|
|
Packit Service |
991b93 |
AC_SUBST(LT_CURRENT, 58)
|
|
Packit |
aea12f |
AC_SUBST(LT_REVISION, 0)
|
|
Packit Service |
991b93 |
AC_SUBST(LT_AGE, 28)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_SUBST(LT_SSL_CURRENT, 27)
|
|
Packit |
aea12f |
AC_SUBST(LT_SSL_REVISION, 2)
|
|
Packit |
aea12f |
AC_SUBST(LT_SSL_AGE, 0)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_SUBST(LT_DANE_CURRENT, 4)
|
|
Packit |
aea12f |
AC_SUBST(LT_DANE_REVISION, 1)
|
|
Packit |
aea12f |
AC_SUBST(LT_DANE_AGE, 4)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_SUBST(LT_XSSL_CURRENT, 0)
|
|
Packit |
aea12f |
AC_SUBST(LT_XSSL_REVISION, 0)
|
|
Packit |
aea12f |
AC_SUBST(LT_XSSL_AGE, 0)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_SUBST(CXX_LT_CURRENT, 29)
|
|
Packit |
aea12f |
AC_SUBST(CXX_LT_REVISION, 0)
|
|
Packit |
aea12f |
AC_SUBST(CXX_LT_AGE, 1)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_SUBST(CRYWRAP_PATCHLEVEL, 3)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# Used when creating the Windows libgnutls-XX.def files.
|
|
Packit |
aea12f |
DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
|
|
Packit |
aea12f |
AC_SUBST(DLL_VERSION)
|
|
Packit |
aea12f |
DLL_SSL_VERSION=`expr ${LT_SSL_CURRENT} - ${LT_SSL_AGE}`
|
|
Packit |
aea12f |
AC_SUBST(DLL_SSL_VERSION)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
NETTLE_MINIMUM=3.4.1
|
|
Packit |
aea12f |
PKG_CHECK_MODULES(NETTLE, [nettle >= $NETTLE_MINIMUM], [cryptolib="nettle"], [
|
|
Packit |
aea12f |
AC_MSG_ERROR([[
|
|
Packit |
aea12f |
***
|
|
Packit |
aea12f |
*** Libnettle $NETTLE_MINIMUM was not found.
|
|
Packit |
aea12f |
]])
|
|
Packit |
aea12f |
])
|
|
Packit |
aea12f |
PKG_CHECK_MODULES(HOGWEED, [hogweed >= $NETTLE_MINIMUM ], [], [
|
|
Packit |
aea12f |
AC_MSG_ERROR([[
|
|
Packit |
aea12f |
***
|
|
Packit |
aea12f |
*** Libhogweed (nettle's companion library) $NETTLE_MINIMUM was not found. Note that you must compile nettle with gmp support.
|
|
Packit |
aea12f |
]])
|
|
Packit |
aea12f |
])
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_NETTLE, test "$cryptolib" = "nettle")
|
|
Packit |
aea12f |
AC_DEFINE([HAVE_LIBNETTLE], 1, [nettle is enabled])
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_ARG_WITH(nettle-mini,
|
|
Packit |
aea12f |
AS_HELP_STRING([--with-nettle-mini], [Link against a mini-nettle (that includes mini-gmp)]),
|
|
Packit |
aea12f |
mini_nettle=$withval,
|
|
Packit |
aea12f |
mini_nettle=no)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_ARG_VAR(GMP_CFLAGS, [C compiler flags for gmp])
|
|
Packit |
aea12f |
AC_ARG_VAR(GMP_LIBS, [linker flags for gmp])
|
|
Packit |
aea12f |
if test "$mini_nettle" != no;then
|
|
Packit |
aea12f |
GMP_CFLAGS=""
|
|
Packit |
aea12f |
GMP_LIBS=""
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
if test x$GMP_LIBS = x; then
|
|
Packit |
aea12f |
AC_CHECK_LIB(gmp, __gmpz_cmp, [GMP_LIBS="-lgmp"], [AC_MSG_ERROR([[
|
|
Packit |
aea12f |
***
|
|
Packit |
aea12f |
*** gmp was not found.
|
|
Packit |
aea12f |
]])])
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AC_SUBST(GMP_CFLAGS)
|
|
Packit |
aea12f |
AC_SUBST(GMP_LIBS)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
LIBTASN1_MINIMUM=4.9
|
|
Packit |
aea12f |
AC_ARG_WITH(included-libtasn1,
|
|
Packit |
aea12f |
AS_HELP_STRING([--with-included-libtasn1], [use the included libtasn1]),
|
|
Packit |
aea12f |
included_libtasn1=$withval,
|
|
Packit |
aea12f |
included_libtasn1=no)
|
|
Packit |
aea12f |
if test "$included_libtasn1" = "no"; then
|
|
Packit |
aea12f |
PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= $LIBTASN1_MINIMUM], [], [included_libtasn1=yes])
|
|
Packit |
aea12f |
if test "$included_libtasn1" = yes; then
|
|
Packit |
aea12f |
AC_MSG_ERROR([[
|
|
Packit |
aea12f |
***
|
|
Packit |
aea12f |
*** Libtasn1 $LIBTASN1_MINIMUM was not found. To use the included one, use --with-included-libtasn1
|
|
Packit |
aea12f |
]])
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to use the included minitasn1])
|
|
Packit |
aea12f |
AC_MSG_RESULT($included_libtasn1)
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_MINITASN1, test "$included_libtasn1" = "yes")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
if test "$included_libtasn1" = "no"; then
|
|
Packit |
aea12f |
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether C99 macros are supported])
|
|
Packit |
aea12f |
AC_TRY_COMPILE(,
|
|
Packit |
aea12f |
[
|
|
Packit |
aea12f |
#define test_mac(...)
|
|
Packit |
aea12f |
int z,y,x;
|
|
Packit |
aea12f |
test_mac(x,y,z);
|
|
Packit |
aea12f |
return 0;
|
|
Packit |
aea12f |
], [
|
|
Packit |
aea12f |
AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
], [
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
|
|
Packit |
aea12f |
])
|
|
Packit |
aea12f |
|
|
Packit Service |
991b93 |
ac_strict_der_time=yes
|
|
Packit Service |
991b93 |
AC_MSG_CHECKING([whether to disable strict DER time encodings for backwards compatibility])
|
|
Packit Service |
991b93 |
AC_ARG_ENABLE(strict-der-time,
|
|
Packit Service |
991b93 |
AS_HELP_STRING([--disable-strict-der-time],
|
|
Packit Service |
991b93 |
[allow non compliant DER time values]),
|
|
Packit Service |
991b93 |
ac_strict_der_time=$enableval)
|
|
Packit Service |
991b93 |
if test x$ac_strict_der_time != xno; then
|
|
Packit Service |
991b93 |
AC_MSG_RESULT(no)
|
|
Packit Service |
991b93 |
AC_DEFINE([STRICT_DER_TIME], 1, [force strict DER time constraints])
|
|
Packit Service |
991b93 |
else
|
|
Packit Service |
991b93 |
AC_MSG_RESULT(yes)
|
|
Packit Service |
991b93 |
fi
|
|
Packit Service |
991b93 |
AM_CONDITIONAL(STRICT_DER_TIME, test "$ac_strict_der_time" != "no")
|
|
Packit Service |
991b93 |
|
|
Packit |
aea12f |
ac_allow_sha1=no
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to allow SHA1 as an acceptable hash for cert digital signatures])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(sha1-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--enable-sha1-support],
|
|
Packit |
aea12f |
[allow SHA1 as an acceptable hash for cert digital signatures]),
|
|
Packit |
aea12f |
ac_allow_sha1=$enableval)
|
|
Packit |
aea12f |
if test x$ac_allow_sha1 != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ALLOW_SHA1], 1, [allow SHA1 as an acceptable hash for digital signatures])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ALLOW_SHA1, test "$ac_allow_sha1" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_ssl3=no
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable the SSL 3.0 protocol])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(ssl3-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--enable-ssl3-support],
|
|
Packit |
aea12f |
[enable support for the SSL 3.0 protocol]),
|
|
Packit |
aea12f |
ac_enable_ssl3=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_ssl3 != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_SSL3], 1, [enable SSL3.0 support])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_SSL3, test "$ac_enable_ssl3" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_ssl2=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable the SSL 2.0 client hello])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(ssl2-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-ssl2-support],
|
|
Packit |
aea12f |
[disable support for the SSL 2.0 client hello]),
|
|
Packit |
aea12f |
ac_enable_ssl2=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_ssl2 != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_SSL2], 1, [enable SSL2.0 support for client hello])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_SSL2, test "$ac_enable_ssl2" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_srtp=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable DTLS-SRTP extension])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(dtls-srtp-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-dtls-srtp-support],
|
|
Packit |
aea12f |
[disable support for the DTLS-SRTP extension]),
|
|
Packit |
aea12f |
ac_enable_srtp=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_srtp != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_DTLS_SRTP], 1, [enable DTLS-SRTP support])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_DTLS_SRTP, test "$ac_enable_srtp" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable ALPN extension])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(alpn-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-alpn-support],
|
|
Packit |
aea12f |
[disable support for the Application Layer Protocol Negotiation (ALPN) extension]),
|
|
Packit |
aea12f |
ac_enable_alpn=$enableval,ac_enable_alpn=yes)
|
|
Packit |
aea12f |
if test x$ac_enable_alpn != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_ALPN], 1, [enable ALPN support])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_ALPN, test "$ac_enable_alpn" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_heartbeat=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to enable TLS heartbeat support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(heartbeat-support,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-heartbeat-support],
|
|
Packit |
aea12f |
[disable support for the heartbeat extension]),
|
|
Packit |
aea12f |
ac_enable_heartbeat=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_heartbeat != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_HEARTBEAT], 1, [enable heartbeat support])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_HEARTBEAT, test "$ac_enable_heartbeat" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_srp=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable SRP authentication support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(srp-authentication,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-srp-authentication],
|
|
Packit |
aea12f |
[disable the SRP authentication support]),
|
|
Packit |
aea12f |
ac_enable_srp=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_srp != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_SRP], 1, [enable SRP authentication])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_SRP, test "$ac_enable_srp" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_psk=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable PSK authentication support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(psk-authentication,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-psk-authentication],
|
|
Packit |
aea12f |
[disable the PSK authentication support]),
|
|
Packit |
aea12f |
ac_enable_psk=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_psk != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_PSK], 1, [enable PSK authentication])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_PSK, test "$ac_enable_psk" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
ac_enable_anon=yes
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable anonymous authentication support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(anon-authentication,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-anon-authentication],
|
|
Packit |
aea12f |
[disable the anonymous authentication support]),
|
|
Packit |
aea12f |
ac_enable_anon=$enableval)
|
|
Packit |
aea12f |
if test x$ac_enable_anon != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_ANON], 1, [enable anonymous authentication])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_ANON, test "$ac_enable_anon" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable DHE support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(dhe,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-dhe],
|
|
Packit |
aea12f |
[disable the DHE support]),
|
|
Packit |
aea12f |
ac_enable_dhe=$enableval, ac_enable_dhe=yes)
|
|
Packit |
aea12f |
if test x$ac_enable_dhe != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_DHE], 1, [enable DHE])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_DHE, test "$ac_enable_dhe" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable ECDHE support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(ecdhe,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-ecdhe],
|
|
Packit |
aea12f |
[disable the ECDHE support]),
|
|
Packit |
aea12f |
ac_enable_ecdhe=$enableval, ac_enable_ecdhe=yes)
|
|
Packit |
aea12f |
if test x$ac_enable_ecdhe != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_ECDHE], 1, [enable DHE])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_ECDHE, test "$ac_enable_ecdhe" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable GOST support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(gost,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-gost],
|
|
Packit |
aea12f |
[disable the GOST support]),
|
|
Packit |
aea12f |
ac_enable_gost=$enableval, ac_enable_gost=yes)
|
|
Packit |
aea12f |
if test x$ac_enable_gost != xno; then
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_GOST], 1, [enable GOST])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_GOST, test "$ac_enable_gost" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# For cryptodev
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to add cryptodev support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(cryptodev,
|
|
Packit |
aea12f |
AS_HELP_STRING([--enable-cryptodev], [enable cryptodev support]),
|
|
Packit |
aea12f |
enable_cryptodev=$enableval,enable_cryptodev=no)
|
|
Packit |
aea12f |
AC_MSG_RESULT($enable_cryptodev)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
if test "$enable_cryptodev" = "yes"; then
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_CRYPTODEV], 1, [Enable cryptodev support])
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
AC_MSG_CHECKING([whether to disable OCSP support])
|
|
Packit |
aea12f |
AC_ARG_ENABLE(ocsp,
|
|
Packit |
aea12f |
AS_HELP_STRING([--disable-ocsp],
|
|
Packit |
aea12f |
[disable OCSP support]),
|
|
Packit |
aea12f |
ac_enable_ocsp=$enableval,ac_enable_ocsp=yes)
|
|
Packit |
aea12f |
if test x$ac_enable_ocsp != xno; then
|
|
Packit |
aea12f |
ac_enable_ocsp=yes
|
|
Packit |
aea12f |
AC_MSG_RESULT(no)
|
|
Packit |
aea12f |
AC_DEFINE([ENABLE_OCSP], 1, [enable OCSP support])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
ac_full=0
|
|
Packit |
aea12f |
AC_MSG_RESULT(yes)
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
AM_CONDITIONAL(ENABLE_OCSP, test "$ac_enable_ocsp" != "no")
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
# For storing integers in pointers without warnings
|
|
Packit |
aea12f |
# https://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
|
|
Packit |
aea12f |
AC_CHECK_SIZEOF(void *)
|
|
Packit |
aea12f |
AC_CHECK_SIZEOF(long long)
|
|
Packit |
aea12f |
AC_CHECK_SIZEOF(long)
|
|
Packit |
aea12f |
AC_CHECK_SIZEOF(int)
|
|
Packit |
aea12f |
if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
|
|
Packit |
aea12f |
AC_DEFINE([GNUTLS_POINTER_TO_INT_CAST], [(long)],
|
|
Packit |
aea12f |
[Additional cast to bring void* to a type castable to int.])
|
|
Packit |
aea12f |
elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
|
|
Packit |
aea12f |
AC_DEFINE([GNUTLS_POINTER_TO_INT_CAST], [(long long)],
|
|
Packit |
aea12f |
[Additional cast to bring void* to a type castable to int.])
|
|
Packit |
aea12f |
else
|
|
Packit |
aea12f |
AC_DEFINE([GNUTLS_POINTER_TO_INT_CAST], [])
|
|
Packit |
aea12f |
fi
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
dnl this is called from somewhere else
|
|
Packit |
aea12f |
dnl #AM_ICONV
|
|
Packit |
aea12f |
dnl m4_ifdef([gl_ICONV_MODULE_INDICATOR],
|
|
Packit |
aea12f |
dnl [gl_ICONV_MODULE_INDICATOR([iconv])])
|
|
Packit |
aea12f |
])
|