summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2007-04-11 17:23:44 +0200
committerMatthias Hopf <mhopf@suse.de>2007-04-11 17:23:44 +0200
commitcb188ab9d7afb737a459d4d8105ce15fa00fdf0d (patch)
treebd08ec9fc592192676b9984f9ecd6348a96557e9 /autogen.sh
parentea93d1b25b470d01931bc16130d3933b4b80498f (diff)
downloadxcb-proto-cb188ab9d7afb737a459d4d8105ce15fa00fdf0d.tar.gz
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 d68a142..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 "$@"
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"