diff --git a/configure.in b/configure.in index e0ff4f582..1cd2b30a1 100644 --- a/configure.in +++ b/configure.in @@ -45,10 +45,10 @@ dnl We first only check for python >= 2.6 AM_PATH_PYTHON(2.6) AC_PATH_PROG(BINSH, sh) -pygtk_require=" +AC_MSG_CHECKING(Python bindings for gtk 3.3.2 (pygobject>=3.3.2)) +cat > conftest.py <=2.10.0)) -cat > conftest.py <= (2,10,0): - print_version = '.'.join([[str(i) for i in version]]) + gtk_ver = (Gtk.get_major_version(), + Gtk.get_minor_version(), + Gtk.get_micro_version()) + if gtk_ver >= (3, 3, 2): + print_version = '.'.join([str(i) for i in gtk_ver]) out(print_version) else: out("NO") -except ImportError: - out("NO") -except AttributeError: +except: out("NO") EOF $PYTHON conftest.py @@ -81,7 +76,7 @@ if test NO = "$has_pygtk" then AC_MSG_ERROR([ -**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be found.]) +**** The python bindings for pygobect 3.3.2 (pygobject>=3.3.2) could not be found.]) fi AC_MSG_RESULT($has_pygtk)