]> granicus.if.org Git - apache/commitdiff
include directories should be added to INCLUDES, not CPPFLAGS
authorJeff Trawick <trawick@apache.org>
Fri, 14 Dec 2001 02:48:23 +0000 (02:48 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 14 Dec 2001 02:48:23 +0000 (02:48 +0000)
(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

index 09fab692f8b3ad27ed9fcf31e9e0a25aa719d4dc..a4700688c8e536433509c31e658edd1de6555144 100644 (file)
@@ -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
 ])