summaryrefslogtreecommitdiff
blob: bc95fee5d5924cc210b5343377188bdc0942871d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- mod_gnutls-0.7.1/m4/apr_memcache.m4
+++ mod_gnutls-0.7.1/m4/apr_memcache.m4
@@ -40,23 +40,20 @@
 if test -n "$apr_memcache_includes"; then
     apr_memcache_includedir=$apr_memcache_includes
 elif test -n "$apr_memcache_prefix"; then
-    apr_memcache_includedir=$apr_memcache_prefix/include/apr_memcache-0
+    apr_memcache_includedir=$apr_memcache_prefix/include/aprutil-1
 else
-    apr_memcache_includedir=$includedir/apr_memcache-0
+    apr_memcache_includedir=$includedir/aprutil-1
 fi
 
 CFLAGS="-I$apr_memcache_includedir $CFLAGS"
 
 
 AC_CHECK_LIB(
-    apr_memcache,
+    aprutil-1,
     apr_memcache_create,
     [
-	APR_MEMCACHE_LIBS="-lapr_memcache"
-	if test -n "$apr_memcache_libdir"; then
-	    APR_MEMCACHE_LIBS="-R$apr_memcache_libdir -L$apr_memcache_libdir $APR_MEMCACHE_LIBS"
-	fi
-	APR_MEMCACHE_CFLAGS="-I$apr_memcache_includedir"
+    APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
+    APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
     ]
 )