From: Ruben Kerkhof Date: Tue, 7 Oct 2014 10:04:32 +0000 (+0200) Subject: Handle missing Lua when lua backend is enabled X-Git-Tag: rec-3.7.0-rc1~211^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1788%2Fhead;p=thirdparty%2Fpdns.git Handle missing Lua when lua backend is enabled The first case handles ./configure --with-modules='lua' --with-lua=no. I don't know who would do such a thing, but better handle it in ./configure than bailing out later with a compiler error. The second case handles ./configure --with-modules=lua when you don't have Lua installed, which I actually observed since I assumed enabling the lua backend would be enough, and I did't have the lua headers on my system. Fixes #1618 --- diff --git a/configure.ac b/configure.ac index 9028cfe7b7..c8d2a0015b 100644 --- a/configure.ac +++ b/configure.ac @@ -291,6 +291,14 @@ for a in $modules $dynmodules; do geoip) PDNS_CHECK_GEOIP ;; + lua) + AS_IF([test "x$with_lua" = "xno"], + AC_MSG_ERROR([Lua 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]) + ) + ;; esac done