fixed broken test in configure: no, DJGPP really is not UNIX...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ddfca47f05
commit
43d99b6dc0
18
configure.in
18
configure.in
@ -1125,19 +1125,25 @@ dnl When we are using Cygwin with Motif/GTK+, we want it to appear like
|
|||||||
dnl 'just' a POSIX platform, so the Win32 API must not be available
|
dnl 'just' a POSIX platform, so the Win32 API must not be available
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
define_win32=0
|
dnl (Windows-only piece)
|
||||||
|
wants_win32=0
|
||||||
|
doesnt_want_win32=0
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
if test "$wxUSE_MSW" = 1 ; then
|
if test "$wxUSE_MSW" = 1 ; then
|
||||||
define_win32=1
|
wants_win32=1
|
||||||
|
else
|
||||||
|
doesnt_want_win32=1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*-*-mingw*)
|
*-*-mingw*)
|
||||||
define_win32=1
|
wants_win32=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test "$define_win32" = 1 ; then
|
dnl NB: The two tests bellow are *NOT* mutually exclusive! They should only
|
||||||
|
dnl take effect on Cygwin/Mingw and not other platforms.
|
||||||
|
if test "$wants_win32" = 1 ; then
|
||||||
USE_UNIX=0
|
USE_UNIX=0
|
||||||
USE_WIN32=1
|
USE_WIN32=1
|
||||||
AC_DEFINE(__WIN32__)
|
AC_DEFINE(__WIN32__)
|
||||||
@ -1146,10 +1152,12 @@ if test "$define_win32" = 1 ; then
|
|||||||
AC_DEFINE(__GNUWIN32__)
|
AC_DEFINE(__GNUWIN32__)
|
||||||
AC_DEFINE(STRICT)
|
AC_DEFINE(STRICT)
|
||||||
AC_DEFINE(WINVER, 0x0400)
|
AC_DEFINE(WINVER, 0x0400)
|
||||||
else
|
fi
|
||||||
|
if test "$doesnt_want_win32" = 1 ; then
|
||||||
USE_UNIX=1
|
USE_UNIX=1
|
||||||
USE_WIN32=0
|
USE_WIN32=0
|
||||||
fi
|
fi
|
||||||
|
dnl (end of Windows-only piece)
|
||||||
|
|
||||||
if test "$USE_UNIX" = 1 ; then
|
if test "$USE_UNIX" = 1 ; then
|
||||||
wxUSE_UNIX=yes
|
wxUSE_UNIX=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user