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