diff options
Diffstat (limited to 'macros/compiler-flags.m4')
-rw-r--r-- | macros/compiler-flags.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4 index fb5d1d25e2..951aab7f5d 100644 --- a/macros/compiler-flags.m4 +++ b/macros/compiler-flags.m4 @@ -7,6 +7,10 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[ AC_MSG_CHECKING(what warning flags to pass to the C compiler) warnCFLAGS= + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi + if test "x$enable_compile_warnings" != "xno"; then if test "x$GCC" = "xyes"; then case " $CFLAGS " in @@ -58,6 +62,9 @@ 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 + fi if test "x$enable_cxx_warnings" != "xno"; then if test "x$GCC" = "xyes"; then case " $CXXFLAGS " in |