X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=70084aa479fa4550f1a77ef870ad871107942698;hb=8d858ef399ef70a2c9efb391242e8c8be70e2109;hp=bd56713359b21bcf0ae044a9dd4cc8e802515b49;hpb=ffd47fa767f69c0b534037a6e067534d7d2345c9;p=evince.git diff --git a/configure.ac b/configure.ac index bd567133..70084aa4 100644 --- a/configure.ac +++ b/configure.ac @@ -59,8 +59,12 @@ AC_MSG_RESULT([$enable_dbus]) if test "x$enable_dbus" = "xyes" ; then AC_DEFINE([ENABLE_DBUS],[1],[Define if DBUS support is enabled]) - AC_DEFINE([ENABLE_METADATA],[1],[Define if metadata support is enabled]) + AC_DEFINE([ENABLE_METADATA],[1],[Define if metadata support is enabled]) PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED]) + + DBUS_VERSION=`$PKG_CONFIG --modversion dbus-glib-1 | sed 's/0.\([[0-9]]*\)/\1/'` + AC_DEFINE_UNQUOTED(DBUS_VERSION, $DBUS_VERSION, [DBUS version.]) + AM_CONDITIONAL([DBUS_TOOL_NO_PREFIX], [test "x$DBUS_VERSION" = "x33"]) fi AM_CONDITIONAL([ENABLE_DBUS], [test "x$enable_dbus" = "xyes"])