Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/configure.in')
-rw-r--r--newlib/libm/configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libm/configure.in b/newlib/libm/configure.in
index 2750e14d3..4ac7edb30 100644
--- a/newlib/libm/configure.in
+++ b/newlib/libm/configure.in
@@ -14,6 +14,16 @@ AC_ARG_ENABLE(newlib_hw_fp,
esac],[newlib_hw_fp=false])
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
+dnl Autoconf 2.59 doesn't support the AC_TYPE_LONG_DOUBLE macro. Instead of:
+dnl AC_TYPE_LONG_DOUBLE
+dnl AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
+dnl we specify our own long double test.
+AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],
+ [AC_TRY_COMPILE([], [long double foo = 0.0L;],
+ [acnewlib_cv_type_long_double = yes;],
+ [acnewlib_cv_type_long_double = no;])])
+AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
+
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(../..)