forked from xelerance/Openswan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildlin.sh
executable file
·48 lines (41 loc) · 879 Bytes
/
buildlin.sh
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
#!/bin/sh
fail=false
if [ ! -f /usr/include/gmp.h ] && [ ! -f /usr/include/*/gmp.h ];
then
echo You need to install libgmp-dev.
echo " apt-get install libgmp-dev"
echo "or yum install gmp-dev"
echo
fail=true
fi
if [ ! -f /usr/bin/bison ];
then
echo You need to install bison.
echo " apt-get install bison"
echo "or yum install bison"
fail=true
fi
if [ ! -f /usr/bin/flex ];
then
echo You need to install flex.
echo " apt-get install flex"
echo "or yum install flex"
fail=true
fi
if [ ! -f /usr/bin/make ];
then
echo You need to install make.
echo " apt-get install make"
echo "or yum install make"
fail=true
fi
if $fail;
then
exit 1;
fi
if [ -n "$WERROR" ];
then
echo "Warning, you have \$WERROR set. I assume you are a developer"
sleep 5
fi
make USE_OBJDIR=true programs