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 19:52:37 +0900
commit2ac7acd95bc775af21f65d8c5426e92d28780ab8 (patch)
tree546e2bb6a27c49a91a2b7ab82eba4ee1a734c4ed
parentee40bb3b6a7c5c69c8693a573a459484a24a49d1 (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 "$@"