|
From: | Paolo Bonzini |
Subject: | Re: AC_PROG_CC fails when target C library is missing fopen |
Date: | Fri, 07 Aug 2009 16:52:32 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 08/07/2009 01:51 PM, Paolo Bonzini wrote:
On 08/07/2009 01:27 PM, Adam Sampson wrote:On Fri, Aug 07, 2009 at 12:58:13PM +0200, Paolo Bonzini wrote:Can you suggest a replacement? Would atoi be okay?atoi certainly exists in avr-libc, so that'd be OK for me. (Doesn't it use fopen because it wants to see if the file exists afterwards, though?)Yes, I was thinking of "return atoi(argv[1]);" and check the exit status.
Alternatively, can you try this patch? It would only work for a cross-compilation setting, forcing you to specify --host=FOO or appropriate LDFLAGS if compiling natively on a platform lacking printf. Is this at all possible for RTEMS?
Paolo
autoconf-fopen.patch
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |