summaryrefslogtreecommitdiff
path: root/bootstrap
blob: 3ef4692604573fde888ef9226ae27a06f98ba28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /bin/bash

DIE=0
touch README NEWS CHANGELOG 
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
    echo
        echo "You must have autoconf installed."
	DIE=1
}

# libtool --version check not done...

(automake --version) < /dev/null > /dev/null 2>&1 || {
    echo
        echo "You must have automake installed."
        DIE=1
}

if test "$DIE" -eq 1; then
    exit 1
fi

echo Removing old files...
rm -fr config.cache autom4te*.cache config.h config.status aclocal.m4 config.cache config.log

if test ! -d config; then
    mkdir config
fi
echo "aclocal -I config"
aclocal -I config
if test $? -ne 0; then
    exit 1
fi
echo "autoheader"
autoheader
if test $? -ne 0; then
    exit 1
fi

echo "libtoolize --automake"
libtoolize --automake
automake --add-missing -c -f -Wno-portability
if test $? -ne 0; then
    exit 1
fi

echo "autoconf"
autoconf
echo "BOOTSTRAP complete"

#(cd gsm-tvoid ; ./bootstrap)
personal git repositories of Harald Welte. Your mileage may vary