From: Elliot Lee Date: Fri, 20 Nov 1998 04:21:44 +0000 (+0000) Subject: allow setting $OBJ_DIR to specify building in a subdir X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=0eb4b182e7b428d3e00b4a84cb67cb8e83d612e6;p=dana%2Fcg-glib.git allow setting $OBJ_DIR to specify building in a subdir --- diff --git a/autogen.sh b/autogen.sh index 662d6001..ea216789 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."