configure.ac: Add check for libdispatch when building for darwin

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston 2011-04-21 15:51:32 -07:00
parent 3960115dbc
commit ca7b9e6c81
2 changed files with 10 additions and 3 deletions

View File

@ -737,6 +737,10 @@ case $host_os in
fi fi
fi fi
AC_CHECK_FUNC(dispatch_async,
AC_DEFINE([HAVE_LIBDISPATCH], 1, [Define to 1 if you have the libdispatch (GCD) available]),
[])
if test "x$XQUARTZ" = xyes ; then if test "x$XQUARTZ" = xyes ; then
XQUARTZ=yes XQUARTZ=yes
XVFB=no XVFB=no

View File

@ -136,6 +136,9 @@
/* Define to 1 if you have the `m' library (-lm). */ /* Define to 1 if you have the `m' library (-lm). */
#undef HAVE_LIBM #undef HAVE_LIBM
/* Define to 1 if you have the libdispatch (GCD) available */
#undef HAVE_LIBDISPATCH
/* Define to 1 if you have the `link' function. */ /* Define to 1 if you have the `link' function. */
#undef HAVE_LINK #undef HAVE_LINK