mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-22 00:37:06 +00:00
configure: Disable abidb on python version < 3.9
When running on EL8, I am seeing a number of issues in the abidb-related tests. As I haven't tested abidb on EL8, I am disabling it on those systems for now. * configure.ac: Disable abidb on systems that have python version less than 3.9. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
75a4548369
commit
734eb84c4f
13
configure.ac
13
configure.ac
@ -890,7 +890,18 @@ if test x$PYTHON3_INTERPRETER != xno -a x$ENABLE_ABIDB != xno; then
|
||||
[FOUND_ALL_PYTHON_MODULES=yes],
|
||||
[FOUND_ALL_PYTHON_MODULES=no])
|
||||
|
||||
if test x$FOUND_ALL_PYTHON_MODULES = xno; then
|
||||
$PYTHON3_INTERPRETER -c "import sys; sys.exit(0 if sys.version_info >= (3, 9) else 1)"
|
||||
if test $? -ne 0; then
|
||||
AC_MSG_NOTICE([Python 3 version 3.9 or higher is required for abidb])
|
||||
AC_MSG_WARN([disabling abidb as a result])
|
||||
ENABLE_ABIDB=no
|
||||
else
|
||||
AC_MSG_NOTICE([Found Python 3 version at 3.9 or higher. Great for abidb!])
|
||||
fi
|
||||
|
||||
if test x$ENABLE_ABIDB = xno; then
|
||||
pass
|
||||
elif test x$ENABLE_ABIDB != xno -a x$FOUND_ALL_PYTHON_MODULES = xno; then
|
||||
AC_MSG_NOTICE([missing python modules: $MISSING_PYTHON_MODULES])
|
||||
AC_MSG_WARN([disabling abidb as a result])
|
||||
ENABLE_ABIDB=no
|
||||
|
Loading…
Reference in New Issue
Block a user