diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-31 04:43:49 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-31 04:43:49 +0200 |
commit | 1b6c7812c0c74e6fa73d4dad6af80feda63f5dca (patch) | |
tree | 0de6fe82dca6b107564718773889dcd522700b84 | |
parent | 3542ae76bf0cf8bbdfa73739ba92b0b2e32eaf35 (diff) | |
download | kdbusnotification-1b6c7812c0c74e6fa73d4dad6af80feda63f5dca.tar.gz kdbusnotification-1b6c7812c0c74e6fa73d4dad6af80feda63f5dca.zip |
Fix missing DBUS version macros
-rw-r--r-- | configure.in.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in index 9be21cb..b27783e 100644 --- a/configure.in.in +++ b/configure.in.in @@ -39,6 +39,21 @@ CXXFLAGS="$CXXFLAGS -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST" AC_SUBST(DBUS_INCS) AC_SUBST(DBUS_LIBS) + +########### Check the D-BUS version + + AC_MSG_CHECKING([dbus version]) + DBUS_VERSION=`$PKG_CONFIG --modversion dbus-1` + DBUS_MAJOR_VER=`echo $DBUS_VERSION | cut -d. -f 1` + DBUS_MINOR_VER=`echo $DBUS_VERSION | cut -d. -f 2` + DBUS_MICRO_VER=`echo $DBUS_VERSION | cut -d. -f 3` + + AC_MSG_RESULT($DBUS_VERSION) + AC_DEFINE_UNQUOTED(DBUS_MAJOR_VER, $DBUS_MAJOR_VER, [D-BUS major version.]) + AC_DEFINE_UNQUOTED(DBUS_MINOR_VER, $DBUS_MINOR_VER, [D-BUS minor version.]) + AC_DEFINE_UNQUOTED(DBUS_MICRO_VER, $DBUS_MICRO_VER, [D-BUS micro version.]) + + ########### Check for GTK stuff AC_GLIB_2 AC_GTK_2 |