From: Nikos Mavrogiannopoulos Date: Thu, 29 Jul 2010 08:33:47 +0000 (+0200) Subject: Define HAVE_GCRYPT when using gcrypt. nettle is no longer marked as unsupported. X-Git-Tag: gnutls_2_11_3~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e115398cdbde856114dffa3012eb31fb09ad8769;p=thirdparty%2Fgnutls.git Define HAVE_GCRYPT when using gcrypt. nettle is no longer marked as unsupported. --- diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4 index 78bb1aac88..86d7869528 100644 --- a/lib/m4/hooks.m4 +++ b/lib/m4/hooks.m4 @@ -38,7 +38,7 @@ AC_DEFUN([LIBGNUTLS_HOOKS], DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}` AC_SUBST(DLL_VERSION) - cryptolib="nettle (unsupported)" + cryptolib="nettle" AC_ARG_WITH(nettle, AS_HELP_STRING([--with-nettle], [use libnettle 2.x as crypto library]), nettle=$withval, @@ -61,6 +61,7 @@ AC_DEFUN([LIBGNUTLS_HOOKS], if test "$nettle" != "yes";then cryptolib=libgcrypt + AC_DEFINE([HAVE_GCRYPT], 1, [whether the gcrypt library is in use]) AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include ], [enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128]) if test "$ac_cv_libgcrypt" != yes; then