mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds MODSEC_NO_LOGS option to be part of the configure
This commit is contained in:
parent
74045beab5
commit
b0089cfde9
@ -152,6 +152,9 @@ MSC_VERSION_INFO=msc_version_info
|
|||||||
AC_SUBST([MSC_VERSION_INFO])
|
AC_SUBST([MSC_VERSION_INFO])
|
||||||
|
|
||||||
|
|
||||||
|
# MODSEC_NO_LOGS="-DNO_LOGS=1"
|
||||||
|
# AC_SUBST(MODSEC_NO_LOGS)
|
||||||
|
|
||||||
|
|
||||||
# Files to be generated via autotools.
|
# Files to be generated via autotools.
|
||||||
AC_CONFIG_FILES([\
|
AC_CONFIG_FILES([\
|
||||||
|
@ -204,6 +204,7 @@ libmodsecurity_la_CPPFLAGS = \
|
|||||||
-O3 \
|
-O3 \
|
||||||
-I ../headers \
|
-I ../headers \
|
||||||
$(GEOIP_CFLAGS) \
|
$(GEOIP_CFLAGS) \
|
||||||
|
$(MODSEC_NO_LOGS) \
|
||||||
$(PCRE_CPPFLAGS)
|
$(PCRE_CPPFLAGS)
|
||||||
|
|
||||||
libmodsecurity_la_LIBADD = \
|
libmodsecurity_la_LIBADD = \
|
||||||
|
@ -39,6 +39,7 @@ unit_tests_CPPFLAGS = \
|
|||||||
-g \
|
-g \
|
||||||
-I$(top_builddir)/headers \
|
-I$(top_builddir)/headers \
|
||||||
$(CURL_CFLAGS) \
|
$(CURL_CFLAGS) \
|
||||||
|
$(MODSEC_NO_LOGS) \
|
||||||
$(GEOIP_CFLAGS) \
|
$(GEOIP_CFLAGS) \
|
||||||
$(PCRE_CPPFLAGS) \
|
$(PCRE_CPPFLAGS) \
|
||||||
$(YAJL_CFLAGS)
|
$(YAJL_CFLAGS)
|
||||||
@ -67,6 +68,7 @@ regression_tests_CPPFLAGS = \
|
|||||||
-g \
|
-g \
|
||||||
-I$(top_builddir)/headers \
|
-I$(top_builddir)/headers \
|
||||||
$(CURL_CFLAGS) \
|
$(CURL_CFLAGS) \
|
||||||
|
$(MODSEC_NO_LOGS) \
|
||||||
$(GEOIP_CFLAGS) \
|
$(GEOIP_CFLAGS) \
|
||||||
$(PCRE_CPPFLAGS) \
|
$(PCRE_CPPFLAGS) \
|
||||||
$(YAJL_CFLAGS)
|
$(YAJL_CFLAGS)
|
||||||
|
@ -262,6 +262,10 @@ int main(int argc, char **argv) {
|
|||||||
ModSecurityTest<RegressionTest> test;
|
ModSecurityTest<RegressionTest> test;
|
||||||
ModSecurityTestResults<RegressionTest> results;
|
ModSecurityTestResults<RegressionTest> results;
|
||||||
|
|
||||||
|
#ifdef NO_LOGS
|
||||||
|
std::cout << "Test utility cannot work without logging support." \
|
||||||
|
<< std::endl;
|
||||||
|
#else
|
||||||
test.cmd_options(argc, argv);
|
test.cmd_options(argc, argv);
|
||||||
std::cout << test.header();
|
std::cout << test.header();
|
||||||
|
|
||||||
@ -324,6 +328,6 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
delete vec;
|
delete vec;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user