--- config.m4.orig 2005-11-13 18:50:46.000000000 -0600 +++ config.m4 2005-11-13 18:46:48.000000000 -0600 @@ -10,6 +10,16 @@ [ --with-zlib-dir[=DIR] memcache: Set the path to libz install prefix.], no, no) fi +for i in /usr/local /usr $PHP_ZLIB_DIR; do + if test -f $i/include/zlib/zlib.h; then + PHP_ZLIB_DIR=$i + PHP_ZLIB_INCDIR=$i/include/zlib + elif test -f $i/include/zlib.h; then + PHP_ZLIB_DIR=$i + PHP_ZLIB_INCDIR=$i/include + fi +done + if test "$PHP_MEMCACHE" != "no"; then dnl # zlib @@ -18,7 +28,7 @@ AC_MSG_ERROR([memcache support requires ZLIB. Use --with-zlib-dir=