From 1f25b18c45770894988fa8914e6cd905c4f81fa3 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Fri, 4 Jul 2008 16:06:09 +0000 Subject: Fix built of the festival plugin with mingw32 by linking to ws2_32.dll and including winsock headers. Fixes bug #541522. Original commit message from CVS: Patch by: Damien Lespiau * configure.ac: * gst/festival/Makefile.am: * gst/festival/gstfestival.c: Fix built of the festival plugin with mingw32 by linking to ws2_32.dll and including winsock headers. Fixes bug #541522. --- gst/festival/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gst/festival/Makefile.am') diff --git a/gst/festival/Makefile.am b/gst/festival/Makefile.am index 45994420..8200d065 100644 --- a/gst/festival/Makefile.am +++ b/gst/festival/Makefile.am @@ -1,11 +1,18 @@ plugin_LTLIBRARIES = libgstfestival.la +if HAVE_WINSOCK2_H +WINSOCK2_LIBS = -lws2_32 +else +WINSOCK2_LIBS = +endif + libgstfestival_la_SOURCES = gstfestival.c libgstfestival_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) # we use net connection now... perhaps use the lib later # libgstfestival_la_LIBADD = $(FESTIVAL_LIBS) -libgstfestival_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-0.10 +libgstfestival_la_LIBADD = $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) \ + -lgstaudio-0.10 $(WINSOCK2_LIBS) libgstfestival_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = gstfestival.h -- cgit v1.2.1