builds, added USING_CONFIGURE define in acconfig.h and set wxUSE_UNIX default
to 0 (needed for cross-compiling and building on non-Unix-ported bash shells)
configure will of course set wxUSE_UNIX back to 1 by default.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3022
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifndef __GTKSETUPH__
#define __GTKSETUPH__
#ifndef __GTKSETUPH__
#define __GTKSETUPH__
+#define USING_CONFIGURE
+
#ifdef __GNUG__
#pragma interface
#endif
#ifdef __GNUG__
#pragma interface
#endif
/*
* Define to 1 for Unix[-like] system
*/
/*
* Define to 1 for Unix[-like] system
*/
#undef __UNIX__
#undef __LINUX__
#undef __UNIX__
#undef __LINUX__
#undef __WIN95__
#undef __WIN32__
#undef __GNUWIN32__
#undef __WIN95__
#undef __WIN32__
#undef __GNUWIN32__
/* ------------------------------------------------------------------------ */
/* compiler options */
/* ------------------------------------------------------------------------ */
/* compiler options */
*/
#define wxUSE_TOOLBAR 0
*/
#define wxUSE_TOOLBAR 0
+#if defined(__WXWINE__) || defined(__GNUWIN32__)
#if wxUSE_TOOLBAR
#define wxUSE_BUTTONBAR 1
#endif
#if wxUSE_TOOLBAR
#define wxUSE_BUTTONBAR 1
#endif
USE_VMS=
USE_ULTRIX=
USE_CYGWIN=
USE_VMS=
USE_ULTRIX=
USE_CYGWIN=
USE_DATA_GENERAL=
dnl the list of all available toolkits
USE_DATA_GENERAL=
dnl the list of all available toolkits
AC_DEFINE(__WIN95__)
AC_DEFINE(__WINDOWS__)
AC_DEFINE(__GNUWIN32__)
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
;;
DEFAULT_DEFAULT_wxUSE_MSW=1
;;
-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)
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)
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