[PATCH] configure.in doesn't check recursive mutexes properly


Just found out that configure.in in sdl cvs doesn’t find symbol
pthread_mutexattr_setkind_np on my Debian Sarge i386. Attached patch
fixes this (someone forgot to redeclare LIBS with -lpthread).

It should also be considered to use pthread_mutexattr_settype instead of
this deprecated function.
See http://sources.redhat.com/ml/libc-hacker/2002-04/msg00023.html
and http://sources.redhat.com/ml/bug-glibc/2000-11/msg00086.html

So long
___ Obviously we do not want to leave zombies around.
/\ - W. Richard Stevens
( ^ > Thomas Krennwallner
/ \ 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B
/) http://bigfish.ull.at/~djmaecki/
-------------- next part --------------
Index: configure.in

RCS file: /home/sdlweb/libsdl.org/cvs/SDL12/configure.in,v
retrieving revision 1.99
diff -u -r1.99 configure.in
configure.in 2003/02/01 19:47:43 1.99
+++ configure.in 2003/02/13 10:45:51
@@ -1211,6 +1211,7 @@
# Do futher testing if we have pthread support…
if test x$use_pthreads = xyes; then

  •        LIBS="$LIBS $pthread_lib"
           SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
           SDL_LIBS="$SDL_LIBS $pthread_lib"

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030213/6e8b1a2b/attachment.pgp