From 07c6066639e8e44b96f5a1c9306cbbae9a18e0bd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 9 May 2016 10:11:33 +0100 Subject: [PATCH] [Feature] Distinguish luajit from lua --- CMakeLists.txt | 2 ++ config.h.in | 1 + 2 files changed, 3 insertions(+) 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 -- 2.39.5