Mercurial > hg > xemacs-beta
annotate src/config.h.in @ 4735:80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
GNU_MALLOC define, which was only used to distinguish between "old" and "new"
GNU malloc. See xemacs-patches message with ID
<870180fe0911061348g168f85e2m5153e2b554b94803@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Mon, 09 Nov 2009 09:21:59 -0700 |
parents | 19d70297d866 |
children | a6f27e2b3d84 |
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 | |
4448
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
94 /* Name of the link to the program to be used with #! scripts */ |
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
95 #undef SHEBANG_PROGNAME |
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
96 |
428 | 97 /* Allow s&m files to differentiate OS versions without having |
98 multiple files to maintain. */ | |
99 #undef OS_RELEASE | |
100 | |
101 /* The configuration name. This is used as the install directory name | |
102 for the lib-src programs. */ | |
103 #undef EMACS_CONFIGURATION | |
104 | |
105 /* The configuration options. This is exported to Lisp. */ | |
106 #undef EMACS_CONFIG_OPTIONS | |
107 | |
108 /* The version info from version.sh. Used in #pragma ident in emacs.c */ | |
109 #undef EMACS_MAJOR_VERSION | |
110 #undef EMACS_MINOR_VERSION | |
111 #undef EMACS_PATCH_LEVEL | |
112 #undef EMACS_BETA_VERSION | |
113 #undef EMACS_VERSION | |
114 #undef XEMACS_CODENAME | |
975 | 115 #undef XEMACS_EXTRA_NAME |
2602 | 116 #undef XEMACS_RELEASE_DATE |
428 | 117 /* InfoDock versions, not used with XEmacs */ |
118 #undef INFODOCK_MAJOR_VERSION | |
119 #undef INFODOCK_MINOR_VERSION | |
120 #undef INFODOCK_BUILD_VERSION | |
121 | |
442 | 122 /* Make functions from IEEE Stds 1003.[123] available. */ |
123 #undef _POSIX_C_SOURCE | |
124 | |
125 /* Make some functions from Unix98 available. */ | |
126 #undef _XOPEN_SOURCE | |
127 | |
128 /* Make "extensions" from Unix98 available. */ | |
129 #undef _XOPEN_SOURCE_EXTENDED | |
130 | |
428 | 131 /* Make all functions available on AIX. See AC_AIX. */ |
1294 | 132 /* Some AIX compilers (cc) pre-define _ALL_SOURCE, some (xlc) don't. */ |
1284 | 133 #ifndef _ALL_SOURCE |
428 | 134 #undef _ALL_SOURCE |
1284 | 135 #endif |
428 | 136 |
137 /* Make all functions available on GNU libc systems. See features.h. */ | |
138 #undef _GNU_SOURCE | |
139 | |
442 | 140 /* Make all functions available on Solaris 2 systems. */ |
141 #undef __EXTENSIONS__ | |
142 | |
1799 | 143 /* Define to the name of the typeof extension, if the compiler supports one */ |
144 #undef TYPEOF | |
145 | |
428 | 146 /* Used to identify the XEmacs version in stack traces. */ |
147 #undef STACK_TRACE_EYE_CATCHER | |
148 | |
149 /* Allow the configurer to specify if she wants site-lisp. */ | |
150 #undef INHIBIT_SITE_LISP | |
151 | |
152 /* Allow the configurer to specify if she wants site-modules. */ | |
153 #undef INHIBIT_SITE_MODULES | |
154 | |
155 /* Undefine on systems which don't have processes */ | |
156 #undef HAVE_UNIX_PROCESSES | |
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 | |
4497
f863b2ee146f
Rename xft_gauge to xft_gauges.
Mats Lidell <matsl@xemacs.org>
parents:
4457
diff
changeset
|
225 #undef USE_XFT_GAUGES |
3094 | 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 |
4721
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
340 /* Darwin; realpath corrects for case: */ |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
341 #ifdef HAVE_DYLD |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
342 #define REALPATH_CORRECTS_CASE 1 |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
343 #endif |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
344 |
428 | 345 #undef HAVE_LIBINTL |
346 #undef HAVE_LIBDNET | |
347 #undef HAVE_LIBRESOLV | |
348 | |
349 /* Is `sys_siglist' declared by <signal.h>? */ | |
2651 | 350 #undef HAVE_DECL_SYS_SIGLIST |
428 | 351 |
352 /* Is `struct timeval' declared by <sys/time.h>? */ | |
353 #undef HAVE_TIMEVAL | |
354 | |
355 | |
356 #undef TM_IN_SYS_TIME | |
357 #undef HAVE_TM_ZONE | |
358 #undef HAVE_TZNAME | |
359 | |
442 | 360 /* For `getloadavg' provided by system */ |
361 #undef HAVE_GETLOADAVG | |
362 #undef HAVE_SYS_LOADAVG_H | |
363 /* For implementing `getloadavg' ourselves */ | |
364 #undef HAVE_LIBKSTAT | |
365 #undef HAVE_KSTAT_H | |
366 | |
428 | 367 /* Is `h_errno' declared by <netdb.h>? */ |
368 #undef HAVE_H_ERRNO | |
369 | |
370 /* Does `localtime' cache TZ? */ | |
371 #undef LOCALTIME_CACHE | |
372 | |
373 /* Can `gettimeofday' accept two arguments? */ | |
374 #undef GETTIMEOFDAY_ONE_ARGUMENT | |
375 | |
2367 | 376 /* Is scanf() broken? (Under certain versions of Cygwin) */ |
377 #undef CYGWIN_SCANF_BUG | |
378 | |
428 | 379 #undef HAVE_MMAP |
380 #undef HAVE_STRCOLL | |
381 #undef HAVE_GETPGRP | |
382 #undef GETPGRP_VOID | |
383 | |
384 #undef HAVE_INVERSE_HYPERBOLIC | |
385 | |
2367 | 386 /* Functions in the big list of functions checked for */ |
428 | 387 #undef HAVE_CBRT |
388 #undef HAVE_CLOSEDIR | |
389 #undef HAVE_DUP2 | |
390 #undef HAVE_EACCESS | |
391 #undef HAVE_FMOD | |
392 #undef HAVE_FPATHCONF | |
393 #undef HAVE_FREXP | |
2367 | 394 #undef HAVE_FSYNC |
428 | 395 #undef HAVE_FTIME |
2367 | 396 #undef HAVE_FTRUNCATE |
440 | 397 #undef HAVE_GETADDRINFO |
428 | 398 #undef HAVE_GETHOSTNAME |
440 | 399 #undef HAVE_GETNAMEINFO |
428 | 400 #undef HAVE_GETPAGESIZE |
2263 | 401 #undef HAVE_GETRLIMIT |
428 | 402 #undef HAVE_GETTIMEOFDAY |
403 #undef HAVE_GETCWD | |
771 | 404 #undef HAVE_LINK |
428 | 405 #undef HAVE_LOGB |
406 #undef HAVE_LRAND48 | |
407 #undef HAVE_MATHERR | |
408 #undef HAVE_MKDIR | |
409 #undef HAVE_MKTIME | |
410 #undef HAVE_PERROR | |
411 #undef HAVE_POLL | |
412 #undef HAVE_RANDOM | |
771 | 413 #undef HAVE_READLINK |
428 | 414 #undef HAVE_RENAME |
415 #undef HAVE_RES_INIT | |
416 #undef HAVE_RINT | |
417 #undef HAVE_RMDIR | |
418 #undef HAVE_SELECT | |
419 #undef HAVE_SETITIMER | |
420 #undef HAVE_SETPGID | |
421 #undef HAVE_SETSID | |
422 #undef HAVE_SIGBLOCK | |
423 #undef HAVE_SIGHOLD | |
424 #undef HAVE_SIGPROCMASK | |
425 #undef HAVE_SNPRINTF | |
426 #undef HAVE_STRERROR | |
1204 | 427 #undef HAVE_STRLWR |
428 #undef HAVE_STRUPR | |
771 | 429 #undef HAVE_SYMLINK |
428 | 430 #undef HAVE_TZSET |
431 #undef HAVE_ULIMIT | |
2367 | 432 #undef HAVE_UMASK |
428 | 433 #undef HAVE_USLEEP |
2367 | 434 #undef HAVE_VLIMIT |
435 #undef HAVE_VSNPRINTF | |
436 #undef HAVE_WAITPID | |
437 #undef HAVE_WCSCMP | |
438 #undef HAVE_WCSLEN | |
439 | |
3092 | 440 /* Functions and structs checked for vdb. */ |
441 #undef HAVE_MPROTECT | |
442 #undef HAVE_SIGACTION | |
443 #undef HAVE_STRUCT_SIGINFO_SI_ADDR | |
444 #undef HAVE_SIGINFO_T_SI_ADDR | |
445 #undef HAVE_SIGNAL | |
446 #undef HAVE_STRUCT_SIGCONTEXT_CR2 | |
447 | |
460 | 448 #undef HAVE_UTIME |
428 | 449 #undef HAVE_UTIMES |
2367 | 450 #undef HAVE_SIGSETJMP |
442 | 451 |
535 | 452 /* Many flavors of PTY support */ |
2651 | 453 /* glibc's easy pty allocation function */ |
454 #undef HAVE_GETPT | |
455 /* SGI's easy pty allocation function */ | |
456 #undef HAVE__GETPTY | |
457 /* BSD's easy pty allocation function */ | |
458 #undef HAVE_OPENPTY | |
459 /* Unix98 */ | |
460 #undef HAVE_GRANTPT | |
461 /* Unix98 */ | |
462 #undef HAVE_UNLOCKPT | |
463 /* Unix98 */ | |
464 #undef HAVE_PTSNAME | |
465 /* BSD */ | |
466 #undef HAVE_KILLPG | |
467 /* Posix 1 */ | |
468 #undef HAVE_TCGETPGRP | |
469 /* SysV streams */ | |
470 #undef HAVE_ISASTREAM | |
471 /* AIX */ | |
472 #undef HAVE_SYS_PTY_H | |
473 /* HP-UX */ | |
474 #undef HAVE_SYS_PTYIO_H | |
475 /* Linux, Tru64 */ | |
476 #undef HAVE_PTY_H | |
477 /* BSD openpty */ | |
478 #undef HAVE_LIBUTIL_H | |
479 /* NetBSD openpty */ | |
480 #undef HAVE_UTIL_H | |
481 /* SysV streams */ | |
482 #undef HAVE_STROPTS_H | |
483 /* SysV streams TIOCSIGNAL */ | |
484 #undef HAVE_STRTIO_H | |
442 | 485 |
428 | 486 #undef HAVE_SOCKETS |
487 #undef HAVE_SOCKADDR_SUN_LEN | |
488 #undef HAVE_MULTICAST | |
489 #undef HAVE_SYSVIPC | |
438 | 490 #undef HAVE_LOCKF |
491 #undef HAVE_FLOCK | |
428 | 492 |
493 #undef SYSV_SYSTEM_DIR | |
494 #undef NONSYSTEM_DIR_LIBRARY | |
495 | |
496 #undef HAVE_TERMIOS | |
497 #undef HAVE_TERMIO | |
498 #undef NO_TERMIO | |
499 #undef SIGNALS_VIA_CHARACTERS | |
500 | |
501 #undef NLIST_STRUCT | |
502 | |
724 | 503 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */ |
504 #undef IPV6_CANONICALIZE | |
505 | |
428 | 506 /* Compile in support for SOCKS? */ |
507 #undef HAVE_SOCKS | |
508 | |
509 /* Compile in support for X pixmaps via the `xpm' library? */ | |
510 #undef HAVE_XPM | |
511 #undef FOR_MSW | |
512 | |
513 /* Compile in support for "X faces" via the `compface' library? | |
514 This enables graphical display of X-face headers in mail/news messages */ | |
515 #undef HAVE_XFACE | |
516 | |
517 /* Compile in support for JPEG images */ | |
518 #undef HAVE_JPEG | |
519 | |
520 /* Compile in support for TIFF images */ | |
521 #undef HAVE_TIFF | |
522 | |
523 /* Compile in support for GIF images */ | |
524 #undef HAVE_GIF | |
525 | |
526 /* Compile in support for PNG images */ | |
527 #undef HAVE_PNG | |
528 | |
771 | 529 /* Compile in support for GZIP compression */ |
530 #undef HAVE_ZLIB | |
531 | |
428 | 532 /* Do you have the Xmu library? |
533 This should always be the case except on losing HP-UX systems. */ | |
534 #undef HAVE_XMU | |
535 | |
536 /* Compile in support for DBM databases? May require libgdbm or libdbm. */ | |
537 #undef HAVE_DBM | |
4699
0e1461b592ce
Check for gdbm/ndbm.h, too.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4497
diff
changeset
|
538 /* Full #include file path for GDBM's or platforms ndbm.h */ |
0e1461b592ce
Check for gdbm/ndbm.h, too.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4497
diff
changeset
|
539 #undef NDBM_H_FILE |
428 | 540 |
3739 | 541 /* Define to 1 if the system has the type `u_int8_t'. */ |
542 #undef HAVE_U_INT8_T | |
543 /* Define to 1 if the system has the type `u_int16_t'. */ | |
544 #undef HAVE_U_INT16_T | |
545 /* Define to 1 if the system has the type `u_int32_t'. */ | |
546 #undef HAVE_U_INT32_T | |
547 /* Define to 1 if the system has the type `u_int64_t'. */ | |
548 #undef HAVE_U_INT64_T | |
549 | |
428 | 550 /* Compile in support for Berkeley DB style databases? May require libdb. */ |
551 #undef HAVE_BERKELEY_DB | |
552 /* Full #include file path for Berkeley DB's db.h */ | |
442 | 553 #undef DB_H_FILE |
428 | 554 |
555 /* Do we have either DBM or Berkeley DB database support? */ | |
556 #undef HAVE_DATABASE | |
557 | |
558 /* Do we have LDAP support? */ | |
559 #undef HAVE_LDAP | |
560 /* Does the library define ldap_set_option () ? */ | |
561 #undef HAVE_LDAP_SET_OPTION | |
562 /* Does the library define ldap_get_lderrno () ? */ | |
563 #undef HAVE_LDAP_GET_LDERRNO | |
564 /* Does the library define ldap_result2error () ? */ | |
565 #undef HAVE_LDAP_RESULT2ERROR | |
566 /* Does the library define ldap_parse_result () ? */ | |
567 #undef HAVE_LDAP_PARSE_RESULT | |
568 | |
442 | 569 /* Do we have PostgreSQL RDBMS support? */ |
570 #undef HAVE_POSTGRESQL | |
571 #undef HAVE_POSTGRESQLV7 | |
2651 | 572 /* main PostgreSQL header file */ |
573 #undef LIBPQ_FE_H_FILE | |
442 | 574 |
428 | 575 /* Do you have the Xauth library present? This will add some extra |
576 functionality to gnuserv. */ | |
577 #undef HAVE_XAUTH | |
578 | |
579 /* Compile in support for gpm (General Purpose Mouse)? */ | |
580 #undef HAVE_GPM | |
581 | |
582 /* Compile in support for ncurses? */ | |
583 #undef HAVE_NCURSES | |
584 /* Full #include file paths for ncurses' curses.h and term.h. */ | |
442 | 585 #undef CURSES_H_FILE |
586 #undef TERM_H_FILE | |
428 | 587 |
588 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). | |
589 If the assertion fails, assert_failed() will be called. This is | |
590 recommended for general use because it gives more info about the crash | |
591 than just the abort() message. Too many people "Can't find the corefile" | |
592 or have limit-ed core dumps out of existence. */ | |
593 #undef USE_ASSERTIONS | |
594 | |
595 /* Define one or more of the following if you want lots of extra checks | |
596 (e.g. structure validation) compiled in. These should be turned | |
3959 | 597 on during the beta-test cycle. |
598 | |
599 Keep macro names sorted to help with syncing this file to configure.ac. | |
600 Don't forget the ERROR_CHECK_ALL stuff at the end of this file. */ | |
601 | |
602 /* Minor sanity checking of the bytecode interpreter. Useful for | |
603 debugging the byte compiler. */ | |
604 #undef ERROR_CHECK_BYTE_CODE | |
605 | |
606 /* Sanity-check the redisplay structures after each modification. */ | |
607 #undef ERROR_CHECK_DISPLAY | |
428 | 608 |
609 /* Check the entire extent structure of a buffer each time an extent | |
610 change is done, and do other extent-related checks. */ | |
611 #undef ERROR_CHECK_EXTENTS | |
440 | 612 |
3959 | 613 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */ |
614 #undef ERROR_CHECK_GC | |
615 | |
616 /* Minor sanity checking of glyphs, especially subwindows and | |
617 widgets. */ | |
618 #undef ERROR_CHECK_GLYPHS | |
619 | |
620 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */ | |
621 #undef ERROR_CHECK_MALLOC | |
622 | |
623 /* Define for any sanity checks on structures that are not handled by a | |
624 more specific error-checking type. */ | |
625 #undef ERROR_CHECK_STRUCTURES | |
440 | 626 |
800 | 627 /* Turn on checks related to text -- check that text in strings and buffers |
628 is in a valid format before we use it, check that buffer positions are | |
629 valid, etc. */ | |
630 #undef ERROR_CHECK_TEXT | |
440 | 631 |
3959 | 632 /* Turn on checks related to types -- make sure that all X... macros are |
633 dereferencing the correct type, and that all XSET... macros (as much as | |
634 possible) are setting the correct type of structure; check any other | |
635 places that a specific type is expected. */ | |
636 #undef ERROR_CHECK_TYPES | |
800 | 637 |
428 | 638 /* Define DEBUG_XEMACS if you want extra debugging code compiled in. |
639 This is mainly intended for use by developers. */ | |
640 #undef DEBUG_XEMACS | |
641 | |
642 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to | |
643 determine where XEmacs' memory is going. */ | |
644 #undef MEMORY_USAGE_STATS | |
645 | |
460 | 646 /* Define QUANTIFY if using Quantify from Rational Software. |
428 | 647 This adds some additional calls to control data collection. |
648 It is only intended for use by the developers. */ | |
649 #undef QUANTIFY | |
650 | |
460 | 651 /* Define PURIFY if using Purify from Rational Software. |
428 | 652 It is only intended for use by the developers. */ |
653 #undef PURIFY | |
654 | |
655 /* Define EXTERNAL_WIDGET to compile support for using the editor as a | |
656 widget within another program. */ | |
657 #undef EXTERNAL_WIDGET | |
658 | |
659 /* There are some special-case defines for gcc and lcc. */ | |
660 #undef USE_GCC | |
661 #undef USE_LCC | |
662 | |
663 /* Compile in support for CDE (Common Desktop Environment) drag and drop? | |
664 Requires libDtSvc, which typically must be present at runtime. */ | |
665 #undef HAVE_CDE | |
666 | |
667 /* Compile in support for OffiX Drag and Drop? */ | |
668 #undef HAVE_OFFIX_DND | |
669 | |
670 /* Compile in generic Drag'n'Drop API */ | |
671 #undef HAVE_DRAGNDROP | |
672 | |
673 /* Compile in support for proper handling of WM_COMMAND. */ | |
674 #undef HAVE_WMCOMMAND | |
675 | |
676 /* Define this if you want Mule support (multi-byte character support). | |
677 There may be some performance penalty, although it should be small | |
678 if you're working with ASCII files. */ | |
679 #undef MULE | |
680 | |
771 | 681 /* Define this if you want EOL detection of files to be on by default |
682 in a non-Mule Unix; otherwise, defaults will be set so that all | |
683 files are read in as binary. Doesn't apply to Cygwin or MinGW. */ | |
684 #undef HAVE_DEFAULT_EOL_DETECTION | |
428 | 685 |
1259 | 686 /* Support X FontSets. Evil, yes, but if we're going to make it go away |
687 by using faces in the menubar we should do so. */ | |
688 #undef USE_XFONTSET | |
689 | |
428 | 690 /* Do we want to use X window input methods for use with Mule? (requires X11R5) |
691 If so, use raw Xlib or higher level Motif interface? */ | |
692 #undef HAVE_XIM | |
693 #undef XIM_XLIB | |
694 #undef XIM_MOTIF | |
695 | |
696 /* Non-XIM input methods for use with Mule. */ | |
697 #undef HAVE_CANNA | |
3830 | 698 #undef CANNA_NEW_WCHAR_AWARE |
428 | 699 #undef HAVE_WNN |
700 #undef WNN6 | |
701 | |
442 | 702 /* Debugging development option: Remove inessential but time consuming |
703 actions from happening during build. This saves a lot of time when | |
704 you're repeatedly compiling-running-crashing. This (1) doesn't | |
705 garbage-collect after loading each file during dumping, and (2) | |
706 doesn't automatically rebuild the DOC file. (Remove it by hand to | |
707 get it rebuilt.) | |
708 */ | |
709 #undef QUICK_BUILD | |
428 | 710 |
872 | 711 /* If true, run the compiler with many files at once rather than one at a |
712 time. May speed up compilation time with some compilers, particularly | |
713 if the entire compilation happens in a single process -- the process can | |
714 cache the results of processing include files. This definitely helps | |
715 with VC++ (although it doesn't use Makefile.in.in) but not with GCC, | |
716 which runs many processes per file to compile. */ | |
717 #undef BATCH_COMPILER_RUNS | |
718 | |
771 | 719 /* If defined, use unions instead of ints. A few systems (DEC Alpha) |
720 seem to require this, probably because something with the int | |
721 definitions isn't right with 64-bit systems. */ | |
722 #undef USE_UNION_TYPE | |
723 | |
926 | 724 /* If defined, use experimental pdump-based GC algorithms. */ |
725 #undef USE_KKCC | |
726 | |
3263 | 727 /* If defined, use experimental incremental garbage collector and new |
728 allocator. */ | |
3092 | 729 #undef NEW_GC |
730 | |
731 /* Virtual dirty bit implementation for incremental gc. */ | |
732 #undef VDB_POSIX | |
733 #undef VDB_MACH | |
734 #undef VDB_WIN32 | |
735 #undef VDB_FAKE | |
736 | |
771 | 737 /* Enable special GNU Make features in the Makefiles. */ |
738 #undef USE_GNU_MAKE | |
739 | |
428 | 740 /* Defined by AC_C_CONST in configure.in */ |
741 #undef const | |
742 | |
434 | 743 /* Allow the source to use standard types. Include these before the |
744 s&m files so that they can use them. */ | |
745 #undef ssize_t | |
746 #undef size_t | |
747 #undef pid_t | |
748 #undef mode_t | |
749 #undef off_t | |
750 #undef uid_t | |
751 #undef gid_t | |
442 | 752 #undef socklen_t |
434 | 753 |
2367 | 754 /* Enhanced numeric support */ |
755 #undef WITH_NUMBER_TYPES | |
756 #undef WITH_GMP | |
757 #undef WITH_MP | |
758 #undef MP_PREFIX | |
759 #undef HAVE_MP_MOVE | |
771 | 760 |
2367 | 761 #undef SIZEOF_SHORT |
762 #undef SIZEOF_INT | |
763 #undef SIZEOF_LONG | |
764 #undef SIZEOF_LONG_LONG | |
765 #undef SIZEOF_VOID_P | |
766 #undef SIZEOF_DOUBLE | |
615 | 767 |
2367 | 768 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h> |
769 but the standard is <inttypes.h> | |
770 ugliness due to last-resort conditional typedef'ing in lisp.h */ | |
771 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H | |
772 | |
773 /* Does the keyword `inline' exist? */ | |
774 #undef inline | |
428 | 775 |
2367 | 776 /* movemail options */ |
777 /* Should movemail use POP3 for mail access? */ | |
778 #undef MAIL_USE_POP | |
779 /* Should movemail use kerberos for POP authentication? */ | |
780 #undef KERBEROS | |
781 /* Should movemail use hesiod for getting POP server host? */ | |
782 #undef HESIOD | |
783 /* Determine type of mail locking. */ | |
784 #undef MAIL_LOCK_LOCKF | |
785 #undef MAIL_LOCK_FLOCK | |
786 #undef MAIL_LOCK_DOT | |
787 #undef MAIL_LOCK_LOCKING | |
788 #undef MAIL_LOCK_MMDF | |
428 | 789 |
2367 | 790 #undef HAVE_MKSTEMP |
428 | 791 |
2367 | 792 #undef PREFIX_USER_DEFINED |
793 #undef EXEC_PREFIX_USER_DEFINED | |
794 #undef MODULEDIR_USER_DEFINED | |
795 #undef SITEMODULEDIR_USER_DEFINED | |
796 #undef DOCDIR_USER_DEFINED | |
797 #undef LISPDIR_USER_DEFINED | |
3179 | 798 #undef EARLY_PACKAGE_DIRECTORIES_USER_DEFINED |
799 #undef LATE_PACKAGE_DIRECTORIES_USER_DEFINED | |
800 #undef LAST_PACKAGE_DIRECTORIES_USER_DEFINED | |
2367 | 801 #undef PACKAGE_PATH_USER_DEFINED |
802 #undef SITELISPDIR_USER_DEFINED | |
803 #undef ARCHLIBDIR_USER_DEFINED | |
804 #undef ETCDIR_USER_DEFINED | |
805 #undef INFODIR_USER_DEFINED | |
806 #undef INFOPATH_USER_DEFINED | |
872 | 807 |
2367 | 808 #undef PDUMP |
872 | 809 |
2720 | 810 /* Define DUMP_IN_EXEC to include the dump file in the executable |
811 file. */ | |
812 #undef DUMP_IN_EXEC | |
813 | |
428 | 814 /* Define DYNODUMP if it is necessary to properly dump on this system. |
815 Currently this is only Solaris 2.x, for x < 6. */ | |
816 #undef DYNODUMP | |
817 | |
818 /* Compile in support for Sun Sparcworks/WorkShop? */ | |
819 #undef SUNPRO | |
820 | |
821 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in | |
822 support for playing sound files. (On Suns, the sound support is | |
823 usually found in /usr/demo/SOUND - you may need to install the | |
824 "SUNWaudmo" package.) */ | |
825 #undef HAVE_NATIVE_SOUND | |
771 | 826 |
428 | 827 /* Native sound may be provided via soundcard.h, in various directories */ |
442 | 828 #undef SOUNDCARD_H_FILE |
428 | 829 |
3308 | 830 /* Compile in support for ALSA (Advanced Linux Sound Architecture) */ |
831 #undef HAVE_ALSA_SOUND | |
832 | |
428 | 833 /* Compile in support for NAS (Network Audio System)? |
834 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some | |
835 error handling changes. */ | |
836 #undef HAVE_NAS_SOUND | |
837 #undef NAS_NO_ERROR_JUMP | |
838 | |
839 /* Compile in support for ESD (Enlightened Sound Daemon)? */ | |
840 #undef HAVE_ESD_SOUND | |
841 | |
842 /* Compile in support for SunPro usage-tracking code? */ | |
843 #undef USAGE_TRACKING | |
844 | |
845 /* Compile in support for Tooltalk? */ | |
846 #undef TOOLTALK | |
847 /* tt_c.h might be in "Tt" or "desktop" subdirectories */ | |
442 | 848 #undef TT_C_H_FILE |
428 | 849 |
850 /* Toolkits used by lwlib for various widgets... */ | |
771 | 851 |
428 | 852 #undef LWLIB_USES_MOTIF |
853 #undef LWLIB_USES_ATHENA | |
854 #undef LWLIB_MENUBARS_LUCID | |
855 #undef LWLIB_MENUBARS_MOTIF | |
856 #undef LWLIB_SCROLLBARS_LUCID | |
857 #undef LWLIB_SCROLLBARS_MOTIF | |
858 #undef LWLIB_SCROLLBARS_ATHENA | |
859 #undef LWLIB_SCROLLBARS_ATHENA3D | |
860 #undef LWLIB_DIALOGS_MOTIF | |
861 #undef LWLIB_DIALOGS_ATHENA | |
862 #undef LWLIB_DIALOGS_ATHENA3D | |
863 #undef LWLIB_TABS_LUCID | |
864 #undef LWLIB_WIDGETS_MOTIF | |
865 #undef LWLIB_WIDGETS_ATHENA | |
440 | 866 #undef HAVE_ATHENA_3D |
428 | 867 |
868 /* Other things that can be disabled by configure. */ | |
869 #undef HAVE_MENUBARS | |
870 #undef HAVE_SCROLLBARS | |
871 #undef HAVE_DIALOGS | |
872 #undef HAVE_TOOLBARS | |
873 #undef HAVE_WIDGETS | |
874 | |
771 | 875 #endif /* WIN32_NO_CONFIGURE */ |
876 | |
2994 | 877 #ifdef _MSC_VER |
878 /* Turn off tons of C4996 warnings in VC 8 about standard functions being | |
879 "deprecated" in favor of Microsoft-specific "secure" ones (!) | |
880 This must go *before* the inclusion of any system files. */ | |
881 #define _CRT_SECURE_NO_DEPRECATE | |
4457
2fddd822ce87
#define _CRT_NONSTDC_NO_DEPRECATE on Win32
Aidan Kehoe <kehoea@parhasard.net>
parents:
4448
diff
changeset
|
882 #define _CRT_NONSTDC_NO_DEPRECATE |
2994 | 883 #endif |
884 | |
2367 | 885 /* alloca twiddling. |
886 Because we might be #including alloca.h here, feature test macros | |
887 such as _XOPEN_SOURCE must be defined above. | |
888 | |
889 #### This really should go below the inclusion of s&m files, like | |
890 everything else. */ | |
891 | |
892 #ifndef NOT_C_CODE | |
893 #if defined (__CYGWIN__) | |
894 /* We get complaints about redefinitions if we just use the __GNUC__ | |
895 definition: stdlib.h also includes alloca.h, which defines it slightly | |
896 differently */ | |
897 #include <alloca.h> | |
898 #elif defined (__GNUC__) | |
899 #define alloca __builtin_alloca | |
900 #elif defined (WIN32_NO_CONFIGURE) | |
901 /* Defines size_t and alloca (). */ | |
902 #include <malloc.h> | |
903 #elif defined (__DECC) | |
904 #include <alloca.h> | |
905 #pragma intrinsic(alloca) | |
906 #elif defined (HAVE_ALLOCA_H) | |
907 #include <alloca.h> | |
908 #elif defined (_AIX) | |
909 /* AIX requires this before any "real" code in the translation unit. */ | |
910 #pragma alloca | |
911 #elif ! defined (alloca) | |
912 #ifdef C_ALLOCA | |
913 #define alloca xemacs_c_alloca | |
914 #else | |
915 void *alloca (); | |
916 #endif /* C_ALLOCA */ | |
917 #endif /* !defined (alloca) */ | |
918 #endif /* C code */ | |
919 | |
920 /* The configuration script may define `opsysfile' to be the name of | |
921 the s/...h file that describes your operating system. | |
922 The file name is chosen based on the configuration name. */ | |
923 | |
924 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
925 extern "C" { | |
926 #endif | |
927 | |
928 #undef config_opsysfile | |
929 #ifdef WIN32_NO_CONFIGURE | |
930 #include "s/windowsnt.h" | |
931 #elif defined (config_opsysfile) | |
932 #include config_opsysfile | |
933 #endif | |
934 | |
935 /* The configuration script may define `machfile' to be the name of | |
936 the m/...h file that describes the machine you are using. | |
937 The file name is chosen based on the configuration name. */ | |
938 | |
939 #undef config_machfile | |
940 #ifdef WIN32_NO_CONFIGURE | |
941 #include "m/windowsnt.h" | |
942 #elif defined (config_machfile) | |
943 #include config_machfile | |
944 #endif | |
945 | |
946 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
947 } | |
948 #endif | |
949 | |
950 /* This will be removed in 19.15. */ | |
951 /* Hah! Try 20.3 ... */ | |
952 /* Hah! Try never ... */ | |
953 /* If at first you don't succeed, try, try again. */ | |
954 /* #define LOSING_BYTECODE */ | |
955 | |
956 /* USER_FULL_NAME returns a string that is the user's full name. | |
957 It can assume that the variable `pw' points to the password file | |
958 entry for this user. | |
959 | |
960 At some sites, the pw_gecos field contains the user's full name. | |
961 If neither this nor any other field contains the right thing, use | |
962 pw_name, giving the user's login name, since that is better than | |
963 nothing. */ | |
964 #define USER_FULL_NAME pw->pw_gecos | |
965 | |
966 #define XEMACS_WANTS_C_ALLOCA | |
967 | |
968 /* s&m files shouldn't be required to define anything, or even to exist. | |
969 If the s&m files don't define SYSTEM_TYPE, configure will select an | |
970 appropriate default value. */ | |
971 #ifndef SYSTEM_TYPE | |
972 #undef SYSTEM_TYPE | |
973 #endif | |
974 | |
975 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) | |
976 #define SYSTEM_MALLOC | |
977 #endif | |
978 | |
2994 | 979 /* This enables type based information (updated during gc). The output |
980 is used by show-memory-usage to print memory information for each | |
981 type. Since the new allocator does not distinguish between types | |
982 anymore, this functionality is additionally implemented and | |
983 consumes a lot of time. That is why this functionality can be | |
984 disabled; for the moment, we keep it enabled. */ | |
985 #if !defined (MC_ALLOC) || 1 | |
986 # define ALLOC_TYPE_STATS 1 | |
987 #endif | |
988 | |
2367 | 989 /* Define the return type of signal handlers if the s/xxx.h file |
990 did not already do so. */ | |
991 #define RETSIGTYPE void | |
992 | |
993 #ifndef XCDECL | |
994 #define XCDECL | |
995 #endif | |
996 | |
997 /* SIGTYPE is the macro we actually use. */ | |
998 #ifndef SIGTYPE | |
999 #define SIGTYPE RETSIGTYPE XCDECL | |
1000 #define SIGRETURN return | |
1001 #endif | |
1002 | |
1003 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ | |
1004 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */ | |
1005 #define HAVE_WINDOW_SYSTEM | |
1006 #endif | |
1007 | |
771 | 1008 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS) |
1009 #define HAVE_GUI_OBJECTS | |
1010 #endif | |
1011 | |
2367 | 1012 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS) |
1013 #define HAVE_POPUPS | |
1014 #endif | |
1015 | |
1016 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) | |
1017 #define HAVE_XLIKE | |
1018 #endif | |
1019 | |
771 | 1020 /* For the moment, Athena widgets and dialogs may be very unstable and not |
1021 working well, but things under Windows work much better. configure by | |
1022 default tries to turn Windows widgets and dialogs on, but the Athena | |
1023 ones off, so let's separate the defines. */ | |
1024 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA)) | |
1025 #define HAVE_X_WIDGETS | |
1026 #endif | |
1027 | |
1028 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D)) | |
1029 #define HAVE_X_DIALOGS | |
1030 #endif | |
428 | 1031 |
2367 | 1032 #ifdef HAVE_X_WINDOWS |
1033 /* The following should always be defined, no matter what xmkmf thinks. */ | |
1034 #ifndef NeedFunctionPrototypes | |
1035 #define NeedFunctionPrototypes 1 | |
1036 #endif | |
1037 #ifndef FUNCPROTO | |
1038 #define FUNCPROTO 15 | |
1039 #endif | |
1040 #endif /* HAVE_X_WINDOWS */ | |
1041 | |
1042 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS) | |
1043 #define XLIB_ILLEGAL_ACCESS 1 | |
1044 #endif | |
1045 | |
1046 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */ | |
1047 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT) | |
1048 #define HAVE_UNIXOID_EVENT_LOOP | |
428 | 1049 #endif |
1050 | |
1051 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. | |
1052 There is a stupid bug in the SunOS libc.a: two functions which X11r5 | |
1053 uses, mbstowcs() and wcstombs(), are unusable when programs are | |
1054 statically linked (as XEmacs must be) because the static version of | |
1055 libc.a contains the *dynamic* versions of these functions. These | |
1056 functions don't seem to be called when XEmacs is running, so it's | |
1057 enough to define stubs for them. | |
1058 | |
1059 This appears to be fixed in SunOS 4.1.2. | |
1060 | |
1061 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that | |
1062 sometimes reference memory past the end of the string, which can segv. | |
444 | 1063 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */ |
428 | 1064 #if defined (sparc) && !defined (USG) |
1065 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o | |
1066 #endif | |
1067 | |
1068 #ifdef HAVE_CANNA | |
1069 # define CANNA_MULE | |
1070 # define CANNA_PURESIZE 0 | |
1071 #else /* not CANNA */ | |
1072 # define CANNA_PURESIZE 0 | |
1073 #endif /* not CANNA */ | |
1074 | |
1075 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) | |
1076 #define accept Raccept | |
1077 #define bind Rbind | |
1078 #define connect Rconnect | |
1079 #define getsockname Rgetsockname | |
1080 #define listen Rlisten | |
1081 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ | |
1082 | |
1083 #ifndef BITS_PER_CHAR | |
1084 #define BITS_PER_CHAR 8 | |
1085 #endif | |
1086 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) | |
1087 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) | |
1088 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) | |
1089 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | |
1090 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | |
1983 | 1091 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR) |
1092 | |
442 | 1093 /* Use `INLINE_HEADER' to define inline functions in .h files. |
1094 Use `inline static' to define inline functions in .c files. | |
1095 See the Internals manual for examples and more information. */ | |
1096 | |
4389
4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4387
diff
changeset
|
1097 #if (defined ( __STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ |
4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4387
diff
changeset
|
1098 || defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs) |
442 | 1099 # define INLINE_HEADER inline static |
1100 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS) | |
1101 # define INLINE_HEADER inline | |
1102 #else | |
1103 # define INLINE_HEADER inline extern | |
1104 #endif | |
428 | 1105 |
771 | 1106 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header |
1107 file, like this: (This avoids the need to write a prototype directly | |
1108 followed by the function header itself.) | |
1109 | |
1110 DECLARE_INLINE_HEADER (int foo (int x)) | |
1111 { | |
1112 return x * x; | |
1113 } | |
1114 | |
1115 */ | |
1116 | |
1117 #define DECLARE_INLINE_HEADER(header) \ | |
1118 INLINE_HEADER header ; INLINE_HEADER header | |
1119 | |
442 | 1120 #ifndef NOT_C_CODE /* Actually means C or C++ */ |
1121 # if defined (__cplusplus) | |
1122 # define EXTERN_C extern "C" | |
1123 # else /* C code */ | |
1124 # define EXTERN_C extern | |
1125 # endif | |
1126 #endif /* C or C++ */ | |
428 | 1127 |
1128 /* Strictly speaking, only int or unsigned int are valid types in a | |
1129 bitfield. In practice, we would like to use enums as bitfields. | |
1130 The following should just result in warning avoidance: | |
1131 warning: nonportable bit-field type */ | |
1132 #ifdef __GNUC__ | |
1133 #define enum_field(enumeration_type) enum enumeration_type | |
1134 #else | |
1135 #define enum_field(enumeration_type) unsigned int | |
1136 #endif | |
1137 | |
1138 /* We want to avoid saving the signal mask if possible, because | |
1139 that necessitates a system call. */ | |
1140 #ifdef HAVE_SIGSETJMP | |
1141 # define SETJMP(x) sigsetjmp (x, 0) | |
1142 # define LONGJMP(x, y) siglongjmp (x, y) | |
1143 # define JMP_BUF sigjmp_buf | |
1144 #else | |
1145 # define SETJMP(x) setjmp (x) | |
1146 # define LONGJMP(x, y) longjmp (x, y) | |
1147 # define JMP_BUF jmp_buf | |
1148 #endif | |
1149 | |
838 | 1150 /* For the moment, we go ahead and keep this, since it's used in mouse.el. |
1151 #### font-lock does its own version using parse-partial-sexp. We should | |
1152 merge the two. */ | |
1153 #define USE_C_FONT_LOCK | |
1154 | |
3959 | 1155 /* Keep the #defines sorted. |
1156 #### Can this code ever be executed? I guess if a developer #defines | |
1157 ERROR_CHECK_ALL above the #include it could be useful. */ | |
800 | 1158 #ifdef ERROR_CHECK_ALL |
3959 | 1159 #define ERROR_CHECK_BYTE_CODE |
1160 #define ERROR_CHECK_DISPLAY | |
800 | 1161 #define ERROR_CHECK_EXTENTS |
1162 #define ERROR_CHECK_GC | |
3959 | 1163 #define ERROR_CHECK_GLYPHS |
800 | 1164 #define ERROR_CHECK_MALLOC |
1165 #define ERROR_CHECK_STRUCTURES | |
3959 | 1166 #define ERROR_CHECK_TEXT |
1167 #define ERROR_CHECK_TYPES | |
800 | 1168 #endif /* ERROR_CHECK_ALL */ |
1169 | |
428 | 1170 #endif /* _SRC_CONFIG_H_ */ |