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.in18
1 files changed, 14 insertions, 4 deletions
diff --git a/newlib/libm/configure.in b/newlib/libm/configure.in
index 4ac7edb30..275476fec 100644
--- a/newlib/libm/configure.in
+++ b/newlib/libm/configure.in
@@ -18,10 +18,20 @@ 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;])])
+AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],[dnl
+cat > conftest.c <<EOF
+int main() {
+long double x = 0.0L;
+return 0;
+}
+EOF
+if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD])
+then
+ acnewlib_cv_type_long_double=yes
+else
+ acnewlib_cv_type_long_double=no
+fi
+rm -f conftest*])
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.