From 81e268ee036a9faef2193d807b77108782ac0cde Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 10 Apr 2014 12:27:07 +0200 Subject: build: drop AC_FUNC_MALLOC/REALLOC Two issues with these: 1. They compile & run a test program, which won't work when cross-compiling 2. When libnftnl has just been installed and is not (yet) in linker path, the test fails since loader won't find libnftnl. In that case configure will succeed without obvious errors, but config.h re-defines malloc/realloc with rpl_ prefix, which then results in a linker error ("undefined reference to `rpl_realloc'") on 'make'. These macros are only useful to check that malloc(0) returns non-NULL and that realloc(NULL, ... works. For nftables the former is irrelevant and the latter a safe assumption, so lets just remove them. Signed-off-by: Florian Westphal --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index b91bbac1..6a5e4ce6 100644 --- a/configure.ac +++ b/configure.ac @@ -88,8 +88,6 @@ AC_TYPE_UINT32_T AC_TYPE_UINT64_T # Checks for library functions. -AC_FUNC_MALLOC -AC_FUNC_REALLOC AC_CHECK_FUNCS([memmove memset strchr strdup strerror strtoull]) AC_CONFIG_FILES([Makefile Makefile.defs Makefile.rules]) -- cgit v1.2.3