summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-06-07 12:06:00 -0700
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:17:02 +0900
commit58225e88ec56c78dbf5a2235f9031e449ddd3e4a (patch)
treea6e04d5d823095d4a2cc0fb395700143b0ef6dba
parentede59ea93c8ee8b5340fc3b862d67820e2eeb6f1 (diff)
Bug #7150: Check for gcc & Sun cc in configure.ac and use correct flags to turn on more warnings for each
This is the first of two fixes needed to get xcb-util building on Solaris. Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a112b39..512b616 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,16 @@ fi
AC_PROG_CC
AC_PROG_LIBTOOL
+if test "x$GCC" = xyes ; then
+ CWARNFLAGS="-Wall"
+else
+ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
+ if test "x$SUNCC" = "xyes"; then
+ CWARNFLAGS="-v"
+ fi
+fi
+AC_SUBST(CWARNFLAGS)
+
xcbincludedir='${includedir}/xcb'
AC_SUBST(xcbincludedir)