From 1fd8c9981ee0cebc8c4ffd125c89c6efc66bef51 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 3 Nov 2005 09:31:30 +0000 Subject: [PATCH] tcp elements need some system headers like sys/socket.h Original commit message from CVS: * configure.ac: * gst/Makefile.am: tcp elements need some system headers like sys/socket.h --- configure.ac | 7 ++++++- gst/Makefile.am | 10 ++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b9d4425b1b..9bccaf6cfc 100644 --- a/configure.ac +++ b/configure.ac @@ -79,7 +79,6 @@ GST_PLUGINS_ALL="\ ffmpegcolorspace \ playback \ sine \ - tcp \ typefind \ videotestsrc \ videorate \ @@ -165,6 +164,12 @@ 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 used in gst/tcp +AC_CHECK_HEADERS([sys/socket.h], + HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no") +AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes") + + dnl ffmpegcolorspace includes _stdint.h AX_CREATE_STDINT_H diff --git a/gst/Makefile.am b/gst/Makefile.am index ee160a84d0..0ecd8af3b8 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -4,5 +4,11 @@ else SUBPARSE = endif -SUBDIRS = $(GST_PLUGINS_SELECTED) $(SUBPARSE) -DIST_SUBDIRS = $(GST_PLUGINS_ALL) subparse +if HAVE_SYS_SOCKET_H +TCP = tcp +else +TCP = +endif + +SUBDIRS = $(GST_PLUGINS_SELECTED) $(SUBPARSE) $(TCP) +DIST_SUBDIRS = $(GST_PLUGINS_ALL) subparse tcp