native NetBSD/ppc support

This commit is contained in:
gbeauche 2005-02-20 18:26:39 +00:00
parent c602bcb201
commit 4aa9a22f41

View File

@ -169,7 +169,7 @@ fi
dnl We need pthreads on non-PowerPC systems. Try libpthread first, then libc_r (FreeBSD), then PTL. dnl We need pthreads on non-PowerPC systems. Try libpthread first, then libc_r (FreeBSD), then PTL.
HAVE_PTHREADS=yes HAVE_PTHREADS=yes
case $EMULATED_PPC:$target_os in case $EMULATED_PPC:$target_os in
no:linux*) no:linux*|no:netbsd*)
dnl We do have our own pthread_cancel() implementation dnl We do have our own pthread_cancel() implementation
AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.]) AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.])
;; ;;
@ -401,12 +401,17 @@ linux*)
AUDIOSRC=audio_oss_esd.cpp AUDIOSRC=audio_oss_esd.cpp
SCSISRC=Linux/scsi_linux.cpp SCSISRC=Linux/scsi_linux.cpp
if [[ "x$EMULATED_PPC" = "xno" ]]; then if [[ "x$EMULATED_PPC" = "xno" ]]; then
EXTRASYSSRCS="Linux/paranoia.cpp Linux/sheepthreads.c Linux/asm_linux.S" EXTRASYSSRCS="Linux/paranoia.cpp Linux/sheepthreads.c ppc_asm.S"
fi
;;
netbsd*)
if [[ "x$EMULATED_PPC" = "xno" ]]; then
EXTRASYSSRCS="NetBSD/paranoia.cpp NetBSD/sheepthreads.c ppc_asm.S"
fi fi
;; ;;
darwin*) darwin*)
if [[ "x$EMULATED_PPC" = "xno" ]]; then if [[ "x$EMULATED_PPC" = "xno" ]]; then
EXTRASYSSRCS="Darwin/paranoia.cpp Linux/asm_linux.S" EXTRASYSSRCS="Darwin/paranoia.cpp ppc_asm.S"
fi fi
if [[ "x$ac_cv_framework_IOKit" = "xyes" ]]; then if [[ "x$ac_cv_framework_IOKit" = "xyes" ]]; then
EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/sys_darwin.cpp" EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/sys_darwin.cpp"