python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / pulseaudio / 0002-webrtc-C-11-is-only-required-for-WebRTC-support.patch
blobb2c065196b2aa572a31ac6e8c1c41033e4f7b65c
1 From 7af6cbe74d48a9853b60b029d4ce38a963386138 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Sun, 3 Jul 2016 20:19:48 +0200
4 Subject: [PATCH] webrtc: C++11 is only required for WebRTC support
6 Make C++11 support optional and explicitely check for gnu++11.
8 Stop the build only if no C++11 support has been found and WebRTC
9 support has been resquested.
11 Signed-off-by: Romain Naour <romain.naour@gmail.com>
12 ---
13 configure.ac | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
16 diff --git a/configure.ac b/configure.ac
17 index 4edc8e0..fea93a9 100644
18 --- a/configure.ac
19 +++ b/configure.ac
20 @@ -84,7 +84,7 @@ AM_PROG_CC_C_O
21 # Only required if you want the WebRTC canceller -- no runtime dep on
22 # libstdc++ otherwise
23 AC_PROG_CXX
24 -AX_CXX_COMPILE_STDCXX_11
25 +AX_CXX_COMPILE_STDCXX_11([ext],[optional])
26 AC_PROG_GCC_TRADITIONAL
27 AC_USE_SYSTEM_EXTENSIONS
29 @@ -1414,6 +1414,9 @@ fi
30 AC_ARG_ENABLE([webrtc-aec],
31 AS_HELP_STRING([--enable-webrtc-aec], [Enable the optional WebRTC-based echo canceller]))
33 +AS_IF([test "x$enable_webrtc_aec" = "xyes" && test "$HAVE_CXX11" = "0"],
34 + [AC_MSG_ERROR([*** webrtc-audio-processing needs C++11 support])])
36 AS_IF([test "x$enable_webrtc_aec" != "xno"],
37 [PKG_CHECK_MODULES(WEBRTC, [ webrtc-audio-processing >= 0.2 ], [HAVE_WEBRTC=1], [HAVE_WEBRTC=0])],
38 [HAVE_WEBRTC=0])
39 --
40 2.5.5