aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-24 23:43:21 +0200
committerMax Kellermann <max@duempel.org>2014-10-24 23:43:21 +0200
commit30dd29e251f6a9d247b2203a1e3030c4d52b106c (patch)
treea439a5bad96b3ddfd758f915967f769fc2bf1490 /m4
parent6cf1acfb4885a86c35312e160f02a6739887a8a0 (diff)
downloadmpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.tar.gz
mpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.tar.xz
mpd-30dd29e251f6a9d247b2203a1e3030c4d52b106c.zip
configure.ac: improve database dependency checks
Abort if --enable-libmpdclient or --enable-upnp are used with --disable-database, instead of ignoring the mismatch silently.
Diffstat (limited to 'm4')
-rw-r--r--m4/mpd_depends.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/mpd_depends.m4 b/m4/mpd_depends.m4
new file mode 100644
index 000000000..4898f9084
--- /dev/null
+++ b/m4/mpd_depends.m4
@@ -0,0 +1,9 @@
+AC_DEFUN([MPD_DEPENDS], [
+ if test x$$2 = xno; then
+ if test x$$1 = xauto; then
+ $1=no
+ elif test x$$1 = xyes; then
+ AC_MSG_ERROR([$3])
+ fi
+ fi
+])