# HG changeset patch # User John W. Eaton # Date 1257965210 18000 # Node ID bb70d16cca3b82544503f5b229660a2482e23ed7 # Parent 6fcc4179c1785622f23484440ef1112b8b655b3a fail at configure time if IEEE floating point format is not detected diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-11 John W. Eaton + + * acinclude.m4 (OCTAVE_IEEE754_DATA_FORMAT): Fail if IEEE 754 + format is not detected. + 2009-11-11 Shai Ayal * configure.ac: Remove tests for ftgl. diff --git a/acinclude.m4 b/acinclude.m4 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -978,6 +978,13 @@ fi if test "$octave_cv_ieee754_data_format" = yes; then AC_DEFINE(HAVE_IEEE754_DATA_FORMAT, 1, [Define if your system uses IEEE 754 data format.]) +else + ## If the format is unknown, then you will probably not have a + ## useful system, so we will abort here. Anyone wishing to + ## experiment with building Octave on a system without IEEE + ## floating point should be capable of removing this check and + ## the one in the octave_ieee_init function in liboctave/lo-ieee.cc. + AC_MSG_ERROR([IEEE 754 data format required for building Octave]) fi ]) dnl diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2009-11-11 John W. Eaton + + * lo-ieee.cc (octave_ieee_init): Improve comment about systems + without IEEE floating point format. + 2009-11-11 Jaroslav Hajek * mx-inlines.cc (mx_inline_map): New template loop. diff --git a/liboctave/lo-ieee.cc b/liboctave/lo-ieee.cc --- a/liboctave/lo-ieee.cc +++ b/liboctave/lo-ieee.cc @@ -160,7 +160,10 @@ case oct_mach_info::flt_fmt_vax_g: default: // If the format is unknown, then you will probably not have a - // useful system, but we will just issue a warning and go on... + // useful system, so we will abort here. Anyone wishing to + // experiment with building Octave on a system without IEEE + // floating point should be capable of removing this check and + // the configure test. (*current_liboctave_error_handler) ("lo_ieee_init: floating point format is not IEEE! Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?"); abort ();