aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-15 22:24:19 +0200
committerMax Kellermann <max@duempel.org>2009-04-15 22:24:19 +0200
commit6e6917ac4e05b563eb3673a052cc973456329880 (patch)
tree1e6970094479361edb86e3764424fbfe9a598e8b /configure.ac
parent60f5150d2b585af3a939f12d0105e5ecb23d6a12 (diff)
downloadmpd-6e6917ac4e05b563eb3673a052cc973456329880.tar.gz
mpd-6e6917ac4e05b563eb3673a052cc973456329880.tar.xz
mpd-6e6917ac4e05b563eb3673a052cc973456329880.zip
configure.ac: added a real check for libsidplay2
We still can't use the pkg-config file because it requires libtool.
Diffstat (limited to '')
-rw-r--r--configure.ac17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 46e6197ab..1b07a61d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -477,8 +477,23 @@ AC_ARG_ENABLE(sidplay,
enable_sidplay=no)
if test x$enable_sidplay = xyes; then
- # we have no test yet.. we're not using pkg-config here
+ # we're not using pkg-config here
# because libsidplay2's .pc file requires libtool
+ AC_HAVE_LIBRARY(sidplay2, [found_sidplay=yes], [found_sidplay=no])
+ MPD_AUTO_PRE(sidplay, [sidplay decoder plugin],
+ [libsidplay2 not found])
+fi
+
+if test x$enable_sidplay != xno; then
+ # can't use AC_HAVE_LIBRARY here, because the dash in the
+ # library name triggers an autoconf bug
+ AC_CHECK_LIB(resid-builder, main,
+ [found_sidplay=yes], [found_sidplay=no])
+ MPD_AUTO_RESULT(sidplay, [sidplay decoder plugin],
+ [libresid-builder not found])
+fi
+
+if test x$enable_sidplay = xyes; then
AC_SUBST(SIDPLAY_LIBS,"-lsidplay2 -lresid-builder")
AC_SUBST(SIDPLAY_CFLAGS,)