[PATCH 1/2] configure.ac: remove unneeded AC_CONFIG_MACRO_DIR([m4])

Mark Wielaard mark@klomp.org
Tue Dec 15 15:07:02 GMT 2020

On Tue, 2020-12-15 at 17:40 +0300, Dmitry V. Levin wrote:
> Makefile.am already contains "ACLOCAL_AMFLAGS = -I m4",
> that is enough for autoreconf to do the right thing.

But is that a good thing to rely on?

The autoconf manual says "be aware that future Automake releases might
start flagging ACLOCAL_AMFLAGS as obsolescent, or even remove
support for it."

And the Autotools Mythbuster says "The search path for local files, as
of version 1.13 of automake, is defined by the directories listed in
AC_CONFIG_MACRO_DIR and AC_CONFIG_MACRO_DIRS arguments. Previously, it
was common to use a variable defined in Makefile.am (ACLOCAL_AMFLAGS)
to pass extra parameters to aclocal. This behaviour is deprecated and
will soon not be supported."

So, might it not be better to keep AC_CONFIG_MACRO_DIR([m4]) and remove



More information about the Elfutils-devel mailing list