From 7950a6d612a0eef6595cfd831912db592c4f5ad3 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Wed, 24 Dec 2008 03:24:23 +0100
Subject: [PATCH] configure.ac: disable the mikmod plugin by default

libmikmod seems to be unmaintained, and has several critical bugs
which make MPD crash.

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461519
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476339

Disable the plugin by default to minimize harm.  Users should
explicitly enable the mikmod decoder (--enable-mod) if they wish to
have it anyway.
---
 NEWS         | 1 +
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 9dfadb167..06851ccf4 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ ver 0.14.0 (????/??/??)
   - ffmpeg: new plugin
   - wavpack: new plugin
   - aac: stream support added
+  - mod: disabled by default due to critical bugs in all libmikmod versions
 * commands:
   - "addid" takes optional second argument to specify position
   - "idle" notifies the client when a notable change occurs
diff --git a/configure.ac b/configure.ac
index dc99e4196..091134b86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ AC_ARG_ENABLE(mod,
 	AS_HELP_STRING([--enable-mod],
 		[enable MOD support (default: disable)]),
 	enable_mod=$enableval,
-	enable_mod=yes)
+	enable_mod=no)
 
 AC_ARG_ENABLE(mpc,
 	AS_HELP_STRING([--disable-mpc],