Skip to content

Commit

Permalink
recursor: allow building on openindiana
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis committed Jun 8, 2016
1 parent 5b67925 commit e10b652
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pdns/lua_hpp.mk
Original file line number Diff line number Diff line change
@@ -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 '}' >> $@
1 change: 1 addition & 0 deletions pdns/recursordist/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
/dnsmessage.pb.h
/pdns-recursor.service
/[email protected]
/lua.hpp
11 changes: 11 additions & 0 deletions pdns/recursordist/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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) \
Expand Down Expand Up @@ -250,3 +257,7 @@ systemdsystemunit_DATA = \
pdns-recursor.service \
[email protected]
endif

if !HAVE_LUA_HPP
include lua_hpp.mk
endif
1 change: 1 addition & 0 deletions pdns/recursordist/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions pdns/recursordist/lua_hpp.mk
1 change: 1 addition & 0 deletions pdns/recursordist/m4/pdns_check_network_libs.m4

0 comments on commit e10b652

Please sign in to comment.