Skip to content

Commit 1b0cb54

Browse files
committed
build: check for __SUNPRO_C (Sun C compiler)
1 parent 1622630 commit 1b0cb54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/autotools/CheckCompiler.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
2424
#error Not a supported Clang compiler
2525
#endif
2626
])], [c_compiler="clang"], [])
27+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
28+
#if !(defined(__SUNPRO_C))
29+
#error Not a supported Sun compiler
30+
#endif
31+
])], [c_compiler="sun"], [])
2732
AC_LANG_POP([C])
2833

2934
if test "$c_compiler" = "unknown"; then

0 commit comments

Comments
 (0)