1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

if WINSOCK2 API is used link with 'ws2_32', else

if WINSOCK API is used under WinCE link with 'winsock', else

if WINSOCK API is used link with 'wsock32'.
This commit is contained in:
Yang Tse 2008-05-19 02:50:29 +00:00
parent 560a82aeaf
commit 512b9ac194
2 changed files with 21 additions and 7 deletions

View File

@ -19,7 +19,7 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL AC_PROG_INSTALL
case $host_os in case $host_os in
solaris*) solaris*)
AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used]) AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used])
;; ;;
esac esac
@ -229,7 +229,14 @@ then
dnl This is for winsock systems dnl This is for winsock systems
if test "$ac_cv_header_windows_h" = "yes"; then if test "$ac_cv_header_windows_h" = "yes"; then
if test "$ac_cv_header_winsock_h" = "yes"; then if test "$ac_cv_header_winsock_h" = "yes"; then
case $host in
*-*-mingw32ce*)
winsock_LIB="-lwinsock" winsock_LIB="-lwinsock"
;;
*)
winsock_LIB="-lwsock32"
;;
esac
fi fi
if test "$ac_cv_header_winsock2_h" = "yes"; then if test "$ac_cv_header_winsock2_h" = "yes"; then
winsock_LIB="-lws2_32" winsock_LIB="-lws2_32"

View File

@ -506,7 +506,14 @@ then
dnl This is for winsock systems dnl This is for winsock systems
if test "$ac_cv_header_windows_h" = "yes"; then if test "$ac_cv_header_windows_h" = "yes"; then
if test "$ac_cv_header_winsock_h" = "yes"; then if test "$ac_cv_header_winsock_h" = "yes"; then
case $host in
*-*-mingw32ce*)
winsock_LIB="-lwinsock" winsock_LIB="-lwinsock"
;;
*)
winsock_LIB="-lwsock32"
;;
esac
fi fi
if test "$ac_cv_header_winsock2_h" = "yes"; then if test "$ac_cv_header_winsock2_h" = "yes"; then
winsock_LIB="-lws2_32" winsock_LIB="-lws2_32"