summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: b8f4f4a53e894fb641ce6d11218c27b33604f8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e # exit on errors

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

olddir=`pwd`
cd "$srcdir"

git submodule update --init --recursive

mkdir -p m4
autoreconf --verbose --force --install

cd "$olddir"
if [ -z "$NOCONFIGURE" ]; then
    "$srcdir"/configure --enable-maintainer-mode ${1+"$@"}
fi