]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Boost
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 5 Jul 2023 11:30:40 +0000 (13:30 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:27 +0000 (13:28 +0100)
meson.build
meson/boost/meson.build [new file with mode: 0644]

index 6dcfa5347f8eea03a2265be5d4b524ec403630db..37b33b1861a97799df4fec3251477d0e12382bd4 100644 (file)
@@ -43,6 +43,7 @@ subdir('meson/dot')             # DNS over TLS
 subdir('meson/ipcipher')        # IPCipher
 subdir('meson/ragel')           # Find Ragel
 subdir('meson/clock-gettime')   # Clock_gettime
+subdir('meson/boost')           # Boost
 
 # Find or generate pdns/dnslabeltext.cc
 if not ragel.found() and not fs.exists('pdns/dnslabeltext.cc')
diff --git a/meson/boost/meson.build b/meson/boost/meson.build
new file mode 100644 (file)
index 0000000..f5a11c4
--- /dev/null
@@ -0,0 +1,9 @@
+# Boost
+# Inputs: conf
+
+dep_boost = dependency('boost', version: '>= 1.42', required: true)
+# Boost accumulators, as used by dnsbulktest and dnstcpbench, need 1.48+ to be compatible
+# with C++11.
+conf.set10('HAVE_BOOST_GE_148', dep_boost.version().version_compare('>= 1.48.0'), description: 'Whether the boost version is >= 1.48.0')
+summary('Boost', dep_boost.found(), bool_yn: true, section: 'Configuration')
+summary('Boost Version', dep_boost.version(), section: 'Boost')