提交 9391dd36 编写于 作者: M Marc G. Fournier

Add a check for DBL_MIN problem...not sure if this is right...needs
testing...
上级 68f9c981
此差异已折叠。
......@@ -509,6 +509,13 @@ AC_TRY_LINK([#include <sys/types.h>
[AC_DEFINE(HAVE_UNION_SEMUN) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(DBL_MIN good)
AC_TRY_RUN([#include <math.h>
main()
{ double d = DBL_MIN; if (d != DBL_MIN) exit -1; else exit 0; }],
AC_MSG_RESULT(yes),
[AC_MSG_RESULT(no) AC_DEFINE(HAVE_DBL_MIN_PROBLEM)])
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
......
......@@ -213,6 +213,9 @@ extern void srandom(int seed);
/* Set to 1 if you want to Enable ASSERT CHECKING */
#undef USE_ASSERT_CHECKING
/* Set to 1 if your DBL_MIN is problematic */
#undef HAVE_DBL_MIN_PROBLEM
/*
* Code below this point should not require changes
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册