Purpose of commit: bugfix
Commit summary:
---------------
The Intel C Compiler (icc) claims to be gcc compatible, but
trys to interprets unknown options without error with fatal results...
2006-06-15 Thorsten Kukuk <kukuk@thkukuk.de>
* configure.in: Add special exceptions for icc: different
compiler warnings, no PIE support.
+2006-06-15 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * configure.in: Add special exceptions for icc: different
+ compiler warnings, no PIE support.
+
2006-06-14 Thorsten Kukuk <kukuk@thkukuk.de>
* libpam/pam_misc.c (_pam_strdup): Use strlen and strcpy.
# Largefile support
AC_SYS_LARGEFILE
-if eval "test x$GCC = xyes"; then
+if eval "test x$GCC = xyes -a $CC != icc"; then
for flag in \
-W \
-Wall \
JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
done
fi
+if eval "test x$CC = xicc"; then
+ for flag in \
+ -Wall \
+ -Wmissing-prototypes \
+ -Wpointer-arith \
+ -Wreturn-type \
+ -Wstrict-prototypes \
+ -Wwrite-strings \
+ -Wshadow \
+ -Wp64 \
+ -Wdeprecated \
+ -Wuninitialized \
+ -Wmain
+ do
+ JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ])
+ done
+fi
AC_C___ATTRIBUTE__
int foo;
main () { return 0;}
EOF
- if test "$USE_PIE" = "yes" &&
+ if test "$USE_PIE" = "yes" -a "$CC" != "icc" &&
AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
-o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
then