aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-pthread-check.m4
diff options
context:
space:
mode:
authorJames Henstridge <jamesh@src.gnome.org>2000-02-13 19:05:13 +0800
committerJames Henstridge <jamesh@src.gnome.org>2000-02-13 19:05:13 +0800
commit25faacf1396a1221114733e7a12c89d502c7212d (patch)
treed59ad965d80be87e76b3e49c86aa728a783d8726 /macros/gnome-pthread-check.m4
parent61657f8452b1c1b2829610af9d0efd30076c1798 (diff)
downloadgsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar.gz
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar.bz2
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar.lz
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar.xz
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.tar.zst
gsoc2013-evolution-25faacf1396a1221114733e7a12c89d502c7212d.zip
I am sure that kabalak didn't mean to remove gnome-common/macros :)
svn path=/trunk/; revision=1747
Diffstat (limited to 'macros/gnome-pthread-check.m4')
-rw-r--r--macros/gnome-pthread-check.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
new file mode 100644
index 0000000000..a4eb3b4890
--- /dev/null
+++ b/macros/gnome-pthread-check.m4
@@ -0,0 +1,16 @@
+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])
+])