AC_DEFUN([PDNS_ENABLE_TOOLS], [
+ AC_REQUIRE([PDNS_CHECK_LIBCURL]) dnl We only care about the #define HAVE_LIBCURL and can build tools without DOH support.
AC_MSG_CHECKING([whether we will be building and installing the extra tools])
AC_ARG_ENABLE([tools],
[AS_HELP_STRING([--enable-tools], [if we should build and install the tools @<:@default=no@:>@])],
AC_MSG_RESULT([$enable_tools])
AM_CONDITIONAL([TOOLS], [test "x$enable_tools" != "xno"])
-
- AS_IF([test "x$enable_tools" != "xno"], [
- PDNS_CHECK_LIBCURL() dnl We only care about the #define HAVE_LIBCURL and can build tools without DOH support.
- ])
])
AC_DEFUN([PDNS_WITH_LUA_RECORDS], [
+ AC_REQUIRE([PDNS_CHECK_LIBCURL])
AC_MSG_CHECKING([whether we will enable LUA records])
AC_ARG_ENABLE([lua-records],
AS_IF([test "x$LUAPC" = "x"],
AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.])
)
- PDNS_CHECK_LIBCURL()
AS_IF([test "$HAVE_LIBCURL" != "y"], [
AC_MSG_ERROR([libcurl minimum version requirement not met. This is required for LUA records. You can disable it with the --disable-lua-records switch or use --with-libcurl to select another curl installation.])
])