0
|
1 /* XEmacs site configuration template file. -*- C -*-
|
|
2 Copyright (C) 1986, 1991, 1992, 1993, 1994 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
|
149
|
21 /* Significantly divergent from FSF. */
|
0
|
22
|
|
23 /* No code in XEmacs #includes config.h twice, but some of the code
|
149
|
24 intended to work with other packages as well (like gmalloc.c)
|
0
|
25 think they can include it as many times as they like. */
|
163
|
26 #ifndef _SRC_CONFIG_H_
|
|
27 #define _SRC_CONFIG_H_
|
0
|
28
|
149
|
29 /* alloca twiddling belongs in one place, not the s&m headers
|
|
30 AIX requires this to be the first thing in the file. */
|
|
31 #undef HAVE_ALLOCA_H
|
|
32
|
|
33 #ifndef NOT_C_CODE
|
|
34 #ifdef __GNUC__
|
|
35 #undef alloca
|
|
36 #define alloca __builtin_alloca
|
|
37 #elif defined(_AIX)
|
|
38 #pragma alloca
|
|
39 #elif HAVE_ALLOCA_H
|
|
40 #include <alloca.h>
|
|
41 #endif
|
|
42 #endif /* NOT C */
|
|
43
|
0
|
44
|
70
|
45 /* Use this to add code in a structured way to FSF-maintained source
|
|
46 files so as to make it obvious where XEmacs changes are. */
|
|
47 #define XEMACS
|
0
|
48
|
163
|
49 /* Allow s&m files to differentiate OS versions without having
|
|
50 multiple files to maintain. */
|
|
51 #undef OS_RELEASE
|
|
52
|
|
53 /* The configuration name. This is used as the install directory name
|
|
54 for the lib-src programs. */
|
|
55 #undef EMACS_CONFIGURATION
|
|
56
|
173
|
57 /* The configuration options. This is exported to Lisp. */
|
|
58 #undef EMACS_CONFIG_OPTIONS
|
|
59
|
163
|
60 /* The version info from version.sh. Used in #pragma ident in emacs.c */
|
|
61 #undef EMACS_MAJOR_VERSION
|
|
62 #undef EMACS_MINOR_VERSION
|
|
63 #undef EMACS_BETA_VERSION
|
|
64 #undef EMACS_VERSION
|
|
65 #undef XEMACS_CODENAME
|
|
66
|
207
|
67 /* Make all functions available on AIX. See AC_AIX. */
|
|
68 #undef _ALL_SOURCE
|
163
|
69
|
243
|
70 /* Make all functions available on GNU libc systems. See features.h. */
|
|
71 #undef _GNU_SOURCE
|
|
72
|
163
|
73 /* Used to identify the XEmacs version in stack traces. */
|
177
|
74 #undef STACK_TRACE_EYE_CATCHER
|
163
|
75
|
267
|
76 /* Allow the configurer to specify if she wants site-lisp. */
|
|
77 #undef INHIBIT_SITE_LISP
|
173
|
78
|
167
|
79 /* This will be removed in 19.15. */
|
|
80 /* Hah! Try 20.3 ... */
|
|
81 /* Hah! Try never ... */
|
169
|
82 /* If at first you don't succeed, try, try again. */
|
|
83 /* #define LOSING_BYTECODE */
|
163
|
84
|
261
|
85 /* Undefine on systems which don't have processes */
|
|
86 #undef HAVE_UNIX_PROCESSES
|
|
87
|
70
|
88 /* Does XEmacs support floating-point numbers? */
|
0
|
89 #undef LISP_FLOAT_TYPE
|
|
90
|
255
|
91 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
|
0
|
92 #undef GNU_MALLOC
|
|
93
|
259
|
94 /* Define if you are using the GNU C Library. -- experimental. */
|
255
|
95 #undef DOUG_LEA_MALLOC
|
|
96
|
267
|
97 /* Define if you are using libmcheck.a from the GNU C Library. */
|
|
98 #undef HAVE_LIBMCHECK
|
|
99
|
259
|
100 /* Define if you are using dlmalloc from the Linux C library. */
|
|
101 #undef _NO_MALLOC_WARNING_
|
|
102
|
149
|
103 /* Use the system malloc? */
|
0
|
104 #undef USE_SYSTEM_MALLOC
|
|
105
|
255
|
106 /* Use a debugging malloc? -- experimental */
|
177
|
107 #undef USE_DEBUG_MALLOC
|
|
108
|
149
|
109 /* Compile in TTY support? */
|
0
|
110 #undef HAVE_TTY
|
|
111
|
239
|
112 /* Compile in support for MS windows? */
|
|
113 #undef HAVE_MS_WINDOWS
|
|
114
|
149
|
115 /* Compile in support for the X window system? */
|
0
|
116 #undef HAVE_X_WINDOWS
|
|
117
|
163
|
118 /* Defines for building X applications */
|
74
|
119 #ifdef HAVE_X_WINDOWS
|
163
|
120 /* The following will be defined if xmkmf thinks they are necessary */
|
|
121 #undef SVR4
|
|
122 #undef SYSV
|
207
|
123 #undef AIXV3
|
163
|
124 #undef _POSIX_SOURCE
|
|
125 #undef _BSD_SOURCE
|
|
126 #undef X_LOCALE
|
|
127 #undef NARROWPROTO
|
|
128 /* The following should always be defined, no matter what xmkmf thinks. */
|
74
|
129 #ifndef NeedFunctionPrototypes
|
|
130 #define NeedFunctionPrototypes 1
|
|
131 #endif
|
157
|
132 #ifndef FUNCPROTO
|
|
133 #define FUNCPROTO 15
|
|
134 #endif
|
159
|
135 #endif /* HAVE_X_WINDOWS */
|
74
|
136
|
70
|
137 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
239
|
138 #if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
|
0
|
139 #define HAVE_WINDOW_SYSTEM
|
|
140 #endif
|
|
141
|
70
|
142 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
0
|
143 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY)
|
|
144 #define HAVE_UNIXOID_EVENT_LOOP
|
|
145 #endif
|
|
146
|
70
|
147 /* Are we using XFree386? */
|
0
|
148 #undef HAVE_XFREE386
|
|
149
|
|
150 #undef THIS_IS_X11R4
|
|
151 #undef THIS_IS_X11R5
|
|
152 #undef THIS_IS_X11R6
|
|
153
|
265
|
154 /* Where do we find bitmaps? */
|
|
155 #undef BITMAPDIR
|
|
156
|
70
|
157 /* USER_FULL_NAME returns a string that is the user's full name.
|
|
158 It can assume that the variable `pw' points to the password file
|
|
159 entry for this user.
|
0
|
160
|
70
|
161 At some sites, the pw_gecos field contains the user's full name.
|
|
162 If neither this nor any other field contains the right thing, use
|
|
163 pw_name, giving the user's login name, since that is better than
|
|
164 nothing. */
|
0
|
165 #define USER_FULL_NAME pw->pw_gecos
|
|
166
|
|
167 /* Define AMPERSAND_FULL_NAME if you use the convention
|
70
|
168 that & in the full name stands for the login id. */
|
0
|
169 #undef AMPERSAND_FULL_NAME
|
|
170
|
|
171 /* Some things figured out by the configure script, grouped as they are in
|
70
|
172 configure.in. */
|
267
|
173 #undef HAVE_MCHECK_H
|
0
|
174 #undef HAVE_MACH_MACH_H
|
|
175 #undef HAVE_SYS_STROPTS_H
|
|
176 #undef HAVE_SYS_TIMEB_H
|
|
177 #undef HAVE_SYS_TIME_H
|
|
178 #undef HAVE_UNISTD_H
|
|
179 #undef HAVE_UTIME_H
|
|
180 #undef HAVE_SYS_WAIT_H
|
70
|
181 #undef HAVE_LIBINTL_H
|
0
|
182 #undef HAVE_LIBGEN_H
|
|
183 #undef HAVE_LOCALE_H
|
163
|
184 #undef HAVE_FCNTL_H
|
169
|
185 #undef HAVE_ULIMIT_H
|
70
|
186 #undef HAVE_X11_XLOCALE_H
|
0
|
187 #undef HAVE_LINUX_VERSION_H
|
149
|
188 #undef HAVE_INTTYPES_H
|
239
|
189 #undef HAVE_SYS_UN_H
|
251
|
190 #undef HAVE_A_OUT_H
|
0
|
191 #undef STDC_HEADERS
|
|
192 #undef TIME_WITH_SYS_TIME
|
|
193 #undef WORDS_BIGENDIAN
|
70
|
194 #undef HAVE_VFORK_H
|
|
195 #undef HAVE_KSTAT_H
|
|
196 #undef HAVE_SYS_PSTAT_H
|
|
197 #undef vfork
|
0
|
198
|
|
199 #undef HAVE_LONG_FILE_NAMES
|
|
200
|
173
|
201 /* Use lock files to detect multiple edits of the same file? */
|
|
202 #undef CLASH_DETECTION
|
0
|
203
|
265
|
204 /* Have shared library support */
|
|
205 #undef HAVE_DLOPEN
|
|
206 #undef HAVE_SHL_LOAD
|
|
207 #undef HAVE_DLD_INIT
|
245
|
208 #undef HAVE_SHLIB
|
|
209
|
70
|
210 #undef HAVE_LIBKSTAT
|
149
|
211 #undef HAVE_LIBINTL
|
0
|
212 #undef HAVE_LIBDNET
|
|
213 #undef HAVE_LIBRESOLV
|
|
214
|
70
|
215 /* Is `sys_siglist' declared by <signal.h>? */
|
0
|
216 #undef SYS_SIGLIST_DECLARED
|
|
217
|
70
|
218 /* Is `struct utimbuf' declared by <utime.h>? */
|
0
|
219 #undef HAVE_STRUCT_UTIMBUF
|
|
220
|
70
|
221 /* Is `struct timeval' declared by <sys/time.h>? */
|
0
|
222 #undef HAVE_TIMEVAL
|
|
223
|
|
224
|
|
225 #undef TM_IN_SYS_TIME
|
|
226 #undef HAVE_TM_ZONE
|
|
227 #undef HAVE_TZNAME
|
|
228
|
70
|
229 /* Is `h_errno' declared by <netdb.h>? */
|
0
|
230 #undef HAVE_H_ERRNO
|
|
231
|
70
|
232 /* Does `localtime' cache TZ? */
|
0
|
233 #undef LOCALTIME_CACHE
|
|
234
|
70
|
235 /* Can `gettimeofday' accept two arguments? */
|
0
|
236 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
237
|
|
238 #undef HAVE_MMAP
|
|
239 #undef HAVE_STRCOLL
|
163
|
240 #undef HAVE_GETPGRP
|
|
241 #undef GETPGRP_VOID
|
0
|
242
|
|
243 #undef SIZEOF_SHORT
|
|
244 #undef SIZEOF_INT
|
|
245 #undef SIZEOF_LONG
|
163
|
246 #undef SIZEOF_LONG_LONG
|
|
247 #undef SIZEOF_VOID_P
|
0
|
248
|
243
|
249 #undef HAVE_INVERSE_HYPERBOLIC
|
0
|
250
|
|
251 #undef HAVE_CBRT
|
|
252 #undef HAVE_CLOSEDIR
|
|
253 #undef HAVE_DUP2
|
|
254 #undef HAVE_EACCESS
|
|
255 #undef HAVE_FMOD
|
|
256 #undef HAVE_FPATHCONF
|
|
257 #undef HAVE_FREXP
|
|
258 #undef HAVE_FTIME
|
|
259 #undef HAVE_GETHOSTNAME
|
|
260 #undef HAVE_GETPAGESIZE
|
|
261 #undef HAVE_GETTIMEOFDAY
|
|
262 #undef HAVE_GETWD
|
72
|
263 #undef HAVE_GETCWD
|
0
|
264 #undef HAVE_LOGB
|
|
265 #undef HAVE_LRAND48
|
|
266 #undef HAVE_MATHERR
|
|
267 #undef HAVE_MKDIR
|
|
268 #undef HAVE_MKTIME
|
|
269 #undef HAVE_PERROR
|
|
270 #undef HAVE_POLL
|
|
271 #undef HAVE_RANDOM
|
|
272 #undef HAVE_REALPATH
|
|
273 #undef HAVE_RENAME
|
|
274 #undef HAVE_RES_INIT
|
|
275 #undef HAVE_RINT
|
|
276 #undef HAVE_RMDIR
|
|
277 #undef HAVE_SELECT
|
|
278 #undef HAVE_SETITIMER
|
|
279 #undef HAVE_SETPGID
|
|
280 #undef HAVE_SETSID
|
|
281 #undef HAVE_SIGBLOCK
|
|
282 #undef HAVE_SIGHOLD
|
|
283 #undef HAVE_SIGPROCMASK
|
|
284 #undef HAVE_SIGSETJMP
|
265
|
285 #undef HAVE_SNPRINTF
|
0
|
286 #undef HAVE_STRCASECMP
|
|
287 #undef HAVE_STRERROR
|
|
288 #undef HAVE_TZSET
|
169
|
289 #undef HAVE_ULIMIT
|
167
|
290 #undef HAVE_USLEEP
|
0
|
291 #undef HAVE_UTIMES
|
|
292 #undef HAVE_WAITPID
|
265
|
293 #undef HAVE_VSNPRINTF
|
0
|
294 #undef HAVE_SOCKETS
|
|
295 #undef HAVE_SOCKADDR_SUN_LEN
|
259
|
296 #undef HAVE_MULTICAST
|
0
|
297 #undef HAVE_SYSVIPC
|
|
298
|
|
299 #undef SYSV_SYSTEM_DIR
|
|
300 #undef NONSYSTEM_DIR_LIBRARY
|
|
301
|
|
302 #undef HAVE_TERMIOS
|
|
303 #undef HAVE_TERMIO
|
175
|
304 #undef NO_TERMIO
|
|
305 #undef SIGNALS_VIA_CHARACTERS
|
0
|
306
|
|
307 #undef NLIST_STRUCT
|
|
308
|
149
|
309 /* Compile in support for SOCKS? */
|
0
|
310 #undef HAVE_SOCKS
|
|
311
|
149
|
312 /* Compile in support for X pixmaps via the `xpm' library? */
|
0
|
313 #undef HAVE_XPM
|
|
314
|
149
|
315 /* Compile in support for "X faces" via the `compface' library?
|
|
316 This enables graphical display of X-face headers in mail/news messages */
|
0
|
317 #undef HAVE_XFACE
|
|
318
|
251
|
319 /* Compile in support for JPEG images */
|
|
320 #undef HAVE_JPEG
|
|
321
|
|
322 /* Compile in support for TIFF images */
|
|
323 #undef HAVE_TIFF
|
|
324
|
|
325 /* Compile in support for GIF images */
|
|
326 #undef HAVE_GIF
|
|
327
|
|
328 /* Compile in support for PNG images */
|
|
329 #undef HAVE_PNG
|
0
|
330
|
70
|
331 /* Do you have the Xmu library?
|
|
332 This should always be the case except on losing HP-UX systems. */
|
0
|
333 #undef HAVE_XMU
|
|
334
|
149
|
335 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
|
0
|
336 #undef HAVE_DBM
|
|
337
|
149
|
338 /* Compile in support for Berkeley DB style databases? May require libdb. */
|
0
|
339 #undef HAVE_BERKELEY_DB
|
149
|
340 /* Full #include file path for Berkeley DB's db.h */
|
|
341 #undef DB_H_PATH
|
0
|
342
|
149
|
343 /* Do we have either DBM or Berkeley DB database support? */
|
|
344 #undef HAVE_DATABASE
|
0
|
345
|
259
|
346 /* Do we have LDAP support? */
|
|
347 #undef HAVE_LDAP
|
|
348 /* Do we have the LDAP library of the University of Michigan ? */
|
|
349 #undef HAVE_UMICH_LDAP
|
|
350 /* Do we have Netscape LDAP SDK library */
|
|
351 #undef HAVE_NS_LDAP
|
|
352
|
70
|
353 /* Do you have the Xauth library present? This will add some extra
|
|
354 functionality to gnuserv. */
|
0
|
355 #undef HAVE_XAUTH
|
|
356
|
149
|
357 /* Compile in support for gpm (General Purpose Mouse)? */
|
|
358 #undef HAVE_GPM
|
0
|
359
|
149
|
360 /* Compile in support for ncurses? */
|
|
361 #undef HAVE_NCURSES
|
|
362 /* Full #include file paths for ncurses' curses.h and term.h. */
|
|
363 #undef CURSES_H_PATH
|
|
364 #undef TERM_H_PATH
|
0
|
365
|
|
366 #define LOWTAGS
|
|
367
|
70
|
368 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
|
0
|
369 If the assertion fails, assert_failed() will be called. This is
|
|
370 recommended for general use because it gives more info about the crash
|
|
371 than just the abort() message. Too many people "Can't find the corefile"
|
70
|
372 or have limit-ed core dumps out of existence. */
|
0
|
373 #undef USE_ASSERTIONS
|
|
374
|
|
375 /* Define one or more of the following if you want lots of extra checks
|
|
376 (e.g. structure validation) compiled in. These should be turned
|
|
377 on during the beta-test cycle. */
|
|
378
|
|
379 /* Check the entire extent structure of a buffer each time an extent
|
|
380 change is done, and do other extent-related checks. */
|
|
381 #undef ERROR_CHECK_EXTENTS
|
|
382 /* Make sure that all X... macros are dereferencing the correct type,
|
|
383 and that all XSET... macros (as much as possible) are setting the
|
|
384 correct type of structure. Highly recommended for all
|
|
385 development work. */
|
|
386 #undef ERROR_CHECK_TYPECHECK
|
|
387 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
388 #undef ERROR_CHECK_BUFPOS
|
149
|
389 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
|
0
|
390 #undef ERROR_CHECK_GC
|
149
|
391 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
|
0
|
392 #undef ERROR_CHECK_MALLOC
|
|
393
|
|
394 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
395 This is mainly intended for use by developers. */
|
|
396 #undef DEBUG_XEMACS
|
|
397
|
|
398 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
149
|
399 determine where XEmacs' memory is going. */
|
0
|
400 #undef MEMORY_USAGE_STATS
|
|
401
|
149
|
402 /* Define QUANTIFY if using Quantify from Pure/Atria Software.
|
|
403 This adds some additional calls to control data collection.
|
|
404 It is only intended for use by the developers. */
|
0
|
405 #undef QUANTIFY
|
|
406
|
|
407 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
149
|
408 widget within another program. */
|
0
|
409 #undef EXTERNAL_WIDGET
|
|
410
|
|
411 /* There are some special-case defines for gcc and lcc. */
|
|
412 #undef USE_GCC
|
|
413 #undef USE_LCC
|
|
414
|
|
415 /* Allow the user to override the default value of PURESIZE at configure
|
|
416 time. This must come before we include the sys files in order for
|
|
417 it to be able to override any changes in them. */
|
104
|
418 #undef RAW_PURESIZE
|
0
|
419
|
70
|
420 /* Define this if you want level 2 internationalization compliance
|
|
421 (localized collation and formatting). Generally this should be
|
149
|
422 defined, unless your system doesn't have the strcoll() and
|
|
423 setlocale() library routines. This really should be (NOT! -mrb)
|
|
424 defined in the appropriate s/ or m/ file. */
|
70
|
425 #undef I18N2
|
0
|
426
|
70
|
427 /* Define this if you want level 3 internationalization compliance
|
|
428 (localized messaging). This will cause a small runtime performance
|
|
429 penalty, as the strings are read from the message catalog(s).
|
|
430 For this you need the gettext() and dgetext() library routines.
|
|
431 WARNING, this code is under construction. */
|
|
432 #undef I18N3
|
|
433
|
149
|
434 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
435 Requires libDtSvc, which typically must be present at runtime. */
|
0
|
436 #undef HAVE_CDE
|
|
437
|
207
|
438 /* Compile in support for OffiX Drag and Drop? */
|
2
|
439 #undef HAVE_OFFIX_DND
|
|
440
|
179
|
441 /* Compile in support for proper session-management. */
|
|
442 #undef HAVE_SESSION
|
177
|
443
|
70
|
444 /* Define this if you want Mule support (multi-byte character support).
|
|
445 There may be some performance penalty, although it should be small
|
|
446 if you're working with ASCII files. */
|
|
447 #undef MULE
|
|
448
|
259
|
449 /* Define this if you want file coding support */
|
|
450 #undef FILE_CODING
|
251
|
451
|
70
|
452 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
453 If so, use raw Xlib or higher level Motif interface? */
|
|
454 #undef HAVE_XIM
|
|
455 #undef XIM_XLIB
|
|
456 #undef XIM_MOTIF
|
177
|
457 #undef USE_XFONTSET
|
70
|
458
|
|
459 /* Non-XIM input methods for use with Mule. */
|
|
460 #undef HAVE_CANNA
|
|
461 #undef HAVE_WNN
|
98
|
462 #undef WNN6
|
70
|
463
|
149
|
464 /* Enable special GNU Make features in the Makefiles. */
|
0
|
465 #undef USE_GNU_MAKE
|
|
466
|
70
|
467 /* Debugging option: Don't automatically rebuild the DOC file.
|
|
468 This saves a lot of time when you're repeatedly
|
0
|
469 compiling-running-crashing. */
|
|
470 #undef NO_DOC_FILE
|
|
471
|
70
|
472 /* To eliminate use of `const' in the XEmacs sources,
|
|
473 do `#define CONST_IS_LOSING' */
|
0
|
474 #undef CONST_IS_LOSING
|
|
475
|
|
476 # undef CONST
|
|
477 # ifdef CONST_IS_LOSING
|
|
478 # define CONST
|
|
479 # else
|
|
480 # define CONST const
|
|
481 # endif /* CONST */
|
|
482
|
|
483 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
484 seem to require this, probably because something with the int
|
|
485 definitions isn't right with 64-bit systems.
|
|
486
|
70
|
487 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.) */
|
0
|
488 #undef NO_UNION_TYPE
|
|
489
|
257
|
490 /* The next two options are turned on by --with-gung=yes */
|
|
491 /* If defined, use a minimal number of tagbits. This allows usage of more
|
|
492 advanced versions of malloc (like the Doug Lea new GNU malloc) and larger
|
|
493 integers. */
|
|
494 #undef USE_MINIMAL_TAGBITS
|
|
495
|
|
496 /* #### Document me. */
|
|
497 #undef USE_INDEXED_LRECORD_IMPLEMENTATION
|
|
498
|
0
|
499 /* The configuration script defines opsysfile to be the name of the
|
70
|
500 s/...h file that describes the system type you are using.
|
|
501 The file is chosen based on the configuration name you give.
|
0
|
502
|
|
503 See the file ../etc/MACHINES for a list of systems and the
|
|
504 configuration names to use for them.
|
|
505
|
70
|
506 See s/template.h for documentation on writing s/...h files. */
|
185
|
507
|
|
508 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
509 extern "C" {
|
|
510 #endif
|
149
|
511 #undef config_opsysfile
|
0
|
512 #include config_opsysfile
|
185
|
513 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
514 }
|
|
515 #endif
|
0
|
516
|
|
517 /* The configuration script defines machfile to be the name of the
|
|
518 m/...h file that describes the machine you are using. The file is
|
|
519 chosen based on the configuration name you give.
|
|
520
|
|
521 See the file ../etc/MACHINES for a list of machines and the
|
|
522 configuration names to use for them.
|
|
523
|
70
|
524 See m/template.h for documentation on writing m/...h files. */
|
0
|
525 #undef config_machfile
|
|
526 #include config_machfile
|
|
527
|
|
528 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
529 #define SYSTEM_MALLOC
|
|
530 #endif
|
|
531
|
149
|
532 /* Use the relocating allocator for buffer space? */
|
0
|
533 #undef REL_ALLOC
|
|
534
|
149
|
535 /* Define the return type of signal handlers if the s/xxx.h file
|
70
|
536 did not already do so. */
|
0
|
537 #define RETSIGTYPE void
|
|
538
|
70
|
539 /* SIGTYPE is the macro we actually use. */
|
0
|
540 #ifndef SIGTYPE
|
|
541 #define SIGTYPE RETSIGTYPE
|
|
542 #define SIGRETURN return
|
|
543 #endif
|
|
544
|
163
|
545 /* Allow the source to use standard types */
|
|
546 #undef size_t
|
|
547 #undef pid_t
|
|
548 #undef mode_t
|
|
549 #undef off_t
|
|
550 #undef uid_t
|
|
551 #undef gid_t
|
|
552
|
0
|
553 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
149
|
554 Currently this is only Solaris 2.x, for x < 6. */
|
0
|
555 #undef DYNODUMP
|
|
556
|
149
|
557 /* Compile in support for Sun Sparcworks/WorkShop? */
|
0
|
558 #undef SUNPRO
|
|
559
|
149
|
560 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
|
|
561 support for playing sound files. (On Suns, the sound support is
|
|
562 usually found in /usr/demo/SOUND - you may need to install the
|
|
563 "SUNWaudmo" package.) */
|
0
|
564 #undef HAVE_NATIVE_SOUND
|
149
|
565 /* Native sound may be provided via soundcard.h, in various directories */
|
|
566 #undef SOUNDCARD_H_PATH
|
0
|
567
|
149
|
568 /* Compile in support for NAS (Network Audio System)?
|
|
569 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
70
|
570 error handling changes. */
|
0
|
571 #undef HAVE_NAS_SOUND
|
|
572 #undef NAS_NO_ERROR_JUMP
|
|
573
|
149
|
574 /* Compile in support for SunPro usage-tracking code? */
|
0
|
575 #undef USAGE_TRACKING
|
|
576
|
149
|
577 /* Compile in support for Tooltalk? */
|
0
|
578 #undef TOOLTALK
|
149
|
579 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
|
|
580 #undef TT_C_H_PATH
|
0
|
581
|
149
|
582 /* Toolkits used by lwlib for various widgets... */
|
0
|
583 #undef LWLIB_USES_MOTIF
|
82
|
584 #undef LWLIB_USES_ATHENA
|
0
|
585 #undef LWLIB_MENUBARS_LUCID
|
|
586 #undef LWLIB_MENUBARS_MOTIF
|
|
587 #undef LWLIB_SCROLLBARS_LUCID
|
|
588 #undef LWLIB_SCROLLBARS_MOTIF
|
|
589 #undef LWLIB_SCROLLBARS_ATHENA
|
82
|
590 #undef LWLIB_SCROLLBARS_ATHENA3D
|
0
|
591 #undef LWLIB_DIALOGS_MOTIF
|
|
592 #undef LWLIB_DIALOGS_ATHENA
|
82
|
593 #undef LWLIB_DIALOGS_ATHENA3D
|
0
|
594
|
|
595 /* Other things that can be disabled by configure. */
|
|
596 #undef HAVE_MENUBARS
|
|
597 #undef HAVE_SCROLLBARS
|
|
598 #undef HAVE_DIALOGS
|
|
599 #undef HAVE_TOOLBARS
|
|
600
|
|
601
|
|
602 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
603 #define HAVE_POPUPS
|
|
604 #endif
|
|
605
|
|
606 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
607 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
608 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
609 statically linked (as XEmacs must be) because the static version of
|
|
610 libc.a contains the *dynamic* versions of these functions. These
|
149
|
611 functions don't seem to be called when XEmacs is running, so it's
|
0
|
612 enough to define stubs for them.
|
|
613
|
|
614 This appears to be fixed in SunOS 4.1.2.
|
|
615
|
|
616 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
617 sometimes reference memory past the end of the string, which can segv.
|
70
|
618 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3. */
|
0
|
619 #if defined (sparc) && !defined (USG)
|
|
620 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
621 #endif
|
|
622
|
|
623 /* If you turn this flag on, it forces encapsulation in all
|
|
624 circumstances; this can be used to make sure things compile OK
|
|
625 on various systems. */
|
|
626 #define DEBUG_ENCAPSULATION
|
|
627
|
|
628 /* basic system calls */
|
|
629
|
|
630 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
631 # define ENCAPSULATE_READ
|
|
632 # define ENCAPSULATE_WRITE
|
|
633 #endif
|
70
|
634 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
635 # define ENCAPSULATE_OPEN
|
|
636 #endif
|
|
637 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
638 # define ENCAPSULATE_CLOSE
|
|
639 #endif
|
|
640
|
|
641 /* stdio calls */
|
|
642
|
|
643 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
644 # define ENCAPSULATE_FREAD
|
|
645 # define ENCAPSULATE_FWRITE
|
|
646 #endif
|
70
|
647 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
648 # define ENCAPSULATE_FOPEN
|
|
649 #endif
|
|
650 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
651 # define ENCAPSULATE_FCLOSE
|
|
652 #endif
|
|
653
|
|
654 /* directory calls */
|
|
655
|
70
|
656 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
657 # define ENCAPSULATE_CHDIR
|
|
658 # define ENCAPSULATE_MKDIR
|
|
659 # define ENCAPSULATE_OPENDIR
|
|
660 # define ENCAPSULATE_READDIR
|
|
661 # define ENCAPSULATE_RMDIR
|
|
662
|
|
663 /* file-information calls */
|
|
664
|
2
|
665 #ifdef HAVE_EACCESS
|
|
666 # define ENCAPSULATE_EACCESS
|
|
667 #endif
|
0
|
668 # define ENCAPSULATE_ACCESS
|
|
669 # define ENCAPSULATE_LSTAT
|
|
670 # define ENCAPSULATE_READLINK
|
|
671 # define ENCAPSULATE_STAT
|
|
672
|
|
673 /* file-manipulation calls */
|
|
674
|
|
675 # define ENCAPSULATE_CHMOD
|
|
676 # define ENCAPSULATE_CREAT
|
|
677 # define ENCAPSULATE_LINK
|
|
678 # define ENCAPSULATE_RENAME
|
|
679 # define ENCAPSULATE_SYMLINK
|
|
680 # define ENCAPSULATE_UNLINK
|
70
|
681 # define ENCAPSULATE_EXECVP
|
|
682 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
|
|
683
|
|
684 #ifdef HAVE_CANNA
|
|
685 # define CANNA2
|
|
686 # define CANNA_MULE
|
|
687 # define CANNA_PURESIZE 0
|
|
688 #else /* not CANNA */
|
|
689 # define CANNA_PURESIZE 0
|
|
690 #endif /* not CANNA */
|
0
|
691
|
|
692 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
|
|
693 #define HAVE_FEP
|
|
694 #endif
|
|
695
|
|
696 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
697 #define accept Raccept
|
|
698 #define bind Rbind
|
|
699 #define connect Rconnect
|
|
700 #define getsockname Rgetsockname
|
|
701 #define listen Rlisten
|
|
702 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
703
|
|
704 #ifndef SHORTBITS
|
|
705 #define SHORTBITS (8 * SIZEOF_SHORT)
|
|
706 #endif
|
|
707 #ifndef INTBITS
|
|
708 #define INTBITS (8 * SIZEOF_INT)
|
|
709 #endif
|
|
710 #ifndef LONGBITS
|
|
711 #define LONGBITS (8 * SIZEOF_LONG)
|
|
712 #endif
|
|
713
|
157
|
714 #ifndef NOT_C_CODE
|
155
|
715 /* Does the keyword `inline' exist? */
|
|
716 #undef HAVE_INLINE
|
|
717 #undef inline
|
|
718
|
157
|
719 # ifdef HAVE_INLINE
|
|
720 # ifdef __GNUC__
|
|
721 # ifdef DONT_EXTERN_INLINE_FUNCTIONS
|
|
722 # define INLINE inline
|
|
723 # else
|
|
724 # define INLINE extern inline
|
|
725 # endif
|
0
|
726 # else
|
157
|
727 # define INLINE static inline
|
|
728 # endif /* __GNUC__ */
|
0
|
729 # else
|
157
|
730 # define INLINE static
|
|
731 # endif /* HAVE_INLINE */
|
|
732 #endif /* C code */
|
0
|
733
|
|
734 /* We want to avoid saving the signal mask if possible, because
|
|
735 that necessitates a system call. */
|
|
736 #ifdef HAVE_SIGSETJMP
|
|
737 # define SETJMP(x) sigsetjmp (x, 0)
|
|
738 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
739 # define JMP_BUF sigjmp_buf
|
|
740 #else
|
|
741 # define SETJMP(x) setjmp (x)
|
|
742 # define LONGJMP(x, y) longjmp (x, y)
|
|
743 # define JMP_BUF jmp_buf
|
|
744 #endif
|
|
745
|
118
|
746 /* movemail options */
|
149
|
747 /* Should movemail use POP3 for mail access? */
|
118
|
748 #undef MAIL_USE_POP
|
149
|
749 /* Should movemail use kerberos for POP authentication? */
|
118
|
750 #undef KERBEROS
|
149
|
751 /* Should movemail use hesiod for getting POP server host? */
|
118
|
752 #undef HESIOD
|
149
|
753 /* Determine type of mail locking. */
|
|
754 /* Play preprocessor games so that configure options override s&m files */
|
|
755 #undef REAL_MAIL_USE_LOCKF
|
|
756 #undef REAL_MAIL_USE_FLOCK
|
|
757 #undef MAIL_USE_LOCKF
|
|
758 #undef MAIL_USE_FLOCK
|
|
759 #ifdef REAL_MAIL_USE_FLOCK
|
|
760 #define MAIL_USE_FLOCK
|
|
761 #endif
|
|
762 #ifdef REAL_MAIL_USE_LOCKF
|
|
763 #define MAIL_USE_LOCKF
|
|
764 #endif
|
118
|
765
|
185
|
766 #endif /* _SRC_CONFIG_H_ */
|