autoconf
[Top][All Lists]
Advanced

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

Re: $as_cr_alnum exported interface?


From: Ralf Wildenhues
Subject: Re: $as_cr_alnum exported interface?
Date: Wed, 12 Jan 2005 19:11:47 +0100
User-agent: Mutt/1.4.1i

* Paul Eggert wrote on Mon, Jan 10, 2005 at 07:15:46PM CET:
> Ralf Wildenhues <address@hidden> 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
 
address@hidden AS_SHELL_SANITIZE
address@hidden
+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:
+
address@hidden @var
address@hidden PATH_SEPARATOR
+If unset, set to the path separation character, @samp{:} or @samp{;}.
address@hidden as_me
+The basename of the script.
address@hidden as_unset
address@hidden, if available for this shell, @command{false} otherwise.
address@hidden as_cr_letters
+The lower-case letters.
address@hidden as_cr_LETTERS
+The upper-case letters.
address@hidden as_cr_Letters
+Both cases.
address@hidden as_cr_digits
+The digits.
address@hidden as_cr_alnum
+Both digits and letters.
address@hidden table
+
address@hidden defmac
 
 
 @c=================================================== Writing Autoconf Macros.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]