This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tweaks for autoconf 2.50


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]