Hi all,> 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.I specified XAPIAN_CONFIG as James instructed by running, ./configure XAPIAN_CONFIG=path/to/xapian-config-1.3 I have installed all the dependencies specified in xapian-core HACKING file including libtool. But I still get the following error when XO_LIB_XAPIAN is added to configure.ac, configure.ac:3: error: defn: undefined macro: LT_INIT aclocal.m4:43: XO_LIB_XAPIAN is expanded from... configure.ac:3: the top level autom4te: /usr/bin/m4 failed with exit status: 1 Could anyone tell me what I might be missing? Best regards, Amanda -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20160803/ababcd80/attachment.html>
On Wed, Aug 03, 2016 at 04:56:36PM +0530, Amanda Jayanetti wrote:> I specified XAPIAN_CONFIG as James instructed by running, > > ./configure XAPIAN_CONFIG=path/to/xapian-config-1.3Note that you (probably) want to install the 1.4.0 release if possible, at which point that will drop to just xapian-config. Certainly any documentation should talk about that, which is what users will want.> I have installed all the dependencies specified in xapian-core HACKING file > including libtool. But I still get the following error when XO_LIB_XAPIAN > is added to configure.ac, > > configure.ac:3: error: defn: undefined macro: LT_INIT > aclocal.m4:43: XO_LIB_XAPIAN is expanded from... > configure.ac:3: the top level > autom4te: /usr/bin/m4 failed with exit status: 1 > > Could anyone tell me what I might be missing?So the problem is that XO_LIB_XAPIAN is trying to access the libtool macros. Olly may be able to help here; we don't want to turn this into a libtool-based project (that doesn't seem to play nicely with R). J -- James Aylett, occasional trouble-maker xapian.org
Thanks for the reply James! :) Note that you (probably) want to install the 1.4.0 release if> possible, at which point that will drop to just > xapian-config. Certainly any documentation should talk about that, > which is what users will want. >Will do. So the problem is that XO_LIB_XAPIAN is trying to access the libtool> macros. Olly may be able to help here; we don't want to turn this into > a libtool-based project (that doesn't seem to play nicely with R).I see. Will leave configure.ac as it is for now? Best regards, Amanda On Wed, Aug 3, 2016 at 6:12 PM, James Aylett <james-xapian at tartarus.org> wrote:> On Wed, Aug 03, 2016 at 04:56:36PM +0530, Amanda Jayanetti wrote: > > > I specified XAPIAN_CONFIG as James instructed by running, > > > > ./configure XAPIAN_CONFIG=path/to/xapian-config-1.3 > > Note that you (probably) want to install the 1.4.0 release if > possible, at which point that will drop to just > xapian-config. Certainly any documentation should talk about that, > which is what users will want. > > > I have installed all the dependencies specified in xapian-core HACKING > file > > including libtool. But I still get the following error when XO_LIB_XAPIAN > > is added to configure.ac, > > > > configure.ac:3: error: defn: undefined macro: LT_INIT > > aclocal.m4:43: XO_LIB_XAPIAN is expanded from... > > configure.ac:3: the top level > > autom4te: /usr/bin/m4 failed with exit status: 1 > > > > Could anyone tell me what I might be missing? > > So the problem is that XO_LIB_XAPIAN is trying to access the libtool > macros. Olly may be able to help here; we don't want to turn this into > a libtool-based project (that doesn't seem to play nicely with R). > > J > > -- > James Aylett, occasional trouble-maker > xapian.org > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20160803/91e50cdf/attachment.html>
On Wed, Aug 03, 2016 at 01:42:04PM +0100, James Aylett wrote:> On Wed, Aug 03, 2016 at 04:56:36PM +0530, Amanda Jayanetti wrote: > > I have installed all the dependencies specified in xapian-core HACKING file > > including libtool. But I still get the following error when XO_LIB_XAPIAN > > is added to configure.ac, > > > > configure.ac:3: error: defn: undefined macro: LT_INIT > > aclocal.m4:43: XO_LIB_XAPIAN is expanded from... > > configure.ac:3: the top level > > autom4te: /usr/bin/m4 failed with exit status: 1 > > > > Could anyone tell me what I might be missing? > > So the problem is that XO_LIB_XAPIAN is trying to access the libtool > macros. Olly may be able to help here; we don't want to turn this into > a libtool-based project (that doesn't seem to play nicely with R).It's actually a bug in XO_LIB_XAPIAN with newer versions of GNU m4 (the macro language which autoconf is built on). Older versions of m4 apparently quietly handled defn([FOO]) even when FOO wasn't defined, but newer versions fail (I can't find mention of this in the changelog or NEWS file for m4, but the autoconf manual says it's the case). Fixed in git master by ec3912d0058a6f25401ac3da35dd295d6a7cb95a and RELEASE/1.4 by fe29467a005653264575a0f46ffcc2374b4e42cc. I'll probably backport it to the next 1.2.x release (if there is one). Amanda: For now you can just patch your install xapian.m4 as per that commit. Cheers, Olly