diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-11-20 04:21:44 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-11-20 04:21:44 +0000 |
commit | 0eb4b182e7b428d3e00b4a84cb67cb8e83d612e6 (patch) | |
tree | 48fb5b785817a44959c7bc80fe3a401e6ce6b702 /autogen.sh | |
parent | 4d8c3570b9416caaf5d03d37a8b1feb4e1384915 (diff) |
allow setting $OBJ_DIR to specify building in a subdir
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 662d6001d..ea216789a 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." |