aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMarc Schink <jaylink-dev@marcschink.de>2016-07-29 10:33:03 +0200
committerMarc Schink <jaylink-dev@marcschink.de>2016-08-03 01:01:43 +0200
commitaee8ed0d9449a2157b1f19ba1a0de0992593d803 (patch)
treeb1459f43d3f2c7d22122d787750016e7f71f448a /configure.ac
parentabb7feafed252eefef9c8a16d0120a3017b1d934 (diff)
downloadlibjaylink-aee8ed0d9449a2157b1f19ba1a0de0992593d803.zip
libjaylink-aee8ed0d9449a2157b1f19ba1a0de0992593d803.tar.gz
libjaylink-aee8ed0d9449a2157b1f19ba1a0de0992593d803.tar.bz2
Use string for IPv4 address in jaylink_connection
Instead of representing the IPv4 address as 32-bit integer, use the much more convenient quad-dotted decimal string representation. Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d8c15d7..e8780fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -111,6 +111,10 @@ AS_CASE([$host_os], [mingw*],
[AC_DEFINE([__USE_MINGW_ANSI_STDIO], [1],
[Define to 1 to use C99 compatible stdio functions on MinGW.])])
+# Add the Winsock2 library on MinGW for socket and other network-related
+# functions.
+AS_CASE([$host_os], [mingw*], [LIBS="$LIBS -lws2_32"])
+
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([libjaylink/Makefile])
AC_CONFIG_FILES([libjaylink/version.h])