summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-11-18 22:46:21 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-11-18 22:46:21 +0000
commita1448efecc00007c5b8bedf95198487f5fc5a8e8 (patch)
tree5dc83cac24e2231635b234256e061e598f3c3b01
parent3ed05407fda5ec8285f45f5440548c417e545d30 (diff)
* don't try to display dbus version when it's not installed
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1008 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e1a8981..a8284e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -352,9 +352,11 @@ AC_ARG_ENABLE(dbus,
AC_ARG_WITH(dbus-sys, AS_HELP_STRING([--with-dbus-sys=<dir>], [where D-BUS system.d directory is]))
AC_ARG_WITH(dbus-system-socket, AS_HELP_STRING([--with-dbus-system-address=<address>], [where the dbus system socket is, you probably want to put unix:path= at the start]))
+DBUS_VERSION="Not installed!"
if test "x$HAVE_DBUS" = "xyes" ; then
AC_DEFINE(HAVE_DBUS, 1, [Whether we have D-BUS or not])
+ DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion`
PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 0.34 ])
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
AC_SUBST(DBUS_CFLAGS)
@@ -730,7 +732,7 @@ echo "
localstatedir: ${localstatedir}
avahi socket: ${avahi_socket}
dbus-1 system.d dir: ${DBUS_SYS_DIR}
- dbus-1 version: `pkg-config dbus-1 --modversion`
+ dbus-1 version: ${DBUS_VERSION}
dbus-1 system socket ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}
compiler: ${CC}
cflags: ${CFLAGS}