aboutsummaryrefslogtreecommitdiffstats
path: root/util/domd
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 19:08:54 +0200
commitc97c7f8d53dda12f4fda24fc7542281999df97f6 (patch)
tree4d4d9e93dd179f90f9c12fec5a8f2ed16b5137ad /util/domd
parenta20d9422cf7a516cd576be8f91fe90738459ef42 (diff)
downloadopenssl-c97c7f8d53dda12f4fda24fc7542281999df97f6.tar.gz
make depend: prefer clang over makedepend
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util/domd')
-rwxr-xr-xutil/domd3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/domd b/util/domd
index bab48cb7a2..6a628c7f96 100755
--- a/util/domd
+++ b/util/domd
@@ -14,7 +14,8 @@ if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
cp Makefile Makefile.save
# fake the presence of Kerberos
touch $TOP/krb5.h
-if expr "$MAKEDEPEND" : '.*gcc$' > /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