R bindings for Xapian - Project progress

Olly Betts olly at survex.com
Sat Jun 18 11:32:09 BST 2016


On Mon, May 30, 2016 at 04:35:15PM +0100, James Aylett wrote:
> 7. In configure.ac, you should default to xapian-config, not
> xapian-config-1.3; anyone who's using a development version can point
> XAPIAN_CONFIG to the relevant binary. It isn't a huge issue right now
> (since you're not targetting Xapian 1.2), but 1.4 should be out during
> the course of GSoC, and we'll want RXapian to support that without
> people having to do anything special.

It would be better to use the XO_LIB_XAPIAN macro provided by
xapian-core instead of writing your own code to probe for
xapian-config.

Everything from line 3 to line 18 of your current configure.ac could be
replaced with just:

XO_LIB_XAPIAN

If you've installed xapian-core then the macro should just be
found automatically.  If you want to build against an uninstalled
xapian-core, you need to pass -I options to aclocal so it can find the
macro (the top level `bootstrap` does this automatically - at some point
we should probably sort out support for RXapian in there).

Cheers,
    Olly



More information about the Xapian-devel mailing list