Re: cvs: php4 /ext/sockets config.m4

From: Date: Mon, 13 May 2002 22:19:03 +0000
Subject: Re: cvs: php4 /ext/sockets config.m4
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11937@lists.php.net to get a copy of this message
Sorry, I forgot that not everyone can run 2.5 yet, so I should have expanded it. -Jason On Sun, 2002-05-12 at 12:28, Sascha Schumann wrote: > sas Sun May 12 13:28:12 2002 EDT > > Modified files: > /php4/ext/sockets config.m4 > Log: > As far as I can tell, the AC_CHECK_MEMBER could not succeed, > because it does not include <sys/socket.h> which is necessary > for the definition of struct msghdr. This include file is not > part of ac_includes_default. > > Regardless, AC_CHECK_MEMBER is a autoconf-2.5x macro and thus we > expand it here for 2.13 compatibility. > > > Index: php4/ext/sockets/config.m4 > diff -u php4/ext/sockets/config.m4:1.9 php4/ext/sockets/config.m4:1.10 > --- php4/ext/sockets/config.m4:1.9 Sun May 12 03:22:47 2002 > +++ php4/ext/sockets/config.m4 Sun May 12 13:28:12 2002 > @@ -1,5 +1,5 @@ > dnl > -dnl $Id: config.m4,v 1.9 2002/05/12 07:22:47 jason Exp $ > +dnl $Id: config.m4,v 1.10 2002/05/12 17:28:12 sas Exp $ > dnl > > PHP_ARG_ENABLE(sockets, whether to enable sockets support, > @@ -7,10 +7,15 @@ > > 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, [ ]) > + AC_CHECK_FUNCS([hstrerror]) > + AC_CHECK_HEADERS([netdb.h netinet/tcp.h sys/un.h errno.h]) > + AC_TRY_COMPILE([ > +#include <sys/types.h> > +#include <sys/socket.h> > + ], [static struct msghdr tp; int n = (int) tp.msg_flags; return n], > + [AC_DEFINE(MISSING_MSGHDR_MSGFLAGS, 1, [ ])] > + ) > + AC_DEFINE([HAVE_SOCKETS], 1, [ ]) > > - PHP_NEW_EXTENSION(sockets, sockets.c, $ext_shared) > + PHP_NEW_EXTENSION([sockets], [sockets.c], [$ext_shared]) > fi > > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.cvs (#11937) next »