diff --git a/autogen.sh b/autogen.sh index cf0d601a9..2536539e8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,4 +13,9 @@ autoheader autoconf ) -$srcdir/configure --enable-maintainer-mode $* +if [ ! -z "$OBJ_DIR" ]; then + mkdir -p "$OBJ_DIR" + cd "$OBJ_DIR" +fi + +$srcdir/$OBJDIR/configure --enable-maintainer-mode $*