--- gst-plugins-bad-0.10.7.orig/configure.ac	2008-04-24 01:30:21.000000000 +0200
+++ gst-plugins-bad-0.10.7/configure.ac	2008-07-04 12:42:39.000000000 +0200
@@ -1025,7 +1025,8 @@
 AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
   AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
   AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
-      [HAVE_OSS4="yes"], [HAVE_OSS4="no"])
+      [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
+      [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
 ])
 
 dnl *** wininet ***
