]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
And LIBOBJ. release-1.4.14rc1
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 15:55:46 +0000 (15:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 15:55:46 +0000 (15:55 +0000)
git-svn-id: file:///svn/unbound/trunk@2567 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_nlnetlabs.m4
config.h.in
configure

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.])] )
 ])
 
index ac721b1280b2798109a82828c5d4861e0f44030d..63538a692153146ef5a0cdf52b0f50af0a302b73 100644 (file)
 /* Define to 1 if you have the <login_cap.h> header file. */
 #undef HAVE_LOGIN_CAP_H
 
+/* If have GNU libc compatible malloc */
+#undef HAVE_MALLOC
+
 /* Define to 1 if you have the `memmove' function. */
 #undef HAVE_MEMMOVE
 
index 172c828ff267c92d171f79e0dbdf709a99ae250e..e232d37d10be95f1127a262506aeced77cdfaf22 100755 (executable)
--- a/configure
+++ b/configure
@@ -14787,6 +14787,12 @@ $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
        if test "$cross_compiling" = yes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
 $as_echo "no (crosscompile)" >&6; }
+       case " $LIBOBJS " in
+  *" malloc.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
+ ;;
+esac
+
 
 cat >>confdefs.h <<_ACEOF
 #define malloc rpl_malloc_unbound
@@ -14813,6 +14819,12 @@ _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
+       case " $LIBOBJS " in
+  *" malloc.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
+ ;;
+esac
+
 
 cat >>confdefs.h <<_ACEOF
 #define malloc rpl_malloc_unbound
@@ -14821,6 +14833,9 @@ _ACEOF
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
+
+$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
+
 fi
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   conftest.$ac_objext conftest.beam conftest.$ac_ext