f63ffc
--- apr-util-1.2.7/Makefile.in.pkgconf
f63ffc
+++ apr-util-1.2.7/Makefile.in
f63ffc
@@ -51,7 +51,7 @@
f63ffc
 
f63ffc
 # Create apu-config script suitable for the install tree
f63ffc
 apu-config.out: $(APU_CONFIG)
f63ffc
-	sed 's,^\(location=\).*$$,\1installed,' < $(APU_CONFIG) > $@
f63ffc
+	sed 's,^\(location=\).*$$,\1installed,;s,^\(APR_.*_DIR\)=.*,\1="$${libdir}/build",' < $(APU_CONFIG) > $@
f63ffc
 
f63ffc
 install: $(TARGETS) install-modules
f63ffc
 	$(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \
f63ffc
--- apr-util-1.2.7/apu-config.in.pkgconf
f63ffc
+++ apr-util-1.2.7/apu-config.in
f63ffc
@@ -24,9 +24,10 @@
f63ffc
 prefix="@prefix@"
f63ffc
 exec_prefix="@exec_prefix@"
f63ffc
 bindir="@bindir@"
f63ffc
-libdir="@libdir@"
f63ffc
 includedir="@includedir@"
f63ffc
 
f63ffc
+libdir=`pkg-config --variable=libdir apr-util-@APRUTIL_MAJOR_VERSION@`
f63ffc
+
f63ffc
 LIBS="@APRUTIL_EXPORT_LIBS@"
f63ffc
 INCLUDES="@APRUTIL_INCLUDES@"
f63ffc
 LDFLAGS="@APRUTIL_LDFLAGS@"