Revert r12195 because it triggers suspicious error messages on systems where
libtool has not been installed:

Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12198 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/autogen.sh b/autogen.sh
index a0703d7..117462c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,17 @@
 #!/bin/sh
 
-autoreconf -ivf
+run ()
+{
+    echo "running: $*"
+    eval $*
+
+    if test $? != 0 ; then
+	echo "error: while running '$*'"
+	exit 1
+    fi
+}
+
+run aclocal
+run autoheader
+run automake -a
+run autoconf