From ebe4baf1aa96b4244c9c33756689329197ecfd77 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 6 Aug 2014 12:44:16 +0200 Subject: try to detect gnu bc --- scripts/scan-tools.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh index 74c4f90c5..f1c01e61a 100644 --- a/scripts/scan-tools.sh +++ b/scripts/scan-tools.sh @@ -184,7 +184,11 @@ fi # always required, but can be provided by host host_build_bc=0 -if ! which bc >/dev/null 2>&1; then +if which bc >/dev/null 2>&1; then + if ! echo quit|bc -q 2>/dev/null >/dev/null;then + host_build_bc=1 + fi +else host_build_bc=1 fi -- cgit v1.2.3