summaryrefslogtreecommitdiff
path: root/ext/sysvmsg/config.m4
blob: 3731fe9940d121000c69a634f53bc95e7800b2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl config.m4 for extension sysvmsg

PHP_ARG_ENABLE([sysvmsg],
  [whether to enable System V IPC support],
  [AS_HELP_STRING([--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