]> granicus.if.org Git - pdns/commitdiff
Lua detection: make `--with-lua` autodetect
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 11 Apr 2018 20:49:32 +0000 (22:49 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 11 Apr 2018 20:49:32 +0000 (22:49 +0200)
m4/pdns_with_lua.m4

index e69d0deb8dcfdd10e142148564c5a96d3fbe061f..3653740e4cb6d367c5ba9d61bbf984745925a59c 100644 (file)
@@ -8,6 +8,12 @@ AC_DEFUN([PDNS_WITH_LUA],[
   ], [
     with_lua=auto
   ])
+
+  AS_IF([test "x$with_lua" = "xyes"], [
+    dnl --with-lua was passed, make it auto
+    with_lua=auto
+  ])
+
   AC_MSG_RESULT([$with_lua])
 
   AS_IF([test "x$with_lua" = "xno" -a "$1" = "mandatory"], [