comparison configure.in @ 4850:8cc4818a0de0

[project @ 2004-04-06 17:06:34 by jwe]
author jwe
date Tue, 06 Apr 2004 17:06:34 +0000
parents 7b4e76100964
children 66b3cce2bf37
comparison
equal deleted inserted replaced
4849:a3440ff5eb14 4850:8cc4818a0de0
27 27
28 EXTERN_CFLAGS="$CFLAGS" 28 EXTERN_CFLAGS="$CFLAGS"
29 EXTERN_CXXFLAGS="$CXXFLAGS" 29 EXTERN_CXXFLAGS="$CXXFLAGS"
30 30
31 AC_INIT 31 AC_INIT
32 AC_REVISION($Revision: 1.450 $) 32 AC_REVISION($Revision: 1.451 $)
33 AC_PREREQ(2.57) 33 AC_PREREQ(2.57)
34 AC_CONFIG_SRCDIR([src/octave.cc]) 34 AC_CONFIG_SRCDIR([src/octave.cc])
35 AC_CONFIG_HEADER(config.h) 35 AC_CONFIG_HEADER(config.h)
36 36
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.])
427 AC_CHECK_HEADERS(mpi.h, [ 427 AC_CHECK_HEADERS(mpi.h, [
428 WITH_MPI=true 428 WITH_MPI=true
429 MPI_LIBS="-l$mpi_lib" 429 MPI_LIBS="-l$mpi_lib"
430 LIBS="$MPI_LIBS $LIBS" 430 LIBS="$MPI_LIBS $LIBS"
431 AC_DEFINE(HAVE_MPI, 1, [Define if MPI is available.])])]) 431 AC_DEFINE(HAVE_MPI, 1, [Define if MPI is available.])])])
432 fi
433
434
435 # Check for IEEE 754 compliance
436 AC_ARG_WITH(ieee754, [ --with-ieee754 force IEEE754 compliance],
437 with_ieee754=$withval, with_ieee754=no)
438
439 AC_MSG_CHECKING([IEEE 754 compliance])
440 if test "$with_ieee754" = yes; then
441 AC_MSG_RESULT(forced)
442 else
443 # Test for conformance to IEEE 754 or IEEE 854 standards
444 # Need to temporarily change the quote to print "[]"
445 changequote(<-, ->)dnl
446 cat > conftest.c << EOF
447 int main (void)
448 {
449 /* Test for IEEE754 floating point representation. */
450 union { unsigned char c[8]; double d; }
451 l = {{0x1c, 0xbc, 0x6e, 0xf2, 0x54, 0x8b, 0x11, 0x43}},
452 b = {{0x43, 0x11, 0x8b, 0x54, 0xf2, 0x6e, 0xbc, 0x1c}};
453 return l.d!=1234567891234567.0 && b.d!=1234567891234567.0;
454 }
455 EOF
456 changequote([, ])dnl
457
458 ac_try="$CC -o conftest conftest.c"
459 if AC_TRY_EVAL(ac_try) ; then
460 ac_try="./conftest"
461 if AC_TRY_EVAL(ac_try) ; then
462 with_ieee754=yes
463 AC_MSG_RESULT(yes)
464 else
465 AC_MSG_RESULT(no)
466 fi
467 else
468 AC_MSG_RESULT(no)
469 fi
470 rm -f conftest*
471 fi
472
473 if test "$with_ieee754" = yes; then
474 AC_DEFINE(HAVE_IEEE754_COMPLIANCE, 1, [Define if the system is IEEE754 complant.])
432 fi 475 fi
433 476
434 # ---------------------------------------------------------------------- 477 # ----------------------------------------------------------------------
435 478
436 ### We need these before trying to find libf2c. 479 ### We need these before trying to find libf2c.