Commit 0b9ebbbb authored by Pekka Pessi's avatar Pekka Pessi

m4/sac-su2.m4: avoid redundant ws2tcpip.h test if winsock2.h was not found.

darcs-hash:20060530184024-65a35-99f70eab4833393e0eeee14bef3cbf9322d6f493.gz
parent a8916813
...@@ -109,7 +109,7 @@ AC_CHECK_HEADERS([unistd.h sys/time.h]) ...@@ -109,7 +109,7 @@ AC_CHECK_HEADERS([unistd.h sys/time.h])
AC_CHECK_HEADERS([fcntl.h]) AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [ AC_CHECK_HEADERS([winsock2.h], [
AC_DEFINE([HAVE_WIN32], 1, [Define to 1 you have WIN32]) AC_DEFINE([HAVE_WIN32], 1, [Define to 1 you have WIN32])
SAC_SU_DEFINE([SU_HAVE_WINSOCK], 1, [Define to 1 you have WinSock]) SAC_SU_DEFINE([SU_HAVE_WINSOCK], 1, [Define to 1 you have WinSock])
SAC_SU_DEFINE([SU_HAVE_WINSOCK2], 1, [Define to 1 you have WinSock2]) SAC_SU_DEFINE([SU_HAVE_WINSOCK2], 1, [Define to 1 you have WinSock2])
...@@ -123,7 +123,7 @@ AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [ ...@@ -123,7 +123,7 @@ AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [
[Define to 1 if you have addrinfo structure.]) [Define to 1 if you have addrinfo structure.])
SAC_SU_DEFINE([SU_HAVE_ADDRINFO], 1, SAC_SU_DEFINE([SU_HAVE_ADDRINFO], 1,
[Define to 1 if you have addrinfo structure.]) [Define to 1 if you have addrinfo structure.])
AC_CHECK_HEADERS([windef.h]) AC_CHECK_HEADERS([windef.h ws2tcpip.h])
AC_CHECK_HEADERS([iphlpapi.h], [ AC_CHECK_HEADERS([iphlpapi.h], [
AC_DEFINE([HAVE_INTERFACE_INFO_EX], 1, [ AC_DEFINE([HAVE_INTERFACE_INFO_EX], 1, [
Define to 1 if you have WIN32 INTERFACE_INFO_EX type.]) Define to 1 if you have WIN32 INTERFACE_INFO_EX type.])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment