aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-objc-checks.m4
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>2000-01-21 08:12:15 +0800
committerRaja R Harinath <harinath@src.gnome.org>2000-01-21 08:12:15 +0800
commit73107b49d42b02754e6facd890c3ed16eebe0a47 (patch)
treebaceac5a4867b895ba51e6fe71e372a112390e7c /macros/gnome-objc-checks.m4
parentde8e7223eac6c40b10d2a095210d2120aa97fa55 (diff)
downloadgsoc2013-evolution-73107b49d42b02754e6facd890c3ed16eebe0a47.tar.gz
gsoc2013-evolution-73107b49d42b02754e6facd890c3ed16eebe0a47.tar.zst
gsoc2013-evolution-73107b49d42b02754e6facd890c3ed16eebe0a47.zip
Look for sched_yield in -lrt, too. Suggested by Drazen Kazar
* gnome-objc-checks.m4: Look for sched_yield in -lrt, too. Suggested by Drazen Kazar <dave@srce.hr>. svn path=/trunk/; revision=1598
Diffstat (limited to 'macros/gnome-objc-checks.m4')
-rw-r--r--macros/gnome-objc-checks.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4
index dc9691cf20..c69acb077e 100644
--- a/macros/gnome-objc-checks.m4
+++ b/macros/gnome-objc-checks.m4
@@ -14,8 +14,12 @@ dnl FIXME: extend list of possible names of ObjC compilers.
OBJC_LIBS="-lobjc $PTHREAD_LIB"
AC_CHECK_FUNC(sched_yield,,[
- AC_CHECK_LIB(posix4,sched_yield,
- OBJC_LIBS="$OBJC_LIBS -lposix4",, $OBJC_LIBS)])
+ AC_CHECK_LIB(rt,sched_yield,
+ OBJC_LIBS="$OBJC_LIBS -lrt",[
+ AC_CHECK_LIB(posix4,sched_yield,
+ OBJC_LIBS="$OBJC_LIBS -lposix4",,
+ $OBJC_LIBS)],
+ $OBJC_LIBS)])
AC_SUBST(OBJC_LIBS)
AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],