X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=696903e91cab32b218d38147578a821a189e6f74;hb=278b079946ce138ecda5f270d937476c9d3946ba;hp=3c872a06d1bf51a2e6bdc5b91b5a84eb93baa475;hpb=47b7bd98bbdb0df6471fb40b084bb5f255c91237;p=catta diff --git a/configure.ac b/configure.ac index 3c872a0..696903e 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,13 @@ fi # Windows stuff AC_CHECK_DECL(_WIN32) AM_CONDITIONAL([WINDOWS], [ test "x$ac_cv_have_decl__WIN32" = "xyes" ]) +if test "x$ac_cv_have_decl__WIN32" = "xyes" ; then + CPPFLAGS="$CPPFLAGS -I`pwd`/src/compat/windows/include" +fi +AC_CHECK_MEMBER([struct in_pktinfo.ipi_spec_dst], + AC_DEFINE([HAVE_IPI_SPEC_DST], [], [struct in_pktinfo has ipi_spec_dst member]), + [], + [[#include ]]) # -fstack-protector AC_ARG_ENABLE([stack-protector], @@ -275,7 +282,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/ # Checks for library functions. AC_FUNC_SELECT_ARGTYPES -AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy]) +AC_CHECK_FUNCS([gethostname select socket uname strcasecmp gettimeofday strncasecmp strlcpy fcntl]) AC_FUNC_CHOWN AC_FUNC_STAT