FS-9670: just use pkg-config to locate amr libs and add debian requirements
This commit is contained in:
parent
f9fb94cca1
commit
c9452d15d0
15
configure.ac
15
configure.ac
|
@ -829,6 +829,10 @@ PKG_CHECK_MODULES([MPG123], [libmpg123 >= 1.16.0],[
|
|||
AM_CONDITIONAL([HAVE_MPG123],[true])],[
|
||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_MPG123],[false])])
|
||||
|
||||
PKG_CHECK_MODULES([AMR], [opencore-amrnb >= 0.1.0],[
|
||||
AM_CONDITIONAL([HAVE_AMR],[true])],[
|
||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AMR],[false])])
|
||||
|
||||
AC_CHECK_LIB(apr-1, apr_pool_mutex_set, use_system_apr=yes, use_system_apr=no)
|
||||
AM_CONDITIONAL([SYSTEM_APR],[test "${use_system_apr}" = "yes"])
|
||||
AC_CHECK_LIB(aprutil-1, apr_queue_pop_timeout, use_system_aprutil=yes, use_system_aprutil=no)
|
||||
|
@ -1926,17 +1930,6 @@ AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
|||
AM_CONDITIONAL(ISFREEBSD, [test `uname -s` = FreeBSD])
|
||||
AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64])
|
||||
|
||||
AC_ARG_ENABLE(amr,
|
||||
[AC_HELP_STRING([--disable-amr],[build without opencore-amrnb])],[enable_amr="$enable_amr"],[enable_amr="yes"])
|
||||
|
||||
if test x"$enable_amr" = x"yes" ; then
|
||||
PKG_CHECK_MODULES([AMR], [opencore-amrnb >= 0.1.0],[
|
||||
AM_CONDITIONAL([HAVE_AMR],[true])],[
|
||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AMR],[false])])
|
||||
else
|
||||
AM_CONDITIONAL([HAVE_AMR],[false])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_AMRWB, [ test -d ${switch_srcdir}/libs/amrwb ])
|
||||
AM_CONDITIONAL(HAVE_G723_1, [ test -d ${switch_srcdir}/libs/libg723_1 ])
|
||||
AM_CONDITIONAL(HAVE_G729, [ test -d ${switch_srcdir}/libs/libg729 ])
|
||||
|
|
|
@ -291,6 +291,7 @@ Description: mod_unimrcp
|
|||
Module: codecs/mod_amr
|
||||
Description: mod_amr
|
||||
Adds mod_amr.
|
||||
Build-Depends: libopencore-amrnb-dev
|
||||
|
||||
Module: codecs/mod_amrwb
|
||||
Description: mod_amrwb
|
||||
|
|
Loading…
Reference in New Issue