error ($where,
"version mismatch. This is Automake $VERSION,\n" .
"but the definition used by this AM_INIT_AUTOMAKE\n" .
- "comes from Automake $args[1]. You should recreate\n" .
- "aclocal.m4 with aclocal and run automake again.\n",
+ "comes from Automake $args[1]. You should run\n" .
+ "autoreconf -f (or otherwise erase all old files, run\n" .
+ "aclocal to recreate aclocal.m4, and rerun automake).",
# $? = 63 is used to indicate version mismatch to missing.
exit_code => 63)
if $VERSION ne $args[1];
if (-f 'aclocal.m4')
{
error ($seen_init_automake,
- "your implementation of AM_INIT_AUTOMAKE comes from " .
- "an\nold Automake version. You should recreate " .
- "aclocal.m4\nwith aclocal and run automake again",
+ "your implementation of AM_INIT_AUTOMAKE comes from\n" .
+ "an old Automake version. You should run\n" .
+ "autoreconf -f (or otherwise erase all old files, run\n" .
+ "aclocal to recreate aclocal.m4, and rerun automake).",
# $? = 63 is used to indicate version mismatch to missing.
exit_code => 63);
}
error ($seen_init_automake,
"no proper implementation of AM_INIT_AUTOMAKE was " .
"found,\nprobably because aclocal.m4 is missing.\n" .
- "You should run aclocal to create this file, then\n" .
- "run automake again");
+ "You should run autoreconf -f (or aclocal to create\n" .
+ "this file, then rerun automake).");
}
}
}
@node aclocal Invocation
@section Auto-generating aclocal.m4
-@c This node used to be named "Invoking automake". This @anchor
+@c This node used to be named "Invoking aclocal". This @anchor
@c allows old links to still work.
@anchor{Invoking aclocal}
used, and omit from @file{aclocal.m4} all macros that are mentioned
but otherwise unexpanded (this can happen when a macro is called
conditionally). @command{autom4te} is expected to be in the
-@env{PATH}, just as @command{autoconf}. Its location can be
+@env{PATH}, just like @command{autoconf}. Its location can be
overridden using the @env{AUTOM4TE} environment variable.
+Although this section explains the details of @command{aclocal}, in
+practice it is usually simpler to run @command{autoreconf}, instead of
+worrying about the required order of the various tools
+(@pxref{autoreconf Invocation, , Using @command{autoreconf},
+autoconf, The Autoconf Manual}).
+
@menu
* aclocal Options:: Options supported by aclocal
* Macro Search Path:: How aclocal finds .m4 files
@command{libtoolize}.
Since Automake 1.6, it has been decided that running
-@command{libtoolize} was none of Automake's business. Instead, that
+@command{libtoolize} was not Automake's business. Instead, that
functionality has been moved into the @command{autoreconf} command
(@pxref{autoreconf Invocation, , Using @command{autoreconf}, autoconf,
The Autoconf Manual}). If you do not want to remember what to run and
-when, just learn the @command{autoreconf} command. Hopefully,
-replacing existing @file{bootstrap} or @file{autogen.sh} scripts by
-a call to @command{autoreconf} should also free you from any similar
+when, just remember the @command{autoreconf} command. Hopefully,
+replacing existing @file{bootstrap} or @file{autogen.sh} scripts by a
+call to @command{autoreconf} should also free you from any similar
incompatible change in the future.
@node Objects created both with libtool and without
Currently Automake provides support for Texinfo and man pages.
@menu
-* Texinfo:: Texinfo
-* Man Pages:: Man pages
+* Texinfo::
+* Man Pages::
@end menu
If you have multiple Texinfo files, and you want to use the
@file{version.texi} feature, then you have to have a separate version
file for each Texinfo file. Automake will treat any include in a
-Texinfo file that matches @file{vers*.texi} just as an automatically
+Texinfo file that matches @file{vers*.texi} just like an automatically
generated version file.
Often an Info file depends on more than one @file{.texi} file. For