mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
configure: Remove socket/winsock specific checks
Not necessary anymore.
This commit is contained in:
parent
305901c7cc
commit
59e08fa503
3 changed files with 1 additions and 43 deletions
25
configure.ac
25
configure.ac
|
@ -149,11 +149,6 @@ AC_HEADER_STDC
|
|||
dnl used by ext/wavpack
|
||||
AX_CREATE_STDINT_H
|
||||
|
||||
dnl used in gst/rtp/gstasteriskh263.c
|
||||
AC_CHECK_HEADERS([netinet/in.h])
|
||||
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
|
||||
AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
|
||||
|
||||
dnl used in gst/udp
|
||||
AC_CHECK_HEADERS([sys/time.h])
|
||||
|
||||
|
@ -382,25 +377,6 @@ AG_GST_CHECK_PLUGIN(wavenc)
|
|||
AG_GST_CHECK_PLUGIN(wavparse)
|
||||
AG_GST_CHECK_PLUGIN(y4m)
|
||||
|
||||
dnl *** checks for socket and nsl libraries ***
|
||||
AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
|
||||
|
||||
dnl disable gst plugins we might not be able to build on this
|
||||
dnl platform: udp and rtsp (ugly but minimally invasive)
|
||||
dnl FIXME: maybe move to sys
|
||||
AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
|
||||
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
|
||||
|
||||
if test "x$HAVE_SYS_SOCKET_H" != "xyes" -a "x$HAVE_WINSOCK2_H" != "xyes"; then
|
||||
AG_GST_DISABLE_PLUGIN(udp)
|
||||
AG_GST_DISABLE_PLUGIN(rtsp)
|
||||
fi
|
||||
|
||||
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
|
||||
WIN32_LIBS="-lws2_32"
|
||||
AC_SUBST(WIN32_LIBS)
|
||||
fi
|
||||
|
||||
dnl disable experimental plug-ins
|
||||
if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
|
||||
AG_GST_DISABLE_PLUGIN(monoscope)
|
||||
|
@ -1215,7 +1191,6 @@ sed \
|
|||
-e 's/.* HAVE_SYS_STAT_H$/#define HAVE_SYS_STAT_H 1/' \
|
||||
-e 's/.* HAVE_SYS_TYPES_H$/#define HAVE_SYS_TYPES_H 1/' \
|
||||
-e 's/.* HAVE_WIN32$/#define HAVE_WIN32 1/' \
|
||||
-e 's/.* HAVE_WINSOCK2_H$/#define HAVE_WINSOCK2_H 1/' \
|
||||
-e 's/.* HOST_CPU$/#define HOST_CPU "i686"/' \
|
||||
-e 's/.* LIBDIR$/#ifdef _DEBUG\n# define LIBDIR PREFIX "\\\\debug\\\\lib"\n#else\n# define LIBDIR PREFIX "\\\\lib"\n#endif/' \
|
||||
-e 's/.* LOCALEDIR$/#define LOCALEDIR PREFIX "\\\\share\\\\locale"/' \
|
||||
|
|
|
@ -73,13 +73,6 @@ libgstrtp_la_SOURCES = \
|
|||
gstrtpvrawdepay.c \
|
||||
gstrtpvrawpay.c
|
||||
|
||||
|
||||
if HAVE_WINSOCK2_H
|
||||
WINSOCK2_LIBS = -lws2_32
|
||||
else
|
||||
WINSOCK2_LIBS =
|
||||
endif
|
||||
|
||||
libgstrtp_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
libgstrtp_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
|
||||
-lgstaudio-@GST_MAJORMINOR@ \
|
||||
|
@ -88,7 +81,7 @@ libgstrtp_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \
|
|||
-lgstrtp-@GST_MAJORMINOR@ \
|
||||
-lgstpbutils-@GST_MAJORMINOR@ \
|
||||
$(GST_BASE_LIBS) $(GST_LIBS) \
|
||||
$(WINSOCK2_LIBS) $(LIBM)
|
||||
$(LIBM)
|
||||
libgstrtp_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstrtp_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
|
|
|
@ -26,16 +26,6 @@
|
|||
#include <gst/rtp/gstrtpbuffer.h>
|
||||
#include "gstasteriskh263.h"
|
||||
|
||||
/* Cygwin has both netinet/in.h and winsock2.h, but
|
||||
* only one can be included, so prefer the unix one */
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
# include <netinet/in.h>
|
||||
#else
|
||||
#ifdef HAVE_WINSOCK2_H
|
||||
# include <winsock2.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define GST_ASTERISKH263_HEADER_LEN 6
|
||||
|
||||
typedef struct _GstAsteriskH263Header
|
||||
|
|
Loading…
Reference in a new issue