]>
Commit | Line | Data |
---|---|---|
8900e2e3 CHB |
1 | AC_DEFUN([PDNS_WITH_LUA_RECORDS], [ |
2 | AC_MSG_CHECKING([whether we will enable LUA records]) | |
3 | ||
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] | |
8 | ) | |
9 | AC_MSG_RESULT([$enable_lua_records]) | |
10 | ||
11 | AS_IF([test "x$enable_lua_records" != "xno"], [ | |
d292e1bd CHB |
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.]) | |
14 | ) | |
b9f7a489 PL |
15 | PDNS_CHECK_LIBCURL() |
16 | AS_IF([test "$HAVE_LIBCURL" != "y"], [ | |
0806adff CHB |
17 | 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 | ]) | |
b9f7a489 | 19 | |
8900e2e3 CHB |
20 | AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.]) |
21 | ]) | |
22 | AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"]) | |
23 | ]) |