[MPlayer-dev-eng] [PATCH] add detection of *lrint* and round* function to configure

Diego Biurrun diego at biurrun.de
Fri Dec 28 17:00:18 CET 2007


On Fri, Dec 28, 2007 at 06:03:25PM +0300, Evgeniy Stepanov wrote:
> 
> ffmpeg r11326 broke mplayer compilation because of undefined
> HAVE_LLRINT and the likes. The attached patch fixes it.

Patch looks OK, if it works, commit it.

> --- configure	(revision 25534)
> +++ configure	(working copy)
> @@ -2757,19 +2757,22 @@
>  
> +for func in llrint lrint lrintf round roundf; do
> +echocheck $func
>  cat > $TMPC << EOF
>  #include <math.h>
> +int main(void) { long (*foo)(float); foo = $func; (void)(*foo)(0.0); return 0; }
>  EOF
> +eval _$func=no
> +cc_check -D_GNU_SOURCE $_ld_lm && eval _$func=yes

The -D_GNU_SOURCE is likely wrong or undesirable, but that issue is
separate from your patch.

Diego



More information about the MPlayer-dev-eng mailing list