mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 19:08:32 +08:00
fix for MinGW
This commit is contained in:
13
configure.ac
13
configure.ac
@@ -994,6 +994,13 @@ esac
|
|||||||
|
|
||||||
dnl FEATURE: Whether to use libslirp, and enable userspace TCP/IP emulation
|
dnl FEATURE: Whether to use libslirp, and enable userspace TCP/IP emulation
|
||||||
AH_TEMPLATE(C_SLIRP, [Define to 1 to enable userspace TCP/IP emulation, requires libslirp])
|
AH_TEMPLATE(C_SLIRP, [Define to 1 to enable userspace TCP/IP emulation, requires libslirp])
|
||||||
|
case "$host" in
|
||||||
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
|
if test x$have_slirp_h = xyes; then
|
||||||
|
have_slirp_lib=yes
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
if test x$have_slirp_lib = xyes -a x$have_slirp_h = xyes ; then
|
if test x$have_slirp_lib = xyes -a x$have_slirp_h = xyes ; then
|
||||||
have_slirp=yes
|
have_slirp=yes
|
||||||
AC_DEFINE(C_SLIRP,1)
|
AC_DEFINE(C_SLIRP,1)
|
||||||
@@ -1117,12 +1124,6 @@ dnl FEATURE: Direct3D9 shaders
|
|||||||
AH_TEMPLATE(C_D3DSHADERS,[Define to 1 to use Direct3D shaders])
|
AH_TEMPLATE(C_D3DSHADERS,[Define to 1 to use Direct3D shaders])
|
||||||
AC_ARG_ENABLE(d3d-shaders,AC_HELP_STRING([--enable-d3d-shaders],[Enable Direct3D shaders]),enable_d3d_shaders=$enableval,enable_d3d_shaders=no)
|
AC_ARG_ENABLE(d3d-shaders,AC_HELP_STRING([--enable-d3d-shaders],[Enable Direct3D shaders]),enable_d3d_shaders=$enableval,enable_d3d_shaders=no)
|
||||||
|
|
||||||
# HACK: Don't enable Direct 3D 9 on SDL2
|
|
||||||
if test -n "$SDL2_LIBS"; then
|
|
||||||
enable_d3d9=no
|
|
||||||
enable_d3d_shaders=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$enable_d3d9 = xyes; then
|
if test x$enable_d3d9 = xyes; then
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-cygwin* | *-*-mingw32*)
|
*-*-cygwin* | *-*-mingw32*)
|
||||||
|
Reference in New Issue
Block a user