--- a/configure	2011-12-20 11:46:39.000000000 -0800
+++ b/configure	2011-12-20 11:47:09.000000000 -0800
@@ -13734,6 +13734,8 @@
        done
      done
 
+  else
+    bdb_version=`sed -ne 's/^.*DB_VERSION_STRING.*Berkeley DB \(...\).*/\1/p' $bdb_include_dir/db.h`
   fi
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Berkeley DB (BDB) version" >&5
