]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
Use AM_PATH_PYTHON macro to find Python binary.
[libsigrok.git] / configure.ac
index 0d589ee843d309182be58bcd7ccd199dc745293a..e79018f290c38f91829d7141678919c7a370aa48 100644 (file)
@@ -199,10 +199,8 @@ if test "x$HAVE_DOXYGEN" != "xyes"; then
 fi
 
 # Python is needed for the C++ bindings.
-AC_CHECK_PROG([HAVE_PYTHON], [python], [yes])
-if test "x$HAVE_PYTHON" != "xyes"; then
-       BINDINGS_CXX="no"; cxx_msg="Python required"
-fi
+AM_PATH_PYTHON([2.7], [HAVE_PYTHON="yes"],
+       [HAVE_PYTHON="no"; BINDINGS_CXX="no"; cxx_msg="Python required"])
 
 # The Python bindings need Python development files.
 PKG_CHECK_MODULES([python], [python >= 2.7],