Line 0
Link Here
|
|
|
1 |
From 8d072483ffff3a4e752c35811fb562f61d206f68 Mon Sep 17 00:00:00 2001 |
2 |
From: Adam Williamson <awilliam@redhat.com> |
3 |
Date: Fri, 22 Apr 2016 14:54:09 -0700 |
4 |
Subject: [PATCH] handle new freerdp pkgconfig name |
5 |
|
6 |
freerdp has now changed its pkgconfig name to 'freerdp2' - |
7 |
https://github.com/FreeRDP/FreeRDP/commit/6fa36081 . Assuming |
8 |
we can build against both 1 and 2, we should handle both names. |
9 |
--- configure.ac.orig 2016-09-20 06:02:32 UTC |
10 |
+++ configure.ac |
11 |
@@ -59,6 +59,7 @@ AM_CONDITIONAL([VINAGRE_ENABLE_SSH], [te |
12 |
|
13 |
# Whether to enable support for RDP. |
14 |
RDP_DEPS="freerdp x11" |
15 |
+RDP_2_DEPS="freerdp2 x11" |
16 |
AC_ARG_ENABLE([rdp], |
17 |
[AS_HELP_STRING([--disable-rdp], |
18 |
[Disable Remote Desktop Protocol (RDP) support])]) |
19 |
@@ -68,7 +69,10 @@ AS_IF([test "x$enable_rdp" != "xno"], |
20 |
[have_rdp=yes |
21 |
PKG_CHECK_EXISTS(freerdp >= 1.1, |
22 |
[AC_DEFINE([HAVE_FREERDP_1_1], [1], [FreeRDP is of version 1.1 or newer])], [])], |
23 |
- [have_rdp=no])], |
24 |
+ [PKG_CHECK_EXISTS([$RDP_2_DEPS], |
25 |
+ [have_rdp=yes |
26 |
+ RDP_DEPS=$RDP_2_DEPS |
27 |
+ AC_DEFINE([HAVE_FREERDP_1_1], [1], [FreeRDP is of version 1.1 or newer])], [have_rdp=no])])], |
28 |
[have_rdp=no]) |
29 |
|
30 |
AS_IF([test "x$have_rdp" = "xyes"], |