summaryrefslogtreecommitdiff
path: root/ext/sockets/config.m4
blob: 3229fce9078cebb3db2eaa32c339eea2a338b2a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl
dnl $Id$
dnl

PHP_ARG_ENABLE(sockets, whether to enable sockets support,
[  --enable-sockets        Enable sockets support])

if test "$PHP_SOCKETS" != "no"; then

  AC_CHECK_FUNCS(hstrerror)
  AC_CHECK_HEADERS(netdb.h netinet/tcp.h sys/un.h errno.h)
  AC_CHECK_MEMBER(struct msghdr.msg_flags, , AC_DEFINE(MISSING_MSGHDR_MSGFLAGS, 1, [ ]))
  AC_DEFINE(HAVE_SOCKETS, 1, [ ])

  PHP_NEW_EXTENSION(sockets, sockets.c, $ext_shared)
fi