Mercurial > hg > xemacs-beta
annotate src/config.h.in @ 5167:e374ea766cc1
clean up, rearrange allocation statistics code
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-03-21 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (assert_proper_sizing):
* alloc.c (c_readonly):
* alloc.c (malloced_storage_size):
* alloc.c (fixed_type_block_overhead):
* alloc.c (lisp_object_storage_size):
* alloc.c (inc_lrecord_stats):
* alloc.c (dec_lrecord_stats):
* alloc.c (pluralize_word):
* alloc.c (object_memory_usage_stats):
* alloc.c (Fobject_memory_usage):
* alloc.c (compute_memusage_stats_length):
* alloc.c (disksave_object_finalization_1):
* alloc.c (Fgarbage_collect):
* mc-alloc.c:
* mc-alloc.c (mc_alloced_storage_size):
* mc-alloc.h:
No functionality change here. Collect the allocations-statistics
code that was scattered throughout alloc.c into one place. Add
remaining section headings so that all sections have headings
clearly identifying the start of the section and its purpose.
Expose mc_alloced_storage_size() even when not MEMORY_USAGE_STATS;
this fixes build problems and is related to the export of
lisp_object_storage_size() and malloced_storage_size() when
non-MEMORY_USAGE_STATS in the previous change set.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sun, 21 Mar 2010 04:41:49 -0500 |
parents | 97c45e3ad810 |
children | cdca98f2d36f |
rev | line source |
---|---|
428 | 1 /* XEmacs site configuration template file. -*- C -*- |
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc. | |
4991
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
3 Copyright (C) 2000, 2001, 2002, 2004, 2005, 2010 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 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4738
diff
changeset
|
190 /* Define to 1 if you have <alloca.h> and it should be used. */ |
2367 | 191 #undef HAVE_ALLOCA_H |
192 | |
193 /* Define to 1 if using `alloca.c'. */ | |
194 #undef C_ALLOCA | |
195 | |
428 | 196 /* Compile in TTY support? */ |
197 #undef HAVE_TTY | |
198 | |
199 /* Compile in support for MS windows? */ | |
200 #undef HAVE_MS_WINDOWS | |
201 | |
202 /* special cygwin process handling? */ | |
203 #undef HAVE_MSG_SELECT | |
204 | |
205 /* Compile in support for the X window system? */ | |
206 #undef HAVE_X_WINDOWS | |
207 | |
3354 | 208 /* Compile with support for fontconfig? */ |
209 #undef HAVE_FONTCONFIG | |
210 | |
4328
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
211 /* Was the spelling of FcConfigGetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
212 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
213 #undef HAVE_FCCONFIGGETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
214 |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
215 /* Was the spelling of FcConfigSetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
216 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
217 #undef HAVE_FCCONFIGSETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
218 |
3094 | 219 /* Compile with support for Xft? */ |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
220 #undef HAVE_XFT |
3094 | 221 /* Per-widget stuff will go away? */ |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
222 #undef HAVE_XFT_MENUBARS |
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
223 #undef HAVE_XFT_TABS |
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
224 #undef HAVE_XFT_GAUGES |
3094 | 225 |
428 | 226 /* Defines for building X applications */ |
227 #ifdef HAVE_X_WINDOWS | |
228 /* The following will be defined if xmkmf thinks they are necessary */ | |
229 #undef SVR4 | |
230 #undef SYSV | |
231 #undef AIXV3 | |
232 #undef _POSIX_SOURCE | |
233 #undef _BSD_SOURCE | |
234 #undef _SVID_SOURCE | |
235 #undef X_LOCALE | |
236 #undef NARROWPROTO | |
771 | 237 #endif /* HAVE_X_WINDOWS */ |
238 | |
462 | 239 /* Defines for building Gtk applications */ |
240 #undef HAVE_GNOME | |
241 #undef HAVE_GTK | |
242 #undef HAVE_GDK_IMLIB_INIT | |
243 #undef HAVE_GLADE_GLADE_H | |
244 #undef HAVE_GLADE_H | |
245 #undef LIBGLADE_XML_TXTDOMAIN | |
246 | |
444 | 247 /* XFree86 has a different prototype for this function */ |
248 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK | |
249 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE | |
428 | 250 |
251 #undef THIS_IS_X11R4 | |
252 #undef THIS_IS_X11R5 | |
253 #undef THIS_IS_X11R6 | |
254 | |
442 | 255 #undef HAVE_XCONVERTCASE |
2625 | 256 #undef HAVE_XTREGISTERDRAWABLE |
442 | 257 |
258 #undef HAVE_BALLOON_HELP | |
259 | |
428 | 260 /* Where do we find bitmaps? */ |
261 #undef BITMAPDIR | |
262 | |
263 /* Define AMPERSAND_FULL_NAME if you use the convention | |
264 that & in the full name stands for the login id. */ | |
265 #undef AMPERSAND_FULL_NAME | |
266 | |
267 /* Some things figured out by the configure script, grouped as they are in | |
268 configure.in. */ | |
269 #undef HAVE_MCHECK_H | |
442 | 270 #undef HAVE_A_OUT_H |
446 | 271 #undef HAVE_ELF_H |
442 | 272 #undef HAVE_CYGWIN_VERSION_H |
273 #undef HAVE_FCNTL_H | |
274 #undef HAVE_INTTYPES_H | |
275 #undef HAVE_LIBGEN_H | |
276 #undef HAVE_LOCALE_H | |
912 | 277 #undef HAVE_WCHAR_H |
428 | 278 #undef HAVE_MACH_MACH_H |
442 | 279 #undef HAVE_SYS_PARAM_H |
280 #undef HAVE_SYS_PSTAT_H | |
2263 | 281 #undef HAVE_SYS_RESOURCE_H |
442 | 282 #undef HAVE_SYS_TIME_H |
428 | 283 #undef HAVE_SYS_TIMEB_H |
777 | 284 #undef HAVE_SYS_TIMES_H |
442 | 285 #undef HAVE_SYS_UN_H |
2263 | 286 #undef HAVE_SYS_VLIMIT_H |
442 | 287 #undef HAVE_ULIMIT_H |
428 | 288 #undef HAVE_UNISTD_H |
442 | 289 |
428 | 290 #undef HAVE_SYS_WAIT_H |
291 #undef HAVE_LIBINTL_H | |
292 #undef HAVE_X11_XLOCALE_H | |
872 | 293 |
294 /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C | |
295 defines it, but its value is 0 unless we disable non-ANSI extensions. | |
296 VC++ doesn't define it at all unless we disable non-ANSI extensions. | |
297 But these compilers are all ANSI-compliant. So don't go testing | |
298 __STDC__ anywhere except in code that runs only on known | |
299 compilers. --ben | |
300 | |
301 Jamie wrote the following: | |
302 | |
303 [[ The ANSI standard says that defining __STDC__ to a non-zero value | |
304 means that the compiler conforms to that standard. The standard | |
305 requires certain header files and library functions to be present. | |
306 Therefore, if your compiler defines __STDC__ to non-0 but does not have | |
307 ANSI headers and the ANSI library routines, then your compiler is | |
308 buggy. Conversely, an ANSI-conforming environment (which has both the | |
309 ANSI headers and library routines, i.e., stdlib.h and `memmove') does | |
310 not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an | |
311 ANSI compiler. Therefore, there is no need to consult the abominable | |
312 STDC_HEADERS flag. -- jwz ]] | |
313 | |
314 In reality, we should not be testing STDC_HEADERS at all except | |
315 possibly in code we're purposely keeping in close sync with FSF code. | |
316 STDC_HEADERS should be defined on *ALL* compilers. | |
317 */ | |
318 | |
428 | 319 #undef STDC_HEADERS |
872 | 320 |
428 | 321 #undef TIME_WITH_SYS_TIME |
322 #undef WORDS_BIGENDIAN | |
323 | |
324 #undef HAVE_LONG_FILE_NAMES | |
325 | |
326 /* Use lock files to detect multiple edits of the same file? */ | |
327 #undef CLASH_DETECTION | |
328 | |
329 /* Have shared library support */ | |
330 #undef HAVE_DLOPEN | |
331 #undef HAVE_DLERROR | |
332 #undef HAVE__DLERROR | |
333 #undef HAVE_SHL_LOAD | |
1383 | 334 #undef HAVE_DYLD |
2078 | 335 #undef HAVE_LTDL |
1259 | 336 #undef DLSYM_NEEDS_UNDERSCORE |
1790 | 337 #undef HAVE_SHLIB |
428 | 338 |
4721
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
339 /* Darwin; realpath corrects for case: */ |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
340 #ifdef HAVE_DYLD |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
341 #define REALPATH_CORRECTS_CASE 1 |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
342 #endif |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
343 |
428 | 344 #undef HAVE_LIBINTL |
345 #undef HAVE_LIBDNET | |
346 #undef HAVE_LIBRESOLV | |
347 | |
348 /* Is `sys_siglist' declared by <signal.h>? */ | |
2651 | 349 #undef HAVE_DECL_SYS_SIGLIST |
428 | 350 |
351 /* Is `struct timeval' declared by <sys/time.h>? */ | |
352 #undef HAVE_TIMEVAL | |
353 | |
354 | |
355 #undef TM_IN_SYS_TIME | |
356 #undef HAVE_TM_ZONE | |
357 #undef HAVE_TZNAME | |
358 | |
442 | 359 /* For `getloadavg' provided by system */ |
360 #undef HAVE_GETLOADAVG | |
361 #undef HAVE_SYS_LOADAVG_H | |
362 /* For implementing `getloadavg' ourselves */ | |
363 #undef HAVE_LIBKSTAT | |
364 #undef HAVE_KSTAT_H | |
365 | |
428 | 366 /* Is `h_errno' declared by <netdb.h>? */ |
367 #undef HAVE_H_ERRNO | |
368 | |
369 /* Does `localtime' cache TZ? */ | |
370 #undef LOCALTIME_CACHE | |
371 | |
372 /* Can `gettimeofday' accept two arguments? */ | |
373 #undef GETTIMEOFDAY_ONE_ARGUMENT | |
374 | |
2367 | 375 /* Is scanf() broken? (Under certain versions of Cygwin) */ |
376 #undef CYGWIN_SCANF_BUG | |
377 | |
4834
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
378 /* UTF-8-aware path-conversion function in Cygwin 1.7 and on */ |
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
379 #undef HAVE_CYGWIN_CONV_PATH |
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
380 |
428 | 381 #undef HAVE_MMAP |
382 #undef HAVE_STRCOLL | |
383 #undef HAVE_GETPGRP | |
384 #undef GETPGRP_VOID | |
385 | |
386 #undef HAVE_INVERSE_HYPERBOLIC | |
387 | |
2367 | 388 /* Functions in the big list of functions checked for */ |
428 | 389 #undef HAVE_CBRT |
390 #undef HAVE_CLOSEDIR | |
391 #undef HAVE_DUP2 | |
392 #undef HAVE_EACCESS | |
393 #undef HAVE_FMOD | |
394 #undef HAVE_FPATHCONF | |
395 #undef HAVE_FREXP | |
2367 | 396 #undef HAVE_FSYNC |
428 | 397 #undef HAVE_FTIME |
2367 | 398 #undef HAVE_FTRUNCATE |
440 | 399 #undef HAVE_GETADDRINFO |
428 | 400 #undef HAVE_GETHOSTNAME |
440 | 401 #undef HAVE_GETNAMEINFO |
428 | 402 #undef HAVE_GETPAGESIZE |
2263 | 403 #undef HAVE_GETRLIMIT |
428 | 404 #undef HAVE_GETTIMEOFDAY |
405 #undef HAVE_GETCWD | |
771 | 406 #undef HAVE_LINK |
428 | 407 #undef HAVE_LOGB |
408 #undef HAVE_LRAND48 | |
409 #undef HAVE_MATHERR | |
410 #undef HAVE_MKDIR | |
411 #undef HAVE_MKTIME | |
412 #undef HAVE_PERROR | |
413 #undef HAVE_POLL | |
414 #undef HAVE_RANDOM | |
771 | 415 #undef HAVE_READLINK |
428 | 416 #undef HAVE_RENAME |
417 #undef HAVE_RES_INIT | |
418 #undef HAVE_RMDIR | |
419 #undef HAVE_SELECT | |
420 #undef HAVE_SETITIMER | |
421 #undef HAVE_SETPGID | |
422 #undef HAVE_SETSID | |
423 #undef HAVE_SIGBLOCK | |
424 #undef HAVE_SIGHOLD | |
425 #undef HAVE_SIGPROCMASK | |
426 #undef HAVE_SNPRINTF | |
427 #undef HAVE_STRERROR | |
1204 | 428 #undef HAVE_STRLWR |
429 #undef HAVE_STRUPR | |
771 | 430 #undef HAVE_SYMLINK |
428 | 431 #undef HAVE_TZSET |
432 #undef HAVE_ULIMIT | |
2367 | 433 #undef HAVE_UMASK |
428 | 434 #undef HAVE_USLEEP |
2367 | 435 #undef HAVE_VLIMIT |
436 #undef HAVE_VSNPRINTF | |
437 #undef HAVE_WAITPID | |
438 #undef HAVE_WCSCMP | |
439 #undef HAVE_WCSLEN | |
440 | |
3092 | 441 /* Functions and structs checked for vdb. */ |
442 #undef HAVE_MPROTECT | |
443 #undef HAVE_SIGACTION | |
444 #undef HAVE_STRUCT_SIGINFO_SI_ADDR | |
445 #undef HAVE_SIGINFO_T_SI_ADDR | |
446 #undef HAVE_SIGNAL | |
447 #undef HAVE_STRUCT_SIGCONTEXT_CR2 | |
448 | |
460 | 449 #undef HAVE_UTIME |
428 | 450 #undef HAVE_UTIMES |
2367 | 451 #undef HAVE_SIGSETJMP |
442 | 452 |
535 | 453 /* Many flavors of PTY support */ |
2651 | 454 /* glibc's easy pty allocation function */ |
455 #undef HAVE_GETPT | |
456 /* SGI's easy pty allocation function */ | |
457 #undef HAVE__GETPTY | |
458 /* BSD's easy pty allocation function */ | |
459 #undef HAVE_OPENPTY | |
460 /* Unix98 */ | |
461 #undef HAVE_GRANTPT | |
462 /* Unix98 */ | |
463 #undef HAVE_UNLOCKPT | |
464 /* Unix98 */ | |
465 #undef HAVE_PTSNAME | |
466 /* BSD */ | |
467 #undef HAVE_KILLPG | |
468 /* Posix 1 */ | |
469 #undef HAVE_TCGETPGRP | |
470 /* SysV streams */ | |
471 #undef HAVE_ISASTREAM | |
472 /* AIX */ | |
473 #undef HAVE_SYS_PTY_H | |
474 /* HP-UX */ | |
475 #undef HAVE_SYS_PTYIO_H | |
476 /* Linux, Tru64 */ | |
477 #undef HAVE_PTY_H | |
478 /* BSD openpty */ | |
479 #undef HAVE_LIBUTIL_H | |
480 /* NetBSD openpty */ | |
481 #undef HAVE_UTIL_H | |
482 /* SysV streams */ | |
483 #undef HAVE_STROPTS_H | |
484 /* SysV streams TIOCSIGNAL */ | |
485 #undef HAVE_STRTIO_H | |
442 | 486 |
428 | 487 #undef HAVE_SOCKETS |
488 #undef HAVE_SOCKADDR_SUN_LEN | |
489 #undef HAVE_MULTICAST | |
490 #undef HAVE_SYSVIPC | |
438 | 491 #undef HAVE_LOCKF |
492 #undef HAVE_FLOCK | |
428 | 493 |
494 #undef SYSV_SYSTEM_DIR | |
495 #undef NONSYSTEM_DIR_LIBRARY | |
496 | |
497 #undef HAVE_TERMIOS | |
498 #undef HAVE_TERMIO | |
499 #undef NO_TERMIO | |
500 #undef SIGNALS_VIA_CHARACTERS | |
501 | |
502 #undef NLIST_STRUCT | |
503 | |
724 | 504 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */ |
505 #undef IPV6_CANONICALIZE | |
506 | |
428 | 507 /* Compile in support for SOCKS? */ |
508 #undef HAVE_SOCKS | |
509 | |
510 /* Compile in support for X pixmaps via the `xpm' library? */ | |
511 #undef HAVE_XPM | |
512 #undef FOR_MSW | |
513 | |
514 /* Compile in support for "X faces" via the `compface' library? | |
515 This enables graphical display of X-face headers in mail/news messages */ | |
516 #undef HAVE_XFACE | |
517 | |
518 /* Compile in support for JPEG images */ | |
519 #undef HAVE_JPEG | |
520 | |
521 /* Compile in support for TIFF images */ | |
522 #undef HAVE_TIFF | |
523 | |
524 /* Compile in support for GIF images */ | |
525 #undef HAVE_GIF | |
526 | |
527 /* Compile in support for PNG images */ | |
528 #undef HAVE_PNG | |
529 | |
771 | 530 /* Compile in support for GZIP compression */ |
531 #undef HAVE_ZLIB | |
532 | |
428 | 533 /* Compile in support for DBM databases? May require libgdbm or libdbm. */ |
534 #undef HAVE_DBM | |
4699
0e1461b592ce
Check for gdbm/ndbm.h, too.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4497
diff
changeset
|
535 /* 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
|
536 #undef NDBM_H_FILE |
4991
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
537 /* Can we trust the prototypes in ndbm.h? If not, we need to declare our own */ |
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
538 #undef TRUST_NDBM_H_PROTOTYPES |
428 | 539 |
3739 | 540 /* Define to 1 if the system has the type `u_int8_t'. */ |
541 #undef HAVE_U_INT8_T | |
542 /* Define to 1 if the system has the type `u_int16_t'. */ | |
543 #undef HAVE_U_INT16_T | |
544 /* Define to 1 if the system has the type `u_int32_t'. */ | |
545 #undef HAVE_U_INT32_T | |
546 /* Define to 1 if the system has the type `u_int64_t'. */ | |
547 #undef HAVE_U_INT64_T | |
548 | |
428 | 549 /* Compile in support for Berkeley DB style databases? May require libdb. */ |
550 #undef HAVE_BERKELEY_DB | |
551 /* Full #include file path for Berkeley DB's db.h */ | |
442 | 552 #undef DB_H_FILE |
428 | 553 |
554 /* Do we have either DBM or Berkeley DB database support? */ | |
555 #undef HAVE_DATABASE | |
556 | |
557 /* Do we have LDAP support? */ | |
558 #undef HAVE_LDAP | |
559 /* Does the library define ldap_set_option () ? */ | |
560 #undef HAVE_LDAP_SET_OPTION | |
561 /* Does the library define ldap_get_lderrno () ? */ | |
562 #undef HAVE_LDAP_GET_LDERRNO | |
563 /* Does the library define ldap_result2error () ? */ | |
564 #undef HAVE_LDAP_RESULT2ERROR | |
565 /* Does the library define ldap_parse_result () ? */ | |
566 #undef HAVE_LDAP_PARSE_RESULT | |
567 | |
442 | 568 /* Do we have PostgreSQL RDBMS support? */ |
569 #undef HAVE_POSTGRESQL | |
570 #undef HAVE_POSTGRESQLV7 | |
2651 | 571 /* main PostgreSQL header file */ |
572 #undef LIBPQ_FE_H_FILE | |
442 | 573 |
428 | 574 /* Do you have the Xauth library present? This will add some extra |
575 functionality to gnuserv. */ | |
576 #undef HAVE_XAUTH | |
577 | |
578 /* Compile in support for gpm (General Purpose Mouse)? */ | |
579 #undef HAVE_GPM | |
580 | |
581 /* Compile in support for ncurses? */ | |
582 #undef HAVE_NCURSES | |
583 /* Full #include file paths for ncurses' curses.h and term.h. */ | |
442 | 584 #undef CURSES_H_FILE |
585 #undef TERM_H_FILE | |
428 | 586 |
587 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). | |
588 If the assertion fails, assert_failed() will be called. This is | |
589 recommended for general use because it gives more info about the crash | |
590 than just the abort() message. Too many people "Can't find the corefile" | |
591 or have limit-ed core dumps out of existence. */ | |
592 #undef USE_ASSERTIONS | |
593 | |
594 /* Define one or more of the following if you want lots of extra checks | |
595 (e.g. structure validation) compiled in. These should be turned | |
3959 | 596 on during the beta-test cycle. |
597 | |
598 Keep macro names sorted to help with syncing this file to configure.ac. | |
599 Don't forget the ERROR_CHECK_ALL stuff at the end of this file. */ | |
600 | |
601 /* Minor sanity checking of the bytecode interpreter. Useful for | |
602 debugging the byte compiler. */ | |
603 #undef ERROR_CHECK_BYTE_CODE | |
604 | |
605 /* Sanity-check the redisplay structures after each modification. */ | |
606 #undef ERROR_CHECK_DISPLAY | |
428 | 607 |
608 /* Check the entire extent structure of a buffer each time an extent | |
609 change is done, and do other extent-related checks. */ | |
610 #undef ERROR_CHECK_EXTENTS | |
440 | 611 |
3959 | 612 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */ |
613 #undef ERROR_CHECK_GC | |
614 | |
615 /* Minor sanity checking of glyphs, especially subwindows and | |
616 widgets. */ | |
617 #undef ERROR_CHECK_GLYPHS | |
618 | |
619 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */ | |
620 #undef ERROR_CHECK_MALLOC | |
621 | |
622 /* Define for any sanity checks on structures that are not handled by a | |
623 more specific error-checking type. */ | |
624 #undef ERROR_CHECK_STRUCTURES | |
440 | 625 |
800 | 626 /* Turn on checks related to text -- check that text in strings and buffers |
627 is in a valid format before we use it, check that buffer positions are | |
628 valid, etc. */ | |
629 #undef ERROR_CHECK_TEXT | |
440 | 630 |
3959 | 631 /* Turn on checks related to types -- make sure that all X... macros are |
632 dereferencing the correct type, and that all XSET... macros (as much as | |
633 possible) are setting the correct type of structure; check any other | |
634 places that a specific type is expected. */ | |
635 #undef ERROR_CHECK_TYPES | |
800 | 636 |
428 | 637 /* Define DEBUG_XEMACS if you want extra debugging code compiled in. |
638 This is mainly intended for use by developers. */ | |
639 #undef DEBUG_XEMACS | |
640 | |
641 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to | |
642 determine where XEmacs' memory is going. */ | |
643 #undef MEMORY_USAGE_STATS | |
644 | |
460 | 645 /* Define QUANTIFY if using Quantify from Rational Software. |
428 | 646 This adds some additional calls to control data collection. |
647 It is only intended for use by the developers. */ | |
648 #undef QUANTIFY | |
649 | |
460 | 650 /* Define PURIFY if using Purify from Rational Software. |
428 | 651 It is only intended for use by the developers. */ |
652 #undef PURIFY | |
653 | |
4803
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
654 /* Define USE_VALGRIND to compile valgrind hints into the code. |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
655 It is only intended for use by the developers. */ |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
656 #undef USE_VALGRIND |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
657 |
428 | 658 /* Define EXTERNAL_WIDGET to compile support for using the editor as a |
659 widget within another program. */ | |
660 #undef EXTERNAL_WIDGET | |
661 | |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
662 /* There are some special-case defines for gcc, g++ and lcc. */ |
428 | 663 #undef USE_GCC |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
664 #undef USE_GPLUSPLUS |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
665 #undef USE_LCC /* #### Not currently set in configure */ |
428 | 666 |
667 /* Compile in support for CDE (Common Desktop Environment) drag and drop? | |
668 Requires libDtSvc, which typically must be present at runtime. */ | |
669 #undef HAVE_CDE | |
670 | |
671 /* Compile in generic Drag'n'Drop API */ | |
672 #undef HAVE_DRAGNDROP | |
673 | |
674 /* Compile in support for proper handling of WM_COMMAND. */ | |
675 #undef HAVE_WMCOMMAND | |
676 | |
677 /* Define this if you want Mule support (multi-byte character support). | |
678 There may be some performance penalty, although it should be small | |
679 if you're working with ASCII files. */ | |
680 #undef MULE | |
681 | |
771 | 682 /* Define this if you want EOL detection of files to be on by default |
683 in a non-Mule Unix; otherwise, defaults will be set so that all | |
684 files are read in as binary. Doesn't apply to Cygwin or MinGW. */ | |
685 #undef HAVE_DEFAULT_EOL_DETECTION | |
428 | 686 |
1259 | 687 /* Support X FontSets. Evil, yes, but if we're going to make it go away |
688 by using faces in the menubar we should do so. */ | |
689 #undef USE_XFONTSET | |
690 | |
428 | 691 /* Do we want to use X window input methods for use with Mule? (requires X11R5) |
692 If so, use raw Xlib or higher level Motif interface? */ | |
693 #undef HAVE_XIM | |
694 #undef XIM_XLIB | |
695 #undef XIM_MOTIF | |
696 | |
697 /* Non-XIM input methods for use with Mule. */ | |
698 #undef HAVE_CANNA | |
3830 | 699 #undef CANNA_NEW_WCHAR_AWARE |
428 | 700 #undef HAVE_WNN |
701 #undef WNN6 | |
702 | |
442 | 703 /* Debugging development option: Remove inessential but time consuming |
704 actions from happening during build. This saves a lot of time when | |
705 you're repeatedly compiling-running-crashing. This (1) doesn't | |
706 garbage-collect after loading each file during dumping, and (2) | |
707 doesn't automatically rebuild the DOC file. (Remove it by hand to | |
708 get it rebuilt.) | |
709 */ | |
710 #undef QUICK_BUILD | |
428 | 711 |
872 | 712 /* If true, run the compiler with many files at once rather than one at a |
713 time. May speed up compilation time with some compilers, particularly | |
714 if the entire compilation happens in a single process -- the process can | |
715 cache the results of processing include files. This definitely helps | |
716 with VC++ (although it doesn't use Makefile.in.in) but not with GCC, | |
717 which runs many processes per file to compile. */ | |
718 #undef BATCH_COMPILER_RUNS | |
719 | |
771 | 720 /* If defined, use unions instead of ints. A few systems (DEC Alpha) |
721 seem to require this, probably because something with the int | |
722 definitions isn't right with 64-bit systems. */ | |
723 #undef USE_UNION_TYPE | |
724 | |
926 | 725 /* If defined, use experimental pdump-based GC algorithms. */ |
726 #undef USE_KKCC | |
727 | |
3263 | 728 /* If defined, use experimental incremental garbage collector and new |
729 allocator. */ | |
3092 | 730 #undef NEW_GC |
731 | |
732 /* Virtual dirty bit implementation for incremental gc. */ | |
733 #undef VDB_POSIX | |
734 #undef VDB_MACH | |
735 #undef VDB_WIN32 | |
736 #undef VDB_FAKE | |
737 | |
771 | 738 /* Enable special GNU Make features in the Makefiles. */ |
739 #undef USE_GNU_MAKE | |
740 | |
428 | 741 /* Defined by AC_C_CONST in configure.in */ |
742 #undef const | |
743 | |
434 | 744 /* Allow the source to use standard types. Include these before the |
745 s&m files so that they can use them. */ | |
746 #undef ssize_t | |
747 #undef size_t | |
748 #undef pid_t | |
749 #undef mode_t | |
750 #undef off_t | |
751 #undef uid_t | |
752 #undef gid_t | |
442 | 753 #undef socklen_t |
434 | 754 |
2367 | 755 /* Enhanced numeric support */ |
756 #undef WITH_NUMBER_TYPES | |
757 #undef WITH_GMP | |
758 #undef WITH_MP | |
759 #undef MP_PREFIX | |
760 #undef HAVE_MP_MOVE | |
771 | 761 |
2367 | 762 #undef SIZEOF_SHORT |
763 #undef SIZEOF_INT | |
764 #undef SIZEOF_LONG | |
765 #undef SIZEOF_LONG_LONG | |
766 #undef SIZEOF_VOID_P | |
767 #undef SIZEOF_DOUBLE | |
615 | 768 |
2367 | 769 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h> |
770 but the standard is <inttypes.h> | |
771 ugliness due to last-resort conditional typedef'ing in lisp.h */ | |
772 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H | |
773 | |
774 /* Does the keyword `inline' exist? */ | |
775 #undef inline | |
428 | 776 |
2367 | 777 /* movemail options */ |
778 /* Should movemail use POP3 for mail access? */ | |
779 #undef MAIL_USE_POP | |
780 /* Should movemail use kerberos for POP authentication? */ | |
781 #undef KERBEROS | |
782 /* Should movemail use hesiod for getting POP server host? */ | |
783 #undef HESIOD | |
784 /* Determine type of mail locking. */ | |
785 #undef MAIL_LOCK_LOCKF | |
786 #undef MAIL_LOCK_FLOCK | |
787 #undef MAIL_LOCK_DOT | |
788 #undef MAIL_LOCK_LOCKING | |
789 #undef MAIL_LOCK_MMDF | |
428 | 790 |
2367 | 791 #undef HAVE_MKSTEMP |
428 | 792 |
2367 | 793 #undef PREFIX_USER_DEFINED |
794 #undef EXEC_PREFIX_USER_DEFINED | |
795 #undef MODULEDIR_USER_DEFINED | |
796 #undef SITEMODULEDIR_USER_DEFINED | |
797 #undef DOCDIR_USER_DEFINED | |
798 #undef LISPDIR_USER_DEFINED | |
3179 | 799 #undef EARLY_PACKAGE_DIRECTORIES_USER_DEFINED |
800 #undef LATE_PACKAGE_DIRECTORIES_USER_DEFINED | |
801 #undef LAST_PACKAGE_DIRECTORIES_USER_DEFINED | |
2367 | 802 #undef PACKAGE_PATH_USER_DEFINED |
803 #undef SITELISPDIR_USER_DEFINED | |
804 #undef ARCHLIBDIR_USER_DEFINED | |
805 #undef ETCDIR_USER_DEFINED | |
806 #undef INFODIR_USER_DEFINED | |
807 #undef INFOPATH_USER_DEFINED | |
872 | 808 |
2367 | 809 #undef PDUMP |
872 | 810 |
2720 | 811 /* Define DUMP_IN_EXEC to include the dump file in the executable |
812 file. */ | |
813 #undef DUMP_IN_EXEC | |
814 | |
428 | 815 /* Compile in support for Sun Sparcworks/WorkShop? */ |
816 #undef SUNPRO | |
817 | |
818 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in | |
819 support for playing sound files. (On Suns, the sound support is | |
820 usually found in /usr/demo/SOUND - you may need to install the | |
821 "SUNWaudmo" package.) */ | |
822 #undef HAVE_NATIVE_SOUND | |
771 | 823 |
428 | 824 /* Native sound may be provided via soundcard.h, in various directories */ |
442 | 825 #undef SOUNDCARD_H_FILE |
428 | 826 |
3308 | 827 /* Compile in support for ALSA (Advanced Linux Sound Architecture) */ |
828 #undef HAVE_ALSA_SOUND | |
829 | |
428 | 830 /* Compile in support for NAS (Network Audio System)? |
831 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some | |
832 error handling changes. */ | |
833 #undef HAVE_NAS_SOUND | |
834 #undef NAS_NO_ERROR_JUMP | |
835 | |
836 /* Compile in support for ESD (Enlightened Sound Daemon)? */ | |
837 #undef HAVE_ESD_SOUND | |
838 | |
839 /* Compile in support for SunPro usage-tracking code? */ | |
840 #undef USAGE_TRACKING | |
841 | |
842 /* Compile in support for Tooltalk? */ | |
843 #undef TOOLTALK | |
844 /* tt_c.h might be in "Tt" or "desktop" subdirectories */ | |
442 | 845 #undef TT_C_H_FILE |
428 | 846 |
847 /* Toolkits used by lwlib for various widgets... */ | |
771 | 848 |
428 | 849 #undef LWLIB_USES_MOTIF |
850 #undef LWLIB_USES_ATHENA | |
851 #undef LWLIB_MENUBARS_LUCID | |
852 #undef LWLIB_MENUBARS_MOTIF | |
853 #undef LWLIB_SCROLLBARS_LUCID | |
854 #undef LWLIB_SCROLLBARS_MOTIF | |
855 #undef LWLIB_SCROLLBARS_ATHENA | |
856 #undef LWLIB_SCROLLBARS_ATHENA3D | |
857 #undef LWLIB_DIALOGS_MOTIF | |
858 #undef LWLIB_DIALOGS_ATHENA | |
859 #undef LWLIB_DIALOGS_ATHENA3D | |
860 #undef LWLIB_TABS_LUCID | |
861 #undef LWLIB_WIDGETS_MOTIF | |
862 #undef LWLIB_WIDGETS_ATHENA | |
440 | 863 #undef HAVE_ATHENA_3D |
428 | 864 |
865 /* Other things that can be disabled by configure. */ | |
866 #undef HAVE_MENUBARS | |
867 #undef HAVE_SCROLLBARS | |
868 #undef HAVE_DIALOGS | |
869 #undef HAVE_TOOLBARS | |
870 #undef HAVE_WIDGETS | |
871 | |
771 | 872 #endif /* WIN32_NO_CONFIGURE */ |
873 | |
2994 | 874 #ifdef _MSC_VER |
875 /* Turn off tons of C4996 warnings in VC 8 about standard functions being | |
876 "deprecated" in favor of Microsoft-specific "secure" ones (!) | |
877 This must go *before* the inclusion of any system files. */ | |
878 #define _CRT_SECURE_NO_DEPRECATE | |
4457
2fddd822ce87
#define _CRT_NONSTDC_NO_DEPRECATE on Win32
Aidan Kehoe <kehoea@parhasard.net>
parents:
4448
diff
changeset
|
879 #define _CRT_NONSTDC_NO_DEPRECATE |
2994 | 880 #endif |
881 | |
2367 | 882 /* alloca twiddling. |
883 Because we might be #including alloca.h here, feature test macros | |
884 such as _XOPEN_SOURCE must be defined above. | |
885 | |
886 #### This really should go below the inclusion of s&m files, like | |
887 everything else. */ | |
888 | |
889 #ifndef NOT_C_CODE | |
890 #if defined (__CYGWIN__) | |
891 /* We get complaints about redefinitions if we just use the __GNUC__ | |
892 definition: stdlib.h also includes alloca.h, which defines it slightly | |
893 differently */ | |
894 #include <alloca.h> | |
895 #elif defined (__GNUC__) | |
896 #define alloca __builtin_alloca | |
897 #elif defined (WIN32_NO_CONFIGURE) | |
898 /* Defines size_t and alloca (). */ | |
899 #include <malloc.h> | |
900 #elif defined (__DECC) | |
901 #include <alloca.h> | |
902 #pragma intrinsic(alloca) | |
903 #elif defined (HAVE_ALLOCA_H) | |
904 #include <alloca.h> | |
905 #elif defined (_AIX) | |
906 /* AIX requires this before any "real" code in the translation unit. */ | |
907 #pragma alloca | |
908 #elif ! defined (alloca) | |
909 #ifdef C_ALLOCA | |
910 #define alloca xemacs_c_alloca | |
911 #else | |
912 void *alloca (); | |
913 #endif /* C_ALLOCA */ | |
914 #endif /* !defined (alloca) */ | |
915 #endif /* C code */ | |
916 | |
917 /* The configuration script may define `opsysfile' to be the name of | |
918 the s/...h file that describes your operating system. | |
919 The file name is chosen based on the configuration name. */ | |
920 | |
921 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
922 extern "C" { | |
923 #endif | |
924 | |
925 #undef config_opsysfile | |
926 #ifdef WIN32_NO_CONFIGURE | |
927 #include "s/windowsnt.h" | |
928 #elif defined (config_opsysfile) | |
929 #include config_opsysfile | |
930 #endif | |
931 | |
4738
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
932 /* Darwin uses this to set BSD appropriately. */ |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
933 #undef USE_PARAM_H |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
934 #ifdef USE_PARAM_H |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
935 # ifndef NOT_C_CODE |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
936 # include <sys/param.h> |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
937 # endif |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
938 #endif |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
939 |
2367 | 940 /* The configuration script may define `machfile' to be the name of |
941 the m/...h file that describes the machine you are using. | |
942 The file name is chosen based on the configuration name. */ | |
943 | |
944 #undef config_machfile | |
945 #ifdef WIN32_NO_CONFIGURE | |
946 #include "m/windowsnt.h" | |
947 #elif defined (config_machfile) | |
948 #include config_machfile | |
949 #endif | |
950 | |
951 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
952 } | |
953 #endif | |
954 | |
955 /* This will be removed in 19.15. */ | |
956 /* Hah! Try 20.3 ... */ | |
957 /* Hah! Try never ... */ | |
958 /* If at first you don't succeed, try, try again. */ | |
959 /* #define LOSING_BYTECODE */ | |
960 | |
961 /* USER_FULL_NAME returns a string that is the user's full name. | |
962 It can assume that the variable `pw' points to the password file | |
963 entry for this user. | |
964 | |
965 At some sites, the pw_gecos field contains the user's full name. | |
966 If neither this nor any other field contains the right thing, use | |
967 pw_name, giving the user's login name, since that is better than | |
968 nothing. */ | |
969 #define USER_FULL_NAME pw->pw_gecos | |
970 | |
971 #define XEMACS_WANTS_C_ALLOCA | |
972 | |
973 /* s&m files shouldn't be required to define anything, or even to exist. | |
974 If the s&m files don't define SYSTEM_TYPE, configure will select an | |
975 appropriate default value. */ | |
976 #ifndef SYSTEM_TYPE | |
977 #undef SYSTEM_TYPE | |
978 #endif | |
979 | |
980 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) | |
981 #define SYSTEM_MALLOC | |
982 #endif | |
983 | |
2994 | 984 /* This enables type based information (updated during gc). The output |
985 is used by show-memory-usage to print memory information for each | |
986 type. Since the new allocator does not distinguish between types | |
987 anymore, this functionality is additionally implemented and | |
988 consumes a lot of time. That is why this functionality can be | |
989 disabled; for the moment, we keep it enabled. */ | |
990 #if !defined (MC_ALLOC) || 1 | |
991 # define ALLOC_TYPE_STATS 1 | |
992 #endif | |
993 | |
2367 | 994 /* Define the return type of signal handlers if the s/xxx.h file |
995 did not already do so. */ | |
996 #define RETSIGTYPE void | |
997 | |
998 #ifndef XCDECL | |
999 #define XCDECL | |
1000 #endif | |
1001 | |
1002 /* SIGTYPE is the macro we actually use. */ | |
1003 #ifndef SIGTYPE | |
1004 #define SIGTYPE RETSIGTYPE XCDECL | |
1005 #define SIGRETURN return | |
1006 #endif | |
1007 | |
1008 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4738
diff
changeset
|
1009 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) |
2367 | 1010 #define HAVE_WINDOW_SYSTEM |
1011 #endif | |
1012 | |
771 | 1013 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS) |
1014 #define HAVE_GUI_OBJECTS | |
1015 #endif | |
1016 | |
2367 | 1017 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS) |
1018 #define HAVE_POPUPS | |
1019 #endif | |
1020 | |
1021 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) | |
1022 #define HAVE_XLIKE | |
1023 #endif | |
1024 | |
771 | 1025 /* For the moment, Athena widgets and dialogs may be very unstable and not |
1026 working well, but things under Windows work much better. configure by | |
1027 default tries to turn Windows widgets and dialogs on, but the Athena | |
1028 ones off, so let's separate the defines. */ | |
1029 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA)) | |
1030 #define HAVE_X_WIDGETS | |
1031 #endif | |
1032 | |
1033 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D)) | |
1034 #define HAVE_X_DIALOGS | |
1035 #endif | |
428 | 1036 |
2367 | 1037 #ifdef HAVE_X_WINDOWS |
1038 /* The following should always be defined, no matter what xmkmf thinks. */ | |
1039 #ifndef NeedFunctionPrototypes | |
1040 #define NeedFunctionPrototypes 1 | |
1041 #endif | |
1042 #ifndef FUNCPROTO | |
1043 #define FUNCPROTO 15 | |
1044 #endif | |
1045 #endif /* HAVE_X_WINDOWS */ | |
1046 | |
1047 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS) | |
1048 #define XLIB_ILLEGAL_ACCESS 1 | |
1049 #endif | |
1050 | |
1051 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */ | |
1052 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT) | |
1053 #define HAVE_UNIXOID_EVENT_LOOP | |
428 | 1054 #endif |
1055 | |
1056 #ifdef HAVE_CANNA | |
1057 # define CANNA_MULE | |
1058 # define CANNA_PURESIZE 0 | |
1059 #else /* not CANNA */ | |
1060 # define CANNA_PURESIZE 0 | |
1061 #endif /* not CANNA */ | |
1062 | |
1063 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) | |
1064 #define accept Raccept | |
1065 #define bind Rbind | |
1066 #define connect Rconnect | |
1067 #define getsockname Rgetsockname | |
1068 #define listen Rlisten | |
1069 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ | |
1070 | |
1071 #ifndef BITS_PER_CHAR | |
1072 #define BITS_PER_CHAR 8 | |
1073 #endif | |
1074 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) | |
1075 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) | |
1076 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) | |
1077 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | |
1078 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | |
1983 | 1079 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR) |
1080 | |
442 | 1081 /* Use `INLINE_HEADER' to define inline functions in .h files. |
1082 Use `inline static' to define inline functions in .c files. | |
1083 See the Internals manual for examples and more information. */ | |
1084 | |
4389
4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4387
diff
changeset
|
1085 #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
|
1086 || defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs) |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1087 # define INLINE_HEADERS_ARE_STATIC |
442 | 1088 # define INLINE_HEADER inline static |
1089 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS) | |
1090 # define INLINE_HEADER inline | |
1091 #else | |
1092 # define INLINE_HEADER inline extern | |
1093 #endif | |
428 | 1094 |
771 | 1095 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header |
1096 file, like this: (This avoids the need to write a prototype directly | |
4932 | 1097 followed by the function header itself, in order to avoid a |
1098 "no prototype" warning from GCC.) | |
771 | 1099 |
1100 DECLARE_INLINE_HEADER (int foo (int x)) | |
1101 { | |
1102 return x * x; | |
1103 } | |
1104 | |
1105 */ | |
1106 | |
1107 #define DECLARE_INLINE_HEADER(header) \ | |
1108 INLINE_HEADER header ; INLINE_HEADER header | |
1109 | |
442 | 1110 #ifndef NOT_C_CODE /* Actually means C or C++ */ |
1111 # if defined (__cplusplus) | |
1112 # define EXTERN_C extern "C" | |
1113 # else /* C code */ | |
1114 # define EXTERN_C extern | |
1115 # endif | |
1116 #endif /* C or C++ */ | |
428 | 1117 |
1118 /* Strictly speaking, only int or unsigned int are valid types in a | |
1119 bitfield. In practice, we would like to use enums as bitfields. | |
1120 The following should just result in warning avoidance: | |
1121 warning: nonportable bit-field type */ | |
1122 #ifdef __GNUC__ | |
1123 #define enum_field(enumeration_type) enum enumeration_type | |
1124 #else | |
1125 #define enum_field(enumeration_type) unsigned int | |
1126 #endif | |
1127 | |
1128 /* We want to avoid saving the signal mask if possible, because | |
1129 that necessitates a system call. */ | |
1130 #ifdef HAVE_SIGSETJMP | |
1131 # define SETJMP(x) sigsetjmp (x, 0) | |
1132 # define LONGJMP(x, y) siglongjmp (x, y) | |
1133 # define JMP_BUF sigjmp_buf | |
1134 #else | |
1135 # define SETJMP(x) setjmp (x) | |
1136 # define LONGJMP(x, y) longjmp (x, y) | |
1137 # define JMP_BUF jmp_buf | |
1138 #endif | |
1139 | |
838 | 1140 /* For the moment, we go ahead and keep this, since it's used in mouse.el. |
1141 #### font-lock does its own version using parse-partial-sexp. We should | |
1142 merge the two. */ | |
1143 #define USE_C_FONT_LOCK | |
1144 | |
3959 | 1145 /* Keep the #defines sorted. |
1146 #### Can this code ever be executed? I guess if a developer #defines | |
1147 ERROR_CHECK_ALL above the #include it could be useful. */ | |
800 | 1148 #ifdef ERROR_CHECK_ALL |
3959 | 1149 #define ERROR_CHECK_BYTE_CODE |
1150 #define ERROR_CHECK_DISPLAY | |
800 | 1151 #define ERROR_CHECK_EXTENTS |
1152 #define ERROR_CHECK_GC | |
3959 | 1153 #define ERROR_CHECK_GLYPHS |
800 | 1154 #define ERROR_CHECK_MALLOC |
1155 #define ERROR_CHECK_STRUCTURES | |
3959 | 1156 #define ERROR_CHECK_TEXT |
1157 #define ERROR_CHECK_TYPES | |
800 | 1158 #endif /* ERROR_CHECK_ALL */ |
1159 | |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1160 /* It's very tricky. In some circumstances, if we don't include the |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1161 ERROR_CHECK_TYPES functions in xemacs.def.in.in, we get lots of |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1162 undefined references from eldap.o and postgresql.o; but in other |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1163 circumstances, if we DO include them, we get undefined references |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1164 in xemacs-export.o to the same functions. We try here to grok when |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1165 we need to include them in xemacs.def.in.in. I originally thought |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1166 it was enough to condition on !defined (INLINE_HEADERS_ARE_STATIC) -- |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1167 if they're static, they shouldn't lead to any external references |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1168 in the modules, right? Wrong, under non-optimized builds. So now |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1169 let's try conditioning on !C++ -- by examining inline.o with nm, |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1170 it seems it's the C++ builds where inline.o doesn't get any inline |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1171 functions compiled into it at all, which would lead to problems if |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1172 we reference them in xemacs.def.in.in. |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1173 |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1174 #### FIXME Should we condition on GCC and defined(emacs), like we |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1175 do (inverted) for INLINE_HEADERS_ARE_STATIC? --ben */ |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1176 |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1177 /* Checking for !defined (__cplusplus) doesn't work, because we typically |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1178 aren't using the C++ preprocessor when processing xemacs.def.in.in |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1179 even if we're using a C++ compiler. I suspect we only need this at |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1180 all GCC is being used. */ |
4952
19a72041c5ed
Mule-izing, various fixes related to char * arguments
Ben Wing <ben@xemacs.org>
parents:
4932
diff
changeset
|
1181 #if !defined (USE_GPLUSPLUS) |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1182 /* #if !defined (INLINE_HEADERS_ARE_STATIC) */ |
4952
19a72041c5ed
Mule-izing, various fixes related to char * arguments
Ben Wing <ben@xemacs.org>
parents:
4932
diff
changeset
|
1183 #define XEMACS_DEFS_NEEDS_INLINE_DECLS |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1184 #endif |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1185 |
428 | 1186 #endif /* _SRC_CONFIG_H_ */ |