695312ab9d6ba26d7b97943aee972ae950d7587d
[chise/xemacs-chise.git-] / 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
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
37 #elif defined __DECC
38 #include <alloca.h>
39 #pragma intrinsic(alloca)
40 #elif defined HAVE_ALLOCA_H
41 #include <alloca.h>
42 #elif defined(_AIX)
43 #pragma alloca
44 #elif ! defined (alloca)
45 void *alloca ();
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
53 /* Program name */
54 #undef EMACS_PROGNAME
55
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
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
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
94 /* Make all functions available on Solaris 2 systems. */
95 #undef __EXTENSIONS__
96
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
178 /* XFree86 has a different prototype for this function */
179 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK
180 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
181
182 #undef THIS_IS_X11R4
183 #undef THIS_IS_X11R5
184 #undef THIS_IS_X11R6
185
186 #undef HAVE_XCONVERTCASE
187
188 #undef HAVE_BALLOON_HELP
189
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
210 #undef HAVE_A_OUT_H
211 #undef HAVE_ELF_H
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
217 #undef HAVE_MACH_MACH_H
218 #undef HAVE_SYS_PARAM_H
219 #undef HAVE_SYS_PSTAT_H
220 #undef HAVE_SYS_TIME_H
221 #undef HAVE_SYS_TIMEB_H
222 #undef HAVE_SYS_UN_H
223 #undef HAVE_ULIMIT_H
224 #undef HAVE_UNISTD_H
225 #undef HAVE_UTIME_H
226
227 #undef HAVE_SYS_WAIT_H
228 #undef HAVE_LIBINTL_H
229 #undef HAVE_X11_XLOCALE_H
230 #undef STDC_HEADERS
231 #undef TIME_WITH_SYS_TIME
232 #undef WORDS_BIGENDIAN
233 #undef HAVE_VFORK_H
234 #undef vfork
235
236 #undef HAVE_LONG_FILE_NAMES
237
238 /* Use lock files to detect multiple edits of the same file? */
239 #undef CLASH_DETECTION
240
241 /* Have shared library support */
242 #undef HAVE_DLOPEN
243 #undef HAVE_DLERROR
244 #undef HAVE__DLERROR
245 #undef HAVE_SHL_LOAD
246 #undef HAVE_DLD_INIT
247 #undef HAVE_SHLIB
248
249 #undef HAVE_LIBINTL
250 #undef HAVE_LIBDNET
251 #undef HAVE_LIBRESOLV
252
253 /* Is `sys_siglist' declared by <signal.h>? */
254 #undef SYS_SIGLIST_DECLARED
255
256 /* Is `struct utimbuf' declared by <utime.h>? */
257 #undef HAVE_STRUCT_UTIMBUF
258
259 /* Is `struct timeval' declared by <sys/time.h>? */
260 #undef HAVE_TIMEVAL
261
262
263 #undef TM_IN_SYS_TIME
264 #undef HAVE_TM_ZONE
265 #undef HAVE_TZNAME
266
267 /* For `getloadavg' provided by system */
268 #undef HAVE_GETLOADAVG
269 #undef HAVE_SYS_LOADAVG_H
270 /* For implementing `getloadavg' ourselves */
271 #undef HAVE_LIBKSTAT
272 #undef HAVE_KSTAT_H
273
274 /* Is `h_errno' declared by <netdb.h>? */
275 #undef HAVE_H_ERRNO
276
277 /* Does `localtime' cache TZ? */
278 #undef LOCALTIME_CACHE
279
280 /* Can `gettimeofday' accept two arguments? */
281 #undef GETTIMEOFDAY_ONE_ARGUMENT
282
283 #undef HAVE_MMAP
284 #undef HAVE_STRCOLL
285 #undef HAVE_GETPGRP
286 #undef GETPGRP_VOID
287
288 #undef HAVE_INVERSE_HYPERBOLIC
289
290 #undef HAVE_CBRT
291 #undef HAVE_CLOSEDIR
292 #undef HAVE_DUP2
293 #undef HAVE_EACCESS
294 #undef HAVE_FMOD
295 #undef HAVE_FPATHCONF
296 #undef HAVE_FREXP
297 #undef HAVE_FTIME
298 #undef HAVE_GETADDRINFO
299 #undef HAVE_GETHOSTNAME
300 #undef HAVE_GETNAMEINFO
301 #undef HAVE_GETPAGESIZE
302 #undef HAVE_GETTIMEOFDAY
303 #undef HAVE_GETWD
304 #undef HAVE_GETCWD
305 #undef HAVE_LOGB
306 #undef HAVE_LRAND48
307 #undef HAVE_MATHERR
308 #undef HAVE_MKDIR
309 #undef HAVE_MKTIME
310 #undef HAVE_PERROR
311 #undef HAVE_POLL
312 #undef HAVE_RANDOM
313 #undef HAVE_REALPATH
314 #undef HAVE_RENAME
315 #undef HAVE_RES_INIT
316 #undef HAVE_RINT
317 #undef HAVE_RMDIR
318 #undef HAVE_SELECT
319 #undef HAVE_SETITIMER
320 #undef HAVE_SETPGID
321 #undef HAVE_SETSID
322 #undef HAVE_SIGBLOCK
323 #undef HAVE_SIGHOLD
324 #undef HAVE_SIGPROCMASK
325 #undef HAVE_SIGSETJMP
326 #undef HAVE_SNPRINTF
327 #undef HAVE_STPCPY
328 #undef HAVE_STRERROR
329 #undef HAVE_TZSET
330 #undef HAVE_ULIMIT
331 #undef HAVE_USLEEP
332 #undef HAVE_UTIMES
333 #undef HAVE_WAITPID
334 #undef HAVE_VSNPRINTF
335
336 /* PTY support functions */
337 #undef HAVE_GETPT       /* glibc's easy pty allocation function */
338 #undef HAVE__GETPTY     /*   SGI's easy pty allocation function */
339 #undef HAVE_OPENPTY     /*   BSD's easy pty allocation function */
340 #undef HAVE_GRANTPT     /* Unix98 */
341 #undef HAVE_UNLOCKPT    /* Unix98 */
342 #undef HAVE_PTSNAME     /* Unix98 */
343 #undef HAVE_KILLPG      /* BSD */
344 #undef HAVE_TCGETPGRP   /* Posix 1 */
345 #undef HAVE_ISASTREAM   /* SysV streams */
346 #undef HAVE_PTY_H       /* Linux, Tru64 openpty */
347 #undef HAVE_LIBUTIL_H   /* BSD openpty */
348 #undef HAVE_STROPTS_H   /* SysV streams */
349 #undef HAVE_STRTIO_H    /* SysV streams TIOCSIGNAL */
350
351 #undef HAVE_SOCKETS
352 #undef HAVE_SOCKADDR_SUN_LEN
353 #undef HAVE_MULTICAST
354 #undef HAVE_SYSVIPC
355 #undef HAVE_LOCKF
356 #undef HAVE_FLOCK
357 #undef HAVE_FSYNC
358 #undef HAVE_FTRUNCATE
359 #undef HAVE_UMASK
360
361 #undef SYSV_SYSTEM_DIR
362 #undef NONSYSTEM_DIR_LIBRARY
363
364 #undef HAVE_TERMIOS
365 #undef HAVE_TERMIO
366 #undef NO_TERMIO
367 #undef SIGNALS_VIA_CHARACTERS
368
369 #undef NLIST_STRUCT
370
371 /* Compile in support for SOCKS? */
372 #undef HAVE_SOCKS
373
374 /* Compile in support for X pixmaps via the `xpm' library? */
375 #undef HAVE_XPM
376 #undef FOR_MSW
377
378 /* Compile in support for "X faces" via the `compface' library?
379    This enables graphical display of X-face headers in mail/news messages */
380 #undef HAVE_XFACE
381
382 /* Compile in support for JPEG images */
383 #undef HAVE_JPEG
384
385 /* Compile in support for TIFF images */
386 #undef HAVE_TIFF
387
388 /* Compile in support for GIF images */
389 #undef HAVE_GIF
390
391 /* Compile in support for PNG images */
392 #undef HAVE_PNG
393
394 /* Do you have the Xmu library?
395    This should always be the case except on losing HP-UX systems. */
396 #undef HAVE_XMU
397
398 /* Compile in support for DBM databases?  May require libgdbm or libdbm. */
399 #undef HAVE_DBM
400
401 /* Compile in support for Berkeley DB style databases?  May require libdb. */
402 #undef HAVE_BERKELEY_DB
403 /* Full #include file path for Berkeley DB's db.h */
404 #undef DB_H_FILE
405
406 /* Do we have either DBM or Berkeley DB database support? */
407 #undef HAVE_DATABASE
408
409 /* Do we have LDAP support? */
410 #undef HAVE_LDAP
411 /* Does the library define ldap_set_option () ? */
412 #undef HAVE_LDAP_SET_OPTION
413 /* Does the library define ldap_get_lderrno () ? */
414 #undef HAVE_LDAP_GET_LDERRNO
415 /* Does the library define ldap_result2error () ? */
416 #undef HAVE_LDAP_RESULT2ERROR
417 /* Does the library define ldap_parse_result () ? */
418 #undef HAVE_LDAP_PARSE_RESULT
419
420 /* Do we have PostgreSQL RDBMS support? */
421 #undef HAVE_POSTGRESQL
422 #undef HAVE_POSTGRESQLV7
423 #undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */
424
425 /* Do you have the Xauth library present?  This will add some extra
426    functionality to gnuserv. */
427 #undef HAVE_XAUTH
428
429 /* Compile in support for gpm (General Purpose Mouse)?  */
430 #undef HAVE_GPM
431
432 /* Compile in support for ncurses?  */
433 #undef HAVE_NCURSES
434 /* Full #include file paths for ncurses' curses.h and term.h. */
435 #undef CURSES_H_FILE
436 #undef TERM_H_FILE
437
438 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
439    If the assertion fails, assert_failed() will be called.  This is
440    recommended for general use because it gives more info about the crash
441    than just the abort() message.  Too many people "Can't find the corefile"
442    or have limit-ed core dumps out of existence. */
443 #undef USE_ASSERTIONS
444
445 /* Define one or more of the following if you want lots of extra checks
446    (e.g. structure validation) compiled in.  These should be turned
447    on during the beta-test cycle. */
448
449 /* Check the entire extent structure of a buffer each time an extent
450    change is done, and do other extent-related checks. */
451 #undef ERROR_CHECK_EXTENTS
452
453 /* Make sure that all X... macros are dereferencing the correct type,
454    and that all XSET... macros (as much as possible) are setting the
455    correct type of structure.  Highly recommended for all
456    development work. */
457 #undef ERROR_CHECK_TYPECHECK
458 #ifdef ERROR_CHECK_TYPECHECK
459 #define type_checking_assert(assertion) assert (assertion)
460 #else
461 #define type_checking_assert(assertion)
462 #endif
463
464 /* Make sure valid buffer positions are passed to BUF_* macros. */
465 #undef ERROR_CHECK_BUFPOS
466 #ifdef ERROR_CHECK_BUFPOS
467 #define bufpos_checking_assert(assertion) assert (assertion)
468 #else
469 #define bufpos_checking_assert(assertion)
470 #endif
471
472 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
473 #undef ERROR_CHECK_GC
474 #ifdef ERROR_CHECK_GC
475 #define gc_checking_assert(assertion) assert (assertion)
476 #else
477 #define gc_checking_assert(assertion)
478 #endif
479
480 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
481 #undef ERROR_CHECK_MALLOC
482
483 /* Minor sanity checking of the bytecode interpreter.  Useful for
484    debugging the byte compiler.  */
485 #undef ERROR_CHECK_BYTE_CODE
486
487 /* Minor sanity checking of glyphs, especially subwindows and
488    widgets. */
489 #undef ERROR_CHECK_GLYPHS
490
491 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
492    This is mainly intended for use by developers. */
493 #undef DEBUG_XEMACS
494
495 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
496    determine where XEmacs' memory is going. */
497 #undef MEMORY_USAGE_STATS
498
499 /* Define QUANTIFY if using Quantify from Rational/Pure/Atria Software.
500    This adds some additional calls to control data collection.
501    It is only intended for use by the developers. */
502 #undef QUANTIFY
503
504 /* Define QUANTIFY if using Purify from Rational/Pure/Atria Software.
505    It is only intended for use by the developers. */
506 #undef PURIFY
507
508 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
509 #define XLIB_ILLEGAL_ACCESS 1
510 #endif
511
512 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
513    widget within another program. */
514 #undef EXTERNAL_WIDGET
515
516 /* There are some special-case defines for gcc and lcc. */
517 #undef USE_GCC
518 #undef USE_LCC
519
520 /* Define this if you want level 2 internationalization compliance
521    (localized collation and formatting).  Generally this should be
522    defined, unless your system doesn't have the strcoll() and
523    setlocale() library routines.  This really should be (NOT! -mrb)
524    defined in the appropriate s/ or m/ file. */
525 #undef I18N2
526
527 /* Define this if you want level 3 internationalization compliance
528    (localized messaging).  This will cause a small runtime performance
529    penalty, as the strings are read from the message catalog(s).
530    For this you need the gettext() and dgetext() library routines.
531    WARNING, this code is under construction. */
532 #undef I18N3
533
534 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
535    Requires libDtSvc, which typically must be present at runtime.  */
536 #undef HAVE_CDE
537
538 /* Compile in support for OffiX Drag and Drop? */
539 #undef HAVE_OFFIX_DND
540
541 /* Compile in generic Drag'n'Drop API */
542 #undef HAVE_DRAGNDROP
543
544 /* Compile in support for proper handling of WM_COMMAND. */
545 #undef HAVE_WMCOMMAND
546
547 /* Define this if you want Mule support (multi-byte character support).
548    There may be some performance penalty, although it should be small
549    if you're working with ASCII files. */
550 #undef MULE
551
552 #undef UTF2000
553
554 #undef CHAR_IS_UCS4
555
556 /* Define this if you want file coding support */
557 #undef FILE_CODING
558
559 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
560    If so, use raw Xlib or higher level Motif interface? */
561 #undef HAVE_XIM
562 #undef XIM_XLIB
563 #undef XIM_MOTIF
564 #undef USE_XFONTSET
565
566 /* Non-XIM input methods for use with Mule. */
567 #undef HAVE_CANNA
568 #undef HAVE_WNN
569 #undef WNN6
570
571 /* Enable special GNU Make features in the Makefiles. */
572 #undef USE_GNU_MAKE
573
574 /* Debugging development option: Remove inessential but time consuming
575    actions from happening during build.  This saves a lot of time when
576    you're repeatedly compiling-running-crashing.  This (1) doesn't
577    garbage-collect after loading each file during dumping, and (2)
578    doesn't automatically rebuild the DOC file. (Remove it by hand to
579    get it rebuilt.)
580  */
581 #undef QUICK_BUILD
582
583 /* Defined by AC_C_CONST in configure.in */
584 #undef const
585
586 /* Allow the source to use standard types. Include these before the
587  s&m files so that they can use them. */
588 #undef ssize_t
589 #undef size_t
590 #undef pid_t
591 #undef mode_t
592 #undef off_t
593 #undef uid_t
594 #undef gid_t
595 #undef socklen_t
596
597 /* If defined, use unions instead of ints.  A few systems (DEC Alpha)
598    seem to require this, probably because something with the int
599    definitions isn't right with 64-bit systems.  */
600 #undef USE_UNION_TYPE
601
602 /* The configuration script may define `opsysfile' to be the name of
603    the s/...h file that describes your operating system.
604    The file name is chosen based on the configuration name. */
605
606 #if defined (__cplusplus) && !defined (NOT_C_CODE)
607 extern "C" {
608 #endif
609
610 #undef config_opsysfile
611 #ifdef config_opsysfile
612 #include config_opsysfile
613 #endif
614
615 /* The configuration script may define `machfile' to be the name of
616    the m/...h file that describes the machine you are using.
617    The file name is chosen based on the configuration name. */
618
619 #undef config_machfile
620 #ifdef config_machfile
621 #include config_machfile
622 #endif
623
624 #if defined (__cplusplus) && !defined (NOT_C_CODE)
625 }
626 #endif
627
628 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
629 #define SYSTEM_MALLOC
630 #endif
631
632 /* Use the relocating allocator for buffer space? */
633 #undef REL_ALLOC
634
635 /* Define the return type of signal handlers if the s/xxx.h file
636    did not already do so. */
637 #define RETSIGTYPE void
638
639 /* SIGTYPE is the macro we actually use. */
640 #ifndef SIGTYPE
641 #define SIGTYPE RETSIGTYPE
642 #define SIGRETURN return
643 #endif
644
645 /* Define DYNODUMP if it is necessary to properly dump on this system.
646    Currently this is only Solaris 2.x, for x < 6. */
647 #undef DYNODUMP
648
649 /* Compile in support for Sun Sparcworks/WorkShop? */
650 #undef SUNPRO
651
652 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
653    support for playing sound files. (On Suns, the sound support is
654    usually found in /usr/demo/SOUND - you may need to install the
655    "SUNWaudmo" package.) */
656 #undef HAVE_NATIVE_SOUND
657 /* Native sound may be provided via soundcard.h, in various directories */
658 #undef SOUNDCARD_H_FILE
659
660 /* Compile in support for NAS (Network Audio System)?
661    NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
662    error handling changes. */
663 #undef HAVE_NAS_SOUND
664 #undef NAS_NO_ERROR_JUMP
665
666 /* Compile in support for ESD (Enlightened Sound Daemon)? */
667 #undef HAVE_ESD_SOUND
668
669 /* Compile in support for SunPro usage-tracking code? */
670 #undef USAGE_TRACKING
671
672 /* Compile in support for Tooltalk? */
673 #undef TOOLTALK
674 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
675 #undef TT_C_H_FILE
676
677 /* Toolkits used by lwlib for various widgets... */
678 #undef LWLIB_USES_MOTIF
679 #undef LWLIB_USES_ATHENA
680 #undef LWLIB_MENUBARS_LUCID
681 #undef LWLIB_MENUBARS_MOTIF
682 #undef LWLIB_SCROLLBARS_LUCID
683 #undef LWLIB_SCROLLBARS_MOTIF
684 #undef LWLIB_SCROLLBARS_ATHENA
685 #undef LWLIB_SCROLLBARS_ATHENA3D
686 #undef LWLIB_DIALOGS_MOTIF
687 #undef LWLIB_DIALOGS_ATHENA
688 #undef LWLIB_DIALOGS_ATHENA3D
689 #undef LWLIB_TABS_LUCID
690 #undef LWLIB_WIDGETS_MOTIF
691 #undef LWLIB_WIDGETS_ATHENA
692 #undef HAVE_ATHENA_3D
693
694 /* Other things that can be disabled by configure. */
695 #undef HAVE_MENUBARS
696 #undef HAVE_SCROLLBARS
697 #undef HAVE_DIALOGS
698 #undef HAVE_TOOLBARS
699 #undef HAVE_WIDGETS
700
701
702 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
703 #define HAVE_POPUPS
704 #endif
705
706 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
707    There is a stupid bug in the SunOS libc.a: two functions which X11r5
708    uses, mbstowcs() and wcstombs(), are unusable when programs are
709    statically linked (as XEmacs must be) because the static version of
710    libc.a contains the *dynamic* versions of these functions.  These
711    functions don't seem to be called when XEmacs is running, so it's
712    enough to define stubs for them.
713
714    This appears to be fixed in SunOS 4.1.2.
715
716    Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
717    sometimes reference memory past the end of the string, which can segv.
718    I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */
719 #if defined (sparc) && !defined (USG)
720 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
721 #endif
722
723 /* If you turn this flag on, it forces encapsulation in all
724 circumstances; this can be used to make sure things compile OK
725 on various systems. */
726 #undef DEBUG_ENCAPSULATION
727
728 /* basic system calls */
729
730 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
731 # define ENCAPSULATE_READ
732 # define ENCAPSULATE_WRITE
733 #endif
734 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
735 # define ENCAPSULATE_OPEN
736 #endif
737 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
738 # define ENCAPSULATE_CLOSE
739 #endif
740
741 /* stdio calls */
742
743 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
744 # define ENCAPSULATE_FREAD
745 # define ENCAPSULATE_FWRITE
746 #endif
747 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
748 # define ENCAPSULATE_FOPEN
749 #endif
750 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
751 # define ENCAPSULATE_FCLOSE
752 #endif
753
754 /* directory calls */
755
756 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
757 # define ENCAPSULATE_CHDIR
758 # define ENCAPSULATE_MKDIR
759 # define ENCAPSULATE_OPENDIR
760 # define ENCAPSULATE_CLOSEDIR
761 # define ENCAPSULATE_READDIR
762 # define ENCAPSULATE_RMDIR
763
764 /* file-information calls */
765
766 #ifdef HAVE_EACCESS
767 # define ENCAPSULATE_EACCESS
768 #endif
769 # define ENCAPSULATE_ACCESS
770 # define ENCAPSULATE_LSTAT
771 # define ENCAPSULATE_READLINK
772 # define ENCAPSULATE_STAT
773
774 /* file-manipulation calls */
775
776 # define ENCAPSULATE_CHMOD
777 # define ENCAPSULATE_CREAT
778 # define ENCAPSULATE_LINK
779 # define ENCAPSULATE_RENAME
780 # define ENCAPSULATE_SYMLINK
781 # define ENCAPSULATE_UNLINK
782 # define ENCAPSULATE_EXECVP
783 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
784
785 #ifdef HAVE_CANNA
786 #  define CANNA2
787 #  define CANNA_MULE
788 #  define CANNA_PURESIZE 0
789 #else  /* not CANNA */
790 #  define CANNA_PURESIZE 0
791 #endif /* not CANNA */
792
793 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
794 #define accept Raccept
795 #define bind Rbind
796 #define connect Rconnect
797 #define getsockname Rgetsockname
798 #define listen Rlisten
799 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
800
801 #undef SIZEOF_SHORT
802 #undef SIZEOF_INT
803 #undef SIZEOF_LONG
804 #undef SIZEOF_LONG_LONG
805 #undef SIZEOF_VOID_P
806
807 #ifndef BITS_PER_CHAR
808 #define BITS_PER_CHAR 8
809 #endif
810 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
811 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
812 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
813 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
814 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
815
816 /* Use `INLINE_HEADER' to define inline functions in .h files.
817    Use `inline static' to define inline functions in .c files.
818    See the Internals manual for examples and more information. */
819
820 /* Does the keyword `inline' exist?  */
821 #undef inline
822
823 #if defined (__cplusplus) || ! defined (__GNUC__)
824 # define INLINE_HEADER inline static
825 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
826 # define INLINE_HEADER inline
827 #else
828 # define INLINE_HEADER inline extern
829 #endif
830
831 #ifndef NOT_C_CODE /* Actually means C or C++ */
832 # if defined (__cplusplus)
833 /* Avoid C++ keywords used as ordinary C identifiers */
834 #  define class c_class
835 #  define new   c_new
836 #  define this  c_this
837 #  define catch c_catch
838 #  define not   c_not
839
840 #  define EXTERN_C extern "C"
841 # else /* C code */
842 #  define EXTERN_C extern
843 # endif
844 #endif /* C or C++ */
845
846 /* Strictly speaking, only int or unsigned int are valid types in a
847    bitfield.  In practice, we would like to use enums as bitfields.
848    The following should just result in warning avoidance:
849    warning: nonportable bit-field type */
850 #ifdef __GNUC__
851 #define enum_field(enumeration_type) enum enumeration_type
852 #else
853 #define enum_field(enumeration_type) unsigned int
854 #endif
855
856 /* We want to avoid saving the signal mask if possible, because
857    that necessitates a system call. */
858 #ifdef HAVE_SIGSETJMP
859 # define SETJMP(x) sigsetjmp (x, 0)
860 # define LONGJMP(x, y) siglongjmp (x, y)
861 # define JMP_BUF sigjmp_buf
862 #else
863 # define SETJMP(x) setjmp (x)
864 # define LONGJMP(x, y) longjmp (x, y)
865 # define JMP_BUF jmp_buf
866 #endif
867
868 /* movemail options */
869 /* Should movemail use POP3 for mail access? */
870 #undef MAIL_USE_POP
871 /* Should movemail use kerberos for POP authentication? */
872 #undef KERBEROS
873 /* Should movemail use hesiod for getting POP server host? */
874 #undef HESIOD
875 /* Determine type of mail locking. */
876 #undef MAIL_LOCK_LOCKF
877 #undef MAIL_LOCK_FLOCK
878 #undef MAIL_LOCK_DOT
879 #undef MAIL_LOCK_LOCKING
880 #undef MAIL_LOCK_MMDF
881
882 #undef PREFIX_USER_DEFINED
883 #undef EXEC_PREFIX_USER_DEFINED
884 #undef MODULEDIR_USER_DEFINED
885 #undef SITEMODULEDIR_USER_DEFINED
886 #undef DOCDIR_USER_DEFINED
887 #undef LISPDIR_USER_DEFINED
888 #undef PACKAGE_PATH_USER_DEFINED
889 #undef SITELISPDIR_USER_DEFINED
890 #undef ARCHLIBDIR_USER_DEFINED
891 #undef ETCDIR_USER_DEFINED
892 #undef INFODIR_USER_DEFINED
893 #undef INFOPATH_USER_DEFINED
894
895 #undef PDUMP
896
897 #endif /* _SRC_CONFIG_H_ */