glue in working autoconf logic

This commit is contained in:
Love Hornquist Astrand
2009-11-21 22:58:59 -08:00
parent 7bb7bd72ab
commit 607bae3c9e
5 changed files with 30 additions and 15 deletions

View File

@@ -1,6 +1,20 @@
AC_DEFUN([rk_LIBDISPATCH],[
AM_CONDITIONAL(LIBDISPATCH, test foo = bar)
AC_CHECK_HEADERS([dispatch/dispatch.h])
AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
[#ifdef HAVE_DISPATCH_DISPATCH_H
#include <dispatch/dispatch.h>
#endif],[0,0,0])
if test "$ac_cv_func_dispatch_async_f" = yes ; then
AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
libdispatch=yes
else
libdispatch=no
fi
AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes)
])