summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-10-20 18:17:46 +0100
committerJamey Sharp <jamey@minilop.net>2009-10-20 14:39:01 -0700
commit3ee72608ea0bfee3f3232aee6c40a3c36c350afc (patch)
tree911accd957887954cc8209233a73ee379cc14b2c
parent74c766295ebaebef242b15104216db94ed418d29 (diff)
Update autogen.sh to one that does builddir != srcdir
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d68a142..904cd67 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,12 @@
#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
autoreconf -v --install || exit 1
-./configure "$@"
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"