diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2018-05-01 21:28:34 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2018-12-31 12:37:21 +0100 |
commit | 5743fd5f31d6a2522ec7e624d162a50a43b4980a (patch) | |
tree | dfb33d5da64ed372cafc2778eff9568dd74a9b74 | |
parent | 0416d4a30ba4b81acfa9cc87cde9e0e166fc7e27 (diff) |
Make windowswm protos selectable separatly
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 028ba9f..62584f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -289,6 +289,7 @@ video_HEADERS = \ videoprotopkgconfigdir = $(datadir)/pkgconfig videoprotopkgconfig_DATA = videoproto.pc +if WINDOWSWM windowswmdir = $(includedir)/X11/extensions windowswm_HEADERS = \ include/X11/extensions/windowswm.h \ @@ -296,6 +297,7 @@ windowswm_HEADERS = \ windowswmprotopkgconfigdir = $(datadir)/pkgconfig windowswmprotopkgconfig_DATA = windowswmproto.pc +endif xprotodir = $(includedir)/X11 xproto_HEADERS = \ diff --git a/configure.ac b/configure.ac index 0234887..c8f7134 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,12 @@ AC_ARG_ENABLE(applewm, [APPLEWM=$enableval], [APPLEWM=no]) AM_CONDITIONAL(APPLEWM, [test "x$APPLEWM" = "xyes"]) +AC_ARG_ENABLE(windowswm, + AS_HELP_STRING([--enable-windowswm], + [Install windows wm protocol headers (default: false)]), + [WINDOWSWM=$enableval], [WINDOWSWM=no]) +AM_CONDITIONAL(WINDOWSWM, [test "x$WINDOWSWM" = "xyes"]) + AC_CHECK_HEADERS([sys/select.h sys/param.h sys/types.h sys/time.h]) # Handle Xpoll.h.in |