Refuse to build with GnuTLS < 2.12.16
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 29 May 2012 23:43:30 +0000 (00:43 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 29 May 2012 23:43:33 +0000 (00:43 +0100)
We need the fix for gnutls_record_get_direction() or we end up sitting in
select() waiting for a read, when the blockage was actually on a *write*.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
configure.ac

index 4ee3216..8c7a292 100644 (file)
@@ -192,6 +192,9 @@ elif test "$with_gnutls" = "shibboleet"; then
        AC_MSG_ERROR([Cannot use both OpenSSL and GnuTLS simultaneously])
     fi
     PKG_CHECK_MODULES(GNUTLS, gnutls)
+    if ! $PKG_CONFIG --atleast-version=2.12.16 gnutls; then
+       AC_MSG_ERROR([Your GnuTLS is too old. At least v2.12.16 is required])
+    fi
     with_openssl=no
     ssl_library=gnutls
 elif test "$with_gnutls" != "" && test "$with_gnutls" != "no"; then