[Top][All Lists]

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

Re: autoconf: _m4_divert_diversion

From: Akim Demaille
Subject: Re: autoconf: _m4_divert_diversion
Date: 22 Nov 2001 18:52:27 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

| I'm trying to build the PHP source on Cygwin with an extension.
| Heres the end of the output I get when I run buildconf.
| rebuilding configure
| ./aclocal.m4:814: error: m4_defn: undefined: _m4_divert_diversion
| ./aclocal.m4:360: PHP_SUBST is expanded from...
| ./aclocal.m4:814: the top level
| rebuilding main/
| autoheader: error: shell error while sourcing /tmp/ah976/
| I'm an absolute amateur in all things automake/autoconf.
| I've been told to try downgrading to autoconf 2.50 (which didn't make a
| lick of difference), and I am running automake 1.5.
| Any help would be very much appreciated.

See the documentation.

New Macros

   Because Autoconf has been dormant for years, Automake provided
Autoconf-like macros for a while.  Autoconf 2.50 now provides better
versions of these macros, integrated in the `AC_' namespace, instead of
`AM_'.  But in order to ease the upgrading via `autoupdate', bindings
to such `AM_' macros are provided.

   Unfortunately Automake did not quote the name of these macros!
Therefore, when `m4' find in `aclocal.m4' something like
replaced with its Autoconf definition.

   Fortunately Autoconf catches pre-`AC_INIT' expansions, and will
complain, in its own words:

     $ cat
     $ aclocal-1.4
     $ autoconf
     ./aclocal.m4:17: error: m4_defn: undefined macro: _m4_divert_diversion
     actypes.m4:289: AM_TYPE_PTRDIFF_T is expanded from...
     ./aclocal.m4:17: the top level

   Future versions of Automake will simply no longer define most of
these macros, and will properly quote the names of the remaining macros.
But you don't have to wait for it to happen to do the right thing right
now: do not depend upon macros from Automake as it is simply not its job
to provide macros (but the one it requires by itself):

     $ cat
     $ rm aclocal.m4
     $ autoupdate
     autoupdate: `' is updated
     $ cat
     $ aclocal-1.4
     $ autoconf

reply via email to

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