summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-08 10:22:43 +0400
committerAnton <anton@picapica>2019-03-08 10:22:43 +0400
commit8a8ffb1b556424255868972e595419293fee24c8 (patch)
tree2960455367db1b0943f0af8e60700cacfeaf2d59 /configure.ac
parent4ce5190737d1ba6aab05b2d7ed14760854c2b980 (diff)
downloadpica-pica-8a8ffb1b556424255868972e595419293fee24c8.tar.gz
pica-pica-8a8ffb1b556424255868972e595419293fee24c8.zip
add ws2_32 to library list when building on Windows
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 2ad38c3..7cd9c05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,10 @@ AC_SYS_LARGEFILE
AS_CASE([$host],
[*-*-freebsd*], [LDFLAGS="$LDFLAGS -L/usr/local/lib" CPPFLAGS="$CPPFLAGS -I/usr/local/include"],
[*-apple-darwin*], [LDFLAGS="$LDFLAGS -headerpad_max_install_names"],
+ [*-w64-mingw*], [
+ LIBS="$LIBS -lws2_32"
+ AC_CHECK_LIB([ws2_32], [closesocket], [], [])
+ ],
[]
)