From aa873f7b76bd2bbe8411d86d9a72ff1c7ceda905 Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Fri, 20 Nov 1998 05:12:04 +0000 Subject: [PATCH] allow setting $OBJ_DIR to specify building in a subdir --- autogen.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 1456b485..af711a7b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -45,7 +45,13 @@ libtoolize --copy --force aclocal automake --add-missing 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 gnome-xml."