diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 12:23:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 12:23:33 +0000 |
commit | a95cb759f567fd84d053a9c5dea31896c44eaf10 (patch) | |
tree | c6bea609b52bd042d22488419032d4da5711ccd5 /CMakeLists.txt | |
parent | 17ffcdc70c6424f3ab3fa8c8d9670ce2619c1ae7 (diff) | |
download | rspamd-a95cb759f567fd84d053a9c5dea31896c44eaf10.tar.gz rspamd-a95cb759f567fd84d053a9c5dea31896c44eaf10.zip |
Check for JIT support in pcre.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bce194f8..42482299e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,6 +233,7 @@ MACRO(ProcessPackage var _name0) ENDIF(ENABLE_STATIC MATCHES "ON") FOREACH(_arg ${${_XPREFIX}_INCLUDE_DIRS}) INCLUDE_DIRECTORIES("${_arg}") + SET(${var}_INCLUDE_DIR "${_arg}") ENDFOREACH(_arg ${${_XPREFIX}_INCLUDE_DIRS}) FOREACH(_arg ${${_XPREFIX}_LIBRARY_DIRS}) LINK_DIRECTORIES("${_arg}") @@ -417,6 +418,8 @@ ENDIF(OPENSSL_FOUND) ProcessPackage(GLIB2 glib-2.0>=2.16) ProcessPackage(GTHREAD gthread-2.0) ProcessPackage(HIREDIS hiredis libhiredis) +ProcessPackage(PCRE pcre libpcre pcre3 libpcre3) +LIST(APPEND CMAKE_REQUIRED_INCLUDES "${PCRE_INCLUDE_DIR}") FIND_PATH(LIBHIREDIS_INCLUDE hiredis.h PATHS /opt/include /usr/include @@ -819,6 +822,7 @@ CHECK_SYMBOL_EXISTS(_SC_NPROCESSORS_ONLN unistd.h HAVE_SC_NPROCESSORS_ONLN) CHECK_SYMBOL_EXISTS(setbit sys/param.h PARAM_H_HAS_BITSET) CHECK_SYMBOL_EXISTS(getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO) CHECK_SYMBOL_EXISTS(sched_yield "sched.h" HAVE_SCHED_YIELD) +CHECK_SYMBOL_EXISTS(PCRE_CONFIG_JIT "pcre.h" HAVE_PCRE_JIT) FILE(WRITE ${CMAKE_BINARY_DIR}/pthread_setpshared.c " #include <pthread.h> |