diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-11-25 16:33:18 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-11-25 16:33:18 +0000 |
commit | 8c25d98d508e66a4558df7aaa8e3063e14fd14b8 (patch) | |
tree | aab4bf328ac190464663ae1cecbf1f11d2b9877f /autogen.sh | |
parent | 61bdacfb596a715fa042b513b4e524c3d30f4b3e (diff) |
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
separate build dirs.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/autogen.sh b/autogen.sh index ea216789a..29f73cbd4 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=GLib TEST_TYPE=-f FILE=glib.h @@ -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." |