#ifndef __GTKSETUPH__
#define __GTKSETUPH__
+#define USING_CONFIGURE
+
#ifdef __GNUG__
#pragma interface
#endif
/*
* Define to 1 for Unix[-like] system
*/
-#define wxUSE_UNIX 1
+#define wxUSE_UNIX 0
#undef __UNIX__
#undef __LINUX__
#undef __WIN95__
#undef __WIN32__
#undef __GNUWIN32__
+#undef WINVER
/* ------------------------------------------------------------------------ */
/* compiler options */
*/
#define wxUSE_TOOLBAR 0
-#ifdef __WXWINE__
+#if defined(__WXWINE__) || defined(__GNUWIN32__)
#if wxUSE_TOOLBAR
#define wxUSE_BUTTONBAR 1
#endif
USE_VMS=
USE_ULTRIX=
USE_CYGWIN=
-USE_MINGW32=
+USE_MINGW=
USE_DATA_GENERAL=
dnl the list of all available toolkits
AC_DEFINE(__WIN95__)
AC_DEFINE(__WINDOWS__)
AC_DEFINE(__GNUWIN32__)
+ AC_DEFINE(WINVER, 0x0400)
+ DEFAULT_DEFAULT_wxUSE_MSW=1
+ ;;
+ *-*-mingw32* )
+ USE_UNIX=0
+ AC_DEFINE(__WIN32__)
+ AC_DEFINE(__WIN95__)
+ AC_DEFINE(__WINDOWS__)
+ AC_DEFINE(__GNUWIN32__)
+ AC_DEFINE(WINVER, 0x0400)
DEFAULT_DEFAULT_wxUSE_MSW=1
;;
WXWINE=
-if test "$wxUSE_CYGWIN" = 1; then
+if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
AC_MSG_CHECKING(for Windows headers)
WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
else
AC_MSG_RESULT(no)
- AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
+ if test "$cross_compiling" != "yes" ; then
+ AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
+ fi
fi
TOOLKIT=MSW