From: Antony Dovgal Date: Thu, 24 Aug 2006 13:18:15 +0000 (+0000) Subject: sys/msg.h does not exist on MacOS X, we need to detect it in configure X-Git-Tag: RELEASE_1_0_0RC1~1889 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf9c5455135b43a28092137405265367ce0cc09b;p=php sys/msg.h does not exist on MacOS X, we need to detect it in configure --- diff --git a/ext/sysvmsg/config.m4 b/ext/sysvmsg/config.m4 index 28f03e76d9..4ae8a2e696 100644 --- a/ext/sysvmsg/config.m4 +++ b/ext/sysvmsg/config.m4 @@ -4,6 +4,11 @@ PHP_ARG_ENABLE(sysvmsg,whether to enable System V IPC support, [ --enable-sysvmsg Enable sysvmsg support]) if test "$PHP_SYSVMSG" != "no"; then + AC_CHECK_HEADER([sys/msg.h], + [], + [AC_MSG_ERROR([Cannot enable System V IPC support, sys/msg.h is missing]) + ]) + AC_DEFINE(HAVE_SYSVMSG, 1, [ ]) PHP_NEW_EXTENSION(sysvmsg, sysvmsg.c, $ext_shared) fi