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

check_for_pkg_config() {
    which pkg-config >/dev/null && return

    echo
    echo "Error: could not find pkg-config"
    echo
    echo "Please make sure you have pkg-config installed."
    echo
    exit 1
}

rm -f config.cache
aclocal #-I m4
check_for_pkg_config
libtoolize --force --copy
autoconf
autoheader
automake -a --add-missing -Wall
( cd src/gtest && autoreconf -fvi; )
( cd src/leveldb && mkdir -p m4 && autoreconf -fvi; )
exit