mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 16:06:12 +03:00
Merge pull request #2833 from martinhsv/v2/master
Only check for pcre2 install if required
This commit is contained in:
commit
2a42b08814
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
DD mmm YYYY - 2.9.x (to be released)
|
||||
-------------------
|
||||
|
||||
* Only check for pcre2 install if required
|
||||
[Issue #2833 - @martinhsv]
|
||||
* Adjustment of previous fix for log messages
|
||||
[Issue #2832 - @marcstern, @erkia]
|
||||
* Mark apache error log messages as from mod_security2
|
||||
|
@ -18,13 +18,17 @@ AC_DEFUN([CHECK_PCRE2],
|
||||
AC_ARG_WITH(
|
||||
pcre2,
|
||||
[AC_HELP_STRING([--with-pcre2=PATH],[Path to pcre2 prefix or config script])],
|
||||
, with_pcre2=yes)
|
||||
, with_pcre2=no)
|
||||
|
||||
AS_CASE(["${with_pcre2}"],
|
||||
[no], [test_paths=],
|
||||
[yes], [test_paths="/usr/local/libpcre2 /usr/local/pcre2 /usr/local /opt/libpcre2 /opt/pcre2 /opt /usr"],
|
||||
[test_paths="${with_pcre2}"])
|
||||
|
||||
if test "x${with_pcre2}" == "x" || test "x${with_pcre2}" == "xno"; then
|
||||
AC_MSG_NOTICE([pcre2 not specified; omitting check])
|
||||
else
|
||||
|
||||
AC_MSG_CHECKING([for libpcre2 config script])
|
||||
|
||||
for x in ${test_paths}; do
|
||||
@ -79,9 +83,11 @@ AC_SUBST(PCRE_LD_PATH)
|
||||
|
||||
if test -z "${PCRE2_VERSION}"; then
|
||||
AC_MSG_NOTICE([*** pcre2 library not found.])
|
||||
ifelse([$2], , AC_MSG_ERROR([pcre2 library is required]), $2)
|
||||
else
|
||||
AC_MSG_NOTICE([using pcre2 v${PCRE2_VERSION}])
|
||||
PCRE2_CFLAGS="-DWITH_PCRE2 ${PCRE2_CFLAGS}"
|
||||
ifelse([$1], , , $1)
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user