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
