1 --- a/build_tools/menuselect-deps.in
2 +++ b/build_tools/menuselect-deps.in
3 @@ -45,6 +45,7 @@ NEON29=@PBX_NEON29@
5 OPENH323=@PBX_OPENH323@
7 +OPUSFILE=@PBX_OPUSFILE@
13 @@ -468,6 +468,7 @@ AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
14 AST_EXT_LIB_SETUP([OGG], [OGG], [ogg])
15 AST_EXT_LIB_SETUP([OPENR2], [MFR2], [openr2])
16 AST_EXT_LIB_SETUP([OPUS], [Opus], [opus])
17 +AST_EXT_LIB_SETUP([OPUSFILE], [Opusfile], [opusfile])
18 AST_EXT_LIB_SETUP([OSPTK], [OSP Toolkit], [osptk])
19 AST_EXT_LIB_SETUP([OSS], [Open Sound System], [oss])
20 AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
21 @@ -2293,6 +2294,13 @@ AST_EXT_LIB_CHECK([SS7], [ss7], [ss7_set_isup_timer], [libss7.h])
22 AST_EXT_LIB_CHECK([OPENR2], [openr2], [openr2_chan_new], [openr2.h])
24 AST_EXT_LIB_CHECK([OPUS], [opus], [opus_encoder_create], [opus/opus.h])
25 +# opusfile.h includes <opus_multistream.h> so we need to make sure that
26 +# either $OPUS_INCLUDE or /usr/include/opus is added to the search path.
27 +__opus_include=${OPUS_INCLUDE}
28 +if test -z "$__opus_include" -o x"$__opus_include" = x" " ; then
29 + __opus_include=-I/usr/include/opus
31 +AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include])
33 if test "${USE_PWLIB}" != "no"; then
34 if test -n "${PWLIB_DIR}"; then
37 @@ -223,6 +223,9 @@ OGG_LIB=@OGG_LIB@
38 OPUS_INCLUDE=@OPUS_INCLUDE@
41 +OPUSFILE_INCLUDE=@OPUSFILE_INCLUDE@
42 +OPUSFILE_LIB=@OPUSFILE_LIB@
44 OSPTK_INCLUDE=@OSPTK_INCLUDE@