annotate src/config.h.in @ 788:026c5bf9c134

[xemacs-hg @ 2002-03-21 07:29:57 by ben] chartab.c: Fix bugs in implementation and doc strings. config.h.in: Add foo_checking_assert_at_line() macros. Not clear whether these are actually useful, though; I'll take them out if not. symsinit.h, emacs.c: Some improvements to the timeline. Rearrange a bit the init calls. Add call for reinit_vars_of_object_mswindows() and declare in symsinit.h. event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, event-tty.c, events.c, events.h: Introduce new event methods for printing, comparing, and hashing magic events, to avoid event-type-specific stuff that had crept into events.c. (And was crashing, since the channel in MS Windows magic events may be nil.) Implement the methods in event-{tty,gtk,Xt,mswindows}.c. Make wrapping functions event_stream_{compare,hash,format}_magic_event() to check if everything's OK and call the actual callback. Fix events.c to use the new methods. Add a new event-stream-operation EVENT_STREAM_NOTHING -- event stream not actually required to be able to do anything, just be open. (#### This event-stream-operation stuff needs to be rethought.) Fixed describe_event() in event-Xt.c to print its output to a stream, not always to stderr, so it can be used elsewhere. (e.g. in print-event when a magic event is encountered?) lisp.h, lrecord.h: Define new assert_at_line(), for use in asserts inside of inline functions. The assert will report the line and file of the inline function, which is almost certainly not what you want as it's useless. what you want to see is where the pseudo-macro was called from. So, when error-checking is on, we pass in the line and file into the macros, for accurate printout using assert_at_line(). Happens only when error-checking is defined so doesn't slow down non-error-checking builds. Fix XCHAR, XINT, XCHAR_OR_INT, XFOO, and wrap_foo() in this fashion. lstream.c, lstream.h: Add resizing_buffer_to_lisp_string(). objects-gtk.c: Fix typo. objects-msw.c: Implement a smarter way of determining whether a font matches a charset. Formerly we just looked at the "script" element of the font spec, converted it to a code page, and compared it with the code page derived from the charset. Now, as well as doing this, we ask the font for the list of unicode ranges it supports, see what range the charset falls into (#### bogus! need to do this char-by-char), and see if any of the font's supported ranges include the charset's range. also do some caching in Vfont_signature_data of previous inquiries. charset.h, text.c, mule-charset.c: New fun; extracted out of Fmake_char() and declare prototype in charset.h. text.h: introduce assert_by_line() to make REP_BYTES_BY_FIRST_BYTE report the file and line more accurately in an assertion failure. unicode.c: make non-static (used in objects-msw.c), declare in charset.h. mule\mule-category.el: Start implementing a category API compatible with FSF. Not there yet. We need improvements to char-tables. mule\mule-charset.el: Copy translation table code from FSF 21.1 and fix up. Eventually we'll have them in XEmacs. (used in ccl) Not here quite yet, and we need some improvements to char-tables. mule\cyril-util.el, mule\cyrillic.el, mule\devan-util.el, mule\ethio-util.el, mule\korea-util.el, mule\mule-tty-init.el, mule\tibet-util.el, mule\viet-util.el, mule\vietnamese.el: Fix numerous compilation warnings. Fix up code related to translation tables and other types of char-tables. menubar-items.el: Move the frame commands from the View menu to the File menu, to be consistent with how most other programs do things. Move less-used revert/recover items to a submenu. Make "recover" not prompt for a file, but recover the current buffer. TODO.ben-mule-21-5: Create bug list for latest problems.
author ben
date Thu, 21 Mar 2002 07:31:30 +0000
parents e65d9cf16707
children a5954632b187
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 /* XEmacs site configuration template file. -*- C -*-
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
3 Copyright (C) 2000, 2001, 2002 Ben Wing.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 /* Significantly divergent from FSF. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 /* No code in XEmacs #includes config.h twice, but some of the code
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 intended to work with other packages as well (like gmalloc.c)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 think they can include it as many times as they like. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 #ifndef _SRC_CONFIG_H_
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 #define _SRC_CONFIG_H_
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
30 /*
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
31 This file now serves both as config.h.in and simply as config.h under
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
32 Windows NT. Under Windows NT, there is no configure script that
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
33 operates, so it is necessary for the relevant constants to be set
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
34 manually, either by the user (for user options) or in s/windowsnt.h.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
35
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
36 Formerly, under NT there were three different places where constants
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
37 were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
38 the latter two are used. (This separate config.h was a hassle because
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
39 it required constant synchronization between it and src/config.h.in.)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
40 Since the options that are substituted by configure are written in
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
41 config.h.in with #undef, it is easy to make this file serve as
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
42 config.h under Windows NT. Options that are set by the user are
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
43 specified in the file config.inc.samp, which is included by xemacs.mak
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
44 (the makefile) and used to set command-line options to the
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
45 compiler. The sorts of options that relate to the system and not to
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
46 the user and which are normally auto-determined by configure are set
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
47 in windowsnt.h.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
48
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
49 What this means is that a little more care has to be taken in the way
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
50 things are arranged in config.h.in. In particular:
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
51
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
52 -- Everything that is written with a #undef should be bracketed by
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
53 #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
54 grouped together as much as possible.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
55
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
56 -- Things that are not #undefs should not go inside this bracketed
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
57 #ifdef, because these things typically set constants based on other
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
58 constants and those latter constants may be set elsewhere under
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
59 Windows NT.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
60
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
61 -- Any #ifdefs that depend on constants that may be set in windowsnt.h
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
62 need to be moved after the point at which this file is
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
63 included. This applies for example to the error checking macros.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
64 */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
65
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
66 #if defined (WIN32_NATIVE) && !defined (MINGW)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
67 # define WIN32_NO_CONFIGURE
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
68 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
69
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 /* Use this to add code in a structured way to FSF-maintained source
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 files so as to make it obvious where XEmacs changes are. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 #define XEMACS 1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
74 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
75
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
76 /* Program name */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
77 #undef EMACS_PROGNAME
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
78
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 /* Allow s&m files to differentiate OS versions without having
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 multiple files to maintain. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 #undef OS_RELEASE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 /* The configuration name. This is used as the install directory name
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 for the lib-src programs. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 #undef EMACS_CONFIGURATION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 /* The configuration options. This is exported to Lisp. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 #undef EMACS_CONFIG_OPTIONS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 /* The version info from version.sh. Used in #pragma ident in emacs.c */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 #undef EMACS_MAJOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 #undef EMACS_MINOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 #undef EMACS_PATCH_LEVEL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 #undef EMACS_BETA_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 #undef EMACS_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 #undef XEMACS_CODENAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 /* InfoDock versions, not used with XEmacs */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 #undef INFODOCK_MAJOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 #undef INFODOCK_MINOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 #undef INFODOCK_BUILD_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
102 /* Make functions from IEEE Stds 1003.[123] available. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
103 #undef _POSIX_C_SOURCE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
104
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
105 /* Make some functions from Unix98 available. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
106 #undef _XOPEN_SOURCE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
107
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
108 /* Make "extensions" from Unix98 available. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
109 #undef _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
110
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 /* Make all functions available on AIX. See AC_AIX. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 #undef _ALL_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 /* Make all functions available on GNU libc systems. See features.h. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 #undef _GNU_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
117 /* Make all functions available on Solaris 2 systems. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
118 #undef __EXTENSIONS__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
119
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 /* Used to identify the XEmacs version in stack traces. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 #undef STACK_TRACE_EYE_CATCHER
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 /* Allow the configurer to specify if she wants site-lisp. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 #undef INHIBIT_SITE_LISP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 /* Allow the configurer to specify if she wants site-modules. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 #undef INHIBIT_SITE_MODULES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 /* This will be removed in 19.15. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 /* Hah! Try 20.3 ... */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 /* Hah! Try never ... */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 /* If at first you don't succeed, try, try again. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 /* #define LOSING_BYTECODE */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 /* Undefine on systems which don't have processes */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 #undef HAVE_UNIX_PROCESSES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 /* Does XEmacs support floating-point numbers? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 #undef LISP_FLOAT_TYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 #undef GNU_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 /* Define if you are using the GNU C Library. -- experimental. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 #undef DOUG_LEA_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 /* Define if you are using libmcheck.a from the GNU C Library. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 #undef HAVE_LIBMCHECK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 /* Define if you are using dlmalloc from the Linux C library. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 #undef _NO_MALLOC_WARNING_
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 /* Use the system malloc? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 #undef USE_SYSTEM_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 /* Use a debugging malloc? -- experimental */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 #undef USE_DEBUG_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 /* Compile in TTY support? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 #undef HAVE_TTY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 /* Compile in support for MS windows? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 #undef HAVE_MS_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 /* special cygwin process handling? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 #undef HAVE_MSG_SELECT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 /* Compile in support for the X window system? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 #undef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 /* Defines for building X applications */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 #ifdef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 /* The following will be defined if xmkmf thinks they are necessary */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 #undef SVR4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 #undef SYSV
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176 #undef AIXV3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 #undef _POSIX_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 #undef _BSD_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 #undef _SVID_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 #undef X_LOCALE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 #undef NARROWPROTO
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
182 #endif /* HAVE_X_WINDOWS */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
183
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
184 #endif /* WIN32_NO_CONFIGURE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
185
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
186 #ifdef HAVE_X_WINDOWS
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 /* The following should always be defined, no matter what xmkmf thinks. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 #ifndef NeedFunctionPrototypes
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189 #define NeedFunctionPrototypes 1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
191 #ifndef FUNCPROTO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
192 #define FUNCPROTO 15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 #endif /* HAVE_X_WINDOWS */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
196 /* Defines for building Gtk applications */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
197 #undef HAVE_GNOME
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
198 #undef HAVE_GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
199 #undef HAVE_GDK_IMLIB_INIT
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
200 #undef HAVE_GLADE_GLADE_H
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
201 #undef HAVE_GLADE_H
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
202 #undef LIBGLADE_XML_TXTDOMAIN
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
203
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
204 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
205 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206 #define HAVE_WINDOW_SYSTEM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
208
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
211 #define HAVE_UNIXOID_EVENT_LOOP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
214 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
215
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
216 /* XFree86 has a different prototype for this function */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
217 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
218 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 #undef THIS_IS_X11R4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 #undef THIS_IS_X11R5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 #undef THIS_IS_X11R6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
224 #undef HAVE_XCONVERTCASE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
225
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
226 #undef HAVE_BALLOON_HELP
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
227
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
228 /* Where do we find bitmaps? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 #undef BITMAPDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 /* Define AMPERSAND_FULL_NAME if you use the convention
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232 that & in the full name stands for the login id. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 #undef AMPERSAND_FULL_NAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 /* Some things figured out by the configure script, grouped as they are in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236 configure.in. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237 #undef HAVE_MCHECK_H
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
238 #undef HAVE_A_OUT_H
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 444
diff changeset
239 #undef HAVE_ELF_H
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
240 #undef HAVE_CYGWIN_VERSION_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
241 #undef HAVE_FCNTL_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
242 #undef HAVE_INTTYPES_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
243 #undef HAVE_LIBGEN_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
244 #undef HAVE_LOCALE_H
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 #undef HAVE_MACH_MACH_H
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
246 #undef HAVE_SYS_PARAM_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
247 #undef HAVE_SYS_PSTAT_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
248 #undef HAVE_SYS_TIME_H
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249 #undef HAVE_SYS_TIMEB_H
777
e65d9cf16707 [xemacs-hg @ 2002-03-15 11:00:28 by ben]
ben
parents: 771
diff changeset
250 #undef HAVE_SYS_TIMES_H
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
251 #undef HAVE_SYS_UN_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
252 #undef HAVE_ULIMIT_H
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 #undef HAVE_UNISTD_H
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
254
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 #undef HAVE_SYS_WAIT_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 #undef HAVE_LIBINTL_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
257 #undef HAVE_X11_XLOCALE_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258 #undef STDC_HEADERS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259 #undef TIME_WITH_SYS_TIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 #undef WORDS_BIGENDIAN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262 #undef HAVE_LONG_FILE_NAMES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 /* Use lock files to detect multiple edits of the same file? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
265 #undef CLASH_DETECTION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
266
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 /* Have shared library support */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 #undef HAVE_DLOPEN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
269 #undef HAVE_DLERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
270 #undef HAVE__DLERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
271 #undef HAVE_SHL_LOAD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272 #undef HAVE_DLD_INIT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
273 #undef HAVE_SHLIB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
274
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
275 #undef HAVE_LIBINTL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
276 #undef HAVE_LIBDNET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277 #undef HAVE_LIBRESOLV
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
279 /* Is `sys_siglist' declared by <signal.h>? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280 #undef SYS_SIGLIST_DECLARED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
281
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282 /* Is `struct timeval' declared by <sys/time.h>? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283 #undef HAVE_TIMEVAL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286 #undef TM_IN_SYS_TIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 #undef HAVE_TM_ZONE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288 #undef HAVE_TZNAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
289
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
290 /* For `getloadavg' provided by system */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
291 #undef HAVE_GETLOADAVG
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
292 #undef HAVE_SYS_LOADAVG_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
293 /* For implementing `getloadavg' ourselves */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
294 #undef HAVE_LIBKSTAT
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
295 #undef HAVE_KSTAT_H
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
296
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297 /* Is `h_errno' declared by <netdb.h>? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 #undef HAVE_H_ERRNO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300 /* Does `localtime' cache TZ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 #undef LOCALTIME_CACHE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303 /* Can `gettimeofday' accept two arguments? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 #undef GETTIMEOFDAY_ONE_ARGUMENT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 #undef HAVE_MMAP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307 #undef HAVE_STRCOLL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308 #undef HAVE_GETPGRP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 #undef GETPGRP_VOID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
310
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 #undef HAVE_INVERSE_HYPERBOLIC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
312
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
313 #undef HAVE_CBRT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
314 #undef HAVE_CLOSEDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 #undef HAVE_DUP2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316 #undef HAVE_EACCESS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 #undef HAVE_FMOD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318 #undef HAVE_FPATHCONF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319 #undef HAVE_FREXP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 #undef HAVE_FTIME
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
321 #undef HAVE_GETADDRINFO
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
322 #undef HAVE_GETHOSTNAME
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
323 #undef HAVE_GETNAMEINFO
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 #undef HAVE_GETPAGESIZE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325 #undef HAVE_GETTIMEOFDAY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
326 #undef HAVE_GETWD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 #undef HAVE_GETCWD
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
328 #undef HAVE_LINK
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329 #undef HAVE_LOGB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330 #undef HAVE_LRAND48
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 #undef HAVE_MATHERR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 #undef HAVE_MKDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 #undef HAVE_MKTIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 #undef HAVE_PERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 #undef HAVE_POLL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 #undef HAVE_RANDOM
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
337 #undef HAVE_READLINK
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338 #undef HAVE_REALPATH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 #undef HAVE_RENAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 #undef HAVE_RES_INIT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 #undef HAVE_RINT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 #undef HAVE_RMDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343 #undef HAVE_SELECT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 #undef HAVE_SETITIMER
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345 #undef HAVE_SETPGID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
346 #undef HAVE_SETSID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
347 #undef HAVE_SIGBLOCK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 #undef HAVE_SIGHOLD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349 #undef HAVE_SIGPROCMASK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350 #undef HAVE_SIGSETJMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
351 #undef HAVE_SNPRINTF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352 #undef HAVE_STPCPY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353 #undef HAVE_STRERROR
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
354 #undef HAVE_SYMLINK
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
355 #undef HAVE_TZSET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
356 #undef HAVE_ULIMIT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
357 #undef HAVE_USLEEP
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
358 #undef HAVE_UTIME
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
359 #undef HAVE_UTIMES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
360 #undef HAVE_WAITPID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
361 #undef HAVE_VSNPRINTF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
362
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 462
diff changeset
363 /* Many flavors of PTY support */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
364 #undef HAVE_GETPT /* glibc's easy pty allocation function */
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
365 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
366 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
367 #undef HAVE_GRANTPT /* Unix98 */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
368 #undef HAVE_UNLOCKPT /* Unix98 */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
369 #undef HAVE_PTSNAME /* Unix98 */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
370 #undef HAVE_KILLPG /* BSD */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
371 #undef HAVE_TCGETPGRP /* Posix 1 */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
372 #undef HAVE_ISASTREAM /* SysV streams */
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 462
diff changeset
373 #undef HAVE_SYS_PTY_H /* AIX */
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 462
diff changeset
374 #undef HAVE_SYS_PTYIO_H /* HP-UX */
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 462
diff changeset
375 #undef HAVE_PTY_H /* Linux, Tru64 */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
376 #undef HAVE_LIBUTIL_H /* BSD openpty */
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
377 #undef HAVE_UTIL_H /* NetBSD openpty */
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
378 #undef HAVE_STROPTS_H /* SysV streams */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
379 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
380
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
381 #undef HAVE_SOCKETS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
382 #undef HAVE_SOCKADDR_SUN_LEN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
383 #undef HAVE_MULTICAST
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 #undef HAVE_SYSVIPC
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
385 #undef HAVE_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
386 #undef HAVE_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
387 #undef HAVE_FSYNC
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
388 #undef HAVE_FTRUNCATE
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
389 #undef HAVE_UMASK
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 #undef SYSV_SYSTEM_DIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
392 #undef NONSYSTEM_DIR_LIBRARY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
393
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
394 #undef HAVE_TERMIOS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
395 #undef HAVE_TERMIO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
396 #undef NO_TERMIO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397 #undef SIGNALS_VIA_CHARACTERS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
398
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
399 #undef NLIST_STRUCT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400
724
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 665
diff changeset
401 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 665
diff changeset
402 #undef IPV6_CANONICALIZE
76d5a3dd827a [xemacs-hg @ 2002-01-05 07:33:11 by stephent]
stephent
parents: 665
diff changeset
403
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
404 /* Compile in support for SOCKS? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
405 #undef HAVE_SOCKS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
406
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
407 /* Compile in support for X pixmaps via the `xpm' library? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
408 #undef HAVE_XPM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
409 #undef FOR_MSW
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
410
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
411 /* Compile in support for "X faces" via the `compface' library?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
412 This enables graphical display of X-face headers in mail/news messages */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
413 #undef HAVE_XFACE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
414
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
415 /* Compile in support for JPEG images */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
416 #undef HAVE_JPEG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
417
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
418 /* Compile in support for TIFF images */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
419 #undef HAVE_TIFF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
420
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
421 /* Compile in support for GIF images */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
422 #undef HAVE_GIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
423
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
424 /* Compile in support for PNG images */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
425 #undef HAVE_PNG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
426
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
427 /* Compile in support for GZIP compression */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
428 #undef HAVE_ZLIB
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
429
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
430 /* Do you have the Xmu library?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
431 This should always be the case except on losing HP-UX systems. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
432 #undef HAVE_XMU
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
433
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
434 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
435 #undef HAVE_DBM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
436
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
437 /* Compile in support for Berkeley DB style databases? May require libdb. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
438 #undef HAVE_BERKELEY_DB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
439 /* Full #include file path for Berkeley DB's db.h */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
440 #undef DB_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
441
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
442 /* Do we have either DBM or Berkeley DB database support? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
443 #undef HAVE_DATABASE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
444
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
445 /* Do we have LDAP support? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
446 #undef HAVE_LDAP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
447 /* Does the library define ldap_set_option () ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
448 #undef HAVE_LDAP_SET_OPTION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
449 /* Does the library define ldap_get_lderrno () ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
450 #undef HAVE_LDAP_GET_LDERRNO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
451 /* Does the library define ldap_result2error () ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
452 #undef HAVE_LDAP_RESULT2ERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
453 /* Does the library define ldap_parse_result () ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
454 #undef HAVE_LDAP_PARSE_RESULT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
455
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
456 /* Do we have PostgreSQL RDBMS support? */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
457 #undef HAVE_POSTGRESQL
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
458 #undef HAVE_POSTGRESQLV7
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
459 #undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
460
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461 /* Do you have the Xauth library present? This will add some extra
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462 functionality to gnuserv. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 #undef HAVE_XAUTH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465 /* Compile in support for gpm (General Purpose Mouse)? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
466 #undef HAVE_GPM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
467
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
468 /* Compile in support for ncurses? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
469 #undef HAVE_NCURSES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
470 /* Full #include file paths for ncurses' curses.h and term.h. */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
471 #undef CURSES_H_FILE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
472 #undef TERM_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
473
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
474 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
475 If the assertion fails, assert_failed() will be called. This is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
476 recommended for general use because it gives more info about the crash
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
477 than just the abort() message. Too many people "Can't find the corefile"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
478 or have limit-ed core dumps out of existence. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
479 #undef USE_ASSERTIONS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
480
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
481 /* Define one or more of the following if you want lots of extra checks
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
482 (e.g. structure validation) compiled in. These should be turned
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
483 on during the beta-test cycle. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
484
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
485 /* Check the entire extent structure of a buffer each time an extent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
486 change is done, and do other extent-related checks. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
487 #undef ERROR_CHECK_EXTENTS
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
488
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
489 /* Make sure that all X... macros are dereferencing the correct type,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
490 and that all XSET... macros (as much as possible) are setting the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
491 correct type of structure. Highly recommended for all
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
492 development work. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
493 #undef ERROR_CHECK_TYPECHECK
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
494
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
495 /* Make sure valid buffer positions are passed to BUF_* macros. */
665
fdefd0186b75 [xemacs-hg @ 2001-09-20 06:28:42 by ben]
ben
parents: 615
diff changeset
496 #undef ERROR_CHECK_CHARBPOS
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
497
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
498 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
499 #undef ERROR_CHECK_GC
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
500
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
501 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
502 #undef ERROR_CHECK_MALLOC
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
503
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
504 /* Minor sanity checking of the bytecode interpreter. Useful for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
505 debugging the byte compiler. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
506 #undef ERROR_CHECK_BYTE_CODE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
507
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
508 /* Minor sanity checking of glyphs, especially subwindows and
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
509 widgets. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
510 #undef ERROR_CHECK_GLYPHS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
511
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
512 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
513 This is mainly intended for use by developers. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514 #undef DEBUG_XEMACS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517 determine where XEmacs' memory is going. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518 #undef MEMORY_USAGE_STATS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
520 /* Define QUANTIFY if using Quantify from Rational Software.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
521 This adds some additional calls to control data collection.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
522 It is only intended for use by the developers. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
523 #undef QUANTIFY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
524
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
525 /* Define PURIFY if using Purify from Rational Software.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
526 It is only intended for use by the developers. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
527 #undef PURIFY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
528
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
529 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
530 widget within another program. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
531 #undef EXTERNAL_WIDGET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
532
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
533 /* There are some special-case defines for gcc and lcc. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
534 #undef USE_GCC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
535 #undef USE_LCC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
536
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
537 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
538 Requires libDtSvc, which typically must be present at runtime. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
539 #undef HAVE_CDE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
540
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
541 /* Compile in support for OffiX Drag and Drop? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
542 #undef HAVE_OFFIX_DND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
543
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
544 /* Compile in generic Drag'n'Drop API */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
545 #undef HAVE_DRAGNDROP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
546
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
547 /* Compile in support for proper handling of WM_COMMAND. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
548 #undef HAVE_WMCOMMAND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
549
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
550 /* Define this if you want Mule support (multi-byte character support).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
551 There may be some performance penalty, although it should be small
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
552 if you're working with ASCII files. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
553 #undef MULE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
554
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
555 /* Define this if you want EOL detection of files to be on by default
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
556 in a non-Mule Unix; otherwise, defaults will be set so that all
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
557 files are read in as binary. Doesn't apply to Cygwin or MinGW. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
558 #undef HAVE_DEFAULT_EOL_DETECTION
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
559
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
560 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
561 If so, use raw Xlib or higher level Motif interface? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
562 #undef HAVE_XIM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
563 #undef XIM_XLIB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
564 #undef XIM_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
565
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
566 /* Non-XIM input methods for use with Mule. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
567 #undef HAVE_CANNA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
568 #undef HAVE_WNN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
569 #undef WNN6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
570
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
571 /* Debugging development option: Remove inessential but time consuming
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
572 actions from happening during build. This saves a lot of time when
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
573 you're repeatedly compiling-running-crashing. This (1) doesn't
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
574 garbage-collect after loading each file during dumping, and (2)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
575 doesn't automatically rebuild the DOC file. (Remove it by hand to
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
576 get it rebuilt.)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
577 */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
578 #undef QUICK_BUILD
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
579
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
580 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
581 seem to require this, probably because something with the int
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
582 definitions isn't right with 64-bit systems. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
583 #undef USE_UNION_TYPE
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
584
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
585 /* Enable special GNU Make features in the Makefiles. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
586 #undef USE_GNU_MAKE
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
587
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
588 /* Defined by AC_C_CONST in configure.in */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
589 #undef const
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
590
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
591 /* Allow the source to use standard types. Include these before the
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
592 s&m files so that they can use them. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
593 #undef ssize_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
594 #undef size_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
595 #undef pid_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
596 #undef mode_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
597 #undef off_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
598 #undef uid_t
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
599 #undef gid_t
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
600 #undef socklen_t
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 428
diff changeset
601
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
602 #endif /* WIN32_NO_CONFIGURE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
603
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
604
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
605 /* USER_FULL_NAME returns a string that is the user's full name.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
606 It can assume that the variable `pw' points to the password file
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
607 entry for this user.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
608
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
609 At some sites, the pw_gecos field contains the user's full name.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
610 If neither this nor any other field contains the right thing, use
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
611 pw_name, giving the user's login name, since that is better than
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
612 nothing. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
613 #define USER_FULL_NAME pw->pw_gecos
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
614
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
615 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
616 #define XLIB_ILLEGAL_ACCESS 1
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
617 #endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
618
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
619 /* alloca twiddling.
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
620 Because we might be #including alloca.h here, feature test macros
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
621 such as _XOPEN_SOURCE must be defined above. */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
622
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
623 #undef HAVE_ALLOCA_H
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
624 #ifndef NOT_C_CODE
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
625 #if defined (__CYGWIN__)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
626 /* We get complaints about redefinitions if we just use the __GNUC__
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
627 definition: stdlib.h also includes alloca.h, which defines it slightly
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
628 differently */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
629 #include <alloca.h>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
630 #elif defined (__GNUC__)
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
631 #define alloca __builtin_alloca
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
632 #elif defined (WIN32_NO_CONFIGURE)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
633 /* Defines size_t and alloca (). */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
634 #include <malloc.h>
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
635 #elif defined (__DECC)
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
636 #include <alloca.h>
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
637 #pragma intrinsic(alloca)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
638 #elif defined (HAVE_ALLOCA_H)
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
639 #include <alloca.h>
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
640 #elif defined (_AIX)
615
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
641 /* AIX requires this before any "real" code in the translation unit. */
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
642 #pragma alloca
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
643 #elif ! defined (alloca)
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
644 void *alloca ();
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
645 #endif
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
646 #endif /* C code */
4f50f8a33f96 [xemacs-hg @ 2001-06-11 04:44:52 by martinb]
martinb
parents: 567
diff changeset
647
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
648 /* The configuration script may define `opsysfile' to be the name of
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
649 the s/...h file that describes your operating system.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
650 The file name is chosen based on the configuration name. */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
651
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
652 #if defined (__cplusplus) && !defined (NOT_C_CODE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
653 extern "C" {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
654 #endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
655
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
656 #undef config_opsysfile
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
657 #ifdef WIN32_NO_CONFIGURE
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
658 #include "s/windowsnt.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
659 #elif defined (config_opsysfile)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
660 #include config_opsysfile
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
661 #endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
662
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
663 /* The configuration script may define `machfile' to be the name of
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
664 the m/...h file that describes the machine you are using.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
665 The file name is chosen based on the configuration name. */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
666
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
667 #undef config_machfile
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
668 #ifdef WIN32_NO_CONFIGURE
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
669 #include "m/windowsnt.h"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
670 #elif defined (config_machfile)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
671 #include config_machfile
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
672 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
673
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
674 #if defined (__cplusplus) && !defined (NOT_C_CODE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
675 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
676 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
677
557
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
678 /* s&m files shouldn't be required to define anything, or even to exist.
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
679 If the s&m files don't define SYSTEM_TYPE, configure will select an
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
680 appropriate default value. */
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
681 #ifndef SYSTEM_TYPE
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
682 #undef SYSTEM_TYPE
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
683 #endif
f486da5f1a3b [xemacs-hg @ 2001-05-22 06:49:12 by martinb]
martinb
parents: 535
diff changeset
684
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
685 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
686 #define SYSTEM_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
687 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
688
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
689 /* Use the relocating allocator for buffer space? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
690 #undef REL_ALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
691
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
692 /* Define the return type of signal handlers if the s/xxx.h file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
693 did not already do so. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
694 #define RETSIGTYPE void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
695
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
696 /* SIGTYPE is the macro we actually use. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
697 #ifndef SIGTYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
698 #define SIGTYPE RETSIGTYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
699 #define SIGRETURN return
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
700 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
701
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
702 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
703
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
704 /* Define DYNODUMP if it is necessary to properly dump on this system.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
705 Currently this is only Solaris 2.x, for x < 6. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
706 #undef DYNODUMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
707
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
708 /* Compile in support for Sun Sparcworks/WorkShop? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
709 #undef SUNPRO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
710
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
711 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
712 support for playing sound files. (On Suns, the sound support is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
713 usually found in /usr/demo/SOUND - you may need to install the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
714 "SUNWaudmo" package.) */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
715 #undef HAVE_NATIVE_SOUND
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
716
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
717 /* Native sound may be provided via soundcard.h, in various directories */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
718 #undef SOUNDCARD_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
719
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
720 /* Compile in support for NAS (Network Audio System)?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
721 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
722 error handling changes. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
723 #undef HAVE_NAS_SOUND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
724 #undef NAS_NO_ERROR_JUMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
725
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
726 /* Compile in support for ESD (Enlightened Sound Daemon)? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
727 #undef HAVE_ESD_SOUND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
728
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
729 /* Compile in support for SunPro usage-tracking code? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
730 #undef USAGE_TRACKING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
731
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
732 /* Compile in support for Tooltalk? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
733 #undef TOOLTALK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
734 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
735 #undef TT_C_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
736
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
737 /* Toolkits used by lwlib for various widgets... */
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
738
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
739 #undef LWLIB_USES_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
740 #undef LWLIB_USES_ATHENA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
741 #undef LWLIB_MENUBARS_LUCID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
742 #undef LWLIB_MENUBARS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
743 #undef LWLIB_SCROLLBARS_LUCID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
744 #undef LWLIB_SCROLLBARS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
745 #undef LWLIB_SCROLLBARS_ATHENA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
746 #undef LWLIB_SCROLLBARS_ATHENA3D
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
747 #undef LWLIB_DIALOGS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
748 #undef LWLIB_DIALOGS_ATHENA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
749 #undef LWLIB_DIALOGS_ATHENA3D
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
750 #undef LWLIB_TABS_LUCID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
751 #undef LWLIB_WIDGETS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
752 #undef LWLIB_WIDGETS_ATHENA
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
753 #undef HAVE_ATHENA_3D
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
754
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
755 /* Other things that can be disabled by configure. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
756 #undef HAVE_MENUBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
757 #undef HAVE_SCROLLBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
758 #undef HAVE_DIALOGS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
759 #undef HAVE_TOOLBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
760 #undef HAVE_WIDGETS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
761
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
762 #endif /* WIN32_NO_CONFIGURE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
763
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
764 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
765 #define HAVE_GUI_OBJECTS
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
766 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
767
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
768 /* For the moment, Athena widgets and dialogs may be very unstable and not
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
769 working well, but things under Windows work much better. configure by
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
770 default tries to turn Windows widgets and dialogs on, but the Athena
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
771 ones off, so let's separate the defines. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
772 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA))
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
773 #define HAVE_X_WIDGETS
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
774 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
775
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
776 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D))
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
777 #define HAVE_X_DIALOGS
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
778 #endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
779
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
780 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
781 #define HAVE_POPUPS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
782 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
783
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
784 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
785 There is a stupid bug in the SunOS libc.a: two functions which X11r5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
786 uses, mbstowcs() and wcstombs(), are unusable when programs are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
787 statically linked (as XEmacs must be) because the static version of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
788 libc.a contains the *dynamic* versions of these functions. These
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
789 functions don't seem to be called when XEmacs is running, so it's
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
790 enough to define stubs for them.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
791
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
792 This appears to be fixed in SunOS 4.1.2.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
793
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
794 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
795 sometimes reference memory past the end of the string, which can segv.
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
796 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
797 #if defined (sparc) && !defined (USG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
798 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
799 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
800
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
801 #ifdef HAVE_CANNA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
802 # define CANNA2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
803 # define CANNA_MULE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
804 # define CANNA_PURESIZE 0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
805 #else /* not CANNA */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
806 # define CANNA_PURESIZE 0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
807 #endif /* not CANNA */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
808
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
809 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
810 #define accept Raccept
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
811 #define bind Rbind
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
812 #define connect Rconnect
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
813 #define getsockname Rgetsockname
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
814 #define listen Rlisten
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
815 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
816
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
817 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
818
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
819 #undef SIZEOF_SHORT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
820 #undef SIZEOF_INT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
821 #undef SIZEOF_LONG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
822 #undef SIZEOF_LONG_LONG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
823 #undef SIZEOF_VOID_P
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
824
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
825 /* Does the keyword `inline' exist? */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
826 #undef inline
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
827
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
828 #endif /* WIN32_NO_CONFIGURE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
829
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
830 #ifndef BITS_PER_CHAR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
831 #define BITS_PER_CHAR 8
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
832 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
833 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
834 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
835 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
836 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
837 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
838
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
839 /* Use `INLINE_HEADER' to define inline functions in .h files.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
840 Use `inline static' to define inline functions in .c files.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
841 See the Internals manual for examples and more information. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
842
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
843 #if defined (__cplusplus) || ! defined (__GNUC__)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
844 # define INLINE_HEADER inline static
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
845 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
846 # define INLINE_HEADER inline
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
847 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
848 # define INLINE_HEADER inline extern
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
849 #endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
850
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
851 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
852 file, like this: (This avoids the need to write a prototype directly
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
853 followed by the function header itself.)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
854
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
855 DECLARE_INLINE_HEADER (int foo (int x))
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
856 {
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
857 return x * x;
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
858 }
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
859
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
860 */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
861
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
862 #define DECLARE_INLINE_HEADER(header) \
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
863 INLINE_HEADER header ; INLINE_HEADER header
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
864
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
865 #ifndef NOT_C_CODE /* Actually means C or C++ */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
866 # if defined (__cplusplus)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
867 /* Avoid C++ keywords used as ordinary C identifiers */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
868 # define class c_class
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
869 # define new c_new
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
870 # define this c_this
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
871 # define catch c_catch
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
872
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
873 # define EXTERN_C extern "C"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
874 # else /* C code */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
875 # define EXTERN_C extern
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
876 # endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
877 #endif /* C or C++ */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
878
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
879 /* Strictly speaking, only int or unsigned int are valid types in a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
880 bitfield. In practice, we would like to use enums as bitfields.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
881 The following should just result in warning avoidance:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
882 warning: nonportable bit-field type */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
883 #ifdef __GNUC__
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
884 #define enum_field(enumeration_type) enum enumeration_type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
885 #else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
886 #define enum_field(enumeration_type) unsigned int
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
887 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
888
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
889 /* We want to avoid saving the signal mask if possible, because
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
890 that necessitates a system call. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
891 #ifdef HAVE_SIGSETJMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
892 # define SETJMP(x) sigsetjmp (x, 0)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
893 # define LONGJMP(x, y) siglongjmp (x, y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
894 # define JMP_BUF sigjmp_buf
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
895 #else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
896 # define SETJMP(x) setjmp (x)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
897 # define LONGJMP(x, y) longjmp (x, y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
898 # define JMP_BUF jmp_buf
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
899 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
900
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
901 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
902
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
903 /* movemail options */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
904 /* Should movemail use POP3 for mail access? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
905 #undef MAIL_USE_POP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
906 /* Should movemail use kerberos for POP authentication? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
907 #undef KERBEROS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
908 /* Should movemail use hesiod for getting POP server host? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
909 #undef HESIOD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
910 /* Determine type of mail locking. */
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
911 #undef MAIL_LOCK_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
912 #undef MAIL_LOCK_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
913 #undef MAIL_LOCK_DOT
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
914 #undef MAIL_LOCK_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
915 #undef MAIL_LOCK_MMDF
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
916
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 557
diff changeset
917 #undef HAVE_MKSTEMP
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 557
diff changeset
918
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
919 #undef PREFIX_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
920 #undef EXEC_PREFIX_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
921 #undef MODULEDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
922 #undef SITEMODULEDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
923 #undef DOCDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
924 #undef LISPDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
925 #undef PACKAGE_PATH_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
926 #undef SITELISPDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
927 #undef ARCHLIBDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
928 #undef ETCDIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
929 #undef INFODIR_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
930 #undef INFOPATH_USER_DEFINED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
931
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
932 #undef PDUMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
933
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
934 #endif /* WIN32_NO_CONFIGURE */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
935
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
936 #if defined (WIN32_NATIVE) || defined (CYGWIN)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
937 # define HAVE_WIN32_CODING_SYSTEMS
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
938 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
939
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
940 /* Move these down here so that the s/m files (esp. windowsnt.h) can
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
941 set them. */
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
942 #ifdef ERROR_CHECK_TYPECHECK
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
943 #define type_checking_assert(assertion) assert (assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
944 #define type_checking_assert_at_line(assertion, file, line) \
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
945 assert_at_line (assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
946 #else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
947 #define type_checking_assert(assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
948 #define type_checking_assert_at_line(assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
949 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
950 #ifdef ERROR_CHECK_CHARBPOS
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
951 #define charbpos_checking_assert(assertion) assert (assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
952 #define charbpos_checking_assert_at_line(assertion, file, line) \
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
953 assert_at_line (assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
954 #else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
955 #define charbpos_checking_assert(assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
956 #define charbpos_checking_assert_at_line(assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
957 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
958 #ifdef ERROR_CHECK_GC
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
959 #define gc_checking_assert(assertion) assert (assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
960 #define gc_checking_assert_at_line(assertion, file, line) \
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
961 assert_at_line (assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
962 #else
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
963 #define gc_checking_assert(assertion)
788
026c5bf9c134 [xemacs-hg @ 2002-03-21 07:29:57 by ben]
ben
parents: 777
diff changeset
964 #define gc_checking_assert_at_line(assertion, file, line)
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
965 #endif
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 724
diff changeset
966
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
967 #endif /* _SRC_CONFIG_H_ */