Eric Anholt | a909eb4 | 2013-09-19 09:50:49 -0700 | [diff] [blame] | 1 | #! /bin/sh |
2 | |||||
3 | srcdir=`dirname $0` | ||||
4 | test -z "$srcdir" && srcdir=. | ||||
5 | |||||
6 | ORIGDIR=`pwd` | ||||
Emmanuele Bassi | 0f7f16b | 2016-12-07 16:13:09 +0000 | [diff] [blame] | 7 | cd "$srcdir" |
Eric Anholt | a909eb4 | 2013-09-19 09:50:49 -0700 | [diff] [blame] | 8 | |
Emmanuele Bassi | 48ee13e | 2017-02-09 17:10:34 +0000 | [diff] [blame] | 9 | mkdir m4 || exit 1 |
10 | |||||
Emmanuele Bassi | aef80bc | 2017-01-31 12:43:58 +0000 | [diff] [blame] | 11 | autoreconf -v --install || exit $? |
Martin Castillo | 7e9e12f | 2016-02-26 18:54:23 +0100 | [diff] [blame] | 12 | cd "$ORIGDIR" || exit $? |
Eric Anholt | a909eb4 | 2013-09-19 09:50:49 -0700 | [diff] [blame] | 13 | |
14 | if test -z "$NOCONFIGURE"; then | ||||
Emmanuele Bassi | aef80bc | 2017-01-31 12:43:58 +0000 | [diff] [blame] | 15 | exec "$srcdir/configure" "$@" |
Eric Anholt | a909eb4 | 2013-09-19 09:50:49 -0700 | [diff] [blame] | 16 | fi |