428
|
1 /* XEmacs site configuration template file. -*- C -*-
|
|
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
|
|
3
|
|
4 This file is part of XEmacs.
|
|
5
|
|
6 XEmacs is free software; you can redistribute it and/or modify it
|
|
7 under the terms of the GNU General Public License as published by the
|
|
8 Free Software Foundation; either version 2, or (at your option) any
|
|
9 later version.
|
|
10
|
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* Significantly divergent from FSF. */
|
|
22
|
|
23 /* No code in XEmacs #includes config.h twice, but some of the code
|
|
24 intended to work with other packages as well (like gmalloc.c)
|
|
25 think they can include it as many times as they like. */
|
|
26 #ifndef _SRC_CONFIG_H_
|
|
27 #define _SRC_CONFIG_H_
|
|
28
|
442
|
29
|
428
|
30 /* alloca twiddling belongs in one place, not the s&m headers
|
|
31 AIX requires this to be the first thing in the file. */
|
|
32 #undef HAVE_ALLOCA_H
|
|
33
|
|
34 #ifndef NOT_C_CODE
|
|
35 #ifdef __GNUC__
|
|
36 #define alloca __builtin_alloca
|
444
|
37 #elif defined __DECC
|
|
38 #include <alloca.h>
|
|
39 #pragma intrinsic(alloca)
|
|
40 #elif defined HAVE_ALLOCA_H
|
428
|
41 #include <alloca.h>
|
|
42 #elif defined(_AIX)
|
|
43 #pragma alloca
|
|
44 #elif ! defined (alloca)
|
444
|
45 void *alloca ();
|
428
|
46 #endif
|
|
47 #endif /* C code */
|
|
48
|
|
49 /* Use this to add code in a structured way to FSF-maintained source
|
|
50 files so as to make it obvious where XEmacs changes are. */
|
|
51 #define XEMACS 1
|
|
52
|
442
|
53 /* Program name */
|
|
54 #undef EMACS_PROGNAME
|
|
55
|
428
|
56 /* Allow s&m files to differentiate OS versions without having
|
|
57 multiple files to maintain. */
|
|
58 #undef OS_RELEASE
|
|
59
|
|
60 /* The configuration name. This is used as the install directory name
|
|
61 for the lib-src programs. */
|
|
62 #undef EMACS_CONFIGURATION
|
|
63
|
|
64 /* The configuration options. This is exported to Lisp. */
|
|
65 #undef EMACS_CONFIG_OPTIONS
|
|
66
|
|
67 /* The version info from version.sh. Used in #pragma ident in emacs.c */
|
|
68 #undef EMACS_MAJOR_VERSION
|
|
69 #undef EMACS_MINOR_VERSION
|
|
70 #undef EMACS_PATCH_LEVEL
|
|
71 #undef EMACS_BETA_VERSION
|
|
72 #undef EMACS_VERSION
|
|
73 #undef XEMACS_CODENAME
|
|
74 /* InfoDock versions, not used with XEmacs */
|
|
75 #undef INFODOCK_MAJOR_VERSION
|
|
76 #undef INFODOCK_MINOR_VERSION
|
|
77 #undef INFODOCK_BUILD_VERSION
|
|
78
|
442
|
79 /* Make functions from IEEE Stds 1003.[123] available. */
|
|
80 #undef _POSIX_C_SOURCE
|
|
81
|
|
82 /* Make some functions from Unix98 available. */
|
|
83 #undef _XOPEN_SOURCE
|
|
84
|
|
85 /* Make "extensions" from Unix98 available. */
|
|
86 #undef _XOPEN_SOURCE_EXTENDED
|
|
87
|
428
|
88 /* Make all functions available on AIX. See AC_AIX. */
|
|
89 #undef _ALL_SOURCE
|
|
90
|
|
91 /* Make all functions available on GNU libc systems. See features.h. */
|
|
92 #undef _GNU_SOURCE
|
|
93
|
442
|
94 /* Make all functions available on Solaris 2 systems. */
|
|
95 #undef __EXTENSIONS__
|
|
96
|
428
|
97 /* Used to identify the XEmacs version in stack traces. */
|
|
98 #undef STACK_TRACE_EYE_CATCHER
|
|
99
|
|
100 /* Allow the configurer to specify if she wants site-lisp. */
|
|
101 #undef INHIBIT_SITE_LISP
|
|
102
|
|
103 /* Allow the configurer to specify if she wants site-modules. */
|
|
104 #undef INHIBIT_SITE_MODULES
|
|
105
|
|
106 /* This will be removed in 19.15. */
|
|
107 /* Hah! Try 20.3 ... */
|
|
108 /* Hah! Try never ... */
|
|
109 /* If at first you don't succeed, try, try again. */
|
|
110 /* #define LOSING_BYTECODE */
|
|
111
|
|
112 /* Undefine on systems which don't have processes */
|
|
113 #undef HAVE_UNIX_PROCESSES
|
|
114
|
|
115 /* Does XEmacs support floating-point numbers? */
|
|
116 #undef LISP_FLOAT_TYPE
|
|
117
|
|
118 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
|
|
119 #undef GNU_MALLOC
|
|
120
|
|
121 /* Define if you are using the GNU C Library. -- experimental. */
|
|
122 #undef DOUG_LEA_MALLOC
|
|
123
|
|
124 /* Define if you are using libmcheck.a from the GNU C Library. */
|
|
125 #undef HAVE_LIBMCHECK
|
|
126
|
|
127 /* Define if you are using dlmalloc from the Linux C library. */
|
|
128 #undef _NO_MALLOC_WARNING_
|
|
129
|
|
130 /* Use the system malloc? */
|
|
131 #undef USE_SYSTEM_MALLOC
|
|
132
|
|
133 /* Use a debugging malloc? -- experimental */
|
|
134 #undef USE_DEBUG_MALLOC
|
|
135
|
|
136 /* Compile in TTY support? */
|
|
137 #undef HAVE_TTY
|
|
138
|
|
139 /* Compile in support for MS windows? */
|
|
140 #undef HAVE_MS_WINDOWS
|
|
141
|
|
142 /* special cygwin process handling? */
|
|
143 #undef HAVE_MSG_SELECT
|
|
144
|
|
145 /* Compile in support for the X window system? */
|
|
146 #undef HAVE_X_WINDOWS
|
|
147
|
|
148 /* Defines for building X applications */
|
|
149 #ifdef HAVE_X_WINDOWS
|
|
150 /* The following will be defined if xmkmf thinks they are necessary */
|
|
151 #undef SVR4
|
|
152 #undef SYSV
|
|
153 #undef AIXV3
|
|
154 #undef _POSIX_SOURCE
|
|
155 #undef _BSD_SOURCE
|
|
156 #undef _SVID_SOURCE
|
|
157 #undef X_LOCALE
|
|
158 #undef NARROWPROTO
|
|
159 /* The following should always be defined, no matter what xmkmf thinks. */
|
|
160 #ifndef NeedFunctionPrototypes
|
|
161 #define NeedFunctionPrototypes 1
|
|
162 #endif
|
|
163 #ifndef FUNCPROTO
|
|
164 #define FUNCPROTO 15
|
|
165 #endif
|
|
166 #endif /* HAVE_X_WINDOWS */
|
|
167
|
|
168 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
|
169 #if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
|
|
170 #define HAVE_WINDOW_SYSTEM
|
|
171 #endif
|
|
172
|
|
173 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
|
174 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT)
|
|
175 #define HAVE_UNIXOID_EVENT_LOOP
|
|
176 #endif
|
|
177
|
444
|
178 /* XFree86 has a different prototype for this function */
|
|
179 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK
|
|
180 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
428
|
181
|
|
182 #undef THIS_IS_X11R4
|
|
183 #undef THIS_IS_X11R5
|
|
184 #undef THIS_IS_X11R6
|
|
185
|
442
|
186 #undef HAVE_XCONVERTCASE
|
|
187
|
|
188 #undef HAVE_BALLOON_HELP
|
|
189
|
428
|
190 /* Where do we find bitmaps? */
|
|
191 #undef BITMAPDIR
|
|
192
|
|
193 /* USER_FULL_NAME returns a string that is the user's full name.
|
|
194 It can assume that the variable `pw' points to the password file
|
|
195 entry for this user.
|
|
196
|
|
197 At some sites, the pw_gecos field contains the user's full name.
|
|
198 If neither this nor any other field contains the right thing, use
|
|
199 pw_name, giving the user's login name, since that is better than
|
|
200 nothing. */
|
|
201 #define USER_FULL_NAME pw->pw_gecos
|
|
202
|
|
203 /* Define AMPERSAND_FULL_NAME if you use the convention
|
|
204 that & in the full name stands for the login id. */
|
|
205 #undef AMPERSAND_FULL_NAME
|
|
206
|
|
207 /* Some things figured out by the configure script, grouped as they are in
|
|
208 configure.in. */
|
|
209 #undef HAVE_MCHECK_H
|
442
|
210 #undef HAVE_A_OUT_H
|
446
|
211 #undef HAVE_ELF_H
|
442
|
212 #undef HAVE_CYGWIN_VERSION_H
|
|
213 #undef HAVE_FCNTL_H
|
|
214 #undef HAVE_INTTYPES_H
|
|
215 #undef HAVE_LIBGEN_H
|
|
216 #undef HAVE_LOCALE_H
|
428
|
217 #undef HAVE_MACH_MACH_H
|
442
|
218 #undef HAVE_SYS_PARAM_H
|
|
219 #undef HAVE_SYS_PSTAT_H
|
|
220 #undef HAVE_SYS_TIME_H
|
428
|
221 #undef HAVE_SYS_TIMEB_H
|
442
|
222 #undef HAVE_SYS_UN_H
|
|
223 #undef HAVE_ULIMIT_H
|
428
|
224 #undef HAVE_UNISTD_H
|
442
|
225
|
428
|
226 #undef HAVE_SYS_WAIT_H
|
|
227 #undef HAVE_LIBINTL_H
|
|
228 #undef HAVE_X11_XLOCALE_H
|
|
229 #undef STDC_HEADERS
|
|
230 #undef TIME_WITH_SYS_TIME
|
|
231 #undef WORDS_BIGENDIAN
|
|
232 #undef HAVE_VFORK_H
|
|
233 #undef vfork
|
|
234
|
|
235 #undef HAVE_LONG_FILE_NAMES
|
|
236
|
|
237 /* Use lock files to detect multiple edits of the same file? */
|
|
238 #undef CLASH_DETECTION
|
|
239
|
|
240 /* Have shared library support */
|
|
241 #undef HAVE_DLOPEN
|
|
242 #undef HAVE_DLERROR
|
|
243 #undef HAVE__DLERROR
|
|
244 #undef HAVE_SHL_LOAD
|
|
245 #undef HAVE_DLD_INIT
|
|
246 #undef HAVE_SHLIB
|
|
247
|
|
248 #undef HAVE_LIBINTL
|
|
249 #undef HAVE_LIBDNET
|
|
250 #undef HAVE_LIBRESOLV
|
|
251
|
|
252 /* Is `sys_siglist' declared by <signal.h>? */
|
|
253 #undef SYS_SIGLIST_DECLARED
|
|
254
|
|
255 /* Is `struct timeval' declared by <sys/time.h>? */
|
|
256 #undef HAVE_TIMEVAL
|
|
257
|
|
258
|
|
259 #undef TM_IN_SYS_TIME
|
|
260 #undef HAVE_TM_ZONE
|
|
261 #undef HAVE_TZNAME
|
|
262
|
442
|
263 /* For `getloadavg' provided by system */
|
|
264 #undef HAVE_GETLOADAVG
|
|
265 #undef HAVE_SYS_LOADAVG_H
|
|
266 /* For implementing `getloadavg' ourselves */
|
|
267 #undef HAVE_LIBKSTAT
|
|
268 #undef HAVE_KSTAT_H
|
|
269
|
428
|
270 /* Is `h_errno' declared by <netdb.h>? */
|
|
271 #undef HAVE_H_ERRNO
|
|
272
|
|
273 /* Does `localtime' cache TZ? */
|
|
274 #undef LOCALTIME_CACHE
|
|
275
|
|
276 /* Can `gettimeofday' accept two arguments? */
|
|
277 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
278
|
|
279 #undef HAVE_MMAP
|
|
280 #undef HAVE_STRCOLL
|
|
281 #undef HAVE_GETPGRP
|
|
282 #undef GETPGRP_VOID
|
|
283
|
|
284 #undef HAVE_INVERSE_HYPERBOLIC
|
|
285
|
|
286 #undef HAVE_CBRT
|
|
287 #undef HAVE_CLOSEDIR
|
|
288 #undef HAVE_DUP2
|
|
289 #undef HAVE_EACCESS
|
|
290 #undef HAVE_FMOD
|
|
291 #undef HAVE_FPATHCONF
|
|
292 #undef HAVE_FREXP
|
|
293 #undef HAVE_FTIME
|
440
|
294 #undef HAVE_GETADDRINFO
|
428
|
295 #undef HAVE_GETHOSTNAME
|
440
|
296 #undef HAVE_GETNAMEINFO
|
428
|
297 #undef HAVE_GETPAGESIZE
|
|
298 #undef HAVE_GETTIMEOFDAY
|
|
299 #undef HAVE_GETWD
|
|
300 #undef HAVE_GETCWD
|
|
301 #undef HAVE_LOGB
|
|
302 #undef HAVE_LRAND48
|
|
303 #undef HAVE_MATHERR
|
|
304 #undef HAVE_MKDIR
|
|
305 #undef HAVE_MKTIME
|
|
306 #undef HAVE_PERROR
|
|
307 #undef HAVE_POLL
|
|
308 #undef HAVE_RANDOM
|
|
309 #undef HAVE_REALPATH
|
|
310 #undef HAVE_RENAME
|
|
311 #undef HAVE_RES_INIT
|
|
312 #undef HAVE_RINT
|
|
313 #undef HAVE_RMDIR
|
|
314 #undef HAVE_SELECT
|
|
315 #undef HAVE_SETITIMER
|
|
316 #undef HAVE_SETPGID
|
|
317 #undef HAVE_SETSID
|
|
318 #undef HAVE_SIGBLOCK
|
|
319 #undef HAVE_SIGHOLD
|
|
320 #undef HAVE_SIGPROCMASK
|
|
321 #undef HAVE_SIGSETJMP
|
|
322 #undef HAVE_SNPRINTF
|
|
323 #undef HAVE_STPCPY
|
|
324 #undef HAVE_STRERROR
|
|
325 #undef HAVE_TZSET
|
|
326 #undef HAVE_ULIMIT
|
|
327 #undef HAVE_USLEEP
|
460
|
328 #undef HAVE_UTIME
|
428
|
329 #undef HAVE_UTIMES
|
|
330 #undef HAVE_WAITPID
|
|
331 #undef HAVE_VSNPRINTF
|
442
|
332
|
|
333 /* PTY support functions */
|
|
334 #undef HAVE_GETPT /* glibc's easy pty allocation function */
|
444
|
335 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
|
442
|
336 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
|
|
337 #undef HAVE_GRANTPT /* Unix98 */
|
|
338 #undef HAVE_UNLOCKPT /* Unix98 */
|
|
339 #undef HAVE_PTSNAME /* Unix98 */
|
|
340 #undef HAVE_KILLPG /* BSD */
|
|
341 #undef HAVE_TCGETPGRP /* Posix 1 */
|
|
342 #undef HAVE_ISASTREAM /* SysV streams */
|
|
343 #undef HAVE_PTY_H /* Linux, Tru64 openpty */
|
|
344 #undef HAVE_LIBUTIL_H /* BSD openpty */
|
458
|
345 #undef HAVE_UTIL_H /* NetBSD openpty */
|
444
|
346 #undef HAVE_STROPTS_H /* SysV streams */
|
|
347 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
|
442
|
348
|
428
|
349 #undef HAVE_SOCKETS
|
|
350 #undef HAVE_SOCKADDR_SUN_LEN
|
|
351 #undef HAVE_MULTICAST
|
|
352 #undef HAVE_SYSVIPC
|
438
|
353 #undef HAVE_LOCKF
|
|
354 #undef HAVE_FLOCK
|
|
355 #undef HAVE_FSYNC
|
|
356 #undef HAVE_FTRUNCATE
|
|
357 #undef HAVE_UMASK
|
428
|
358
|
|
359 #undef SYSV_SYSTEM_DIR
|
|
360 #undef NONSYSTEM_DIR_LIBRARY
|
|
361
|
|
362 #undef HAVE_TERMIOS
|
|
363 #undef HAVE_TERMIO
|
|
364 #undef NO_TERMIO
|
|
365 #undef SIGNALS_VIA_CHARACTERS
|
|
366
|
|
367 #undef NLIST_STRUCT
|
|
368
|
|
369 /* Compile in support for SOCKS? */
|
|
370 #undef HAVE_SOCKS
|
|
371
|
|
372 /* Compile in support for X pixmaps via the `xpm' library? */
|
|
373 #undef HAVE_XPM
|
|
374 #undef FOR_MSW
|
|
375
|
|
376 /* Compile in support for "X faces" via the `compface' library?
|
|
377 This enables graphical display of X-face headers in mail/news messages */
|
|
378 #undef HAVE_XFACE
|
|
379
|
|
380 /* Compile in support for JPEG images */
|
|
381 #undef HAVE_JPEG
|
|
382
|
|
383 /* Compile in support for TIFF images */
|
|
384 #undef HAVE_TIFF
|
|
385
|
|
386 /* Compile in support for GIF images */
|
|
387 #undef HAVE_GIF
|
|
388
|
|
389 /* Compile in support for PNG images */
|
|
390 #undef HAVE_PNG
|
|
391
|
|
392 /* Do you have the Xmu library?
|
|
393 This should always be the case except on losing HP-UX systems. */
|
|
394 #undef HAVE_XMU
|
|
395
|
|
396 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
|
|
397 #undef HAVE_DBM
|
|
398
|
|
399 /* Compile in support for Berkeley DB style databases? May require libdb. */
|
|
400 #undef HAVE_BERKELEY_DB
|
|
401 /* Full #include file path for Berkeley DB's db.h */
|
442
|
402 #undef DB_H_FILE
|
428
|
403
|
|
404 /* Do we have either DBM or Berkeley DB database support? */
|
|
405 #undef HAVE_DATABASE
|
|
406
|
|
407 /* Do we have LDAP support? */
|
|
408 #undef HAVE_LDAP
|
|
409 /* Does the library define ldap_set_option () ? */
|
|
410 #undef HAVE_LDAP_SET_OPTION
|
|
411 /* Does the library define ldap_get_lderrno () ? */
|
|
412 #undef HAVE_LDAP_GET_LDERRNO
|
|
413 /* Does the library define ldap_result2error () ? */
|
|
414 #undef HAVE_LDAP_RESULT2ERROR
|
|
415 /* Does the library define ldap_parse_result () ? */
|
|
416 #undef HAVE_LDAP_PARSE_RESULT
|
|
417
|
442
|
418 /* Do we have PostgreSQL RDBMS support? */
|
|
419 #undef HAVE_POSTGRESQL
|
|
420 #undef HAVE_POSTGRESQLV7
|
|
421 #undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */
|
|
422
|
428
|
423 /* Do you have the Xauth library present? This will add some extra
|
|
424 functionality to gnuserv. */
|
|
425 #undef HAVE_XAUTH
|
|
426
|
|
427 /* Compile in support for gpm (General Purpose Mouse)? */
|
|
428 #undef HAVE_GPM
|
|
429
|
|
430 /* Compile in support for ncurses? */
|
|
431 #undef HAVE_NCURSES
|
|
432 /* Full #include file paths for ncurses' curses.h and term.h. */
|
442
|
433 #undef CURSES_H_FILE
|
|
434 #undef TERM_H_FILE
|
428
|
435
|
|
436 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
|
|
437 If the assertion fails, assert_failed() will be called. This is
|
|
438 recommended for general use because it gives more info about the crash
|
|
439 than just the abort() message. Too many people "Can't find the corefile"
|
|
440 or have limit-ed core dumps out of existence. */
|
|
441 #undef USE_ASSERTIONS
|
|
442
|
|
443 /* Define one or more of the following if you want lots of extra checks
|
|
444 (e.g. structure validation) compiled in. These should be turned
|
|
445 on during the beta-test cycle. */
|
|
446
|
|
447 /* Check the entire extent structure of a buffer each time an extent
|
|
448 change is done, and do other extent-related checks. */
|
|
449 #undef ERROR_CHECK_EXTENTS
|
440
|
450
|
428
|
451 /* Make sure that all X... macros are dereferencing the correct type,
|
|
452 and that all XSET... macros (as much as possible) are setting the
|
|
453 correct type of structure. Highly recommended for all
|
|
454 development work. */
|
|
455 #undef ERROR_CHECK_TYPECHECK
|
440
|
456 #ifdef ERROR_CHECK_TYPECHECK
|
|
457 #define type_checking_assert(assertion) assert (assertion)
|
|
458 #else
|
|
459 #define type_checking_assert(assertion)
|
|
460 #endif
|
|
461
|
428
|
462 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
463 #undef ERROR_CHECK_BUFPOS
|
440
|
464 #ifdef ERROR_CHECK_BUFPOS
|
|
465 #define bufpos_checking_assert(assertion) assert (assertion)
|
|
466 #else
|
|
467 #define bufpos_checking_assert(assertion)
|
|
468 #endif
|
|
469
|
428
|
470 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
|
|
471 #undef ERROR_CHECK_GC
|
442
|
472 #ifdef ERROR_CHECK_GC
|
|
473 #define gc_checking_assert(assertion) assert (assertion)
|
|
474 #else
|
|
475 #define gc_checking_assert(assertion)
|
|
476 #endif
|
440
|
477
|
428
|
478 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
|
|
479 #undef ERROR_CHECK_MALLOC
|
440
|
480
|
428
|
481 /* Minor sanity checking of the bytecode interpreter. Useful for
|
|
482 debugging the byte compiler. */
|
|
483 #undef ERROR_CHECK_BYTE_CODE
|
|
484
|
442
|
485 /* Minor sanity checking of glyphs, especially subwindows and
|
|
486 widgets. */
|
|
487 #undef ERROR_CHECK_GLYPHS
|
|
488
|
428
|
489 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
490 This is mainly intended for use by developers. */
|
|
491 #undef DEBUG_XEMACS
|
|
492
|
|
493 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
494 determine where XEmacs' memory is going. */
|
|
495 #undef MEMORY_USAGE_STATS
|
|
496
|
460
|
497 /* Define QUANTIFY if using Quantify from Rational Software.
|
428
|
498 This adds some additional calls to control data collection.
|
|
499 It is only intended for use by the developers. */
|
|
500 #undef QUANTIFY
|
|
501
|
460
|
502 /* Define PURIFY if using Purify from Rational Software.
|
428
|
503 It is only intended for use by the developers. */
|
|
504 #undef PURIFY
|
|
505
|
|
506 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
|
|
507 #define XLIB_ILLEGAL_ACCESS 1
|
|
508 #endif
|
|
509
|
|
510 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
511 widget within another program. */
|
|
512 #undef EXTERNAL_WIDGET
|
|
513
|
|
514 /* There are some special-case defines for gcc and lcc. */
|
|
515 #undef USE_GCC
|
|
516 #undef USE_LCC
|
|
517
|
|
518 /* Define this if you want level 2 internationalization compliance
|
|
519 (localized collation and formatting). Generally this should be
|
|
520 defined, unless your system doesn't have the strcoll() and
|
|
521 setlocale() library routines. This really should be (NOT! -mrb)
|
|
522 defined in the appropriate s/ or m/ file. */
|
|
523 #undef I18N2
|
|
524
|
|
525 /* Define this if you want level 3 internationalization compliance
|
|
526 (localized messaging). This will cause a small runtime performance
|
|
527 penalty, as the strings are read from the message catalog(s).
|
|
528 For this you need the gettext() and dgetext() library routines.
|
|
529 WARNING, this code is under construction. */
|
|
530 #undef I18N3
|
|
531
|
|
532 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
533 Requires libDtSvc, which typically must be present at runtime. */
|
|
534 #undef HAVE_CDE
|
|
535
|
|
536 /* Compile in support for OffiX Drag and Drop? */
|
|
537 #undef HAVE_OFFIX_DND
|
|
538
|
|
539 /* Compile in generic Drag'n'Drop API */
|
|
540 #undef HAVE_DRAGNDROP
|
|
541
|
|
542 /* Compile in support for proper handling of WM_COMMAND. */
|
|
543 #undef HAVE_WMCOMMAND
|
|
544
|
|
545 /* Define this if you want Mule support (multi-byte character support).
|
|
546 There may be some performance penalty, although it should be small
|
|
547 if you're working with ASCII files. */
|
|
548 #undef MULE
|
|
549
|
|
550 /* Define this if you want file coding support */
|
|
551 #undef FILE_CODING
|
|
552
|
|
553 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
554 If so, use raw Xlib or higher level Motif interface? */
|
|
555 #undef HAVE_XIM
|
|
556 #undef XIM_XLIB
|
|
557 #undef XIM_MOTIF
|
|
558 #undef USE_XFONTSET
|
|
559
|
|
560 /* Non-XIM input methods for use with Mule. */
|
|
561 #undef HAVE_CANNA
|
|
562 #undef HAVE_WNN
|
|
563 #undef WNN6
|
|
564
|
|
565 /* Enable special GNU Make features in the Makefiles. */
|
|
566 #undef USE_GNU_MAKE
|
|
567
|
442
|
568 /* Debugging development option: Remove inessential but time consuming
|
|
569 actions from happening during build. This saves a lot of time when
|
|
570 you're repeatedly compiling-running-crashing. This (1) doesn't
|
|
571 garbage-collect after loading each file during dumping, and (2)
|
|
572 doesn't automatically rebuild the DOC file. (Remove it by hand to
|
|
573 get it rebuilt.)
|
|
574 */
|
|
575 #undef QUICK_BUILD
|
428
|
576
|
|
577 /* Defined by AC_C_CONST in configure.in */
|
|
578 #undef const
|
|
579
|
434
|
580 /* Allow the source to use standard types. Include these before the
|
|
581 s&m files so that they can use them. */
|
|
582 #undef ssize_t
|
|
583 #undef size_t
|
|
584 #undef pid_t
|
|
585 #undef mode_t
|
|
586 #undef off_t
|
|
587 #undef uid_t
|
|
588 #undef gid_t
|
442
|
589 #undef socklen_t
|
434
|
590
|
428
|
591 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
592 seem to require this, probably because something with the int
|
|
593 definitions isn't right with 64-bit systems. */
|
|
594 #undef USE_UNION_TYPE
|
|
595
|
442
|
596 /* The configuration script may define `opsysfile' to be the name of
|
|
597 the s/...h file that describes your operating system.
|
|
598 The file name is chosen based on the configuration name. */
|
428
|
599
|
|
600 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
601 extern "C" {
|
|
602 #endif
|
442
|
603
|
428
|
604 #undef config_opsysfile
|
442
|
605 #ifdef config_opsysfile
|
428
|
606 #include config_opsysfile
|
442
|
607 #endif
|
428
|
608
|
442
|
609 /* The configuration script may define `machfile' to be the name of
|
|
610 the m/...h file that describes the machine you are using.
|
|
611 The file name is chosen based on the configuration name. */
|
428
|
612
|
|
613 #undef config_machfile
|
442
|
614 #ifdef config_machfile
|
428
|
615 #include config_machfile
|
442
|
616 #endif
|
|
617
|
428
|
618 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
619 }
|
|
620 #endif
|
|
621
|
|
622 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
623 #define SYSTEM_MALLOC
|
|
624 #endif
|
|
625
|
|
626 /* Use the relocating allocator for buffer space? */
|
|
627 #undef REL_ALLOC
|
|
628
|
|
629 /* Define the return type of signal handlers if the s/xxx.h file
|
|
630 did not already do so. */
|
|
631 #define RETSIGTYPE void
|
|
632
|
|
633 /* SIGTYPE is the macro we actually use. */
|
|
634 #ifndef SIGTYPE
|
|
635 #define SIGTYPE RETSIGTYPE
|
|
636 #define SIGRETURN return
|
|
637 #endif
|
|
638
|
|
639 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
640 Currently this is only Solaris 2.x, for x < 6. */
|
|
641 #undef DYNODUMP
|
|
642
|
|
643 /* Compile in support for Sun Sparcworks/WorkShop? */
|
|
644 #undef SUNPRO
|
|
645
|
|
646 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
|
|
647 support for playing sound files. (On Suns, the sound support is
|
|
648 usually found in /usr/demo/SOUND - you may need to install the
|
|
649 "SUNWaudmo" package.) */
|
|
650 #undef HAVE_NATIVE_SOUND
|
|
651 /* Native sound may be provided via soundcard.h, in various directories */
|
442
|
652 #undef SOUNDCARD_H_FILE
|
428
|
653
|
|
654 /* Compile in support for NAS (Network Audio System)?
|
|
655 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
|
656 error handling changes. */
|
|
657 #undef HAVE_NAS_SOUND
|
|
658 #undef NAS_NO_ERROR_JUMP
|
|
659
|
|
660 /* Compile in support for ESD (Enlightened Sound Daemon)? */
|
|
661 #undef HAVE_ESD_SOUND
|
|
662
|
|
663 /* Compile in support for SunPro usage-tracking code? */
|
|
664 #undef USAGE_TRACKING
|
|
665
|
|
666 /* Compile in support for Tooltalk? */
|
|
667 #undef TOOLTALK
|
|
668 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
|
442
|
669 #undef TT_C_H_FILE
|
428
|
670
|
|
671 /* Toolkits used by lwlib for various widgets... */
|
|
672 #undef LWLIB_USES_MOTIF
|
|
673 #undef LWLIB_USES_ATHENA
|
|
674 #undef LWLIB_MENUBARS_LUCID
|
|
675 #undef LWLIB_MENUBARS_MOTIF
|
|
676 #undef LWLIB_SCROLLBARS_LUCID
|
|
677 #undef LWLIB_SCROLLBARS_MOTIF
|
|
678 #undef LWLIB_SCROLLBARS_ATHENA
|
|
679 #undef LWLIB_SCROLLBARS_ATHENA3D
|
|
680 #undef LWLIB_DIALOGS_MOTIF
|
|
681 #undef LWLIB_DIALOGS_ATHENA
|
|
682 #undef LWLIB_DIALOGS_ATHENA3D
|
|
683 #undef LWLIB_TABS_LUCID
|
|
684 #undef LWLIB_WIDGETS_MOTIF
|
|
685 #undef LWLIB_WIDGETS_ATHENA
|
440
|
686 #undef HAVE_ATHENA_3D
|
428
|
687
|
|
688 /* Other things that can be disabled by configure. */
|
|
689 #undef HAVE_MENUBARS
|
|
690 #undef HAVE_SCROLLBARS
|
|
691 #undef HAVE_DIALOGS
|
|
692 #undef HAVE_TOOLBARS
|
|
693 #undef HAVE_WIDGETS
|
|
694
|
|
695
|
|
696 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
697 #define HAVE_POPUPS
|
|
698 #endif
|
|
699
|
|
700 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
701 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
702 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
703 statically linked (as XEmacs must be) because the static version of
|
|
704 libc.a contains the *dynamic* versions of these functions. These
|
|
705 functions don't seem to be called when XEmacs is running, so it's
|
|
706 enough to define stubs for them.
|
|
707
|
|
708 This appears to be fixed in SunOS 4.1.2.
|
|
709
|
|
710 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
711 sometimes reference memory past the end of the string, which can segv.
|
444
|
712 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */
|
428
|
713 #if defined (sparc) && !defined (USG)
|
|
714 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
715 #endif
|
|
716
|
|
717 /* If you turn this flag on, it forces encapsulation in all
|
|
718 circumstances; this can be used to make sure things compile OK
|
|
719 on various systems. */
|
|
720 #undef DEBUG_ENCAPSULATION
|
|
721
|
|
722 /* basic system calls */
|
|
723
|
|
724 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
725 # define ENCAPSULATE_READ
|
|
726 # define ENCAPSULATE_WRITE
|
|
727 #endif
|
|
728 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
|
729 # define ENCAPSULATE_OPEN
|
|
730 #endif
|
|
731 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
732 # define ENCAPSULATE_CLOSE
|
|
733 #endif
|
|
734
|
|
735 /* stdio calls */
|
|
736
|
|
737 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
738 # define ENCAPSULATE_FREAD
|
|
739 # define ENCAPSULATE_FWRITE
|
|
740 #endif
|
|
741 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
|
742 # define ENCAPSULATE_FOPEN
|
|
743 #endif
|
|
744 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
745 # define ENCAPSULATE_FCLOSE
|
|
746 #endif
|
|
747
|
|
748 /* directory calls */
|
|
749
|
|
750 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
|
751 # define ENCAPSULATE_CHDIR
|
|
752 # define ENCAPSULATE_MKDIR
|
|
753 # define ENCAPSULATE_OPENDIR
|
|
754 # define ENCAPSULATE_CLOSEDIR
|
|
755 # define ENCAPSULATE_READDIR
|
|
756 # define ENCAPSULATE_RMDIR
|
|
757
|
|
758 /* file-information calls */
|
|
759
|
|
760 #ifdef HAVE_EACCESS
|
|
761 # define ENCAPSULATE_EACCESS
|
|
762 #endif
|
|
763 # define ENCAPSULATE_ACCESS
|
|
764 # define ENCAPSULATE_LSTAT
|
|
765 # define ENCAPSULATE_READLINK
|
|
766 # define ENCAPSULATE_STAT
|
|
767
|
|
768 /* file-manipulation calls */
|
|
769
|
|
770 # define ENCAPSULATE_CHMOD
|
|
771 # define ENCAPSULATE_CREAT
|
|
772 # define ENCAPSULATE_LINK
|
|
773 # define ENCAPSULATE_RENAME
|
|
774 # define ENCAPSULATE_SYMLINK
|
|
775 # define ENCAPSULATE_UNLINK
|
|
776 # define ENCAPSULATE_EXECVP
|
|
777 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
|
|
778
|
|
779 #ifdef HAVE_CANNA
|
|
780 # define CANNA2
|
|
781 # define CANNA_MULE
|
|
782 # define CANNA_PURESIZE 0
|
|
783 #else /* not CANNA */
|
|
784 # define CANNA_PURESIZE 0
|
|
785 #endif /* not CANNA */
|
|
786
|
|
787 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
788 #define accept Raccept
|
|
789 #define bind Rbind
|
|
790 #define connect Rconnect
|
|
791 #define getsockname Rgetsockname
|
|
792 #define listen Rlisten
|
|
793 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
794
|
|
795 #undef SIZEOF_SHORT
|
|
796 #undef SIZEOF_INT
|
|
797 #undef SIZEOF_LONG
|
|
798 #undef SIZEOF_LONG_LONG
|
|
799 #undef SIZEOF_VOID_P
|
|
800
|
|
801 #ifndef BITS_PER_CHAR
|
|
802 #define BITS_PER_CHAR 8
|
|
803 #endif
|
|
804 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
805 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
806 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
807 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
808 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
|
809
|
442
|
810 /* Use `INLINE_HEADER' to define inline functions in .h files.
|
|
811 Use `inline static' to define inline functions in .c files.
|
|
812 See the Internals manual for examples and more information. */
|
|
813
|
428
|
814 /* Does the keyword `inline' exist? */
|
|
815 #undef inline
|
|
816
|
442
|
817 #if defined (__cplusplus) || ! defined (__GNUC__)
|
|
818 # define INLINE_HEADER inline static
|
|
819 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
|
|
820 # define INLINE_HEADER inline
|
|
821 #else
|
|
822 # define INLINE_HEADER inline extern
|
|
823 #endif
|
428
|
824
|
442
|
825 #ifndef NOT_C_CODE /* Actually means C or C++ */
|
|
826 # if defined (__cplusplus)
|
428
|
827 /* Avoid C++ keywords used as ordinary C identifiers */
|
442
|
828 # define class c_class
|
|
829 # define new c_new
|
|
830 # define this c_this
|
|
831 # define catch c_catch
|
|
832
|
|
833 # define EXTERN_C extern "C"
|
|
834 # else /* C code */
|
|
835 # define EXTERN_C extern
|
|
836 # endif
|
|
837 #endif /* C or C++ */
|
428
|
838
|
|
839 /* Strictly speaking, only int or unsigned int are valid types in a
|
|
840 bitfield. In practice, we would like to use enums as bitfields.
|
|
841 The following should just result in warning avoidance:
|
|
842 warning: nonportable bit-field type */
|
|
843 #ifdef __GNUC__
|
|
844 #define enum_field(enumeration_type) enum enumeration_type
|
|
845 #else
|
|
846 #define enum_field(enumeration_type) unsigned int
|
|
847 #endif
|
|
848
|
|
849 /* We want to avoid saving the signal mask if possible, because
|
|
850 that necessitates a system call. */
|
|
851 #ifdef HAVE_SIGSETJMP
|
|
852 # define SETJMP(x) sigsetjmp (x, 0)
|
|
853 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
854 # define JMP_BUF sigjmp_buf
|
|
855 #else
|
|
856 # define SETJMP(x) setjmp (x)
|
|
857 # define LONGJMP(x, y) longjmp (x, y)
|
|
858 # define JMP_BUF jmp_buf
|
|
859 #endif
|
|
860
|
|
861 /* movemail options */
|
|
862 /* Should movemail use POP3 for mail access? */
|
|
863 #undef MAIL_USE_POP
|
|
864 /* Should movemail use kerberos for POP authentication? */
|
|
865 #undef KERBEROS
|
|
866 /* Should movemail use hesiod for getting POP server host? */
|
|
867 #undef HESIOD
|
|
868 /* Determine type of mail locking. */
|
438
|
869 #undef MAIL_LOCK_LOCKF
|
|
870 #undef MAIL_LOCK_FLOCK
|
|
871 #undef MAIL_LOCK_DOT
|
|
872 #undef MAIL_LOCK_LOCKING
|
|
873 #undef MAIL_LOCK_MMDF
|
428
|
874
|
|
875 #undef PREFIX_USER_DEFINED
|
|
876 #undef EXEC_PREFIX_USER_DEFINED
|
|
877 #undef MODULEDIR_USER_DEFINED
|
|
878 #undef SITEMODULEDIR_USER_DEFINED
|
|
879 #undef DOCDIR_USER_DEFINED
|
|
880 #undef LISPDIR_USER_DEFINED
|
|
881 #undef PACKAGE_PATH_USER_DEFINED
|
|
882 #undef SITELISPDIR_USER_DEFINED
|
|
883 #undef ARCHLIBDIR_USER_DEFINED
|
|
884 #undef ETCDIR_USER_DEFINED
|
|
885 #undef INFODIR_USER_DEFINED
|
|
886 #undef INFOPATH_USER_DEFINED
|
|
887
|
|
888 #undef PDUMP
|
|
889
|
|
890 #endif /* _SRC_CONFIG_H_ */
|