Compiling mhash-0.9.9.9 on platforms (like AIX) without GNU libc compatible malloc leads to undefined symbol rpl_malloc when linking the in-mhash executables drver, frag_test, rest_test, hmac_test, keygen_test.
Reason is that configure.in still contains AC_FUNC_MALLOC, detecting need to "#define malloc rpl_malloc", while mhash does not provide a rpl_malloc implementation.
As the only use of malloc() in lib/stdfns.c does not rely on GNU libc compatible malloc actually, there is no need to check for one.
The workaround for now is to set ac_cv_func_malloc_0_nonnull=yes environment variable for configure, but attached patch is to drop the check from configure.in and configure (the latter is to be regenerated).
Thank you!
And for the stdlib.h check dropped from configure: This is still done earlier.