improved the build system


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