--- a/gst-plugins-bad-1.4.5/configure.ac	2014-12-18 05:33:15.000000000 -0500
+++ b/gst-plugins-bad-1.4.5/configure.ac	2015-05-16 02:00:15.353299952 -0400
@@ -2048,6 +2048,10 @@
       HAVE_FAAD="yes"
 
       AC_MSG_CHECKING([Checking FAAD2 version in $faad_hdr])
+      
+      OLD_CPPFLAGS="$CPPFLAGS"
+      CPPFLAGS="$CPPFLAGS -P"
+
       for minor in 10 9 8 7 6 5 0; do
         if test x$faad2_minor_version = "x"; then
           AC_EGREP_CPP([GST_CHECK_FAAD_VERSION \"2\.$minor\"], [
@@ -2058,6 +2063,7 @@
             ])
         fi
       done
+      CPPFLAGS="$OLD_CPPFLAGS"
       if test x$faad2_minor_version = "x"; then
         AC_MSG_RESULT([no idea])
       else
