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."