Fix bugzilla 3801 by forcing MIPSPro warning 1035 to be an error.
authorjpeach <jpeach@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 23 Jun 2006 05:28:34 +0000 (05:28 +0000)
committerjpeach <jpeach@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 23 Jun 2006 05:28:34 +0000 (05:28 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@16482 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/configure.in

index 3749c80f04dc24ec40d00bf8e48a4b08b00f8758..bf1acefb0cf2b6c7224fc51287ca93ec2558c5cb 100644 (file)
@@ -554,7 +554,14 @@ AC_CANONICAL_SYSTEM
 
 dnl Add #include for broken IRIX header files
   case "$host_os" in
-       *irix6*) AC_ADD_INCLUDE(<standards.h>)
+       *irix6*)
+               AC_ADD_INCLUDE(<standards.h>)
+               if test x"$ac_cv_prog_gcc" != x"yes" ; then
+                       dnl Bugzilla 3801. Force an error on warning 1035
+                       dnl so we don't incorrectly detect stdint.h. This
+                       dnl warning is emitted for #error directives.
+                       CFLAGS="$CFLAGS -diag_error 1035"
+               fi
        ;;
 esac