[erlang-questions] Erlang support in autoconf broken

Romain Lenglet <>
Sun May 17 03:54:42 CEST 2009

There is a version 2.63b version which includes the fix, cf. 

If you don't want to install this version, and patch your local installation 
(e.g. in /usr/share/autoconf/autoconf/):

- fix the bug, by replacing "#!/bin/sh" with "[#]!/bin/sh", in erlang.m4, cf. 

- rebuild Autoconf's "frozen" archive:
cd /usr/share/autoconf/autoconf/
autom4te --language=autoconf --freeze --output=autoconf.m4f

You can't unfortunately just put the patched erlang.m4 file into your 
project's directory, since the names of macros that must be used for test 
language support (like in erlang.m4, c.m4, etc.) contain parentheses, which 
crashes aclocal when generating the configure script. So one can define those 
macros only in Autoconf's frozen file.
Those macro names are apparently better (no more parentheses) in the upcoming 
2.64 version.

Romain Lenglet

On Sunday 17 May 2009 04:40:19 Vance Shipley wrote:
> It seems that the Erlang support in autoconf no longer works.
> According to what I see here there was a regression in v2.61a
> which has been corrected in v2.64:
> http://www.nabble.com/AS_ECHO-calls-finding-their-way-into-calls-td19487768
> However v2.63 is the latest release.  :(
> I've been trying to patch around this with no success yet.
> Has anyone got it working?

More information about the erlang-questions mailing list