aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-04-06 15:39:39 +0000
committerGerald Combs <gerald@wireshark.org>2013-04-06 15:39:39 +0000
commit3217be744a97eec8aabac0d0b169bc4dfbc6f365 (patch)
treeed1af5f57c392fa437ae52387eedb41c76901226 /configure.ac
parent4d802ca4b930f6c365aa0af46a6981e29e662522 (diff)
downloadwireshark-3217be744a97eec8aabac0d0b169bc4dfbc6f365.tar.gz
wireshark-3217be744a97eec8aabac0d0b169bc4dfbc6f365.tar.bz2
wireshark-3217be744a97eec8aabac0d0b169bc4dfbc6f365.zip
GnuTLS recently switched back to a compatible license (LGPLv2.1+).
Update our checks accordingly. svn path=/trunk/; revision=48758
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac37
1 files changed, 26 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index c5cd70f47d..5a4dd389b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,24 +191,39 @@ AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
AC_SYS_LARGEFILE
# GnuTLS
-# Version 3.0 switched from LGPLv2.1+ to LGPLv3+.
+# Version 3.0 switched from LGPLv2.1+ to LGPLv3+, then switched back to
+# LGPLv2.1+ in versions 3.0.29 and 3.1.10
tls_message="no"
AC_ARG_WITH([gnutls],
AC_HELP_STRING( [--with-gnutls=@<:@yes/no@:>@],
[use GnuTLS library @<:@default=yes@:>@]),
with_gnutls="$withval", with_gnutls="yes")
if test "x$with_gnutls" = "xyes"; then
- PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.2.0 gnutls < 3],
- [
- echo "GnuTLS found, enabling SSL decryption"
- AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use GnuTLS library])
- tls_message="yes"
- ]
- , [
- echo "GnuTLS not found, disabling SSL decryption"
- tls_message="no"
- ]
+ have_license_compatible_gnutls="no"
+ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.1.10 ],
+ [ have_license_compatible_gnutls="yes" ], [ echo "GnuTLS >= 3.1.10 not found " ]
)
+
+ if test "x$have_license_compatible_gnutls" != "xyes"; then
+ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 3.0.29 gnutls < 3.1 ],
+ [ have_license_compatible_gnutls="yes" ], [ echo "GnuTLS >= 3.0.29 not found " ]
+ )
+ fi
+
+ if test "x$have_license_compatible_gnutls" != "xyes"; then
+ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.2.0 gnutls < 3],
+ [ have_license_compatible_gnutls="yes" ] , [ echo "GnuTLS >= 1.2.0, < 3.0 not found " ]
+ )
+ fi
+
+ if test "x$have_license_compatible_gnutls" = "xyes"; then
+ echo "GnuTLS found, enabling SSL decryption"
+ AC_DEFINE(HAVE_LIBGNUTLS, 1, [Define to use GnuTLS library])
+ tls_message="yes"
+ else
+ echo "GnuTLS with compatible license not found, disabling SSL decryption"
+ tls_message="no"
+ fi
fi
# libgrypt