From c436e29b8991549f27fda44573c3c8d1c425094c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Jul 2016 18:10:40 +0200 Subject: [PATCH] Makefile.am: check HAVE_OGG for OggDecoder.cxx Fixes build failure when Vorbis is disabled, but FLAC is enabled (HAVE_XIPH is true, but HAVE_OGG is false). --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f6546c36f..2cf8e0574 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1032,9 +1032,13 @@ libdecoder_a_SOURCES += \ src/decoder/plugins/FaadDecoderPlugin.cxx src/decoder/plugins/FaadDecoderPlugin.hxx endif +if HAVE_OGG +libdecoder_a_SOURCES += \ + src/decoder/plugins/OggDecoder.cxx src/decoder/plugins/OggDecoder.hxx +endif + if HAVE_XIPH libdecoder_a_SOURCES += \ - src/decoder/plugins/OggDecoder.cxx src/decoder/plugins/OggDecoder.hxx \ src/decoder/plugins/OggCodec.cxx src/decoder/plugins/OggCodec.hxx endif