From 6ecb883bb1b549ca92417a6c66a5f6358f527df2 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 10 Sep 2009 20:16:46 -0600 Subject: [PATCH] Document that AS_INIT is automatically used. * doc/autoconf.texi (Initialization Macros) : Add words to clarify that only bare-bones scripts need a direct AS_INIT. Suggested by Reuben Thomas. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ doc/autoconf.texi | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e585f73..9ea4ed66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-09-10 Eric Blake + Document that AS_INIT is automatically used. + * doc/autoconf.texi (Initialization Macros) : Add words + to clarify that only bare-bones scripts need a direct AS_INIT. + Suggested by Reuben Thomas. + Clarify portability pitfall of test. * doc/autoconf.texi (Limitations of Builtins) : Give more reasons why -a and -o are not portable. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index a43c6142..4203cd0f 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -12949,7 +12949,10 @@ generated from, and code to sanitize the environment for the rest of the script. Among other initializations, this sets @env{SHELL} to the shell chosen to run the script (@pxref{CONFIG_SHELL}), and @env{LC_ALL} to ensure the C locale. Finally, it changes the current diversion to -@code{BODY}. +@code{BODY}. @code{AS_INIT} is called automatically by @code{AC_INIT} +and @code{AT_INIT}, so shell code in @file{configure}, +@file{config.status}, and @file{testsuite} all benefit from a sanitized +shell environment. @end defmac @defmac AS_INIT_GENERATED (@var{file}, @ovar{comment}) -- 2.11.4.GIT