version 1.86, 2011/09/16 17:47:07
|
version 1.87, 2011/09/16 17:56:04
|
Line 215 fi],
|
Line 215 fi],
|
AC_COMPILE_IFELSE( |
AC_COMPILE_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 = "/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); |
Line 230 fd = shm_open(sem , O_CREAT | O_RDWR, S_
|
Line 231 fd = shm_open(sem , O_CREAT | O_RDWR, S_
|
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
REG=$LDFLAGS |
REG=$LDFLAGS |
LDFLAGS=-pthread |
LDFLAGS=-pthread |
AC_MSG_CHECKING([for POSIX anonymous semaphores]) |
[AC_MSG_CHECKING([for POSIX anonymous semaphores]) |
AC_RUN_IFELSE( |
AC_RUN_IFELSE( |
[AC_LANG_PROGRAM([#include <semaphore.h> |
[AC_LANG_PROGRAM([#include <semaphore.h> |
], |
], |