config.m4 651 B

12345678910111213141516171819202122232425
  1. dnl config.m4 for extension sysvsem
  2. PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support,
  3. [ --enable-sysvsem Enable System V semaphore support])
  4. if test "$PHP_SYSVSEM" != "no"; then
  5. PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
  6. AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
  7. AC_CACHE_CHECK(for union semun,php_cv_semun,
  8. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  9. #include <sys/types.h>
  10. #include <sys/ipc.h>
  11. #include <sys/sem.h>
  12. ]], [[union semun x;]])],[
  13. php_cv_semun=yes
  14. ],[
  15. php_cv_semun=no
  16. ])
  17. )
  18. if test "$php_cv_semun" = "yes"; then
  19. AC_DEFINE(HAVE_SEMUN, 1, [ ])
  20. else
  21. AC_DEFINE(HAVE_SEMUN, 0, [ ])
  22. fi
  23. fi