allow setting $OBJ_DIR to specify building in a subdir

This commit is contained in:
Elliot Lee 1998-11-20 04:21:44 +00:00
parent 4d8c3570b9
commit 0eb4b182e7

View File

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