autogen.sh 222 Bytes
Newer Older
Peter Hutterer's avatar
Peter Hutterer committed
1 2
#! /bin/sh

3
srcdir=`dirname "$0"`
Peter Hutterer's avatar
Peter Hutterer committed
4 5 6
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
7
cd "$srcdir"
Peter Hutterer's avatar
Peter Hutterer committed
8 9

autoreconf -v --install || exit 1
10
cd "$ORIGDIR" || exit $?
Peter Hutterer's avatar
Peter Hutterer committed
11

12
if test -z "$NOCONFIGURE"; then
13
    exec "$srcdir"/configure "$@"
14
fi