Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23184 invoked from network); 3 Apr 2003 05:29:54 -0000 Received: from unknown (HELO wmeler.t1.gda.wp-sa.pl) (212.77.105.136) by pb1.pair.com with SMTP; 3 Apr 2003 05:29:54 -0000 Received: (from wmeler@localhost) by wmeler.t1.gda.wp-sa.pl (8.11.6/8.11.6) id h335Tlu23286 for internals@lists.php.net; Thu, 3 Apr 2003 07:29:47 +0200 X-Authentication-Warning: wmeler.t1.gda.wp-sa.pl: wmeler set sender to wmeler@wp-sa.pl using -f Date: Thu, 3 Apr 2003 07:29:47 +0200 To: internals@lists.php.net Message-ID: <20030403072947.D1151@wp-sa.pl> Reply-To: wmeler@wp-sa.pl References: <20030402141656.C1151@wp-sa.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030402141656.C1151@wp-sa.pl>; from wmeler@wp-sa.pl on Wed, Apr 02, 2003 at 02:16:56PM +0200 Subject: Re: [PHP-DEV] how to disable extension in cli From: wmeler@wp-sa.pl (Wojtek Meler) --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 02, 2003 at 02:16:56PM +0200, Wojtek Meler wrote: > Is there a way to tell PHP to not include some sources in CLI build? > PHP_NEW_EXTENSION( mymodule , mymodule.c , nocli) doesn't work as I expected - it > doesn't include extension in main/internal_functions_cli.c but it link mymodule.o > to sapi/cli/php. attached patch helps :) Would you be so kind and put it into CVS? regards, Wojtek --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="aclocal.patch" --- aclocal.m4 Thu Apr 3 07:09:13 2003 +++ aclocal.m4 Thu Apr 3 07:18:03 2003 @@ -1310,10 +1310,12 @@ if test "$3" != "shared" && test "$3" != "yes" && test "$4" != "cli"; then dnl ---------------------------------------------- Static module - PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,) EXT_STATIC="$EXT_STATIC $1" if test "$3" != "nocli"; then EXT_CLI_STATIC="$EXT_CLI_STATIC $1" + PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,) + else + PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,sapi) fi else if test "$3" = "shared" || test "$3" = "yes"; then --ZfOjI3PrQbgiZnxM--