diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-09 10:11:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-09 10:11:33 +0100 |
commit | 07c6066639e8e44b96f5a1c9306cbbae9a18e0bd (patch) | |
tree | d07c7ee8a777b2334205873164261779c2d60211 | |
parent | 917e1ca945041431f331a111b9996068c375b3f7 (diff) | |
download | rspamd-07c6066639e8e44b96f5a1c9306cbbae9a18e0bd.tar.gz rspamd-07c6066639e8e44b96f5a1c9306cbbae9a18e0bd.zip |
[Feature] Distinguish luajit from lua
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | config.h.in | 1 |
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 |