aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 3a9a792bed..91edb0baef 100755
--- a/configure
+++ b/configure
@@ -567,14 +567,17 @@ else
fi
echo "$_zlib"
-echocheck "mpeg2"
+echocheck "mpeg2 - version >= 0.4.0"
if test "$_mpeg2" = auto ; then
_mpeg2=no
cat > $TMPC << EOF
#include <inttypes.h>
#include <mpeg2dec/mpeg2.h>
-int main(void) {
- #ifdef MPEG2_RELEASE
+int main(void) {
+ /* mpeg2_state_t first appears in 0.4.0 */
+ mpeg2_state_t state;
+
+ #ifdef MPEG2_RELEASE
if (MPEG2_RELEASE >= MPEG2_VERSION(0, 4, 0))
return 0;
#endif