bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_PROG_CC fails when target C library is missing fopen


From: Paolo Bonzini
Subject: Re: AC_PROG_CC fails when target C library is missing fopen
Date: Tue, 11 Aug 2009 00:27:18 +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/11/2009 12:11 AM, Ralf Wildenhues wrote:
I don't see in this discussion where the main argument to switch to
using fopen is addressed:
<http://thread.gmane.org/gmane.comp.sysutils.autoconf.patches/6656>
IOW, how do you prevent AC_COMPUTE_INT and friends from getting you
wrong answers on your system (if you happen to have a simulator around)?

In my patch I use an empty source code file to determine the default file name. Then I use one with fopen to determine if the user is cross-compiling; this would fail for RTEMS so that the preprocessor-only AC_COMPUTE_INT is used.

Paolo




reply via email to

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