[MPlayer-dev-eng] [PATCH] add detection of *lrint* and round* function to configure
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Dec 28 18:23:20 CET 2007
On Friday 28 December 2007 19:00:18 Diego Biurrun wrote:
> 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.
Applied.
More information about the MPlayer-dev-eng
mailing list