summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-10-20 18:17:46 +0100
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:04:45 +0900
commit90a18af83653894b651c4399965ee0361cc19224 (patch)
tree9a68cebc9b44238dedb9b39822129a97039805a2
parent56fe1c2f1be00377ab0def864aefb2443a096f96 (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 "$@"