# HG changeset patch # User diego # Date 1358809523 0 # Node ID 9cfa30063480611e55f41b3f2b1ec6954e612f8b # Parent 684e793fe7b72279da8386392cf0de39e736d33f configure: Simplify liba52 check through helper functions. diff -r 684e793fe7b7 -r 9cfa30063480 configure --- a/configure Mon Jan 21 23:05:20 2013 +0000 +++ b/configure Mon Jan 21 23:05:23 2013 +0000 @@ -6490,12 +6490,8 @@ def_liba52='#undef CONFIG_LIBA52' if test "$_liba52" = auto ; then _liba52=no - cat > $TMPC << EOF -#include -#include -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'