summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-11-20 04:24:15 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-11-20 04:24:15 +0000
commit337736f6af35f64abadcc17090b2575f65f595be (patch)
treee49d375a5b35dd5cf4b489c1e85d93f12f4dbc8e
parentd42980af516219af0bf42351f315dc534b804ff6 (diff)
downloadgnome-common-337736f6af35f64abadcc17090b2575f65f595be.tar.gz
allow setting $OBJ_DIR to specify building in a subdir
svn path=/trunk/; revision=482
-rw-r--r--macros/autogen.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh
index 9ced626..998bc88 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -77,11 +77,21 @@ do
fi
done
-if test x$NOCONFIGURE = x; then
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
-echo running $srcdir/configure $conf_flags "$@"
-$srcdir/configure $conf_flags "$@" \
-&& echo Now type \`make\' to compile $PKG_NAME
+if [ ! -z "$OBJ_DIR" ]; then
+ mkdir -p "$OBJ_DIR"
+ cd "$OBJ_DIR"
+fi
+
+if test x$NOCONFIGURE = x; then
+echo running $srcdir/$OBJ_DIR/configure $conf_flags "$@"
+if [ -z "$OBJ_DIR" ]; then
+ $srcdir/configure $conf_flags "$@" \
+ && echo Now type \`make\' to compile $PKG_NAME
+else
+ $srcdir/../configure $conf_flags "$@" \
+ && echo Now type \`make\' to compile $PKG_NAME
+fi
else
echo Skipping configure process.
fi