changeset 305:72445e31aa58

Ensure that gcc flag -Wall is set.
author zas_
date Fri, 11 Apr 2008 10:46:52 +0000
parents 0fc0a130e8cf
children 4dbeafae7a53
files configure.in
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Apr 11 10:45:37 2008 +0000
+++ b/configure.in	Fri Apr 11 10:46:52 2008 +0000
@@ -70,6 +70,12 @@
 AM_GLIB_GNU_GETTEXT
 AM_GLIB_DEFINE_LOCALEDIR(GQ_LOCALEDIR)
 
+#Always use -Wall with gcc
+if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
+	CFLAGS="$CFLAGS -Wall"
+	CPPFLAGS="$CPPFLAGS -Wall"
+fi
+
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)
 AC_SUBST(LDFLAGS)