[Xapian-discuss] Error on ./configure process with Xapian-bindings-0.9.6

Olly Betts olly at survex.com
Mon Sep 18 03:53:39 BST 2006


On Sun, Sep 17, 2006 at 09:11:01AM -0700, Sebi wrote:
> What information returned by php-config tool do Xapian-bindings-0.9.6
> use on the configure step? I can make a program named `php-config`
> which will return this information for every php-config option.

You could, but it would be much better to work out how to get this
information automatically so "./configure" just works.  Or failing
that (I've been digging on the web and there doesn't seem to be any
obvious way sadly) allow users to just need to specify some directories
to configure instead of having to write their own php-config.

> Can i supply this information directly to ./configure, whitout using
> php-config?

Not currently.

However, having run configure, I think you should be able to pass the
values to "make" like this (assuming that you have PHP installed in
"c:\php5" and the PHP source unpacked at "c:\php-5.1.6"):

cd php
make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev -lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext
make PHP_INC=-Ic:/php-5.1.6 PHP_LIBS="-Lc:/php5/dev -lphp5ts" PHP_EXTENSION_DIR=c:/php5/ext install
ren c:\php\ext\xapian.dll c:\php\ext\php_xapian.dll

Cheers,
    Olly



More information about the Xapian-discuss mailing list