configure.in: not all gccs support -Wno-pointer-sign
authorMarc Mutz <marc@kdab.net>
Fri, 17 Apr 2009 14:23:42 +0000 (16:23 +0200)
committerThiago Macieira <thiago@kde.org>
Wed, 13 May 2009 13:50:51 +0000 (15:50 +0200)
Signed-off-by: Thiago Macieira <thiago@kde.org>
configure.in

index 6992487b8ceafb14fd1f892f375311114dd5aad8..fd972b496a23e52a5e19e38003c7191540146e70 100644 (file)
@@ -284,7 +284,10 @@ if test "x$GCC" = "xyes"; then
   esac
   case " $CFLAGS " in
   *[\ \        ]-Wno-pointer-sign[\ \  ]*) ;;
-  *) CFLAGS="$CFLAGS -Wno-pointer-sign" ;;
+  *) if cc_supports_flag -Wno-pointer-sign; then
+        CFLAGS="$CFLAGS -Wno-pointer-sign"
+     fi
+     ;;
   esac  
   
   # http://bugs.freedesktop.org/show_bug.cgi?id=19195