Re: --with-pear[=DIR] patch

From: Date: Sun, 08 Apr 2001 22:21:50 +0000
Subject: Re: --with-pear[=DIR] patch
References: 1  Groups: php.dev php.pear.dev 
Request: Send a blank email to php-dev+get-51155@lists.php.net to get a copy of this message
[Jon Parise <jon@csh.rit.edu>] > Does anyone object to the following patch to the PHP configure system? > > It removes the --disable-pear flag in favor of a new --with-pear > option. The --with-pair option also allows the specification of the > PEAR installation directory at compilation time. For example: > > ./configure --with-pear=/var/www/pear > > ... would install the PEAR hierarchy in /var/www/pear. The new PEAR > directory is also added to the default 'include_path', too (that > behavior isn't really new, but it's a lot more useful now that the > PEAR location can be specified at compile time). This patch overlaps with some changes I did on my way home from ApacheCon. I haven't committed them yet, but here's a summary: 1. Using --datadir to determine where PEAR PHP files go. With --datadir=/usr/share or --datadir=/usr/share/php, PHP architecture independent files go to /usr/share/php, and PEAR's PHP files go to /usr/share/php/pear. I've added your --with-pear option to override this. 2. Using --libdir to determine where extensions go. With --libdir=/usr/lib or --libdir=/usr/lib/php, extensions are installed in /usr/lib/php/<APIVER>. I've also shortened the <APIVER> part so "no-debug" and "non-zts" are skipped. The alternatives are now "20001222", "20001222-zts", "20001222-debug" and "20001222-zts-debug". 3. Using --sysconfdir to determine php.ini path. The default is now $prefix/etc. 4. The CGI version of PHP is always built and installed. Let me know if you have any problems with these changes. They should make it a lot easier for distributions to build PHP, because we conform more to de-facto build conventions (at least on Linux). Also you won't have to re-run configure and make to build the CGI in order to run tests, the PEAR installer etc. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.dev (#51155) next »