X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=configure.ac;h=6820114ece89abb0a0564a145aa61693ac5e5a28;hp=45ccfc4752bee029923710bb3bbfb73270251df0;hb=1a9061caa8fe73b4b34a37fe467e145bba7bd2f5;hpb=41f8dd670e963aad94527ce2be0486268993a477 diff --git a/configure.ac b/configure.ac index 45ccfc4..6820114 100644 --- a/configure.ac +++ b/configure.ac @@ -294,6 +294,12 @@ then AC_MSG_WARN([Missing QT4 ($website)])]) fi +if test x$WIN32 = xyes +then + # On Windows, sockets are in the ws2_32 library. + LIBS="$LIBS -lws2_32" +fi + if test x$missing = xyes then AC_MSG_ERROR([You are missing some required libraries.]) @@ -306,7 +312,7 @@ AC_MSG_NOTICE([Checks for header files.]) AC_HEADER_STDBOOL AC_HEADER_STDC -AC_CHECK_HEADERS([byteswap.h stddef.h stdint.h stdlib.h string.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h byteswap.h fcntl.h stddef.h stdint.h stdlib.h string.h unistd.h]) BOOST_SMART_PTR BOOST_STRING_ALGO @@ -339,7 +345,7 @@ AC_MSG_NOTICE([Checks for library functions.]) AC_FUNC_ERROR_AT_LINE AC_FUNC_STRTOD -AC_CHECK_FUNCS([nanosleep strchr strcspn strrchr strstr]) +AC_CHECK_FUNCS([fcntl ioctl nanosleep strchr strcspn strrchr strstr]) if test x$clock_gettime = xyes then