blob: adda8fe8561432c42e35c4fc92e9894d1ff42d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- a/configure.ac
+++ b/configure.ac
@@ -2731,7 +2731,14 @@
# Check Bluetooth SBC codec for RTP Player
# git://git.kernel.org/pub/scm/bluetooth/sbc.git
-PKG_CHECK_MODULES(SBC, sbc >= 1.0, [have_sbc=yes], [have_sbc=no])
+AC_ARG_WITH(sbc,
+ AC_HELP_STRING( [--with-sbc],
+ [add support for playing SBC]),
+ [if test "x$withval" = "xyes"; then
+ PKG_CHECK_MODULES(SBC, sbc >= 1.0, [have_sbc=yes], [have_sbc=no])
+ else
+ have_sbc=no
+ fi])
if (test "${have_sbc}" = "yes"); then
AC_DEFINE(HAVE_SBC, 1, [Define to support playing SBC by standalone BlueZ SBC library])
CFLAGS="$CFLAGS $(pkg-config sbc --cflags)"
|