diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-03-23 02:17:42 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-03-23 02:17:42 -0700 |
commit | 6066acaf979c91213cded80d3964583818271308 (patch) | |
tree | b1f9e787bfdc26e768b8c0d78c92e6d229471d84 | |
parent | 71e39caf079f9329ee559f6cfa34256670fb1c6a (diff) |
configure.ac: Add an --enable-xtoq option with auto detection
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | src/Makefile.am | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ffc542d..090e3b2 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,18 @@ 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_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 + case $host_os in + # darwin10 (Snow Leopard) and later is required for XtoQ + darwin1*) XTOQ=yes ;; + *) XTOQ=no ;; + esac +fi +AC_MSG_RESULT($XTOQ) +AM_CONDITIONAL(XTOQ, [test "x$XTOQ" = "xyes"]) + AC_CONFIG_FILES([Makefile include/Makefile man/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 5947c02..ed20bc9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1 +1,6 @@ -SUBDIRS = libxcwm xtoq +DIST_SUBDIRS = libxcwm xtoq +SUBDIRS = libxcwm + +if XTOQ +SUBDIRS += xtoq +endif |