[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nested [] with whitespace in misc description leads to _m4_text_wrap
From: |
Eric Blake |
Subject: |
Re: nested [] with whitespace in misc description leads to _m4_text_wrap_word errors |
Date: |
Tue, 27 Oct 2009 21:00:43 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Mike Frysinger on 10/18/2009 1:17 AM:
> some packages like to use [] in their desc and rather than use quadrigraphs,
>
> $ cat configure.ac
> AC_INIT
> AC_ARG_VAR(VAR, [[cow moo] desc])
> AC_OUTPUT
>
> $ autoconf
> configure:1210: error: possibly undefined macro: _m4_text_wrap_word
Thanks for the report. The regression came at commit b07a2b3d, when I
swapped to a more efficient whitespace mapping operator, and nothing in
the testsuite exercises it (yet). I'm still playing with it, but I'm
hoping that I can do a cleanup pass that recognizes any whitespace inside
extra [ ] during _m4_split, and skip replacing just those instances.
http://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=b07a2b3d
> if there is no white space between the [], then things actually work and the
> output is what people expect:
> AC_INIT
> AC_ARG_VAR(VAR, [[cow-moo] desc])
> AC_OUTPUT
> $ autoconf && ./configure --help | grep cow-moo
> VAR [cow-moo] desc
Correct, as is the use of quadrigraphs instead of raw [ and ].
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkrns9sACgkQ84KuGfSFAYDWsACfd86tqGwhpG35BUK60KzbwvkU
4toAn1zGYuKXozumVbp63wL1TMidBsY7
=hM3L
-----END PGP SIGNATURE-----