|
|
| version 1.1, 2012/02/21 23:48:01 | version 1.1.1.2, 2012/05/29 12:34:42 |
|---|---|
| Line 18 if test "$PHP_SOCKETS" != "no"; then | Line 18 if test "$PHP_SOCKETS" != "no"; then |
| AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr]) | AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr]) |
| fi | fi |
| AC_CHECK_FUNCS([hstrerror socketpair]) | AC_CHECK_FUNCS([hstrerror socketpair if_nametoindex if_indextoname]) |
| AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h errno.h]) | AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h]) |
| AC_TRY_COMPILE([ | AC_TRY_COMPILE([ |
| #include <sys/types.h> | #include <sys/types.h> |
| #include <sys/socket.h> | #include <sys/socket.h> |
| Line 28 if test "$PHP_SOCKETS" != "no"; then | Line 28 if test "$PHP_SOCKETS" != "no"; then |
| ) | ) |
| AC_DEFINE([HAVE_SOCKETS], 1, [ ]) | AC_DEFINE([HAVE_SOCKETS], 1, [ ]) |
| PHP_NEW_EXTENSION([sockets], [sockets.c], [$ext_shared]) | PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c], [$ext_shared]) |
| PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h]) | PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h]) |
| fi | fi |