summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2014-01-17 15:34:14 +0000
committerLRN <lrn1986@gmail.com>2014-01-17 15:34:14 +0000
commit7ec0be46fc1365527c57d4781f420b34eeb01b97 (patch)
tree6a92a454d965b2e1f118f60b83d09fa28196430f /configure.ac
parentbb9e3a0bf156a0fab99d36ee62286cb1b7c85c36 (diff)
Check for libopus to be sufficiently new
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7aea4d12e..cd159115e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -398,7 +398,11 @@ fi
# check for libopus(audio) library
opus=0
AC_CHECK_LIB(opus,opus_decode_float,
- [AC_CHECK_HEADER([opus/opus.h],opus=1)])
+ [AC_CHECK_HEADER([opus/opus.h],
+ [AC_CHECK_DECL([OPUS_SET_GAIN],[opus=1],[],[[#include <opus/opus.h>]]
+ )]
+ )]
+)
if test "$opus" = 1
then
AC_DEFINE([HAVE_OPUS],[1],[Have libopus library])