]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
meson: Delint the DoT, DoH, DoQ and DoH3 code, as suggested by Otto 15331/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 24 Mar 2025 10:33:32 +0000 (11:33 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Mar 2025 09:08:20 +0000 (10:08 +0100)
meson/dot/meson.build
pdns/dnsdistdist/meson/doh2/meson.build
pdns/dnsdistdist/meson/doh3/meson.build
pdns/dnsdistdist/meson/doq/meson.build

index 91f95515b194cf1d70e015d84d51c0ecc461ef99..8ad2ba6e6d0aa3980bc818e6df7225f27432496f 100644 (file)
@@ -4,9 +4,5 @@ if opt_dot.enabled() and not dep_libssl.found() and not dep_gnutls.found()
   error('DNS over TLS support was requested but neither OpenSSL libssl nor GnuTLS support is enabled')
 endif
 
-if opt_dot.allowed() and (dep_libssl.found() or dep_gnutls.found())
-  conf.set('HAVE_DNS_OVER_TLS', true, description: 'DNS over TLS (DoT)')
-  summary('DNS over TLS', true, bool_yn: true, section: 'Configuration')
-else
-  summary('DNS over TLS', false, bool_yn: true, section: 'Configuration')
-endif
+conf.set('HAVE_DNS_OVER_TLS', opt_dot.allowed() and (dep_libssl.found() or dep_gnutls.found()), description: 'DNS over TLS (DoT)')
+summary('DNS over TLS', opt_dot.allowed() and (dep_libssl.found() or dep_gnutls.found()), bool_yn: true, section: 'Configuration')
index c09d0e42b3d19eda4d33b9d3cf6ae841e7feebaa..8c8aec50f1d880b08faae2160509641f53232248 100644 (file)
@@ -9,9 +9,5 @@ if opt_doh2.enabled()
   endif
 endif
 
-if opt_doh2.allowed() and (dep_libssl.found() or dep_gnutls.found()) and (dep_libnghttp2.found() or dep_libh2o_evloop.found())
-  conf.set('HAVE_DNS_OVER_HTTPS', true, description: 'DNS over HTTP/2 (DoH)')
-  summary('DNS over HTTP/2', true, bool_yn: true, section: 'Configuration')
-else
-  summary('DNS over HTTP/2', false, bool_yn: true, section: 'Configuration')
-endif
+conf.set('HAVE_DNS_OVER_HTTPS', opt_doh2.allowed() and (dep_libssl.found() or dep_gnutls.found()) and (dep_libnghttp2.found() or dep_libh2o_evloop.found()), description: 'DNS over HTTP/2 (DoH)')
+summary('DNS over HTTP/2', opt_doh2.allowed() and (dep_libssl.found() or dep_gnutls.found()) and (dep_libnghttp2.found() or dep_libh2o_evloop.found()), bool_yn: true, section: 'Configuration')
index 052dd138d4f663d462a41c9dea0dd8df12be7f8e..d97e5728709861c1c027153ffd09b7e8e3307852 100644 (file)
@@ -6,9 +6,5 @@ if opt_doh3.enabled()
   endif
 endif
 
-if opt_doh3.allowed() and dep_libquiche.found()
-  conf.set('HAVE_DNS_OVER_HTTP3', true, description: 'DNS over HTTP/3 (DoH3)')
-  summary('DNS over HTTP/3', true, bool_yn: true, section: 'Configuration')
-else
-  summary('DNS over HTTP/3', false, bool_yn: true, section: 'Configuration')
-endif
+conf.set('HAVE_DNS_OVER_HTTP3', opt_doh3.allowed() and dep_libquiche.found(), description: 'DNS over HTTP/3 (DoH3)')
+summary('DNS over HTTP/3', opt_doh3.allowed() and dep_libquiche.found(), bool_yn: true, section: 'Configuration')
index 06fc522ad4892d5654e09ac70b0c75bb3d0d9306..d23830013cd60de731ee3aaed4a8c0781c03745d 100644 (file)
@@ -6,9 +6,5 @@ if opt_doq.enabled()
   endif
 endif
 
-if opt_doq.allowed() and dep_libquiche.found()
-  conf.set('HAVE_DNS_OVER_QUIC', true, description: 'DNS over QUIC (DoQ)')
-  summary('DNS over QUIC', true, bool_yn: true, section: 'Configuration')
-else
-  summary('DNS over QUIC', false, bool_yn: true, section: 'Configuration')
-endif
+conf.set('HAVE_DNS_OVER_QUIC', opt_doq.allowed() and dep_libquiche.found(), description: 'DNS over QUIC (DoQ)')
+summary('DNS over QUIC', opt_doq.allowed() and dep_libquiche.found(), bool_yn: true, section: 'Configuration')