From 58fae8ff58b973737326882ca1f5a410a70f1f03 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 27 Feb 2018 16:19:51 +0100 Subject: [PATCH] libbtrfsutils: add python-devel detection Use pkg-config to detect python devel. Signed-off-by: David Sterba --- Makefile.inc.in | 2 ++ configure.ac | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile.inc.in b/Makefile.inc.in index 159d38ed..52410f69 100644 --- a/Makefile.inc.in +++ b/Makefile.inc.in @@ -16,12 +16,14 @@ BTRFSCONVERT_REISERFS = @BTRFSCONVERT_REISERFS@ BTRFSRESTORE_ZSTD = @BTRFSRESTORE_ZSTD@ PYTHON_BINDINGS = @PYTHON_BINDINGS@ PYTHON = @PYTHON@ +PYTHON_CFLAGS = @PYTHON_CFLAGS@ SUBST_CFLAGS = @CFLAGS@ SUBST_LDFLAGS = @LDFLAGS@ LIBS_BASE = @UUID_LIBS@ @BLKID_LIBS@ -L. -pthread LIBS_COMP = @ZLIB_LIBS@ @LZO2_LIBS@ @ZSTD_LIBS@ +LIBS_PYTHON = @PYTHON_LIBS@ STATIC_LIBS_BASE = @UUID_LIBS_STATIC@ @BLKID_LIBS_STATIC@ -L. -pthread STATIC_LIBS_COMP = @ZLIB_LIBS_STATIC@ @LZO2_LIBS_STATIC@ @ZSTD_LIBS_STATIC@ diff --git a/configure.ac b/configure.ac index 17dcb3a4..dcc98ea7 100644 --- a/configure.ac +++ b/configure.ac @@ -219,6 +219,7 @@ AC_ARG_ENABLE([python], if test "x$enable_python" = xyes; then AM_PATH_PYTHON([3.4]) + PKG_CHECK_MODULES(PYTHON, [python3]) fi AS_IF([test "x$enable_python" = xyes], [PYTHON_BINDINGS=1], [PYTHON_BINDINGS=0])