]> granicus.if.org Git - pdns/commitdiff
autoconf: centralise lua* backend liblua check
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 16 Apr 2018 15:42:46 +0000 (17:42 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 16 Apr 2018 15:42:46 +0000 (17:42 +0200)
configure.ac

index 5ee4beee44f25b761e3bd671ffeb303c3988d9c8..0e9fe507223fc18695fb27b95e023de740f4f994 100644 (file)
@@ -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"