Mercurial > hg > xemacs-beta
annotate src/config.h.in @ 4365:c9ab656691c0
Automated merge with ssh://aidan-guest@hg.debian.org//hg/xemacs/xemacs
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 27 Dec 2007 13:22:26 +0100 |
parents | dfd878799ef0 |
children | 9aa16aa434b6 |
rev | line source |
---|---|
428 | 1 /* XEmacs site configuration template file. -*- C -*- |
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc. | |
2994 | 3 Copyright (C) 2000, 2001, 2002, 2004, 2005 Ben Wing. |
428 | 4 |
5 This file is part of XEmacs. | |
6 | |
7 XEmacs is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
9 Free Software Foundation; either version 2, or (at your option) any | |
10 later version. | |
11 | |
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with XEmacs; see the file COPYING. If not, write to | |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 Boston, MA 02111-1307, USA. */ | |
21 | |
22 /* Significantly divergent from FSF. */ | |
23 | |
24 /* No code in XEmacs #includes config.h twice, but some of the code | |
25 intended to work with other packages as well (like gmalloc.c) | |
26 think they can include it as many times as they like. */ | |
27 #ifndef _SRC_CONFIG_H_ | |
28 #define _SRC_CONFIG_H_ | |
29 | |
2367 | 30 /* The proper format of this file: |
31 | |
32 1. All #undef statements that are changed by configure should go together, | |
33 BEFORE the inclusion of the s&m files, and need to be bracketed by | |
34 #ifndef WIN32_NO_CONFIGURE. There is currently only one exception to | |
35 this: SYSTEM_TYPE. | |
36 | |
37 2. All other code, except for the things that may be referenced in s&m | |
38 files (there is very very little of this) need to go AFTER the inclusion | |
39 of s&m files. | |
40 | |
41 Together, this ensures that the s&m files can override configure | |
42 determinations as necessary, and we will properly notice this. | |
43 */ | |
44 | |
771 | 45 /* |
46 This file now serves both as config.h.in and simply as config.h under | |
47 Windows NT. Under Windows NT, there is no configure script that | |
48 operates, so it is necessary for the relevant constants to be set | |
49 manually, either by the user (for user options) or in s/windowsnt.h. | |
50 | |
51 Formerly, under NT there were three different places where constants | |
52 were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only | |
53 the latter two are used. (This separate config.h was a hassle because | |
54 it required constant synchronization between it and src/config.h.in.) | |
55 Since the options that are substituted by configure are written in | |
56 config.h.in with #undef, it is easy to make this file serve as | |
57 config.h under Windows NT. Options that are set by the user are | |
58 specified in the file config.inc.samp, which is included by xemacs.mak | |
872 | 59 \(the makefile) and used to set command-line options to the |
771 | 60 compiler. The sorts of options that relate to the system and not to |
61 the user and which are normally auto-determined by configure are set | |
62 in windowsnt.h. | |
63 | |
64 What this means is that a little more care has to be taken in the way | |
65 things are arranged in config.h.in. In particular: | |
66 | |
67 -- Everything that is written with a #undef should be bracketed by | |
68 #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be | |
69 grouped together as much as possible. | |
70 | |
71 -- Things that are not #undefs should not go inside this bracketed | |
72 #ifdef, because these things typically set constants based on other | |
73 constants and those latter constants may be set elsewhere under | |
74 Windows NT. | |
75 | |
76 -- Any #ifdefs that depend on constants that may be set in windowsnt.h | |
77 need to be moved after the point at which this file is | |
78 included. This applies for example to the error checking macros. | |
79 */ | |
80 | |
81 #if defined (WIN32_NATIVE) && !defined (MINGW) | |
82 # define WIN32_NO_CONFIGURE | |
83 #endif | |
84 | |
428 | 85 /* Use this to add code in a structured way to FSF-maintained source |
86 files so as to make it obvious where XEmacs changes are. */ | |
87 #define XEMACS 1 | |
88 | |
771 | 89 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ |
90 | |
442 | 91 /* Program name */ |
92 #undef EMACS_PROGNAME | |
93 | |
428 | 94 /* Allow s&m files to differentiate OS versions without having |
95 multiple files to maintain. */ | |
96 #undef OS_RELEASE | |
97 | |
98 /* The configuration name. This is used as the install directory name | |
99 for the lib-src programs. */ | |
100 #undef EMACS_CONFIGURATION | |
101 | |
102 /* The configuration options. This is exported to Lisp. */ | |
103 #undef EMACS_CONFIG_OPTIONS | |
104 | |
105 /* The version info from version.sh. Used in #pragma ident in emacs.c */ | |
106 #undef EMACS_MAJOR_VERSION | |
107 #undef EMACS_MINOR_VERSION | |
108 #undef EMACS_PATCH_LEVEL | |
109 #undef EMACS_BETA_VERSION | |
110 #undef EMACS_VERSION | |
111 #undef XEMACS_CODENAME | |
975 | 112 #undef XEMACS_EXTRA_NAME |
2602 | 113 #undef XEMACS_RELEASE_DATE |
428 | 114 /* InfoDock versions, not used with XEmacs */ |
115 #undef INFODOCK_MAJOR_VERSION | |
116 #undef INFODOCK_MINOR_VERSION | |
117 #undef INFODOCK_BUILD_VERSION | |
118 | |
442 | 119 /* Make functions from IEEE Stds 1003.[123] available. */ |
120 #undef _POSIX_C_SOURCE | |
121 | |
122 /* Make some functions from Unix98 available. */ | |
123 #undef _XOPEN_SOURCE | |
124 | |
125 /* Make "extensions" from Unix98 available. */ | |
126 #undef _XOPEN_SOURCE_EXTENDED | |
127 | |
428 | 128 /* Make all functions available on AIX. See AC_AIX. */ |
1294 | 129 /* Some AIX compilers (cc) pre-define _ALL_SOURCE, some (xlc) don't. */ |
1284 | 130 #ifndef _ALL_SOURCE |
428 | 131 #undef _ALL_SOURCE |
1284 | 132 #endif |
428 | 133 |
134 /* Make all functions available on GNU libc systems. See features.h. */ | |
135 #undef _GNU_SOURCE | |
136 | |
442 | 137 /* Make all functions available on Solaris 2 systems. */ |
138 #undef __EXTENSIONS__ | |
139 | |
1799 | 140 /* Define to the name of the typeof extension, if the compiler supports one */ |
141 #undef TYPEOF | |
142 | |
428 | 143 /* Used to identify the XEmacs version in stack traces. */ |
144 #undef STACK_TRACE_EYE_CATCHER | |
145 | |
146 /* Allow the configurer to specify if she wants site-lisp. */ | |
147 #undef INHIBIT_SITE_LISP | |
148 | |
149 /* Allow the configurer to specify if she wants site-modules. */ | |
150 #undef INHIBIT_SITE_MODULES | |
151 | |
152 /* Undefine on systems which don't have processes */ | |
153 #undef HAVE_UNIX_PROCESSES | |
154 | |
155 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */ | |
156 #undef GNU_MALLOC | |
157 | |
158 /* Define if you are using the GNU C Library. -- experimental. */ | |
159 #undef DOUG_LEA_MALLOC | |
160 | |
161 /* Define if you are using libmcheck.a from the GNU C Library. */ | |
162 #undef HAVE_LIBMCHECK | |
163 | |
164 /* Define if you are using dlmalloc from the Linux C library. */ | |
165 #undef _NO_MALLOC_WARNING_ | |
166 | |
167 /* Use the system malloc? */ | |
168 #undef USE_SYSTEM_MALLOC | |
169 | |
170 /* Use a debugging malloc? -- experimental */ | |
171 #undef USE_DEBUG_MALLOC | |
172 | |
2367 | 173 /* Use the relocating allocator for buffer space? */ |
174 #undef REL_ALLOC | |
175 | |
176 /* If using the C implementation of alloca, define if you know the | |
177 direction of stack growth for your system; otherwise it will be | |
178 automatically deduced at run-time. | |
179 STACK_DIRECTION > 0 => grows toward higher addresses | |
180 STACK_DIRECTION < 0 => grows toward lower addresses | |
181 STACK_DIRECTION = 0 => direction of growth unknown */ | |
182 #undef STACK_DIRECTION | |
183 | |
184 /* Is alloca() broken when part of an argument to a function call? */ | |
185 #undef BROKEN_ALLOCA_IN_FUNCTION_CALLS | |
186 | |
187 /* Define to 1 if you have `alloca', as a function or macro. */ | |
188 #undef HAVE_ALLOCA | |
189 | |
190 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). | |
191 */ | |
192 #undef HAVE_ALLOCA_H | |
193 | |
194 /* Define to 1 if using `alloca.c'. */ | |
195 #undef C_ALLOCA | |
196 | |
428 | 197 /* Compile in TTY support? */ |
198 #undef HAVE_TTY | |
199 | |
200 /* Compile in support for MS windows? */ | |
201 #undef HAVE_MS_WINDOWS | |
202 | |
203 /* special cygwin process handling? */ | |
204 #undef HAVE_MSG_SELECT | |
205 | |
206 /* Compile in support for the X window system? */ | |
207 #undef HAVE_X_WINDOWS | |
208 | |
3354 | 209 /* Compile with support for fontconfig? */ |
210 #undef HAVE_FONTCONFIG | |
211 | |
4328
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
212 /* Was the spelling of FcConfigGetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
213 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
214 #undef HAVE_FCCONFIGGETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
215 |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
216 /* Was the spelling of FcConfigSetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
217 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
218 #undef HAVE_FCCONFIGSETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
219 |
3094 | 220 /* Compile with support for Xft? */ |
221 #undef USE_XFT | |
222 /* Per-widget stuff will go away? */ | |
223 #undef USE_XFT_MENUBARS | |
224 #undef USE_XFT_TABS | |
225 #undef USE_XFT_GAUGE | |
226 | |
428 | 227 /* Defines for building X applications */ |
228 #ifdef HAVE_X_WINDOWS | |
229 /* The following will be defined if xmkmf thinks they are necessary */ | |
230 #undef SVR4 | |
231 #undef SYSV | |
232 #undef AIXV3 | |
233 #undef _POSIX_SOURCE | |
234 #undef _BSD_SOURCE | |
235 #undef _SVID_SOURCE | |
236 #undef X_LOCALE | |
237 #undef NARROWPROTO | |
771 | 238 #endif /* HAVE_X_WINDOWS */ |
239 | |
462 | 240 /* Defines for building Gtk applications */ |
241 #undef HAVE_GNOME | |
242 #undef HAVE_GTK | |
243 #undef HAVE_GDK_IMLIB_INIT | |
244 #undef HAVE_GLADE_GLADE_H | |
245 #undef HAVE_GLADE_H | |
246 #undef LIBGLADE_XML_TXTDOMAIN | |
247 | |
444 | 248 /* XFree86 has a different prototype for this function */ |
249 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK | |
250 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE | |
428 | 251 |
252 #undef THIS_IS_X11R4 | |
253 #undef THIS_IS_X11R5 | |
254 #undef THIS_IS_X11R6 | |
255 | |
442 | 256 #undef HAVE_XCONVERTCASE |
2625 | 257 #undef HAVE_XTREGISTERDRAWABLE |
442 | 258 |
259 #undef HAVE_BALLOON_HELP | |
260 | |
428 | 261 /* Where do we find bitmaps? */ |
262 #undef BITMAPDIR | |
263 | |
264 /* Define AMPERSAND_FULL_NAME if you use the convention | |
265 that & in the full name stands for the login id. */ | |
266 #undef AMPERSAND_FULL_NAME | |
267 | |
268 /* Some things figured out by the configure script, grouped as they are in | |
269 configure.in. */ | |
270 #undef HAVE_MCHECK_H | |
442 | 271 #undef HAVE_A_OUT_H |
446 | 272 #undef HAVE_ELF_H |
442 | 273 #undef HAVE_CYGWIN_VERSION_H |
274 #undef HAVE_FCNTL_H | |
275 #undef HAVE_INTTYPES_H | |
276 #undef HAVE_LIBGEN_H | |
277 #undef HAVE_LOCALE_H | |
912 | 278 #undef HAVE_WCHAR_H |
428 | 279 #undef HAVE_MACH_MACH_H |
442 | 280 #undef HAVE_SYS_PARAM_H |
281 #undef HAVE_SYS_PSTAT_H | |
2263 | 282 #undef HAVE_SYS_RESOURCE_H |
442 | 283 #undef HAVE_SYS_TIME_H |
428 | 284 #undef HAVE_SYS_TIMEB_H |
777 | 285 #undef HAVE_SYS_TIMES_H |
442 | 286 #undef HAVE_SYS_UN_H |
2263 | 287 #undef HAVE_SYS_VLIMIT_H |
442 | 288 #undef HAVE_ULIMIT_H |
428 | 289 #undef HAVE_UNISTD_H |
442 | 290 |
428 | 291 #undef HAVE_SYS_WAIT_H |
292 #undef HAVE_LIBINTL_H | |
293 #undef HAVE_X11_XLOCALE_H | |
872 | 294 |
295 /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C | |
296 defines it, but its value is 0 unless we disable non-ANSI extensions. | |
297 VC++ doesn't define it at all unless we disable non-ANSI extensions. | |
298 But these compilers are all ANSI-compliant. So don't go testing | |
299 __STDC__ anywhere except in code that runs only on known | |
300 compilers. --ben | |
301 | |
302 Jamie wrote the following: | |
303 | |
304 [[ The ANSI standard says that defining __STDC__ to a non-zero value | |
305 means that the compiler conforms to that standard. The standard | |
306 requires certain header files and library functions to be present. | |
307 Therefore, if your compiler defines __STDC__ to non-0 but does not have | |
308 ANSI headers and the ANSI library routines, then your compiler is | |
309 buggy. Conversely, an ANSI-conforming environment (which has both the | |
310 ANSI headers and library routines, i.e., stdlib.h and `memmove') does | |
311 not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an | |
312 ANSI compiler. Therefore, there is no need to consult the abominable | |
313 STDC_HEADERS flag. -- jwz ]] | |
314 | |
315 In reality, we should not be testing STDC_HEADERS at all except | |
316 possibly in code we're purposely keeping in close sync with FSF code. | |
317 STDC_HEADERS should be defined on *ALL* compilers. | |
318 */ | |
319 | |
428 | 320 #undef STDC_HEADERS |
872 | 321 |
428 | 322 #undef TIME_WITH_SYS_TIME |
323 #undef WORDS_BIGENDIAN | |
324 | |
325 #undef HAVE_LONG_FILE_NAMES | |
326 | |
327 /* Use lock files to detect multiple edits of the same file? */ | |
328 #undef CLASH_DETECTION | |
329 | |
330 /* Have shared library support */ | |
331 #undef HAVE_DLOPEN | |
332 #undef HAVE_DLERROR | |
333 #undef HAVE__DLERROR | |
334 #undef HAVE_SHL_LOAD | |
1383 | 335 #undef HAVE_DYLD |
2078 | 336 #undef HAVE_LTDL |
1259 | 337 #undef DLSYM_NEEDS_UNDERSCORE |
1790 | 338 #undef HAVE_SHLIB |
428 | 339 |
340 #undef HAVE_LIBINTL | |
341 #undef HAVE_LIBDNET | |
342 #undef HAVE_LIBRESOLV | |
343 | |
344 /* Is `sys_siglist' declared by <signal.h>? */ | |
2651 | 345 #undef HAVE_DECL_SYS_SIGLIST |
428 | 346 |
347 /* Is `struct timeval' declared by <sys/time.h>? */ | |
348 #undef HAVE_TIMEVAL | |
349 | |
350 | |
351 #undef TM_IN_SYS_TIME | |
352 #undef HAVE_TM_ZONE | |
353 #undef HAVE_TZNAME | |
354 | |
442 | 355 /* For `getloadavg' provided by system */ |
356 #undef HAVE_GETLOADAVG | |
357 #undef HAVE_SYS_LOADAVG_H | |
358 /* For implementing `getloadavg' ourselves */ | |
359 #undef HAVE_LIBKSTAT | |
360 #undef HAVE_KSTAT_H | |
361 | |
428 | 362 /* Is `h_errno' declared by <netdb.h>? */ |
363 #undef HAVE_H_ERRNO | |
364 | |
365 /* Does `localtime' cache TZ? */ | |
366 #undef LOCALTIME_CACHE | |
367 | |
368 /* Can `gettimeofday' accept two arguments? */ | |
369 #undef GETTIMEOFDAY_ONE_ARGUMENT | |
370 | |
2367 | 371 /* Is scanf() broken? (Under certain versions of Cygwin) */ |
372 #undef CYGWIN_SCANF_BUG | |
373 | |
428 | 374 #undef HAVE_MMAP |
375 #undef HAVE_STRCOLL | |
376 #undef HAVE_GETPGRP | |
377 #undef GETPGRP_VOID | |
378 | |
379 #undef HAVE_INVERSE_HYPERBOLIC | |
380 | |
2367 | 381 /* Functions in the big list of functions checked for */ |
428 | 382 #undef HAVE_CBRT |
383 #undef HAVE_CLOSEDIR | |
384 #undef HAVE_DUP2 | |
385 #undef HAVE_EACCESS | |
386 #undef HAVE_FMOD | |
387 #undef HAVE_FPATHCONF | |
388 #undef HAVE_FREXP | |
2367 | 389 #undef HAVE_FSYNC |
428 | 390 #undef HAVE_FTIME |
2367 | 391 #undef HAVE_FTRUNCATE |
440 | 392 #undef HAVE_GETADDRINFO |
428 | 393 #undef HAVE_GETHOSTNAME |
440 | 394 #undef HAVE_GETNAMEINFO |
428 | 395 #undef HAVE_GETPAGESIZE |
2263 | 396 #undef HAVE_GETRLIMIT |
428 | 397 #undef HAVE_GETTIMEOFDAY |
398 #undef HAVE_GETCWD | |
771 | 399 #undef HAVE_LINK |
428 | 400 #undef HAVE_LOGB |
401 #undef HAVE_LRAND48 | |
402 #undef HAVE_MATHERR | |
403 #undef HAVE_MKDIR | |
404 #undef HAVE_MKTIME | |
405 #undef HAVE_PERROR | |
406 #undef HAVE_POLL | |
407 #undef HAVE_RANDOM | |
771 | 408 #undef HAVE_READLINK |
428 | 409 #undef HAVE_RENAME |
410 #undef HAVE_RES_INIT | |
411 #undef HAVE_RINT | |
412 #undef HAVE_RMDIR | |
413 #undef HAVE_SELECT | |
414 #undef HAVE_SETITIMER | |
415 #undef HAVE_SETPGID | |
416 #undef HAVE_SETSID | |
417 #undef HAVE_SIGBLOCK | |
418 #undef HAVE_SIGHOLD | |
419 #undef HAVE_SIGPROCMASK | |
420 #undef HAVE_SNPRINTF | |
421 #undef HAVE_STRERROR | |
1204 | 422 #undef HAVE_STRLWR |
423 #undef HAVE_STRUPR | |
771 | 424 #undef HAVE_SYMLINK |
428 | 425 #undef HAVE_TZSET |
426 #undef HAVE_ULIMIT | |
2367 | 427 #undef HAVE_UMASK |
428 | 428 #undef HAVE_USLEEP |
2367 | 429 #undef HAVE_VLIMIT |
430 #undef HAVE_VSNPRINTF | |
431 #undef HAVE_WAITPID | |
432 #undef HAVE_WCSCMP | |
433 #undef HAVE_WCSLEN | |
434 | |
3092 | 435 /* Functions and structs checked for vdb. */ |
436 #undef HAVE_MPROTECT | |
437 #undef HAVE_SIGACTION | |
438 #undef HAVE_STRUCT_SIGINFO_SI_ADDR | |
439 #undef HAVE_SIGINFO_T_SI_ADDR | |
440 #undef HAVE_SIGNAL | |
441 #undef HAVE_STRUCT_SIGCONTEXT_CR2 | |
442 | |
460 | 443 #undef HAVE_UTIME |
428 | 444 #undef HAVE_UTIMES |
2367 | 445 #undef HAVE_SIGSETJMP |
442 | 446 |
535 | 447 /* Many flavors of PTY support */ |
2651 | 448 /* glibc's easy pty allocation function */ |
449 #undef HAVE_GETPT | |
450 /* SGI's easy pty allocation function */ | |
451 #undef HAVE__GETPTY | |
452 /* BSD's easy pty allocation function */ | |
453 #undef HAVE_OPENPTY | |
454 /* Unix98 */ | |
455 #undef HAVE_GRANTPT | |
456 /* Unix98 */ | |
457 #undef HAVE_UNLOCKPT | |
458 /* Unix98 */ | |
459 #undef HAVE_PTSNAME | |
460 /* BSD */ | |
461 #undef HAVE_KILLPG | |
462 /* Posix 1 */ | |
463 #undef HAVE_TCGETPGRP | |
464 /* SysV streams */ | |
465 #undef HAVE_ISASTREAM | |
466 /* AIX */ | |
467 #undef HAVE_SYS_PTY_H | |
468 /* HP-UX */ | |
469 #undef HAVE_SYS_PTYIO_H | |
470 /* Linux, Tru64 */ | |
471 #undef HAVE_PTY_H | |
472 /* BSD openpty */ | |
473 #undef HAVE_LIBUTIL_H | |
474 /* NetBSD openpty */ | |
475 #undef HAVE_UTIL_H | |
476 /* SysV streams */ | |
477 #undef HAVE_STROPTS_H | |
478 /* SysV streams TIOCSIGNAL */ | |
479 #undef HAVE_STRTIO_H | |
442 | 480 |
428 | 481 #undef HAVE_SOCKETS |
482 #undef HAVE_SOCKADDR_SUN_LEN | |
483 #undef HAVE_MULTICAST | |
484 #undef HAVE_SYSVIPC | |
438 | 485 #undef HAVE_LOCKF |
486 #undef HAVE_FLOCK | |
428 | 487 |
488 #undef SYSV_SYSTEM_DIR | |
489 #undef NONSYSTEM_DIR_LIBRARY | |
490 | |
491 #undef HAVE_TERMIOS | |
492 #undef HAVE_TERMIO | |
493 #undef NO_TERMIO | |
494 #undef SIGNALS_VIA_CHARACTERS | |
495 | |
496 #undef NLIST_STRUCT | |
497 | |
724 | 498 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */ |
499 #undef IPV6_CANONICALIZE | |
500 | |
428 | 501 /* Compile in support for SOCKS? */ |
502 #undef HAVE_SOCKS | |
503 | |
504 /* Compile in support for X pixmaps via the `xpm' library? */ | |
505 #undef HAVE_XPM | |
506 #undef FOR_MSW | |
507 | |
508 /* Compile in support for "X faces" via the `compface' library? | |
509 This enables graphical display of X-face headers in mail/news messages */ | |
510 #undef HAVE_XFACE | |
511 | |
512 /* Compile in support for JPEG images */ | |
513 #undef HAVE_JPEG | |
514 | |
515 /* Compile in support for TIFF images */ | |
516 #undef HAVE_TIFF | |
517 | |
518 /* Compile in support for GIF images */ | |
519 #undef HAVE_GIF | |
520 | |
521 /* Compile in support for PNG images */ | |
522 #undef HAVE_PNG | |
523 | |
771 | 524 /* Compile in support for GZIP compression */ |
525 #undef HAVE_ZLIB | |
526 | |
428 | 527 /* Do you have the Xmu library? |
528 This should always be the case except on losing HP-UX systems. */ | |
529 #undef HAVE_XMU | |
530 | |
531 /* Compile in support for DBM databases? May require libgdbm or libdbm. */ | |
532 #undef HAVE_DBM | |
533 | |
3739 | 534 /* Define to 1 if the system has the type `u_int8_t'. */ |
535 #undef HAVE_U_INT8_T | |
536 /* Define to 1 if the system has the type `u_int16_t'. */ | |
537 #undef HAVE_U_INT16_T | |
538 /* Define to 1 if the system has the type `u_int32_t'. */ | |
539 #undef HAVE_U_INT32_T | |
540 /* Define to 1 if the system has the type `u_int64_t'. */ | |
541 #undef HAVE_U_INT64_T | |
542 | |
428 | 543 /* Compile in support for Berkeley DB style databases? May require libdb. */ |
544 #undef HAVE_BERKELEY_DB | |
545 /* Full #include file path for Berkeley DB's db.h */ | |
442 | 546 #undef DB_H_FILE |
428 | 547 |
548 /* Do we have either DBM or Berkeley DB database support? */ | |
549 #undef HAVE_DATABASE | |
550 | |
551 /* Do we have LDAP support? */ | |
552 #undef HAVE_LDAP | |
553 /* Does the library define ldap_set_option () ? */ | |
554 #undef HAVE_LDAP_SET_OPTION | |
555 /* Does the library define ldap_get_lderrno () ? */ | |
556 #undef HAVE_LDAP_GET_LDERRNO | |
557 /* Does the library define ldap_result2error () ? */ | |
558 #undef HAVE_LDAP_RESULT2ERROR | |
559 /* Does the library define ldap_parse_result () ? */ | |
560 #undef HAVE_LDAP_PARSE_RESULT | |
561 | |
442 | 562 /* Do we have PostgreSQL RDBMS support? */ |
563 #undef HAVE_POSTGRESQL | |
564 #undef HAVE_POSTGRESQLV7 | |
2651 | 565 /* main PostgreSQL header file */ |
566 #undef LIBPQ_FE_H_FILE | |
442 | 567 |
428 | 568 /* Do you have the Xauth library present? This will add some extra |
569 functionality to gnuserv. */ | |
570 #undef HAVE_XAUTH | |
571 | |
572 /* Compile in support for gpm (General Purpose Mouse)? */ | |
573 #undef HAVE_GPM | |
574 | |
575 /* Compile in support for ncurses? */ | |
576 #undef HAVE_NCURSES | |
577 /* Full #include file paths for ncurses' curses.h and term.h. */ | |
442 | 578 #undef CURSES_H_FILE |
579 #undef TERM_H_FILE | |
428 | 580 |
581 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). | |
582 If the assertion fails, assert_failed() will be called. This is | |
583 recommended for general use because it gives more info about the crash | |
584 than just the abort() message. Too many people "Can't find the corefile" | |
585 or have limit-ed core dumps out of existence. */ | |
586 #undef USE_ASSERTIONS | |
587 | |
588 /* Define one or more of the following if you want lots of extra checks | |
589 (e.g. structure validation) compiled in. These should be turned | |
3959 | 590 on during the beta-test cycle. |
591 | |
592 Keep macro names sorted to help with syncing this file to configure.ac. | |
593 Don't forget the ERROR_CHECK_ALL stuff at the end of this file. */ | |
594 | |
595 /* Minor sanity checking of the bytecode interpreter. Useful for | |
596 debugging the byte compiler. */ | |
597 #undef ERROR_CHECK_BYTE_CODE | |
598 | |
599 /* Sanity-check the redisplay structures after each modification. */ | |
600 #undef ERROR_CHECK_DISPLAY | |
428 | 601 |
602 /* Check the entire extent structure of a buffer each time an extent | |
603 change is done, and do other extent-related checks. */ | |
604 #undef ERROR_CHECK_EXTENTS | |
440 | 605 |
3959 | 606 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */ |
607 #undef ERROR_CHECK_GC | |
608 | |
609 /* Minor sanity checking of glyphs, especially subwindows and | |
610 widgets. */ | |
611 #undef ERROR_CHECK_GLYPHS | |
612 | |
613 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */ | |
614 #undef ERROR_CHECK_MALLOC | |
615 | |
616 /* Define for any sanity checks on structures that are not handled by a | |
617 more specific error-checking type. */ | |
618 #undef ERROR_CHECK_STRUCTURES | |
440 | 619 |
800 | 620 /* Turn on checks related to text -- check that text in strings and buffers |
621 is in a valid format before we use it, check that buffer positions are | |
622 valid, etc. */ | |
623 #undef ERROR_CHECK_TEXT | |
440 | 624 |
3959 | 625 /* Turn on checks related to types -- make sure that all X... macros are |
626 dereferencing the correct type, and that all XSET... macros (as much as | |
627 possible) are setting the correct type of structure; check any other | |
628 places that a specific type is expected. */ | |
629 #undef ERROR_CHECK_TYPES | |
800 | 630 |
428 | 631 /* Define DEBUG_XEMACS if you want extra debugging code compiled in. |
632 This is mainly intended for use by developers. */ | |
633 #undef DEBUG_XEMACS | |
634 | |
635 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to | |
636 determine where XEmacs' memory is going. */ | |
637 #undef MEMORY_USAGE_STATS | |
638 | |
460 | 639 /* Define QUANTIFY if using Quantify from Rational Software. |
428 | 640 This adds some additional calls to control data collection. |
641 It is only intended for use by the developers. */ | |
642 #undef QUANTIFY | |
643 | |
460 | 644 /* Define PURIFY if using Purify from Rational Software. |
428 | 645 It is only intended for use by the developers. */ |
646 #undef PURIFY | |
647 | |
648 /* Define EXTERNAL_WIDGET to compile support for using the editor as a | |
649 widget within another program. */ | |
650 #undef EXTERNAL_WIDGET | |
651 | |
652 /* There are some special-case defines for gcc and lcc. */ | |
653 #undef USE_GCC | |
654 #undef USE_LCC | |
655 | |
656 /* Compile in support for CDE (Common Desktop Environment) drag and drop? | |
657 Requires libDtSvc, which typically must be present at runtime. */ | |
658 #undef HAVE_CDE | |
659 | |
660 /* Compile in support for OffiX Drag and Drop? */ | |
661 #undef HAVE_OFFIX_DND | |
662 | |
663 /* Compile in generic Drag'n'Drop API */ | |
664 #undef HAVE_DRAGNDROP | |
665 | |
666 /* Compile in support for proper handling of WM_COMMAND. */ | |
667 #undef HAVE_WMCOMMAND | |
668 | |
669 /* Define this if you want Mule support (multi-byte character support). | |
670 There may be some performance penalty, although it should be small | |
671 if you're working with ASCII files. */ | |
672 #undef MULE | |
673 | |
771 | 674 /* Define this if you want EOL detection of files to be on by default |
675 in a non-Mule Unix; otherwise, defaults will be set so that all | |
676 files are read in as binary. Doesn't apply to Cygwin or MinGW. */ | |
677 #undef HAVE_DEFAULT_EOL_DETECTION | |
428 | 678 |
1259 | 679 /* Support X FontSets. Evil, yes, but if we're going to make it go away |
680 by using faces in the menubar we should do so. */ | |
681 #undef USE_XFONTSET | |
682 | |
428 | 683 /* Do we want to use X window input methods for use with Mule? (requires X11R5) |
684 If so, use raw Xlib or higher level Motif interface? */ | |
685 #undef HAVE_XIM | |
686 #undef XIM_XLIB | |
687 #undef XIM_MOTIF | |
688 | |
689 /* Non-XIM input methods for use with Mule. */ | |
690 #undef HAVE_CANNA | |
3830 | 691 #undef CANNA_NEW_WCHAR_AWARE |
428 | 692 #undef HAVE_WNN |
693 #undef WNN6 | |
694 | |
442 | 695 /* Debugging development option: Remove inessential but time consuming |
696 actions from happening during build. This saves a lot of time when | |
697 you're repeatedly compiling-running-crashing. This (1) doesn't | |
698 garbage-collect after loading each file during dumping, and (2) | |
699 doesn't automatically rebuild the DOC file. (Remove it by hand to | |
700 get it rebuilt.) | |
701 */ | |
702 #undef QUICK_BUILD | |
428 | 703 |
872 | 704 /* If true, run the compiler with many files at once rather than one at a |
705 time. May speed up compilation time with some compilers, particularly | |
706 if the entire compilation happens in a single process -- the process can | |
707 cache the results of processing include files. This definitely helps | |
708 with VC++ (although it doesn't use Makefile.in.in) but not with GCC, | |
709 which runs many processes per file to compile. */ | |
710 #undef BATCH_COMPILER_RUNS | |
711 | |
771 | 712 /* If defined, use unions instead of ints. A few systems (DEC Alpha) |
713 seem to require this, probably because something with the int | |
714 definitions isn't right with 64-bit systems. */ | |
715 #undef USE_UNION_TYPE | |
716 | |
926 | 717 /* If defined, use experimental pdump-based GC algorithms. */ |
718 #undef USE_KKCC | |
719 | |
3263 | 720 /* If defined, use experimental incremental garbage collector and new |
721 allocator. */ | |
3092 | 722 #undef NEW_GC |
723 | |
724 /* Virtual dirty bit implementation for incremental gc. */ | |
725 #undef VDB_POSIX | |
726 #undef VDB_MACH | |
727 #undef VDB_WIN32 | |
728 #undef VDB_FAKE | |
729 | |
771 | 730 /* Enable special GNU Make features in the Makefiles. */ |
731 #undef USE_GNU_MAKE | |
732 | |
428 | 733 /* Defined by AC_C_CONST in configure.in */ |
734 #undef const | |
735 | |
434 | 736 /* Allow the source to use standard types. Include these before the |
737 s&m files so that they can use them. */ | |
738 #undef ssize_t | |
739 #undef size_t | |
740 #undef pid_t | |
741 #undef mode_t | |
742 #undef off_t | |
743 #undef uid_t | |
744 #undef gid_t | |
442 | 745 #undef socklen_t |
434 | 746 |
2367 | 747 /* Enhanced numeric support */ |
748 #undef WITH_NUMBER_TYPES | |
749 #undef WITH_GMP | |
750 #undef WITH_MP | |
751 #undef MP_PREFIX | |
752 #undef HAVE_MP_MOVE | |
771 | 753 |
2367 | 754 #undef SIZEOF_SHORT |
755 #undef SIZEOF_INT | |
756 #undef SIZEOF_LONG | |
757 #undef SIZEOF_LONG_LONG | |
758 #undef SIZEOF_VOID_P | |
759 #undef SIZEOF_DOUBLE | |
615 | 760 |
2367 | 761 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h> |
762 but the standard is <inttypes.h> | |
763 ugliness due to last-resort conditional typedef'ing in lisp.h */ | |
764 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H | |
765 | |
766 /* Does the keyword `inline' exist? */ | |
767 #undef inline | |
428 | 768 |
2367 | 769 /* movemail options */ |
770 /* Should movemail use POP3 for mail access? */ | |
771 #undef MAIL_USE_POP | |
772 /* Should movemail use kerberos for POP authentication? */ | |
773 #undef KERBEROS | |
774 /* Should movemail use hesiod for getting POP server host? */ | |
775 #undef HESIOD | |
776 /* Determine type of mail locking. */ | |
777 #undef MAIL_LOCK_LOCKF | |
778 #undef MAIL_LOCK_FLOCK | |
779 #undef MAIL_LOCK_DOT | |
780 #undef MAIL_LOCK_LOCKING | |
781 #undef MAIL_LOCK_MMDF | |
428 | 782 |
2367 | 783 #undef HAVE_MKSTEMP |
428 | 784 |
2367 | 785 #undef PREFIX_USER_DEFINED |
786 #undef EXEC_PREFIX_USER_DEFINED | |
787 #undef MODULEDIR_USER_DEFINED | |
788 #undef SITEMODULEDIR_USER_DEFINED | |
789 #undef DOCDIR_USER_DEFINED | |
790 #undef LISPDIR_USER_DEFINED | |
3179 | 791 #undef EARLY_PACKAGE_DIRECTORIES_USER_DEFINED |
792 #undef LATE_PACKAGE_DIRECTORIES_USER_DEFINED | |
793 #undef LAST_PACKAGE_DIRECTORIES_USER_DEFINED | |
2367 | 794 #undef PACKAGE_PATH_USER_DEFINED |
795 #undef SITELISPDIR_USER_DEFINED | |
796 #undef ARCHLIBDIR_USER_DEFINED | |
797 #undef ETCDIR_USER_DEFINED | |
798 #undef INFODIR_USER_DEFINED | |
799 #undef INFOPATH_USER_DEFINED | |
872 | 800 |
2367 | 801 #undef PDUMP |
872 | 802 |
2720 | 803 /* Define DUMP_IN_EXEC to include the dump file in the executable |
804 file. */ | |
805 #undef DUMP_IN_EXEC | |
806 | |
428 | 807 /* Define DYNODUMP if it is necessary to properly dump on this system. |
808 Currently this is only Solaris 2.x, for x < 6. */ | |
809 #undef DYNODUMP | |
810 | |
811 /* Compile in support for Sun Sparcworks/WorkShop? */ | |
812 #undef SUNPRO | |
813 | |
814 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in | |
815 support for playing sound files. (On Suns, the sound support is | |
816 usually found in /usr/demo/SOUND - you may need to install the | |
817 "SUNWaudmo" package.) */ | |
818 #undef HAVE_NATIVE_SOUND | |
771 | 819 |
428 | 820 /* Native sound may be provided via soundcard.h, in various directories */ |
442 | 821 #undef SOUNDCARD_H_FILE |
428 | 822 |
3308 | 823 /* Compile in support for ALSA (Advanced Linux Sound Architecture) */ |
824 #undef HAVE_ALSA_SOUND | |
825 | |
428 | 826 /* Compile in support for NAS (Network Audio System)? |
827 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some | |
828 error handling changes. */ | |
829 #undef HAVE_NAS_SOUND | |
830 #undef NAS_NO_ERROR_JUMP | |
831 | |
832 /* Compile in support for ESD (Enlightened Sound Daemon)? */ | |
833 #undef HAVE_ESD_SOUND | |
834 | |
835 /* Compile in support for SunPro usage-tracking code? */ | |
836 #undef USAGE_TRACKING | |
837 | |
838 /* Compile in support for Tooltalk? */ | |
839 #undef TOOLTALK | |
840 /* tt_c.h might be in "Tt" or "desktop" subdirectories */ | |
442 | 841 #undef TT_C_H_FILE |
428 | 842 |
843 /* Toolkits used by lwlib for various widgets... */ | |
771 | 844 |
428 | 845 #undef LWLIB_USES_MOTIF |
846 #undef LWLIB_USES_ATHENA | |
847 #undef LWLIB_MENUBARS_LUCID | |
848 #undef LWLIB_MENUBARS_MOTIF | |
849 #undef LWLIB_SCROLLBARS_LUCID | |
850 #undef LWLIB_SCROLLBARS_MOTIF | |
851 #undef LWLIB_SCROLLBARS_ATHENA | |
852 #undef LWLIB_SCROLLBARS_ATHENA3D | |
853 #undef LWLIB_DIALOGS_MOTIF | |
854 #undef LWLIB_DIALOGS_ATHENA | |
855 #undef LWLIB_DIALOGS_ATHENA3D | |
856 #undef LWLIB_TABS_LUCID | |
857 #undef LWLIB_WIDGETS_MOTIF | |
858 #undef LWLIB_WIDGETS_ATHENA | |
440 | 859 #undef HAVE_ATHENA_3D |
428 | 860 |
861 /* Other things that can be disabled by configure. */ | |
862 #undef HAVE_MENUBARS | |
863 #undef HAVE_SCROLLBARS | |
864 #undef HAVE_DIALOGS | |
865 #undef HAVE_TOOLBARS | |
866 #undef HAVE_WIDGETS | |
867 | |
771 | 868 #endif /* WIN32_NO_CONFIGURE */ |
869 | |
2994 | 870 #ifdef _MSC_VER |
871 /* Turn off tons of C4996 warnings in VC 8 about standard functions being | |
872 "deprecated" in favor of Microsoft-specific "secure" ones (!) | |
873 This must go *before* the inclusion of any system files. */ | |
874 #define _CRT_SECURE_NO_DEPRECATE | |
875 #endif | |
876 | |
2367 | 877 /* alloca twiddling. |
878 Because we might be #including alloca.h here, feature test macros | |
879 such as _XOPEN_SOURCE must be defined above. | |
880 | |
881 #### This really should go below the inclusion of s&m files, like | |
882 everything else. */ | |
883 | |
884 #ifndef NOT_C_CODE | |
885 #if defined (__CYGWIN__) | |
886 /* We get complaints about redefinitions if we just use the __GNUC__ | |
887 definition: stdlib.h also includes alloca.h, which defines it slightly | |
888 differently */ | |
889 #include <alloca.h> | |
890 #elif defined (__GNUC__) | |
891 #define alloca __builtin_alloca | |
892 #elif defined (WIN32_NO_CONFIGURE) | |
893 /* Defines size_t and alloca (). */ | |
894 #include <malloc.h> | |
895 #elif defined (__DECC) | |
896 #include <alloca.h> | |
897 #pragma intrinsic(alloca) | |
898 #elif defined (HAVE_ALLOCA_H) | |
899 #include <alloca.h> | |
900 #elif defined (_AIX) | |
901 /* AIX requires this before any "real" code in the translation unit. */ | |
902 #pragma alloca | |
903 #elif ! defined (alloca) | |
904 #ifdef C_ALLOCA | |
905 #define alloca xemacs_c_alloca | |
906 #else | |
907 void *alloca (); | |
908 #endif /* C_ALLOCA */ | |
909 #endif /* !defined (alloca) */ | |
910 #endif /* C code */ | |
911 | |
912 /* The configuration script may define `opsysfile' to be the name of | |
913 the s/...h file that describes your operating system. | |
914 The file name is chosen based on the configuration name. */ | |
915 | |
916 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
917 extern "C" { | |
918 #endif | |
919 | |
920 #undef config_opsysfile | |
921 #ifdef WIN32_NO_CONFIGURE | |
922 #include "s/windowsnt.h" | |
923 #elif defined (config_opsysfile) | |
924 #include config_opsysfile | |
925 #endif | |
926 | |
927 /* The configuration script may define `machfile' to be the name of | |
928 the m/...h file that describes the machine you are using. | |
929 The file name is chosen based on the configuration name. */ | |
930 | |
931 #undef config_machfile | |
932 #ifdef WIN32_NO_CONFIGURE | |
933 #include "m/windowsnt.h" | |
934 #elif defined (config_machfile) | |
935 #include config_machfile | |
936 #endif | |
937 | |
938 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
939 } | |
940 #endif | |
941 | |
942 /* This will be removed in 19.15. */ | |
943 /* Hah! Try 20.3 ... */ | |
944 /* Hah! Try never ... */ | |
945 /* If at first you don't succeed, try, try again. */ | |
946 /* #define LOSING_BYTECODE */ | |
947 | |
948 /* USER_FULL_NAME returns a string that is the user's full name. | |
949 It can assume that the variable `pw' points to the password file | |
950 entry for this user. | |
951 | |
952 At some sites, the pw_gecos field contains the user's full name. | |
953 If neither this nor any other field contains the right thing, use | |
954 pw_name, giving the user's login name, since that is better than | |
955 nothing. */ | |
956 #define USER_FULL_NAME pw->pw_gecos | |
957 | |
958 #define XEMACS_WANTS_C_ALLOCA | |
959 | |
960 /* s&m files shouldn't be required to define anything, or even to exist. | |
961 If the s&m files don't define SYSTEM_TYPE, configure will select an | |
962 appropriate default value. */ | |
963 #ifndef SYSTEM_TYPE | |
964 #undef SYSTEM_TYPE | |
965 #endif | |
966 | |
967 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) | |
968 #define SYSTEM_MALLOC | |
969 #endif | |
970 | |
2994 | 971 /* This enables type based information (updated during gc). The output |
972 is used by show-memory-usage to print memory information for each | |
973 type. Since the new allocator does not distinguish between types | |
974 anymore, this functionality is additionally implemented and | |
975 consumes a lot of time. That is why this functionality can be | |
976 disabled; for the moment, we keep it enabled. */ | |
977 #if !defined (MC_ALLOC) || 1 | |
978 # define ALLOC_TYPE_STATS 1 | |
979 #endif | |
980 | |
2367 | 981 /* Define the return type of signal handlers if the s/xxx.h file |
982 did not already do so. */ | |
983 #define RETSIGTYPE void | |
984 | |
985 #ifndef XCDECL | |
986 #define XCDECL | |
987 #endif | |
988 | |
989 /* SIGTYPE is the macro we actually use. */ | |
990 #ifndef SIGTYPE | |
991 #define SIGTYPE RETSIGTYPE XCDECL | |
992 #define SIGRETURN return | |
993 #endif | |
994 | |
995 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ | |
996 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */ | |
997 #define HAVE_WINDOW_SYSTEM | |
998 #endif | |
999 | |
771 | 1000 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS) |
1001 #define HAVE_GUI_OBJECTS | |
1002 #endif | |
1003 | |
2367 | 1004 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS) |
1005 #define HAVE_POPUPS | |
1006 #endif | |
1007 | |
1008 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) | |
1009 #define HAVE_XLIKE | |
1010 #endif | |
1011 | |
771 | 1012 /* For the moment, Athena widgets and dialogs may be very unstable and not |
1013 working well, but things under Windows work much better. configure by | |
1014 default tries to turn Windows widgets and dialogs on, but the Athena | |
1015 ones off, so let's separate the defines. */ | |
1016 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA)) | |
1017 #define HAVE_X_WIDGETS | |
1018 #endif | |
1019 | |
1020 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D)) | |
1021 #define HAVE_X_DIALOGS | |
1022 #endif | |
428 | 1023 |
2367 | 1024 #ifdef HAVE_X_WINDOWS |
1025 /* The following should always be defined, no matter what xmkmf thinks. */ | |
1026 #ifndef NeedFunctionPrototypes | |
1027 #define NeedFunctionPrototypes 1 | |
1028 #endif | |
1029 #ifndef FUNCPROTO | |
1030 #define FUNCPROTO 15 | |
1031 #endif | |
1032 #endif /* HAVE_X_WINDOWS */ | |
1033 | |
1034 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS) | |
1035 #define XLIB_ILLEGAL_ACCESS 1 | |
1036 #endif | |
1037 | |
1038 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */ | |
1039 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT) | |
1040 #define HAVE_UNIXOID_EVENT_LOOP | |
428 | 1041 #endif |
1042 | |
1043 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. | |
1044 There is a stupid bug in the SunOS libc.a: two functions which X11r5 | |
1045 uses, mbstowcs() and wcstombs(), are unusable when programs are | |
1046 statically linked (as XEmacs must be) because the static version of | |
1047 libc.a contains the *dynamic* versions of these functions. These | |
1048 functions don't seem to be called when XEmacs is running, so it's | |
1049 enough to define stubs for them. | |
1050 | |
1051 This appears to be fixed in SunOS 4.1.2. | |
1052 | |
1053 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that | |
1054 sometimes reference memory past the end of the string, which can segv. | |
444 | 1055 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */ |
428 | 1056 #if defined (sparc) && !defined (USG) |
1057 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o | |
1058 #endif | |
1059 | |
1060 #ifdef HAVE_CANNA | |
1061 # define CANNA_MULE | |
1062 # define CANNA_PURESIZE 0 | |
1063 #else /* not CANNA */ | |
1064 # define CANNA_PURESIZE 0 | |
1065 #endif /* not CANNA */ | |
1066 | |
1067 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) | |
1068 #define accept Raccept | |
1069 #define bind Rbind | |
1070 #define connect Rconnect | |
1071 #define getsockname Rgetsockname | |
1072 #define listen Rlisten | |
1073 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ | |
1074 | |
1075 #ifndef BITS_PER_CHAR | |
1076 #define BITS_PER_CHAR 8 | |
1077 #endif | |
1078 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) | |
1079 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) | |
1080 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) | |
1081 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | |
1082 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | |
1983 | 1083 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR) |
1084 | |
442 | 1085 /* Use `INLINE_HEADER' to define inline functions in .h files. |
1086 Use `inline static' to define inline functions in .c files. | |
1087 See the Internals manual for examples and more information. */ | |
1088 | |
3493 | 1089 #if defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs) |
442 | 1090 # define INLINE_HEADER inline static |
1091 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS) | |
1092 # define INLINE_HEADER inline | |
1093 #else | |
1094 # define INLINE_HEADER inline extern | |
1095 #endif | |
428 | 1096 |
771 | 1097 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header |
1098 file, like this: (This avoids the need to write a prototype directly | |
1099 followed by the function header itself.) | |
1100 | |
1101 DECLARE_INLINE_HEADER (int foo (int x)) | |
1102 { | |
1103 return x * x; | |
1104 } | |
1105 | |
1106 */ | |
1107 | |
1108 #define DECLARE_INLINE_HEADER(header) \ | |
1109 INLINE_HEADER header ; INLINE_HEADER header | |
1110 | |
442 | 1111 #ifndef NOT_C_CODE /* Actually means C or C++ */ |
1112 # if defined (__cplusplus) | |
1113 # define EXTERN_C extern "C" | |
1114 # else /* C code */ | |
1115 # define EXTERN_C extern | |
1116 # endif | |
1117 #endif /* C or C++ */ | |
428 | 1118 |
1119 /* Strictly speaking, only int or unsigned int are valid types in a | |
1120 bitfield. In practice, we would like to use enums as bitfields. | |
1121 The following should just result in warning avoidance: | |
1122 warning: nonportable bit-field type */ | |
1123 #ifdef __GNUC__ | |
1124 #define enum_field(enumeration_type) enum enumeration_type | |
1125 #else | |
1126 #define enum_field(enumeration_type) unsigned int | |
1127 #endif | |
1128 | |
1129 /* We want to avoid saving the signal mask if possible, because | |
1130 that necessitates a system call. */ | |
1131 #ifdef HAVE_SIGSETJMP | |
1132 # define SETJMP(x) sigsetjmp (x, 0) | |
1133 # define LONGJMP(x, y) siglongjmp (x, y) | |
1134 # define JMP_BUF sigjmp_buf | |
1135 #else | |
1136 # define SETJMP(x) setjmp (x) | |
1137 # define LONGJMP(x, y) longjmp (x, y) | |
1138 # define JMP_BUF jmp_buf | |
1139 #endif | |
1140 | |
838 | 1141 /* For the moment, we go ahead and keep this, since it's used in mouse.el. |
1142 #### font-lock does its own version using parse-partial-sexp. We should | |
1143 merge the two. */ | |
1144 #define USE_C_FONT_LOCK | |
1145 | |
3959 | 1146 /* Keep the #defines sorted. |
1147 #### Can this code ever be executed? I guess if a developer #defines | |
1148 ERROR_CHECK_ALL above the #include it could be useful. */ | |
800 | 1149 #ifdef ERROR_CHECK_ALL |
3959 | 1150 #define ERROR_CHECK_BYTE_CODE |
1151 #define ERROR_CHECK_DISPLAY | |
800 | 1152 #define ERROR_CHECK_EXTENTS |
1153 #define ERROR_CHECK_GC | |
3959 | 1154 #define ERROR_CHECK_GLYPHS |
800 | 1155 #define ERROR_CHECK_MALLOC |
1156 #define ERROR_CHECK_STRUCTURES | |
3959 | 1157 #define ERROR_CHECK_TEXT |
1158 #define ERROR_CHECK_TYPES | |
800 | 1159 #endif /* ERROR_CHECK_ALL */ |
1160 | |
428 | 1161 #endif /* _SRC_CONFIG_H_ */ |