* configure.ac: Add CFLAGS for icc Intel Compiler
authorMichael Hampton <io_error@uncensored.citadel.org>
Mon, 4 Oct 2004 21:40:30 +0000 (21:40 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Mon, 4 Oct 2004 21:40:30 +0000 (21:40 +0000)
citadel/ChangeLog
citadel/configure.ac

index d2ec4a247c8e184ad04d517a41b82df853f173d2..ba00e3a416fcbd1e503afc08ef6203f08398db0d 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 626.6  2004/10/04 21:40:29  error
+ * configure.ac: Add CFLAGS for icc Intel Compiler
+
  Revision 626.5  2004/10/04 21:39:35  error
  * Fix a couple of minor compiler warnings
 
@@ -6138,3 +6141,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 72ce3086c3ff95013d2ef6e13cee778109ef5357..6136b66aae8f70f704eeb1c5f277f231eb6165ed 100644 (file)
@@ -122,14 +122,18 @@ AC_PROG_CC
 
 dnl Set up system-dependent compiler flags.
 if test "$GCC" = yes; then
-       case "$host" in
-               *-*-solaris*|alpha*-dec-osf*)
-                       CFLAGS="$CFLAGS -Wall -Wcast-qual -Wcast-align -Wno-char-subscripts $PTHREAD_DEFS"
-               ;;
-               *)
+       if test "$CC" = icc; then
+               CFLAGS="$CFLAGS -w1"
+       else
+               case "$host" in
+                       *-*-solaris*|alpha*-dec-osf*)
+                               CFLAGS="$CFLAGS -Wall -Wcast-qual -Wcast-align -Wno-char-subscripts $PTHREAD_DEFS"
+                       ;;
+                       *)
                        CFLAGS="$CFLAGS -Wall -Wcast-qual -Wcast-align -Wstrict-prototypes $PTHREAD_DEFS"
-               ;;
-       esac
+                       ;;
+               esac
+       fi
 fi
 
 if test "x$enable_pie" = xyes; then