mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
nginx: Trying apxs and apxs2 while compiling nginx module
This commit is contained in:
parent
751a9f4e45
commit
35fd75d859
@ -9,7 +9,7 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Checking for Apache headers using apx2... "
|
echo -n "Checking for Apache headers using apxs2... "
|
||||||
apache_include_dir=`apxs2 -q INCLUDEDIR 2> /dev/null`
|
apache_include_dir=`apxs2 -q INCLUDEDIR 2> /dev/null`
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ]
|
if [ $RETVAL -eq 0 ]
|
||||||
@ -17,10 +17,17 @@ then
|
|||||||
CORE_INCS="$CORE_INCS $apache_include_dir"
|
CORE_INCS="$CORE_INCS $apache_include_dir"
|
||||||
echo "Ok"
|
echo "Ok"
|
||||||
else
|
else
|
||||||
echo "FAIL"
|
echo -n "Checking for Apache headers using apxs... "
|
||||||
echo "Aborting. Apache apx2 is not installed or fails to point\
|
apache_include_dir=`apxs -q INCLUDEDIR 2> /dev/null`
|
||||||
|
RETVAL=$?
|
||||||
|
if [ $RETVAL -eq 0 ]
|
||||||
|
then
|
||||||
|
CORE_INCS="$CORE_INCS $apache_include_dir"
|
||||||
|
echo "Ok"
|
||||||
|
else
|
||||||
|
echo "Aborting. Apache apxs2/apxs is not installed or fails to point\
|
||||||
Apache headers."
|
Apache headers."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
missing=""
|
missing=""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user