[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf 2.63b: wrong macro expansion order
From: |
Eric Blake |
Subject: |
Re: autoconf 2.63b: wrong macro expansion order |
Date: |
Sat, 04 Apr 2009 08:45:22 -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 Andreas Schwab on 4/4/2009 5:02 AM:
> With the following input autoconf 2.63b expands macros out of order:
>
> $ cat configure.ac
> AC_INIT(configure.ac)
> AC_DEFUN([FOO], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])])])
> AC_DEFUN([BAR], [AC_PROG_CC
> FOO])
> BAR
> AC_OUTPUT
> $ autoconf
> configure.ac:5: warning: AC_REQUIRE: `AC_PROG_CC' was expanded before it was
> required
>
> This is a regression from 2.63. When I remove the m4_expand_once calls
> from AC_PROG_CC then I get at least correct output, albeit duplicated.
I'm looking into it now. So you changed the two lines:
m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
in AC_PROG_CC and things improved? Did you just delete the m4_expand_once
and do a direct call to those two macros, or did you delete the entire line?
Meanwhile, does it fix things to change the definition of BAR to be:
AC_DEFUN([BAR], [AC_REQUIRE([AC_PROG_CC])
FOO])
- --
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
iEYEARECAAYFAknXcoIACgkQ84KuGfSFAYDk3QCcCYPHUVNl9S8/82gbXj6NG/eB
y/QAoJhwmy2rJxPtk1kahoRfwl++wpLw
=JkuH
-----END PGP SIGNATURE-----