]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Programming in M4sh): Document
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Feb 2006 18:46:04 +0000 (18:46 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Feb 2006 18:46:04 +0000 (18:46 +0000)
AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
(AS_BOURNE_COMPATIBLE): ..this.
(_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.

ChangeLog
doc/autoconf.texi
lib/m4sugar/m4sh.m4

index d5866167f36fb355d890039b7b8f0f8c6b57143b..78d7b972585ad636c6e1ff07ae059157413c97bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-02-13 Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+       and Paul Eggert  <eggert@cs.ucla.edu>
+
+       * doc/autoconf.texi (Programming in M4sh): Document
+       AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
+
+2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
+       (AS_BOURNE_COMPATIBLE): ..this.
+       (_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
+
 2006-02-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/install.texi (Defining Variables): Tighten up the
index 8d6a08fe7bf0f5894b3a29dee90d344a5b31962d..306ecf7daf12046ec38cdede56f74a8cf73d8e8d 100644 (file)
@@ -8992,6 +8992,14 @@ For the time being, it is not mature enough to be widely used.
 M4sh provides portable alternatives for some common shell constructs
 that unfortunately are not portable in practice.
 
+@defmac AS_BOURNE_COMPATIBLE
+@asindex{BOURNE_COMPATIBLE}
+Set up the shell to be more compatible with the Bourne shell as
+standardized by Posix, if possible.  This may involve setting
+environment variables, or setting options, or similar
+implementation-specific actions.
+@end defmac
+
 @defmac AS_DIRNAME (@var{file-name})
 @asindex{DIRNAME}
 Return the directory portion of @var{file-name}, using the algorithm
@@ -9018,6 +9026,15 @@ even though Posix is unclear whether @samp{mkdir -p} should
 succeed in that case.
 @end defmac
 
+@defmac AS_SHELL_SANITIZE
+@asindex{SHELL_SANITIZE}
+Initialize the shell suitably for @code{configure} scripts.  This has
+the effect of @code{AS_BOURNE_COMPATIBLE}, and sets some other
+environment variables for predictable results from configuration tests.
+For example, it sets @env{LC_ALL} to change to the default C locale.
+@xref{Special Shell Variables}.
+@end defmac
+
 @defmac AS_TR_CPP (@var{expression})
 @asindex{TR_CPP}
 Transform @var{expression} into a valid right-hand side for a C @code{#define}.
index e93a2ef81a3b1e39aa0ec1c552cc7b4881136ae4..c3cd7074a347c21ac54cb3786e36242853b93bf0 100644 (file)
@@ -157,10 +157,10 @@ $2
 }])])])
 
 
-# _AS_BOURNE_COMPATIBLE
-# ---------------------
+# AS_BOURNE_COMPATIBLE
+# --------------------
 # Try to be as Bourne and/or POSIX as possible.
-m4_define([_AS_BOURNE_COMPATIBLE],
+m4_define([AS_BOURNE_COMPATIBLE],
 [# Be Bourne compatible
 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   emulate sh
@@ -184,7 +184,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
 m4_define([_AS_RUN],
 [m4_ifval([$2],
 [{ $2 <<\_ASEOF
-_AS_BOURNE_COMPATIBLE
+AS_BOURNE_COMPATIBLE
 $1
 _ASEOF
 }],
@@ -319,7 +319,7 @@ m4_defun([AS_SHELL_SANITIZE],
 ## M4sh Initialization.  ##
 ## --------------------- ##
 
-_AS_BOURNE_COMPATIBLE
+AS_BOURNE_COMPATIBLE
 
 # PATH needs CR
 _AS_CR_PREPARE