# HG changeset patch # User nplourde # Date 1115685526 0 # Node ID 25847230f20e56b18939b030280975967a2c85b1 # Parent f4d7886224cd7cab76e14e6732eab564920a6493 look if round function exist in math.h & define HAVE_ROUND. patch by Steven M. Schultz diff -r f4d7886224cd -r 25847230f20e configure --- a/configure Tue May 10 00:28:15 2005 +0000 +++ b/configure Tue May 10 00:38:46 2005 +0000 @@ -2410,6 +2410,19 @@ fi echores "$_lrintf" +echocheck "round" +cat > $TMPC << EOF +#include +int main(void) { (void) round(0.0); return 0; } +EOF +_round=no +cc_check $_ld_lm && _round=yes +if test "$_round" = yes ; then + _def_round="#define HAVE_ROUND 1" +else + _def_round="#undef HAVE_ROUND" +fi +echores "$_round" echocheck "nanosleep" # also check for nanosleep @@ -7406,6 +7419,9 @@ /* C99 lrintf function available */ $_def_lrintf +/* round function is available */ +$_def_round + /* yes, we have inttypes.h */ #define HAVE_INTTYPES_H 1