Commit 1ad8036e authored by Zoltan Gyarmati's avatar Zoltan Gyarmati Committed by Thomas Petazzoni
Browse files

python: add patch to make ossaudiodev module optional



This module causes some build failures in certain setups and is not
very useful.

Signed-off-by: default avatarZoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent bb60ad9b
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
From 30351d9b41a03c43d627d52d46e49ab91bfe342d Mon Sep 17 00:00:00 2001
From: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Date: Thu, 8 Jan 2015 11:41:40 +0100
Subject: [PATCH 1/1] Add an option to disable the ossaudiodev module

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index e8cb52a..579e05b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2717,6 +2717,12 @@ if test "$CURSES" = "no"; then
    DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
 fi
 
+AC_ARG_ENABLE(ossaudiodev,
+       AS_HELP_STRING([--disable-ossaudiodev], [disable OSSAUDIODEV]),
+       [ if test "$enableval" = "no"; then
+            DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ossaudiodev"
+         fi])
+
 AC_SUBST(PYDOC)
 
 AC_ARG_ENABLE(pydoc,
-- 
2.1.0