summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-08-18 09:03:45 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-08-18 09:03:45 +0000
commitcf1cca6730d8fe692abb368d43179143a270e4f5 (patch)
tree6646be36a52bb80286c23eabfa4bb9065a272f47
parentf584f76032e3e9aaf17b9206489cc77c98de3c00 (diff)
Update autogen.sh to one that does objdir != srcdir.
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index b1376df..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 --enable-maintainer-mode "$@"
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"