[Xapian-discuss] Failing to build PHP Bindings OSX 10.6

Olly Betts olly at survex.com
Thu Dec 16 22:08:36 GMT 2010


On Thu, Dec 16, 2010 at 09:54:04PM +0000, James Aylett wrote:
> Olly & Richard, could configure could check this situation by importing
> xapian/version.h and checking XAPIAN_VERSION, major_version or something?
> configure will check the version of xapian-config, but that's not quite the
> same if your include paths get contaminated?

I don't think configure easily can - this issue only emerges in the Makefile
when the full compile command line is assembled, so we'd have to duplicate
the information on how that is assembled in configure, which seems rather
brittle.

I think you'd have to put the information from xapian-config --version in
to config.h, then put some preprocessor magic into the code which gets
compiled to complain if that doesn't match what you get from <xapian.h>.

Anyway, "patches welcome" as they say...

Cheers,
    Olly



More information about the Xapian-discuss mailing list