faad: Fix configure check for the FAAD version
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 10 May 2009 15:17:15 +0000 (17:17 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 10 May 2009 15:17:15 +0000 (17:17 +0200)
The previous version matched things like 297 for
version 2.7, etc which could be added to the file
by other headers.

Fixes bug #582074.

configure.ac

index d4ec937..0af76e1 100644 (file)
@@ -830,9 +830,9 @@ AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
       AC_MSG_CHECKING([Checking FAAD2 version in $faad_hdr])
       for minor in 10 9 8 7 6 5 0; do
         if test x$faad2_minor_version = "x"; then
-          AC_EGREP_CPP([2.$minor], [
+          AC_EGREP_CPP([GST_CHECK_FAAD_VERSION \"2\.$minor\"], [
               #include <$faad_hdr>
-              FAAD2_VERSION
+              GST_CHECK_FAAD_VERSION FAAD2_VERSION
             ], [
               faad2_minor_version=$minor
             ])