summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:49:46 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:49:49 +0900
commit834a4dcd043de07e4b8670c47ff647f58da5f5e4 (patch)
tree83124c8c6fb305f76988f61aee231044ca5b801a /configure.ac
parentcf76ccccc8e2364c85afba6ea59645fc188c3d19 (diff)
downloadpygobject2-834a4dcd043de07e4b8670c47ff647f58da5f5e4.tar.gz
pygobject2-834a4dcd043de07e4b8670c47ff647f58da5f5e4.tar.bz2
pygobject2-834a4dcd043de07e4b8670c47ff647f58da5f5e4.zip
Imported Upstream version 3.9.1
Change-Id: Iea08d370f802808b02274c20102ee1635ee58f78 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index ffeae7e..2458975 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,21 +12,21 @@ AC_PREREQ([2.68])
# You can also build against a full interpreter path, such as
# $ ./configure --with-python=~/my-patched-python/python
-m4_define(python_min_ver, 2.6)
+m4_define(python_min_ver, 2.7)
m4_define(python3_min_ver, 3.1)
dnl the pygobject version number
m4_define(pygobject_major_version, 3)
-m4_define(pygobject_minor_version, 8)
-m4_define(pygobject_micro_version, 3)
+m4_define(pygobject_minor_version, 9)
+m4_define(pygobject_micro_version, 1)
m4_define(pygobject_version, pygobject_major_version.pygobject_minor_version.pygobject_micro_version)
dnl versions of packages we require ...
-m4_define(introspection_required_version, 1.34.2)
+m4_define(introspection_required_version, 1.35.9)
m4_define(py2cairo_required_version, 1.2.0)
m4_define(py3cairo_required_version, 1.10.0)
-m4_define(glib_required_version, 2.34.2)
-m4_define(gio_required_version, 2.34.2)
+m4_define(glib_required_version, 2.35.9)
+m4_define(gio_required_version, 2.35.9)
AC_INIT([pygobject],[pygobject_version],
[http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject],
@@ -111,6 +111,12 @@ if test $build_py3k = true ; then
[AC_MSG_ERROR(too old)])
fi
+# - 'SO' for PyPy, CPython 2.7-3.2
+# - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
+# - fallback to '.so'
+PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
+AC_SUBST(PYTHON_SO)
+
AM_CHECK_PYTHON_HEADERS(, AC_MSG_ERROR([Python headers not found]))
if test "x$os_win32" = "xyes"; then
AM_CHECK_PYTHON_LIBS(, AC_MSG_ERROR([Python libs not found. Windows requires Python modules to be explicitly linked to libpython.]))