Trying to add launchd detection to tell Xtrans

to enable launchd support; fix me later.
This commit is contained in:
Ben Byer 2007-11-14 04:26:25 -08:00 committed by Jeremy Huddleston
parent 96416bd595
commit 835de9ceae
2 changed files with 7 additions and 1 deletions

View File

@ -96,6 +96,9 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
AC_CHECK_PROG(HAVE_LAUNCHD, [launchd], [yes], [])
if test "x$HAVE_LAUNCHD" = xyes; then
AC_DEFINE(HAS_LAUNCHD, 1, [launchd support available])
fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@ -1753,7 +1756,7 @@ if test "x$XDARWIN" = xyes; then
AC_SUBST([DARWIN_LIBS])
AC_CHECK_LIB([Xplugin],[xp_init],[:])
AC_SUBST([APPLE_APPLICATIONS_DIR])
CFLAGS="${CFLAGS} -D__DARWIN__ -DDARWIN_WITH_QUARTZ -DROOTLESS_WORKAROUND"
CFLAGS="${CFLAGS} -DHAVE_LAUNCHD -D__DARWIN__ -DDARWIN_WITH_QUARTZ -DROOTLESS_WORKAROUND"
PLIST_VERSION_STRING=$PACKAGE_VERSION
AC_SUBST([PLIST_VERSION_STRING])
PLIST_VENDOR_WEB=$VENDOR_WEB

View File

@ -142,6 +142,9 @@
/* Define to 1 if you have version 2.2 (or newer) of the drm library */
#undef HAVE_LIBDRM_2_2
/* Define to 1 if launchd is available. */
#undef HAVE_LAUNCHD
/* Define to 1 if you have the `m' library (-lm). */
#undef HAVE_LIBM