Fail the configure when protobuf is disabled or not found but dnstap was
enabled.
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@:>@]),
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])
+ ])
])
])