mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-24 10:32:32 +00:00
Merge pull request #52 from rakslice/ac_fixes
Windows configure.ac fixes
This commit is contained in:
commit
6f87eaca84
@ -280,10 +280,13 @@ if [[ "x$HAVE_GCC30" = "xyes" ]]; then
|
|||||||
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
|
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
|
||||||
ac_cv_gcc_no_strict_aliasing, [
|
ac_cv_gcc_no_strict_aliasing, [
|
||||||
AC_TRY_COMPILE([],[],
|
AC_TRY_COMPILE([],[],
|
||||||
[ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
|
[ac_cv_gcc_no_strict_aliasing=yes],
|
||||||
[ac_cv_gcc_no_strict_aliasing=no])
|
[ac_cv_gcc_no_strict_aliasing=no])
|
||||||
])
|
])
|
||||||
CFLAGS="$SAVED_CFLAGS"
|
CFLAGS="$SAVED_CFLAGS"
|
||||||
|
if test "x$ac_cv_gcc_no_strict_aliasing" = xyes; then
|
||||||
|
AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Select appropriate CPU source and REGPARAM define.
|
dnl Select appropriate CPU source and REGPARAM define.
|
||||||
@ -540,7 +543,8 @@ CPUINCLUDES="-I../uae_cpu"
|
|||||||
CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp $FPUSRCS cpustbl.cpp cpudefs.cpp $CPUSRCS $JITSRCS"
|
CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp $FPUSRCS cpustbl.cpp cpudefs.cpp $CPUSRCS $JITSRCS"
|
||||||
|
|
||||||
dnl We really want SDL for now
|
dnl We really want SDL for now
|
||||||
AC_CHECK_TOOL(sdl_config, sdl2-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
|
AC_CHECK_TOOL(sdl_config, sdl2-config, no)
|
||||||
|
AS_IF([test "x$sdl_config" = xno], [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
|
||||||
SDL_CFLAGS=`$sdl_config --cflags`
|
SDL_CFLAGS=`$sdl_config --cflags`
|
||||||
AC_SUBST(SDL_CFLAGS)
|
AC_SUBST(SDL_CFLAGS)
|
||||||
#if [[ "x$WANT_SDL_STATIC" = "xyes" ]]; then
|
#if [[ "x$WANT_SDL_STATIC" = "xyes" ]]; then
|
||||||
|
@ -189,10 +189,13 @@ if [[ "x$HAVE_GCC30" = "xyes" ]]; then
|
|||||||
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
|
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
|
||||||
ac_cv_gcc_no_strict_aliasing, [
|
ac_cv_gcc_no_strict_aliasing, [
|
||||||
AC_TRY_COMPILE([],[],
|
AC_TRY_COMPILE([],[],
|
||||||
[ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
|
[ac_cv_gcc_no_strict_aliasing=yes],
|
||||||
[ac_cv_gcc_no_strict_aliasing=no])
|
[ac_cv_gcc_no_strict_aliasing=no])
|
||||||
])
|
])
|
||||||
CFLAGS="$SAVED_CFLAGS"
|
CFLAGS="$SAVED_CFLAGS"
|
||||||
|
if test "x$ac_cv_gcc_no_strict_aliasing" = xyes; then
|
||||||
|
AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
@ -272,7 +275,8 @@ dnl Use the dummy prefs file.
|
|||||||
CPUSRCS="$CPUSRCS ../dummy/prefs_dummy.cpp"
|
CPUSRCS="$CPUSRCS ../dummy/prefs_dummy.cpp"
|
||||||
|
|
||||||
dnl We really want SDL for now
|
dnl We really want SDL for now
|
||||||
AC_CHECK_TOOL(sdl_config, sdl2-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
|
AC_CHECK_TOOL(sdl_config, sdl2-config, no)
|
||||||
|
AS_IF([test "x$sdl_config" = xno], [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
|
||||||
SDL_CFLAGS=`$sdl_config --cflags`
|
SDL_CFLAGS=`$sdl_config --cflags`
|
||||||
AC_SUBST(SDL_CFLAGS)
|
AC_SUBST(SDL_CFLAGS)
|
||||||
SDL_LIBS=`$sdl_config --static-libs`
|
SDL_LIBS=`$sdl_config --static-libs`
|
||||||
|
Loading…
Reference in New Issue
Block a user