diff --git a/configure.ac b/configure.ac index 7394cb44..b2a27f01 100644 --- a/configure.ac +++ b/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"