This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tweaks for autoconf 2.50
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: tweaks for autoconf 2.50
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 May 2001 03:58:50 -0300
- Cc: "Zack Weinberg" <zackw at stanford dot edu>, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010523225533.A1792@stanford.edu> <jm1ypfntb6.fsf@geoffk.org>
On May 24, 2001, Geoff Keating <geoffk@geoffk.org> wrote:
> I think you'll find that AC_PROG_CC from 2.13 doesn't work, because it
> uses AC_PROG_CC_WORKS, which requires that the compiler be able to
> link, and when you have no libc available because you had no compiler
> to build it then obviously you can't link anything.
Yep. autoconf 2.50 introduces AC_NO_EXECUTABLES to fix this very
problem. Unfortunately, it's not documented in the autoconf manual;
see aclang.m4 in autoconf 2.50.
I suggest using constructs such as:
dnl Note the ][ to prevent aclocal from looking for the macro
ifdef([A][C_NO_EXECUTABLES],
[do it the autoconf 2.50 way],
[do it the old way])
until we decide to AC_REQUIRE 2.50.
Zack, thanks for doing this. It's been in my to-do list forever :-(
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me