diff -pruN 4.7.25-21/debian/changelog 4.7.25-21ubuntu1/debian/changelog
--- 4.7.25-21/debian/changelog	2011-06-28 14:25:22.000000000 +0000
+++ 4.7.25-21ubuntu1/debian/changelog	2013-10-13 13:22:50.000000000 +0000
@@ -1,3 +1,9 @@
+db4.7 (4.7.25-21ubuntu1) saucy; urgency=low
+
+  * Update config.guess and config.sub at build time.
+
+ -- Colin Watson <cjwatson@ubuntu.com>  Sun, 13 Oct 2013 14:22:49 +0100
+
 db4.7 (4.7.25-21) unstable; urgency=low
 
   * Remove libdb4.7 library package
diff -pruN 4.7.25-21/debian/control 4.7.25-21ubuntu1/debian/control
--- 4.7.25-21/debian/control	2011-06-28 14:25:22.000000000 +0000
+++ 4.7.25-21ubuntu1/debian/control	2013-10-13 15:54:21.000000000 +0000
@@ -1,10 +1,11 @@
 Source: db4.7
 Section: oldlibs
 Priority: extra
-Maintainer: Debian Berkeley DB Group <pkg-db-devel@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Berkeley DB Group <pkg-db-devel@lists.alioth.debian.org>
 Uploaders: Ondřej Surý <ondrej@debian.org>
 Standards-Version: 3.9.2
-Build-Depends: procps [!hurd-i386], tcl-dev
+Build-Depends: procps [!hurd-i386], tcl-dev, autotools-dev
 Homepage: http://www.oracle.com/technology/software/products/berkeley-db/index.html
 Vcs-Browser: http://git.debian.org/?p=pkg-db/db4.7.git
 Vcs-Git: git://git.debian.org/pkg-db/db4.7.git
diff -pruN 4.7.25-21/debian/rules 4.7.25-21ubuntu1/debian/rules
--- 4.7.25-21/debian/rules	2011-06-28 14:25:22.000000000 +0000
+++ 4.7.25-21ubuntu1/debian/rules	2013-10-13 13:22:20.000000000 +0000
@@ -46,6 +46,7 @@ version_major=$(shell expr `pwd` : '.*-\
 
 build:
 	$(checkdir)
+	cp -a /usr/share/misc/config.guess /usr/share/misc/config.sub dist/
 
 	mkdir -p obj
 
@@ -59,6 +60,7 @@ build:
 clean:
 	$(checkdir)
 	rm -rf obj
+	rm -f dist/config.guess dist/config.sub
 	rm -f build install-stamp
 	-rm -rf debian/tmp debian/$(package)* core
 	-rm -f debian/substvars.*
