summaryrefslogtreecommitdiffstats
path: root/rdp
diff options
context:
space:
mode:
authorLawrenceK <github@lklyne.co.uk>2012-12-20 09:08:14 +0000
committerLawrenceK <github@lklyne.co.uk>2012-12-20 16:21:50 +0000
commit4c189ec3b488d7fb57966cce23ceb20dfa7a4cae (patch)
treef50627256ff6d3de2ee27af525da8348b1609da9 /rdp
parentcc03ff6704f55ac570dc0b5abc7ed1407f086364 (diff)
downloadxrdp-proprietary-4c189ec3b488d7fb57966cce23ceb20dfa7a4cae.tar.gz
xrdp-proprietary-4c189ec3b488d7fb57966cce23ceb20dfa7a4cae.zip
update/fix some debug log calls and add the test of XRDP_DEBUG to make files so controlled by the autoconf option --enable-xrdpdebug
Diffstat (limited to 'rdp')
-rw-r--r--rdp/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/rdp/Makefile.am b/rdp/Makefile.am
index 6f698d29..9b519d7c 100644
--- a/rdp/Makefile.am
+++ b/rdp/Makefile.am
@@ -1,10 +1,18 @@
EXTRA_DIST = rdp.h
+EXTRA_DEFINES =
+
+if XRDP_DEBUG
+EXTRA_DEFINES += -DXRDP_DEBUG
+else
+EXTRA_DEFINES += -DXRDP_NODEBUG
+endif
AM_CFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
- -DXRDP_PID_PATH=\"${localstatedir}/run\"
+ -DXRDP_PID_PATH=\"${localstatedir}/run\" \
+ $(EXTRA_DEFINES)
INCLUDES = \
-I$(top_srcdir)/common