Mercurial > hg > octave-avbm
changeset 588:9b02a14aaaea
[project @ 1994-08-07 23:03:57 by jwe]
author | jwe |
---|---|
date | Sun, 07 Aug 1994 23:03:57 +0000 |
parents | 68ef35f2157f |
children | 81b973e373f9 |
files | configure.in |
diffstat | 1 files changed, 24 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ dnl along with Octave; see the file COPYING. If not, write to the Free dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. dnl -AC_REVISION($Revision: 1.35 $)dnl +AC_REVISION($Revision: 1.36 $)dnl AC_PREREQ(1.8)dnl AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -242,6 +242,29 @@ AC_SCO_INTL AC_XENIX_DIR dnl +dnl Try to determine the floating point format. +dnl +AC_CHECKING([floating point format]) +${CC-cc} -DDP $CFLAGS $LDFLAGS $srcdir/float-type.c -o conftest >/dev/null 2>&1 +FLOAT_FORMAT=`./conftest` +case "$FLOAT_FORMAT" in + IEEE_BIG_ENDIAN) + AC_DEFINE(IEEE_BIG_ENDIAN, 1)dnl + ;; + IEEE_LITTLE_ENDIAN) + AC_DEFINE(IEEE_LITTLE_ENDIAN, 1)dnl + ;; + VAX_D_FLOAT) + AC_DEFINE(VAX_D_FLOAT, 1)dnl + ;; + VAX_G_FLOAT) + AC_DEFINE(VAX_G_FLOAT, 1)dnl + ;; + *) + AC_WARN("unrecognized floating point format!") + ;; +esac +dnl dnl Does the C compiler handle alloca() and const correctly? dnl AC_ALLOCA