Return to config.m4 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / sysvsem |
1.1 ! misho 1: dnl ! 2: dnl $Id: config.m4 242949 2007-09-26 15:44:16Z cvs2svn $ ! 3: dnl ! 4: ! 5: PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support, ! 6: [ --enable-sysvsem Enable System V semaphore support]) ! 7: ! 8: if test "$PHP_SYSVSEM" != "no"; then ! 9: PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared) ! 10: AC_DEFINE(HAVE_SYSVSEM, 1, [ ]) ! 11: AC_CACHE_CHECK(for union semun,php_cv_semun, ! 12: AC_TRY_COMPILE([ ! 13: #include <sys/types.h> ! 14: #include <sys/ipc.h> ! 15: #include <sys/sem.h> ! 16: ], ! 17: [union semun x;], ! 18: [ ! 19: php_cv_semun=yes ! 20: ],[ ! 21: php_cv_semun=no ! 22: ]) ! 23: ) ! 24: if test "$php_cv_semun" = "yes"; then ! 25: AC_DEFINE(HAVE_SEMUN, 1, [ ]) ! 26: else ! 27: AC_DEFINE(HAVE_SEMUN, 0, [ ]) ! 28: fi ! 29: fi