From 3267703658799e76ee661d5354bc5cff69b75863 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 24 Jan 2011 17:42:23 -0500 Subject: [PATCH] Make --enable-gcc-warnings a no-op if not using gcc --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index f8f3e03b..0b5cabc2 100644 --- a/configure.in +++ b/configure.in @@ -559,7 +559,7 @@ AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" # Add some more warnings which we use in development but not in the # released versions. (Some relevant gcc versions can't handle these.) -if test x$enable_gcc_warnings = xyes; then +if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [ #if !defined(__GNUC__) || (__GNUC__ < 4)