mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_ENABLE("sockets", "SOCKETS support", "no");
|
|
|
|
if (PHP_SOCKETS != "no") {
|
|
if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)
|
|
&& CHECK_LIB("Iphlpapi.lib", "sockets", PHP_SOCKETS)
|
|
&& CHECK_HEADER_ADD_INCLUDE("winsock.h", "CFLAGS_SOCKETS")) {
|
|
EXTENSION('sockets', 'sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c');
|
|
AC_DEFINE('HAVE_SOCKETS', 1);
|
|
PHP_INSTALL_HEADERS("ext/sockets", "php_sockets.h");
|
|
} else {
|
|
WARNING("sockets not enabled; libraries and headers not found");
|
|
}
|
|
}
|
|
|