cvs: php4 /ext/ircg config.m4 ircg.c
| From: | Sascha Schumann | Date: | Sat, 14 Apr 2001 18:49:04 +0000 |
| Subject: | cvs: php4 /ext/ircg config.m4 ircg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5120@lists.php.net to get a copy of this message | ||
sas Sat Apr 14 11:49:04 2001 EDT
Modified files:
/php4/ext/ircg config.m4 ircg.c
Log:
Make it possible to build ircg without thttpd
Index: php4/ext/ircg/config.m4
diff -u php4/ext/ircg/config.m4:1.6 php4/ext/ircg/config.m4:1.7
--- php4/ext/ircg/config.m4:1.6 Tue Mar 27 12:34:30 2001
+++ php4/ext/ircg/config.m4 Sat Apr 14 11:49:04 2001
@@ -16,6 +16,9 @@
PHP_EVAL_INCLINE(
$IRCG_CONFIG --cppflags)
PHP_ADD_LIBRARY_WITH_PATH(ircg, $PHP_IRCG/lib)
PHP_ADD_INCLUDE($PHP_IRCG/include)
+ if test "$PHP_SAPI" = "thttpd"; then
+ AC_DEFINE(IRCG_WITH_THTTPD, 1, [Whether thttpd is available])
+ fi
AC_DEFINE(HAVE_IRCG, 1, [Whether you want IRCG support])
PHP_EXTENSION(ircg, $ext_shared)
fi
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.56 php4/ext/ircg/ircg.c:1.57
--- php4/ext/ircg/ircg.c:1.56 Tue Apr 3 12:41:23 2001
+++ php4/ext/ircg/ircg.c Sat Apr 14 11:49:04 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ircg.c,v 1.56 2001/04/03 19:41:23 sas Exp $ */
+/* $Id: ircg.c,v 1.57 2001/04/14 18:49:04 sas Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -633,6 +633,7 @@
PHP_FUNCTION(ircg_set_current)
{
+#ifdef IRCG_WITH_THTTPD
zval **p1;
php_irconn_t *conn;
@@ -656,6 +657,7 @@
msg_empty_buffer(conn);
RETURN_TRUE;
+#endif
}
PHP_FUNCTION(ircg_new_window)