From fb488a64646a591187317ff6228a996e9625b4a2 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 14 Dec 2001 02:48:23 +0000 Subject: [PATCH] include directories should be added to INCLUDES, not CPPFLAGS (like it was origintally)... since AC_TRY_LINK() references CPPFLAGS but not INCLUDES, we'll add the zlib include directory to CPPFLAGS *temporarily* git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92469 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/config.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/experimental/config.m4 b/modules/experimental/config.m4 index 09fab692f8..a4700688c8 100644 --- a/modules/experimental/config.m4 +++ b/modules/experimental/config.m4 @@ -52,8 +52,11 @@ APACHE_MODULE(deflate, Deflate transfer encoding support, , , no, [ ap_save_includes=$INCLUDE ap_save_ldflags=$LDFLAGS ap_save_libs=$LIBS + ap_save_cppflags=$CPPFLAGS if test "$ap_zlib_base" != "/usr"; then - APR_ADDTO(CPPFLAGS, [-I${ap_zlib_base}/include]) + APR_ADDTO(INCLUDES, [-I${ap_zlib_base}/include]) + dnl put in CPPFLAGS temporarily so that AC_TRY_LINK below will work + CPPFLAGS="$CPPFLAGS -I${ap_zlib_base}/include" APR_ADDTO(LDFLAGS, [-L${ap_zlib_base}/lib]) if test "x$ap_platform_runtime_link_flag" != "x"; then APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag${ap_zlib_Base}/lib]) @@ -69,6 +72,7 @@ APACHE_MODULE(deflate, Deflate transfer encoding support, , , no, [ INCLUDES=$ap_save_includes LDFLAGS=$ap_save_ldflags LIBS=$ap_save_libs]) + CPPFLAGS=$ap_save_cppflags fi ]) -- 2.40.0