]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist, rec: dnstap requires protobuf
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 17 Sep 2020 07:53:33 +0000 (09:53 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 17 Sep 2020 07:53:33 +0000 (09:53 +0200)
Fail the configure when protobuf is disabled or not found but dnstap was
enabled.

m4/pdns_check_dnstap.m4

index 1be83c676f1e7c6f89e0e54ed1193e51fc644bde..651eaccf670731b6e3f8b400c3e2fab5c2961cc6 100644 (file)
@@ -1,4 +1,5 @@
 AC_DEFUN([PDNS_CHECK_DNSTAP], [
+  AC_REQUIRE([PDNS_WITH_PROTOBUF])
   AC_MSG_CHECKING([whether we will have dnstap])
   AC_ARG_ENABLE([dnstap],
     AS_HELP_STRING([--enable-dnstap],[enable dnstap support @<:@default=$1@:>@]),
@@ -27,5 +28,8 @@ AC_DEFUN([PDNS_CHECK_DNSTAP], [
     AS_IF([test x"$FSTRM_LIBS" = "x"], [
       AC_MSG_ERROR([dnstap requested but libfstrm was not found])
     ])
+    AS_IF([test "x$PROTOBUF_LIBS" = "x" -a x"$PROTOC" = "x"], [
+      AC_MSG_ERROR([dnstap requested but protobuf was not found])
+    ])
   ])
 ])