Description: python2.pc in Debian jessie does not provide the correct (multi-arch) libdir path
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Abstract:
 This works around Debian bug #770935. This package should stay intact
 once that bug gets fixed. However, once that bug is fixed, this patch
 should be dropped.

--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,10 @@
 AM_PATH_PYTHON([2.7])
 PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
 PYTHON_LIB_LOC="`pkg-config python-${PYTHON_VERSION} --variable=libdir`"
+# nasty workaround Debian bug #770935!!!
+if ! test -r "${PYTHON_LIB_LOC}/libpython${PYTHON_VERSION}.so"; then
+	PYTHON_LIB_LOC="`pkg-config python-${PYTHON_VERSION} --variable=libdir`/`dpkg-architecture -qDEB_BUILD_MULTIARCH`"
+fi
 AC_SUBST(PYTHON_LIBS)
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIB_LOC)
