Fix --enable-cxx-warnings checks. Bug #360693.
authorChristian Persch <chpe@svn.gnome.org>
Mon, 29 Jan 2007 21:58:58 +0000 (21:58 +0000)
committerChristian Persch <chpe@src.gnome.org>
Mon, 29 Jan 2007 21:58:58 +0000 (21:58 +0000)
2007-01-29  Christian Persch  <chpe@svn.gnome.org>

* macros2/gnome-compiler-flags.m4:
Fix --enable-cxx-warnings checks. Bug #360693.

svn path=/trunk/; revision=3900

ChangeLog
macros2/gnome-compiler-flags.m4

index 8e1490f..a1ae96f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-29  Christian Persch  <chpe@svn.gnome.org>
+
+       * macros2/gnome-compiler-flags.m4:
+       Fix --enable-cxx-warnings checks. Bug #360693.
+
 2007-01-12  Shaun McCance  <shaunm@gnome.org>
 
        * macros2/gnome-autogen.sh:
index 7368178..b9db2fd 100644 (file)
@@ -95,11 +95,11 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
 
   AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
   warnCXXFLAGS=
-  if test "x$GCC" != xyes; then
-    enable_compile_warnings=no
+  if test "x$GXX" != xyes; then
+    enable_cxx_warnings=no
   fi
   if test "x$enable_cxx_warnings" != "xno"; then
-    if test "x$GCC" = "xyes"; then
+    if test "x$GXX" = "xyes"; then
       case " $CXXFLAGS " in
       *[\ \    ]-Wall[\ \      ]*) ;;
       *) warnCXXFLAGS="-Wall -Wno-unused" ;;
@@ -122,7 +122,7 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
    AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
    complCXXFLAGS=
    if test "x$enable_iso_cxx" != "xno"; then
-     if test "x$GCC" = "xyes"; then
+     if test "x$GXX" = "xyes"; then
       case " $CXXFLAGS " in
       *[\ \    ]-ansi[\ \      ]*) ;;
       *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;