222 |
|
CAN_NATIVE_M68K=no |
223 |
|
case "$target_os" in |
224 |
|
linux*) |
225 |
< |
ETHERSRC=Linux/ether_linux.cpp |
226 |
< |
SCSISRC=Linux/scsi_linux.cpp |
225 |
> |
ETHERSRC=ether_unix.cpp |
226 |
|
AUDIOSRC=audio_oss_esd.cpp |
227 |
+ |
SCSISRC=Linux/scsi_linux.cpp |
228 |
|
;; |
229 |
< |
freebsd*3.*) |
229 |
> |
freebsd*) |
230 |
> |
ETHERSRC=ether_unix.cpp |
231 |
|
AUDIOSRC=audio_oss_esd.cpp |
232 |
|
DEFINES="$DEFINES -DBSD_COMP" |
233 |
+ |
CXXFLAGS="$CXXFLAGS -fpermissive" |
234 |
|
dnl Check for the CAM library |
235 |
|
AC_CHECK_LIB(cam, cam_open_btl, HAVE_LIBCAM=yes, HAVE_LIBCAM=no) |
236 |
|
if [[ "x$HAVE_LIBCAM" = "xno" ]]; then |
237 |
|
AC_MSG_WARN([Cannot find libcam for SCSI management, disabling SCSI support.]) |
238 |
|
else |
239 |
|
dnl Check for the sys kernel includes |
240 |
< |
AC_CHECK_HEADER(/sys/cam/cam.h) |
241 |
< |
if [[ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]]; then |
240 |
> |
AC_CHECK_HEADER(camlib.h) |
241 |
> |
if [[ "x$ac_cv_header_camlib_h" = "xno" ]]; then |
242 |
|
dnl In this case I should fix this thing including a "patch" |
243 |
|
dnl to access directly to the functions in the kernel :) --Orlando |
244 |
< |
AC_MSG_WARN([Cannot find kernel includes for CAM library, disabling SCSI support.]) |
244 |
> |
AC_MSG_WARN([Cannot find includes for CAM library, disabling SCSI support.]) |
245 |
|
else |
246 |
|
SCSISRC=FreeBSD/scsi_freebsd.cpp |
245 |
– |
CXXFLAGS="$CXXFLAGS -I/sys" |
246 |
– |
CFLAGS="$CFLAGS -I/sys" |
247 |
|
LIBS="$LIBS -lcam" |
248 |
|
DEFINES="$DEFINES -DCAM" |
249 |
|
fi |
250 |
|
fi |
251 |
|
;; |
252 |
– |
freebsd*) |
253 |
– |
DEFINES="$DEFINES -DBSD_COMP" |
254 |
– |
dnl Check for the SCSI library |
255 |
– |
AC_CHECK_LIB(scsi, scsi_open, HAVE_LIBSCSI=yes, HAVE_LIBSCSI=no) |
256 |
– |
if [[ "x$HAVE_LIBSCSI" = "xno" ]]; then |
257 |
– |
AC_MSG_WARN([Cannot find libscsi for SCSI management, disabling SCSI support.]) |
258 |
– |
else |
259 |
– |
dnl Check for the sys kernel includes |
260 |
– |
AC_CHECK_HEADER(scsi.h sys/scsiio.h) |
261 |
– |
if [[ "x$ac_cv_header_scsi_h" = "xno" ]]; then |
262 |
– |
AC_MSG_WARN([Cannot find includes for the SCSI library, disabling SCSI support.]) |
263 |
– |
else |
264 |
– |
SCSISRC=FreeBSD/scsi_freebsd.cpp |
265 |
– |
LIBS="$LIBS -lscsi" |
266 |
– |
fi |
267 |
– |
fi |
268 |
– |
;; |
252 |
|
netbsd*) |
253 |
|
CAN_NATIVE_M68K=yes |
254 |
|
;; |
568 |
|
ASM_OPTIMIZATIONS=none |
569 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |
570 |
|
FPUSRCS="../uae_cpu/fpp.cpp" |
571 |
< |
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
571 |
> |
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" -a "x$OS_TYPE" != "xfreebsd" ]]; then |
572 |
|
dnl i386 CPU |
573 |
|
DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\"" |
574 |
|
if [[ "x$HAVE_GAS" = "xyes" ]]; then |