[Xcb-commit] xcb

Jamey Sharp jamey at kemper.freedesktop.org
Wed Apr 19 21:41:36 PDT 2006


 xcb/configure.ac |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

New commits:
diff-tree c9b218db0fd7e1001adf6f98a89f178299cc677c (from b03af4955e3f8e17f76c92f6997c35fa818d0964)
Author: Alan Coopersmith <alan.coopersmith at sun.com>
Date:   Wed Apr 19 21:40:42 2006 -0700

    Only set CWARNFLAGS to gnu flags if $GCC is set. Otherwise check for Sun compiler and use its enhanced warning flag.

diff --git a/xcb/configure.ac b/xcb/configure.ac
index f445683..ccd549a 100644
--- a/xcb/configure.ac
+++ b/xcb/configure.ac
@@ -106,8 +106,15 @@ AC_HELP_STRING([--without-debug],    [co
 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()


More information about the xcb-commit mailing list