mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-26 01:40:07 -05:00
modules: smixer_python - add support for python3
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b6c760868f
commit
345843fc24
3 changed files with 241 additions and 122 deletions
12
configure.ac
12
configure.ac
|
|
@ -413,11 +413,19 @@ AC_ARG_ENABLE(mixer-pymods,
|
|||
AC_ARG_ENABLE(python,
|
||||
AS_HELP_STRING([--disable-python], [disable the python components]),
|
||||
[build_python="$enableval"], [build_python="yes"])
|
||||
|
||||
AC_ARG_ENABLE(python2,
|
||||
AS_HELP_STRING([--enable-python2], [prefer python2]),
|
||||
[build_python2="$enableval"], [build_python2="no"])
|
||||
PYTHON_LIBS=""
|
||||
PYTHON_INCLUDES=""
|
||||
if test "$build_python" = "yes" -a "$build_mixer_pymodules" = "yes"; then
|
||||
pythonlibs0=$(python3-config --libs)
|
||||
pythoninc0=$(python3-config --includes)
|
||||
pythonlibs0=
|
||||
pythoninc0=
|
||||
if test "$build_python2" != "yes"; then
|
||||
pythonlibs0=$(python3-config --libs)
|
||||
pythoninc0=$(python3-config --includes)
|
||||
fi
|
||||
if test -z "$pythonlibs0"; then
|
||||
pythonlibs0=$(python-config --libs)
|
||||
pythoninc0=$(python-config --includes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue