From: Remi Gacogne Date: Thu, 10 Apr 2025 10:50:32 +0000 (+0200) Subject: dnsdist: Properly detect Quiche functions with meson X-Git-Tag: dnsdist-2.0.0-alpha2~87^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5ab32bfd7fb780a344110668561dfcb8fb690cc;p=thirdparty%2Fpdns.git dnsdist: Properly detect Quiche functions with meson We forgot to check for the availability of `quiche_conn_server_name` when we migrated from `autotools` to `meson`. --- diff --git a/pdns/dnsdistdist/meson/quiche/meson.build b/pdns/dnsdistdist/meson/quiche/meson.build index 70ea7ecfcd..4a49ea8bda 100644 --- a/pdns/dnsdistdist/meson/quiche/meson.build +++ b/pdns/dnsdistdist/meson/quiche/meson.build @@ -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