From de3300ed89e036516349bd532d305ca2879ed33f Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 13 Jan 2020 18:17:32 -0800 Subject: [PATCH] GUACAMOLE-249: Preserve CPPFLAGS such that modifications needed for FreeRDP tests affect only FreeRDP tests. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index ef8f6619..cdd75666 100644 --- a/configure.ac +++ b/configure.ac @@ -538,6 +538,10 @@ AC_ARG_WITH([rdp], [], [with_rdp=check]) +# Preserve CPPFLAGS so it can be restored later, following the addition of +# options specific to FreeRDP tests +OLDCPPFLAGS="$CPPFLAGS" + if test "x$with_rdp" != "xno" then have_freerdp2=yes @@ -657,6 +661,9 @@ then fi +# Restore CPPFLAGS, removing FreeRDP-specific options needed for testing +CPPFLAGS="$OLDCPPFLAGS" + AM_CONDITIONAL([ENABLE_RDP], [test "x${have_freerdp2}" = "xyes"]) #