mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 10:12:20 +00:00
configure.ac: Make the id3tag and mad checks check for both a header and the appropriate library if the pkg-config is...
Original commit message from CVS: * configure.ac: Make the id3tag and mad checks check for both a header and the appropriate library if the pkg-config is missing. (Closes #331842) Split the id3tag and mad checks into 2 pieces. Sometime soon I might do the same for the plugins themselves.
This commit is contained in:
parent
6438094695
commit
2c348dfdc5
2 changed files with 36 additions and 12 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2006-02-27 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
Make the id3tag and mad checks check for both a header and the
|
||||||
|
appropriate library if the pkg-config is missing. (Closes #331842)
|
||||||
|
Split the id3tag and mad checks into 2 pieces. Sometime soon I might
|
||||||
|
do the same for the plugins themselves.
|
||||||
|
|
||||||
2006-02-27 Luca Ognibene <luogni at tin dot it>
|
2006-02-27 Luca Ognibene <luogni at tin dot it>
|
||||||
|
|
||||||
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
36
configure.ac
36
configure.ac
|
@ -330,22 +330,38 @@ int main (int argc, char *argv[])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl *** mad ***
|
dnl *** id3tag from the MAD project ***
|
||||||
dnl FIXME: we could use header checks here as well IMO
|
translit(dnm, m, l) AM_CONDITIONAL(USE_ID3TAG, true)
|
||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
|
GST_CHECK_FEATURE(ID3TAG, [id3tag reading and writing from the MAD project], id3tag, [
|
||||||
GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
|
|
||||||
dnl check with pkg-config first
|
dnl check with pkg-config first
|
||||||
PKG_CHECK_MODULES(MAD, mad >= 0.15 id3tag >= 0.15, HAVE_MAD="yes", HAVE_MAD="no")
|
PKG_CHECK_MODULES(ID3TAG, id3tag >= 0.15, HAVE_ID3TAG="yes", HAVE_ID3TAG="no")
|
||||||
if test "x$HAVE_MAD" = "xno"; then
|
if test "x$HAVE_ID3TAG" = "xno"; then
|
||||||
dnl fall back to oldskool detection
|
dnl fall back to oldskool detection
|
||||||
AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad")
|
AC_CHECK_HEADER(id3tag.h, [
|
||||||
if test "x$HAVE_MAD" = "xyes"; then
|
|
||||||
HAVE_MAD="no"
|
|
||||||
save_LIBS=$LIBS
|
save_LIBS=$LIBS
|
||||||
LIBS="-lz"
|
LIBS="-lz"
|
||||||
AC_CHECK_LIB(id3tag, id3_tag_options, HAVE_MAD="yes" MAD_LIBS="-lmad -lid3tag -lz")
|
AC_CHECK_LIB(id3tag, id3_tag_options, HAVE_ID3TAG="yes" ID3TAG_LIBS="-lid3tag -lz")
|
||||||
LIBS=$save_LIBS
|
LIBS=$save_LIBS
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
AC_SUBST(ID3TAG_LIBS)
|
||||||
|
|
||||||
|
dnl *** mad ***
|
||||||
|
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
|
||||||
|
GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
|
||||||
|
if test "x$HAVE_ID3TAG" = "xyes"; then
|
||||||
|
dnl check with pkg-config first
|
||||||
|
PKG_CHECK_MODULES(MAD, mad >= 0.15 id3tag >= 0.15, HAVE_MAD="yes", HAVE_MAD="no")
|
||||||
|
if test "x$HAVE_MAD" = "xno"; then
|
||||||
|
dnl fall back to oldskool detection
|
||||||
|
AC_CHECK_HEADER(mad.h, [
|
||||||
|
AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad $ID3TAG_LIBS")
|
||||||
|
])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
HAVE_MAD="no"
|
||||||
|
AC_MSG_WARN([libid3tag was not available, cannot build MAD MP3 decoder plugin])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
AC_SUBST(MAD_LIBS)
|
AC_SUBST(MAD_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue