From 3cd01b932e1c85394272ae64fae67ebeda92fb00 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 23:11:59 +0200 Subject: Adding upstream version 1.8.3. Signed-off-by: Daniel Baumann --- m4/pdns_with_nghttp2.m4 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 m4/pdns_with_nghttp2.m4 (limited to 'm4/pdns_with_nghttp2.m4') diff --git a/m4/pdns_with_nghttp2.m4 b/m4/pdns_with_nghttp2.m4 new file mode 100644 index 0000000..8305b2b --- /dev/null +++ b/m4/pdns_with_nghttp2.m4 @@ -0,0 +1,25 @@ +AC_DEFUN([PDNS_WITH_NGHTTP2], [ + AC_MSG_CHECKING([whether we will be linking in nghttp2]) + HAVE_NGHTTP2=0 + AC_ARG_WITH([nghttp2], + AS_HELP_STRING([--with-nghttp2],[use nghttp2 @<:@default=auto@:>@]), + [with_nghttp2=$withval], + [with_nghttp2=auto], + ) + AC_MSG_RESULT([$with_nghttp2]) + + AS_IF([test "x$with_nghttp2" != "xno"], [ + AS_IF([test "x$with_nghttp2" = "xyes" -o "x$with_nghttp2" = "xauto"], [ + PKG_CHECK_MODULES([NGHTTP2], [libnghttp2], [ + [HAVE_NGHTTP2=1] + AC_DEFINE([HAVE_NGHTTP2], [1], [Define to 1 if you have nghttp2]) + ], [ : ]) + ]) + ]) + AM_CONDITIONAL([HAVE_NGHTTP2], [test "x$NGHTTP2_LIBS" != "x"]) + AS_IF([test "x$with_nghttp2" = "xyes"], [ + AS_IF([test x"$NGHTTP2_LIBS" = "x"], [ + AC_MSG_ERROR([nghttp2 requested but libraries were not found]) + ]) + ]) +]) -- cgit v1.2.3