On Thursday 13 August 2015 23:05:26 Andries E. Brouwer wrote:
> On Thu, Aug 13, 2015 at 10:08:24PM +0200, Tim Rühsen wrote:
> > Am Donnerstag, 13. August 2015, 19:33:56 schrieb Andries E. Brouwer:
> > > autoreconf: running: /usr/bin/autoconf --include=m4 --force
> > > configure.ac:93: error: possibly undefined macro: AC_DEFINE
> > > 
> > >       If this token and others are legitimate, please use
> > >       m4_pattern_allow.
> > >       See the Autoconf documentation.
> > > 
> > > configure.ac:498: error: possibly undefined macro: AM_PATH_GPGME
> > > autoreconf: /usr/bin/autoconf failed with exit status: 1
> > > ./bootstrap: autoreconf failed
> > 
> > Yes sorry, that is a recent issue with metalink. Darshit works on that.
> > 
> > You have to install libgpgme11-dev (Or similar name).
> 
> Yes, that helps.
> 
> So:
> 
> Question 1: how come AC_DEFINE is undefined?
> Answer 1: that is a bug in aclocal or so: a call of AC_DEFINE
>  is involved in the call of AM_PATH_GPGME. Nothing is wrong with
>  AC_DEFINE but AM_PATH_GPGME is undefined, and that also triggers
>  the message about AC_DEFINE.
> 
> Question 2: why is AM_PATH_GPGME undefined?
> Answer 2: It is not in the wget tree, and not in my /usr/share/aclocal*.
> 
> Installing libgpgme11-dev produces /usr/share/aclocal/gpgme.m4,
> but we do not want to require that.
> 
> I think a solution is:
> 
> 1. install libgpgme11-dev
> 2. cp /usr/share/aclocal/gpgme.m4 git/wget/m4
> 3. uninstall libgpgme11-dev
> 4. observe that ./bootstrap works

I just pushed a simpler solution.
Check for existance of AM_PATH_GPGME before using it :-)

If you 'git pull', bootstrap/autoreconf should work smoothly.

Tim



Reply via email to