Changeset 924


Ignore:
Timestamp:
Oct 2, 2007, 11:47:38 AM (14 years ago)
Author:
Markus Ringnér
Message:

See ticket:190

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r923 r924  
    8484
    8585# check for quiet_NaN support in OS
     86# At compile time, but this may not work if quiet_NaN exists and returns
     87# an incorrect value
    8688AC_MSG_CHECKING([for std::numeric_limits<>::quiet_NaN()])
    8789AC_COMPILE_IFELSE(
     
    9092     extern void f(double);],
    9193    [f(std::numeric_limits<double>::quiet_NaN())])],
     94  [quiet_nan=yes],
     95  [quiet_nan=no])
     96AC_MSG_RESULT($quiet_nan)
     97if test "${quiet_nan}" = "no" ; then
     98  AC_MSG_FAILURE([
     99    Support for quiet NAN required.
     100    Yat will not work on this system!])
     101fi
     102# At run-time, but this has the disadvantage that yat cannot be built 
     103# for cross-compilation
     104AC_MSG_CHECKING([if std::numeric_limits<>::has_quiet_NaN is true])
     105AC_RUN_IFELSE(
     106  [AC_LANG_PROGRAM(
     107    [#include <limits>],
     108    [return !std::numeric_limits<double>::has_quiet_NaN])],
    92109  [quiet_nan=yes],
    93110  [quiet_nan=no])
Note: See TracChangeset for help on using the changeset viewer.