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