diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-07-12 14:32:51 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-07-12 14:32:51 +0000 |
commit | 009dc2a838df31d815b277d5e7ec7206ee9ce9d8 (patch) | |
tree | 28177aa088b920cfac78671287ec756661e42c27 | |
parent | 432ddf0d3fcf09f993b7070b805e44f6cac8ff1d (diff) | |
download | mpfr-009dc2a838df31d815b277d5e7ec7206ee9ce9d8.tar.gz |
[acinclude.m4] For the __float128 detection, changed AC_COMPILE_IFELSE
to AC_LINK_IFELSE since an error may occur only at link time, such as
under NetBSD:
https://mail-index.netbsd.org/pkgsrc-users/2018/02/02/msg026220.html
https://mail-index.netbsd.org/pkgsrc-users/2018/02/05/msg026238.html
Note: this change is similar to the r12915 one in the trunk, except
that we do not try to detect _Float128 in the 4.0 branch.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12916 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b72ff1e7f..e4b8ff9b0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -635,9 +635,13 @@ fi 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?). +dnl Note: We use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE since an +dnl error may occur only at link time, such as under NetBSD: +dnl https://mail-index.netbsd.org/pkgsrc-users/2018/02/02/msg026220.html +dnl https://mail-index.netbsd.org/pkgsrc-users/2018/02/05/msg026238.html if test "$enable_float128" != no; then AC_MSG_CHECKING(if compiler knows __float128 with C99 constants) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[__float128 x = 0x1.fp+16383q;]])], + AC_LINK_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) |