1 AC_DEFUN([PDNS_WITH_LUA_RECORDS], [
2 AC_MSG_CHECKING([whether we will enable LUA records])
4 AC_ARG_ENABLE([lua-records],
5 [AS_HELP_STRING([--disable-lua-records], [disable LUA records support @<:@default=no@:>@])],
6 [enable_lua_records=$enableval],
7 [enable_lua_records=yes]
9 AC_MSG_RESULT([$enable_lua_records])
11 AS_IF([test "x$enable_lua_records" != "xno"], [
12 AS_IF([test "x$LUAPC" = "x"],
13 AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.])
15 LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ : ], [
16 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.])
18 AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
20 AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])