aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-03-09 07:08:17 -0500
committerEmil Velikov2015-03-17 17:35:51 -0500
commitffb1e285306ae58f2861debb615047ca384710ba (patch)
treeeb615e01075d59ff587cfcc1b9813f2023594cbd /autogen.sh
parentd8ea64d90b222b468c292d2c107a41a64ad5ce43 (diff)
downloadexternal-libgbm-ffb1e285306ae58f2861debb615047ca384710ba.tar.gz
external-libgbm-ffb1e285306ae58f2861debb615047ca384710ba.tar.xz
external-libgbm-ffb1e285306ae58f2861debb615047ca384710ba.zip
autogen.sh: handle out-of-tree invokation
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 30d679f4..c8960971 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,14 @@
1#! /bin/sh 1#! /bin/sh
2 2
3test -n "$srcdir" || srcdir=`dirname "$0"` 3srcdir=`dirname "$0"`
4test -n "$srcdir" || srcdir=. 4test -z "$srcdir" && srcdir=.
5autoreconf --force --install --verbose "$srcdir" 5
6test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" 6ORIGDIR=`pwd`
7cd "$srcdir"
8
9autoreconf --force --verbose --install || exit 1
10cd "$ORIGDIR" || exit $?
11
12if test -z "$NOCONFIGURE"; then
13 "$srcdir"/configure "$@"
14fi