From c77c61bf3fb808dd555d21ecbe46f061ad22f2bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Jan 2009 22:54:07 +0100 Subject: oggvorbis: define HAVE_OGGVORBIS when tremor is enabled When tremor (libvorbisidec) is used, HAVE_OGGVORBIS was not defined. --- NEWS | 1 + configure.ac | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index acef45b09..30dec9980 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ MPD 0.14.1 - not yet released * decoders: - mp4: support the writer/composer tag - id3: strip leading and trailing whitespace from ID3 tags + - oggvorbis: fix tremor support * audio outputs: - jack: allocate default port names (fixes a crash) * update: diff --git a/configure.ac b/configure.ac index 1380dde4b..ff4c1457c 100644 --- a/configure.ac +++ b/configure.ac @@ -866,7 +866,9 @@ if test x$use_tremor = xyes; then CFLAGS="$CFLAGS $TREMOR_CFLAGS" LIBS="$LIBS $TREMOR_LIBS" AC_CHECK_LIB(vorbisidec,ov_read,enable_oggvorbis=yes,enable_oggvorbis=no;AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support])) - if test x$enable_oggvorbis = xno; then + if test x$enable_oggvorbis = xyes; then + AC_DEFINE(HAVE_OGGVORBIS, 1, [Define for Ogg Vorbis support]), + else CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi -- cgit v1.2.3