mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Makes re2 detectable by the build scripts
This commit is contained in:
parent
a5ee59f5d0
commit
22136788c8
175
build/re2.m4
Normal file
175
build/re2.m4
Normal file
@ -0,0 +1,175 @@
|
||||
dnl Check for RE2 Libraries
|
||||
dnl CHECK_RE2(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
|
||||
|
||||
AC_DEFUN([PROG_RE2], [
|
||||
|
||||
# Needed if pkg-config will be used.
|
||||
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||
|
||||
# Possible names for the re2 library/package (pkg-config)
|
||||
RE2_POSSIBLE_LIB_NAMES="re2"
|
||||
|
||||
# Possible extensions for the library
|
||||
RE2_POSSIBLE_EXTENSIONS="so la sl dll dylib"
|
||||
|
||||
# Possible paths (if pkg-config was not found, proceed with the file lookup)
|
||||
RE2_POSSIBLE_PATHS="/usr/lib /usr/local/lib /usr/local/libre2 /usr/local/re2 /usr/local /opt/libre2 /opt/re2 /opt /usr /usr/lib64"
|
||||
|
||||
# Variables to be set by this very own script.
|
||||
RE2_VERSION=""
|
||||
RE2_CFLAGS=""
|
||||
RE2_CPPFLAGS=""
|
||||
RE2_LDADD=""
|
||||
RE2_LDFLAGS=""
|
||||
|
||||
AC_ARG_WITH(
|
||||
re2,
|
||||
AC_HELP_STRING(
|
||||
[--with-re2=PATH],
|
||||
[Path to re2 prefix or config script]
|
||||
)
|
||||
)
|
||||
|
||||
if test "x${with_re2}" == "xno"; then
|
||||
AC_DEFINE(HAVE_GEOIP, 0, [Support for RE2 was disabled by the utilization of --without-re2 or --with-re2=no])
|
||||
AC_MSG_NOTICE([Support for RE2 was disabled by the utilization of --without-re2 or --with-re2=no])
|
||||
RE2_DISABLED=yes
|
||||
else
|
||||
if test "x${with_re2}" == "xyes"; then
|
||||
RE2_MANDATORY=yes
|
||||
AC_MSG_NOTICE([RE2 support was marked as mandatory by the utilization of --with-re2=yes])
|
||||
fi
|
||||
# for x in ${RE2_POSSIBLE_LIB_NAMES}; do
|
||||
# CHECK_FOR_RE2_AT(${x})
|
||||
# if test -n "${RE2_VERSION}"; then
|
||||
# break
|
||||
# fi
|
||||
# done
|
||||
|
||||
# if test "x${with_re2}" != "xyes" or test "x${with_re2}" == "xyes"; then
|
||||
if test "x${with_re2}" == "x" || test "x${with_re2}" == "xyes"; then
|
||||
# Nothing about GeoIP was informed, using the pkg-config to figure things out.
|
||||
if test -n "${PKG_CONFIG}"; then
|
||||
RE2_PKG_NAME=""
|
||||
for x in ${RE2_POSSIBLE_LIB_NAMES}; do
|
||||
if ${PKG_CONFIG} --exists ${x}; then
|
||||
RE2_PKG_NAME="$x"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
AC_MSG_NOTICE([Nothing about GeoIP was informed during the configure phase. Trying to detect it on the platform...])
|
||||
if test -n "${RE2_PKG_NAME}"; then
|
||||
# Package was found using the pkg-config scripts
|
||||
RE2_VERSION="`${PKG_CONFIG} ${RE2_PKG_NAME} --modversion`"
|
||||
RE2_CFLAGS="`${PKG_CONFIG} ${RE2_PKG_NAME} --cflags`"
|
||||
RE2_LDADD="`${PKG_CONFIG} ${RE2_PKG_NAME} --libs-only-l`"
|
||||
RE2_LDFLAGS="`${PKG_CONFIG} ${RE2_PKG_NAME} --libs-only-L --libs-only-other`"
|
||||
RE2_DISPLAY="${RE2_LDADD}, ${RE2_CFLAGS}"
|
||||
else
|
||||
# If pkg-config did not find anything useful, go over file lookup.
|
||||
for x in ${RE2_POSSIBLE_LIB_NAMES}; do
|
||||
CHECK_FOR_RE2_AT(${x})
|
||||
if test -n "${RE2_VERSION}"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
if test "x${with_re2}" != "x"; then
|
||||
# An specific path was informed, lets check.
|
||||
RE2_MANDATORY=yes
|
||||
CHECK_FOR_RE2_AT(${with_re2})
|
||||
fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
if test -z "${RE2_LDADD}"; then
|
||||
if test -z "${RE2_MANDATORY}"; then
|
||||
if test -z "${RE2_DISABLED}"; then
|
||||
AC_MSG_NOTICE([RE2 library was not found])
|
||||
RE2_FOUND=0
|
||||
else
|
||||
RE2_FOUND=2
|
||||
fi
|
||||
else
|
||||
AC_MSG_ERROR([RE2 was explicitly referenced but it was not found])
|
||||
RE2_FOUND=-1
|
||||
fi
|
||||
else
|
||||
RE2_FOUND=1
|
||||
AC_MSG_NOTICE([using RE2 v${RE2_VERSION}])
|
||||
RE2_CFLAGS="-DWITH_RE2 ${RE2_CFLAGS}"
|
||||
RE2_DISPLAY="${RE2_LDADD}, ${RE2_CFLAGS}"
|
||||
AC_SUBST(RE2_VERSION)
|
||||
AC_SUBST(RE2_LDADD)
|
||||
AC_SUBST(RE2_LIBS)
|
||||
AC_SUBST(RE2_LDFLAGS)
|
||||
AC_SUBST(RE2_CFLAGS)
|
||||
AC_SUBST(RE2_DISPLAY)
|
||||
fi
|
||||
|
||||
|
||||
|
||||
AC_SUBST(RE2_FOUND)
|
||||
|
||||
]) # AC_DEFUN [PROG_RE2]
|
||||
|
||||
|
||||
AC_DEFUN([CHECK_FOR_RE2_AT], [
|
||||
path=$1
|
||||
for y in ${RE2_POSSIBLE_EXTENSIONS}; do
|
||||
for z in ${RE2_POSSIBLE_LIB_NAMES}; do
|
||||
if test -e "${path}/${z}.${y}"; then
|
||||
re2_lib_path="${path}/"
|
||||
re2_lib_name="${z}"
|
||||
re2_lib_file="${re2_lib_path}/${z}.${y}"
|
||||
break
|
||||
fi
|
||||
if test -e "${path}/lib${z}.${y}"; then
|
||||
re2_lib_path="${path}/"
|
||||
re2_lib_name="${z}"
|
||||
re2_lib_file="${re2_lib_path}/lib${z}.${y}"
|
||||
break
|
||||
fi
|
||||
if test -e "${path}/lib/lib${z}.${y}"; then
|
||||
re2_lib_path="${path}/lib/"
|
||||
re2_lib_name="${z}"
|
||||
re2_lib_file="${re2_lib_path}/lib${z}.${y}"
|
||||
break
|
||||
fi
|
||||
if test -e "${path}/lib/x86_64-linux-gnu/lib${z}.${y}"; then
|
||||
re2_lib_path="${path}/lib/x86_64-linux-gnu/"
|
||||
re2_lib_name="${z}"
|
||||
re2_lib_file="${re2_lib_path}/lib${z}.${y}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -n "$re2_lib_path"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -e "${path}/include/re2_parse.h"; then
|
||||
re2_inc_path="${path}/include"
|
||||
elif test -e "${path}/re2_parse.h"; then
|
||||
re2_inc_path="${path}"
|
||||
elif test -e "${path}/include/re2/re2_parse.h"; then
|
||||
re2_inc_path="${path}/include"
|
||||
fi
|
||||
|
||||
if test -n "${re2_lib_path}"; then
|
||||
AC_MSG_NOTICE([RE2 library found at: ${re2_lib_file}])
|
||||
fi
|
||||
|
||||
if test -n "${re2_inc_path}"; then
|
||||
AC_MSG_NOTICE([RE2 headers found at: ${re2_inc_path}])
|
||||
fi
|
||||
|
||||
if test -n "${re2_lib_path}" -a -n "${re2_inc_path}"; then
|
||||
# TODO: Compile a piece of code to check the version.
|
||||
RE2_CFLAGS="-I${re2_inc_path}"
|
||||
RE2_LDADD="-l${re2_lib_name}"
|
||||
RE2_LDFLAGS="-L${re2_lib_path}"
|
||||
RE2_DISPLAY="${re2_lib_file}, ${re2_inc_path}"
|
||||
fi
|
||||
]) # AC_DEFUN [CHECK_FOR_RE2_AT]
|
65
configure.ac
65
configure.ac
@ -105,6 +105,9 @@ AM_CONDITIONAL([SSDEEP_CFLAGS], [test "SSDEEP_CFLAGS" != ""])
|
||||
CHECK_LUA
|
||||
AM_CONDITIONAL([LUA_CFLAGS], [test "LUA_CFLAGS" != ""])
|
||||
|
||||
# Check for RE2
|
||||
PROG_RE2
|
||||
AM_CONDITIONAL([RE2_CFLAGS], [test "RE2_CFLAGS" != ""])
|
||||
|
||||
#
|
||||
# Check for curl
|
||||
@ -549,6 +552,68 @@ if test "x$LUA_FOUND" = "x2"; then
|
||||
fi
|
||||
|
||||
|
||||
## REGEX
|
||||
echo " + Regular expression engine"
|
||||
|
||||
REGEX_SELECTED_RE2=" "
|
||||
REGEX_SELECTED_PCRE=" "
|
||||
|
||||
if test "x$RE2_FOUND" = "x1"; then
|
||||
MSC_REGEX_ENG="re2"
|
||||
fi
|
||||
if test "x$PCRE_FOUND" = "x1"; then
|
||||
MSC_REGEX_ENG="pcre"
|
||||
fi
|
||||
|
||||
AC_SUBST(MSC_REGEX_ENG)
|
||||
|
||||
if test "x$MSC_REGEX_ENG" = "xpcre"; then
|
||||
MSC_REGEX_ENG_IS_PCRE=1
|
||||
REGEX_SELECTED_PCRE="[[selected]]"
|
||||
AC_SUBST(MSC_REGEX_ENG_IS_PCRE)
|
||||
fi
|
||||
if test "x$MSC_REGEX_ENG" = "xre2"; then
|
||||
MSC_REGEX_ENG_IS_RE2=1
|
||||
REGEX_SELECTED_PCRE="[[selected]]"
|
||||
AC_SUBST(MSC_REGEX_ENG_IS_RE2)
|
||||
fi
|
||||
|
||||
|
||||
#### RE2
|
||||
if test "x$RE2_FOUND" = "x0"; then
|
||||
echo " * RE2 (experimental) ....not found"
|
||||
fi
|
||||
if test "x$RE2_FOUND" = "x1"; then
|
||||
echo -n " * RE2 (experimental) ${REGEX_SELECTED_RE2} ....found "
|
||||
if ! test "x$RE2_VERSION" = "x"; then
|
||||
echo "v${RE2_VERSION}"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
echo " ${RE2_DISPLAY}"
|
||||
fi
|
||||
if test "x$RE2_FOUND" = "x2"; then
|
||||
echo " * RE2 (experimental) ....disabled"
|
||||
fi
|
||||
|
||||
#### PCRE
|
||||
if test "x$PCRE_FOUND" = "x0"; then
|
||||
echo " * PCRE ....not found"
|
||||
fi
|
||||
if test "x$PCRE_FOUND" = "x1"; then
|
||||
echo -n " * PCRE ${REGEX_SELECTED_PCRE} ....found "
|
||||
if ! test "x$PCRE_VERSION" = "x"; then
|
||||
echo "v${PCRE_VERSION}"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
echo " ${PCRE_DISPLAY}"
|
||||
fi
|
||||
if test "x$PCRE_FOUND" = "x2"; then
|
||||
echo " * PCRE ....disabled"
|
||||
fi
|
||||
|
||||
|
||||
echo " "
|
||||
echo " Other Options"
|
||||
if test $buildTestUtilities = true; then
|
||||
|
@ -16,7 +16,8 @@ simple_request_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
simple_request_LDFLAGS = \
|
||||
$(GEOIP_LDFLAGS) \
|
||||
@ -25,7 +26,8 @@ simple_request_LDFLAGS = \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(MAXMIND_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
simple_request_CPPFLAGS = \
|
||||
$(GLOBAL_CFLAGS) \
|
||||
@ -43,7 +45,8 @@ simple_request_CPPFLAGS = \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(LUA_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
|
@ -16,7 +16,8 @@ read_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
read_LDFLAGS = \
|
||||
$(GEOIP_LDFLAGS) \
|
||||
@ -24,7 +25,8 @@ read_LDFLAGS = \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(MAXMIND_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
read_CPPFLAGS = \
|
||||
$(GLOBAL_CFLAGS) \
|
||||
@ -43,7 +45,8 @@ read_CPPFLAGS = \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(LUA_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
|
@ -16,7 +16,8 @@ simple_request_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
simple_request_LDFLAGS = \
|
||||
$(GEOIP_LDFLAGS) \
|
||||
@ -25,7 +26,8 @@ simple_request_LDFLAGS = \
|
||||
-lpthread \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
simple_request_CPPFLAGS = \
|
||||
$(GLOBAL_CFLAGS) \
|
||||
@ -44,7 +46,8 @@ simple_request_CPPFLAGS = \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(LUA_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
@ -316,7 +316,8 @@ libmodsecurity_la_CPPFLAGS = \
|
||||
$(SSDEEP_CFLAGS) \
|
||||
$(MAXMIND_CFLAGS) \
|
||||
$(LUA_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
||||
libmodsecurity_la_LDFLAGS = \
|
||||
@ -331,6 +332,7 @@ libmodsecurity_la_LDFLAGS = \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(MAXMIND_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS) \
|
||||
-version-info @MSC_VERSION_INFO@
|
||||
|
||||
|
||||
@ -346,5 +348,6 @@ libmodsecurity_la_LIBADD = \
|
||||
$(PCRE_LDADD) \
|
||||
$(MAXMIND_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
|
@ -26,7 +26,8 @@ libmodsec_parser_la_CPPFLAGS = \
|
||||
$(YAJL_CFLAGS) \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
test.cc: seclang-parser.hh
|
||||
cat seclang-parser.hh | sed "s/return \*new (yyas_<T> ()) T (t)/return *new (yyas_<T> ()) T (std::move((T\&)t))/g" > seclang-parser.hh.fix && mv seclang-parser.hh.fix seclang-parser.hh
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <pcre.h>
|
||||
|
||||
|
||||
#include "src/regex/backend/pcre.h"
|
||||
#include "src/regex/regex_match.h"
|
||||
@ -28,6 +28,7 @@ namespace modsecurity {
|
||||
namespace regex {
|
||||
namespace backend {
|
||||
|
||||
#ifdef WITH_PCRE
|
||||
|
||||
#if PCRE_HAVE_JIT
|
||||
#define pcre_study_opt PCRE_STUDY_JIT_COMPILE
|
||||
@ -119,6 +120,7 @@ int Pcre::search(const std::string& s) const {
|
||||
s.size(), 0, 0, ovector, OVECCOUNT) > 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace backend
|
||||
} // namespace regex
|
||||
|
@ -13,7 +13,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef WITH_PCRE
|
||||
#include <pcre.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
@ -29,6 +31,7 @@ namespace modsecurity {
|
||||
namespace regex {
|
||||
namespace backend {
|
||||
|
||||
#ifdef WITH_PCRE
|
||||
|
||||
#define OVECCOUNT 30
|
||||
|
||||
@ -52,6 +55,7 @@ class Pcre {
|
||||
pcre_extra *m_pce = NULL;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace backend
|
||||
} // namespace regex
|
||||
|
@ -30,6 +30,14 @@
|
||||
namespace modsecurity {
|
||||
namespace regex {
|
||||
|
||||
#ifdef WITH_PCRE
|
||||
using selectedBackend = backend::Pcre;
|
||||
#elif WITH_RE2
|
||||
//using selectedBackend = backend::Re2;
|
||||
#else
|
||||
#error "no regex backend selected"
|
||||
#endif
|
||||
|
||||
using selectedBackend = backend::Pcre;
|
||||
|
||||
class Regex : public selectedBackend {
|
||||
|
@ -52,7 +52,8 @@ unit_tests_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
|
||||
unit_tests_LDFLAGS = \
|
||||
@ -61,7 +62,8 @@ unit_tests_LDFLAGS = \
|
||||
$(LMDB_LDFLAGS) \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
|
||||
unit_tests_CPPFLAGS = \
|
||||
@ -80,7 +82,8 @@ unit_tests_CPPFLAGS = \
|
||||
$(YAJL_CFLAGS) \
|
||||
$(LUA_CFLAGS) \
|
||||
$(SSDEEP_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
||||
# regression
|
||||
@ -102,7 +105,8 @@ regression_tests_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
|
||||
regression_tests_LDFLAGS = \
|
||||
@ -111,7 +115,8 @@ regression_tests_LDFLAGS = \
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(LMDB_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(LUA_LDFLAGS)
|
||||
$(LUA_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
|
||||
regression_tests_CPPFLAGS = \
|
||||
@ -130,7 +135,8 @@ regression_tests_CPPFLAGS = \
|
||||
$(SSDEEP_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(YAJL_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
||||
# optimization
|
||||
@ -151,7 +157,8 @@ rules_optimization_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
rules_optimization_LDFLAGS = \
|
||||
$(GEOIP_LDFLAGS) \
|
||||
@ -159,7 +166,8 @@ rules_optimization_LDFLAGS = \
|
||||
$(LMDB_LDFLAGS) \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
rules_optimization_CPPFLAGS = \
|
||||
-std=c++11 \
|
||||
@ -177,5 +185,6 @@ rules_optimization_CPPFLAGS = \
|
||||
$(SSDEEP_CFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(YAJL_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
|
@ -16,7 +16,8 @@ benchmark_LDADD = \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(LUA_LDADD) \
|
||||
$(LIBXML2_LDADD) \
|
||||
$(GLOBAL_LDADD)
|
||||
$(GLOBAL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
benchmark_LDFLAGS = \
|
||||
$(top_builddir)/src/.libs/libmodsecurity.a \
|
||||
@ -25,7 +26,8 @@ benchmark_LDFLAGS = \
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(LMDB_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(LUA_LDFLAGS)
|
||||
$(LUA_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
benchmark_CPPFLAGS = \
|
||||
-std=c++11 \
|
||||
@ -33,7 +35,8 @@ benchmark_CPPFLAGS = \
|
||||
$(GLOBAL_CPPFLAGS) \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
@ -16,7 +16,8 @@ modsec_rules_check_LDADD = \
|
||||
$(LUA_LDADD) \
|
||||
$(PCRE_LDADD) \
|
||||
$(SSDEEP_LDADD) \
|
||||
$(YAJL_LDADD)
|
||||
$(YAJL_LDADD) \
|
||||
$(RE2_LDADD)
|
||||
|
||||
modsec_rules_check_LDFLAGS = \
|
||||
$(GEOIP_LDFLAGS) \
|
||||
@ -25,7 +26,8 @@ modsec_rules_check_LDFLAGS = \
|
||||
$(LMDB_LDFLAGS) \
|
||||
$(LUA_LDFLAGS) \
|
||||
$(SSDEEP_LDFLAGS) \
|
||||
$(YAJL_LDFLAGS)
|
||||
$(YAJL_LDFLAGS) \
|
||||
$(RE2_LDFLAGS)
|
||||
|
||||
modsec_rules_check_CPPFLAGS = \
|
||||
-std=c++11 \
|
||||
@ -34,7 +36,8 @@ modsec_rules_check_CPPFLAGS = \
|
||||
$(PCRE_CFLAGS) \
|
||||
$(LMDB_CFLAGS) \
|
||||
$(MAXMIND_CFLAGS) \
|
||||
$(LIBXML2_CFLAGS)
|
||||
$(LIBXML2_CFLAGS) \
|
||||
$(RE2_CFLAGS)
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
Loading…
x
Reference in New Issue
Block a user