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_check_libedit.m4 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 m4/pdns_check_libedit.m4 (limited to 'm4/pdns_check_libedit.m4') diff --git a/m4/pdns_check_libedit.m4 b/m4/pdns_check_libedit.m4 new file mode 100644 index 0000000..1f5c248 --- /dev/null +++ b/m4/pdns_check_libedit.m4 @@ -0,0 +1,24 @@ +AC_DEFUN([PDNS_WITH_LIBEDIT], [ + AC_MSG_CHECKING([whether to link in libedit]) + AC_ARG_WITH([libedit], + AS_HELP_STRING([--with-libedit], [enable libedit support @<:@default=yes@:>@]), + [with_libedit=$enableval], + [with_libedit=yes] + ) + AC_MSG_RESULT([$with_libedit]) + + AS_IF([test "x$with_libedit" != "xno"], [ + AS_IF([test "x$with_libedit" = "xyes" -o "x$with_libedit" = "xauto"], [ + PKG_CHECK_MODULES([LIBEDIT], [libedit], [ + [HAVE_LIBEDIT=1] + AC_DEFINE([HAVE_LIBEDIT], [1], [Define to 1 if you have libedit]) + ], [ : ]) + ]) + ]) + AM_CONDITIONAL([HAVE_LIBEDIT], [test "x$LIBEDIT_LIBS" != "x"]) + AS_IF([test "x$with_libedit" = "xyes"], [ + AS_IF([test x"$LIBEDIT_LIBS" = "x"], [ + AC_MSG_ERROR([libedit support requested but library not found]) + ]) + ]) +]) -- cgit v1.2.3