[svn-r12389] Purpose: Bug fix

Description: There was some logical confusion about the value of the macro
H5_HW_FP_TO_LLONG_NOT_WORKS.  It's supposed to be true for Windows, but false
for Unix machines.

Solution: Corrected.

Platforms tested: fuss(Linux) and amazon(MacOS 10.4) - simple change.
This commit is contained in:
Raymond Lu 2006-06-01 13:34:32 -05:00
parent 30d130b7b5
commit b1f5c03c79
2 changed files with 8 additions and 8 deletions

10
configure vendored
View File

@ -50865,7 +50865,7 @@ echo $ECHO_N "checking if converting floating-point values to long long is not w
if test "${hdf5_cv_convert_float_llong_not_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
hdf5_cv_convert_float_llong_not_works=yes
hdf5_cv_convert_float_llong_not_works=no
fi
@ -50875,11 +50875,11 @@ cat >>confdefs.h <<\_ACEOF
#define HW_FP_TO_LLONG_NOT_WORKS 1
_ACEOF
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
echo "$as_me:$LINENO: result: true" >&5
echo "${ECHO_T}true" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
echo "$as_me:$LINENO: result: false" >&5
echo "${ECHO_T}false" >&6
fi
echo "$as_me:$LINENO: checking if converting from long double to integers is accurate" >&5

View File

@ -2580,14 +2580,14 @@ dnl (This flag should be _unset_ for all machines, except for Windows, where
dnl it's set in the custom Windows H5pubconf.h file)
dnl
AC_MSG_CHECKING([if converting floating-point values to long long is not working])
AC_CACHE_VAL([hdf5_cv_convert_float_llong_not_works], [hdf5_cv_convert_float_llong_not_works=yes])
AC_CACHE_VAL([hdf5_cv_convert_float_llong_not_works], [hdf5_cv_convert_float_llong_not_works=no])
if test ${hdf5_cv_convert_float_llong_not_works} = "yes"; then
AC_DEFINE([HW_FP_TO_LLONG_NOT_WORKS], [1],
[Define if your system can't handle converting floating-point values to long long.])
AC_MSG_RESULT([yes])
AC_MSG_RESULT([true])
else
AC_MSG_RESULT([no])
AC_MSG_RESULT([false])
fi
dnl -----------------------------------------------------------------------