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:
authorJeff Johnston <jjohnstn@redhat.com>2009-04-25 02:49:55 +0400
committerJeff Johnston <jjohnstn@redhat.com>2009-04-25 02:49:55 +0400
commit35f31b6a983710aa9a2bd7e308d1567f326f3f5f (patch)
treebfdf4f80ea36876d228aec85956bae902b94ae96 /newlib/configure
parentde194872240d47137474f610afca16d2ee659549 (diff)
2009-04-24 Jeff johnston <jjohnstn@redhat.com>
* configure.in: Add configuration test for long double equals dbl and set flag _LDBL_EQ_DBL if true. * configure: Regenerated. * newlib.hin: Add _LDBL_EQ_DBL flag. * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_MATH. * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_STDLIB. * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting. * libc/stdlib/local.h: Ditto.
Diffstat (limited to 'newlib/configure')
-rwxr-xr-xnewlib/configure37
1 files changed, 37 insertions, 0 deletions
diff --git a/newlib/configure b/newlib/configure
index d2c7588b5..1d9108d88 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -11902,6 +11902,43 @@ _ACEOF
fi
+echo "$as_me:$LINENO: checking long double equals double" >&5
+echo $ECHO_N "checking long double equals double... $ECHO_C" >&6
+if test "${newlib_ldbl_eq_dbl+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat > conftest.c <<EOF
+#include <float.h>
+#if DBL_MANT_DIG == LDBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
+ LDBL_MAX_EXP == DBL_MAX_EXP
+ #define _LDBL_EQ_DBL
+ #else
+ #error "LDBL != DBL"
+#endif
+EOF
+if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
+ -static -nostartfiles -nostdlib 1>&5'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }
+then
+ newlib_ldbl_eq_dbl=yes;
+else
+ newlib_ldbl_eq_dbl=no;
+fi
+rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $newlib_ldbl_eq_dbl" >&5
+echo "${ECHO_T}$newlib_ldbl_eq_dbl" >&6
+if test $newlib_ldbl_eq_dbl = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define _LDBL_EQ_DBL 1
+_ACEOF
+
+fi
+
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF