Index: apr-util-1.6.3/apu-config.in
--- apr-util-1.6.3/apu-config.in.orig	2010-11-26 15:21:37.000000000 +0100
+++ apr-util-1.6.3/apu-config.in	2011-12-14 09:09:13.000000000 +0100
@@ -27,7 +27,7 @@
 libdir="@libdir@"
 includedir="@includedir@"
 
-LIBS="@APRUTIL_EXPORT_LIBS@"
+LIBS="@APRUTIL_EXPORT_LIBS@ @LIBS@"
 INCLUDES="@APRUTIL_INCLUDES@"
 LDFLAGS="@APRUTIL_LDFLAGS@"
 LDAP_LIBS="@LDADD_ldap@"
Index: apr-util-1.6.3/include/private/apu_select_dbm.h.in
--- apr-util-1.6.3/include/private/apu_select_dbm.h.in.orig	2007-01-15 20:00:58.000000000 +0100
+++ apr-util-1.6.3/include/private/apu_select_dbm.h.in	2011-12-14 09:09:13.000000000 +0100
@@ -25,4 +25,9 @@
 #define APU_USE_GDBM    @apu_use_gdbm@
 #define APU_USE_DB      @apu_use_db@
 
+#define APU_HAVE_SDBM    @apu_have_sdbm@
+#define APU_HAVE_NDBM    @apu_have_ndbm@
+#define APU_HAVE_GDBM    @apu_have_gdbm@
+#define APU_HAVE_DB      @apu_have_db@
+
 #endif	/* !APU_SELECT_DBM_H */
