diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-03 13:07:23 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-14 11:00:26 +0100 |
commit | 5ddfd9d0898629627e8ab10e65ea2e082be3af37 (patch) | |
tree | 5ea77aad18c1425d65b2dd53fab6dd60fc2d3dfe | |
parent | 25344ba7f7845654364d62bf15322b3b79465bd9 (diff) |
Cygwin/X: Don't build rootless extension code unless we need it
Only try to build rootless extension code if we really need it (i.e. mwextwm mode is enabled)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index fa454faca..ed710f022 100644 --- a/configure.ac +++ b/configure.ac @@ -1710,8 +1710,14 @@ if test "x$XWIN" = xyes; then XWIN_SERVER_NAME=XWin PKG_CHECK_MODULES([XWINMODULES],[x11 xdmcp xau xfont]) AC_DEFINE(HAS_DEVWINDOWS,1,[Cygwin has /dev/windows for signaling new win32 messages]) - AC_DEFINE(ROOTLESS,1,[Build Rootless code]) - CFLAGS="$CFLAGS -DFD_SETSIZE=256 -DROOTLESS_WORKAROUND" + + dnl if we have windowswmproto, build rootless extension for multwindowextwm mode + if test "x$WINDOWSWM" = xyes ; then + AC_DEFINE(ROOTLESS,1,[Build Rootless code]) + CFLAGS="$CFLAGS -DROOTLESS_WORKAROUND" + fi + + CFLAGS="$CFLAGS -DFD_SETSIZE=256" ;; mingw*) XWIN_SERVER_NAME=Xming |