config.m4 613 B

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