Skip to content

Commit 35fd75d

Browse files
author
Felipe Zimmerle
committed
nginx: Trying apxs and apxs2 while compiling nginx module
1 parent 751a9f4 commit 35fd75d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

nginx/modsecurity/config

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@ then
99
exit 1
1010
fi
1111

12-
echo -n "Checking for Apache headers using apx2... "
12+
echo -n "Checking for Apache headers using apxs2... "
1313
apache_include_dir=`apxs2 -q INCLUDEDIR 2> /dev/null`
1414
RETVAL=$?
1515
if [ $RETVAL -eq 0 ]
1616
then
1717
CORE_INCS="$CORE_INCS $apache_include_dir"
1818
echo "Ok"
1919
else
20-
echo "FAIL"
21-
echo "Aborting. Apache apx2 is not installed or fails to point\
20+
echo -n "Checking for Apache headers using apxs... "
21+
apache_include_dir=`apxs -q INCLUDEDIR 2> /dev/null`
22+
RETVAL=$?
23+
if [ $RETVAL -eq 0 ]
24+
then
25+
CORE_INCS="$CORE_INCS $apache_include_dir"
26+
echo "Ok"
27+
else
28+
echo "Aborting. Apache apxs2/apxs is not installed or fails to point\
2229
Apache headers."
23-
exit 1;
30+
exit 1;
2431
fi
2532

2633
missing=""

0 commit comments

Comments
 (0)