This patch fixes a problem with the --with-imap search algorithm. I have an ancient version of IMAP running on my build machine, but I am building php4 to use an up-to-date version of imap, using the --with-imap configure argument. Prior to this patch, configure would ignore my $withval and instead find the wrong version of imap in /usr. This patch makes configure look first in the location given on the command line, and *then* fall back to /usr and /usr/local.
The patch is against today's CVS.
-ken
-------
Index: config.m4
===================================================================
RCS file: /repository/php4/ext/imap/config.m4,v
retrieving revision 1.49
diff -u -b -B -w -p -u -b -B -w -p -r1.49 config.m4
--- config.m4 1 Nov 2002 16:45:59 -0000 1.49
+++ config.m4 22 Nov 2002 04:49:27 -0000
@@ -141,7 +141,13 @@ AC_DEFUN(PHP_IMAP_SSL_CHK, [
PHP_ARG_WITH(imap,for IMAP support,
-[ --with-imap[=DIR] Include IMAP support. DIR is the c-client install prefix.])
+[ --with-imap[=DIR] Include IMAP support. DIR is the c-client install prefix.],
+ [
+ PHP_IMAP=$withval
+ ],[
+ PHP_IMAP=no
+ ])
+
if test "$PHP_IMAP" != "no"; then
@@ -149,7 +155,7 @@ if test "$PHP_IMAP" != "no"; then
PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared)
AC_DEFINE(HAVE_IMAP,1,[ ])
- for i in /usr/local /usr $PHP_IMAP; do
+ for i in $PHP_IMAP /usr/local /usr ; do
IMAP_INC_CHK()
el[]IMAP_INC_CHK(/include/c-client)
el[]IMAP_INC_CHK(/include/imap)
--
---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
php4cvsimap.patch.gz
Description: Binary data
msg08055/pgp00000.pgp
Description: PGP signature
