From 9cb5eb75f8e4e962c2aa829ea2aa2fb0cf91e3be Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Wed, 25 Nov 1998 16:34:23 +0000 Subject: [PATCH] use $srcdir instead of the $OBJ_DIR hack --- autogen.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/autogen.sh b/autogen.sh index e722403dfe..74950e2564 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,10 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +pushd $srcdir PROJECT=Gtk+ TEST_TYPE=-d FILE=gdk @@ -56,14 +60,9 @@ aclocal $ACLOCAL_FLAGS automake $am_opt autoconf +popd -if [ -z "$OBJ_DIR" ]; then - ./configure "$@" -else - mkdir -p "$OBJ_DIR" - cd "$OBJ_DIR" - ../configure "$@" -fi +$srcdir/configure "$@" echo echo "Now type 'make' to compile $PROJECT."