From d5469bf4c08169f8b2d8dc136c8c350528041271 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 27 Jun 2016 14:54:20 -0400 Subject: [PATCH] Fix: remove AC_FUNC_MALLOC from configure.ac 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 Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d31f576..7341aa0 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,6 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" CC="$PTHREAD_CC" # Checks for library functions. -AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_FORK AC_CHECK_FUNCS([ \ @@ -102,6 +101,9 @@ AC_CHECK_FUNCS([ \ sysconf \ ]) +# AC_FUNC_MALLOC causes problems when cross-compiling. +#AC_FUNC_MALLOC + # Check for headers AC_HEADER_STDBOOL AC_CHECK_HEADERS([ \ -- 2.34.1