[PATCH] Make AS_TR_SH and AS_TR_CPP similar.

2010-07-02 Thread Eric Blake
* lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting. (_AS_TR_CPP_INDIR): Handle all polymorphic variables. * tests/m4sh.at (AS@&t...@_tr_sh and AS@&t...@_tr_cpp): New test. * NEWS: Document the fix. Reported by Bruno Haible. Signed-off-by: Eric Blake --- > I will post my patch as a re

[PATCH] Reduce startup cost of autotest.

2010-07-02 Thread Eric Blake
* lib/autotest/general.m4 (_AT_FINISH) : Rather than doing a recursive find, limit ourselves to top ChangeLog only. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake --- > I still find the ChangeLog snippet useful, but seldom see packages with > one ChangeLog per directory In fact, of the

Re: Coverage for Fortran compiler macros.

2010-07-02 Thread Eric Blake
On 06/28/2010 04:15 PM, Ralf Wildenhues wrote: >>> This patch is a test balloon really. So far tested with GCC and one >>> Intel version on GNU/Linux, and Sun suite on Solaris. It would need >>> lots more testing, but I don't have access to many Fortran compilers. >>> I wouldn't be surprised to s

[PATCH 7/7] Optimize AS_BOX.

2010-07-02 Thread Eric Blake
* lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time. (_AS_BOX_LITERAL): Use fewer forks in the common case. * doc/autoconf.texi (Common Shell Constructs) : Document the macro. * NEWS: Mention it. Signed-off-by: Eric Blake --- ChangeLog |7 +++ NEWS|4 doc/

[PATCH 3/7] Use AS_LITERAL_WORD_IF as appropriate.

2010-07-02 Thread Eric Blake
* lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro. * lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL) (AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise. * lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise. * lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise. * lib/m4sugar/m4

[PATCH 4/7] Add optional argument to AS_LITERAL_IF.

2010-07-02 Thread Eric Blake
* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro name, without using m4_cond. (_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New helpers. (AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP) (_AS_VAR_PUSHDEF): Adjust callers. * lib/autoconf/types.m4 (AC_CHECK_ALIGN

[PATCH 6/7] Use new AS_LITERAL_IF argument when appropriate.

2010-07-02 Thread Eric Blake
* lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead. (AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple references. Suggested by Bruno Haible. Signed-off-by: Eric Blake --- ChangeLog |6 ++ lib/m4sugar/m4sh.m4 |9 ++--- 2 files changed, 12 insertions(+)

[PATCH 5/7] Add tests for AS_BOX.

2010-07-02 Thread Eric Blake
* tests/m4sugar.at (m4@&t...@_text_box): New test. * tests/m4sh.at (AS@&t...@_box): Likewise. * lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma. * doc/autoconf.texi (Text processing Macros) : Document further limitations. Signed-off-by: Eric Blake --- ChangeLog |7 +++ d

[PATCH 2/7] Add AS_LITERAL_WORD_IF.

2010-07-02 Thread Eric Blake
* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting characters as non-literal, and provide way to reject space. (AS_LITERAL_WORD_IF): New macro. * doc/autoconf.texi (Polymorphic Variables) : Document new macro. Fix example to match reality. * NEWS: Document change and new macro. * te

[PATCH 0/7] AS_LITERAL_IF speedups

2010-07-02 Thread Eric Blake
I've been sitting on these patches since March, and finally had enough time to polish them off and verify that the testsuite passes after every single one of them. I know that Ralf reviewed the earlier versions and had some nits, which I have folded in to these patches. I went ahead and pushed th

[PATCH 1/7] Optimize AC_DEFINE.

2010-07-02 Thread Eric Blake
* lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of AS_LITERAL_IF. Signed-off-by: Eric Blake --- ChangeLog |6 ++ lib/autoconf/general.m4 |4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f5c879..601b169 100644

Re: [PATCH] Describe a Solaris /bin/sh bug w.r.t. for loops.

2010-07-02 Thread Stefano Lattarini
At Friday 02 July 2010, Eric Blake wrote: > Thanks for the initial work. Since both of us are already named as > authors of the patch, I didn't see the need to repeat our names in > the changelog as the reporter. Then I fixed some wording and > condensed the example from 3 down to 2 @example se

Re: [PATCH] Describe a Solaris /bin/sh bug w.r.t. for loops.

2010-07-02 Thread Eric Blake
[dropping bug-autoconf] On 07/02/2010 10:14 AM, Stefano Lattarini wrote: >> Would you care to prepare a patch? > Here it is (see attachement). I'm not sure I worded it the best way, > though, so suggestions and criticism from native speakers are very > welcome. Thanks for the initial work. Si

[PATCH] Describe a Solaris /bin/sh bug w.r.t. for loops.

2010-07-02 Thread Stefano Lattarini
At Thursday 01 July 2010, Eric Blake wrote: > On 07/01/2010 05:42 AM, Stefano Lattarini wrote: > > Hello autoconfers. > > > > Is anyone aware of the following bug of Solaris /bin/sh w.r.t. > > for loops? I couldn't find any mention of it in the Autoconf > > manual, and I think that a proper descri