mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Build: fix the build script that looks for yajl
The script was looking for the wrong header file. Instead of look for yajl_parse.h it was looking for yajl.h. Originally reported by @rpfilomeno at #804.
This commit is contained in:
parent
288fedfd22
commit
f45c6fe874
@ -99,20 +99,20 @@ else
|
||||
fi
|
||||
done
|
||||
for x in ${test_paths}; do
|
||||
if test -e "${x}/include/yajl.h"; then
|
||||
if test -e "${x}/include/yajl_parse.h"; then
|
||||
yajl_inc_path="${x}/include"
|
||||
break
|
||||
elif test -e "${x}/yajl.h"; then
|
||||
elif test -e "${x}/yajl_parse.h"; then
|
||||
yajl_inc_path="${x}"
|
||||
break
|
||||
fi
|
||||
|
||||
dnl # Check some sub-paths as well
|
||||
for yajl_pkg_name in ${yajl_lib_name} ${YAJL_PKGNAMES}; do
|
||||
if test -e "${x}/include/${yajl_pkg_name}/yajl.h"; then
|
||||
if test -e "${x}/include/${yajl_pkg_name}/yajl_parse.h"; then
|
||||
yajl_inc_path="${x}/include"
|
||||
break
|
||||
elif test -e "${x}/${yajl_pkg_name}/yajl.h"; then
|
||||
elif test -e "${x}/${yajl_pkg_name}/yajl_parse.h"; then
|
||||
yajl_inc_path="${x}"
|
||||
break
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user