mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds information about libInjection version at configure summary
This commit is contained in:
parent
45711b5224
commit
43c9b92163
23
configure.ac
23
configure.ac
@ -62,8 +62,25 @@ AX_CXX_COMPILE_STDCXX_11(,mandatory)
|
||||
|
||||
# Check for libinjection
|
||||
AC_CHECK_FILE("others/libinjection/src/libinjection_html5.c", HAS_LIBINJECTION=1)
|
||||
test "x$HAS_LIBINJECTION" = "x" && AC_MSG_ERROR([\
|
||||
|
||||
|
||||
libInjection was not found within ModSecurity source directory.
|
||||
|
||||
libInjection code is available as part of ModSecurity source code in a format
|
||||
of a git-submodule. git-submodule allow us to specify the correct version of
|
||||
libInjection and still uses the libInjection repository to download it.
|
||||
|
||||
You can download libInjection using git:
|
||||
|
||||
$ git submodule init
|
||||
$ git submodule update
|
||||
|
||||
])
|
||||
# Libinjection version
|
||||
AC_DEFUN([LIBINJECTION_VERSION], m4_esyscmd_s(PWD="others/libinjection" git describe))
|
||||
|
||||
|
||||
test "x$HAS_LIBINJECTION" = "x" && AC_MSG_ERROR([libinjection is needed to build ModSecurity, make sure you have downloaded all the git submodules])
|
||||
|
||||
# Check for yajl
|
||||
PROG_YAJL
|
||||
@ -205,6 +222,10 @@ echo " "
|
||||
echo " "
|
||||
echo "ModSecurity - v${MSC_GIT_VERSION}"
|
||||
echo " "
|
||||
echo " Mandatory dependencies"
|
||||
echo -n " + libInjection ...."
|
||||
echo LIBINJECTION_VERSION
|
||||
echo " "
|
||||
echo " Optional dependencies"
|
||||
if test "x$GEOIP_FOUND" = "x0"; then
|
||||
echo " + GeoIP ....not found"
|
||||
|
Loading…
x
Reference in New Issue
Block a user