]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Properly detect Quiche functions with meson
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Apr 2025 10:50:32 +0000 (12:50 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Apr 2025 10:50:32 +0000 (12:50 +0200)
We forgot to check for the availability of `quiche_conn_server_name`
when we migrated from `autotools` to `meson`.

pdns/dnsdistdist/meson/quiche/meson.build

index 70ea7ecfcd29c33ff6bd7d16b999a4126b4b8c26..4a49ea8bda17af2c993b9e6cbd8ca3f8cde1396f 100644 (file)
@@ -15,6 +15,18 @@ if (opt_quic.allowed() or opt_doh3.allowed()) and opt_libquiche.allowed()
   else
     dep_libquiche = dependency('quiche', version: '>= 0.15.0', required: opt_libquiche.enabled() or opt_quic.enabled() or opt_doh3.enabled())
   endif
+
+  if dep_libquiche.found()
+    funcs = [
+      'quiche_conn_server_name',
+    ]
+
+    foreach func: funcs
+      has = cxx.has_function(func, dependencies: dep_libquiche)
+      conf.set('HAVE_' + func.to_upper(), has, description: 'Have Quiche ' + func)
+    endforeach
+  endif
+
 else
   dep_libquiche = dependency('', required: false)
 endif