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