mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
libapparmor: force library configuration to search for python3
libapparmor and the pyton tools now require python3 but on systems where python2 is the default the build will fail unless the PYTHON= env var is set to the systems python3. Instead just force autoconf to search for python3 as the python version to use. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -42,7 +42,7 @@ AC_ARG_WITH(python,
|
||||
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
|
||||
if test "$with_python" = "yes"; then
|
||||
test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling python bindings])
|
||||
AC_PATH_PROG(PYTHON, python)
|
||||
AC_PATH_PROG(PYTHON, python3)
|
||||
test -z "$PYTHON" && AC_MSG_ERROR([python is required when enabling python bindings])
|
||||
sinclude(m4/ac_python_devel.m4)
|
||||
AC_PYTHON_DEVEL
|
||||
|
Reference in New Issue
Block a user