Description: Search for libdbi shared libs in multiarch env
 The libdbi were searched only in /usr/lib, the configure script must
 also search in ${dbi_path}/lib/${DEB_HOST_MULTIARCH}.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: http://bugs.debian.org/738377
Last-Update: 2014-05-06

--- a/aclocal.m4
+++ b/aclocal.m4
@@ -385,6 +385,11 @@ else
     test_paths="${dbi_path}/lib"
 fi
 
+if [[ -x /usr/bin/dpkg-architecture ]] ; then
+	DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
+	test_paths="${dbi_path}/lib ${dbi_path}/lib/${DEB_HOST_MULTIARCH}"
+fi
+
 for x in $test_paths ; do
     AC_MSG_CHECKING([for libdbi library in ${x}])
     if test -f ${x}/libdbi.so; then
