ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.in
(Generate patch)

Comparing BasiliskII/src/Unix/configure.in (file contents):
Revision 1.3 by cebix, 1999-10-05T15:29:04Z vs.
Revision 1.6 by cebix, 1999-10-15T14:50:37Z

# Line 13 | Line 13 | AC_ARG_ENABLE(ui,  [  --enable-ui
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
# Line 34 | Line 35 | if [[ "x$HAVE_PTHREADS" = "xno" ]]; then
35    dnl Check even the libc_r (FreeBSD)
36    AC_CHECK_LIB(c_r, pthread_create, HAVE_PTHREADS=yes, HAVE_PTHREADS=no)
37    if [[ "x$HAVE_PTHREADS" = "xno" ]]; then
38 <     AC_MSG_ERROR([You need libpthreads to run Basilisk II.])
38 >    dnl Or maybe the user has PTL (NetBSD)
39 >    AC_CHECK_LIB(PTL, pthread_create, HAVE_PTHREADS=yes, HAVE_PTHREADS=no)
40 >    if [[ "x$HAVE_PTHREADS" = "xno" ]]; then
41 >      AC_MSG_ERROR([You need pthreads to run Basilisk II.])
42 >    else
43 >      LIBS="$LIBS -lPTL"
44 >    fi
45    else
46       LIBS="$LIBS -lc_r"
47    fi
# Line 76 | Line 83 | AC_CHECK_FUNCS(sem_init)
83   if [[ "x$ac_cv_func_sem_init" = "xno" ]]; then
84    AC_CHECK_LIB(posix4, sem_init, HAVE_LIBPOSIX4=yes, HAVE_LIBPOSIX4=no)
85    if [[ "x$HAVE_LIBPOSIX4" = "xno" ]]; then
86 <    dnl Checks for the existance of semget
87 <    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
86 >    dnl Emulate semaphores with pthread mutexes
87 >    SEMSRCS="posix_sem.cpp"
88    else
89      LIBS="$LIBS -lposix4"
90    fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines