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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun May 13 19:39:17 CEST 2012


On 13 May 2012, at 18:33, Alexander Strasser <eclipse7 at gmx.net> wrote:
> 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.

IMO please commit.
Though you could replace the innermost if by &&, i.e.
header_check ... && sctp=yes


More information about the MPlayer-dev-eng mailing list