--- /dev/null
+lua.hpp:
+ $(AM_V_GEN)echo 'extern "C" {' > $@
+ @echo '#include "lua.h"' >> $@
+ @echo '#include "lualib.h"' >> $@
+ @echo '#include "lauxlib.h"' >> $@
+ @echo '}' >> $@
/dnsmessage.pb.h
/pdns-recursor.service
/pdns-recursor@.service
+/lua.hpp
effective_tld_names.dat \
epollmplexer.cc \
kqueuemplexer.cc \
+ lua_hpp.mk \
malloctrace.cc malloctrace.hh \
mtasker.cc \
mtasker_fcontext.cc mtasker_ucontext.cc \
ws-recursor.cc ws-recursor.hh \
zoneparser-tng.cc zoneparser-tng.hh
+if !HAVE_LUA_HPP
+BUILT_SOURCES += lua.hpp
+nodist_pdns_recursor_SOURCES = lua.hpp
+CLEANFILES += lua.hpp
+endif
+
pdns_recursor_LDADD = \
$(YAHTTP_LIBS) \
$(JSON11_LIBS) \
pdns-recursor.service \
pdns-recursor@.service
endif
+
+if !HAVE_LUA_HPP
+include lua_hpp.mk
+endif
AC_PROG_LIBTOOL
PDNS_CHECK_OS
+PDNS_CHECK_NETWORK_LIBS
# Boost Context was introduced in 1.51 (Aug 2012), but there was an immediate
# API break in 1.52 (Nov 2012), so we only support that, and later.
--- /dev/null
+../lua_hpp.mk
\ No newline at end of file
--- /dev/null
+../../../m4/pdns_check_network_libs.m4
\ No newline at end of file