git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14132
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if test $DEBUG_CONFIGURE = 1; then
DEFAULT_wxUSE_UNIVERSAL=no
if test $DEBUG_CONFIGURE = 1; then
DEFAULT_wxUSE_UNIVERSAL=no
+ DEFAULT_wxUSE_NANOX=no
+
DEFAULT_wxUSE_THREADS=yes
DEFAULT_wxUSE_SHARED=yes
DEFAULT_wxUSE_THREADS=yes
DEFAULT_wxUSE_SHARED=yes
else
DEFAULT_wxUSE_UNIVERSAL=no
else
DEFAULT_wxUSE_UNIVERSAL=no
+ DEFAULT_wxUSE_NANOX=no
+
DEFAULT_wxUSE_THREADS=yes
DEFAULT_wxUSE_SHARED=yes
DEFAULT_wxUSE_THREADS=yes
DEFAULT_wxUSE_SHARED=yes
AC_ARG_WITH(mgl, [ --with-mgl use SciTech MGL], [wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1])
AC_ARG_WITH(microwin, [ --with-microwin use MicroWindows], [wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1])
AC_ARG_WITH(x11, [ --with-x11 use X11], [wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1])
AC_ARG_WITH(mgl, [ --with-mgl use SciTech MGL], [wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1])
AC_ARG_WITH(microwin, [ --with-microwin use MicroWindows], [wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1])
AC_ARG_WITH(x11, [ --with-x11 use X11], [wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1])
+WX_ARG_ENABLE(nanox , [ --enable-nanox use NanoX], wxUSE_NANOX)
AC_ARG_ENABLE(gtk2, [ --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)],wxUSE_GTK2=1,wxUSE_GTK2=0)
AC_ARG_ENABLE(gtk2, [ --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)],wxUSE_GTK2=1,wxUSE_GTK2=0)
AFMINSTALL=afminstall
COMPILED_X_PROGRAM=0
AFMINSTALL=afminstall
COMPILED_X_PROGRAM=0
+ if test "$wxUSE_NANOX" = 1; then
+ AC_MSG_CHECKING(for MicroWindows/NanoX distribution)
+ if test "x$MICROWIN" = x ; then
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR([Cannot find MicroWindows library. Make sure MICROWIN is set.])
+ else
+ AC_MSG_RESULT($MICROWIN)
+ fi
+ fi
+
xpm_link=
AC_MSG_CHECKING(for Xpm library)
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
xpm_link=
AC_MSG_CHECKING(for Xpm library)
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
- GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
+ if test "$wxUSE_NANOX" = 1; then
+ TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox $TOOLKIT_INCLUDE"
+ TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__NANOX__"
+ GUI_TK_LIBRARY="$GUI_TK_LIBRARY $MICROWIN/src/lib/libnano-X.a $MICROWIN/src/lib/libmwengine.a $MICROWIN/src/lib/libmwfonts.a $MICROWIN/src/lib/libmwdrivers.a $MICROWIN/src/lib/libmwobjects.a"
+ else
+ TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
+ GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
+ fi
+
TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
TOOLKIT=X11
GUIDIST=X11_DIST
TOOLKIT_VPATH="\${top_srcdir}/src/x11 \${top_srcdir}/src/univ \${top_srcdir}/src/univ/themes"
TOOLKIT=X11
GUIDIST=X11_DIST
- TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
fi
if test "$wxUSE_WINE" = 1; then
fi
if test "$wxUSE_WINE" = 1; then
--- /dev/null
+/*
+ * Xlib compatibility
+ */
+
+/* Nothing yet */
--- /dev/null
+/*
+ * Xlib compatibility
+ */
+
+#include "XtoNX.h"
--- /dev/null
+/*
+ * Xlib compatibility
+ */
+
+/* Nothing yet */