[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LT_PREREQ breaks autoreconf

From: Ralf Wildenhues
Subject: Re: LT_PREREQ breaks autoreconf
Date: Sat, 13 Dec 2008 10:47:39 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

[ adding bug-autoconf ]

Hello Jason,

thanks for the bug report.

* Jason Curl wrote on Sat, Dec 13, 2008 at 10:01:22AM CET:
> I have a macro and in the first lines are:
> AC_PREREQ(2.61)
> LT_PREREQ([2.2.6])
> When I run "autoreconf" I get:
> $ autoreconf
> error: m4_defn: undefined macro: _m4_divert_diversion
> the top level
> autom4te-2.63: /usr/bin/m4 failed with exit status: 1
> aclocal-1.10: autom4te failed with exit status: 1
> autoreconf-2.63: aclocal failed with exit status: 1
> If I remove "LT_PREREQ" then the configure script compiles and I can  
> move forward.

Hmm; I can reproduce this with Autoconf 2.63 but not with current git,
with a test case of:

It works in any case when I move LT_PREREQ after AC_INIT, or in a macro
definition such as:

  AC_DEFUN([FOO], [LT_PREREQ([2.2.6])])

Autoconf questions: Is the failure due to a bug in Autoconf 2.63
diversion handling, and if yes, where is it fixed (NEWS and
ChangeLog don't seem to indicate)?

Question for Jason: you state you had the LT_PREREQ in a macro.
Do you expand (call) the macro before AC_INIT?  If yes, can you
show a small example that reproduces that failure?  Asking because
I can only reproduce it when LT_PREREQ is actually expanded earlier.

Next question, is there a simple way Libtool can work around the
2.63 bug?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]