version 1.90, 2011/09/20 19:31:15
|
version 1.91, 2011/09/21 09:09:21
|
Line 211 if test "$enableval" = "no"; then
|
Line 211 if test "$enableval" = "no"; then
|
else |
else |
IPCS_SYSV=yes |
IPCS_SYSV=yes |
fi], |
fi], |
[AC_MSG_CHECKING([for POSIX semaphores]) |
REG=$LDFLAGS |
|
LDFLAGS=-lrt |
|
[AC_MSG_CHECKING([for POSIX semaphores and shared objects]) |
AC_RUN_IFELSE( |
AC_RUN_IFELSE( |
[AC_LANG_PROGRAM([#include <sys/mman.h> |
[AC_LANG_PROGRAM([#include <sys/mman.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <fcntl.h> |
#include <fcntl.h> |
], |
], |
[ int fd; char *sem = "/sem.test"; |
[ int fd; char *sem = "/test"; |
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
close(fd); |
close(fd); |
shm_unlink(sem); |
shm_unlink(sem); |
|
fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); |
|
close(fd); |
|
sem_unlink(sem); |
return(0); |
return(0); |
])], |
])], |
[IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)], |
[IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)], |
[IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)] |
[IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)] |
)] |
)] |
|
LDFLAGS=$REG |
) |
) |
|
|
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |