]>
git.saurik.com Git - wxWidgets.git/blob - setup.h.in
8c1291e681b83acc77deae4e6541ad38a3f99aad
1 /* This define (__WX_SETUP_H__) is used both to ensure setup.h is included
2 * only once and to indicate that we are building using configure. */
10 /* never undefine inline or const keywords for C++ compilation */
13 /* Define to empty if the keyword does not work. */
16 /* Define as __inline if that's what the C compiler calls it. */
19 #endif /* __cplusplus */
21 /* fill in with the string wxGetOsDescription() will return */
22 #undef WXWIN_OS_DESCRIPTION
24 /* the installation location prefix from configure */
25 #undef wxINSTALL_PREFIX
27 /* Define to `int' if <sys/types.h> doesn't define. */
30 /* Define to `int' if <sys/types.h> doesn't define. */
33 /* Define to `long' if <sys/types.h> doesn't define. */
36 /* Define to `int' if <sys/types.h> doesn't define. */
39 /* Define to `unsigned' if <sys/types.h> doesn't define. */
42 /* Define if ssize_t type is available. */
45 /* Define if you have the ANSI C header files. */
48 /* Define this to get extra features from GNU libc. */
51 /* Define to `int' if <sys/types.h> doesn't define. */
54 /* Define if your processor stores words with the most significant
55 byte first (like Motorola and SPARC, unlike Intel and VAX). */
56 #undef WORDS_BIGENDIAN
58 /* Define this if your version of GTK+ is greater than 1.2 */
61 /* Define this if your version of GTK+ is greater than 1.2.7 */
64 /* Define this if your version of GTK+ is greater than 2.0 */
67 /* Define this if your version of GTK+ is greater than 2.4 */
70 /* Define this if you want to use GPE features */
73 /* Define this if your version of Motif is greater than 2.0 */
77 * Define to 1 for Unix[-like] system
106 /* NanoX (with wxX11) */
107 #define wxUSE_NANOX 0
109 /* PowerPC Darwin & Mac OS X */
113 /* MS-DOS with DJGPP */
116 /* Stupid hack; __WINDOWS__ clashes with wx/defs.h */
140 /* --- start common options --- */
148 #define WXWIN_COMPATIBILITY_2_2 0
150 #define WXWIN_COMPATIBILITY_2_4 1
152 #define wxDIALOG_UNIT_COMPATIBILITY 1
156 #define wxUSE_DEBUG_CONTEXT 0
158 #define wxUSE_MEMORY_TRACING 0
160 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
162 #define wxUSE_DEBUG_NEW_ALWAYS 0
164 #if defined(_MSC_VER) || \
165 (defined(__BORLANDC__) && __BORLANDC__ >= 0x0550)
166 #define wxUSE_ON_FATAL_EXCEPTION 1
168 #define wxUSE_ON_FATAL_EXCEPTION 0
172 #ifndef wxUSE_UNICODE
173 #define wxUSE_UNICODE 0
176 #define wxUSE_UNICODE_MSLU 0
178 #define wxUSE_WCHAR_T 1
181 #define wxUSE_EXCEPTIONS 1
183 #define wxUSE_EXTENDED_RTTI 0
185 #if defined(__BORLANDC__)
186 #undef wxUSE_EXTENDED_RTTI
187 #define wxUSE_EXTENDED_RTTI 1
194 #define wxUSE_LOGWINDOW 1
196 #define wxUSE_LOGGUI 1
198 #define wxUSE_LOG_DIALOG 1
200 #define wxUSE_CMDLINE_PARSER 1
202 #define wxUSE_THREADS 1
204 #define wxUSE_STREAMS 1
206 #define wxUSE_STD_IOSTREAM 0
209 #define wxUSE_LONGLONG 1
212 #define wxUSE_FFILE 1
214 #define wxUSE_FSVOLUME 1
216 #define wxUSE_TEXTBUFFER 1
218 #define wxUSE_TEXTFILE 1
222 #define wxUSE_DATETIME 1
224 #define wxUSE_TIMER 1
226 #define wxUSE_STOPWATCH 1
228 #define wxUSE_CONFIG 1
230 #define wxUSE_CONFIG_NATIVE 1
232 #define wxUSE_DIALUP_MANAGER 1
234 #define wxUSE_DYNLIB_CLASS 1
236 #define wxUSE_DYNAMIC_LOADER 1
238 #define wxUSE_SOCKETS 1
240 #define wxUSE_FILESYSTEM 1
242 #define wxUSE_FS_ZIP 1
244 #define wxUSE_FS_INET 1
246 #define wxUSE_ZIPSTREAM 1
250 #define wxUSE_APPLE_IEEE 1
252 #define wxUSE_JOYSTICK 1
254 #define wxUSE_FONTMAP 1
256 #define wxUSE_MIMETYPE 1
258 #define wxUSE_PROTOCOL 1
260 #define wxUSE_PROTOCOL_FILE 1
261 #define wxUSE_PROTOCOL_FTP 1
262 #define wxUSE_PROTOCOL_HTTP 1
266 #define wxUSE_URL_NATIVE 0
268 #define wxUSE_REGEX 1
270 #define wxUSE_SYSTEM_OPTIONS 1
272 #define wxUSE_SOUND 1
274 #define wxUSE_MEDIACTRL 1
276 #define wxUSE_QUICKTIME 0
278 #define wxUSE_DIRECTSHOW 0
289 #define wxUSE_CONTROLS 1
291 #define wxUSE_POPUPWIN 1
293 #define wxUSE_TIPWINDOW 1
295 #define wxUSE_BUTTON 1
296 #define wxUSE_BMPBUTTON 1
297 #define wxUSE_CALENDARCTRL 1
298 #define wxUSE_CHECKBOX 1
299 #define wxUSE_CHECKLISTBOX 1
300 #define wxUSE_CHOICE 1
301 #define wxUSE_COMBOBOX 1
302 #define wxUSE_DATEPICKCTRL 1
303 #define wxUSE_GAUGE 1
304 #define wxUSE_LISTBOX 1
305 #define wxUSE_LISTCTRL 1
306 #define wxUSE_RADIOBOX 1
307 #define wxUSE_RADIOBTN 1
308 #define wxUSE_SCROLLBAR 1
309 #define wxUSE_SLIDER 1
310 #define wxUSE_SPINBTN 1
311 #define wxUSE_SPINCTRL 1
312 #define wxUSE_STATBOX 1
313 #define wxUSE_STATLINE 1
314 #define wxUSE_STATTEXT 1
315 #define wxUSE_STATBMP 1
316 #define wxUSE_TEXTCTRL 1
317 #define wxUSE_TOGGLEBTN 1
318 #define wxUSE_TREECTRL 1
320 #define wxUSE_STATUSBAR 1
322 #define wxUSE_NATIVE_STATUSBAR 1
324 #define wxUSE_TOOLBAR 1
325 #define wxUSE_TOOLBAR_NATIVE 1
327 #define wxUSE_NOTEBOOK 1
329 #define wxUSE_LISTBOOK 1
331 #define wxUSE_CHOICEBOOK 1
333 #define wxUSE_TAB_DIALOG 0
338 #define wxUSE_ACCEL 1
340 #define wxUSE_HOTKEY 1
342 #define wxUSE_CARET 1
344 #define wxUSE_DISPLAY 0
346 #define wxUSE_GEOMETRY 1
348 #define wxUSE_IMAGLIST 1
350 #define wxUSE_MENUS 1
354 #define wxUSE_SPLITTER 1
356 #define wxUSE_TOOLTIPS 1
358 #define wxUSE_VALIDATORS 1
361 #define wxUSE_COMMON_DIALOGS 1
363 #define wxUSE_BUSYINFO 1
365 #define wxUSE_CHOICEDLG 1
367 #define wxUSE_COLOURDLG 1
369 #define wxUSE_DIRDLG 1
372 #define wxUSE_FILEDLG 1
374 #define wxUSE_FINDREPLDLG 1
376 #define wxUSE_FONTDLG 1
378 #define wxUSE_MSGDLG 1
380 #define wxUSE_PROGRESSDLG 1
382 #define wxUSE_STARTUP_TIPS 1
384 #define wxUSE_TEXTDLG 1
386 #define wxUSE_NUMBERDLG 1
388 #define wxUSE_SPLASH 1
390 #define wxUSE_WIZARDDLG 1
393 #define wxUSE_METAFILE 1
394 #define wxUSE_ENH_METAFILE 1
395 #define wxUSE_WIN_METAFILES_ALWAYS 0
400 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
402 #define wxUSE_MDI_ARCHITECTURE 1
404 #define wxUSE_PRINTING_ARCHITECTURE 1
408 #define wxUSE_GLCANVAS 0
411 #define wxUSE_CLIPBOARD 1
413 #define wxUSE_DATAOBJ 1
415 #define wxUSE_DRAG_AND_DROP 1
417 #define wxUSE_ACCESSIBILITY 0
420 #define wxUSE_SNGLINST_CHECKER 1
422 #define wxUSE_DRAGIMAGE 1
428 #define wxUSE_MS_HTML_HELP 1
431 #define wxUSE_WXHTML_HELP 1
433 #define wxUSE_RESOURCES 0
435 #define wxUSE_CONSTRAINTS 1
438 #define wxUSE_SPLINES 1
441 #define wxUSE_MOUSEWHEEL 1
445 #define wxUSE_POSTSCRIPT 0
447 #define wxUSE_AFM_FOR_POSTSCRIPT 1
449 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
454 #define wxODBC_FWD_ONLY_CURSORS 1
456 #define wxODBC_BACKWARD_COMPATABILITY 0
459 #define REMOVE_UNUSED_ARG 1
461 #define wxUSE_IOSTREAMH 1
465 #define wxUSE_IMAGE 1
467 #define wxUSE_LIBPNG 1
469 #define wxUSE_LIBJPEG 1
471 #define wxUSE_LIBTIFF 1
483 #define wxUSE_ICO_CUR 1
485 #define wxUSE_PALETTE 1
487 /* --- end common options --- */
489 /* enable native status bar under Win32 */
490 #if defined(__WIN95__) && !defined(__WXUNIVERSAL__)
491 #define wxUSE_NATIVE_STATUSBAR 1
492 #define wxUSE_OWNER_DRAWN 1
495 #if defined(__WXPM__)
496 #define wxUSE_OWNER_DRAWN 1
499 /* enable rich edit under Win32 */
500 #if defined(__WIN95__) && !defined(__WINE__) && !defined(__GNUWIN32_OLD__)
501 #define wxUSE_RICHEDIT 1
503 #define wxUSE_RICHEDIT 0
512 * Define if your compiler supports the explicit keyword
517 * Define if your compiler supports const_cast<>()
519 #undef HAVE_CONST_CAST
522 * Define if your compiler supports reinterpret_cast<>()
524 #undef HAVE_REINTERPRET_CAST
527 * Define if your compiler supports static_cast<>()
529 #undef HAVE_STATIC_CAST
532 * Define if your compiler has C99 va_copy
537 * Define if va_list type is an array
539 #undef VA_LIST_IS_ARRAY
542 * Define if your compiler has std::wstring
544 #undef HAVE_STD_WSTRING
546 * Define if your compiler has compliant std::string::compare
548 #undef HAVE_STD_STRING_COMPARE
550 * Define if your compiler has <hash_map>
554 * Define if your compiler has <ext/hash_map>
556 #undef HAVE_EXT_HASH_MAP
558 * Define if your compiler has std::hash_map/hash_set
560 #undef HAVE_STD_HASH_MAP
562 * Define if your compiler has __gnu_cxx::hash_map/hash_set
564 #undef HAVE_GNU_CXX_HASH_MAP
567 * The built-in regex supports advanced REs in additional to POSIX's basic
568 * and extended. Your system regex probably won't support this, and in this
569 * case WX_NO_REGEX_ADVANCED should be defined.
571 #undef WX_NO_REGEX_ADVANCED
577 * Use SDL for audio (Unix)
579 #define wxUSE_LIBSDL 0
581 * Use GNOME print for printing under GTK+ 2.0
583 #define wxUSE_LIBGNOMEPRINT 0
587 #define wxUSE_BUILTIN_IODBC 0
591 #define wxUSE_FREETYPE 0
595 #define wxHAVE_GLIBC2 0
599 #define wxHAVE_LIB_XPM 0
601 * Use font metric files in GetTextExtent for wxPostScriptDC
602 * Use consistent PostScript fonts for AFM and printing (!)
604 #define wxUSE_AFM_FOR_POSTSCRIPT 0
605 #define wxUSE_NORMALIZED_PS_FONTS 0
608 #define WX_NORMALIZED_PS_FONTS wxUSE_NORMALIZED_PS_FONTS
613 #define wxUSE_OPENGL 0
616 * Don't use GUI (defined to 1 when compiling/using base only)
618 #define wxUSE_NOGUI 0
621 * Set to 1 to compile MS Windows XP theme engine support
623 #define wxUSE_UXTHEME 1
626 * Set to 1 to auto-adapt to MS Windows XP themes where possible
627 * (notably, wxNotebook pages)
629 #define wxUSE_UXTHEME_AUTO 1
632 * Work around a bug in GNU libc 5.x wcstombs() implementation.
634 * Note that you must link your programs with libc.a if you enable this and you
635 * have libc 5 (you should enable this for libc6 where wcsrtombs() is
636 * thread-safe version of wcstombs()).
638 #define wxUSE_WCSRTOMBS 0
641 * Use the new experimental implementation of wxString::Printf()?
643 * Warning: enabling this may cause internal compiler errors with gcc!
645 #define wxUSE_EXPERIMENTAL_PRINTF 0
648 * Use wxGetResource & wxWriteResource (change .Xdefaults)
650 #define wxUSE_X_RESOURCES 0
656 /* for compatibility */
657 #define wxUSE_WX_RESOURCES wxUSE_RESOURCES
660 * Use MS HTML Help via libmspack (Unix)
662 #define wxUSE_LIBMSPACK 0
665 * Matthews garbage collection (used for MrEd?)
667 #define WXGARBAGE_COLLECTION_ON 0
672 #define wxUSE_WEBKIT 0
675 * The const keyword is being introduced more in wxWindows.
676 * You can use this setting to maintain backward compatibility.
677 * If 0: will use const wherever possible.
678 * If 1: will use const only where necessary
679 * for precompiled headers to work.
680 * If 2: will be totally backward compatible, but precompiled
681 * headers may not work and program size will be larger.
683 #define CONST_COMPATIBILITY 0
685 /* define with the name of timezone variable */
688 /* The type of 3rd argument to getsockname() - usually size_t or int */
691 /* The type of 5th argument to getsockopt() - usually size_t or int */
694 /* The type of statvfs(2) argument */
697 /* The signal handler prototype */
698 #undef wxTYPE_SA_HANDLER
700 /* gettimeofday() usually takes 2 arguments, but some really old systems might
701 * have only one, in which case define WX_GETTIMEOFDAY_NO_TZ */
702 #undef WX_GETTIMEOFDAY_NO_TZ
704 /* struct tm doesn't always have the tm_gmtoff field, define this if it does */
705 #undef WX_GMTOFF_IN_TM
707 /* Define if you have poll(2) function */
710 /* Define if you have pw_gecos field in struct passwd */
713 /* Define if you have dlopen() */
716 /* Define if you have gettimeofday() */
717 #undef HAVE_GETTIMEOFDAY
719 /* Define if you have ftime() */
722 /* Define if you have support for large (64 bit size) files */
723 #undef HAVE_LARGEFILE_SUPPORT
725 /* Define if you have localtime() */
726 #undef HAVE_LOCALTIME
728 /* Define if you have nanosleep() */
729 #undef HAVE_NANOSLEEP
731 /* Define if you have sched_yield */
732 #undef HAVE_SCHED_YIELD
734 /* Define if you have pthread_mutexattr_t and functions to work with it */
735 #undef HAVE_PTHREAD_MUTEXATTR_T
737 /* Define if you have PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP */
738 #undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER
740 /* Define if you have pthread_cancel */
741 #undef HAVE_PTHREAD_CANCEL
743 /* Define if you have sigaction() */
744 #undef HAVE_SIGACTION
746 /* Define if you have sigemptyset() */
747 #undef HAVE_SIGEMPTYSET
749 /* Define if you have shl_load() */
752 /* define if you have statfs function */
755 /* define if you have statvfs function */
758 /* Define if you have strptime() */
761 /* Define if you have all functions to set thread priority */
762 #undef HAVE_THREAD_PRIORITY_FUNCTIONS
764 /* Define if you can specify exit functions to a thread */
765 #undef HAVE_THREAD_CLEANUP_FUNCTIONS
767 /* Define if you have timegm() function */
770 /* Define if you have vsnprintf() */
771 #undef HAVE_VSNPRINTF
773 /* Define if you have vsnprintf() declaration in the header */
774 #undef HAVE_VSNPRINTF_DECL
776 /* Define if you have usleep() */
779 /* Define if you have wcslen function */
782 /* define if you have vsscanf function */
785 /* The number of bytes in a char. */
788 /* The number of bytes in a wchar_t. */
789 #undef SIZEOF_WCHAR_T
791 /* The number of bytes in a int. */
794 /* The number of bytes in a pointer. */
797 /* The number of bytes in a long. */
800 /* The number of bytes in a long long. */
801 #undef SIZEOF_LONG_LONG
803 /* The number of bytes in a short. */
806 /* The number of bytes in a size_t. */
809 /* Define if size_t on your machine is the same type as unsigned int. */
810 #undef wxSIZE_T_IS_UINT
812 /* Define if size_t on your machine is the same type as unsigned long. */
813 #undef wxSIZE_T_IS_ULONG
815 /* Define if you have the dlopen function. */
818 /* Define if you have the dlerror function. */
821 /* Define if you have Posix fnctl() function. */
824 /* Define if you have BSD flock() function. */
827 /* Define if you have the gethostname function. */
828 #undef HAVE_GETHOSTNAME
830 /* Define if you have the inet_addr function. */
831 #undef HAVE_INET_ADDR
833 /* Define if you have the inet_aton function. */
834 #undef HAVE_INET_ATON
836 /* Define if you have the mktemp function. */
839 /* Define if you have the mkstemp function. */
842 /* Define if you have the nanosleep function. */
843 #undef HAVE_NANOSLEEP
845 /* Define if you have the putenv function. */
848 /* Define if you have the setenv function. */
851 /* Define if you have the shl_load function. */
854 /* Define if you have strtok_r function. */
857 /* Define if you have thr_setconcurrency function */
858 #undef HAVE_THR_SETCONCURRENCY
860 /* Define if you have the uname function. */
863 /* Define if you have the usleep function. */
866 /* Define if you have the <X11/XKBlib.h> header file. */
867 #undef HAVE_X11_XKBLIB_H
869 /* Define if you have the <X11/extensions/xf86vmode.h> header file. */
870 #undef HAVE_X11_EXTENSIONS_XF86VMODE_H
872 /* Define if you have the fnmatch() function */
875 /* Define if you have the <fnmatch.h> header file. */
876 #undef HAVE_FNMATCH_H
878 /* Define if you have the <iostream> header file. */
881 /* Define if you have the <linux/joystick.h> header file. */
882 #undef HAVE_LINUX_JOYSTICK_H
884 /* Define if you have the <sched.h> header file. */
887 /* Define if you have the <unistd.h> header file. */
890 /* Define if you have the <fcntl.h> header file. */
893 /* Define if you have the <wchar.h> header file. */
896 /* Define if you have the <wcstr.h> header file. */
899 /* Define if you have the <wctype.h> header file. */
902 /* Define if you have the <iconv.h> header file and iconv() symbol. */
905 /* Define as "const" if the declaration of iconv() needs const. */
908 /* Define if you have the <langinfo.h> header file. */
909 #undef HAVE_LANGINFO_H
911 /* Define if you have the <w32api.h> header file (mingw,cygwin). */
914 /* Define if you have the <esd.h> header file. */
917 /* Define if you have the <sys/soundcard.h> header file. */
918 #undef HAVE_SYS_SOUNDCARD_H
920 /* Define if you have a CD-ROM interface known to mmedia. */
921 #undef HAVE_KNOWN_CDROM_INTERFACE
923 /* Define if you have wcsrtombs() function */
924 #undef HAVE_WCSRTOMBS
926 /* Define this if you have wputc() */
929 /* Define this if you have wputchar() */
932 /* Define this if you have putws() */
935 /* Define this if you have fputws() */
938 /* Define this if you have strcasecmp() function in <string.h> */
939 #undef HAVE_STRCASECMP_IN_STRING_H
941 /* Define this if you have strcasecmp() function in <strings.h> */
942 #undef HAVE_STRCASECMP_IN_STRINGS_H
944 /* Define this if you have wprintf() and related functions */
947 /* Define this if you have wprintf() and related functions */
948 #undef HAVE_VSWPRINTF
950 /* Define this if you have _vsnwprintf */
951 #undef HAVE__VSNWPRINTF
953 /* Define if fseeko and ftello are available. */
956 /* Define this if you are using gtk and gdk contains support for X11R6 XIM */
959 /* Define this if you have X11/extensions/shape.h */
962 /* Define this if you have type SPBCDATA */
965 /* Define if you have pango_font_family_is_monospace() (Pango >= 1.3.3) */
966 #undef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE
968 /* Define if you have Pango xft support */
969 #undef HAVE_PANGO_XFT
971 /* -------------------------------------------------------------------------
972 Win32 adjustments section
973 ------------------------------------------------------------------------- */
977 /* we need to define wxUSE_XPM_IN_MSW for MSW compilation for compatibility
978 with wx/msw/setup.h */
979 #define wxUSE_XPM_IN_MSW wxUSE_XPM
981 #endif /* __WIN32__ */
983 /* --------------------------------------------------------*
984 * This stuff is static, it doesn't get modified directly
988 #include "wx/chkconf.h"
991 define some constants identifying wxWindows version in more details than
992 just the version number
995 /* wxLogChain class available */
996 #define wxHAS_LOG_CHAIN
998 /* define this when wxDC::Blit() respects SetDeviceOrigin() in wxGTK */
999 #undef wxHAS_WORKING_GTK_DC_BLIT
1002 #endif /* __WX_SETUP_H__ */