[Xcb-commit] autogen.sh

Matthias Hopf mhopf at kemper.freedesktop.org
Wed May 2 10:03:12 PDT 2007


 autogen.sh |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletion(-)

New commits:
diff-tree cb188ab9d7afb737a459d4d8105ce15fa00fdf0d (from ea93d1b25b470d01931bc16130d3933b4b80498f)
Author: Matthias Hopf <mhopf at suse.de>
Date:   Wed Apr 11 17:23:44 2007 +0200

    Update autogen.sh to one that does objdir != srcdir.

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 "$@"


More information about the xcb-commit mailing list