changeset 32218:b897901c0b0a

Simplify librtmp check using function_check().
author diego
date Sat, 18 Sep 2010 10:47:41 +0000
parents e9e3137f8b43
children 93b121dfe8e5
files configure
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 <librtmp/rtmp.h>
-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)