configure.ac: auto-detect libmad without pkg-config

The pkg-config file was added by the Debian package maintainers, and
unfortunately, the rest of the world doesn't have it.
This commit is contained in:
Max Kellermann
2011-09-01 09:22:18 +02:00
parent a1b8806422
commit 13cdc9a9f8
2 changed files with 3 additions and 1 deletions

View File

@@ -799,7 +799,8 @@ if test x$enable_gme = xyes; then
fi
dnl ---------------------------------- libmad ---------------------------------
MPD_AUTO_PKG(mad, MAD, [mad],
MPD_AUTO_PKG_LIB(mad, MAD, [mad],
mad, mad_stream_init, [-lmad], [],
[libmad MP3 decoder plugin], [libmad not found])
if test x$enable_mad = xyes; then
AC_DEFINE(HAVE_MAD, 1, [Define to use libmad])