Commit b8b2ef3d authored by Avuton Olrich's avatar Avuton Olrich

configure.ac: Add libogg section

Add libogg section rather than checking for it every time it's necessary.
parent 681128de
...@@ -628,6 +628,9 @@ if test x$enable_lastfm = xyes; then ...@@ -628,6 +628,9 @@ if test x$enable_lastfm = xyes; then
fi fi
AM_CONDITIONAL(ENABLE_LASTFM, test x$enable_lastfm = xyes) AM_CONDITIONAL(ENABLE_LASTFM, test x$enable_lastfm = xyes)
dnl ---------------------------------- libogg ---------------------------------
PKG_CHECK_MODULES(OGG, [ogg], enable_ogg=yes, enable_ogg=no)
dnl ---------------------------------- libmms --------------------------------- dnl ---------------------------------- libmms ---------------------------------
MPD_AUTO_PKG(mms, MMS, [libmms >= 0.4], MPD_AUTO_PKG(mms, MMS, [libmms >= 0.4],
[libmms mms:// protocol support], [libmms not found]) [libmms mms:// protocol support], [libmms not found])
...@@ -768,9 +771,12 @@ if test x$enable_flac = xyes; then ...@@ -768,9 +771,12 @@ if test x$enable_flac = xyes; then
LIBS="$oldlibs" LIBS="$oldlibs"
if test x$enable_oggflac = xflac; then if test x$enable_oggflac = xflac; then
PKG_CHECK_MODULES(OGG, [ogg], FLAC_LIBS="${FLAC_LIBS} -logg", if test x$enable_ogg = xyes; then
enable_oggflac=yes; FLAC_LIBS="${FLAC_LIBS} -logg",
AC_MSG_WARN("FLAC has the ogg API built in, but couldn't find ogg. Disabling oggflac.")) else
enable_oggflac=yes
AC_MSG_WARN("FLAC has the ogg API built in, but couldn't find ogg. Disabling oggflac.")
fi
fi fi
fi fi
...@@ -970,9 +976,14 @@ AM_CONDITIONAL(HAVE_OGGFLAC, test x$enable_oggflac = xyes) ...@@ -970,9 +976,14 @@ AM_CONDITIONAL(HAVE_OGGFLAC, test x$enable_oggflac = xyes)
dnl -------------------------------- Ogg Vorbis ------------------------------- dnl -------------------------------- Ogg Vorbis -------------------------------
if test x$enable_tremor != xno && test x$enable_vorbis = xyes; then if test x$enable_tremor != xno && test x$enable_vorbis = xyes; then
PKG_CHECK_MODULES(VORBIS, [ogg vorbis vorbisfile], if test x$enable_ogg = xyes; then
PKG_CHECK_MODULES(VORBIS, [vorbis vorbisfile],
AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support]), AC_DEFINE(ENABLE_VORBIS_DECODER, 1, [Define for Ogg Vorbis support]),
enable_vorbis=no) enable_vorbis=no)
else
AC_MSG_WARN("Ogg not detected, could not enable Vorbis.")
enable_vorbis=no
fi
fi fi
AM_CONDITIONAL(ENABLE_VORBIS_DECODER, test x$enable_vorbis = xyes) AM_CONDITIONAL(ENABLE_VORBIS_DECODER, test x$enable_vorbis = xyes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment