[MPlayer-cvslog] r32262 - trunk/configure

diego subversion at mplayerhq.hu
Thu Sep 16 13:23:42 CEST 2010


Author: diego
Date: Thu Sep 16 13:23:42 2010
New Revision: 32262

Log:
Simplify libmpeg2 check using header_check_broken().

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Sep 16 13:22:30 2010	(r32261)
+++ trunk/configure	Thu Sep 16 13:23:42 2010	(r32262)
@@ -6664,12 +6664,8 @@ if test "$_libmpeg2_internal" = auto ; t
 fi
 if test "$_libmpeg2" = auto ; then
   _libmpeg2=no
-  cat > $TMPC << EOF
-#include <stdint.h>
-#include <mpeg2dec/mpeg2.h>
-int main(void) { return 0; }
-EOF
-  cc_check -lmpeg2 && _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2"
+  header_check_broken stdint.h mpeg2dec/mpeg2.h -lmpeg2 &&
+    _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2"
 fi
 
 def_libmpeg2='#undef CONFIG_LIBMPEG2'


More information about the MPlayer-cvslog mailing list