subparse needs regex.h - might need to move to sys/
[platform/upstream/gstreamer.git] / configure.ac
index 1a2c086..b9d4425 100644 (file)
@@ -79,7 +79,6 @@ GST_PLUGINS_ALL="\
        ffmpegcolorspace \
        playback \
        sine \
-       subparse \
        tcp \
        typefind \
        videotestsrc \
@@ -160,7 +159,11 @@ AC_HEADER_STDC
 
 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