diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-12-23 00:37:26 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-12-23 00:37:26 +0000 |
commit | 8f8b4c80f6dfcc5d3985367cfd078c8b6d6e3f4b (patch) | |
tree | 211bafedbf5b1715e729fa758234fe801d6985a2 /autogen.sh | |
parent | 29fb727eb480f10010f37ca9e0b984bbd4dcae3b (diff) | |
download | libxml2-8f8b4c80f6dfcc5d3985367cfd078c8b6d6e3f4b.tar.gz |
allow srcdir != builddir, or somesuch.
allow srcdir != builddir, or somesuch.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,6 +1,11 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +THEDIR=`pwd` +cd $srcdir DIE=0 (autoconf --version) < /dev/null > /dev/null 2>&1 || { @@ -45,13 +50,11 @@ libtoolize --copy --force aclocal automake --add-missing autoconf -if [ -z "$OBJ_DIR" ]; then - ./configure "$@" -else - mkdir -p "$OBJ_DIR" - cd "$OBJ_DIR" - ../configure "$@" -fi + +cd $THEDIR +mkdir -p "$OBJ_DIR" +cd "$OBJ_DIR" +$srcdir/configure "$@" echo echo "Now type 'make' to compile gnome-xml." |