Add SLiRP support to SheepShaver for Windows

This commit is contained in:
gbeauche 2006-05-02 19:35:39 +00:00
parent 22110cb4f3
commit 8123813cad
3 changed files with 19 additions and 1 deletions

View File

@ -56,7 +56,10 @@ AC_CHECK_TYPES(loff_t)
AC_TYPE_SIZE_T
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 to be put into the config.h file
@ -171,6 +174,19 @@ AC_EGREP_CPP(xyes,
#endif
], [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
CPUSRCS="\
../kpx_cpu/src/mathlib/ieeefp.cpp \

View File

@ -38,6 +38,7 @@ user_string_def platform_strings[] = {
{STR_DR_EMULATOR_MMAP_ERR, "Cannot map DR Emulator: %s."},
{STR_SHEEP_MEM_MMAP_ERR, "Cannot map SheepShaver Data area: %s."},
{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_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."},
{STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."},

View File

@ -34,6 +34,7 @@ enum {
STR_SIGSEGV_INSTALL_ERR,
STR_NO_XVISUAL_ERR,
STR_VOSF_INIT_ERR,
STR_SLIRP_NO_DNS_FOUND_WARN,
STR_NO_AUDIO_WARN,
STR_KEYCODE_FILE_WARN,
STR_KEYCODE_VENDOR_WARN,