[PHP4BETA] new configure approach
| From: | Stig Sæther Bakken | Date: | Wed, 12 May 1999 20:36:59 +0000 |
| Subject: | [PHP4BETA] new configure approach | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-815@lists.php.net to get a copy of this message | ||
I have started working on making it possible to build shared PHP
extensions without the presence of the PHP source code. The approach
resembles that of apxs for Apache (which again is based on something
from Perl?)
Since Zend and PHP4 have both moved towards producing reusable
libraries, a logical next step would be to install them and the header
files necessary to use them when PHP installed.
Anyway, I have changed Zend (not checked in yet) to "make install"
libzend.a to $prefix/lib/zend and its header files to
$prefix/include/zend, and PHP to install its include files in
$prefix/include/php. The idea is to also install "phpxs" in
$prefix/bin/ and make it possible to build extensions using phpxs in
different modes for compiling, linking and installing files.
Then, extensions can be distributed separately, completely
self-contained, with their own configure scripts and so on.
Distribution maintainers should dig that.
The thing that bothers me about this right now is that copying config.h
and other stuff generated with configure to $prefix/include/php is
stupid. I have not yet figured out a solution for this, so let's hear
it from you guys :-)
- Stig
--
PHP 4 Beta