-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap
46 lines (38 loc) · 802 Bytes
/
bootstrap
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
#! /bin/sh
DIE=0
autoconf --version < /dev/null > /dev/null 2>&1
if test $? -ne 0; then
echo
echo "You must have autoconf installed."
DIE=1
fi
automake --version < /dev/null > /dev/null 2>&1
if test $? -ne 0; then
echo
echo "You must have automake installed."
DIE=1
fi
if test "$DIE" -eq 1; then
exit -1
fi
echo "Removing old files..."
rm -f configure Makefile Makefile.in src/Makefile src/Makefile.in config.h config.status aclocal.m4 config.cache config.log
mkdir config 2>/dev/null >/dev/null
echo "aclocal -I ."
aclocal -I .
if test $? -ne 0; then
exit -1
fi
echo "autoheader"
autoheader
if test $? -ne 0; then
exit -1
fi
echo "automake --foreign --add-missing"
automake --foreign --add-missing
if test $? -ne 0; then
exit -1
fi
echo "autoconf"
autoconf
echo "BOOTSTRAP COMPLETE"