1AC_DEFUN([ONMS_CHECK_SUNCC],
2 [
3 AS_IF([test "x$CC" = "x"], [AC_MSG_ERROR([CC is not set])])
4 AC_MSG_CHECKING([if $CC is Sun CC])
5
6 if $CC -V 2>&1 | grep '^cc: Sun C' > /dev/null; then
7 HAS_SUNCC="yes"
8 else
9 HAS_SUNCC="no"
10 fi
11
12 AC_MSG_RESULT([$HAS_SUNCC])
13 ]
14)
15