From e570f13d74805824cef4fa4ea0dcf746f36cc83a Mon Sep 17 00:00:00 2001
From: Avuton Olrich <avuton@gmail.com>
Date: Sun, 16 Jul 2006 21:58:52 +0000
Subject: [PATCH] If no input plugin is supported, fail to configure. (useless
 daemon)

git-svn-id: https://svn.musicpd.org/mpd/trunk@4376 09075e82-0dd4-0310-85a5-a0d7c8717e4f
---
 configure.ac | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/configure.ac b/configure.ac
index 8b375d85a..5d9f3bdf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -722,6 +722,18 @@ else
 	echo " MOD support ...................disabled"
 fi
 
+if
+	test x$enable_mp3 = xno &&
+	test x$enable_oggvorbis = xno &&
+	test x$enable_flac = xno && 
+	test x$enable_oggflac = xno &&
+	test x$enable_audiofile = xno && 
+	test x$enable_aac = xno &&
+	test x$enable_mpc = xno &&
+	test x$enable_mod = xno; then
+	AC_MSG_ERROR("No input plugins supported!")
+fi
+
 echo ""
 echo "##########################################"
 echo ""