git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@775
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if test "$USE_MEM_TRACING" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_MEM_TRACING" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_MEMORY_TRACING $USE_MEM_TRACING
+#define wxUSE_MEMORY_TRACING $USE_MEM_TRACING
EOF
cat >> confdefs.h <<EOF
EOF
cat >> confdefs.h <<EOF
-#define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING
+#define wxUSE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING
if test "$USE_APPLE_IEEE" = 1 ; then
APPLE_IEEE="APPLE_IEEE"
cat >> confdefs.h <<EOF
if test "$USE_APPLE_IEEE" = 1 ; then
APPLE_IEEE="APPLE_IEEE"
cat >> confdefs.h <<EOF
-#define USE_APPLE_IEEE $USE_APPLE_IEEE
+#define wxUSE_APPLE_IEEE $USE_APPLE_IEEE
EOF
fi
USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH
cat >> confdefs.h <<EOF
EOF
fi
USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH
cat >> confdefs.h <<EOF
-#define USE_IOSTREAMH $USE_IOSTREAMH
+#define wxUSE_IOSTREAMH $USE_IOSTREAMH
EOF
if test "$USE_ZLIB" = 1 ; then
cat >> confdefs.h <<EOF
EOF
if test "$USE_ZLIB" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_ZLIB $USE_ZLIB
+#define wxUSE_ZLIB $USE_ZLIB
EOF
fi
if test "$USE_GDK_IMLIB" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_GDK_IMLIB" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_GDK_IMLIB $USE_GDK_IMLIB
+#define wxUSE_GDK_IMLIB $USE_GDK_IMLIB
EOF
fi
if test "$USE_LIBPNG" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_LIBPNG" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_LIBPNG $USE_LIBPNG
+#define wxUSE_LIBPNG $USE_LIBPNG
EOF
fi
if test "$USE_ODBC" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_ODBC" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_ODBC $USE_ODBC
+#define wxUSE_ODBC $USE_ODBC
if test "$USE_GAUGE" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_GAUGE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_GAUGE $USE_GAUGE
+#define wxUSE_GAUGE $USE_GAUGE
EOF
fi
if test "$USE_COMBOBOX" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_COMBOBOX" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_COMBOBOX $USE_COMBOBOX
+#define wxUSE_COMBOBOX $USE_COMBOBOX
EOF
fi
if test "$USE_SCROLLBAR" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_SCROLLBAR" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_SCROLLBAR $USE_SCROLLBAR
+#define wxUSE_SCROLLBAR $USE_SCROLLBAR
EOF
fi
if test "$USE_LISTCTRL" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_LISTCTRL" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_LISTCTRL $USE_LISTCTRL
+#define wxUSE_LISTCTRL $USE_LISTCTRL
EOF
fi
if test "$USE_TREECTRL" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_TREECTRL" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_TREECTRL $USE_TREECTRL
+#define wxUSE_TREECTRL $USE_TREECTRL
EOF
fi
if test "$USE_GRID" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_GRID" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_GRID $USE_GRID
+#define wxUSE_GRID $USE_GRID
EOF
fi
if test "$USE_TAB_DIALOG" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_TAB_DIALOG" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_TAB_DIALOG $USE_TAB_DIALOG
+#define wxUSE_TAB_DIALOG $USE_TAB_DIALOG
EOF
fi
if test "$USE_NOTEBOOK" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_NOTEBOOK" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_NOTEBOOK $USE_NOTEBOOK
+#define wxUSE_NOTEBOOK $USE_NOTEBOOK
if test "$USE_CONFIG" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_CONFIG" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_CONFIG $USE_CONFIG
+#define wxUSE_CONFIG $USE_CONFIG
EOF
fi
if test "$USE_TIMEDATE" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_TIMEDATE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_TIMEDATE $USE_TIMEDATE
+#define wxUSE_TIMEDATE $USE_TIMEDATE
EOF
fi
if test "$USE_FRACTION" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_FRACTION" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_FRACTION $USE_FRACTION
+#define wxUSE_FRACTION $USE_FRACTION
EOF
fi
if test "$USE_LOG" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_LOG" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_LOG $USE_LOG
+#define wxUSE_LOG $USE_LOG
EOF
fi
if test "$USE_INTL" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_INTL" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_INTL $USE_INTL
+#define wxUSE_INTL $USE_INTL
EOF
fi
if test "$USE_STREAMS" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_STREAMS" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_STREAMS $USE_STREAMS
+#define wxUSE_STREAMS $USE_STREAMS
EOF
fi
if test "$USE_SERIAL" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_SERIAL" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_SERIAL $USE_SERIAL
+#define wxUSE_SERIAL $USE_SERIAL
EOF
fi
if test "$USE_FILE" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_FILE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_FILE $USE_FILE
+#define wxUSE_FILE $USE_FILE
EOF
fi
if test "$USE_TEXTFILE" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_TEXTFILE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_TEXTFILE $USE_TEXTFILE
+#define wxUSE_TEXTFILE $USE_TEXTFILE
if test "$USE_RPC" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_RPC" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_RPC $USE_RPC
+#define wxUSE_RPC $USE_RPC
EOF
fi
if test "$USE_WX_RESOURCES" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_WX_RESOURCES" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_WX_RESOURCES $USE_WX_RESOURCES
+#define wxUSE_WX_RESOURCES $USE_WX_RESOURCES
EOF
fi
if test "$USE_PROLOGIO" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_PROLOGIO" = 1 ; then
cat >> confdefs.h <<EOF
+#define wxUSE_PROLOGIO 1
if test "$USE_POSTSCRIPT" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_POSTSCRIPT" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_POSTSCRIPT 1
+#define wxUSE_POSTSCRIPT 1
EOF
fi
cat >> confdefs.h <<EOF
EOF
fi
cat >> confdefs.h <<EOF
-#define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
+#define wxUSE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
if test "$USE_MDI_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_MDI_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_MDI_ARCHITECTURE $USE_MDI_ARCHITECTURE
+#define wxUSE_MDI_ARCHITECTURE $USE_MDI_ARCHITECTURE
EOF
fi
if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
+#define wxUSE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
EOF
fi
if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
+#define wxUSE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
if test "$USE_IPC" = 1 ; then
cat >> confdefs.h <<EOF
if test "$USE_IPC" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_RESOURCES" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_RESOURCES" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_RESOURCES $USE_RESOURCES
+#define wxUSE_RESOURCES $USE_RESOURCES
EOF
fi
if test "$USE_CLIPBOARD" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_CLIPBOARD" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_CLIPBOARD $USE_CLIPBOARD
+#define wxUSE_CLIPBOARD $USE_CLIPBOARD
EOF
fi
if test "$USE_DND" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_DND" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_DND $USE_DND
+#define wxUSE_DND $USE_DND
EOF
fi
if test "$USE_CONSTRAINTS" = 1 ; then
cat >> confdefs.h <<EOF
EOF
fi
if test "$USE_CONSTRAINTS" = 1 ; then
cat >> confdefs.h <<EOF
-#define USE_CONSTRAINTS $USE_CONSTRAINTS
+#define wxUSE_CONSTRAINTS $USE_CONSTRAINTS
if test "$USE_METAFILE" = 1 ; then
METAFILE="METAFILE"
cat >> confdefs.h <<EOF
if test "$USE_METAFILE" = 1 ; then
METAFILE="METAFILE"
cat >> confdefs.h <<EOF
-#define USE_METAFILE $USE_METAFILE
+#define wxUSE_METAFILE $USE_METAFILE
if test "$USE_HELP" = 1 ; then
HELP="HELP"
cat >> confdefs.h <<EOF
if test "$USE_HELP" = 1 ; then
HELP="HELP"
cat >> confdefs.h <<EOF
-#define USE_HELP $USE_HELP
+#define wxUSE_HELP $USE_HELP
if test "$USE_WXGRAPH" = 1 ; then
WXGRAPH="WXGRAPH"
cat >> confdefs.h <<EOF
if test "$USE_WXGRAPH" = 1 ; then
WXGRAPH="WXGRAPH"
cat >> confdefs.h <<EOF
-#define USE_WXGRAPH $USE_WXGRAPH
+#define wxUSE_WXGRAPH $USE_WXGRAPH
if test "$USE_WXTREE" = 1 ; then
WXTREE="WXTREE"
cat >> confdefs.h <<EOF
if test "$USE_WXTREE" = 1 ; then
WXTREE="WXTREE"
cat >> confdefs.h <<EOF
-#define USE_WXTREE $USE_WXTREE
+#define wxUSE_WXTREE $USE_WXTREE
fi
if test -z "$UNIX_THREAD"; then
fi
if test -z "$UNIX_THREAD"; then
fi
cat >> confdefs.h <<\EOF
fi
cat >> confdefs.h <<\EOF
fi
cat >> confdefs.h <<EOF
fi
cat >> confdefs.h <<EOF
-#define USE_GLX $USE_GLX
+#define wxUSE_GLX $USE_GLX
DEFAULT_USE_QT=0
DEFAULT_USE_MOTIF=0
DEFAULT_USE_QT=0
DEFAULT_USE_MOTIF=0
DEFAULT_USE_SHARED=1
DEFAULT_USE_OPTIMISE=1
DEFAULT_USE_SHARED=1
DEFAULT_USE_OPTIMISE=1
dnl
dnl AC_OVERRIDES(metafile, metafile,
dnl **--with-metafile use metafile (no effect),
dnl
dnl AC_OVERRIDES(metafile, metafile,
dnl **--with-metafile use metafile (no effect),
dnl
dnl AC_OVERRIDES(help,help,
dnl **--with-help use help (no effect),
dnl
dnl AC_OVERRIDES(help,help,
dnl **--with-help use help (no effect),
dnl
dnl AC_OVERRIDES(wxgraph,wxgraph,
dnl **--with-wxgraph use wxgraph (no effect),
dnl
dnl AC_OVERRIDES(wxgraph,wxgraph,
dnl **--with-wxgraph use wxgraph (no effect),
dnl
dnl AC_OVERRIDES(wxtree,wxtree,
dnl **--with-wxtree use wxtree (no effect),
dnl
dnl AC_OVERRIDES(wxtree,wxtree,
dnl **--with-wxtree use wxtree (no effect),
dnl
dnl AC_OVERRIDES(package,message,helpmessage,variable)
dnl
dnl
dnl AC_OVERRIDES(package,message,helpmessage,variable)
dnl
dnl thread support
dnl ----------------------------------------------------------------
dnl thread support
dnl ----------------------------------------------------------------
THREADS_LINK=""
UNIX_THREAD="gtk/threadno.cpp"
AC_OVERRIDES(threads,threads,
**--without-threads Force disabling threads,
THREADS_LINK=""
UNIX_THREAD="gtk/threadno.cpp"
AC_OVERRIDES(threads,threads,
**--without-threads Force disabling threads,
dnl AC_ARG_WITH(threads,
dnl [**--without-threads Force disabling threads ],
dnl AC_ARG_WITH(threads,
dnl [**--without-threads Force disabling threads ],
-dnl [USE_THREADS="$withval"])
+dnl [wxUSE_THREADS="$withval"])
-if test "$USE_THREADS" = "1"; then
+if test "$wxUSE_THREADS" = "1"; then
UNIX_THREAD="gtk/threadno.cpp"
dnl For glibc 2 users who have the old libc 5 too
UNIX_THREAD="gtk/threadno.cpp"
dnl For glibc 2 users who have the old libc 5 too
fi
if test -z "$UNIX_THREAD"; then
fi
if test -z "$UNIX_THREAD"; then
fi
AC_SUBST(UNIX_THREAD)
AC_SUBST(THREADS_LINK)
fi
AC_SUBST(UNIX_THREAD)
AC_SUBST(THREADS_LINK)
+AC_DEFINE(wxUSE_THREADS)
dnl defines UNIX_THREAD it contains the source file to use for threads. (GL)
dnl defines THREADS_LINK it contains the thread library to link with. (GL)
dnl defines UNIX_THREAD it contains the source file to use for threads. (GL)
dnl defines THREADS_LINK it contains the thread library to link with. (GL)
-dnl defines USE_THREADS if thread support is activated. (GL)
+dnl defines wxUSE_THREADS if thread support is activated. (GL)
dnl ----------------------------------------------------------------
dnl search for opengl
dnl ----------------------------------------------------------------
dnl search for opengl
//------------------------------------------------------------------------
// GUI control options
//------------------------------------------------------------------------
// GUI control options
/*
* Use combobox item
*/
/*
* Use combobox item
*/
/*
* Use scrollbar item
*/
/*
* Use scrollbar item
*/
/*
* Use notebook item
*/
/*
* Use notebook item
*/
/*
* Use listctrl item
*/
/*
* Use listctrl item
*/
/*
* Use treectrl item
*/
/*
* Use treectrl item
*/
/*
* Use tab dialog item
*/
/*
* Use tab dialog item
*/
//------------------------------------------------------------------------
// non-GUI options
//------------------------------------------------------------------------
// non-GUI options
/*
* Use fraction class
*/
/*
* Use fraction class
*/
/*
* Use time and date classes
*/
/*
* Use time and date classes
*/
/*
* Use config system
*/
/*
* Use config system
*/
/*
* Use class serialization
*/
/*
* Use class serialization
*/
//------------------------------------------------------------------------
// PS options
//------------------------------------------------------------------------
// PS options
* Use font metric files in GetTextExtent for wxPostScriptDC
* Use consistent PostScript fonts for AFM and printing (!)
*/
* Use font metric files in GetTextExtent for wxPostScriptDC
* Use consistent PostScript fonts for AFM and printing (!)
*/
-#undef USE_AFM_FOR_POSTSCRIPT
+#undef wxUSE_AFM_FOR_POSTSCRIPT
#undef WX_NORMALIZED_PS_FONTS
/*
* Use PostScript device context
*/
#undef WX_NORMALIZED_PS_FONTS
/*
* Use PostScript device context
*/
//------------------------------------------------------------------------
// misc options
//------------------------------------------------------------------------
// misc options
/*
* Use Interprocess communication
*/
/*
* Use Interprocess communication
*/
/*
* Use wxGetResource & wxWriteResource (change .Xdefaults)
*/
/*
* Use wxGetResource & wxWriteResource (change .Xdefaults)
*/
/*
* Use wxWindows layout constraint system
*/
/*
* Use wxWindows layout constraint system
*/
+#undef wxUSE_CONSTRAINTS
//------------------------------------------------------------------------
// architecture options
//------------------------------------------------------------------------
// architecture options
/*
* Use the mdi architecture
*/
/*
* Use the mdi architecture
*/
-#undef USE_MDI_ARCHITECTURE
+#undef wxUSE_MDI_ARCHITECTURE
/*
* Use the document/view architecture
*/
/*
* Use the document/view architecture
*/
-#undef USE_DOC_VIEW_ARCHITECTURE
+#undef wxUSE_DOC_VIEW_ARCHITECTURE
/*
* Use the print/preview architecture
*/
/*
* Use the print/preview architecture
*/
-#undef USE_PRINTING_ARCHITECTURE
+#undef wxUSE_PRINTING_ARCHITECTURE
//------------------------------------------------------------------------
// Prolog and wxWindows' resource system options
//------------------------------------------------------------------------
// Prolog and wxWindows' resource system options
- * Use Remote Procedure Call (Needs USE_IPC and USE_PROLOGIO)
+ * Use Remote Procedure Call (Needs wxUSE_IPC and wxUSE_PROLOGIO)
- * Use wxWindows resource loading (.wxr-files) (Needs USE_PROLOGIO 1)
+ * Use wxWindows resource loading (.wxr-files) (Needs wxUSE_PROLOGIO 1)
+#undef wxUSE_WX_RESOURCES
//------------------------------------------------------------------------
// the rest
//------------------------------------------------------------------------
// the rest
* extension to the X11 protocol. You can use the (free) Mesa library
* if you don't have a 'real' OpenGL.
*/
* extension to the X11 protocol. You can use the (free) Mesa library
* if you don't have a 'real' OpenGL.
*/
- * Use wxWindows help facility (needs USE_IPC 1)
+ * Use wxWindows help facility (needs wxUSE_IPC 1)
/*
* Use iostream.h rather than iostream
*/
/*
* Use iostream.h rather than iostream
*/
/*
* Use Metafile and Metafile device context
*/
/*
* Use Metafile and Metafile device context
*/
/*
* Use Apple Ieee-double converter
*/
/*
* Use Apple Ieee-double converter
*/
/* Compatibility with 1.66 API.
Level 0: no backward compatibility, all new features
Level 1: wxDC, OnSize (etc.) compatibility, but
/* Compatibility with 1.66 API.
Level 0: no backward compatibility, all new features
Level 1: wxDC, OnSize (etc.) compatibility, but
* WARNING: this code may not work with all architectures, especially
* if alignment is an issue.
*/
* WARNING: this code may not work with all architectures, especially
* if alignment is an issue.
*/
-#undef USE_MEMORY_TRACING
+#undef wxUSE_MEMORY_TRACING
/*
* Enable debugging version of global memory operators new and delete
* Disable it, If this causes problems (e.g. link errors)
*/
/*
* Enable debugging version of global memory operators new and delete
* Disable it, If this causes problems (e.g. link errors)
*/
-#undef USE_GLOBAL_MEMORY_OPERATORS
+#undef wxUSE_GLOBAL_MEMORY_OPERATORS
/*
* Matthews garbage collection (used for MrEd?)
*/
/*
* Matthews garbage collection (used for MrEd?)
*/
- * USE_DYNAMIC_CLASSES is TRUE for the Xt port
+ * wxUSE_DYNAMIC_CLASSES is TRUE for the Xt port
-#define USE_DYNAMIC_CLASSES 1
+#define wxUSE_DYNAMIC_CLASSES 1
/*
* Disable this if your compiler can't cope
* with omission of prototype parameters.
/*
* Disable this if your compiler can't cope
* with omission of prototype parameters.
if ( !s_bInGetActiveTarget ) {
s_bInGetActiveTarget = TRUE;
if ( !s_bInGetActiveTarget ) {
s_bInGetActiveTarget = TRUE;
ms_pLogger = new wxLogStderr;
#else
// ask the application to create a log target for us
ms_pLogger = new wxLogStderr;
#else
// ask the application to create a log target for us
// wxLogGui implementation
// ----------------------------------------------------------------------------
// wxLogGui implementation
// ----------------------------------------------------------------------------
-#endif //WX_TEST_MINIMAL
// ============================================================================
// Global functions/variables
// ============================================================================
// Global functions/variables