From: Francesco Chemolli Date: Wed, 18 May 2011 01:03:37 +0000 (+0200) Subject: Portability fix: properly detect Iphlpapi.h on windows X-Git-Tag: take07~16^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a675778f04b4af0034d3b0c400fdc43629e62d2;p=thirdparty%2Fsquid.git Portability fix: properly detect Iphlpapi.h on windows --- diff --git a/configure.ac b/configure.ac index 23c0bab15f..c13296a1c9 100644 --- a/configure.ac +++ b/configure.ac @@ -1042,8 +1042,8 @@ if test "x${enable_eui:=yes}" = "xyes" ; then AC_MSG_WARN([EUI support probably will not work on host $host.]) ;; esac + #Iphlpapi.h check delayed after winsock2.h AC_CHECK_HEADERS( \ - Iphlpapi.h \ net/if_dl.h \ sys/sockio.h \ sys/param.h @@ -2508,6 +2508,10 @@ AC_SEARCH_LIBS([yp_match], [nsl nss_nis nss_nisplus]) dnl Check for Winsock only on MinGW, on Cygwin we must use emulated BSD socket API if test "x$squid_host_os" = "xmingw" ; then SQUID_CHECK_WINSOCK_LIB + AC_CHECK_HEADERS(Iphlpapi.h,,,[ +#if HAVE_WINSOCK2_H +#include +#endif]) fi # check that we have unix sockets