configure.in: add W32 extra libs (cherry picked from commit 909f2b23596247aaef4c59458...
authorMarc Mutz <marc@kdab.net>
Mon, 20 Apr 2009 12:08:23 +0000 (14:08 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 1 Dec 2009 07:36:27 +0000 (08:36 +0100)
configure.in

index 4360e2d..a8177db 100644 (file)
@@ -917,24 +917,29 @@ static int x = SCM_RIGHTS;
   AC_DEFINE([HAVE_UNIX_FD_PASSING], [1], [Supports sending UNIX file descriptors]) ],
 [ AC_MSG_RESULT([not supported]) ])
 
+NETWORK_libs=
+if test x$dbus_win = xyes ; then
+  NETWORK_libs="-lws2_32"
+fi
+
 #### Set up final flags
 DBUS_CLIENT_CFLAGS=
-DBUS_CLIENT_LIBS="$THREAD_LIBS"
+DBUS_CLIENT_LIBS="$THREAD_LIBS $NETWORK_libs"
 AC_SUBST(DBUS_CLIENT_CFLAGS)
 AC_SUBST(DBUS_CLIENT_LIBS)
 
 DBUS_BUS_CFLAGS="$XML_CFLAGS"
-DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS $THREAD_LIBS $ADT_LIBS"
+DBUS_BUS_LIBS="$XML_LIBS $SELINUX_LIBS $INTLLIBS $THREAD_LIBS $ADT_LIBS $NETWORK_libs"
 AC_SUBST(DBUS_BUS_CFLAGS)
 AC_SUBST(DBUS_BUS_LIBS)
 
 DBUS_LAUNCHER_CFLAGS="$XML_CFLAGS"
-DBUS_LAUNCHER_LIBS="$XML_LIBS $THREAD_LIBS"
+DBUS_LAUNCHER_LIBS="$XML_LIBS $THREAD_LIBS $NETWORK_libs"
 AC_SUBST(DBUS_LAUNCHER_CFLAGS)
 AC_SUBST(DBUS_LAUNCHER_LIBS)
 
 DBUS_TEST_CFLAGS=
-DBUS_TEST_LIBS="$THREAD_LIBS"
+DBUS_TEST_LIBS="$THREAD_LIBS $NETWORK_libs"
 AC_SUBST(DBUS_TEST_CFLAGS)
 AC_SUBST(DBUS_TEST_LIBS)