Description: Don't rely on python unconditionally.
 This makes us allowed to avoid the build-dependency on python-dev as
 we don't want to build the python extension for now.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
---
 configure.ac |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- libinstpatch.orig/configure.ac
+++ libinstpatch/configure.ac
@@ -136,11 +136,6 @@ PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.
 AC_SUBST(SNDFILE_CFLAGS)
 AC_SUBST(SNDFILE_LIBS)
 
-
-# Check for python 2.2 (defines PYTHON_CFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
-#    PYTHON_EXTRA_LIBS)
-AC_PYTHON_DEVEL
-
 # Try for pygobject first (removes gtk dependency)
 PKG_CHECK_MODULES(PYGTK, pygobject-2.0, PYGTK_SUPPORT=1, PYGTK_SUPPORT=0)
 
@@ -166,6 +161,9 @@ if test "x${enable_python}" = "xyes" -a
   fi
 
   AC_SUBST(PYGTK_CODEGEN_DIR)
+
+  # Check for python (defines PYTHON_CFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG, PYTHON_EXTRA_LIBS)
+  AC_PYTHON_DEVEL
 else
   enable_python="no"
 fi
