summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-08-18 09:03:38 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-08-18 09:03:38 +0000
commit6d7d6af9ac22ba89bdd48cbe3901fb47eab89b6e (patch)
tree1555a37c93b2f8144a8b5a56502286d34241b6c5
parent5410d26cb4a8df005a1ee9cb7f4ec05d5371b0e0 (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 "$@"