Index: configure =================================================================== --- configure (revision 300621) +++ configure (working copy) @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 298817 . +# From configure.ac Revision: 298957 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for asterisk 1.6.2. # @@ -13383,7 +13383,7 @@ fi -for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round trunc floor ceil +for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" Index: configure.ac =================================================================== --- configure.ac (revision 300621) +++ configure.ac (working copy) @@ -427,7 +427,7 @@ # BSD might not have exp2, and/or log2 AC_CHECK_LIB([m], [sqrt]) -AC_CHECK_FUNCS([exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round trunc floor ceil]) +AC_CHECK_FUNCS([exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil]) AC_MSG_CHECKING(for timersub in time.h) AC_LINK_IFELSE( Index: include/asterisk/compat.h =================================================================== --- include/asterisk/compat.h (revision 300621) +++ include/asterisk/compat.h (working copy) @@ -197,4 +197,12 @@ #define MY_GLOB_FLAGS (GLOB_NOMAGIC|GLOB_BRACE) #endif +#ifndef HAVE_ROUNDF +#ifdef HAVE_ROUND +#define roundf(a) round(a) +#else +#define roundf(a) ((float) (int) ((a) + 0.5)) #endif +#endif + +#endif Index: include/asterisk/autoconfig.h.in =================================================================== --- include/asterisk/autoconfig.h.in (revision 300621) +++ include/asterisk/autoconfig.h.in (working copy) @@ -565,6 +565,9 @@ /* Define to 1 if you have the `round' function. */ #undef HAVE_ROUND +/* Define to 1 if you have the `roundf' function. */ +#undef HAVE_ROUNDF + /* Define to 1 if you have the `roundl' function. */ #undef HAVE_ROUNDL