]> granicus.if.org Git - pdns/commitdiff
recursor: allow building on openindiana
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 17 Feb 2016 23:16:19 +0000 (00:16 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 8 Jun 2016 09:15:15 +0000 (11:15 +0200)
pdns/lua_hpp.mk [new file with mode: 0644]
pdns/recursordist/.gitignore
pdns/recursordist/Makefile.am
pdns/recursordist/configure.ac
pdns/recursordist/lua_hpp.mk [new symlink]
pdns/recursordist/m4/pdns_check_network_libs.m4 [new symlink]

diff --git a/pdns/lua_hpp.mk b/pdns/lua_hpp.mk
new file mode 100644 (file)
index 0000000..70502f4
--- /dev/null
@@ -0,0 +1,6 @@
+lua.hpp:
+       $(AM_V_GEN)echo 'extern "C" {' > $@
+       @echo '#include "lua.h"' >> $@
+       @echo '#include "lualib.h"' >> $@
+       @echo '#include "lauxlib.h"' >> $@
+       @echo '}' >> $@
index 9d26984e896f04e72bd7df9ef0f20d4833d9d402..35bf6defd5885a38b7b6c6e4982c3cd16b1a274f 100644 (file)
@@ -40,3 +40,4 @@
 /dnsmessage.pb.h
 /pdns-recursor.service
 /pdns-recursor@.service
+/lua.hpp
index 3d3dd22a43ac5b074db3a53b1e1cd885c5d6afd2..0a42a72147de1519700ed721b07ab2aa9ac549cc 100644 (file)
@@ -46,6 +46,7 @@ EXTRA_DIST = \
        effective_tld_names.dat \
        epollmplexer.cc \
        kqueuemplexer.cc \
+       lua_hpp.mk \
        malloctrace.cc malloctrace.hh \
        mtasker.cc \
        mtasker_fcontext.cc mtasker_ucontext.cc \
@@ -133,6 +134,12 @@ pdns_recursor_SOURCES = \
        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) \
@@ -250,3 +257,7 @@ systemdsystemunit_DATA = \
        pdns-recursor.service \
        pdns-recursor@.service
 endif
+
+if !HAVE_LUA_HPP
+include lua_hpp.mk
+endif
index 448ec662ea6d9cf97afd7984b8dcc056250dc82b..b376001975e6f1a8ac17300b07eeb5b9c0ba9576 100644 (file)
@@ -38,6 +38,7 @@ AX_CXX_COMPILE_STDCXX_11([ext], [mandatory])
 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.
diff --git a/pdns/recursordist/lua_hpp.mk b/pdns/recursordist/lua_hpp.mk
new file mode 120000 (symlink)
index 0000000..52778c2
--- /dev/null
@@ -0,0 +1 @@
+../lua_hpp.mk
\ No newline at end of file
diff --git a/pdns/recursordist/m4/pdns_check_network_libs.m4 b/pdns/recursordist/m4/pdns_check_network_libs.m4
new file mode 120000 (symlink)
index 0000000..ec197ee
--- /dev/null
@@ -0,0 +1 @@
+../../../m4/pdns_check_network_libs.m4
\ No newline at end of file