-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure
executable file
·36 lines (30 loc) · 1.18 KB
/
configure
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
#!/bin/bash
# Function to log debug info to console
print_debug_info() {
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
}
# Check for the presence of required commands or utilities
check_command() {
local cmd=$1
local desc=$2
command -v "$cmd" >/dev/null 2>&1 || { print_debug_info "$desc is required or may be needed but not found."; return 1; }
print_debug_info "$desc found at $(command -v "$cmd")"
}
echo "Configuring your system..."
# Log compiler information
print_debug_info "Compiler information:"
print_debug_info "$(gcc --version | head -n 1)"
print_debug_info "$(g++ --version | head -n 1)"
print_debug_info "$(python3 --version | head -n 1)"
print_debug_info "$(clang --version | head -n 1)"
print_debug_info "$(x86_64-w64-mingw32-gcc --version | head -n 1)"
print_debug_info "$(git --version | head -n 1)"
# Check for the presence of essential commands
check_command gcc "C compiler (gcc)"
check_command g++ "C++ compiler (g++)"
check_command make "Make utility"
check_command python3 "Python 3"
check_command clang "Clang"
check_command x86_64-w64-mingw32-gcc "Linux MinGW W64"
check_command git "git"
echo "Configuration complete. Now you can compile DEV7 Tools via make"