From b9824e99d706b7d021b438da16ded7df59b20f8c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Jan 2014 09:18:08 +0000 Subject: [PATCH] add configure test for libogg to fix #3278 --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd159115e..b74bb267f 100644 --- a/configure.ac +++ b/configure.ac @@ -408,6 +408,20 @@ then AC_DEFINE([HAVE_OPUS],[1],[Have libopus library]) fi +# libogg +AC_CHECK_LIB(ogg, ogg_stream_flush_fill, + [AC_CHECK_HEADERS([ogg/ogg.h], + AM_CONDITIONAL(HAVE_OGG, true) + ogg=1 + AC_DEFINE(HAVE_OGG,1,[Have ogg]), + AM_CONDITIONAL(HAVE_OGG, false) + ogg=0 + AC_DEFINE(HAVE_OGG,0,[lacking ogg]))], + AM_CONDITIONAL(HAVE_OGG, false) + ogg=0) + + + gst=0 PKG_CHECK_MODULES( [GST], @@ -421,7 +435,7 @@ PKG_CHECK_MODULES( ]) # Pulse Audio -if test "x$pulse" != "x1" -o "x$opus" != "x1" +if test "x$pulse" != "x1" -o "x$opus" != "x1" -o "x$ogg" != "x1" then if test "x$gst" != "x1" -o "x$opus" != "x1" then -- 2.25.1