autoconf-patches
[Top][All Lists]
Advanced

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

Re: AC_DEFUN_ONCE semantics


From: Eric Blake
Subject: Re: AC_DEFUN_ONCE semantics
Date: Mon, 26 Jan 2009 18:53:12 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666

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

According to Eric Blake on 1/26/2009 2:06 PM:
> 
> AC_DEFUN_ONCE([foo], [bar])
> AS_IF([:], [foo])
> 
> Before the patch, foo was expanded inside the conditional; after the patch, 
> foo 
> is hoisted and expanded before the conditional.  Yes, hopefully this is a 
> small 
> incompatibility; but hopefully it only results in longer execution time in 
> the 
> case where the shell condition used to skip the processing of foo.

On the other hand, the manual already said that inside the body of an
AC_DEFUN'd macro (such as AS_IF), you should use AC_REQUIRE([foo]), never
direct foo.  So if you were already obeying the manual, you should never
run into this particular change in semantics.

- --
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

iEYEARECAAYFAkl+aQgACgkQ84KuGfSFAYB2jgCgvzAM3b91x9PcT1Vq6tgEYENA
rRIAoJwsgg5SGhpwL3uJLJO03FSqf2iE
=0vRh
-----END PGP SIGNATURE-----




reply via email to

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