]> granicus.if.org Git - php/commitdiff
sys/msg.h does not exist on MacOS X
authorAntony Dovgal <tony2001@php.net>
Thu, 24 Aug 2006 13:18:24 +0000 (13:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 24 Aug 2006 13:18:24 +0000 (13:18 +0000)
ext/sysvmsg/config.m4

index 28f03e76d9484014285019bdcc40aaef5dc84dd8..4ae8a2e6962b436c2fdfb63e498334308dd696ef 100644 (file)
@@ -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