aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-pthread-check.m4
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-02-16 07:13:49 +0800
committerRaja R Harinath <harinath@src.gnome.org>1998-02-16 07:13:49 +0800
commit75b309856071124362b06d2c77f09141a8caa619 (patch)
tree88cf415183334b6e40fc2dd3c1a5ced7e3c5b4a8 /macros/gnome-pthread-check.m4
parenteaaef2717d7ab8c4d6ba24150add836c05ca6d78 (diff)
downloadgsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.gz
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.zst
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.zip
Add `gnome-pthread-check.m4'. New file. Moved pthread check from
* Makefile.am (MACROS): Add `gnome-pthread-check.m4'. * gnome-pthread-check.m4: New file. Moved pthread check from gnome-x-checks.m4 to here. * gnome-objc-checks.m4: Use `gnome-pthread-check'. (OBJC_LIBS): New config var. * gnome-x-checks.m4: Add `AC_DEFINE(HAVE_LIBSM)' if `-lSM' is already part of `$x_libs'. Move pthread check to new file. - Hari svn path=/trunk/; revision=37
Diffstat (limited to 'macros/gnome-pthread-check.m4')
-rw-r--r--macros/gnome-pthread-check.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/gnome-pthread-check.m4 b/macros/gnome-pthread-check.m4
new file mode 100644
index 0000000000..d7fec3fb41
--- /dev/null
+++ b/macros/gnome-pthread-check.m4
@@ -0,0 +1,7 @@
+AC_DEFUN([GNOME_PTHREAD_CHECK],[
+ 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([GNOME_PTHREAD_CHECK])
+])