bug-gnulib
[Top][All Lists]
Advanced

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

Re: AC_COMPILE_IFELSE


From: Eric Blake
Subject: Re: AC_COMPILE_IFELSE
Date: Thu, 06 Mar 2008 06:57:45 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 3/6/2008 6:49 AM:
| When I write a piece of C code (INCLUDES or FUNCTION-BODY), in 99% of
the cases
| I want brackets to denote array dimensions or array indices. I don't
want them
| to expand to nothing.
|
| You say that AC_TRY_COMPILE has the wrong quoting rules. But I am using the
| macro for 15 years, and as a user I assert you that it has the right quoting
| rules that I want.

It's the wrong quoting rules, insofar that you cannot use an m4 macro to
expand to a list of files to be included.  And that's exactly what
AC_INCLUDES_DEFAULT is meant to be.

| As a user, I want the quoting rules of AC_TRY_COMPILE. I don't want array
| expressions to expand into nonsense by default. And I want the ability to
| copy&paste code snippets from a .m4 file to a .c file and back.

That's still possible - put your [[ and ]] on the outside bounds of the
snippet (and not on each [ and ] within the snippet).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHz/hY84KuGfSFAYARArZpAKCybLOxLfOl1RJaI+Z3duJOybq6RACggbJ9
wZtl92VQA+HN9n1aJK7CXQA=
=b5O6
-----END PGP SIGNATURE-----




reply via email to

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