Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=502387
--- Comment #4 from Erik van Pienbroek erik-fedora@vanpienbroek.nl 2009-05-26 07:24:45 EDT --- On the fedora-mingw mailing list Fridrich Strba clarified the AC_FUNC_MALLOC behaviour:
Easy!
The AC_FUNC_MALLOC and AC_FUNC_REALLOC try to execute a program to see whether malloc(0) will return a NULL pointer. If that is not the case, it will use the rpl_malloc. Since cross-compiling, binaries cannot be executed and the test fails even though the malloc and realloc are in MS C runtime. Those malloc and realloc functions are compliant in the sense of AC_FUNC_MALLOC and AC_FUNC_REALLOC test, so patching them out is safe when cross-compiling for win32.
Cheers
Fridrich