summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-10-09 20:00:53 +0200
committerEmilia Kasper <emilia@openssl.org>2015-10-14 17:10:20 +0200
commit58dd1ce91aeafb513fa9fd09740e3151c2479314 (patch)
treecb89f958ae6407db6e27db000ece79f968a6b244 /util
parent4ec36aff2a3c221b640dafa56ac838312e6724f4 (diff)
make depend: prefer clang over makedepend
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/domd3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/domd b/util/domd
index 552a352e3a..f5be00deec 100755
--- a/util/domd
+++ b/util/domd
@@ -12,7 +12,8 @@ fi
if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
cp Makefile Makefile.save
-if expr "$MAKEDEPEND" : '.*cc' > /dev/null; then
+if ${MAKEDEPEND} --version 2>&1 | grep -q "clang" ||
+ echo $MAKEDEPEND | grep -q "gcc"; then
args=""
while [ $# -gt 0 ]; do
if [ "$1" != "--" ]; then args="$args $1"; fi