diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-19 02:50:29 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-19 02:50:29 +0000 |
commit | 512b9ac19446999d457c53783e54d3151391e823 (patch) | |
tree | e9a3b52dc15d86498c70e6c5a33d27af50f7066a /configure.ac | |
parent | 560a82aeaf389f66e497996b4cdf76b501752fd9 (diff) |
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'.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 80d91fb6b..cdd2d9fcc 100644 --- a/configure.ac +++ b/configure.ac @@ -506,7 +506,14 @@ then dnl This is for winsock systems if test "$ac_cv_header_windows_h" = "yes"; then if test "$ac_cv_header_winsock_h" = "yes"; then - winsock_LIB="-lwinsock" + case $host in + *-*-mingw32ce*) + winsock_LIB="-lwinsock" + ;; + *) + winsock_LIB="-lwsock32" + ;; + esac fi if test "$ac_cv_header_winsock2_h" = "yes"; then winsock_LIB="-lws2_32" |