summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2012-03-23 02:27:26 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2012-03-23 02:27:26 -0700
commit249e21037b02da01782a8c5d9801f7cd6e94be89 (patch)
tree65e94c8a9d38682524c2d1a1aec9dbd06e4461ed
parent7dd87bbf6043503d63ac8a31867e9fa5fcd59c51 (diff)
configure.ac: Add a check for libdispatch
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 090e3b2..bcb58fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,10 @@ AC_PROG_INSTALL
# Checks for libraries.
PKG_CHECK_MODULES(XCB, xcb-damage xcb-composite xcb-event xcb-xtest xcb-image xcb-keysyms xcb-icccm xcb-atom)
+AC_CHECK_FUNC(dispatch_async,
+ AC_DEFINE([HAVE_LIBDISPATCH], 1, [Define to 1 if you have the libdispatch (GCD) available])
+ [])
+
AC_ARG_ENABLE(xtoq, AS_HELP_STRING([--enable-xtoq], [Build XtoQ.app for OS X (default: auto)]), [XTOQ=$enableval], [XTOQ=auto])
AC_MSG_CHECKING([if we should build XtoQ.app])
if test "x$XTOQ" = "xauto" ; then