allow setting $OBJ_DIR to specify building in a subdir
authorElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:44 +0000 (04:21 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:44 +0000 (04:21 +0000)
autogen.sh

index 662d600..ea21678 100755 (executable)
@@ -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."