mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
ae5222ac23
Alligned 'Enable sysvmsg support' message.
36 lines
937 B
Plaintext
36 lines
937 B
Plaintext
dnl $Id$
|
|
|
|
PHP_ARG_ENABLE(sysvmsg,whether to enable System V IPC support,
|
|
[ --enable-sysvmsg Enable sysvmsg support])
|
|
|
|
if test "$PHP_SYSVMSG" != "no"; then
|
|
AC_MSG_CHECKING([whether sys/msg.h defines struct msgbuf or mymsg])
|
|
AC_TRY_COMPILE(
|
|
[#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/msg.h>],
|
|
[struct msgbuf *foo;
|
|
|
|
foo = (struct msgbuf *) malloc(sizeof(struct msgbuf*) +1);
|
|
return 1;],
|
|
[AC_MSG_RESULT(msgbuf)],
|
|
[AC_TRY_COMPILE(
|
|
[#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/msg.h>
|
|
],
|
|
[struct mymsg *foo;
|
|
|
|
foo = (struct mymsg *) malloc(sizeof(struct mymsg*) +1);
|
|
return 1;
|
|
],
|
|
[AC_DEFINE(msgbuf, mymsg, [msgbuf is called mymsg])
|
|
AC_MSG_RESULT(mymsg)
|
|
],
|
|
[AC_MSG_ERROR([none. Cannot make sysvmsg module])
|
|
])
|
|
])
|
|
AC_DEFINE(HAVE_SYSVMSG, 1, [ ])
|
|
PHP_NEW_EXTENSION(sysvmsg, sysvmsg.c, $ext_shared)
|
|
fi
|