Re: $as_cr_alnum exported interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Paul Eggert wrote on Mon, Jan 10, 2005 at 07:15:46PM CET:
> Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> writes:
> 
> > In http://lists.gnu.org/archive/html/libtool-patches/2005-01/msg00024.html,
> > I proposed a patch against Libtool which makes use of $as_cr_alnum
> > after calling AS_SHELL_SANITIZE (which isn't mentioned in autoconf.texi
> > either, btw).
> >
> > Can we do this?  Is it exported interface, and if not: could it be made
> > to be so?
> 
> It's not exported now, since it's not documented.  It could be made
> exported, I suppose; perhaps you could propose a clean patch to
> Autoconf?

Here's a first try.  One thing I don't like about it is the fact that
the generated info file loses the capitalization information.  Another
might be that Autoconf does not want to lock in to exporting all these
variables from this one macro -- maybe rather add something like this
and document it as providing the variables?

# AS_CR_VARIABLES
# ---------------
# Define useful character sets
m4_defun([AS_CR_VARIABLES],
[AS_REQUIRE([_AS_CR_PREPARE])dnl
])

Regards,
Ralf

	* doc/autoconf.texi (Programming in M4sh): Document
	AS_SHELL_SANITIZE and most of the variables it sets.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.862
diff -u -r1.862 autoconf.texi
--- doc/autoconf.texi	5 Jan 2005 07:53:52 -0000	1.862
+++ doc/autoconf.texi	12 Jan 2005 18:02:05 -0000
@@ -8892,6 +8892,32 @@
 @var{file} is absolute etc.).
 @end defmac
 
+@defmac AS_SHELL_SANITIZE
+@asindex{SHELL_SANITIZE}
+Set shell and environment into a sane state.  Among other things,
+enable the shell to be (more) Bourne shell-compatible, prevent
+surprises due to localization, and set a number of variables:
+
+@table @var
+@item PATH_SEPARATOR
+If unset, set to the path separation character, @samp{:} or @samp{;}.
+@item as_me
+The basename of the script.
+@item as_unset
+@command{unset}, if available for this shell, @command{false} otherwise.
+@item as_cr_letters
+The lower-case letters.
+@item as_cr_LETTERS
+The upper-case letters.
+@item as_cr_Letters
+Both cases.
+@item as_cr_digits
+The digits.
+@item as_cr_alnum
+Both digits and letters.
+@end table
+
+@end defmac
 
 
 @c=================================================== Writing Autoconf Macros.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux