@set EDITION 1.6
@set VERSION 1.6
-@set UPDATED September 1993
+@set UPDATED October 1993
@iftex
@finalout
whitespace-separated list @var{header-to-create} containing C
preprocessor @code{#define} statements and replace @samp{@@DEFS@@} in
generated files with @samp{-DHAVE_CONFIG_H} instead of the value of
-@code{DEFS}. @xref{Setup}, for more information on @code{AC_OUTPUT}.
+@code{DEFS}.
This macro should be called right after @code{AC_INIT}. The usual name
for @var{header-to-create} is @file{config.h}.
if you want to do argument parsing yourself; never use both.
@end defmac
-@defmac AC_OUTPUT (@r{[}@var{file}@dots{}@r{]})
+@defmac AC_OUTPUT (@r{[}@var{file}@dots{}@r{] [,}@var{extra-cmds}@r{]})
@maindex OUTPUT
Create output files (typically one or more @file{Makefile}s) and
@file{config.status}. If @code{AC_CONFIG_HEADER} has been called, also
parents of that directory). A plausible value for the argument to
@code{AC_OUTPUT} is @samp{Makefile src/Makefile man/Makefile
X/Imakefile}.
+
+If you pass @var{extra-cmds}, those commands will be inserted into
+@file{config.status} to be run after all its other processing.
@end defmac
@defmac AC_REVISION (@var{revision-info})
For example, this line in @file{configure.in}:
@example
-ifdef([AC_REVISION],AC_REVISION($Revision$),)dnl
+AC_REVISION($Revision$)dnl
@end example
@noindent
Some @code{make} variables are predefined by the Autoconf macros.
@code{AC_SUBST} is called for them automatically (@pxref{Setting
Variables}), so in your @file{Makefile.in} files you can get their
-values by enclosing their names in @samp{@@} characters
-(@pxref{Makefiles}). The variables that are defined by the general
+values by enclosing their names in @samp{@@} characters.
+@ifinfo
+@xref{Makefiles}, for more information on @samp{@@} substitutions.
+@end ifinfo
+The variables that are defined by the general
purpose Autoconf macros are:
@defvar srcdir
either by the user supplying one on the command line (@pxref{Running
configure Scripts}) or with @code{AC_PREFIX}, then it substitutes that
value in @file{Makefile}s that it creates. Wherever a @file{Makefile.in}
-contains a line like
+contains lines like
@example
prefix = /usr/local
+exec_prefix = ${prefix}
@end example
@noindent
@code{configure} substitutes the value it figured out. The word
-@samp{prefix} must not be preceded by any other characters on the line.
+@samp{prefix} or @samp{exec_prefix}
+must not be preceded by any other characters on the line.
If @code{configure} has not figured out a value for the prefix, the
value in the @file{Makefile.in} is left alone.
There can be separate installation prefixes for architecture-specific
-files and architecture-independent files @pxref{Running configure
-Scripts}). @code{configure} substitutes the word @code{exec_prefix} in
-the same way that it does @code{prefix}.
+files (@code{exec_prefix}) and architecture-independent files
+(@code{prefix}). @xref{Running configure Scripts}, for more information
+on setting them.
Autoconf @code{configure} scripts replace these two variables without
requiring them to be enclosed in @samp{@@} characters, and only if they
@set EDITION 1.6
@set VERSION 1.6
-@set UPDATED September 1993
+@set UPDATED October 1993
@iftex
@finalout
whitespace-separated list @var{header-to-create} containing C
preprocessor @code{#define} statements and replace @samp{@@DEFS@@} in
generated files with @samp{-DHAVE_CONFIG_H} instead of the value of
-@code{DEFS}. @xref{Setup}, for more information on @code{AC_OUTPUT}.
+@code{DEFS}.
This macro should be called right after @code{AC_INIT}. The usual name
for @var{header-to-create} is @file{config.h}.
if you want to do argument parsing yourself; never use both.
@end defmac
-@defmac AC_OUTPUT (@r{[}@var{file}@dots{}@r{]})
+@defmac AC_OUTPUT (@r{[}@var{file}@dots{}@r{] [,}@var{extra-cmds}@r{]})
@maindex OUTPUT
Create output files (typically one or more @file{Makefile}s) and
@file{config.status}. If @code{AC_CONFIG_HEADER} has been called, also
parents of that directory). A plausible value for the argument to
@code{AC_OUTPUT} is @samp{Makefile src/Makefile man/Makefile
X/Imakefile}.
+
+If you pass @var{extra-cmds}, those commands will be inserted into
+@file{config.status} to be run after all its other processing.
@end defmac
@defmac AC_REVISION (@var{revision-info})
For example, this line in @file{configure.in}:
@example
-ifdef([AC_REVISION],AC_REVISION($Revision$),)dnl
+AC_REVISION($Revision$)dnl
@end example
@noindent
Some @code{make} variables are predefined by the Autoconf macros.
@code{AC_SUBST} is called for them automatically (@pxref{Setting
Variables}), so in your @file{Makefile.in} files you can get their
-values by enclosing their names in @samp{@@} characters
-(@pxref{Makefiles}). The variables that are defined by the general
+values by enclosing their names in @samp{@@} characters.
+@ifinfo
+@xref{Makefiles}, for more information on @samp{@@} substitutions.
+@end ifinfo
+The variables that are defined by the general
purpose Autoconf macros are:
@defvar srcdir
either by the user supplying one on the command line (@pxref{Running
configure Scripts}) or with @code{AC_PREFIX}, then it substitutes that
value in @file{Makefile}s that it creates. Wherever a @file{Makefile.in}
-contains a line like
+contains lines like
@example
prefix = /usr/local
+exec_prefix = ${prefix}
@end example
@noindent
@code{configure} substitutes the value it figured out. The word
-@samp{prefix} must not be preceded by any other characters on the line.
+@samp{prefix} or @samp{exec_prefix}
+must not be preceded by any other characters on the line.
If @code{configure} has not figured out a value for the prefix, the
value in the @file{Makefile.in} is left alone.
There can be separate installation prefixes for architecture-specific
-files and architecture-independent files @pxref{Running configure
-Scripts}). @code{configure} substitutes the word @code{exec_prefix} in
-the same way that it does @code{prefix}.
+files (@code{exec_prefix}) and architecture-independent files
+(@code{prefix}). @xref{Running configure Scripts}, for more information
+on setting them.
Autoconf @code{configure} scripts replace these two variables without
requiring them to be enclosed in @samp{@@} characters, and only if they