[MPlayer-dev-eng] [PATCH] build: Check if SCTP is available

Alexander Strasser eclipse7 at gmx.net
Sun May 13 18:33:42 CEST 2012


Johan Andersson wrote:
> On Sun, May 13, 2012 at 02:52:49PM +0200, Reimar Döffinger wrote:
> > On 13 May 2012, at 01:03, Alexander Strasser <eclipse7 at gmx.net> wrote:
> > > +echocheck "SCTP"
> > > +if test "$_sctp" = auto ; then
> > > +cat > $TMPC << EOF
> > > +#include <netinet/in.h>
> > > +#include <netinet/sctp.h>
> > > +#include <sys/time.h>
> > > +#include <unistd.h>
> > > +int main(void) { socket( AF_INET, SOCK_STREAM, IPPROTO_SCTP ); return 0; }
> > 
> > Can't you just do a check_header netinet/sctp.h ?
> 
> Yeah that should work too.

  I did miss it is available in MPlayer's configure. But I found it
now under the name header_check.

  Simplified patch attached.

Thank you for the careful review, Reimar!

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-build-Check-if-SCTP-is-available.patch
Type: text/x-diff
Size: 2865 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120513/4bc281de/attachment.bin>


More information about the MPlayer-dev-eng mailing list