Cross compiling from Linux/macOS to Windows causes AC_FUNC_MALLOC and AC_FUNC_REALLOC to fail during configure and defines malloc and realloc as rpl_malloc and rpl_realloc, which then causes linking to fail.
This fix uses AC_CHECK_FUNCS to check for malloc and realloc instead.
Cross compiling from Linux/macOS to Windows causes
AC_FUNC_MALLOC
andAC_FUNC_REALLOC
to fail during configure and defines malloc and realloc asrpl_malloc
andrpl_realloc
, which then causes linking to fail.This fix uses
AC_CHECK_FUNCS
to check formalloc
andrealloc
instead.