summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-11-06 01:55:27 +0100
committerKristian Høgsberg <krh@bitplanet.net>2010-11-06 21:04:03 -0400
commit5b7e43ac5697b34725f8a8d7d06f529d80c68f66 (patch)
treeb0a23b9f0b458f9ba9a34dcb15d322800afd9aab /autogen.sh
parent0bfb126e593c255dd24b464abd92dd8e39d99437 (diff)
downloadweston-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-xautogen.sh17
1 files changed, 7 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index 8b6f58f6..916169a4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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" "$@"