blob: c2e1b94629652714855cccb1106717d9c41ff212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
############################################################
# Copyright (c) 2013 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
############################################################
LC_ALL=C
export LC_ALL
extra_args="$*"
pathpart='custom_nbmkdep'
. mkc_check_common.sh
trap "rm -f $tmpc $tmpo" 0
cat > "$tmpc" <<'EOF'
#include <stdio.h>
EOF
if test -n "$MKDEP_CC"; then
CC="$MKDEP_CC"
export CC
fi
check_mkdep (){
"$1" -f "$tmpo" $extra_args -I . -I `pwd` "$tmpc"
}
for i in bmkdep nbmkdep mkdep; do
if test -z "`check_mkdep $i 2>&1 > /dev/null`"; then
mkc_which $i
exit 0
fi
done
echo ''
|