X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=m4%2Fa52.m4;h=0065deeb15fcdb8977a25e65057697bad3988b75;hb=5ca7a02371dda95481c151edd2a0ddd9753cfa77;hp=c7396cb176fe282b9c4f81118b9c1d3c6592f0c4;hpb=ea003f663a78858145940d9b363912d57a953bed;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/m4/a52.m4 b/m4/a52.m4 index c7396cb..0065dee 100644 --- a/m4/a52.m4 +++ b/m4/a52.m4 @@ -15,7 +15,7 @@ dnl EXTRA-CPPFLAGS - extra C preprocessor flags, i.e. -I/usr/X11R6/include dnl dnl Based on GST_CHECK_LIBHEADER from gstreamer plugins 0.3.1. dnl -AC_DEFUN(A52_CHECK_LIBHEADER, +AC_DEFUN([A52_CHECK_LIBHEADER], [ AC_CHECK_LIB([$2], [$3], HAVE_[$1]=yes, HAVE_[$1]=no, [$7]) check_libheader_feature_name=translit([$1], A-Z, a-z) @@ -49,7 +49,7 @@ dnl dnl Based on GST_CHECK_A52DEC from gstreamer plugins 0.3.3.1 dnl Thomas Vander Stichele , Andy Wingo dnl -AC_DEFUN(AC_CHECK_A52DEC, +AC_DEFUN([AC_CHECK_A52DEC], [dnl AC_ARG_WITH(a52dec-prefix, AC_HELP_STRING([--with-a52dec-prefix=PFX], @@ -79,12 +79,14 @@ int main () { a52_state_t *state; + state = a52_init (0); + a52_free (state); return 0; } ],, HAVE_A52DEC=no, [echo $ac_n "cross compiling; assumed OK... $ac_c"]) if test HAVE_A52DEC = "no"; then - echo "*** Your a52dec is borked somehow. Please update to 0.7.3." + echo "*** Your a52dec is borked somehow. Please update to 0.7.4." else AC_TRY_RUN([ #include @@ -94,12 +96,13 @@ int main () { int i = sizeof (a52_state_t); - return 0; + if ( i ) + return 0; } ], HAVE_A52DEC=no,, [echo $ac_n "cross compiling; assumed OK... $ac_c"]) if test HAVE_A52DEC = "no"; then - echo "*** Your a52dec is too old. Please update to 0.7.3." + echo "*** Your a52dec is too old. Please update to 0.7.4." fi fi CFLAGS="$ac_save_CFLAGS"