mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-29 15:54:48 -05:00
build: Fix problem of building Python bindings
If one specify "--with-python=yes" but no python-devel package is installed, we ignore it with just a notice message, which doesn't give clear guide to user.
This commit is contained in:
+2
-4
@@ -1917,15 +1917,13 @@ if test "$with_python" != "no" ; then
|
|||||||
then
|
then
|
||||||
PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
PYTHON_INCLUDES=-I/usr/include/python$PYTHON_VERSION
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE([Could not find python$PYTHON_VERSION/Python.h, disabling bindings])
|
AC_MSG_ERROR([You must install python-devel to build Python bindings])
|
||||||
with_python=no
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE([Could not find python interpreter, disabling bindings])
|
AC_MSG_ERROR([You must install python to build Python bindings])
|
||||||
with_python=no
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE([Could not find python in $with_python, disabling bindings])
|
AC_MSG_NOTICE([Could not find python in $with_python, disabling bindings])
|
||||||
|
|||||||
Reference in New Issue
Block a user