mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-22 23:31:26 +00:00
Add some extra checks in the preconfigure script
This commit is contained in:
parent
f0c654d394
commit
6f547f8cbe
19
preconfigure
19
preconfigure
@ -1,14 +1,16 @@
|
||||
#!/bin/sh
|
||||
if [ ! -f config-user.mk ]; then
|
||||
printf "[*] Configuring the build system ... "
|
||||
./configure || exit 1
|
||||
fi
|
||||
|
||||
# env setup
|
||||
MAKE=make
|
||||
gmake --version > /dev/null 2>&1
|
||||
[ $? = 0 ] && MAKE=gmake
|
||||
|
||||
printf "[*] Finding `type ${MAKE}` OK"
|
||||
|
||||
if [ ! -f config-user.mk ]; then
|
||||
printf "[*] Configuring the build system ... "
|
||||
./configure > /dev/null 2>&1 || exit 1
|
||||
fi
|
||||
|
||||
# checks
|
||||
printf "[*] Checking out capstone... "
|
||||
rm -rf shlr/capstone
|
||||
@ -29,8 +31,11 @@ if [ ! -d "${V35WD}/arch-armv7/.git" ]; then
|
||||
${MAKE} -C ${V35WD} arch-armv7 > /dev/null || exit 1
|
||||
fi
|
||||
echo OK
|
||||
printf "[*] Running configure... "
|
||||
if [ `uname` = Linux ]; then
|
||||
./configure --with-rpath
|
||||
./configure --with-rpath > /dev/null 2>&1
|
||||
else
|
||||
./configure
|
||||
./configure > /dev/null 2>&1
|
||||
fi
|
||||
echo OK
|
||||
echo "[*] Ready. You can now run 'make'."
|
||||
|
Loading…
x
Reference in New Issue
Block a user