1 Here are some of the cpp macros used, together with some short explanation
2 of their use. Feel free to add more macros and more categories.
3 Most of these are from config.in, so it's probably better to put the
4 explanations in that file. Ideally, everything would be defined and
5 documented in config.in, and this file would not be necessary.
8 ** Distinguishing OSes **
12 CYGWIN Compiling the Cygwin port.
17 MSDOS Compiling the MS-DOS port.
19 __DJGPP_MINOR__ Minor version number of the DJGPP library; used only in msdos.c and dosfns.c.
20 DOS_NT Compiling for either the MS-DOS or native MS-Windows port.
21 WINDOWSNT Compiling the native MS-Windows (W32) port.
22 __MINGW32__ Compiling the W32 port with the MinGW port of GCC.
23 _MSC_VER Compiling the W32 port with the Microsoft C compiler.
24 DARWIN_OS Compiling on Mac OS X or pure Darwin (and using s/darwin.h).
29 ** Distinguishing GUIs **
31 HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars.
32 HAVE_NS Use the NeXT/OpenStep/Cocoa UI under Mac OS X or GNUstep.
33 NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API.
34 NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API.
35 HAVE_X11 Compile support for the X11 GUI.
36 HAVE_X_WINDOWS Compile support for X Window system
37 (It looks like, nowadays, if HAVE_X11 is set, HAVE_X_WINDOWS must
38 be, and vice versa. At least, this is true for configure, and
39 msdos; not sure about nt.)
43 USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11.
44 USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11.
45 USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11.
49 FRAME_TERMCAP_P A tty (character terminal) frame.
50 FRAME_X_P A frame on X Window system.
51 FRAME_MSDOS_P An MS-DOS frame (used only by the DOS port).
52 FRAME_W32_P A frame using native MS-Windows GUI.
53 FRAME_WINDOW_P A GUI frame (like X, w32, etc.)
55 ** Support for accessing other processes on the system **
57 HAVE_PROCFS The /proc filesystem is supported.
59 ** Compile-time options **
61 REL_ALLOC Compile in the relocatable memory allocator ralloc.c.
62 SYSTEM_MALLOC Use the system library's malloc.
63 subprocesses System can use subprocesses (for M-x shell for example).
64 Defined by default, only MSDOS undefines it.
65 DEBUG_LISP_OBJECT_TYPE Define it in lisp.h enable compile time checks
68 ** System specific macros
77 USER_FULL_NAME If defined, overrides the default pw->pw_gecos for
78 getting at the full user name. Only MSDOS overrides the default.
80 ** Miscellaneous defines. Some of these might not be used in the code
81 anymore, so they can be removed.
84 BROKEN_DATAGRAM_SOCKETS
86 BROKEN_GET_CURRENT_DIR_NAME
87 BROKEN_NON_BLOCKING_CONNECT
88 BROKEN_PTY_READ_AFTER_EAGAIN
100 GC_MARK_SECONDARY_STACK
109 HAVE_ATTRIBUTE_ALIGNED
121 HAVE_DBUS_TYPE_IS_VALID
122 HAVE_DBUS_VALIDATE_BUS_NAME
123 HAVE_DBUS_VALIDATE_INTERFACE
124 HAVE_DBUS_VALIDATE_MEMBER
125 HAVE_DBUS_VALIDATE_PATH
126 HAVE_DBUS_WATCH_GET_UNIX_FD
128 HAVE_DECL_LOCALTIME_R
134 HAVE_DECL_SYS_SIGLIST
136 HAVE_DECL___SYS_SIGLIST
161 HAVE_GETOPT_LONG_ONLY
170 HAVE_GET_CURRENT_DIR_NAME
178 HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE
179 HAVE_GTK_DIALOG_GET_ACTION_AREA
180 HAVE_GTK_FILE_SELECTION_NEW
182 HAVE_GTK_MULTIDISPLAY
183 HAVE_GTK_ORIENTABLE_SET_ORIENTATION
184 HAVE_GTK_WIDGET_GET_MAPPED
185 HAVE_GTK_WIDGET_GET_SENSITIVE
186 HAVE_GTK_WIDGET_GET_WINDOW
187 HAVE_GTK_WIDGET_SET_HAS_WINDOW
188 HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP
196 HAVE_KERBEROSIV_KRB_H
198 HAVE_KRB5_ERROR_E_TEXT
202 HAVE_LANGINFO_CODESET
225 HAVE_MACHINE_SOUNDCARD_H
227 HAVE_MAGICKEXPORTIMAGEPIXELS
228 HAVE_MAGICKMERGEIMAGELAYERS
240 HAVE_MULTILINGUAL_MENU
245 HAVE_OTF_GET_VARIATION_GLYPHS
246 HAVE_PERSONALITY_LINUX32
252 HAVE_PSTAT_GETDYNAMIC
274 HAVE_SIGNED_${GLTYPE}
275 HAVE_SIGNED_SIG_ATOMIC_T
295 HAVE_STRUCT_ERA_ENTRY
296 HAVE_STRUCT_IFREQ_IFR_ADDR
297 HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN
298 HAVE_STRUCT_IFREQ_IFR_BROADADDR
299 HAVE_STRUCT_IFREQ_IFR_FLAGS
300 HAVE_STRUCT_IFREQ_IFR_HWADDR
301 HAVE_STRUCT_IFREQ_IFR_NETMASK
302 HAVE_STRUCT_NLIST_N_UN_N_NAME
303 HAVE_STRUCT_STAT_ST_ATIMENSEC
304 HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC
305 HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC
306 HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC
307 HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC
308 HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
309 HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC
311 HAVE_STRUCT_TM_TM_ZONE
325 HAVE_SYS_SYSTEMINFO_H
342 HAVE_UNSIGNED_LONG_LONG_INT
363 HAVE_XSCREENNUMBEROFSCREEN
364 HAVE_XSCREENRESOURCESTRING
371 HAVE___BUILTIN_UNWIND_INIT
372 HAVE___EXECUTABLE_START
397 SIGNALS_VIA_CHARACTERS
399 SYSTEM_PURESIZE_EXTRA
408 USE_TOOLKIT_SCROLL_BARS
456 srandom (conf_post.h may undo)
507 execvp (also emacsclient.c [WINDOWSNT])
542 wait (also movemail.c [WINDOWSNT])