Add Dbus to build-system
authorJulien Lavergne <julien.lavergne@gmail.com>
Wed, 2 May 2012 20:25:20 +0000 (22:25 +0200)
committerJulien Lavergne <julien.lavergne@gmail.com>
Wed, 2 May 2012 20:25:20 +0000 (22:25 +0200)
configure.ac
src/Makefile.am

index 4abad8a..8ad53fd 100644 (file)
@@ -68,6 +68,10 @@ PKG_CHECK_MODULES(GTK, [$gtk_modules])
 AC_SUBST(GTK_CFLAGS)
 AC_SUBST(GTK_LIBS)
 
+PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.95 dbus-glib-1 >= 0.70])
+AC_SUBST(DBUS_CFLAGS)
+AC_SUBST(DBUS_LIBS)
+
 gmodule_modules="gmodule-export-2.0"
 PKG_CHECK_MODULES(GMODULE, [$gmodule_modules])
 AC_SUBST(GMODULE_CFLAGS)
index 9057e47..21f8027 100644 (file)
@@ -37,6 +37,7 @@ lxappearance_CFLAGS = \
        $(GTK_CFLAGS) \
        $(XLIB_CFLAGS) \
        $(GMODULE_CFLAGS) \
+       $(DBUS_CFLAGS) \
        $(ADDITIONAL_FLAGS) \
        -Werror-implicit-function-declaration \
        $(NULL)
@@ -45,6 +46,7 @@ lxappearance_LDADD = \
        $(GTK_LIBS) \
        $(XLIB_LIBS) \
        $(GMODULE_LIBS) \
+       $(DBUS_LIBS) \
        $(INTLLIBS) \
        $(NULL)