diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-11-06 01:55:27 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-11-06 21:04:03 -0400 |
commit | 5b7e43ac5697b34725f8a8d7d06f529d80c68f66 (patch) | |
tree | b0a23b9f0b458f9ba9a34dcb15d322800afd9aab /autogen.sh | |
parent | 0bfb126e593c255dd24b464abd92dd8e39d99437 (diff) | |
download | weston-5b7e43ac5697b34725f8a8d7d06f529d80c68f66.tar.gz weston-5b7e43ac5697b34725f8a8d7d06f529d80c68f66.tar.bz2 weston-5b7e43ac5697b34725f8a8d7d06f529d80c68f66.zip |
Update autotools configuration
Use new libtool syntax and cleaning the code a bit
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -1,12 +1,9 @@ #! /bin/sh -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. - -ORIGDIR=`pwd` -cd $srcdir - -autoreconf --force -v --install || exit 1 -cd $ORIGDIR || exit $? - -$srcdir/configure "$@" +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. +( + cd "$srcdir" && + autoreconf --force -v --install +) || exit +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" |