aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac13
-rw-r--r--libindicator/Makefile.am7
2 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 70ef98b..fc7fcab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,19 @@ AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
##############################
+# Dependencies
+##############################
+
+GLIB_REQUIRED_VERSION=2.18
+DBUS_REQUIRED_VERSION=0.76
+
+PKG_CHECK_MODULES(LIBINDICATOR, glib-2.0 >= $GLIB_REQUIRED_VERSION
+ dbus-glib-1 >= $DBUS_REQUIRED_VERSION)
+
+AC_SUBST(LIBINDICATOR_CFLAGS)
+AC_SUBST(LIBINDICATOR_LIBS)
+
+##############################
# Custom Junk
##############################
diff --git a/libindicator/Makefile.am b/libindicator/Makefile.am
index 29b7bb5..db45f3c 100644
--- a/libindicator/Makefile.am
+++ b/libindicator/Makefile.am
@@ -17,6 +17,13 @@ libindicator_la_SOURCES = \
$(indicator_headers) \
indicator-object.c
+libindicator_la_CFLAGS = \
+ $(LIBINDICATOR_CFLAGS) \
+ -Wall -Werror
+
+libindicator_la_LIBADD = \
+ $(LIBINDICATOR_LIBS)
+
pkgconfig_DATA = indicator.pc
pkgconfigdir = $(libdir)/pkgconfig