Win32: link utils with winsock2

libnfs-4.0.0-vitalif
Jean-Baptiste Kempf 2016-01-08 23:06:24 +01:00
parent 3ca22dcfdd
commit cd53647f53
2 changed files with 6 additions and 2 deletions

View File

@ -90,7 +90,7 @@ if test "$ac_cv_prog_gcc" = yes; then
fi
AC_SUBST(WARN_CFLAGS)
LIBSOCKET=
case $host in
*solaris*)
AC_CHECK_HEADERS([sys/filio.h])
@ -98,9 +98,13 @@ case $host in
AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])])
AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])])
;;
*mingw32* | *cygwin* | *wince* | *mingwce*)
LIBSOCKET='-lws2_32'
;;
*)
;;
esac
AC_SUBST([LIBSOCKET])
# check for poll.h
dnl Check for poll.h

View File

@ -7,4 +7,4 @@ AM_CPPFLAGS = \
-I$(abs_top_srcdir)/win32 \
"-D_U_=__attribute__((unused))"
AM_LDFLAGS = ../lib/.libs/libnfs.la
AM_LDFLAGS = ../lib/.libs/libnfs.la $(LIBSOCKET)