[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quoting bug in definition of AC_DEFINE and AC_DEFINE_UNQUOTED
From: |
Eric Blake |
Subject: |
Re: quoting bug in definition of AC_DEFINE and AC_DEFINE_UNQUOTED |
Date: |
Mon, 08 Jun 2009 06:09:35 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 6/1/2009 4:07 AM:
> Hi,
>
> The first argument passed to AC_DEFINE or AC_DEFINE_UNQUOTED is subject
> to m4 macro expansion.
My feeling is that it should be, for consistency with most other
single-quoted arguments.
>
> So it appears that the unexpanded argument is put into config.h.in
Thus, that looks like a bug in autoheader.
> but
> 1) the expanded argument is used in confdefs.h at configure time,
> 2) the expanded argument is used in config.status (which has no
> effect because the config.h.in contains the unexpanded argument).
The fact that it has no effect is a knock-on effect that autoheader didn't
put the right thing in config.h.in in the first place.
> Should the unexpanded argument be used everywhere, or should the expanded
> argument be used everywhere?
>
> This is a long-standing bug. It exists at least since autoconf 2.53.
Thanks for the report. I'll see if I can find a way to make autoheader
also do the expansion (it tends to be more simplistic in how it parses,
because it is intentionally bypassing a lot of autoconf's complexities).
- --
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
iEYEARECAAYFAkos/38ACgkQ84KuGfSFAYA86ACePzkBtM1ebaV5LAYcOx5aou5e
qNwAnj+A9U7rpu5JdjrSp/BwHHkUA2XT
=dAks
-----END PGP SIGNATURE-----