mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
3693ad2d93
The union semun is always defined in php-src code. Current systems require user to define it manually as done in the ext/sysvsem/sysvsem.c. The conditional checks for HAVE_SEMUN were unused. The PHP 3.0.12 AIX bug bugs.php.net/2149 was fixed by the removal of __GNU_LIBRARY__ check, so this now further simplifies the code. The Autoconf AC_CHECK_TYPES checks if system by any chance has the union semun, and by default defines the HAVE_UNION_SEMUN.
13 lines
394 B
Plaintext
13 lines
394 B
Plaintext
PHP_ARG_ENABLE([sysvsem],
|
|
[whether to enable System V semaphore support],
|
|
[AS_HELP_STRING([--enable-sysvsem],
|
|
[Enable System V semaphore support])])
|
|
|
|
if test "$PHP_SYSVSEM" != "no"; then
|
|
PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
|
|
AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
|
|
AC_CHECK_TYPES([union semun],,,[#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/sem.h>])
|
|
fi
|