summaryrefslogtreecommitdiff
path: root/scripts/scan-tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scan-tools.sh')
-rw-r--r--scripts/scan-tools.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh
index c9b8029d5..6f365cd13 100644
--- a/scripts/scan-tools.sh
+++ b/scripts/scan-tools.sh
@@ -247,16 +247,20 @@ fi
host_build_findutils=0
if ! which gxargs >/dev/null 2>&1; then
- if ! which xargs >/dev/null 2>&1; then
- echo "No xargs found, will build one."
- host_build_findutils=1
+ if which xargs >/dev/null 2>&1; then
+ if ! xargs --version 2>/dev/null|grep GNU >/dev/null;then
+ echo "No GNU xargs found, will build one."
+ host_build_findutils=1
+ fi
fi
fi
if ! which gfind >/dev/null 2>&1; then
- if ! which find >/dev/null 2>&1; then
- echo "No find found, will build one."
- host_build_findutils=1
+ if which find >/dev/null 2>&1; then
+ if ! find --version 2>/dev/null|grep GNU >/dev/null;then
+ echo "No GNU find found, will build one."
+ host_build_findutils=1
+ fi
fi
fi