aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..0e36e12
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+test -z "$srcdir" && srcdir=$(dirname "$0")
+test -z "$srcdir" && srcdir=.
+
+cwd=$(pwd)
+cd "$srcdir"
+
+mkdir -p m4
+autoreconf --verbose --force --install || exit $?
+
+cd "$cwd"
+"$srcdir/configure" $@