13 |
|
|
14 |
|
dnl Checks for programs. |
15 |
|
AC_PROG_CC |
16 |
+ |
AC_PROG_CPP |
17 |
|
AC_PROG_CXX |
18 |
|
AC_PROG_MAKE_SET |
19 |
|
AC_PROG_INSTALL |
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) |
81 |
< |
if [[ "x$ac_cv_func_semget" = "xno" ]]; then |
82 |
< |
AC_MSG_ERROR([You need POSIX.4 semaphores to run Basilisk II.]) |
83 |
< |
else |
84 |
< |
SEMSRCS="posix_sem.cpp" |
85 |
< |
fi |
80 |
> |
dnl Emulate semaphores with pthread mutexes |
81 |
> |
SEMSRCS="posix_sem.cpp" |
82 |
|
else |
83 |
|
LIBS="$LIBS -lposix4" |
84 |
|
fi |