summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-23 17:23:17 -0800
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-11-23 17:23:17 -0800
commitd79621b25ba6784135b1a3aa51e9561fcf72fe7f (patch)
tree2bcac9be30b090c69e24ac0a5af120eb166c7523 /configure.ac
parent9b79ae49f709707e99b8487b01f9d3f102754bd3 (diff)
Apple: Apple launchd cleanup
Added --with-launchd option instead of just using __APPLE__ Fixed opening launchd fd when displayname=NULL
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e16d70d..8390c26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,6 +139,15 @@ XCB_EXTENSION(XTest, "yes")
XCB_EXTENSION(Xv, "yes")
XCB_EXTENSION(XvMC, "yes")
+AC_ARG_WITH(launchd, AS_HELP_STRING([--with-launchd], [Build with support for Apple's launchd (default: auto)]), [LAUNCHD=$withval], [LAUNCHD=auto])
+if test "x$LAUNCHD" = xauto; then
+ unset LAUNCHD
+ AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no])
+fi
+
+if test "x$LAUNCHD" = xyes ; then
+ AC_DEFINE(HAVE_LAUNCHD, 1, [launchd support available])
+fi
AC_CONFIG_FILES([
Makefile