-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·55 lines (47 loc) · 1.12 KB
/
configure
File metadata and controls
executable file
·55 lines (47 loc) · 1.12 KB
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
52
53
54
55
#! /bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo -n "Checking for g++... "
command -v g++ 1> /dev/null 2> /dev/null
if [[ $? -eq 0 ]]
then
echo -e "${GREEN}[yes]${NC}"
else
echo -e "${RED}[no]${NC}"
echo "please install g++"
exit 127;
fi
echo -n "Checking if libspdlog is installed... "
ldconfig -p | grep libspdlog 1> /dev/null 2> /dev/null
if [[ $? -eq 0 ]]
then
echo -e "${GREEN}[yes]${NC}"
else
echo -e "${RED}[no]${NC}"
echo "please install it: sudo apt install libspdlog-dev"
exit 127;
fi
echo -n "Checking if libfmt is installed... "
ldconfig -p | grep libfmt 1> /dev/null 2> /dev/null
if [[ $? -eq 0 ]]
then
echo -e "${GREEN}[yes]${NC}"
else
echo -e "${RED}[no]${NC}"
echo "please install it: sudo apt install libfmt-dev"
exit 127;
fi
echo -n "Checking if libcapstone is installed... "
ldconfig -p | grep libcapstone 1> /dev/null 2> /dev/null
if [[ $? -eq 0 ]]
then
echo -e "${GREEN}[yes]${NC}"
else
echo -e "${RED}[no]${NC}"
echo "please install it: sudo apt install libcapstone-dev"
exit 127;
fi
echo -e "${BLUE}All good, you can run make${NC}"
cp Makefile.in Makefile