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