mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-03 21:29:03 +00:00
Add SLiRP support to SheepShaver for Windows
This commit is contained in:
parent
22110cb4f3
commit
8123813cad
@ -56,7 +56,10 @@ AC_CHECK_TYPES(loff_t)
|
|||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_CHECK_FUNCS(exp2f log2f exp2 log2 trunc)
|
AC_CHECK_FUNCS(strdup strerror)
|
||||||
|
AC_CHECK_FUNCS(exp2f log2f exp2 log2)
|
||||||
|
AC_CHECK_FUNCS(floorf roundf ceilf truncf)
|
||||||
|
AC_CHECK_FUNCS(floor round ceil trunc)
|
||||||
|
|
||||||
dnl Define a macro that translates a yesno-variable into a C macro definition
|
dnl Define a macro that translates a yesno-variable into a C macro definition
|
||||||
dnl to be put into the config.h file
|
dnl to be put into the config.h file
|
||||||
@ -171,6 +174,19 @@ AC_EGREP_CPP(xyes,
|
|||||||
#endif
|
#endif
|
||||||
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
|
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
|
||||||
|
|
||||||
|
dnl Add -fno-strict-aliasing for slirp sources
|
||||||
|
if [[ "x$HAVE_GCC30" = "xyes" ]]; then
|
||||||
|
SAVED_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||||
|
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
|
||||||
|
ac_cv_gcc_no_strict_aliasing, [
|
||||||
|
AC_TRY_COMPILE([],[],
|
||||||
|
[ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
|
||||||
|
[ac_cv_gcc_no_strict_aliasing=no])
|
||||||
|
])
|
||||||
|
CFLAGS="$SAVED_CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl CPU emulator sources
|
dnl CPU emulator sources
|
||||||
CPUSRCS="\
|
CPUSRCS="\
|
||||||
../kpx_cpu/src/mathlib/ieeefp.cpp \
|
../kpx_cpu/src/mathlib/ieeefp.cpp \
|
||||||
|
@ -38,6 +38,7 @@ user_string_def platform_strings[] = {
|
|||||||
{STR_DR_EMULATOR_MMAP_ERR, "Cannot map DR Emulator: %s."},
|
{STR_DR_EMULATOR_MMAP_ERR, "Cannot map DR Emulator: %s."},
|
||||||
{STR_SHEEP_MEM_MMAP_ERR, "Cannot map SheepShaver Data area: %s."},
|
{STR_SHEEP_MEM_MMAP_ERR, "Cannot map SheepShaver Data area: %s."},
|
||||||
{STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."},
|
{STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."},
|
||||||
|
{STR_SLIRP_NO_DNS_FOUND_WARN, "Cannot get DNS address. Ethernet will not be available."},
|
||||||
{STR_NO_AUDIO_WARN, "No audio device found, audio output will be disabled."},
|
{STR_NO_AUDIO_WARN, "No audio device found, audio output will be disabled."},
|
||||||
{STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."},
|
{STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."},
|
||||||
{STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."},
|
{STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."},
|
||||||
|
@ -34,6 +34,7 @@ enum {
|
|||||||
STR_SIGSEGV_INSTALL_ERR,
|
STR_SIGSEGV_INSTALL_ERR,
|
||||||
STR_NO_XVISUAL_ERR,
|
STR_NO_XVISUAL_ERR,
|
||||||
STR_VOSF_INIT_ERR,
|
STR_VOSF_INIT_ERR,
|
||||||
|
STR_SLIRP_NO_DNS_FOUND_WARN,
|
||||||
STR_NO_AUDIO_WARN,
|
STR_NO_AUDIO_WARN,
|
||||||
STR_KEYCODE_FILE_WARN,
|
STR_KEYCODE_FILE_WARN,
|
||||||
STR_KEYCODE_VENDOR_WARN,
|
STR_KEYCODE_VENDOR_WARN,
|
||||||
|
Loading…
Reference in New Issue
Block a user