From c05e8a98283929fd7cd97889a96756b57ee79839 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 16 Apr 2020 11:32:25 +0200 Subject: build: Use dbus-glib only when required --- cpufreq/src/Makefile.am | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'cpufreq/src') diff --git a/cpufreq/src/Makefile.am b/cpufreq/src/Makefile.am index b9a3781c..bfa6fd48 100644 --- a/cpufreq/src/Makefile.am +++ b/cpufreq/src/Makefile.am @@ -6,9 +6,12 @@ SUBDIRS = $(selector_SUBDIR) AM_CPPFLAGS = \ -DCPUFREQ_MENU_UI_DIR=\""$(datadir)/mate/ui"\" \ - $(MATE_APPLETS4_CFLAGS) \ - $(MATEDESKTOP_CFLAGS) \ - $(DBUS_CFLAGS) + $(MATE_APPLETS4_CFLAGS) \ + $(MATEDESKTOP_CFLAGS) + +if HAVE_DBUS +AM_CPPFLAGS += $(DBUS_CFLAGS) +endif libexec_PROGRAMS = mate-cpufreq-applet @@ -35,7 +38,10 @@ mate_cpufreq_applet_CFLAGS = \ mate_cpufreq_applet_LDADD = \ $(MATE_APPLETS4_LIBS) \ $(MATEDESKTOP_LIBS) \ - $(LIBCPUFREQ_LIBS) \ - $(DBUS_LIBS) + $(LIBCPUFREQ_LIBS) + +if HAVE_DBUS +mate_cpufreq_applet_LDADD += $(DBUS_LIBS) +endif -include $(top_srcdir)/git.mk -- cgit v1.2.1