aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2008-10-18 18:34:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-18 18:34:00 +0200
commit7487f9810c8b84c613c72db622457b163f67f890 (patch)
tree48c6046f683ca0af1c798156d259d027b9d55869
parent52123c1de8540bc8e1577cd0306a240ab230d35d (diff)
downloadmpd-7487f9810c8b84c613c72db622457b163f67f890.tar.gz
mpd-7487f9810c8b84c613c72db622457b163f67f890.tar.xz
mpd-7487f9810c8b84c613c72db622457b163f67f890.zip
configure.ac: use libmikmod-config instead of pkg-config
[mk: use AC_SUBST instead of appending to MPD_CFLAGS / MPD_LIBS]
Diffstat (limited to '')
-rw-r--r--configure.ac11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 4ab992009..2a2552972 100644
--- a/configure.ac
+++ b/configure.ac
@@ -671,9 +671,14 @@ fi
AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes)
if test x$enable_mod = xyes; then
- PKG_CHECK_MODULES(LIBMIKMOD, [libmikmod],
- AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support]),
- enable_mod=no)
+ AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config)
+ if test x$LIBMIKMOD_CONFIG != x ; then
+ AC_SUBST(LIBMIKMOD_CFLAGS, `$LIBMIKMOD_CONFIG --cflags`)
+ AC_SUBST(LIBMIKMOD_LIBS, `$LIBMIKMOD_CONFIG --libs`)
+ AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support])
+ else
+ enable_mod=no
+ fi
fi
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)