summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 10:26:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 10:26:58 +0000
commit94ea1a337e014e2d6fbd81d5da184278f2ec79a3 (patch)
tree92c720d8be96c7c3a371c4d11162d35282b7b782 /CMakeLists.txt
parentaec69757d00dea7098d799a72b11f1c444d06f1f (diff)
downloadrspamd-94ea1a337e014e2d6fbd81d5da184278f2ec79a3.tar.gz
rspamd-94ea1a337e014e2d6fbd81d5da184278f2ec79a3.zip
Do not check for lua5.2 when luajit is enabled.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42482299e..3754197f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -397,10 +397,15 @@ ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
# Now find libraries and headers
# Find lua libraries
-FindLua(5 2)
-IF(NOT LUA_FOUND)
+IF(ENABLE_LUAJIT MATCHES "ON")
+ # For luajit we need to check merely lua 5.1 as lua 5.2 is incompatible
FindLua(5 1)
-ENDIF(NOT LUA_FOUND)
+ELSE(ENABLE_LUAJIT MATCHES "ON")
+ FindLua(5 2)
+ IF(NOT LUA_FOUND)
+ FindLua(5 1)
+ ENDIF(NOT LUA_FOUND)
+ENDIF(ENABLE_LUAJIT MATCHES "ON")
IF(NOT LUA_FOUND)
MESSAGE(FATAL_ERROR "Lua not found, lua support is required for working")
@@ -668,6 +673,7 @@ CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILES(sysexits.h HAVE_SYSEXITS_H)
CHECK_INCLUDE_FILES(stdint.h HAVE_STDINT_H)
CHECK_INCLUDE_FILES(inttypes.h HAVE_INTTYPES_H)
+CHECK_INCLUDE_FILES(stdbool.h HAVE_STDBOOL_H)
CHECK_INCLUDE_FILES(endian.h HAVE_ENDIAN_H)
CHECK_INCLUDE_FILES(sys/endian.h HAVE_SYS_ENDIAN_H)
CHECK_INCLUDE_FILES(machine/endian.h HAVE_MACHINE_ENDIAN_H)