diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 49fe9c5..1e96baa 100644 --- a/configure.ac +++ b/configure.ac @@ -128,10 +128,10 @@ AS_CASE([$with_tls], AC_DEFINE(USING_OPENSSL, 1, [Define if using openssl]) PKG_CHECK_MODULES(TLS, [openssl >= 0.9.8g])], [auto], [PKG_CHECK_MODULES(TLS, [gnutls >= 2.8.2 ], - [], + [with_tls=gnutls], [USING_OPENSSL=yes AC_DEFINE(USING_OPENSSL, 1, [Define if using openssl]) - PKG_CHECK_MODULES(TLS, [openssl >= 0.9.8g],[], + PKG_CHECK_MODULES(TLS, [openssl >= 0.9.8g],[with_tls=openssl], AC_MSG_ERROR([Neither gnutls nor openssl found]))])], [*], AC_MSG_ERROR([Must have a TLS backend (gnutls or openssl)])) |