mirror of
https://github.com/moparisthebest/curl
synced 2025-01-04 18:38:03 -05:00
Select strict ANSI C89 conformance for icc
This commit is contained in:
parent
836d945ece
commit
a3787eff19
@ -229,6 +229,20 @@ else
|
|||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether we are using the Intel C compiler])
|
||||||
|
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||||
|
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
dnl Select strict ANSI C conformance
|
||||||
|
CFLAGS="$CFLAGS -strict-ansi"
|
||||||
|
dnl Select ANSI C dialect
|
||||||
|
CFLAGS="$CFLAGS -std=c89"
|
||||||
|
dnl Disable use of ANSI C aliasing rules in optimizations
|
||||||
|
CFLAGS="$CFLAGS -no-ansi-alias"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
|
AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
|
||||||
CURL_CHECK_DEF([__DECC], [], [silent])
|
CURL_CHECK_DEF([__DECC], [], [silent])
|
||||||
CURL_CHECK_DEF([__DECC_VER], [], [silent])
|
CURL_CHECK_DEF([__DECC_VER], [], [silent])
|
||||||
|
14
configure.ac
14
configure.ac
@ -296,6 +296,20 @@ else
|
|||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether we are using the Intel C compiler])
|
||||||
|
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||||
|
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
dnl Select strict ANSI C conformance
|
||||||
|
CFLAGS="$CFLAGS -strict-ansi"
|
||||||
|
dnl Select ANSI C dialect
|
||||||
|
CFLAGS="$CFLAGS -std=c89"
|
||||||
|
dnl Disable use of ANSI C aliasing rules in optimizations
|
||||||
|
CFLAGS="$CFLAGS -no-ansi-alias"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
|
AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
|
||||||
CURL_CHECK_DEF([__DECC], [], [silent])
|
CURL_CHECK_DEF([__DECC], [], [silent])
|
||||||
CURL_CHECK_DEF([__DECC_VER], [], [silent])
|
CURL_CHECK_DEF([__DECC_VER], [], [silent])
|
||||||
|
Loading…
Reference in New Issue
Block a user