aboutsummaryrefslogtreecommitdiffstats
path: root/macros/autogen.sh
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-11-20 12:24:15 +0800
committerElliot Lee <sopwith@src.gnome.org>1998-11-20 12:24:15 +0800
commitfba1c5dffe3bebc6d3a3dd60d51857834837bb0a (patch)
tree8f7593920068428ea1139b6fe666c5b68163fe2d /macros/autogen.sh
parent7f4300223d86e9687f2c420834c18ac0e23b4e68 (diff)
downloadgsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar.gz
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar.bz2
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar.lz
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar.xz
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.tar.zst
gsoc2013-evolution-fba1c5dffe3bebc6d3a3dd60d51857834837bb0a.zip
allow setting $OBJ_DIR to specify building in a subdir
svn path=/trunk/; revision=479
Diffstat (limited to 'macros/autogen.sh')
-rw-r--r--macros/autogen.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh
index 9ced626851..998bc88a30 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