bug-autoconf
[Top][All Lists]
Advanced

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

Re: Bug: "possibly undefined macro: AC_MSG_ERROR"


From: Hans Aberg
Subject: Re: Bug: "possibly undefined macro: AC_MSG_ERROR"
Date: Tue, 4 Mar 2008 14:38:38 +0100


On 4 Mar 2008, at 14:05, Axel Simon wrote:

autoconf picks up all its macro
definitions from /usr/share/autoconf on a system where autoconf is
installed in /usr/bin. I found that AC_MSG_ERROR is re-directed in
autoconf/general.m4 to AS_ERROR:

m4_copy([AS_ERROR],   [AC_MSG_ERROR])

Then AS_ERROR is defined in m4sugar/m4sh.m4 as:

# AS_ERROR(ERROR, [EXIT-STATUS = 1])
# ----------------------------------
m4_define([AS_ERROR],
[{ AS_MESSAGE([error: $1], [2])
   AS_EXIT([$2]); }[]dnl
])# AS_ERROR

You will probably find these two definitions on your system.
IIRC, I had the same problem as you on a PPC Mac and assumed that
separate installations of the tool probably interfered with each other.

It does not seem to be the case, because the bug persists even if I move /usr/share/autoconf (see snippet below).

  Hans Aberg

--------
# mv /usr/share/autoconf /usr/share/autoconf-bkp

# autoreconf
configure.ac:101: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1

# rm -rf autom4te.cache/ aclocal.m4 configure
# aclocal
# autoreconf
configure.ac:101: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
--------







reply via email to

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