From 585beebf3e85f25242dfaf89deb1862022a49116 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 10 Nov 2012 17:53:08 -0800 Subject: [PATCH] do not build xrdpvr unless --enable-xrdpvr is used --- Makefile.am | 8 +++++++- configure.ac | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 134afce4..5193171f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,12 @@ else FREERDPDIR = endif +if XRDP_XRDPVR +XRDPVRDIR = xrdpvr +else +XRDPVRDIR = +endif + SUBDIRS = \ common \ vnc \ @@ -21,4 +27,4 @@ SUBDIRS = \ instfiles \ genkeymap \ xrdpapi \ - xrdpvr + $(XRDPVRDIR) diff --git a/configure.ac b/configure.ac index 610b7e19..6dd4052e 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,10 @@ AC_ARG_ENABLE(fuse, AS_HELP_STRING([--enable-fuse], [Build fuse(clipboard file / drive redir) (default: no)]), [fuse=true], [fuse=false]) AM_CONDITIONAL(XRDP_FUSE, [test x$fuse = xtrue]) +AC_ARG_ENABLE(xrdpvr, AS_HELP_STRING([--enable-xrdpvr], + [Build xrdpvr module (default: no)]), + [xrdpvr=true], [xrdpvr=false]) +AM_CONDITIONAL(XRDP_XRDPVR, [test x$xrdpvr = xtrue]) AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"]) @@ -122,7 +126,7 @@ AC_CONFIG_FILES([Makefile instfiles/pam.d/Makefile genkeymap/Makefile xrdpapi/Makefile - xrdpvr/Makefile + xrdpvr/Makefile ]) # fontdump/Makefile # xrdp/cursors/Makefile