[cairo] Recent pthread mutexes addition in cairo
Albert Chin
cairo at mlists.thewrittenword.com
Fri Jul 8 17:17:09 PDT 2005
On Fri, Jul 08, 2005 at 08:07:32PM -0400, Jason Dorje Short wrote:
> Jason Dorje Short wrote:
> > Albert Chin wrote:
> >
> >>We have access to a diverse set of systems so I tried to determine
> >>what platforms would require -lpthread because of the recent addition
> >>of the pthread_mutex_* functions for cache locking:
> >
> >
> > I don't see what the purpose of this is. Simply add an
> >
> > AC_CHECK_LIB([pthread], [pthread_mutex_init], [LIBS="-lpthread"], [])
> >
> > to configure.ac and everything should be taken care of.
>
> Or more specifically this patch should do it. If pthread.h isn't
> available then -lpthread isn't checked. On my system this gives these
> results:
>
> in "configure":
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking for pthread_mutex_init in -lpthread... yes
No. You do *not* want -lpthread. You don't need it if the stubs in
libc are usable.
--
albert chin (china at thewrittenword.com)
More information about the cairo
mailing list