Annotation of embedaddon/php/ext/sockets/config.m4, revision 1.1.1.2

1.1       misho       1: dnl
1.1.1.2 ! misho       2: dnl $Id$
1.1       misho       3: dnl
                      4: 
                      5: PHP_ARG_ENABLE(sockets, whether to enable sockets support,
                      6: [  --enable-sockets        Enable sockets support])
                      7: 
                      8: if test "$PHP_SOCKETS" != "no"; then
                      9:   dnl Check for struct cmsghdr
                     10:   AC_CACHE_CHECK([for struct cmsghdr], ac_cv_cmsghdr,
                     11:   [
                     12:     AC_TRY_COMPILE([
                     13: #include <sys/types.h>
                     14: #include <sys/socket.h>], [struct cmsghdr s; s], ac_cv_cmsghdr=yes, ac_cv_cmsghdr=no)
                     15:   ])
                     16: 
                     17:   if test "$ac_cv_cmsghdr" = yes; then
                     18:     AC_DEFINE(HAVE_CMSGHDR,1,[Whether you have struct cmsghdr])
                     19:   fi 
                     20: 
1.1.1.2 ! misho      21:   AC_CHECK_FUNCS([hstrerror socketpair if_nametoindex if_indextoname])
        !            22:   AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h]) 
1.1       misho      23:   AC_TRY_COMPILE([
                     24: #include <sys/types.h>
                     25: #include <sys/socket.h>
                     26:   ], [static struct msghdr tp; int n = (int) tp.msg_flags; return n],[],
                     27:     [AC_DEFINE(MISSING_MSGHDR_MSGFLAGS, 1, [ ])]
                     28:   )
                     29:   AC_DEFINE([HAVE_SOCKETS], 1, [ ])
                     30: 
1.1.1.2 ! misho      31:   PHP_NEW_EXTENSION([sockets], [sockets.c multicast.c], [$ext_shared])
1.1       misho      32:   PHP_INSTALL_HEADERS([ext/sockets/], [php_sockets.h])
                     33: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>