Up to Autoconf 2.13, the replacement of functions was triggered via the
LIBOBJS. Since Autoconf 2.50, the macro
AC_LIBOBJ should be used instead (see Generic Functions).
Starting at Autoconf 2.53, the use of
LIBOBJS is an error.
This change is mandated by the unification of the GNU Build System
components. In particular, the various fragile techniques used to parse
a configure.ac are all replaced with the use of traces. As a
consequence, any action must be traceable, which obsoletes critical
variable assignments. Fortunately,
LIBOBJS was the only problem,
and it can even be handled gracefully (read, “without your having to
There were two typical uses of
As for function replacement, the fix is immediate: use
LIBOBJS: asking for a replacement
function, and adjusting
LIBOBJS for Automake and/or Libtool.
AC_LIBOBJ. For instance:
should be replaced with:
When used with Automake 1.10 or newer, a suitable value for
LIBOBJDIR is set so that the
can be referenced from any Makefile.am. Even without Automake,
LIBOBJDIR to be set correctly enables
LTLIBOBJS in another directory.
LIBOJBDIR feature is experimental.