You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

  1. --- a/pdns/Makefile.am
  2. +++ b/pdns/Makefile.am
  3. @@ -54,7 +54,8 @@
  4. bindparser.h \
  5. named.conf.parsertest \
  6. delaypipe.hh delaypipe.cc \
  7. - pdns.service.in
  8. + pdns.service.in \
  9. + lua_hpp.mk
  10. BUILT_SOURCES = \
  11. bind-dnssec.schema.sqlite3.sql.h \
  12. @@ -109,6 +108,12 @@
  13. endif
  14. +if !HAVE_LUA_HPP
  15. +BUILT_SOURCES += lua.hpp
  16. +nodist_pdns_server_SOURCES = lua.hpp
  17. +CLEANFILES += lua.hpp
  18. +endif
  19. +
  20. EXTRA_PROGRAMS = \
  21. calidns \
  22. comfun \
  23. @@ -1303,3 +1305,7 @@
  24. pdns.service \
  25. pdns@.service
  26. endif
  27. +
  28. +if !HAVE_LUA_HPP
  29. +include lua_hpp.mk
  30. +endif
  31. --- /dev/null
  32. +++ b/pdns/lua_hpp.mk
  33. @@ -0,0 +1,6 @@
  34. +lua.hpp:
  35. + $(AM_V_GEN)echo 'extern "C" {' > $@
  36. + @echo '#include "lua.h"' >> $@
  37. + @echo '#include "lualib.h"' >> $@
  38. + @echo '#include "lauxlib.h"' >> $@
  39. + @echo '}' >> $@
  40. --- a/modules/luabackend/Makefile.am
  41. +++ b/modules/luabackend/Makefile.am
  42. @@ -15,5 +15,15 @@
  43. slave.cc \
  44. supermaster.cc
  45. +if !HAVE_LUA_HPP
  46. +BUILT_SOURCES = lua.hpp
  47. +nodist_libluabackend_la_SOURCES = lua.hpp
  48. +CLEANFILES = lua.hpp
  49. +endif
  50. +
  51. libluabackend_la_LDFLAGS = -module -avoid-version
  52. libluabackend_la_LIBADD = $(LUA_LIBS)
  53. +
  54. +if !HAVE_LUA_HPP
  55. +include ../../pdns/lua_hpp.mk
  56. +endif