]> sigrok.org Git - libsigrok.git/commitdiff
configure.ac: Look for python-2.7.pc as well when making bindings
authorMarcus Comstedt <redacted>
Fri, 15 Aug 2014 13:55:22 +0000 (15:55 +0200)
committerMarcus Comstedt <redacted>
Sun, 17 Aug 2014 10:58:39 +0000 (12:58 +0200)
configure.ac

index 38e021a49dde514e004b556f537ff3395c1f33ff..dce87872c34710f68826087dc8b7358b1f044959 100644 (file)
@@ -200,7 +200,10 @@ fi
 PKG_CHECK_MODULES([python], [python >= 2.7],
         [CXXFLAGS="$CXXFLAGS $python_CFLAGS";
         CXXLIBS="$CXXLIBS $python_LIBS"],
-               [BINDINGS_PYTHON="no"; python_msg="Python headers required"])
+[PKG_CHECK_MODULES([python27], [python-2.7 >= 2.7],
+        [CXXFLAGS="$CXXFLAGS $python27_CFLAGS";
+        CXXLIBS="$CXXLIBS $python27_LIBS"],
+               [BINDINGS_PYTHON="no"; python_msg="Python headers required"])])
 
 # The Python bindings need the setuptools Python module.
 m4_ifdef([AX_PYTHON_MODULE], [AX_PYTHON_MODULE([setuptools])],