--- gst-plugins-ugly-0.10.19.orig/common/m4/as-scrub-include.m4	2011-12-11 13:15:56.000000000 -0600
+++ gst-plugins-ugly-0.10.19/common/m4/as-scrub-include.m4	2013-09-06 16:04:32.804090124 -0500
@@ -23,11 +23,18 @@
 AC_DEFUN([AS_SCRUB_INCLUDE],
 [
   GIVEN_CFLAGS=$[$1]
-  INCLUDE_DIRS=`echo | cpp -v 2>&1`
 
-  dnl remove everything from this output between the "starts here" and "End of"
-  dnl line
-  INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'`
+  if test X"$GCC" != X"yes" ; then
+    # the non-gcc case
+    INCLUDE_DIRS=/usr/include
+  else
+    INCLUDE_DIRS=`echo | cpp -v 2>&1`
+
+    dnl remove everything from this output between the "starts here"
+    dnl and "End of" line
+    INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'`
+  fi
+
   for dir in $INCLUDE_DIRS; do
     dnl use "" as the sed script so $dir gets expanded
     GIVEN_CFLAGS=`echo $GIVEN_CFLAGS | sed -e "s#-I$dir ##"`
