Commit e04498e5 e04498e53df13127402e7c7841d024ec90f27386 by Sergey Poznyakoff

Drop a superfluous dependency on libgcrypt.

* am/tls.m4 (MU_CHECK_GNUTLS): Newer GNU TLS does not require
libgcrypt. It is required only for v. 2.11 and prior versions.
1 parent 34128509
Showing 1 changed file with 11 additions and 3 deletions
......@@ -35,9 +35,17 @@ AC_DEFUN([MU_CHECK_GNUTLS],
[mu_cv_lib_gnutls=no])
if test "$mu_cv_lib_gnutls" != "no"; then
saved_LIBS=$LIBS
AC_CHECK_LIB(gcrypt, main,
[TLS_LIBS="-lgcrypt"],
[mu_cv_lib_gnutls=no])
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#if GNUTLS_VERSION_NUMBER <= 0x020b00
# error "Need gcrypt"
#endif
],[])],
[],
[AC_CHECK_LIB(gcrypt, main,
[TLS_LIBS="-lgcrypt"],
[mu_cv_lib_gnutls=no])])
LIBS="$LIBS $TLS_LIBS"
AC_CHECK_LIB(gnutls, gnutls_global_init,
[TLS_LIBS="-lgnutls $TLS_LIBS"],
......