summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-06 16:19:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-06-06 16:19:21 +0000
commit447f45d74a98367210e108ce7bde60c2d945c840 (patch)
treef9147652b2d62065b889ddfb8be5b8df1f94a546
parentc4d3cdb70230a418460101fd925a971f8e7192a0 (diff)
downloadmpfr-447f45d74a98367210e108ce7bde60c2d945c840.tar.gz
[acinclude.m4] When checking if __float128 is available, we now also
check whether C99 constants (in particular the __float128 ones, such as 0x1.fp+16383q) are supported since this is now required with the __float128 support. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10440 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--acinclude.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index be917becb..1fefe840e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -592,15 +592,17 @@ Please use another compiler or build MPFR without --enable-decimal-float.])
fi])
fi
-dnl Check if __float128 is available
+dnl Check if __float128 is available. We also require the compiler
+dnl to support C99 constants (this prevents the __float128 support
+dnl with GCC's -std=c90, but who cares?).
if test "$enable_float128" != no; then
- AC_MSG_CHECKING(if compiler knows __float128)
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[__float128 x;]])],
+ AC_MSG_CHECKING(if compiler knows __float128 with C99 constants)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[__float128 x = 0x1.fp+16383q;]])],
[AC_MSG_RESULT(yes)
AC_DEFINE([MPFR_WANT_FLOAT128],1,[Build float128 functions])],
[AC_MSG_RESULT(no)
if test "$enable_float128" = yes; then
- AC_MSG_ERROR([compiler doesn't know __float128
+ AC_MSG_ERROR([compiler doesn't know __float128 with C99 constants
Please use another compiler or build MPFR without --enable-float128.])
fi])
fi