From 4ed1bc3a57e0160eb0b395c2a363151700216d04 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 1 Jul 2013 21:29:59 -0400 Subject: CONFIGURE: Make the libmpeg2 properly require 0.4.0 --- configure | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 41d96fbf72..eedd83eb7b 100755 --- a/configure +++ b/configure @@ -3474,7 +3474,7 @@ echo "$_zlib" # # Check for LibMPEG2 # -echocheck "libmpeg2 >= 0.3.2" +echocheck "libmpeg2 >= 0.4.0" if test "$_mpeg2" = auto ; then _mpeg2=no cat > $TMPC << EOF @@ -3486,16 +3486,19 @@ typedef unsigned $type_1_byte uint8_t; typedef unsigned $type_2_byte uint16_t; typedef unsigned $type_4_byte uint32_t; +extern "C" { #include +} + int main(void) { + #if MPEG2_RELEASE < MPEG2_VERSION(0, 4, 0) + #error libmpeg2 version too low + #endif + /* mpeg2_state_t first appears in 0.4.0 */ mpeg2_state_t state; - #ifdef MPEG2_RELEASE - if (MPEG2_RELEASE >= MPEG2_VERSION(0, 3, 2)) - return 0; - #endif - return 1; + return 0; } EOF -- cgit v1.2.3