6f381c
From deb09b3bd826571149f6b018f3a3ff8a33cd104b Mon Sep 17 00:00:00 2001
6f381c
From: Yu Watanabe <watanabe.yu+github@gmail.com>
6f381c
Date: Thu, 28 Jun 2018 16:09:04 +0900
6f381c
Subject: [PATCH] meson: do not compare objects of different types
6f381c
6f381c
This fixes the following warning:
6f381c
```
6f381c
meson.build:1140: WARNING: Trying to compare values of different types (DependencyHolder, list) using !=.
6f381c
The result of this is undefined and will become a hard error in a future Meson release.
6f381c
```
6f381c
6f381c
Follow-up for f02582f69fe1e7663a87ba80bd4f90d5d23ee75f(#9410).
6f381c
6f381c
(cherry picked from commit 48f5da19b6e8f0d05f5217bc9856093d354ce5d0)
6f381c
6f381c
Related: #2122499
6f381c
---
6f381c
 meson.build | 3 ++-
6f381c
 1 file changed, 2 insertions(+), 1 deletion(-)
6f381c
6f381c
diff --git a/meson.build b/meson.build
6f381c
index 6729a9ea5e..af4cf331da 100644
6f381c
--- a/meson.build
6f381c
+++ b/meson.build
6f381c
@@ -1165,7 +1165,8 @@ substs.set('DEFAULT_DNSSEC_MODE', default_dnssec)
6f381c
 
6f381c
 dns_over_tls = get_option('dns-over-tls')
6f381c
 if dns_over_tls != 'false'
6f381c
-        have = libgnutls != [] and libgnutls.version().version_compare('>=3.5.3')
6f381c
+        have = (conf.get('HAVE_GNUTLS') == 1 and
6f381c
+                libgnutls.version().version_compare('>=3.5.3'))
6f381c
         if dns_over_tls == 'true' and not have
6f381c
                 error('DNS-over-TLS support was requested, but dependencies are not available')
6f381c
         endif