aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-objc-checks.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-objc-checks.m4
parenteaaef2717d7ab8c4d6ba24150add836c05ca6d78 (diff)
downloadgsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.gz
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.bz2
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.lz
gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.xz
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-objc-checks.m4')
-rw-r--r--macros/gnome-objc-checks.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4
index 472e46d891..bdf38a4d91 100644
--- a/macros/gnome-objc-checks.m4
+++ b/macros/gnome-objc-checks.m4
@@ -4,12 +4,13 @@ dnl Look for an ObjC compiler.
dnl FIXME: extend list of possible names of ObjC compilers.
AC_CHECK_PROGS(OBJC, $OBJC gcc, "")
- oLIBS=$LIBS
- LIBS="$LIBS $PTHREAD_LIB"
- AC_SUBST(PTHREAD_LIB)
+ AC_REQUIRE([GNOME_PTHREAD_CHECK])
+
+ OBJC_LIBS="-lobjc $PTHREAD_LIB"
AC_CHECK_FUNC(sched_yield,,[
- AC_CHECK_LIB(posix4,sched_yield,PTHREAD_LIB="$PTHREAD_LIB -lposix4")])
- LIBS=$oLIBS
+ AC_CHECK_LIB(posix4,sched_yield,
+ OBJC_LIBS="$OBJC_LIBS -lposix4",, $OBJC_LIBS)])
+ AC_SUBST(OBJC_LIBS)
AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],
ac_cv_prog_objc_works, [
@@ -31,7 +32,7 @@ int main () {
}
EOF
- $OBJC -o conftest $LDFLAGS conftest.m -lobjc $PTHREAD_LIB 1>&AC_FD_CC 2>&1
+ $OBJC -o conftest $LDFLAGS conftest.m $OBJC_LIBS 1>&AC_FD_CC 2>&1
result=$?
rm -f conftest*