summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-25 22:40:40 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-29 01:29:01 +0100
commit9f3aed1c7d20c12cc932b81e127d48edf855f36c (patch)
treec2a9757e61cc070fffb8147af0d8c57c2698116f
parent0b652cf09c7f37ddb1cb0b0b94ab7089391f0053 (diff)
meson: check whether gnutls supports TCP fast opensystemd/v239-6.git9f3aed1.fc29
Fixes #9403 (cherry picked from commit f02582f69fe1e7663a87ba80bd4f90d5d23ee75f)
-rw-r--r--README1
-rw-r--r--meson.build2
2 files changed, 2 insertions, 1 deletions
diff --git a/README b/README
index 2cde08c37e..7d06e04800 100644
--- 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
diff --git a/meson.build b/meson.build
index c15cd8edd1..a4f947fd19 100644
--- a/meson.build
+++ b/meson.build
@@ -1158,7 +1158,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