# HG changeset patch # User diego # Date 1284806861 0 # Node ID b897901c0b0aec1a36d7411b2ea145273d3533eb # Parent e9e3137f8b4368fdea07eab5d4d6ef5996a9757d Simplify librtmp check using function_check(). diff -r e9e3137f8b43 -r b897901c0b0a configure --- a/configure Sat Sep 18 10:46:47 2010 +0000 +++ b/configure Sat Sep 18 10:47:41 2010 +0000 @@ -7002,11 +7002,8 @@ echocheck "RTMPDump Streaming Media library" if test "$_librtmp" = auto && test "$networking" = yes ; then - cat > $TMPC << EOF -#include -int main(void) { RTMP r; RTMP_Socket(&r); return 0; } -EOF - cc_check -lrtmp && _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp" + function_check librtmp/rtmp.h 'RTMP_Socket(NULL)' -lrtmp && + _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp" if test "$_librtmp" != yes && $_pkg_config --exists librtmp ; then _inc_tmp=$($_pkg_config --cflags librtmp) _ld_tmp=$($_pkg_config --libs librtmp)