From: Peter van Dijk Date: Mon, 16 Apr 2018 15:42:46 +0000 (+0200) Subject: autoconf: centralise lua* backend liblua check X-Git-Tag: dnsdist-1.3.1~142^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6507%2Fhead;p=thirdparty%2Fpdns.git autoconf: centralise lua* backend liblua check --- diff --git a/configure.ac b/configure.ac index 5ee4beee44..0e9fe50722 100644 --- a/configure.ac +++ b/configure.ac @@ -202,12 +202,12 @@ for a in $modules $dynmodules; do 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 @@ -237,10 +237,6 @@ AM_CONDITIONAL([SQLITE3], [test "x$needsqlite3" = "xyes"]) 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"