From: Amos Jeffries Date: Mon, 26 Feb 2018 04:00:22 +0000 (+1300) Subject: Bump minimum GnuTLS version required by Squid. (#156) X-Git-Tag: SQUID_4_0_24~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4675c068cbd21eb806e1eae16823fc1ae603fc9d;p=thirdparty%2Fsquid.git Bump minimum GnuTLS version required by Squid. (#156) PR#81 added functions only provided by GnuTLS 3.4.0 and later, but did not bump the configure.ac check for GnuTLS to enforce that version as minimum. --- diff --git a/configure.ac b/configure.ac index 94c1b4a260..2c66ad0c74 100644 --- a/configure.ac +++ b/configure.ac @@ -1268,13 +1268,13 @@ if test "x$with_gnutls" != "xno"; then LIBS="$LIBS $LIBGNUTLS_PATH" # auto-detect using pkg-config - PKG_CHECK_MODULES([LIBGNUTLS],[gnutls >= 3.1.5],[ + PKG_CHECK_MODULES([LIBGNUTLS],[gnutls >= 3.4.0],[ CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS" ],[ ## find the package without pkg-config ## check that the library is actually new enough. - ## by testing for a 3.1.5+ function which we use - AC_CHECK_LIB(gnutls,gnutls_certificate_verify_peers3,[LIBGNUTLS_LIBS="-lgnutls"]) + ## by testing for a 3.4.0+ function which we use + AC_CHECK_LIB(gnutls,gnutls_pcert_export_x509,[LIBGNUTLS_LIBS="-lgnutls"]) ]) AC_CHECK_HEADERS(gnutls/gnutls.h gnutls/x509.h gnutls/abstract.h)