Add GnuTLS DANE library to configure detection when using GnuTLS.

This commit is contained in:
Jim Hague 2018-12-11 18:02:03 +00:00
parent aa49a935c7
commit bf011d9294
1 changed files with 3 additions and 2 deletions

View File

@ -445,8 +445,9 @@ AC_ARG_WITH([gnutls],
[use GnuTLS instead of OpenSSL])], [use GnuTLS instead of OpenSSL])],
[ [
PKG_CHECK_MODULES([libgnutls], [gnutls >= 3.5.0]) PKG_CHECK_MODULES([libgnutls], [gnutls >= 3.5.0])
LIBS="$libgnutls_LIBS $LIBS" PKG_CHECK_MODULES([libgnutlsdane], [gnutls-dane >= 3.5.0])
CFLAGS="$libgnutls_CFLAGS $CFLAGS" LIBS="$libgnutls_LIBS $libgnutlsdane_LIBS $LIBS"
CFLAGS="$libgnutls_CFLAGS $libgnutlsdane_CFLAGS $CFLAGS"
AC_SUBST([TLSDIR], 'gnutls') AC_SUBST([TLSDIR], 'gnutls')
AC_DEFINE([USE_GNUTLS], [1], [Use the GnuTLS library]) AC_DEFINE([USE_GNUTLS], [1], [Use the GnuTLS library])
if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then