From fba1c5dffe3bebc6d3a3dd60d51857834837bb0a Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Fri, 20 Nov 1998 04:24:15 +0000 Subject: allow setting $OBJ_DIR to specify building in a subdir svn path=/trunk/; revision=479 --- macros/autogen.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'macros') diff --git a/macros/autogen.sh b/macros/autogen.sh index 9ced626851..998bc88a30 100644 --- a/macros/autogen.sh +++ b/macros/autogen.sh @@ -77,11 +77,21 @@ do fi done -if test x$NOCONFIGURE = x; then conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c -echo running $srcdir/configure $conf_flags "$@" -$srcdir/configure $conf_flags "$@" \ -&& echo Now type \`make\' to compile $PKG_NAME +if [ ! -z "$OBJ_DIR" ]; then + mkdir -p "$OBJ_DIR" + cd "$OBJ_DIR" +fi + +if test x$NOCONFIGURE = x; then +echo running $srcdir/$OBJ_DIR/configure $conf_flags "$@" +if [ -z "$OBJ_DIR" ]; then + $srcdir/configure $conf_flags "$@" \ + && echo Now type \`make\' to compile $PKG_NAME +else + $srcdir/../configure $conf_flags "$@" \ + && echo Now type \`make\' to compile $PKG_NAME +fi else echo Skipping configure process. fi -- cgit v1.2.3