77 |
|
if [[ "x$ac_cv_func_sem_init" = "xno" ]]; then |
78 |
|
AC_CHECK_LIB(posix4, sem_init, HAVE_LIBPOSIX4=yes, HAVE_LIBPOSIX4=no) |
79 |
|
if [[ "x$HAVE_LIBPOSIX4" = "xno" ]]; then |
80 |
< |
dnl Checks for the existance of semget |
81 |
< |
AC_CHECK_FUNCS(semget) |
82 |
< |
if [[ "x$ac_cv_func_semget" = "xno" ]]; then |
83 |
< |
AC_MSG_ERROR([You need POSIX.4 semaphores to run Basilisk II.]) |
84 |
< |
else |
85 |
< |
SEMSRCS="posix_sem.cpp" |
86 |
< |
fi |
80 |
> |
dnl Emulate semaphores with pthread mutexes |
81 |
> |
SEMSRCS="posix_sem.cpp" |
82 |
|
else |
83 |
|
LIBS="$LIBS -lposix4" |
84 |
|
fi |