ffmpegcolorspace \
playback \
sine \
- subparse \
tcp \
typefind \
videotestsrc \
dnl used in gst/ffmpegcolorspace/mem.c
dnl FIXME: could be fixed by redefining av_malloc and av_free to GLib's
-AC_CHECK_HEADER([malloc.h])
+AC_CHECK_HEADERS([malloc.h])
+
+dnl used in gst/subparse/gstsubparse.c
+AC_CHECK_HEADERS([regex.h], HAVE_REGEX_H="yes", HAVE_REGEX_H="no")
+AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
dnl ffmpegcolorspace includes _stdint.h
AX_CREATE_STDINT_H