summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-09-12 06:21:24 +0000
committerDave Airlie <airlied@linux.ie>2005-09-12 06:21:24 +0000
commitacb6abcc6d862224f3e91ede82909c099efdfb1f (patch)
tree93a2099584f6829f584838fff0c89d30a4e6f6b0
parent4b2a94db46dc4814e03d14e25ab0aed41e28a375 (diff)
update autogen from xserver tree
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index b1376df5..904cd674 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 "$@"