summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-11-20 04:21:48 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-11-20 04:21:48 +0000
commit14f08e6a93d19c3a5ca07392eff66171d484d58a (patch)
treefa92b86e431b0612cad4a98532df365566a2ec4a /autogen.sh
parent45c02db925c1bbb8b5d17926954f3b66ff7234e4 (diff)
downloadgdk-pixbuf-14f08e6a93d19c3a5ca07392eff66171d484d58a.tar.gz
allow setting $OBJ_DIR to specify building in a subdir
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d2c55586d..e722403df 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -57,7 +57,13 @@ aclocal $ACLOCAL_FLAGS
automake $am_opt
autoconf
-./configure "$@"
+if [ -z "$OBJ_DIR" ]; then
+ ./configure "$@"
+else
+ mkdir -p "$OBJ_DIR"
+ cd "$OBJ_DIR"
+ ../configure "$@"
+fi
echo
echo "Now type 'make' to compile $PROJECT."