cvs: php4 /ext/cyrus config.m4
| From: | Jani Taskinen | Date: | Wed, 04 Sep 2002 17:41:51 +0000 |
| Subject: | cvs: php4 /ext/cyrus config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13832@lists.php.net to get a copy of this message | ||
sniper Wed Sep 4 13:41:51 2002 EDT
Modified files:
/php4/ext/cyrus config.m4
Log:
ws fix
Index: php4/ext/cyrus/config.m4
diff -u php4/ext/cyrus/config.m4:1.6 php4/ext/cyrus/config.m4:1.7
--- php4/ext/cyrus/config.m4:1.6 Wed Sep 4 13:40:36 2002
+++ php4/ext/cyrus/config.m4 Wed Sep 4 13:41:51 2002
@@ -1,47 +1,50 @@
dnl
-dnl $Id: config.m4,v 1.6 2002/09/04 17:40:36 sniper Exp $
+dnl $Id: config.m4,v 1.7 2002/09/04 17:41:51 sniper Exp $
dnl
PHP_ARG_WITH(cyrus, for cyrus imap support,
[ --with-cyrus Include cyrus imap support])
if test "$PHP_CYRUS" != "no"; then
- found_cyrus=no
- found_sasl=no
- found_openssl=no
- for i in /usr /usr/local $PHP_CYRUS; do
- if test -r $i/include/cyrus/imclient.h && test "$found_cyrus" = "no";
then
- PHP_ADD_INCLUDE($i/include)
- PHP_ADD_LIBRARY_WITH_PATH(cyrus, $i/lib, CYRUS_SHARED_LIBADD)
- found_cyrus=yes
- fi
- if test -r $i/include/sasl.h && test "$found_sasl" = "no"; then
- PHP_ADD_INCLUDE($i/include)
- PHP_ADD_LIBRARY_WITH_PATH(sasl, $i/lib, CYRUS_SHARED_LIBADD)
- found_sasl=yes
- elif test -r $i/include/sasl/sasl.h && test "$found_sasl" = "no";
then
- PHP_ADD_INCLUDE($i/include/sasl)
- PHP_ADD_LIBRARY_WITH_PATH(sasl, $i/lib, CYRUS_SHARED_LIBADD)
- found_sasl=yes
- fi
- if test -r $i/include/openssl/ssl.h && test "$found_openssl" = "no"
&& test "$PHP_OPENSSL" = "no"; then
- PHP_ADD_LIBRARY_WITH_PATH(ssl, $i/lib, CYRUS_SHARED_LIBADD)
- PHP_ADD_LIBRARY_WITH_PATH(crypto, $i/lib, CYRUS_SHARED_LIBADD)
- found_openssl=yes
- fi
- done
-
- if test "$found_cyrus" = "no"; then
- AC_MSG_RESULT(not found)
- AC_MSG_ERROR(Please Re-install the cyrus distribution)
- fi
-
- if test "$found_sasl" = "no"; then
- AC_MSG_RESULT(sasl not found)
- AC_MSG_ERROR(Please Re-install the cyrus distribution)
- fi
-
- PHP_NEW_EXTENSION(cyrus, cyrus.c, $ext_shared)
- PHP_SUBST(CYRUS_SHARED_LIBADD)
- AC_DEFINE(HAVE_CYRUS,1,[ ])
+ found_cyrus=no
+ found_sasl=no
+ found_openssl=no
+
+ for i in /usr /usr/local $PHP_CYRUS; do
+ if test -r $i/include/cyrus/imclient.h && test "$found_cyrus" =
"no"; then
+ PHP_ADD_INCLUDE($i/include)
+ PHP_ADD_LIBRARY_WITH_PATH(cyrus, $i/lib, CYRUS_SHARED_LIBADD)
+ found_cyrus=yes
+ fi
+
+ if test -r $i/include/sasl.h && test "$found_sasl" = "no"; then
+ PHP_ADD_INCLUDE($i/include)
+ PHP_ADD_LIBRARY_WITH_PATH(sasl, $i/lib, CYRUS_SHARED_LIBADD)
+ found_sasl=yes
+ elif test -r $i/include/sasl/sasl.h && test "$found_sasl" = "no";
then
+ PHP_ADD_INCLUDE($i/include/sasl)
+ PHP_ADD_LIBRARY_WITH_PATH(sasl, $i/lib, CYRUS_SHARED_LIBADD)
+ found_sasl=yes
+ fi
+
+ if test -r $i/include/openssl/ssl.h && test "$found_openssl" = "no"
&& test "$PHP_OPENSSL" = "no"; then
+ PHP_ADD_LIBRARY_WITH_PATH(ssl, $i/lib, CYRUS_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(crypto, $i/lib, CYRUS_SHARED_LIBADD)
+ found_openssl=yes
+ fi
+ done
+
+ if test "$found_cyrus" = "no"; then
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(Please Re-install the cyrus distribution)
+ fi
+
+ if test "$found_sasl" = "no"; then
+ AC_MSG_RESULT(sasl not found)
+ AC_MSG_ERROR(Please Re-install the cyrus distribution)
+ fi
+
+ PHP_NEW_EXTENSION(cyrus, cyrus.c, $ext_shared)
+ PHP_SUBST(CYRUS_SHARED_LIBADD)
+ AC_DEFINE(HAVE_CYRUS,1,[ ])
fi