bug-autoconf
[Top][All Lists]
Advanced

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

Re: Problem with AC_REQUIRE expansion order


From: Eric Blake
Subject: Re: Problem with AC_REQUIRE expansion order
Date: Mon, 04 Aug 2008 07:01:11 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

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

According to Andreas Schwab on 6/27/2008 7:06 AM:
| When AC_USE_SYSTEM_EXTENSIONS is expanded from a macro that also expands
| AC_PROG_CC for the first time then expansion order is wrong:
|
| $ cat configure.ac
| AC_INIT
| AC_DEFUN([FOO],[
| AC_PROG_CC
| AC_USE_SYSTEM_EXTENSIONS
| ])
| FOO
| AC_OUTPUT

I'm wondering if adding an AC_REQUIRE([AC_PROG_CC]) inside
AC_USE_SYSTEM_EXTENSIONS is sufficient, since it indeed attempts a compile
run.  I'm experimenting with that idea now.

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

iEYEARECAAYFAkiW/ZcACgkQ84KuGfSFAYDtpACgsyq20SpRt7VcE/hIq+afeD6y
cpAAoLgdU5zN6omBDPX0SvJ+3DLlpuKk
=66/R
-----END PGP SIGNATURE-----




reply via email to

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