Line 0
Link Here
|
|
|
1 |
From f03dff4c416d417238dcd625a24ea85e380e599c Mon Sep 17 00:00:00 2001 |
2 |
From: Gokturk Yuksek <gokturk@binghamton.edu> |
3 |
Date: Sun, 3 Jan 2016 03:17:40 -0500 |
4 |
Subject: [PATCH 1/1] applets/clock: add missing pkgconfig flags for |
5 |
NetworkManager |
6 |
|
7 |
mate-panel-1.8 fails to compile with NetworkManager >=1.0.8 due to a |
8 |
missing include directive ('-I'). Substitute network manager CFLAGS |
9 |
and LIBS supplied by the pkgconfig macro in configure.ac and use it |
10 |
for applets/clock. |
11 |
|
12 |
Signed-off-by: Gokturk Yuksek <gokturk@binghamton.edu> |
13 |
--- |
14 |
applets/clock/Makefile.am | 2 ++ |
15 |
configure.ac | 2 ++ |
16 |
2 files changed, 4 insertions(+) |
17 |
|
18 |
diff --git a/applets/clock/Makefile.am b/applets/clock/Makefile.am |
19 |
index 950ecdd..bfb6b45 100644 |
20 |
--- a/applets/clock/Makefile.am |
21 |
+++ b/applets/clock/Makefile.am |
22 |
@@ -39,6 +39,7 @@ CLOCK_CPPFLAGS = \ |
23 |
$(AM_CPPFLAGS) \ |
24 |
$(LIBMATE_PANEL_APPLET_CFLAGS) \ |
25 |
$(CLOCK_CFLAGS) \ |
26 |
+ $(NETWORK_MANAGER_CFLAGS) \ |
27 |
-I$(srcdir)/../../libmate-panel-applet \ |
28 |
-I$(top_builddir)/libmate-panel-applet \ |
29 |
-DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ |
30 |
@@ -51,6 +52,7 @@ CLOCK_LDADD = \ |
31 |
../../libmate-panel-applet/libmate-panel-applet-4.la \ |
32 |
$(CLOCK_LIBS) \ |
33 |
$(LIBMATE_PANEL_APPLET_LIBS) \ |
34 |
+ $(NETWORK_MANAGER_LIBS) \ |
35 |
libsystem-timezone.la \ |
36 |
-lm |
37 |
|
38 |
diff --git a/configure.ac b/configure.ac |
39 |
index af5a422..6d1389e 100644 |
40 |
--- a/configure.ac |
41 |
+++ b/configure.ac |
42 |
@@ -156,6 +156,8 @@ else |
43 |
fi |
44 |
if test "x$HAVE_NETWORK_MANAGER" = "xyes" ; then |
45 |
AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Defined if NetworkManager support is enabled]) |
46 |
+ AC_SUBST(NETWORK_MANAGER_CFLAGS) |
47 |
+ AC_SUBST(NETWORK_MANAGER_LIBS) |
48 |
fi |
49 |
|
50 |
# Make it possible to compile the applets in-process |
51 |
-- |
52 |
2.4.10 |
53 |
|