|
From: | Wojtek Kaniewski |
Subject: | Re: [avr-libc-dev] Are there any autoconf/automake experts around? |
Date: | Tue, 16 Aug 2005 00:49:15 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6 (X11/20050716) |
Joerg Wunsch wrote:
With the new setup, it seems automake insists on have a "C compiler that can create executables", no matter what I'm trying. Of course, on a virgin system, avr-gcc cannot create an "executable" in automake's opinion, as there is no library (yet). All this must somehow happen inside the single call to AM_INIT_AUTOMAKE... I have yet to find out how to disable that check. Documentation on this, well, seems to be a bit sparse...
There is an undocumented macro AC_NO_EXECUTABLES which turns off the behavior you're talking about when placed before AC_PROG_CC. Unfortunately it can and probably will disappear someday.
The other approach is to add CFLAGS="-c" before and CFLAGS="" after AC_PROG_CC, to make autoconf think that it links an executable, when in fact it doesn't. But that's just an ugly hack.
Regards, Wojtek (autoconf 2.59 user)
[Prev in Thread] | Current Thread | [Next in Thread] |