aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2016-08-05 18:32:17 +0200
committerMarc Schink <swo-dev@marcschink.de>2016-08-06 12:53:40 +0200
commitd633db4a9017827a19317d2e2f6ea333dcb8718d (patch)
tree4d716aefb569c18ff081afcb2a12740db8e12544
parent688c3224752c443f9963e7f6d53a226ce1c0cb47 (diff)
Add support for Python 3.x
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 58b3ba8..7b61c65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,8 +77,12 @@ AC_CHECK_PROGS([SWIG], [swig swig3.0 swig2.0])
AM_PATH_PYTHON([2.7], [HAVE_PYTHON="yes"], [HAVE_PYTHON="no"])
# Check for Python development files.
-PKG_CHECK_MODULES([python27], [python-2.7 >= 2.7],
- [HAVE_PYTHON_DEV="yes"], [HAVE_PYTHON_DEV="no"])
+AC_MSG_CHECKING([for Python development files])
+
+AS_IF([test -x "$(command -v $PYTHON-config)"], [HAVE_PYTHON_DEV="yes"],
+ [HAVE_PYTHON_DEV="no"])
+
+AC_MSG_RESULT([$HAVE_PYTHON_DEV])
# Check for Python setuptools.
AX_PYTHON_MODULE([setuptools])