[MPlayer-cvslog] r35816 - trunk/configure

diego subversion at mplayerhq.hu
Tue Jan 22 00:05:23 CET 2013


Author: diego
Date: Tue Jan 22 00:05:23 2013
New Revision: 35816

Log:
configure: Simplify liba52 check through helper functions.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Jan 22 00:05:20 2013	(r35815)
+++ trunk/configure	Tue Jan 22 00:05:23 2013	(r35816)
@@ -6490,12 +6490,8 @@ echocheck "liba52 support"
 def_liba52='#undef CONFIG_LIBA52'
 if test "$_liba52" = auto ; then
   _liba52=no
-  cat > $TMPC << EOF
-#include <inttypes.h>
-#include <a52dec/a52.h>
-int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; }
-EOF
-  cc_check -la52 && _liba52=yes && extra_ldflags="$extra_ldflags -la52"
+  statement_check_broken inttypes.h a52dec/a52.h 'a52_state_t *testHand; testHand=a52_init(0)' -la52 &&
+    _liba52=yes && extra_ldflags="$extra_ldflags -la52"
 fi
 if test "$_liba52" = yes ; then
   def_liba52='#define CONFIG_LIBA52 1'


More information about the MPlayer-cvslog mailing list