From f44a0550123be92245943d832df64134c5fd6241 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Tue, 27 Feb 2018 12:42:38 -0800 Subject: [PATCH] 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 Signed-off-by: David Sterba --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dcc98ea7..af13a959 100644 --- a/configure.ac +++ b/configure.ac @@ -219,7 +219,7 @@ AC_ARG_ENABLE([python], if test "x$enable_python" = xyes; then AM_PATH_PYTHON([3.4]) - PKG_CHECK_MODULES(PYTHON, [python3]) + PKG_CHECK_MODULES(PYTHON, [python-${PYTHON_VERSION}]) fi AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])