Next: Invoking aclocal, Previous: Requirements, Up: configure
Every time Automake is run it calls Autoconf to trace configure.ac. This way it can recognize the use of certain macros and tailor the generated Makefile.in appropriately. Currently recognized macros and their effects are:
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
build_triplet
,
host_triplet
and target_triplet
are introduced. See
Getting the Canonical System Type.
AC_CONFIG_AUX_DIR
If AC_CONFIG_AUX_DIR
is not given, the scripts are looked for in
their standard locations. For mdate-sh,
texinfo.tex, and ylwrap, the standard location is the
source directory corresponding to the current Makefile.am. For
the rest, the standard location is the first one of ., ..,
or ../.. (relative to the top source directory) that provides any
one of the helper scripts. See Finding `configure' Input.
Required files from AC_CONFIG_AUX_DIR
are automatically
distributed, even if there is no Makefile.am in this directory.
AC_CONFIG_LIBOBJ_DIR
AC_LIBSOURCE
(see below) in the directory specified by this
macro.
AC_CONFIG_HEADERS
AM_CONFIG_HEADER
(see Macros); this is no longer the case today.
As for AC_CONFIG_FILES
(see Requirements), parts of the
specification using shell variables will be ignored as far as
cleaning, distributing, and rebuilding is concerned.
AC_CONFIG_LINKS
As for AC_CONFIG_FILES
(see Requirements), parts of the
specification using shell variables will be ignored as far as cleaning
and distributing is concerned. (There is no rebuild rules for links.)
AC_LIBOBJ
AC_LIBSOURCE
AC_LIBSOURCES
AC_LIBSOURCE
or AC_LIBSOURCES
.
Note that the AC_LIBOBJ
macro calls AC_LIBSOURCE
. So if
an Autoconf macro is documented to call ‘AC_LIBOBJ([file])’, then
file.c will be distributed automatically by Automake. This
encompasses many macros like AC_FUNC_ALLOCA
,
AC_FUNC_MEMCMP
, AC_REPLACE_FUNCS
, and others.
By the way, direct assignments to LIBOBJS
are no longer
supported. You should always use AC_LIBOBJ
for this purpose.
See AC_LIBOBJ
vs. LIBOBJS
.
AC_PROG_RANLIB
AC_PROG_CXX
AC_PROG_OBJC
AC_PROG_F77
AC_F77_LIBRARY_LDFLAGS
AC_PROG_FC
AC_PROG_LIBTOOL
AC_PROG_YACC
YACC
in configure.ac. The former is
preferred (see Particular Program Checks).
AC_PROG_LEX
AC_REQUIRE_AUX_FILE
AC_CONFIG_AUX_DIR
above. See Finding configure Input.
AC_SUBST
If the Autoconf manual says that a macro calls AC_SUBST
for
var, or defines the output variable var then var will
be defined in each Makefile.in generated by Automake.
E.g. AC_PATH_XTRA
defines X_CFLAGS
and X_LIBS
, so
you can use these variables in any Makefile.am if
AC_PATH_XTRA
is called.
AM_C_PROTOTYPES
AM_GNU_GETTEXT
AM_GNU_GETTEXT_INTL_SUBDIR
AM_GNU_GETTEXT
macro was invoked with a first argument
of ‘external’.
AM_MAINTAINER_MODE
MAINTAINER_MODE
conditional, which you can use in your own
Makefile.am. See maintainer-mode.
m4_include
m4_include
is seldom used by configure.ac authors, but
can appear in aclocal.m4 when aclocal detects that
some required macros come from files local to your package (as opposed
to macros installed in a system-wide directory, see Invoking aclocal).