<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Thu, 2011-03-10 at 10:47 +0100, Julien Cristau wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#737373">> On Wed, Mar 9, 2011 at 20:19:16 -0800, Alan Coopersmith wrote:</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> > +# Memory checking support</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > +case $host_os in</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + solaris*)</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + AC_CHECK_LIB([umem], [umem_alloc],</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + [MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so UMEM_DEBUG=default'])</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + ;;</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + *bsd*|darwin*)</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1'</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + ;;</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + *) # Assume glibc</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + MALLOC_DEBUG_ENV='MALLOC_PERTURB_=255'</FONT></TT><BR>
<TT><FONT COLOR="#737373">> > + ;;</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#737373">> I think this won't work for gnu/kfreebsd. Maybe use *-gnu for the glibc</FONT></TT><BR>
<TT><FONT COLOR="#737373">> case, and put it before the *bsd* one?</FONT></TT><BR>
<TT><FONT COLOR="#737373">> </FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">Make that *-gnu* so it can handle linux-gnueabi (used on arm)...</FONT></TT><BR>
</BLOCKQUOTE>
<BR>
On my list, I also have:
<BLOCKQUOTE>
<PRE>
*dragonfly*
kfreebsd*-gnu
gnu*         for GNU/Hurd
</PRE>
</BLOCKQUOTE>
In the XORG_GNU_LIB macro under review, there is an AM_CONDITIONAL named HAVE_GLIB<BR>
which can be used in the makefile to set appropriate options. Checking by feature is<BR>
preferable to checking by host as glib may or may not be present and can be turned off<BR>
by the configure option.<BR>
<BR>
I have not had a chance to look at the debug memory env yet to see what is reusable.<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>