1 /* XEmacs site configuration template file. -*- C -*-
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
4 This file is part of XEmacs.
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
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
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. */
21 /* Significantly divergent from FSF. */
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_
29 /* alloca twiddling belongs in one place, not the s&m headers
30 AIX requires this to be the first thing in the file. */
35 #define alloca __builtin_alloca
40 #elif ! defined (alloca)
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. */
50 /* Allow s&m files to differentiate OS versions without having
51 multiple files to maintain. */
54 /* The configuration name. This is used as the install directory name
55 for the lib-src programs. */
56 #undef EMACS_CONFIGURATION
58 /* The configuration options. This is exported to Lisp. */
59 #undef EMACS_CONFIG_OPTIONS
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
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
73 /* Make all functions available on AIX. See AC_AIX. */
76 /* Make all functions available on GNU libc systems. See features.h. */
79 /* Used to identify the XEmacs version in stack traces. */
80 #undef STACK_TRACE_EYE_CATCHER
82 /* Allow the configurer to specify if she wants site-lisp. */
83 #undef INHIBIT_SITE_LISP
85 /* Allow the configurer to specify if she wants site-modules. */
86 #undef INHIBIT_SITE_MODULES
88 /* This will be removed in 19.15. */
89 /* Hah! Try 20.3 ... */
90 /* Hah! Try never ... */
91 /* If at first you don't succeed, try, try again. */
92 /* #define LOSING_BYTECODE */
94 /* Undefine on systems which don't have processes */
95 #undef HAVE_UNIX_PROCESSES
97 /* Does XEmacs support floating-point numbers? */
98 #undef LISP_FLOAT_TYPE
100 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
103 /* Define if you are using the GNU C Library. -- experimental. */
104 #undef DOUG_LEA_MALLOC
106 /* Define if you are using libmcheck.a from the GNU C Library. */
107 #undef HAVE_LIBMCHECK
109 /* Define if you are using dlmalloc from the Linux C library. */
110 #undef _NO_MALLOC_WARNING_
112 /* Use the system malloc? */
113 #undef USE_SYSTEM_MALLOC
115 /* Use a debugging malloc? -- experimental */
116 #undef USE_DEBUG_MALLOC
118 /* Compile in TTY support? */
121 /* Compile in support for MS windows? */
122 #undef HAVE_MS_WINDOWS
124 /* special cygwin process handling? */
125 #undef HAVE_MSG_SELECT
127 /* Compile in support for the X window system? */
128 #undef HAVE_X_WINDOWS
130 /* Defines for building X applications */
131 #ifdef HAVE_X_WINDOWS
132 /* The following will be defined if xmkmf thinks they are necessary */
141 /* The following should always be defined, no matter what xmkmf thinks. */
142 #ifndef NeedFunctionPrototypes
143 #define NeedFunctionPrototypes 1
148 #endif /* HAVE_X_WINDOWS */
150 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
151 #if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
152 #define HAVE_WINDOW_SYSTEM
155 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
156 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT)
157 #define HAVE_UNIXOID_EVENT_LOOP
160 /* Are we using XFree386? */
167 /* Where do we find bitmaps? */
170 /* USER_FULL_NAME returns a string that is the user's full name.
171 It can assume that the variable `pw' points to the password file
174 At some sites, the pw_gecos field contains the user's full name.
175 If neither this nor any other field contains the right thing, use
176 pw_name, giving the user's login name, since that is better than
178 #define USER_FULL_NAME pw->pw_gecos
180 /* Define AMPERSAND_FULL_NAME if you use the convention
181 that & in the full name stands for the login id. */
182 #undef AMPERSAND_FULL_NAME
184 /* Some things figured out by the configure script, grouped as they are in
187 #undef HAVE_MACH_MACH_H
188 #undef HAVE_SYS_STROPTS_H
189 #undef HAVE_SYS_TIMEB_H
190 #undef HAVE_SYS_TIME_H
193 #undef HAVE_SYS_WAIT_H
194 #undef HAVE_LIBINTL_H
199 #undef HAVE_X11_XLOCALE_H
200 #undef HAVE_LINUX_VERSION_H
201 #undef HAVE_CYGWIN_VERSION_H
202 #undef HAVE_INTTYPES_H
206 #undef TIME_WITH_SYS_TIME
207 #undef WORDS_BIGENDIAN
210 #undef HAVE_SYS_PSTAT_H
213 #undef HAVE_LONG_FILE_NAMES
215 /* Use lock files to detect multiple edits of the same file? */
216 #undef CLASH_DETECTION
218 /* Have shared library support */
230 #undef HAVE_LIBRESOLV
232 /* Is `sys_siglist' declared by <signal.h>? */
233 #undef SYS_SIGLIST_DECLARED
235 /* Is `struct utimbuf' declared by <utime.h>? */
236 #undef HAVE_STRUCT_UTIMBUF
238 /* Is `struct timeval' declared by <sys/time.h>? */
242 #undef TM_IN_SYS_TIME
246 /* Is `h_errno' declared by <netdb.h>? */
249 /* Does `localtime' cache TZ? */
250 #undef LOCALTIME_CACHE
252 /* Can `gettimeofday' accept two arguments? */
253 #undef GETTIMEOFDAY_ONE_ARGUMENT
260 #undef HAVE_INVERSE_HYPERBOLIC
267 #undef HAVE_FPATHCONF
270 #undef HAVE_GETADDRINFO
271 #undef HAVE_GETHOSTNAME
272 #undef HAVE_GETNAMEINFO
273 #undef HAVE_GETPAGESIZE
274 #undef HAVE_GETTIMEOFDAY
292 #undef HAVE_SETITIMER
297 #undef HAVE_SIGPROCMASK
298 #undef HAVE_SIGSETJMP
301 #undef HAVE_STRCASECMP
308 #undef HAVE_VSNPRINTF
310 #undef HAVE_SOCKADDR_SUN_LEN
311 #undef HAVE_MULTICAST
316 #undef HAVE_FTRUNCATE
319 #undef SYSV_SYSTEM_DIR
320 #undef NONSYSTEM_DIR_LIBRARY
325 #undef SIGNALS_VIA_CHARACTERS
329 /* Compile in support for SOCKS? */
332 /* Compile in support for X pixmaps via the `xpm' library? */
336 /* Compile in support for "X faces" via the `compface' library?
337 This enables graphical display of X-face headers in mail/news messages */
340 /* Compile in support for JPEG images */
343 /* Compile in support for TIFF images */
346 /* Compile in support for GIF images */
349 /* Compile in support for PNG images */
352 /* Do you have the Xmu library?
353 This should always be the case except on losing HP-UX systems. */
356 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
359 /* Compile in support for Berkeley DB style databases? May require libdb. */
360 #undef HAVE_BERKELEY_DB
361 /* Full #include file path for Berkeley DB's db.h */
364 /* Do we have either DBM or Berkeley DB database support? */
367 /* Do we have LDAP support? */
369 /* Does the library define ldap_set_option () ? */
370 #undef HAVE_LDAP_SET_OPTION
371 /* Does the library define ldap_get_lderrno () ? */
372 #undef HAVE_LDAP_GET_LDERRNO
373 /* Does the library define ldap_result2error () ? */
374 #undef HAVE_LDAP_RESULT2ERROR
375 /* Does the library define ldap_parse_result () ? */
376 #undef HAVE_LDAP_PARSE_RESULT
378 /* Do you have the Xauth library present? This will add some extra
379 functionality to gnuserv. */
382 /* Compile in support for gpm (General Purpose Mouse)? */
385 /* Compile in support for ncurses? */
387 /* Full #include file paths for ncurses' curses.h and term.h. */
391 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
392 If the assertion fails, assert_failed() will be called. This is
393 recommended for general use because it gives more info about the crash
394 than just the abort() message. Too many people "Can't find the corefile"
395 or have limit-ed core dumps out of existence. */
396 #undef USE_ASSERTIONS
398 /* Define one or more of the following if you want lots of extra checks
399 (e.g. structure validation) compiled in. These should be turned
400 on during the beta-test cycle. */
402 /* Check the entire extent structure of a buffer each time an extent
403 change is done, and do other extent-related checks. */
404 #undef ERROR_CHECK_EXTENTS
406 /* Make sure that all X... macros are dereferencing the correct type,
407 and that all XSET... macros (as much as possible) are setting the
408 correct type of structure. Highly recommended for all
410 #undef ERROR_CHECK_TYPECHECK
411 #ifdef ERROR_CHECK_TYPECHECK
412 #define type_checking_assert(assertion) assert (assertion)
414 #define type_checking_assert(assertion)
417 /* Make sure valid buffer positions are passed to BUF_* macros. */
418 #undef ERROR_CHECK_BUFPOS
419 #ifdef ERROR_CHECK_BUFPOS
420 #define bufpos_checking_assert(assertion) assert (assertion)
422 #define bufpos_checking_assert(assertion)
425 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
426 #undef ERROR_CHECK_GC
428 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
429 #undef ERROR_CHECK_MALLOC
431 /* Minor sanity checking of the bytecode interpreter. Useful for
432 debugging the byte compiler. */
433 #undef ERROR_CHECK_BYTE_CODE
435 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
436 This is mainly intended for use by developers. */
439 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
440 determine where XEmacs' memory is going. */
441 #undef MEMORY_USAGE_STATS
443 /* Define QUANTIFY if using Quantify from Rational/Pure/Atria Software.
444 This adds some additional calls to control data collection.
445 It is only intended for use by the developers. */
448 /* Define QUANTIFY if using Purify from Rational/Pure/Atria Software.
449 It is only intended for use by the developers. */
452 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
453 #define XLIB_ILLEGAL_ACCESS 1
456 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
457 widget within another program. */
458 #undef EXTERNAL_WIDGET
460 /* There are some special-case defines for gcc and lcc. */
464 /* Define this if you want level 2 internationalization compliance
465 (localized collation and formatting). Generally this should be
466 defined, unless your system doesn't have the strcoll() and
467 setlocale() library routines. This really should be (NOT! -mrb)
468 defined in the appropriate s/ or m/ file. */
471 /* Define this if you want level 3 internationalization compliance
472 (localized messaging). This will cause a small runtime performance
473 penalty, as the strings are read from the message catalog(s).
474 For this you need the gettext() and dgetext() library routines.
475 WARNING, this code is under construction. */
478 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
479 Requires libDtSvc, which typically must be present at runtime. */
482 /* Compile in support for OffiX Drag and Drop? */
483 #undef HAVE_OFFIX_DND
485 /* Compile in generic Drag'n'Drop API */
486 #undef HAVE_DRAGNDROP
488 /* Compile in support for proper handling of WM_COMMAND. */
489 #undef HAVE_WMCOMMAND
491 /* Define this if you want Mule support (multi-byte character support).
492 There may be some performance penalty, although it should be small
493 if you're working with ASCII files. */
496 /* Define this if you want file coding support */
499 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
500 If so, use raw Xlib or higher level Motif interface? */
506 /* Non-XIM input methods for use with Mule. */
511 /* Enable special GNU Make features in the Makefiles. */
514 /* Debugging option: Don't automatically rebuild the DOC file.
515 This saves a lot of time when you're repeatedly
516 compiling-running-crashing. */
519 /* Defined by AC_C_CONST in configure.in */
524 /* Allow the source to use standard types. Include these before the
525 s&m files so that they can use them. */
534 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
535 seem to require this, probably because something with the int
536 definitions isn't right with 64-bit systems. */
537 #undef USE_UNION_TYPE
539 /* The configuration script defines opsysfile to be the name of the
540 s/...h file that describes the system type you are using.
541 The file is chosen based on the configuration name you give.
543 See the file ../etc/MACHINES for a list of systems and the
544 configuration names to use for them.
546 See s/template.h for documentation on writing s/...h files. */
548 #if defined (__cplusplus) && !defined (NOT_C_CODE)
551 #undef config_opsysfile
552 #include config_opsysfile
554 /* The configuration script defines machfile to be the name of the
555 m/...h file that describes the machine you are using. The file is
556 chosen based on the configuration name you give.
558 See the file ../etc/MACHINES for a list of machines and the
559 configuration names to use for them.
561 See m/template.h for documentation on writing m/...h files. */
562 #undef config_machfile
563 #include config_machfile
564 #if defined (__cplusplus) && !defined (NOT_C_CODE)
568 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
569 #define SYSTEM_MALLOC
572 /* Use the relocating allocator for buffer space? */
575 /* Define the return type of signal handlers if the s/xxx.h file
576 did not already do so. */
577 #define RETSIGTYPE void
579 /* SIGTYPE is the macro we actually use. */
581 #define SIGTYPE RETSIGTYPE
582 #define SIGRETURN return
585 /* Define DYNODUMP if it is necessary to properly dump on this system.
586 Currently this is only Solaris 2.x, for x < 6. */
589 /* Compile in support for Sun Sparcworks/WorkShop? */
592 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
593 support for playing sound files. (On Suns, the sound support is
594 usually found in /usr/demo/SOUND - you may need to install the
595 "SUNWaudmo" package.) */
596 #undef HAVE_NATIVE_SOUND
597 /* Native sound may be provided via soundcard.h, in various directories */
598 #undef SOUNDCARD_H_PATH
600 /* Compile in support for NAS (Network Audio System)?
601 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
602 error handling changes. */
603 #undef HAVE_NAS_SOUND
604 #undef NAS_NO_ERROR_JUMP
606 /* Compile in support for ESD (Enlightened Sound Daemon)? */
607 #undef HAVE_ESD_SOUND
609 /* Compile in support for SunPro usage-tracking code? */
610 #undef USAGE_TRACKING
612 /* Compile in support for Tooltalk? */
614 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
617 /* Toolkits used by lwlib for various widgets... */
618 #undef LWLIB_USES_MOTIF
619 #undef LWLIB_USES_ATHENA
620 #undef LWLIB_MENUBARS_LUCID
621 #undef LWLIB_MENUBARS_MOTIF
622 #undef LWLIB_SCROLLBARS_LUCID
623 #undef LWLIB_SCROLLBARS_MOTIF
624 #undef LWLIB_SCROLLBARS_ATHENA
625 #undef LWLIB_SCROLLBARS_ATHENA3D
626 #undef LWLIB_DIALOGS_MOTIF
627 #undef LWLIB_DIALOGS_ATHENA
628 #undef LWLIB_DIALOGS_ATHENA3D
629 #undef LWLIB_TABS_LUCID
630 #undef LWLIB_WIDGETS_MOTIF
631 #undef LWLIB_WIDGETS_ATHENA
632 #undef HAVE_ATHENA_3D
634 /* Other things that can be disabled by configure. */
636 #undef HAVE_SCROLLBARS
642 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
646 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
647 There is a stupid bug in the SunOS libc.a: two functions which X11r5
648 uses, mbstowcs() and wcstombs(), are unusable when programs are
649 statically linked (as XEmacs must be) because the static version of
650 libc.a contains the *dynamic* versions of these functions. These
651 functions don't seem to be called when XEmacs is running, so it's
652 enough to define stubs for them.
654 This appears to be fixed in SunOS 4.1.2.
656 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
657 sometimes reference memory past the end of the string, which can segv.
658 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3. */
659 #if defined (sparc) && !defined (USG)
660 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
663 /* If you turn this flag on, it forces encapsulation in all
664 circumstances; this can be used to make sure things compile OK
665 on various systems. */
666 #undef DEBUG_ENCAPSULATION
668 /* basic system calls */
670 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
671 # define ENCAPSULATE_READ
672 # define ENCAPSULATE_WRITE
674 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
675 # define ENCAPSULATE_OPEN
677 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
678 # define ENCAPSULATE_CLOSE
683 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
684 # define ENCAPSULATE_FREAD
685 # define ENCAPSULATE_FWRITE
687 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
688 # define ENCAPSULATE_FOPEN
690 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
691 # define ENCAPSULATE_FCLOSE
694 /* directory calls */
696 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
697 # define ENCAPSULATE_CHDIR
698 # define ENCAPSULATE_MKDIR
699 # define ENCAPSULATE_OPENDIR
700 # define ENCAPSULATE_CLOSEDIR
701 # define ENCAPSULATE_READDIR
702 # define ENCAPSULATE_RMDIR
704 /* file-information calls */
707 # define ENCAPSULATE_EACCESS
709 # define ENCAPSULATE_ACCESS
710 # define ENCAPSULATE_LSTAT
711 # define ENCAPSULATE_READLINK
712 # define ENCAPSULATE_STAT
714 /* file-manipulation calls */
716 # define ENCAPSULATE_CHMOD
717 # define ENCAPSULATE_CREAT
718 # define ENCAPSULATE_LINK
719 # define ENCAPSULATE_RENAME
720 # define ENCAPSULATE_SYMLINK
721 # define ENCAPSULATE_UNLINK
722 # define ENCAPSULATE_EXECVP
723 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
728 # define CANNA_PURESIZE 0
729 #else /* not CANNA */
730 # define CANNA_PURESIZE 0
731 #endif /* not CANNA */
733 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
737 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
738 #define accept Raccept
740 #define connect Rconnect
741 #define getsockname Rgetsockname
742 #define listen Rlisten
743 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
748 #undef SIZEOF_LONG_LONG
751 #ifndef BITS_PER_CHAR
752 #define BITS_PER_CHAR 8
754 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
755 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
756 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
757 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
758 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
762 #define HAVE_INLINE 1
763 #define INLINE inline
765 /* Does the keyword `inline' exist? */
771 # ifdef DONT_EXTERN_INLINE_FUNCTIONS
772 # define INLINE inline
774 # define INLINE extern inline
777 # define INLINE static inline
778 # endif /* __GNUC__ */
780 # define INLINE static
781 # endif /* HAVE_INLINE */
785 #if defined (__cplusplus) && !defined (NOT_C_CODE)
786 /* Avoid C++ keywords used as ordinary C identifiers */
787 #define class c_class
790 #define catch c_catch
793 /* Strictly speaking, only int or unsigned int are valid types in a
794 bitfield. In practice, we would like to use enums as bitfields.
795 The following should just result in warning avoidance:
796 warning: nonportable bit-field type */
798 #define enum_field(enumeration_type) enum enumeration_type
800 #define enum_field(enumeration_type) unsigned int
803 /* We want to avoid saving the signal mask if possible, because
804 that necessitates a system call. */
805 #ifdef HAVE_SIGSETJMP
806 # define SETJMP(x) sigsetjmp (x, 0)
807 # define LONGJMP(x, y) siglongjmp (x, y)
808 # define JMP_BUF sigjmp_buf
810 # define SETJMP(x) setjmp (x)
811 # define LONGJMP(x, y) longjmp (x, y)
812 # define JMP_BUF jmp_buf
815 /* movemail options */
816 /* Should movemail use POP3 for mail access? */
818 /* Should movemail use kerberos for POP authentication? */
820 /* Should movemail use hesiod for getting POP server host? */
822 /* Determine type of mail locking. */
823 #undef MAIL_LOCK_LOCKF
824 #undef MAIL_LOCK_FLOCK
826 #undef MAIL_LOCK_LOCKING
827 #undef MAIL_LOCK_MMDF
829 #undef PREFIX_USER_DEFINED
830 #undef EXEC_PREFIX_USER_DEFINED
831 #undef MODULEDIR_USER_DEFINED
832 #undef SITEMODULEDIR_USER_DEFINED
833 #undef DOCDIR_USER_DEFINED
834 #undef LISPDIR_USER_DEFINED
835 #undef PACKAGE_PATH_USER_DEFINED
836 #undef SITELISPDIR_USER_DEFINED
837 #undef ARCHLIBDIR_USER_DEFINED
838 #undef ETCDIR_USER_DEFINED
839 #undef LOCKDIR_USER_DEFINED
840 #undef INFODIR_USER_DEFINED
841 #undef INFOPATH_USER_DEFINED
845 #endif /* _SRC_CONFIG_H_ */