configure.ac: fix linker failure when libvorbis/libogg are static

Link libvorbisfile first, followed to libvorbis and finally libogg.
This order is necessary because libvorbisfile depends on libvorbis.
This commit is contained in:
Max Kellermann 2014-02-18 18:39:19 +01:00
parent 5d87a274a5
commit 7fee85c80a
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.18.9 (not yet released) ver 0.18.9 (not yet released)
* decoder
- vorbis: fix linker failure when libvorbis/libogg are static
* encoder * encoder
- vorbis: fix another linker failure - vorbis: fix another linker failure

View File

@ -1023,7 +1023,7 @@ if test x$enable_tremor = xyes; then
fi fi
fi fi
MPD_AUTO_PKG(vorbis, VORBIS, [vorbis vorbisfile ogg], MPD_AUTO_PKG(vorbis, VORBIS, [vorbisfile vorbis ogg],
[Ogg Vorbis decoder], [libvorbis not found]) [Ogg Vorbis decoder], [libvorbis not found])
if test x$enable_vorbis = xyes; then if test x$enable_vorbis = xyes; then
AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support]) AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support])