chiark / gitweb /
Rewrite graphical tools in Python.
[xtoys] / configure.ac
index 8e580c984d2ad6d4bba11bdfad736841ae117ca2..e338570d3e9347c823caaa9b1e5c1150b6d56ff7 100644 (file)
@@ -43,6 +43,17 @@ PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4])
 CFLAGS="$CFLAGS $mLib_CFLAGS"
 LIBS="$LIBS $mLib_LIBS"
 
+dnl--------------------------------------------------------------------------
+dnl Python programming environment.
+
+AM_PATH_PYTHON([2.4], [python=yes], [python=no])
+AM_CONDITIONAL([HAVE_PYTHON], [test $python = yes])
+
+if test $python = yes; then
+  AC_PYTHON_MODULE([pygtk])
+fi
+AM_CONDITIONAL([HAVE_PYGTK], [test ${HAVE_PYMOD_PYGTK-no} = yes])
+
 dnl--------------------------------------------------------------------------
 dnl Output.