diff options
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 d2c55586db..e722403dfe 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." |