mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 01:36:08 +03:00
Fix CPPFLAGS when building against httpd src libs.
This commit is contained in:
parent
764fe94ab0
commit
229b1f9db6
@ -44,7 +44,7 @@ APU_LDFLAGS = @APU_LDFLAGS@
|
|||||||
APU_LIBS = @APU_LIBS@
|
APU_LIBS = @APU_LIBS@
|
||||||
APU_LINK_LD = @APU_LINK_LD@
|
APU_LINK_LD = @APU_LINK_LD@
|
||||||
|
|
||||||
CPPFLAGS=$(PCRE_CFLAGS) $(LIBXML_CFLAGS) $(LUA_CFLAGS)
|
CPPFLAGS=@CPPFLAGS@ $(PCRE_CFLAGS) $(LIBXML_CFLAGS) $(LUA_CFLAGS)
|
||||||
LIBS=$(PCRE_LIBS) $(LIBXML_LIBS) $(LUA_LIBS)
|
LIBS=$(PCRE_LIBS) $(LIBXML_LIBS) $(LUA_LIBS)
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
|
|
||||||
|
@ -103,6 +103,7 @@ AC_ARG_WITH(httpd-src,
|
|||||||
[PATH is to the Apache httpd source tree where srclib will be used as a base for pcre, apr and apu config scripts.])],
|
[PATH is to the Apache httpd source tree where srclib will be used as a base for pcre, apr and apu config scripts.])],
|
||||||
[
|
[
|
||||||
if test -n "$withval"; then
|
if test -n "$withval"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$withval/srclib/pcre"
|
||||||
pcre_path="$withval/srclib/pcre"
|
pcre_path="$withval/srclib/pcre"
|
||||||
apr_path="$withval/srclib/apr"
|
apr_path="$withval/srclib/apr"
|
||||||
apu_path="$withval/srclib/apr-util"
|
apu_path="$withval/srclib/apr-util"
|
||||||
@ -216,7 +217,6 @@ done;
|
|||||||
|
|
||||||
save_CPPFLAGS=$CPPFLAGS
|
save_CPPFLAGS=$CPPFLAGS
|
||||||
CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
|
CPPFLAGS="$APXS_INCLUDES $CPPFLAGS"
|
||||||
CPPFLAGS=$save_CPPFLAGS
|
|
||||||
|
|
||||||
AC_SUBST(EXTRA_CFLAGS)
|
AC_SUBST(EXTRA_CFLAGS)
|
||||||
AC_SUBST(MODSEC_EXTRA_CFLAGS)
|
AC_SUBST(MODSEC_EXTRA_CFLAGS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user