Mercurial > audlegacy-plugins
changeset 1233:51f63dd24b9b
Make DBus support optional.
author | nenolod@tiamat.local |
---|---|
date | Wed, 11 Jul 2007 05:36:57 -0500 |
parents | 574d0cc96a39 |
children | ecfc5141c77f |
files | configure.ac |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Jul 11 04:35:57 2007 +0300 +++ b/configure.ac Wed Jul 11 05:36:57 2007 -0500 @@ -160,11 +160,16 @@ [AC_MSG_ERROR([Cannot find pango >= 1.8.0])] ) -PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], - [ADD_PC_REQUIRES([dbus-1 >= 0.60 dbus-glib-1 >= 0.60]) - AC_DEFINE(USE_DBUS, 1, [Define if D-Bus support enabled])], - [AC_MSG_ERROR([Cannot find dbus-glib >= 0.60])] -]) +AC_ARG_ENABLE(dbus, + [ --enable-dbus enable DBus support (default=yes)], + enable_dbus=$enableval, enable_dbus=yes) +if test "x$enable_dbus" == "xyes"; then + PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], + [ADD_PC_REQUIRES([dbus-1 >= 0.60 dbus-glib-1 >= 0.60]) + AC_DEFINE(USE_DBUS, 1, [Define if D-Bus support enabled])], + [AC_MSG_ERROR([Cannot find dbus-glib >= 0.60])] + ]) +efi PKG_CHECK_MODULES(MOWGLI, [libmowgli >= 0.2.0], [ADD_PC_REQUIRES([libmowgli >= 0.2.0])],