X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=ccd549a8bc192d00a5f4bfec93681dcb9be1f6a3;hb=771761ccaad31d029d470dde84279e94494310b6;hp=f445683000547d6b89f7c71ffecf857ebd46212b;hpb=d8de2c7c2a9b8bf59c8f1fcece5faed0b6cbf6f4;p=free-sw%2Fxcb%2Flibxcb diff --git a/configure.ac b/configure.ac index f445683..ccd549a 100644 --- a/configure.ac +++ b/configure.ac @@ -106,8 +106,15 @@ AC_HELP_STRING([--without-debug], [compile without debugging]), AC_CACHE_CHECK([what debugging options to apply], [CDEBUGFLAGS], [CDEBUGFLAGS="-g"]) AC_SUBST(CDEBUGFLAGS) -CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ - -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" +if test "x$GCC" = xyes ; then + CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ + -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" +else + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) + if test "x$SUNCC" = "xyes"; then + CWARNFLAGS="-v" + fi +fi AC_SUBST(CWARNFLAGS) GCC_CHECK_VISIBILITY()