From 6cedc26df014c19276da9600b46419d64ccf7e70 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 6 Jun 2016 15:59:19 +0200 Subject: [PATCH] auth: Don't build dnsbulktest and dnstcpbench if boost is too old --- configure.ac | 4 ++++ pdns/Makefile.am | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5e41bee834..379ec7c40b 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,10 @@ PDNS_CHECK_RAGEL PDNS_CHECK_CLOCK_GETTIME BOOST_REQUIRE([1.35]) +# Boost accumulators, as used by dnsbulktest and dnstcpbench, need 1.48+ +# to be compatible with C++11 +AM_CONDITIONAL([HAVE_BOOST_GE_148], [test "$boost_major_version" -ge 148]) + BOOST_PROGRAM_OPTIONS([mt]) PDNS_ENABLE_UNIT_TESTS PDNS_ENABLE_REPRODUCIBLE diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 7332a7c80f..4434692c61 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -78,12 +78,10 @@ bin_PROGRAMS = \ if TOOLS bin_PROGRAMS += \ - dnsbulktest \ dnsgram \ dnsreplay \ dnsscan \ dnsscope \ - dnstcpbench \ dnswasher \ dumresp \ notify \ @@ -98,6 +96,12 @@ if HAVE_RECVMMSG bin_PROGRAMS += calidns endif +if HAVE_BOOST_GE_148 +bin_PROGRAMS += \ + dnsbulktest \ + dnstcpbench +endif + endif EXTRA_PROGRAMS = \ -- 2.47.2