From: Wouter Wijngaards Date: Mon, 5 Dec 2011 15:56:13 +0000 (+0000) Subject: LIBOBJ. X-Git-Tag: release-1.6.12~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba14d4693e7a30e69bcd8f38772b97f303d38e5f;p=thirdparty%2Fldns.git LIBOBJ. --- diff --git a/acx_nlnetlabs.m4 b/acx_nlnetlabs.m4 index 116c1a04..279b20fc 100644 --- a/acx_nlnetlabs.m4 +++ b/acx_nlnetlabs.m4 @@ -1070,9 +1070,12 @@ char *malloc (); ]], [ if(malloc(0) != 0) return 1;]) ], [AC_MSG_RESULT([no]) + AC_LIBOBJ(malloc) AC_DEFINE_UNQUOTED([malloc], [rpl_malloc_$1], [Define if replacement function should be used.])] , - [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_MALLOC], 1, [If have GNU libc compatible malloc])], [AC_MSG_RESULT([no (crosscompile)]) + AC_LIBOBJ(malloc) AC_DEFINE_UNQUOTED([malloc], [rpl_malloc_$1], [Define if replacement function should be used.])] ) ])