cvs: pecl /memcache config.m4 config.w32
| From: | Antony Dovgal | Date: | Thu, 11 Mar 2004 13:17:23 +0000 |
| Subject: | cvs: pecl /memcache config.m4 config.w32 | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1064@lists.php.net to get a copy of this message | ||
tony2001 Thu Mar 11 08:17:23 2004 EDT
Modified files:
/pecl/memcache config.m4 config.w32
Log:
check for zlib (we need it for compression support)
#can someone check config.w32? is it ok?
http://cvs.php.net/diff.php/pecl/memcache/config.m4?r1=1.1.1.1&r2=1.2&ty=u
Index: pecl/memcache/config.m4
diff -u pecl/memcache/config.m4:1.1.1.1 pecl/memcache/config.m4:1.2
--- pecl/memcache/config.m4:1.1.1.1 Wed Feb 11 11:06:39 2004
+++ pecl/memcache/config.m4 Thu Mar 11 08:17:23 2004
@@ -1,11 +1,28 @@
dnl
-dnl $Id: config.m4,v 1.1.1.1 2004/02/11 16:06:39 tony2001 Exp $
+dnl $Id: config.m4,v 1.2 2004/03/11 13:17:23 tony2001 Exp $
dnl
PHP_ARG_ENABLE(memcache, whether to enable memcache support,
[ --enable-memcache Enable memcache support])
+if test -z "$PHP_ZLIB_DIR"; then
+PHP_ARG_WITH(zlib-dir, for the location of libz,
+[ --with-zlib-dir[=DIR] memcache: Set the path to libz install prefix.], no, no)
+fi
+
if test "$PHP_MEMCACHE" != "no"; then
+
+ dnl # zlib
+ AC_MSG_CHECKING([for the location of zlib])
+ if test "$PHP_ZLIB_DIR" = "no"; then
+ AC_MSG_RESULT([no. If configure fails, try --with-zlib-dir=<DIR>])
+ else
+ AC_MSG_RESULT([$PHP_ZLIB_DIR])
+ PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, MEMCACHE_SHARED_LIBADD)
+ fi
+
AC_DEFINE(HAVE_MEMCACHE,1,[Whether you want memcache support])
PHP_NEW_EXTENSION(memcache, memcache.c, $ext_shared)
fi
+
+
http://cvs.php.net/diff.php/pecl/memcache/config.w32?r1=1.3&r2=1.4&ty=u
Index: pecl/memcache/config.w32
diff -u pecl/memcache/config.w32:1.3 pecl/memcache/config.w32:1.4
--- pecl/memcache/config.w32:1.3 Thu Feb 12 05:11:14 2004
+++ pecl/memcache/config.w32 Thu Mar 11 08:17:23 2004
@@ -1,9 +1,13 @@
-// $Id: config.w32,v 1.3 2004/02/12 10:11:14 edink Exp $
+// $Id: config.w32,v 1.4 2004/03/11 13:17:23 tony2001 Exp $
// vim:ft=javascript
ARG_ENABLE("memcache", "memcache support", "no");
if (PHP_MEMCACHE != "no") {
- EXTENSION("memcache", "memcache.c");
- AC_DEFINE('HAVE_MEMCACHE', 1, 'Have memcache support');
+ if (CHECK_LIB("zlib.lib", "memcache", PHP_MEMCACHE)) {
+ EXTENSION("memcache", "memcache.c");
+ AC_DEFINE('HAVE_MEMCACHE', 1, 'Have memcache support');
+ } else {
+ WARNING("memcache not enabled; libraries and headers not found");
+ }
}