From 1ec16a977ff9c81da2f1b5046dd077b1b2a004aa Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 9 Dec 2015 14:06:08 +0100 Subject: add some FreeBSD compat fixes --- scripts/scan-tools.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'scripts/scan-tools.sh') diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index 17e8c0395..42a4e0a1d 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -46,6 +46,12 @@ case $os in Linux) ;; FreeBSD) + if ! which gmake >/dev/null 2>&1; then + echo You must install GNU make to continue. + echo + out=1 + fi + clang=1 ;; MirBSD) ;; @@ -199,9 +205,11 @@ if ! which perl >/dev/null 2>&1; then fi if ! which g++ >/dev/null 2>&1; then - echo "You need a C++ compiler to continue." - echo - out=1 + if ! which clang++ >/dev/null 2>&1; then + echo "You need a C++ compiler to continue." + echo + out=1 + fi fi # always required, but can be provided by host -- cgit v1.2.3