--- libpst-0.6.41.ebuild.orig	2009-10-30 22:50:56.851573984 +0100
+++ libpst-0.6.41.ebuild	2009-10-30 22:49:55.318324424 +0100
@@ -4,7 +4,7 @@
 
 EAPI="2"
 
-inherit eutils toolchain-funcs
+inherit eutils toolchain-funcs autotools
 
 DESCRIPTION="Tools and library for reading Outlook files (.pst format)"
 HOMEPAGE="http://www.five-ten-sg.com/libpst/"
@@ -19,8 +19,14 @@
 DEPEND="virtual/libiconv
 	dii? ( media-libs/gd[png] )
 	python? ( >=dev-libs/boost-1.35.0-r5[python] )
+	sys-devel/automake:1.10
 	${RDEPEND}"
 
+src_prepare() {
+	epatch "${FILESDIR}/$P-as-needed.patch"
+	eautoreconf
+}
+
 src_configure() {
 	econf \
 		$(use_enable debug pst-debug) \