diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2012-01-25 19:10:41 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2012-01-25 19:46:08 +0100 |
commit | 88ee841b9215df4a8978108a9338a1098c82ee94 (patch) | |
tree | 030f924f4b4301bdafcd1b6863e066d955df1095 /fsoaudiod/configure.ac | |
parent | 5ce7b8a691c76d392ac0760bc7581490c4fbbe44 (diff) | |
download | cornucopia-88ee841b9215df4a8978108a9338a1098c82ee94.tar.gz cornucopia-88ee841b9215df4a8978108a9338a1098c82ee94.tar.bz2 cornucopia-88ee841b9215df4a8978108a9338a1098c82ee94.zip |
fsoaudiod: configure.ac: add configurable libsamplerate dependency
This is needed because the GTA04 audio forwarding plugin
depends on libsamplerate.
Thanks to lindi on #openmoko-cdevel on the Freenode IRC servers:
Jan 25 18:53:50 <lindi-_> GNUtoo: perhaps PKG_CHECK_MODULES(LIBSAMPLERATE, [libsamplerate]) in configure.in
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Diffstat (limited to 'fsoaudiod/configure.ac')
-rw-r--r-- | fsoaudiod/configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fsoaudiod/configure.ac b/fsoaudiod/configure.ac index 50772de1..98208e83 100644 --- a/fsoaudiod/configure.ac +++ b/fsoaudiod/configure.ac @@ -94,6 +94,22 @@ fi AM_CONDITIONAL( [WANT_CMTSPEECHDATA], [test x"$cmtspeechdata" = x"yes"]) ############################################################################## +# optional feature: GSM voice call audio forwarding using libsamplerate +AC_ARG_ENABLE(samplerate, + [ --enable-samplerate Enable building the gsm voicecall plugin using libsamplerate (default=disabled)], + [samplerate=$enableval], + [samplerate="no"]) + +if test x$samplerate = "xyes"; then + PKG_CHECK_MODULES(SAMPLERATE, + [samplerate]) +AC_SUBST(SAMPLERATE_CFLAGS) +AC_SUBST(SAMPLERATE_LIBS) + +fi +AM_CONDITIONAL( [WANT_SAMPLERATE], [test x"$samplerate" = x"yes"]) + +############################################################################## # check for debugging AC_ARG_ENABLE(debug, [ --enable-debug Enable debug build (default=disabled)], @@ -159,6 +175,8 @@ echo "Configuration Options:" echo echo " gsmvoice_alsa_cmtspeechdata:.........: $cmtspeechdata" echo +echo " gsmvoice_alsa_forwarder:.............: $samplerate" +echo echo " debug build..........................: $debug" echo echo " prefix...............................: $prefix" |