update autogen from xserver tree
authorDave Airlie <airlied@linux.ie>
Mon, 12 Sep 2005 06:21:24 +0000 (06:21 +0000)
committerDave Airlie <airlied@linux.ie>
Mon, 12 Sep 2005 06:21:24 +0000 (06:21 +0000)
autogen.sh

index b1376df5a4a149f6e41d8722224f7f61445aba8e..904cd6746c8734b2c33e3f80773d4759715d2f6e 100755 (executable)
@@ -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 "$@"