Skip to content

Commit

Permalink
Re-gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jan 12, 2024
1 parent a0d0bcb commit 3610a74
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -13533,7 +13533,39 @@ fi
printf "%s\n" "$ac_cv_lib_srtp2_srtp_init" >&6; }
if test "x$ac_cv_lib_srtp2_srtp_init" = xyes
then :
LIBS_SRTP="-lsrtp2"

LIBS_SRTP="-lsrtp2"
# Test program to check if the srtp_protect function accepts size_t* argument
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 'srtp_protect()' last argument type" >&5
printf %s "checking 'srtp_protect()' last argument type... " >&6; }
original_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

#include <stdlib.h>
#include <srtp2/srtp.h>
int
main (void)
{
srtp_t ctx; void* rtp_hdr; size_t len; return srtp_protect(ctx, rtp_hdr, &len);
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
srtp_protect_lastarg=size_t
else $as_nop
srtp_protect_lastarg=int
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
CFLAGS="$original_cflags"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $srtp_protect_lastarg" >&5
printf "%s\n" "$srtp_protect_lastarg" >&6; }

printf "%s\n" "#define SRTP_PROTECT_LASTARG ${srtp_protect_lastarg}" >>confdefs.h


printf "%s\n" "#define ENABLE_SRTP2 1" >>confdefs.h

Expand Down

0 comments on commit 3610a74

Please sign in to comment.