]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
LIBOBJ.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Mon, 5 Dec 2011 15:56:13 +0000 (15:56 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Mon, 5 Dec 2011 15:56:13 +0000 (15:56 +0000)
acx_nlnetlabs.m4

index 116c1a04a717d523a16fdf20fb946ac3565b01ac..279b20fc29d471a74f99dffb45d229b38505a828 100644 (file)
@@ -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.])] )
 ])