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"],