]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: check whether gnutls supports TCP fast open
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 13:40:40 +0000 (22:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 15:30:29 +0000 (00:30 +0900)
Fixes #9403

README
meson.build

diff --git a/README b/README
index 2cde08c37e1c2ca7c56c7f985af329ec5bd24da6..7d06e0480085288eecfeef6e732f67835285ee34 100644 (file)
--- a/README
+++ b/README
@@ -154,6 +154,7 @@ REQUIREMENTS:
         libmicrohttpd (optional)
         libpython (optional)
         libidn2 or libidn (optional)
+        gnutls >= 3.1.4 (optional, >= 3.5.3 is necessary to support DNS-over-TLS)
         elfutils >= 158 (optional)
         polkit (optional)
         pkg-config
index 04331dd41a19d8e771d3704c381ac1eb1a104500..80f59d77d8a6012f64eb923353191fff2e4f1959 100644 (file)
@@ -1137,7 +1137,7 @@ substs.set('DEFAULT_DNSSEC_MODE', default_dnssec)
 
 dns_over_tls = get_option('dns-over-tls')
 if dns_over_tls != 'false'
-        have = conf.get('HAVE_GNUTLS') == 1
+        have = libgnutls != [] and libgnutls.version().version_compare('>=3.5.3')
         if dns_over_tls == 'true' and not have
                 error('DNS-over-TLS support was requested, but dependencies are not available')
         endif