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