gnucash/macros/gnome-pthread-check.m4
Dave Peticolas 2b3a4ff53f Remove Makefile.in's from CVS repository.
Add and use gnome autoconf macros.
Fix lots of new compiler warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2842 57a11ea4-9604-0410-9ed3-97b8803252fd
2000-09-13 22:33:15 +00:00

17 lines
405 B
Plaintext

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])
])