From: Pieter Lexis Date: Fri, 27 May 2016 08:12:58 +0000 (+0200) Subject: Dnsdist: test for boost 1.42 when protobuf is enabled X-Git-Tag: rec-4.0.0-beta1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d8a1c75fdc54dee2c92d8b4a3b74c0249ab59f6;p=pdns Dnsdist: test for boost 1.42 when protobuf is enabled --- diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index faff12c10..e98e7c5b5 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -15,12 +15,21 @@ PDNS_CHECK_LIBSODIUM DNSDIST_CHECK_RAGEL PDNS_CHECK_LIBEDIT PDNS_CHECK_CLOCK_GETTIME -BOOST_REQUIRE([1.35]) + +boost_required_version=1.35 + +PDNS_WITH_PROTOBUF +AS_IF([test "x$PROTOBUF_LIBS" != "x" -a x"$PROTOC" != "x"], + # The protobuf code needs boost::uuid, which is available from 1.42 onward + [boost_required_version=1.42] +) + +BOOST_REQUIRE([$boost_required_version]) BOOST_FOREACH + PDNS_ENABLE_UNIT_TESTS PDNS_CHECK_RE2 DNSDIST_ENABLE_DNSCRYPT -PDNS_WITH_PROTOBUF AX_AVAILABLE_SYSTEMD AM_CONDITIONAL([HAVE_SYSTEMD], [ test x"$systemd" = "xy" ])