blob: f4cb74d5b25501323347e56954aa0518f913df68 (
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
|
#!/bin/sh
echo "Rebuilding build system......"
autoreconf --version 2>&1 > /dev/null 2>&1
if [ $? -eq 0 ]; then
AUTORECONF=autoreconf
else
AUTORECONF=
fi
error() {
echo "Missing tool: $1"
echo "Cannot proceed until the missing tool is available"
exit 1
}
if [ ! -z ${AUTORECONF} ]; then
echo "Using autoreconf to rebuild build system"
autoreconf --force --install --symlink
else
echo "No autoreconf found. Using plain old tools to rebuild build system"
libtoolize --automake --force || error libtoolize
aclocal -I m4|| error aclocal
autoheader --force || error autoheader
automake --add-missing --force-missing --gnu || error automake
autoconf --force || error autoconf
fi
./configure $*
exit 0
|