view m4/gnome-pthread-check.m4 @ 12345:f6fa5d742c76

[gaim-migrate @ 14649] so we were talking in #gaim the other day, and chat nick colors came up. I mentioned that back when sean changed the color code list, that we'd talked about maybe someday having code to generate the list of colors automatically. And datallah found the w3.org algorithm to check a given color code for visibility, so Tak wrote up some code to use that to generate a list of colors. I like it, and nwalp says to go ahead and commit it then. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 05 Dec 2005 05:08:38 +0000
parents 68b230f8da5f
children
line wrap: on
line source

dnl
dnl And better, use gthreads instead...
dnl

AC_DEFUN([GNOME_PTHREAD_CHECK],[
	PTHREAD_LIB=""
	AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
		[AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
		    [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
			[AC_CHECK_FUNC(pthread_create)]
		    )]
		)]
	)
	AC_SUBST(PTHREAD_LIB)
	AC_PROVIDE([GNOME_PTHREAD_CHECK])
])