Changeset 3128


Ignore:
Timestamp:
Dec 5, 2013 6:27:43 AM (6 years ago)
Author:
kelman
Message:

Fix test for finding std::isnan on Mac, new autoconf treats parameters in AC_CHECK_DECL as typecasts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3124 r3128  
    176176# std::isnan, and bare isnan will be unavailable. Typically we need a parameter
    177177# in the test to allow C++ to do overload resolution.
     178# With newer autoconf, this parameter now gets interpreted as a typecast.
    178179
    179180if test -z "$COIN_C_ISNAN"; then
    180   AC_CHECK_DECL([std::isnan(42.42)],[COIN_C_ISNAN=std::isnan],,[
     181  AC_CHECK_DECL([std::isnan(double)],[COIN_C_ISNAN=std::isnan],,[
    181182#ifdef HAVE_CMATH
    182183# include <cmath>
Note: See TracChangeset for help on using the changeset viewer.