geoip)
PDNS_CHECK_GEOIP
;;
- lua)
+ lua*)
AS_IF([test "x$with_lua" = "xno"],
- [AC_MSG_ERROR([Lua backend needs lua, run ./configure --with-lua])]
+ [AC_MSG_ERROR([${a} backend needs lua, run ./configure --with-lua])]
)
AS_IF([test "x$LUAPC" = "x"],
- [AC_MSG_ERROR([Lua backend needs lua but we cannot find it])]
+ [AC_MSG_ERROR([${a} backend needs lua but we cannot find it])]
)
;;
esac
for a in $modules; do
AC_MSG_CHECKING([whether we can build module "${a}"])
- AS_IF([test "x$a" = "xlua2"], [
- AS_IF([test "x$with_lua" != "xyes"],
- AC_MSG_ERROR([Cannot build lua2 module without lua]),[])
- ])
if [[ -d "$srcdir/modules/${a}backend" ]]; then
AC_MSG_RESULT([yes])
moduledirs="$moduledirs ${a}backend"