summaryrefslogtreecommitdiffstats
path: root/m4/aclocal_fc.m4
diff options
context:
space:
mode:
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])
])