summaryrefslogtreecommitdiff
path: root/bootstrap
blob: ac327fd870f1bd0912954560922c4224280c2a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

aclocal -I m4 && \
    autoheader && \
        libtoolize --copy --force && \
            autoconf && \
                automake --add-missing --copy

status=$?

if [ $status == 0 ]; then
    if [ -n "$1" ]; then
        [ "$1" == "configure" ] && shift || :
        ./configure $*
        status=$?
    fi
else
    echo "Failed to bootstrap."
fi

exit $status