Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-09 Thread Martin Storsjö
On Sun, 8 Jul 2012, Ronald S. Bultje wrote: Hi, On Sun, Jul 8, 2012 at 12:48 PM, Måns Rullgård wrote: "Ronald S. Bultje" writes: Hi, On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis wrote: On 07/07/2012 6:09 PM, Diego Biurrun wrote: And this is required - why? Libm / math is not A Th

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Måns Rullgård
Diego Biurrun writes: > On Sat, Jul 07, 2012 at 01:58:38PM -0700, Ronald S. Bultje wrote: >> --- a/configure >> +++ b/configure >> @@ -2943,7 +2943,9 @@ for thread in $THREADS_LIST; do >> >> -check_lib math.h sin -lm && LIBM="-lm" >> +if ! check_func_headers math.h sin; then >> +check_lib m

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Diego Biurrun
On Sat, Jul 07, 2012 at 01:58:38PM -0700, Ronald S. Bultje wrote: > --- a/configure > +++ b/configure > @@ -2943,7 +2943,9 @@ for thread in $THREADS_LIST; do > > -check_lib math.h sin -lm && LIBM="-lm" > +if ! check_func_headers math.h sin; then > +check_lib math.h sin -lm && LIBM="-lm" > +fi

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Sun, Jul 8, 2012 at 12:48 PM, Måns Rullgård wrote: >> "Ronald S. Bultje" writes: >> >>> Hi, >>> >>> On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis >>> wrote: On 07/07/2012 6:09 PM, Diego Biurrun wrote: > And this is required - why? L

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Ronald S. Bultje
Hi, On Sun, Jul 8, 2012 at 12:48 PM, Måns Rullgård wrote: > "Ronald S. Bultje" writes: > >> Hi, >> >> On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis >> wrote: >>> On 07/07/2012 6:09 PM, Diego Biurrun wrote: And this is required - why? >>> >>> Libm / math is not A Thing in MSVC and isn't

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis > wrote: >> On 07/07/2012 6:09 PM, Diego Biurrun wrote: >>> And this is required - why? >> >> Libm / math is not A Thing in MSVC and isn't required. >> >> It complains about -lm, but ignores it. >> >> I think t

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Diego Biurrun
On Sun, Jul 08, 2012 at 07:49:22AM -0700, Ronald S. Bultje wrote: > On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis > wrote: > > On 07/07/2012 6:09 PM, Diego Biurrun wrote: > >> And this is required - why? > > > > Libm / math is not A Thing in MSVC and isn't required. > > > > It complains about -

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-08 Thread Ronald S. Bultje
Hi, On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis wrote: > On 07/07/2012 6:09 PM, Diego Biurrun wrote: >> And this is required - why? > > Libm / math is not A Thing in MSVC and isn't required. > > It complains about -lm, but ignores it. > > I think this is mostly to shut up a warning. Correct

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-07 Thread Derek Buitenhuis
On 07/07/2012 6:09 PM, Diego Biurrun wrote: > And this is required - why? Libm / math is not A Thing in MSVC and isn't required. It complains about -lm, but ignores it. I think this is mostly to shut up a warning. - Derek ___ libav-devel mailing list

Re: [libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-07 Thread Diego Biurrun
On Sat, Jul 07, 2012 at 01:58:38PM -0700, Ronald S. Bultje wrote: > --- a/configure > +++ b/configure > @@ -2943,7 +2943,9 @@ for thread in $THREADS_LIST; do > > -check_lib math.h sin -lm && LIBM="-lm" > +if ! check_func_headers math.h sin; then > +check_lib math.h sin -lm && LIBM="-lm" > +fi

[libav-devel] [PATCH] configure: check for math functions without linking to -lm also.

2012-07-07 Thread Ronald S. Bultje
From: "Ronald S. Bultje" --- configure |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index da60e8e..ebc6310 100755 --- a/configure +++ b/configure @@ -2943,7 +2943,9 @@ for thread in $THREADS_LIST; do fi done -check_lib math.h sin -lm &&