summaryrefslogtreecommitdiffstats
path: root/m4/aclocal_fc.m4
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-06-17 15:40:24 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-06-17 15:40:24 (GMT)
commitf51fcf3ffa96b31b3d94434aec6a20ed0432975d (patch)
tree1923919319c03abbb2b19e04779f106e5c3f322e /m4/aclocal_fc.m4
parent1ea65644191f8e260a31ccdc7ca4ba073791951b (diff)
downloadhdf5-f51fcf3ffa96b31b3d94434aec6a20ed0432975d.zip
hdf5-f51fcf3ffa96b31b3d94434aec6a20ed0432975d.tar.gz
hdf5-f51fcf3ffa96b31b3d94434aec6a20ed0432975d.tar.bz2
[svn-r27225] new test for __float128
Diffstat (limited to 'm4/aclocal_fc.m4')
-rw-r--r--m4/aclocal_fc.m416
1 files changed, 7 insertions, 9 deletions
diff --git a/m4/aclocal_fc.m4 b/m4/aclocal_fc.m4
index e55165c..678ed0f 100644
--- a/m4/aclocal_fc.m4
+++ b/m4/aclocal_fc.m4
@@ -563,24 +563,23 @@ rm -f pac_Cconftest.out
# if $HAVE_QUADMATH!=0
#include <quadmath.h>
# endif
- #define C_LDBL_DIG FLT128_DIG
- #else
- # if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define C_FLT128_DIG FLT128_DIG
+ #endif
+ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define C_LDBL_DIG DECIMAL_DIG
- # else
+ #else
#define C_LDBL_DIG LDBL_DIG
- # endif
#endif
],[[
FILE * pFile;
pFile = fopen("pac_Cconftest.out","w");
- fprintf(pFile, "%d\n", C_LDBL_DIG);
+ fprintf(pFile, "%d\n %d\n", C_LDBL_DIG, C_FLT128_DIG);
]])
])
AC_RUN_IFELSE([],[
if test -s pac_Cconftest.out ; then
- LDBL_DIG="`cat pac_Cconftest.out`"
- AC_DEFINE_UNQUOTED([PAC_C_MAX_REAL_PRECISION], $LDBL_DIG, [Determine the decimal precision of C long double])
+ LDBL_DIG="`sed -n '1p' pac_Cconftest.out`"
+ FLT128_DIG="`sed -n '2p' pac_Cconftest.out`"
else
AC_MSG_WARN([No output from test program!])
fi
@@ -588,7 +587,6 @@ rm -f pac_Cconftest.out
],[
AC_MSG_WARN([C program fails to build or run!])
],[])
-AC_MSG_RESULT([$LDBL_DIG])
])