]> andersk Git - openssh.git/blobdiff - configure.ac
- (tim) [configure.ac ] Not all gcc's support -Wsign-compare
[openssh.git] / configure.ac
index 5b1ad46774892290ecd2bf778c48d46518138a18..eea151fe8bdc4f7762b934104b300a0f74a82aa5 100644 (file)
@@ -82,7 +82,13 @@ AC_CHECK_DECL(LLONG_MAX, have_llong_max=1, , [#include <limits.h>])
 
 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
        CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
-       CFLAGS="$CFLAGS -Wsign-compare"
+       GCC_VER=`$CC --version`
+       case $GCC_VER in
+               1.*) ;;
+               2.8* | 2.9*) CFLAGS="$CFLAGS -Wsign-compare" ;;
+               2.*) ;;
+               *) CFLAGS="$CFLAGS -Wsign-compare" ;;
+       esac
 
        if test -z "$have_llong_max"; then
                # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
This page took 0.033121 seconds and 4 git commands to generate.