Overview
Comment: | Fix IPv6 check. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c667d3961634c2e930de962b7084842e |
User & Date: | js on 2008-12-13 19:39:30 |
Other Links: | manifest | tags |
Context
2008-12-13
| ||
19:43 |
Add ${PROG_SUFFIX} to test binaries & symlinks. One day, we can run those tests with wine when crossbuilding and native when building using cygwin. check-in: 034b0dc532 user: js tags: trunk | |
19:39 | Fix IPv6 check. check-in: c667d39616 user: js tags: trunk | |
19:25 | Initial attempt to port to win32. check-in: 142572f90b user: js tags: trunk | |
Changes
Modified configure.ac from [9d1cb91406] to [b75bd90040].
︙ | ︙ | |||
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \ AC_ERROR(You need either sel_get_name or sel_getName in libobjc!) AC_CHECK_FUNC(asprintf, AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")) AC_MSG_CHECKING(whether we have IPv6 support) AC_TRY_RUN([ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> int main() { int fd; struct sockaddr_in6 addr; fd = socket(AF_INET6, SOCK_STREAM, 0); exit(fd >= 0 ? 0 : 1); }], have_ipv6="yes", have_ipv6="no", have_ipv6="no") AC_MSG_RESULT($have_ipv6) test x"$have_ipv6" = x"yes" && \ AC_DEFINE(HAVE_IPV6, 1, "Whether we have IPv6 support") | > > > > > > > > | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \ AC_ERROR(You need either sel_get_name or sel_getName in libobjc!) AC_CHECK_FUNC(asprintf, AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")) AC_MSG_CHECKING(whether we have IPv6 support) AC_TRY_RUN([ #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> int main() { int fd; struct sockaddr_in6 addr; fd = socket(AF_INET6, SOCK_STREAM, 0); /* Do something with it to prevent an error due to -Werror */ memset(&addr, 0, sizeof(addr)); exit(fd >= 0 ? 0 : 1); }], have_ipv6="yes", have_ipv6="no", have_ipv6="no") AC_MSG_RESULT($have_ipv6) test x"$have_ipv6" = x"yes" && \ AC_DEFINE(HAVE_IPV6, 1, "Whether we have IPv6 support") |
︙ | ︙ |