summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-05-31 10:52:36 +0200
committerMax Kellermann <max@musicpd.org>2018-06-02 19:44:46 +0200
commit3aade670462da2e44a303b80950051627dd3f29d (patch)
treeb3219e147207fd384afbc3cef9857dd64bd44839 /configure.ac
parentdc111bbec2b7cc500c155e48dffe1775c90b8e19 (diff)
basic udisks2 support
To get udisks2 support started, this commit contains the configure.ac option and a "neighbor" plugin which shows block devices. Later, this will allow mounting removable media with a new storage plugin.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1dea3e8f2..741154d26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -632,6 +632,15 @@ dnl ---------------------------------------------------------------------------
MPD_ENABLE_AUTO_PKG(dbus, DBUS, [dbus-1], [D-Bus support], [dbus-1 not found])
+AC_ARG_ENABLE(udisks,
+ AS_HELP_STRING([--enable-udisks],
+ [support for removable media via udisks2]),,
+ [enable_udisks=auto])
+
+MPD_DEPENDS([enable_udisks], [found_dbus], [support for removable media via udisks2], [dbus-1 not found])
+MPD_AUTO(udisks, [support for removable media via udisks2], [udisks not available], [found_udisks=yes])
+MPD_DEFINE_CONDITIONAL(enable_udisks, ENABLE_UDISKS, [support for removable media via udisks2])
+
dnl ---------------------------------------------------------------------------
dnl Metadata Plugins
dnl ---------------------------------------------------------------------------
@@ -799,6 +808,9 @@ if test x$enable_neighbor_plugins = xauto; then
if test x$enable_upnp = xyes; then
enable_neighbor_plugins=yes
fi
+ if test x$enable_udisks = xyes; then
+ enable_neighbor_plugins=yes
+ fi
fi
MPD_DEFINE_CONDITIONAL(enable_neighbor_plugins, ENABLE_NEIGHBOR_PLUGINS,
@@ -1508,6 +1520,7 @@ results(libmpdclient, [libmpdclient])
results(inotify, [inotify])
results(sqlite, [SQLite])
results(dbus, [DBUS])
+results(udisks, [UDISKS])
printf '\nMetadata support:\n\t'
results(id3,[ID3])