File no-x11.patch of Package xrdp

diff --git a/Makefile.am b/Makefile.am
index 8a3bca7c..abc3f18b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -61,10 +61,8 @@ SUBDIRS = \
   xrdp \
   fontutils \
   keygen \
-  waitforx \
   docs \
   instfiles \
-  genkeymap \
   xrdpapi \
   pkgconfig \
   $(XRDPVRDIR) \
diff --git a/configure.ac b/configure.ac
index b5ec14fa..af8c7ed4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -514,24 +514,6 @@ else
 fi
 fi
 
-AC_PATH_XTRA
-if test "x$no_x" == "xyes"; then
-  AC_MSG_ERROR([please install libx11-dev or libX11-devel])
-fi
-
-save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS $X_CFLAGS"
-
-# checking for Xfixes
-AC_CHECK_HEADER([X11/extensions/Xfixes.h], [],
-  [AC_MSG_ERROR([please install libxfixes-dev or libXfixes-devel])],
-  [#include <X11/Xlib.h>])
-
-# checking for Xrandr
-AC_CHECK_HEADER([X11/extensions/Xrandr.h], [],
-  [AC_MSG_ERROR([please install libxrandr-dev or libXrandr-devel])],
-  [#include <X11/Xlib.h>])
-
 if test "x$enable_utmp" = "xyes"
 then
     AC_CHECK_HEADERS(utmp.h utmpx.h)
diff --git a/sesman/Makefile.am b/sesman/Makefile.am
index 9ddef8e8..86d61b38 100644
--- a/sesman/Makefile.am
+++ b/sesman/Makefile.am
@@ -63,7 +63,6 @@ dist_sesmansysconf_SCRIPTS = \
 SUBDIRS = \
   libsesman \
   sesexec \
-  tools \
-  chansrv
+  tools
 
 CLEANFILES = $(nodist_sesmansysconf_DATA)
diff --git a/sesman/tools/Makefile.am b/sesman/tools/Makefile.am
index 611b86ee..002a13f0 100644
--- a/sesman/tools/Makefile.am
+++ b/sesman/tools/Makefile.am
@@ -13,8 +13,7 @@ bin_PROGRAMS = \
   xrdp-dis
 
 noinst_PROGRAMS = \
-  xrdp-authtest \
-  xrdp-xcon
+  xrdp-authtest
 
 xrdp_sesrun_SOURCES = \
   sesrun.c