configure.ac: use AC_CHECK_FUNC for Tremor check

Don't imply the library's name is "vorbisidec"; use whatever we found
inside TREMOR_LIBS.
This commit is contained in:
Max Kellermann 2014-12-09 20:35:11 +01:00
parent 184557bfed
commit 5ea8950a13

View File

@ -1021,7 +1021,7 @@ if test x$enable_tremor = xyes; then
fi fi
MPD_WITH_LIBRARY([TREMOR], MPD_WITH_LIBRARY([TREMOR],
[AC_CHECK_LIB(vorbisidec,ov_read,,enable_tremor=no; [AC_CHECK_FUNC([ov_read],, enable_tremor=no;
AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))]) AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))])
fi fi