[Sugar-devel] [PATCH 1/2] Allow to build outside the source directory
Marco Pesenti Gritti
marco at marcopg.org
Wed Dec 7 12:01:05 EST 2011
Signed-off-by: Marco Pesenti Gritti <marco at marcopg.org>
---
autogen.sh | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index a71e202..28bc45c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,13 @@
#!/bin/sh
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd "$srcdir"
+
intltoolize
autoreconf -i
-./configure --enable-maintainer-mode "$@"
+
+cd "$olddir"
+"$srcdir/configure" --enable-maintainer-mode "$@"
--
1.7.7.3
More information about the Sugar-devel
mailing list