- cd ..
- ./build-scripts/dist-recursor
- cd pdns/pdns-recursor-*/
- - LUA=1 ./configure
- - LUA=1 make -k -j 4
+ - ./configure
+ - make -k -j 4
- cd ..
- ln -s pdns-recursor*/pdns_recursor .
- cd ..
responsestats.hh webserver.hh dnsname.hh dnspacket.hh ednssubnet.hh \
filterpo.hh rpzloader.hh ixfr.hh gss_context.hh resolver.hh dnssecinfra.hh \
dnsseckeeper.hh statbag.hh ueberbackend.hh sha.hh dnsbackend.hh comment.hh \
-validate.hh validate-recursor.hh sortlist.hh"
+validate.hh validate-recursor.hh sortlist.hh rec-lua-conf.hh sholder.hh"
CFILES="syncres.cc iputils.cc misc.cc unix_utility.cc qtype.cc \
logger.cc arguments.cc lwres.cc pdns_recursor.cc lua-iputils.cc \
+#include "config.h"
+#ifdef HAVE_LUA
#include "ext/luawrapper/include/LuaContext.hpp"
+#endif
+
#include <fstream>
#include "namespaces.hh"
#include "logger.hh"
{
}
+#ifndef HAVE_LUA
+void loadRecursorLuaConfig(const std::string& fname)
+{
+ throw PDNSException("Asked to load a Lua configuration file '"+fname+"' in binary without Lua support");
+}
+#else
+
+
void loadRecursorLuaConfig(const std::string& fname)
{
LuaConfigItems lci;
Lua.executeCode(ifs);
g_luaconfs.setState(lci);
}
+
+#endif