AC_FUNC_MALLOC fails cross-compile builds and is
only used to detect non-standard glibc behavior where
malloc(0) does not return a null pointer.
We don't depend on that behavior since we would have
to ship a compat implementation of malloc() for this
macro to be of any use.
Keep it commented because autoscan will report it
as missing and it might get re-introduced.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
AC_TYPE_SIZE_T
# Checks for library functions.
-AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf])
+# AC_FUNC_MALLOC causes problems when cross-compiling.
+#AC_FUNC_MALLOC
+
# Find arch type
AS_CASE([$host_cpu],
[i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],