Changeset 2305
 Timestamp:
 Jun 18, 2011 10:48:35 AM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/coin.m4
r2304 r2305 2262 2262 AC_COIN_CHECK_CXX_CHEADER(ieeefp) 2263 2263 2264 m4_toupper($1)_C_FINITE=2265 AC_CHECK_DECL([finite],[ m4_toupper($1)_C_FINITE=finite],,[2264 COIN_C_FINITE= 2265 AC_CHECK_DECL([finite],[COIN_C_FINITE=finite],,[ 2266 2266 #ifdef HAVE_CMATH 2267 2267 # include <cmath> … … 2285 2285 # endif 2286 2286 #endif]) 2287 if test z "$ m4_toupper($1)_C_FINITE"; then2288 AC_CHECK_DECL([_finite],[ m4_toupper($1)_C_FINITE=_finite],,[2287 if test z "$COIN_C_FINITE"; then 2288 AC_CHECK_DECL([_finite],[COIN_C_FINITE=_finite],,[ 2289 2289 #ifdef HAVE_CMATH 2290 2290 # include <cmath> … … 2308 2308 # endif 2309 2309 #endif]) 2310 if test z "$ m4_toupper($1)_C_FINITE"; then2311 AC_CHECK_DECL([isfinite],[ m4_toupper($1)_C_FINITE=isfinite],,[2310 if test z "$COIN_C_FINITE"; then 2311 AC_CHECK_DECL([isfinite],[COIN_C_FINITE=isfinite],,[ 2312 2312 #ifdef HAVE_CMATH 2313 2313 # include <cmath> … … 2333 2333 fi 2334 2334 fi 2335 if test z "$ m4_toupper($1)_C_FINITE"; then2335 if test z "$COIN_C_FINITE"; then 2336 2336 AC_MSG_WARN(Cannot find Cfunction for checking Inf.) 2337 2337 else 2338 AC_DEFINE_UNQUOTED( m4_toupper($1)_C_FINITE,[$m4_toupper($1)_C_FINITE],2338 AC_DEFINE_UNQUOTED(COIN_C_FINITE,[$COIN_C_FINITE], 2339 2339 [Define to be the name of Cfunction for Inf check]) 2340 2340 fi … … 2349 2349 # This macro checks for a usable implementation of a function to check 2350 2350 # whether a given floating point number represents NaN. 2351 # If a function is found, then the macro defines the symbol 2352 # to upper($1)_C_ISNAN tothe name of this function.2351 # If a function is found, then the macro defines the symbol COIN_C_ISNAN 2352 # to the name of this function. 2353 2353 2354 2354 AC_DEFUN([AC_COIN_CHECK_ISNAN],[ … … 2360 2360 AC_COIN_CHECK_CXX_CHEADER(ieeefp) 2361 2361 2362 m4_toupper($1)_C_ISNAN=2363 AC_CHECK_DECL([isnan],[ m4_toupper($1)_C_ISNAN=isnan],,[2362 COIN_C_ISNAN= 2363 AC_CHECK_DECL([isnan],[COIN_C_ISNAN=isnan],,[ 2364 2364 #ifdef HAVE_CMATH 2365 2365 # include <cmath> … … 2388 2388 # in the test to allow C++ to do overload resolution. 2389 2389 2390 if test z "$ m4_toupper($1)_C_ISNAN"; then2391 AC_CHECK_DECL([std::isnan(42.42)],[ m4_toupper($1)_C_ISNAN=std::isnan],,[2390 if test z "$COIN_C_ISNAN"; then 2391 AC_CHECK_DECL([std::isnan(42.42)],[COIN_C_ISNAN=std::isnan],,[ 2392 2392 #ifdef HAVE_CMATH 2393 2393 # include <cmath> … … 2413 2413 fi 2414 2414 2415 if test z "$ m4_toupper($1)_C_ISNAN"; then2416 AC_CHECK_DECL([_isnan],[ m4_toupper($1)_C_ISNAN=_isnan],,[2415 if test z "$COIN_C_ISNAN"; then 2416 AC_CHECK_DECL([_isnan],[COIN_C_ISNAN=_isnan],,[ 2417 2417 #ifdef HAVE_CMATH 2418 2418 # include <cmath> … … 2437 2437 #endif]) 2438 2438 fi 2439 if test z "$ m4_toupper($1)_C_ISNAN"; then2440 AC_CHECK_DECL([isnand],[ m4_toupper($1)_C_ISNAN=isnand],,[2439 if test z "$COIN_C_ISNAN"; then 2440 AC_CHECK_DECL([isnand],[COIN_C_ISNAN=isnand],,[ 2441 2441 #ifdef HAVE_CMATH 2442 2442 # include <cmath> … … 2461 2461 #endif]) 2462 2462 fi 2463 if test z "$ m4_toupper($1)_C_ISNAN"; then2463 if test z "$COIN_C_ISNAN"; then 2464 2464 AC_MSG_WARN(Cannot find Cfunction for checking NaN.) 2465 2465 else 2466 AC_DEFINE_UNQUOTED( m4_toupper($1)_C_ISNAN,[$m4_toupper($1)_C_ISNAN],2466 AC_DEFINE_UNQUOTED(COIN_C_ISNAN,[$COIN_C_ISNAN], 2467 2467 [Define to be the name of Cfunction for NaN check]) 2468 2468 fi
Note: See TracChangeset
for help on using the changeset viewer.