- CC=$(make -qp|sed -ne '/^CC = / s///p')
- if ! [[ -x "$CC" ]]; then
- echo "Warning: $CC not found - skipping the test"
+ CC=$(make omk-get-var VAR=CC|sed -ne '/^CC=/ s///p')
+ if ! which ${CC%% *} > /dev/null; then
+ echo "Warning: '$CC' not found - skipping the test"
+ exit 0
+ fi
+
+ if [[ $OMK_RULES = sysless-keil16x ]] && ! which cygpath; then
+ echo "Warning: cygpath command not found - skipping the test"
+ exit 0
+ fi
+
+ if [[ $OMK_RULES = sysless-keil51 ]] && ! which l51; then
+ echo "Warning: l51 command not found - skipping the test"