aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-09 10:11:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-09 10:11:33 +0100
commit07c6066639e8e44b96f5a1c9306cbbae9a18e0bd (patch)
treed07c7ee8a777b2334205873164261779c2d60211
parent917e1ca945041431f331a111b9996068c375b3f7 (diff)
downloadrspamd-07c6066639e8e44b96f5a1c9306cbbae9a18e0bd.tar.gz
rspamd-07c6066639e8e44b96f5a1c9306cbbae9a18e0bd.zip
[Feature] Distinguish luajit from lua
-rw-r--r--CMakeLists.txt2
-rw-r--r--config.h.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 22f5e02f4..19da2632d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,6 +261,8 @@ MACRO(FindLua)
PATHS ${RSPAMD_DEFAULT_LIBRARY_PATHS}
DOC "Lua library"
)
+ ELSE()
+ SET(WITH_LUAJIT 1)
ENDIF()
ELSE(ENABLE_LUAJIT MATCHES "ON")
MESSAGE(STATUS "Check for lua ${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}")
diff --git a/config.h.in b/config.h.in
index 9cc046c95..d858f65c6 100644
--- a/config.h.in
+++ b/config.h.in
@@ -125,6 +125,7 @@
#cmakedefine WITH_JEMALLOC 1
#cmakedefine WITH_JUDY 1
#cmakedefine WITH_LUA 1
+#cmakedefine WITH_LUAJIT 1
#cmakedefine WITH_PCRE2 1
#cmakedefine WITH_PROFILER 1
#cmakedefine WITH_SNOWBALL 1