From: Debian Cyrus SASL Team
 <pkg-cyrus-sasl2-debian-devel@lists.alioth.debian.org>
Date: Thu, 24 Mar 2016 11:35:03 +0100
Subject: Look for generic Berkeley DB first

---
 m4/berkdb.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/berkdb.m4 b/m4/berkdb.m4
index 98e8cb6..8b7d408 100644
--- a/m4/berkdb.m4
+++ b/m4/berkdb.m4
@@ -213,7 +213,7 @@ AC_DEFUN([CYRUS_BERKELEY_DB_CHK_LIB],
 	fi
 
 	saved_LIBS=$LIBS
-	    for dbname in ${with_bdb} \
+	    for dbname in ${with_bdb} db \
 	        db-5.2 db5.2 db52 \
 	        db-5.1 db5.2 db51 \
 	        db-5.0 db5.2 db50 \
