diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-07 14:29:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-07 14:29:25 +0000 |
commit | be2034ea2469d327451803a5d35804e96f1076be (patch) | |
tree | eca5b1239d2d64f94847fb7cc2667eafbaa1a54d /CMakeLists.txt | |
parent | ee98688103cf7bb7e14a4356adf055c77201b9f2 (diff) | |
download | rspamd-be2034ea2469d327451803a5d35804e96f1076be.tar.gz rspamd-be2034ea2469d327451803a5d35804e96f1076be.zip |
Start hyperscan support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 786399bc2..96118f12d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,7 @@ OPTION(INSTALL_WEBUI "Install web interface [default: ON]" OPTION(WANT_SYSTEMD_UNITS "Install systemd unit files on Linux [default: OFF]" OFF) OPTION(ENABLE_SNOWBALL "Enable snowball stemmer [default: ON]" ON) OPTION(ENABLE_CLANG_PLUGIN "Enable clang static analysing plugin [default: OFF]" OFF) +OPTION(ENABLE_HYPERSCAN "Enable hyperscan for fast regexp processing [default: OFF]" OFF) # Build optimized code for following CPU (default i386) #SET(CPU_TUNE "i686") @@ -621,6 +622,13 @@ ProcessPackage(OPENSSL LIBRARY crypto INCLUDE err.h INCLUDE_SUFFIXES include/ope ProcessPackage(MAGIC LIBRARY magic INCLUDE magic.h INCLUDE_SUFFIXES include/libmagic ROOT ${LIBMAGIC_ROOT_DIR} MODULES magic) +IF(ENABLE_HYPERSCAN MATCHES "ON") + ProcessPackage(HYPERSCAN LIBRARY hs INCLUDE hs.h INCLUDE_SUFFIXES + include/hyperscan include/hs + ROOT ${HYPERSCAN_ROOT_DIR} MODULES hs) + SET(WITH_HYPERSCAN 1) +ENDIF() + #Check for openssl (required for dkim) IF(WITH_OPENSSL) SET(HAVE_OPENSSL 1) |