aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
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
commit7d5839eb992e0a217b8368762cab80fa7a15faa2 (patch)
treec4f8297a999661922a812788ab97a2276dce6f9a /autogen.sh
parentDon\'t lose existing CFLAGS in all the input drivers and some of the video (diff)
downloadxf86-input-evdev-7d5839eb992e0a217b8368762cab80fa7a15faa2.tar.gz
xf86-input-evdev-7d5839eb992e0a217b8368762cab80fa7a15faa2.tar.bz2
xf86-input-evdev-7d5839eb992e0a217b8368762cab80fa7a15faa2.zip
Update autogen.sh to one that does objdir != srcdir.
Diffstat (limited to 'autogen.sh')
-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 "$@"