libbtrfsutil: use pkg-config detection for the right Python version

The user may have specified a different version of Python than the
python3 from their $PATH (e.g., with PYTHON=/usr/bin/python3.6).

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Omar Sandoval 2018-02-27 12:42:38 -08:00 committed by David Sterba
parent 58b5610845
commit f44a055012
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ AC_ARG_ENABLE([python],
if test "x$enable_python" = xyes; then if test "x$enable_python" = xyes; then
AM_PATH_PYTHON([3.4]) AM_PATH_PYTHON([3.4])
PKG_CHECK_MODULES(PYTHON, [python3]) PKG_CHECK_MODULES(PYTHON, [python-${PYTHON_VERSION}])
fi fi
AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0]) AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])