[Pdns-dev] Patch to allow trunk to build without lua

Jimmy Bergman jimmy at atomia.com
Mon Oct 3 10:32:09 CEST 2011


When running 'configure --with-lua=no' I got the following output:
checking if with lua... no]

and then it continued to check for LUA existance.

In addition, after fixing the obvious autoconf typo, the stub #ifdef path in
lua-pdns-recursor.cc wasn't
taken due to LIBDIR beeing set.

The following patch fixes both issues:
Index: configure.ac
--- configure.ac        (revision 2279)
+++ configure.ac        (working copy)
@@ -26,7 +26,7 @@

 dnl Check for lua
 AC_MSG_CHECKING(if with lua)
-AC_ARG_WITH(lua, AC_HELP_STRING([--with-lua],[lua]),
+AC_ARG_WITH(lua, AC_HELP_STRING([--with-lua],[lua]),

 if test "$WITH_LUA" != "no"; then
Index: pdns/lua-pdns-recursor.cc
--- pdns/lua-pdns-recursor.cc   (revision 2279)
+++ pdns/lua-pdns-recursor.cc   (working copy)
@@ -1,6 +1,6 @@
 #include "lua-pdns-recursor.hh"

-#if !defined(PDNS_ENABLE_LUA) && !defined(LIBDIR)
+#if !defined(PDNS_ENABLE_LUA) || !defined(LIBDIR)

 // stub implementation

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20111003/8f337cbc/attachment.htm>

More information about the Pdns-dev mailing list