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

Comparing SheepShaver/src/Unix/configure.ac (file contents):
Revision 1.26 by gbeauche, 2005-06-22T12:32:32Z vs.
Revision 1.31 by gbeauche, 2005-07-01T06:16:00Z

# Line 185 | Line 185 | no:linux*|no:netbsd*)
185    AC_CHECK_LIB(pthread, pthread_create, , [
186      AC_CHECK_LIB(c_r, pthread_create, , [
187        AC_CHECK_LIB(PTL, pthread_create, , [
188 <        AC_MSG_ERROR([You need pthreads to run Basilisk II.])
188 >        dnl XXX remove when no pthreads case is merged
189 >        AC_MSG_ERROR([You need pthreads to run SheepShaver.])
190 >        HAVE_PTHREADS=no
191        ])
192      ])
193    ])
194    AC_CHECK_FUNCS(pthread_cancel)
195 +  AC_CHECK_FUNCS(pthread_cond_init)
196    AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
197    AC_CHECK_FUNCS(pthread_mutexattr_settype)
198    AC_CHECK_FUNCS(pthread_mutexattr_setpshared)
196  if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
197    AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
198  fi
199    dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.
200    SEMSRC=
201    AC_CHECK_FUNCS(sem_init, , [
# Line 205 | Line 205 | no:linux*|no:netbsd*)
205    ])
206    ;;
207   esac
208 + if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
209 +  AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
210 + fi
211  
212   dnl We use FBDev DGA if possible.
213   if [[ "x$WANT_FBDEV_DGA" = "xyes" ]]; then
# Line 295 | Line 298 | AC_SYS_LARGEFILE
298   dnl Checks for header files.
299   AC_HEADER_STDC
300   AC_HEADER_SYS_WAIT
301 < AC_CHECK_HEADERS(malloc.h)
301 > AC_CHECK_HEADERS(malloc.h stdint.h)
302   AC_CHECK_HEADERS(mach/vm_map.h mach/mach_init.h sys/mman.h)
303   AC_CHECK_HEADERS(sys/time.h sys/times.h sys/socket.h)
304   AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h dirent.h)
# Line 346 | Line 349 | AC_CHECK_FUNCS(nanosleep)
349   AC_CHECK_FUNCS(sigaction signal)
350   AC_CHECK_FUNCS(mmap mprotect munmap)
351   AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect)
349 AC_CHECK_FUNCS(posix_memalign memalign valloc)
352   AC_CHECK_FUNCS(exp2f log2f exp2 log2)
353   AC_CHECK_FUNCS(floorf roundf ceilf truncf floor round ceil trunc)
354  
# Line 1194 | Line 1196 | AC_CACHE_CHECK([the format of compiler g
1196    rm -rf conftest*
1197   ])
1198  
1199 + dnl Add -mdynamic-no-pic for MacOS X
1200 + if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1201 +  SAVED_CFLAGS="$CFLAGS"
1202 +  CFLAGS="$CFLAGS -mdynamic-no-pic"
1203 +  AC_CACHE_CHECK([whether the compiler supports -mdynamic-no-pic],
1204 +    ac_cv_gcc_mdynamic_no_pic, [
1205 +    AC_TRY_COMPILE([],[],[ac_cv_gcc_mdynamic_no_pic=yes],[ac_cv_gcc_mdynamic_no_pic=no])
1206 +  ])
1207 +  if [[ "x$ac_cv_gcc_mdynamic_no_pic" = "xyes" ]]; then
1208 +    CXXFLAGS="$CXXFLAGS -mdynamic-no-pic"
1209 +  else
1210 +    CFLAGS="$SAVED_CFLAGS"
1211 +  fi
1212 + fi
1213 +
1214   dnl CPU emulator sources
1215   if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1216    CPUSRCS="\
# Line 1239 | Line 1256 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1256            done
1257          fi
1258        fi
1259 <      if [[ -z "$DYNGEN_CC" ]] || ! { echo '#include <limits>' | $DYNGEN_CC -xc++ -c -o /dev/null - >& /dev/null; }; then
1259 >      if [[ -z "$DYNGEN_CC" ]]; then
1260          ac_cv_use_dyngen=no
1261        fi
1262      ])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines