diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-20 14:45:32 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-09-20 14:45:32 +0000 |
commit | d10329556c3b664495584896df408970b3869a59 (patch) | |
tree | 96f0814c3af7c2099128065b2f94acca4219f6bb /configure.in | |
parent | d6b32be3cf7fcc0c3ee0adffb41f77b787f44552 (diff) | |
download | mpfr-d10329556c3b664495584896df408970b3869a59.tar.gz |
Add ICC detection && support.
Remove some potential warnings in the test files.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2977 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 5472a01d7..c547b9d93 100644 --- a/configure.in +++ b/configure.in @@ -49,6 +49,20 @@ AC_CANONICAL_HOST AC_CHECK_OS AC_CHECK_MACHTYPE +dnl Check if compiler is ICC, and if such a case, disable GCC +dnl And add some specific flags. +dnl Don't add Warnings Flags (Otherwise you'll get more than 20000 warnings). +dnl Add -long_double flags ? +AC_MSG_CHECKING(for ICC) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#if !defined(__ICC) +# error "ICC Not Found" +#endif +]], [[]])],[AC_MSG_RESULT(yes) + GCC= + CFLAGS="-pc64 -fp_port -mp $CFLAGS" +],[AC_MSG_RESULT(no)]) + dnl If compiler is gcc, then use some specific flags. dnl But don't touch user specified flags. if test "$test_CFLAGS" != set && test -n "$GCC"; then |