dnl
dnl AC_LIB_PTHREAD
dnl
dnl (copied from aclocal.m4 distributed with obgtk-1.0.0)
dnl
AC_DEFUN(AC_LIB_PTHREAD,[
	PTHREAD_LIB=""
	AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
		[AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r")])
	AC_SUBST(PTHREAD_LIB)
	AC_PROVIDE([AC_LIB_PTHREAD])
])

