Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001041

[PHP-DEV] Re: [PEAR-DEV] --with-pear[=DIR] patch From: Stig Sæther Bakken (ssb <email protected>)
Date: 04/08/01

[Jon Parise <jon <email protected>>]
> 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 <email protected>>
  Fast Search & Transfer ASA, Trondheim, Norway

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>