428
|
1 /* XEmacs site configuration template file. -*- C -*-
|
|
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
|
2994
|
3 Copyright (C) 2000, 2001, 2002, 2004, 2005 Ben Wing.
|
428
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Significantly divergent from FSF. */
|
|
23
|
|
24 /* No code in XEmacs #includes config.h twice, but some of the code
|
|
25 intended to work with other packages as well (like gmalloc.c)
|
|
26 think they can include it as many times as they like. */
|
|
27 #ifndef _SRC_CONFIG_H_
|
|
28 #define _SRC_CONFIG_H_
|
|
29
|
2367
|
30 /* The proper format of this file:
|
|
31
|
|
32 1. All #undef statements that are changed by configure should go together,
|
|
33 BEFORE the inclusion of the s&m files, and need to be bracketed by
|
|
34 #ifndef WIN32_NO_CONFIGURE. There is currently only one exception to
|
|
35 this: SYSTEM_TYPE.
|
|
36
|
|
37 2. All other code, except for the things that may be referenced in s&m
|
|
38 files (there is very very little of this) need to go AFTER the inclusion
|
|
39 of s&m files.
|
|
40
|
|
41 Together, this ensures that the s&m files can override configure
|
|
42 determinations as necessary, and we will properly notice this.
|
|
43 */
|
|
44
|
771
|
45 /*
|
|
46 This file now serves both as config.h.in and simply as config.h under
|
|
47 Windows NT. Under Windows NT, there is no configure script that
|
|
48 operates, so it is necessary for the relevant constants to be set
|
|
49 manually, either by the user (for user options) or in s/windowsnt.h.
|
|
50
|
|
51 Formerly, under NT there were three different places where constants
|
|
52 were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only
|
|
53 the latter two are used. (This separate config.h was a hassle because
|
|
54 it required constant synchronization between it and src/config.h.in.)
|
|
55 Since the options that are substituted by configure are written in
|
|
56 config.h.in with #undef, it is easy to make this file serve as
|
|
57 config.h under Windows NT. Options that are set by the user are
|
|
58 specified in the file config.inc.samp, which is included by xemacs.mak
|
872
|
59 \(the makefile) and used to set command-line options to the
|
771
|
60 compiler. The sorts of options that relate to the system and not to
|
|
61 the user and which are normally auto-determined by configure are set
|
|
62 in windowsnt.h.
|
|
63
|
|
64 What this means is that a little more care has to be taken in the way
|
|
65 things are arranged in config.h.in. In particular:
|
|
66
|
|
67 -- Everything that is written with a #undef should be bracketed by
|
|
68 #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be
|
|
69 grouped together as much as possible.
|
|
70
|
|
71 -- Things that are not #undefs should not go inside this bracketed
|
|
72 #ifdef, because these things typically set constants based on other
|
|
73 constants and those latter constants may be set elsewhere under
|
|
74 Windows NT.
|
|
75
|
|
76 -- Any #ifdefs that depend on constants that may be set in windowsnt.h
|
|
77 need to be moved after the point at which this file is
|
|
78 included. This applies for example to the error checking macros.
|
|
79 */
|
|
80
|
|
81 #if defined (WIN32_NATIVE) && !defined (MINGW)
|
|
82 # define WIN32_NO_CONFIGURE
|
|
83 #endif
|
|
84
|
428
|
85 /* Use this to add code in a structured way to FSF-maintained source
|
|
86 files so as to make it obvious where XEmacs changes are. */
|
|
87 #define XEMACS 1
|
|
88
|
771
|
89 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
90
|
442
|
91 /* Program name */
|
|
92 #undef EMACS_PROGNAME
|
|
93
|
428
|
94 /* Allow s&m files to differentiate OS versions without having
|
|
95 multiple files to maintain. */
|
|
96 #undef OS_RELEASE
|
|
97
|
|
98 /* The configuration name. This is used as the install directory name
|
|
99 for the lib-src programs. */
|
|
100 #undef EMACS_CONFIGURATION
|
|
101
|
|
102 /* The configuration options. This is exported to Lisp. */
|
|
103 #undef EMACS_CONFIG_OPTIONS
|
|
104
|
|
105 /* The version info from version.sh. Used in #pragma ident in emacs.c */
|
|
106 #undef EMACS_MAJOR_VERSION
|
|
107 #undef EMACS_MINOR_VERSION
|
|
108 #undef EMACS_PATCH_LEVEL
|
|
109 #undef EMACS_BETA_VERSION
|
|
110 #undef EMACS_VERSION
|
|
111 #undef XEMACS_CODENAME
|
975
|
112 #undef XEMACS_EXTRA_NAME
|
2602
|
113 #undef XEMACS_RELEASE_DATE
|
428
|
114 /* InfoDock versions, not used with XEmacs */
|
|
115 #undef INFODOCK_MAJOR_VERSION
|
|
116 #undef INFODOCK_MINOR_VERSION
|
|
117 #undef INFODOCK_BUILD_VERSION
|
|
118
|
442
|
119 /* Make functions from IEEE Stds 1003.[123] available. */
|
|
120 #undef _POSIX_C_SOURCE
|
|
121
|
|
122 /* Make some functions from Unix98 available. */
|
|
123 #undef _XOPEN_SOURCE
|
|
124
|
|
125 /* Make "extensions" from Unix98 available. */
|
|
126 #undef _XOPEN_SOURCE_EXTENDED
|
|
127
|
428
|
128 /* Make all functions available on AIX. See AC_AIX. */
|
1294
|
129 /* Some AIX compilers (cc) pre-define _ALL_SOURCE, some (xlc) don't. */
|
1284
|
130 #ifndef _ALL_SOURCE
|
428
|
131 #undef _ALL_SOURCE
|
1284
|
132 #endif
|
428
|
133
|
|
134 /* Make all functions available on GNU libc systems. See features.h. */
|
|
135 #undef _GNU_SOURCE
|
|
136
|
442
|
137 /* Make all functions available on Solaris 2 systems. */
|
|
138 #undef __EXTENSIONS__
|
|
139
|
1799
|
140 /* Define to the name of the typeof extension, if the compiler supports one */
|
|
141 #undef TYPEOF
|
|
142
|
428
|
143 /* Used to identify the XEmacs version in stack traces. */
|
|
144 #undef STACK_TRACE_EYE_CATCHER
|
|
145
|
|
146 /* Allow the configurer to specify if she wants site-lisp. */
|
|
147 #undef INHIBIT_SITE_LISP
|
|
148
|
|
149 /* Allow the configurer to specify if she wants site-modules. */
|
|
150 #undef INHIBIT_SITE_MODULES
|
|
151
|
|
152 /* Undefine on systems which don't have processes */
|
|
153 #undef HAVE_UNIX_PROCESSES
|
|
154
|
|
155 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
|
|
156 #undef GNU_MALLOC
|
|
157
|
|
158 /* Define if you are using the GNU C Library. -- experimental. */
|
|
159 #undef DOUG_LEA_MALLOC
|
|
160
|
|
161 /* Define if you are using libmcheck.a from the GNU C Library. */
|
|
162 #undef HAVE_LIBMCHECK
|
|
163
|
|
164 /* Define if you are using dlmalloc from the Linux C library. */
|
|
165 #undef _NO_MALLOC_WARNING_
|
|
166
|
|
167 /* Use the system malloc? */
|
|
168 #undef USE_SYSTEM_MALLOC
|
|
169
|
|
170 /* Use a debugging malloc? -- experimental */
|
|
171 #undef USE_DEBUG_MALLOC
|
|
172
|
2367
|
173 /* Use the relocating allocator for buffer space? */
|
|
174 #undef REL_ALLOC
|
|
175
|
|
176 /* If using the C implementation of alloca, define if you know the
|
|
177 direction of stack growth for your system; otherwise it will be
|
|
178 automatically deduced at run-time.
|
|
179 STACK_DIRECTION > 0 => grows toward higher addresses
|
|
180 STACK_DIRECTION < 0 => grows toward lower addresses
|
|
181 STACK_DIRECTION = 0 => direction of growth unknown */
|
|
182 #undef STACK_DIRECTION
|
|
183
|
|
184 /* Is alloca() broken when part of an argument to a function call? */
|
|
185 #undef BROKEN_ALLOCA_IN_FUNCTION_CALLS
|
|
186
|
|
187 /* Define to 1 if you have `alloca', as a function or macro. */
|
|
188 #undef HAVE_ALLOCA
|
|
189
|
|
190 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
|
191 */
|
|
192 #undef HAVE_ALLOCA_H
|
|
193
|
|
194 /* Define to 1 if using `alloca.c'. */
|
|
195 #undef C_ALLOCA
|
|
196
|
428
|
197 /* Compile in TTY support? */
|
|
198 #undef HAVE_TTY
|
|
199
|
|
200 /* Compile in support for MS windows? */
|
|
201 #undef HAVE_MS_WINDOWS
|
|
202
|
|
203 /* special cygwin process handling? */
|
|
204 #undef HAVE_MSG_SELECT
|
|
205
|
|
206 /* Compile in support for the X window system? */
|
|
207 #undef HAVE_X_WINDOWS
|
|
208
|
3354
|
209 /* Compile with support for fontconfig? */
|
|
210 #undef HAVE_FONTCONFIG
|
|
211
|
3094
|
212 /* Compile with support for Xft? */
|
|
213 #undef USE_XFT
|
|
214 /* Per-widget stuff will go away? */
|
|
215 #undef USE_XFT_MENUBARS
|
|
216 #undef USE_XFT_TABS
|
|
217 #undef USE_XFT_GAUGE
|
|
218
|
428
|
219 /* Defines for building X applications */
|
|
220 #ifdef HAVE_X_WINDOWS
|
|
221 /* The following will be defined if xmkmf thinks they are necessary */
|
|
222 #undef SVR4
|
|
223 #undef SYSV
|
|
224 #undef AIXV3
|
|
225 #undef _POSIX_SOURCE
|
|
226 #undef _BSD_SOURCE
|
|
227 #undef _SVID_SOURCE
|
|
228 #undef X_LOCALE
|
|
229 #undef NARROWPROTO
|
771
|
230 #endif /* HAVE_X_WINDOWS */
|
|
231
|
462
|
232 /* Defines for building Gtk applications */
|
|
233 #undef HAVE_GNOME
|
|
234 #undef HAVE_GTK
|
|
235 #undef HAVE_GDK_IMLIB_INIT
|
|
236 #undef HAVE_GLADE_GLADE_H
|
|
237 #undef HAVE_GLADE_H
|
|
238 #undef LIBGLADE_XML_TXTDOMAIN
|
|
239
|
444
|
240 /* XFree86 has a different prototype for this function */
|
|
241 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK
|
|
242 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
428
|
243
|
|
244 #undef THIS_IS_X11R4
|
|
245 #undef THIS_IS_X11R5
|
|
246 #undef THIS_IS_X11R6
|
|
247
|
442
|
248 #undef HAVE_XCONVERTCASE
|
2625
|
249 #undef HAVE_XTREGISTERDRAWABLE
|
442
|
250
|
|
251 #undef HAVE_BALLOON_HELP
|
|
252
|
428
|
253 /* Where do we find bitmaps? */
|
|
254 #undef BITMAPDIR
|
|
255
|
|
256 /* Define AMPERSAND_FULL_NAME if you use the convention
|
|
257 that & in the full name stands for the login id. */
|
|
258 #undef AMPERSAND_FULL_NAME
|
|
259
|
|
260 /* Some things figured out by the configure script, grouped as they are in
|
|
261 configure.in. */
|
|
262 #undef HAVE_MCHECK_H
|
442
|
263 #undef HAVE_A_OUT_H
|
446
|
264 #undef HAVE_ELF_H
|
442
|
265 #undef HAVE_CYGWIN_VERSION_H
|
|
266 #undef HAVE_FCNTL_H
|
|
267 #undef HAVE_INTTYPES_H
|
|
268 #undef HAVE_LIBGEN_H
|
|
269 #undef HAVE_LOCALE_H
|
912
|
270 #undef HAVE_WCHAR_H
|
428
|
271 #undef HAVE_MACH_MACH_H
|
442
|
272 #undef HAVE_SYS_PARAM_H
|
|
273 #undef HAVE_SYS_PSTAT_H
|
2263
|
274 #undef HAVE_SYS_RESOURCE_H
|
442
|
275 #undef HAVE_SYS_TIME_H
|
428
|
276 #undef HAVE_SYS_TIMEB_H
|
777
|
277 #undef HAVE_SYS_TIMES_H
|
442
|
278 #undef HAVE_SYS_UN_H
|
2263
|
279 #undef HAVE_SYS_VLIMIT_H
|
442
|
280 #undef HAVE_ULIMIT_H
|
428
|
281 #undef HAVE_UNISTD_H
|
442
|
282
|
428
|
283 #undef HAVE_SYS_WAIT_H
|
|
284 #undef HAVE_LIBINTL_H
|
|
285 #undef HAVE_X11_XLOCALE_H
|
872
|
286
|
|
287 /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C
|
|
288 defines it, but its value is 0 unless we disable non-ANSI extensions.
|
|
289 VC++ doesn't define it at all unless we disable non-ANSI extensions.
|
|
290 But these compilers are all ANSI-compliant. So don't go testing
|
|
291 __STDC__ anywhere except in code that runs only on known
|
|
292 compilers. --ben
|
|
293
|
|
294 Jamie wrote the following:
|
|
295
|
|
296 [[ The ANSI standard says that defining __STDC__ to a non-zero value
|
|
297 means that the compiler conforms to that standard. The standard
|
|
298 requires certain header files and library functions to be present.
|
|
299 Therefore, if your compiler defines __STDC__ to non-0 but does not have
|
|
300 ANSI headers and the ANSI library routines, then your compiler is
|
|
301 buggy. Conversely, an ANSI-conforming environment (which has both the
|
|
302 ANSI headers and library routines, i.e., stdlib.h and `memmove') does
|
|
303 not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an
|
|
304 ANSI compiler. Therefore, there is no need to consult the abominable
|
|
305 STDC_HEADERS flag. -- jwz ]]
|
|
306
|
|
307 In reality, we should not be testing STDC_HEADERS at all except
|
|
308 possibly in code we're purposely keeping in close sync with FSF code.
|
|
309 STDC_HEADERS should be defined on *ALL* compilers.
|
|
310 */
|
|
311
|
428
|
312 #undef STDC_HEADERS
|
872
|
313
|
428
|
314 #undef TIME_WITH_SYS_TIME
|
|
315 #undef WORDS_BIGENDIAN
|
|
316
|
|
317 #undef HAVE_LONG_FILE_NAMES
|
|
318
|
|
319 /* Use lock files to detect multiple edits of the same file? */
|
|
320 #undef CLASH_DETECTION
|
|
321
|
|
322 /* Have shared library support */
|
|
323 #undef HAVE_DLOPEN
|
|
324 #undef HAVE_DLERROR
|
|
325 #undef HAVE__DLERROR
|
|
326 #undef HAVE_SHL_LOAD
|
1383
|
327 #undef HAVE_DYLD
|
2078
|
328 #undef HAVE_LTDL
|
1259
|
329 #undef DLSYM_NEEDS_UNDERSCORE
|
1790
|
330 #undef HAVE_SHLIB
|
428
|
331
|
|
332 #undef HAVE_LIBINTL
|
|
333 #undef HAVE_LIBDNET
|
|
334 #undef HAVE_LIBRESOLV
|
|
335
|
|
336 /* Is `sys_siglist' declared by <signal.h>? */
|
2651
|
337 #undef HAVE_DECL_SYS_SIGLIST
|
428
|
338
|
|
339 /* Is `struct timeval' declared by <sys/time.h>? */
|
|
340 #undef HAVE_TIMEVAL
|
|
341
|
|
342
|
|
343 #undef TM_IN_SYS_TIME
|
|
344 #undef HAVE_TM_ZONE
|
|
345 #undef HAVE_TZNAME
|
|
346
|
442
|
347 /* For `getloadavg' provided by system */
|
|
348 #undef HAVE_GETLOADAVG
|
|
349 #undef HAVE_SYS_LOADAVG_H
|
|
350 /* For implementing `getloadavg' ourselves */
|
|
351 #undef HAVE_LIBKSTAT
|
|
352 #undef HAVE_KSTAT_H
|
|
353
|
428
|
354 /* Is `h_errno' declared by <netdb.h>? */
|
|
355 #undef HAVE_H_ERRNO
|
|
356
|
|
357 /* Does `localtime' cache TZ? */
|
|
358 #undef LOCALTIME_CACHE
|
|
359
|
|
360 /* Can `gettimeofday' accept two arguments? */
|
|
361 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
362
|
2367
|
363 /* Is scanf() broken? (Under certain versions of Cygwin) */
|
|
364 #undef CYGWIN_SCANF_BUG
|
|
365
|
428
|
366 #undef HAVE_MMAP
|
|
367 #undef HAVE_STRCOLL
|
|
368 #undef HAVE_GETPGRP
|
|
369 #undef GETPGRP_VOID
|
|
370
|
|
371 #undef HAVE_INVERSE_HYPERBOLIC
|
|
372
|
2367
|
373 /* Functions in the big list of functions checked for */
|
428
|
374 #undef HAVE_CBRT
|
|
375 #undef HAVE_CLOSEDIR
|
|
376 #undef HAVE_DUP2
|
|
377 #undef HAVE_EACCESS
|
|
378 #undef HAVE_FMOD
|
|
379 #undef HAVE_FPATHCONF
|
|
380 #undef HAVE_FREXP
|
2367
|
381 #undef HAVE_FSYNC
|
428
|
382 #undef HAVE_FTIME
|
2367
|
383 #undef HAVE_FTRUNCATE
|
440
|
384 #undef HAVE_GETADDRINFO
|
428
|
385 #undef HAVE_GETHOSTNAME
|
440
|
386 #undef HAVE_GETNAMEINFO
|
428
|
387 #undef HAVE_GETPAGESIZE
|
2263
|
388 #undef HAVE_GETRLIMIT
|
428
|
389 #undef HAVE_GETTIMEOFDAY
|
|
390 #undef HAVE_GETCWD
|
771
|
391 #undef HAVE_LINK
|
428
|
392 #undef HAVE_LOGB
|
|
393 #undef HAVE_LRAND48
|
|
394 #undef HAVE_MATHERR
|
|
395 #undef HAVE_MKDIR
|
|
396 #undef HAVE_MKTIME
|
|
397 #undef HAVE_PERROR
|
|
398 #undef HAVE_POLL
|
|
399 #undef HAVE_RANDOM
|
771
|
400 #undef HAVE_READLINK
|
428
|
401 #undef HAVE_RENAME
|
|
402 #undef HAVE_RES_INIT
|
|
403 #undef HAVE_RINT
|
|
404 #undef HAVE_RMDIR
|
|
405 #undef HAVE_SELECT
|
|
406 #undef HAVE_SETITIMER
|
|
407 #undef HAVE_SETPGID
|
|
408 #undef HAVE_SETSID
|
|
409 #undef HAVE_SIGBLOCK
|
|
410 #undef HAVE_SIGHOLD
|
|
411 #undef HAVE_SIGPROCMASK
|
|
412 #undef HAVE_SNPRINTF
|
|
413 #undef HAVE_STRERROR
|
1204
|
414 #undef HAVE_STRLWR
|
|
415 #undef HAVE_STRUPR
|
771
|
416 #undef HAVE_SYMLINK
|
428
|
417 #undef HAVE_TZSET
|
|
418 #undef HAVE_ULIMIT
|
2367
|
419 #undef HAVE_UMASK
|
428
|
420 #undef HAVE_USLEEP
|
2367
|
421 #undef HAVE_VLIMIT
|
|
422 #undef HAVE_VSNPRINTF
|
|
423 #undef HAVE_WAITPID
|
|
424 #undef HAVE_WCSCMP
|
|
425 #undef HAVE_WCSLEN
|
|
426
|
3092
|
427 /* Functions and structs checked for vdb. */
|
|
428 #undef HAVE_MPROTECT
|
|
429 #undef HAVE_SIGACTION
|
|
430 #undef HAVE_STRUCT_SIGINFO_SI_ADDR
|
|
431 #undef HAVE_SIGINFO_T_SI_ADDR
|
|
432 #undef HAVE_SIGNAL
|
|
433 #undef HAVE_STRUCT_SIGCONTEXT_CR2
|
|
434
|
460
|
435 #undef HAVE_UTIME
|
428
|
436 #undef HAVE_UTIMES
|
2367
|
437 #undef HAVE_SIGSETJMP
|
442
|
438
|
535
|
439 /* Many flavors of PTY support */
|
2651
|
440 /* glibc's easy pty allocation function */
|
|
441 #undef HAVE_GETPT
|
|
442 /* SGI's easy pty allocation function */
|
|
443 #undef HAVE__GETPTY
|
|
444 /* BSD's easy pty allocation function */
|
|
445 #undef HAVE_OPENPTY
|
|
446 /* Unix98 */
|
|
447 #undef HAVE_GRANTPT
|
|
448 /* Unix98 */
|
|
449 #undef HAVE_UNLOCKPT
|
|
450 /* Unix98 */
|
|
451 #undef HAVE_PTSNAME
|
|
452 /* BSD */
|
|
453 #undef HAVE_KILLPG
|
|
454 /* Posix 1 */
|
|
455 #undef HAVE_TCGETPGRP
|
|
456 /* SysV streams */
|
|
457 #undef HAVE_ISASTREAM
|
|
458 /* AIX */
|
|
459 #undef HAVE_SYS_PTY_H
|
|
460 /* HP-UX */
|
|
461 #undef HAVE_SYS_PTYIO_H
|
|
462 /* Linux, Tru64 */
|
|
463 #undef HAVE_PTY_H
|
|
464 /* BSD openpty */
|
|
465 #undef HAVE_LIBUTIL_H
|
|
466 /* NetBSD openpty */
|
|
467 #undef HAVE_UTIL_H
|
|
468 /* SysV streams */
|
|
469 #undef HAVE_STROPTS_H
|
|
470 /* SysV streams TIOCSIGNAL */
|
|
471 #undef HAVE_STRTIO_H
|
442
|
472
|
428
|
473 #undef HAVE_SOCKETS
|
|
474 #undef HAVE_SOCKADDR_SUN_LEN
|
|
475 #undef HAVE_MULTICAST
|
|
476 #undef HAVE_SYSVIPC
|
438
|
477 #undef HAVE_LOCKF
|
|
478 #undef HAVE_FLOCK
|
428
|
479
|
|
480 #undef SYSV_SYSTEM_DIR
|
|
481 #undef NONSYSTEM_DIR_LIBRARY
|
|
482
|
|
483 #undef HAVE_TERMIOS
|
|
484 #undef HAVE_TERMIO
|
|
485 #undef NO_TERMIO
|
|
486 #undef SIGNALS_VIA_CHARACTERS
|
|
487
|
|
488 #undef NLIST_STRUCT
|
|
489
|
724
|
490 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */
|
|
491 #undef IPV6_CANONICALIZE
|
|
492
|
428
|
493 /* Compile in support for SOCKS? */
|
|
494 #undef HAVE_SOCKS
|
|
495
|
|
496 /* Compile in support for X pixmaps via the `xpm' library? */
|
|
497 #undef HAVE_XPM
|
|
498 #undef FOR_MSW
|
|
499
|
|
500 /* Compile in support for "X faces" via the `compface' library?
|
|
501 This enables graphical display of X-face headers in mail/news messages */
|
|
502 #undef HAVE_XFACE
|
|
503
|
|
504 /* Compile in support for JPEG images */
|
|
505 #undef HAVE_JPEG
|
|
506
|
|
507 /* Compile in support for TIFF images */
|
|
508 #undef HAVE_TIFF
|
|
509
|
|
510 /* Compile in support for GIF images */
|
|
511 #undef HAVE_GIF
|
|
512
|
|
513 /* Compile in support for PNG images */
|
|
514 #undef HAVE_PNG
|
|
515
|
771
|
516 /* Compile in support for GZIP compression */
|
|
517 #undef HAVE_ZLIB
|
|
518
|
428
|
519 /* Do you have the Xmu library?
|
|
520 This should always be the case except on losing HP-UX systems. */
|
|
521 #undef HAVE_XMU
|
|
522
|
|
523 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
|
|
524 #undef HAVE_DBM
|
|
525
|
3739
|
526 /* Define to 1 if the system has the type `u_int8_t'. */
|
|
527 #undef HAVE_U_INT8_T
|
|
528 /* Define to 1 if the system has the type `u_int16_t'. */
|
|
529 #undef HAVE_U_INT16_T
|
|
530 /* Define to 1 if the system has the type `u_int32_t'. */
|
|
531 #undef HAVE_U_INT32_T
|
|
532 /* Define to 1 if the system has the type `u_int64_t'. */
|
|
533 #undef HAVE_U_INT64_T
|
|
534
|
428
|
535 /* Compile in support for Berkeley DB style databases? May require libdb. */
|
|
536 #undef HAVE_BERKELEY_DB
|
|
537 /* Full #include file path for Berkeley DB's db.h */
|
442
|
538 #undef DB_H_FILE
|
428
|
539
|
|
540 /* Do we have either DBM or Berkeley DB database support? */
|
|
541 #undef HAVE_DATABASE
|
|
542
|
|
543 /* Do we have LDAP support? */
|
|
544 #undef HAVE_LDAP
|
|
545 /* Does the library define ldap_set_option () ? */
|
|
546 #undef HAVE_LDAP_SET_OPTION
|
|
547 /* Does the library define ldap_get_lderrno () ? */
|
|
548 #undef HAVE_LDAP_GET_LDERRNO
|
|
549 /* Does the library define ldap_result2error () ? */
|
|
550 #undef HAVE_LDAP_RESULT2ERROR
|
|
551 /* Does the library define ldap_parse_result () ? */
|
|
552 #undef HAVE_LDAP_PARSE_RESULT
|
|
553
|
442
|
554 /* Do we have PostgreSQL RDBMS support? */
|
|
555 #undef HAVE_POSTGRESQL
|
|
556 #undef HAVE_POSTGRESQLV7
|
2651
|
557 /* main PostgreSQL header file */
|
|
558 #undef LIBPQ_FE_H_FILE
|
442
|
559
|
428
|
560 /* Do you have the Xauth library present? This will add some extra
|
|
561 functionality to gnuserv. */
|
|
562 #undef HAVE_XAUTH
|
|
563
|
|
564 /* Compile in support for gpm (General Purpose Mouse)? */
|
|
565 #undef HAVE_GPM
|
|
566
|
|
567 /* Compile in support for ncurses? */
|
|
568 #undef HAVE_NCURSES
|
|
569 /* Full #include file paths for ncurses' curses.h and term.h. */
|
442
|
570 #undef CURSES_H_FILE
|
|
571 #undef TERM_H_FILE
|
428
|
572
|
|
573 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
|
|
574 If the assertion fails, assert_failed() will be called. This is
|
|
575 recommended for general use because it gives more info about the crash
|
|
576 than just the abort() message. Too many people "Can't find the corefile"
|
|
577 or have limit-ed core dumps out of existence. */
|
|
578 #undef USE_ASSERTIONS
|
|
579
|
|
580 /* Define one or more of the following if you want lots of extra checks
|
|
581 (e.g. structure validation) compiled in. These should be turned
|
|
582 on during the beta-test cycle. */
|
|
583
|
|
584 /* Check the entire extent structure of a buffer each time an extent
|
|
585 change is done, and do other extent-related checks. */
|
|
586 #undef ERROR_CHECK_EXTENTS
|
440
|
587
|
800
|
588 /* Turn on checks related to types -- make sure that all X... macros are
|
|
589 dereferencing the correct type, and that all XSET... macros (as much as
|
|
590 possible) are setting the correct type of structure; check any other
|
|
591 places that a specific type is expected. */
|
|
592 #undef ERROR_CHECK_TYPES
|
440
|
593
|
800
|
594 /* Turn on checks related to text -- check that text in strings and buffers
|
|
595 is in a valid format before we use it, check that buffer positions are
|
|
596 valid, etc. */
|
|
597 #undef ERROR_CHECK_TEXT
|
440
|
598
|
428
|
599 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
|
|
600 #undef ERROR_CHECK_GC
|
440
|
601
|
428
|
602 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
|
|
603 #undef ERROR_CHECK_MALLOC
|
440
|
604
|
428
|
605 /* Minor sanity checking of the bytecode interpreter. Useful for
|
|
606 debugging the byte compiler. */
|
|
607 #undef ERROR_CHECK_BYTE_CODE
|
|
608
|
442
|
609 /* Minor sanity checking of glyphs, especially subwindows and
|
|
610 widgets. */
|
|
611 #undef ERROR_CHECK_GLYPHS
|
|
612
|
800
|
613 /* Sanity-check the redisplay structures after each modification. */
|
|
614 #undef ERROR_CHECK_DISPLAY
|
|
615
|
|
616 /* Define for any sanity checks on structures that are not handled by a
|
|
617 more specific error-checking type. */
|
|
618 #undef ERROR_CHECK_STRUCTURES
|
|
619
|
428
|
620 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
621 This is mainly intended for use by developers. */
|
|
622 #undef DEBUG_XEMACS
|
|
623
|
|
624 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
625 determine where XEmacs' memory is going. */
|
|
626 #undef MEMORY_USAGE_STATS
|
|
627
|
460
|
628 /* Define QUANTIFY if using Quantify from Rational Software.
|
428
|
629 This adds some additional calls to control data collection.
|
|
630 It is only intended for use by the developers. */
|
|
631 #undef QUANTIFY
|
|
632
|
460
|
633 /* Define PURIFY if using Purify from Rational Software.
|
428
|
634 It is only intended for use by the developers. */
|
|
635 #undef PURIFY
|
|
636
|
|
637 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
638 widget within another program. */
|
|
639 #undef EXTERNAL_WIDGET
|
|
640
|
|
641 /* There are some special-case defines for gcc and lcc. */
|
|
642 #undef USE_GCC
|
|
643 #undef USE_LCC
|
|
644
|
|
645 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
646 Requires libDtSvc, which typically must be present at runtime. */
|
|
647 #undef HAVE_CDE
|
|
648
|
|
649 /* Compile in support for OffiX Drag and Drop? */
|
|
650 #undef HAVE_OFFIX_DND
|
|
651
|
|
652 /* Compile in generic Drag'n'Drop API */
|
|
653 #undef HAVE_DRAGNDROP
|
|
654
|
|
655 /* Compile in support for proper handling of WM_COMMAND. */
|
|
656 #undef HAVE_WMCOMMAND
|
|
657
|
|
658 /* Define this if you want Mule support (multi-byte character support).
|
|
659 There may be some performance penalty, although it should be small
|
|
660 if you're working with ASCII files. */
|
|
661 #undef MULE
|
|
662
|
771
|
663 /* Define this if you want EOL detection of files to be on by default
|
|
664 in a non-Mule Unix; otherwise, defaults will be set so that all
|
|
665 files are read in as binary. Doesn't apply to Cygwin or MinGW. */
|
|
666 #undef HAVE_DEFAULT_EOL_DETECTION
|
428
|
667
|
1259
|
668 /* Support X FontSets. Evil, yes, but if we're going to make it go away
|
|
669 by using faces in the menubar we should do so. */
|
|
670 #undef USE_XFONTSET
|
|
671
|
428
|
672 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
673 If so, use raw Xlib or higher level Motif interface? */
|
|
674 #undef HAVE_XIM
|
|
675 #undef XIM_XLIB
|
|
676 #undef XIM_MOTIF
|
|
677
|
|
678 /* Non-XIM input methods for use with Mule. */
|
|
679 #undef HAVE_CANNA
|
3830
|
680 #undef CANNA_NEW_WCHAR_AWARE
|
428
|
681 #undef HAVE_WNN
|
|
682 #undef WNN6
|
|
683
|
442
|
684 /* Debugging development option: Remove inessential but time consuming
|
|
685 actions from happening during build. This saves a lot of time when
|
|
686 you're repeatedly compiling-running-crashing. This (1) doesn't
|
|
687 garbage-collect after loading each file during dumping, and (2)
|
|
688 doesn't automatically rebuild the DOC file. (Remove it by hand to
|
|
689 get it rebuilt.)
|
|
690 */
|
|
691 #undef QUICK_BUILD
|
428
|
692
|
872
|
693 /* If true, run the compiler with many files at once rather than one at a
|
|
694 time. May speed up compilation time with some compilers, particularly
|
|
695 if the entire compilation happens in a single process -- the process can
|
|
696 cache the results of processing include files. This definitely helps
|
|
697 with VC++ (although it doesn't use Makefile.in.in) but not with GCC,
|
|
698 which runs many processes per file to compile. */
|
|
699 #undef BATCH_COMPILER_RUNS
|
|
700
|
771
|
701 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
702 seem to require this, probably because something with the int
|
|
703 definitions isn't right with 64-bit systems. */
|
|
704 #undef USE_UNION_TYPE
|
|
705
|
926
|
706 /* If defined, use experimental pdump-based GC algorithms. */
|
|
707 #undef USE_KKCC
|
|
708
|
3263
|
709 /* If defined, use experimental incremental garbage collector and new
|
|
710 allocator. */
|
3092
|
711 #undef NEW_GC
|
|
712
|
|
713 /* Virtual dirty bit implementation for incremental gc. */
|
|
714 #undef VDB_POSIX
|
|
715 #undef VDB_MACH
|
|
716 #undef VDB_WIN32
|
|
717 #undef VDB_FAKE
|
|
718
|
771
|
719 /* Enable special GNU Make features in the Makefiles. */
|
|
720 #undef USE_GNU_MAKE
|
|
721
|
428
|
722 /* Defined by AC_C_CONST in configure.in */
|
|
723 #undef const
|
|
724
|
434
|
725 /* Allow the source to use standard types. Include these before the
|
|
726 s&m files so that they can use them. */
|
|
727 #undef ssize_t
|
|
728 #undef size_t
|
|
729 #undef pid_t
|
|
730 #undef mode_t
|
|
731 #undef off_t
|
|
732 #undef uid_t
|
|
733 #undef gid_t
|
442
|
734 #undef socklen_t
|
434
|
735
|
2367
|
736 /* Enhanced numeric support */
|
|
737 #undef WITH_NUMBER_TYPES
|
|
738 #undef WITH_GMP
|
|
739 #undef WITH_MP
|
|
740 #undef MP_PREFIX
|
|
741 #undef HAVE_MP_MOVE
|
771
|
742
|
2367
|
743 #undef SIZEOF_SHORT
|
|
744 #undef SIZEOF_INT
|
|
745 #undef SIZEOF_LONG
|
|
746 #undef SIZEOF_LONG_LONG
|
|
747 #undef SIZEOF_VOID_P
|
|
748 #undef SIZEOF_DOUBLE
|
615
|
749
|
2367
|
750 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h>
|
|
751 but the standard is <inttypes.h>
|
|
752 ugliness due to last-resort conditional typedef'ing in lisp.h */
|
|
753 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H
|
|
754
|
|
755 /* Does the keyword `inline' exist? */
|
|
756 #undef inline
|
428
|
757
|
2367
|
758 /* movemail options */
|
|
759 /* Should movemail use POP3 for mail access? */
|
|
760 #undef MAIL_USE_POP
|
|
761 /* Should movemail use kerberos for POP authentication? */
|
|
762 #undef KERBEROS
|
|
763 /* Should movemail use hesiod for getting POP server host? */
|
|
764 #undef HESIOD
|
|
765 /* Determine type of mail locking. */
|
|
766 #undef MAIL_LOCK_LOCKF
|
|
767 #undef MAIL_LOCK_FLOCK
|
|
768 #undef MAIL_LOCK_DOT
|
|
769 #undef MAIL_LOCK_LOCKING
|
|
770 #undef MAIL_LOCK_MMDF
|
428
|
771
|
2367
|
772 #undef HAVE_MKSTEMP
|
428
|
773
|
2367
|
774 #undef PREFIX_USER_DEFINED
|
|
775 #undef EXEC_PREFIX_USER_DEFINED
|
|
776 #undef MODULEDIR_USER_DEFINED
|
|
777 #undef SITEMODULEDIR_USER_DEFINED
|
|
778 #undef DOCDIR_USER_DEFINED
|
|
779 #undef LISPDIR_USER_DEFINED
|
3179
|
780 #undef EARLY_PACKAGE_DIRECTORIES_USER_DEFINED
|
|
781 #undef LATE_PACKAGE_DIRECTORIES_USER_DEFINED
|
|
782 #undef LAST_PACKAGE_DIRECTORIES_USER_DEFINED
|
2367
|
783 #undef PACKAGE_PATH_USER_DEFINED
|
|
784 #undef SITELISPDIR_USER_DEFINED
|
|
785 #undef ARCHLIBDIR_USER_DEFINED
|
|
786 #undef ETCDIR_USER_DEFINED
|
|
787 #undef INFODIR_USER_DEFINED
|
|
788 #undef INFOPATH_USER_DEFINED
|
872
|
789
|
2367
|
790 #undef PDUMP
|
872
|
791
|
2720
|
792 /* Define DUMP_IN_EXEC to include the dump file in the executable
|
|
793 file. */
|
|
794 #undef DUMP_IN_EXEC
|
|
795
|
428
|
796 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
797 Currently this is only Solaris 2.x, for x < 6. */
|
|
798 #undef DYNODUMP
|
|
799
|
|
800 /* Compile in support for Sun Sparcworks/WorkShop? */
|
|
801 #undef SUNPRO
|
|
802
|
|
803 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
|
|
804 support for playing sound files. (On Suns, the sound support is
|
|
805 usually found in /usr/demo/SOUND - you may need to install the
|
|
806 "SUNWaudmo" package.) */
|
|
807 #undef HAVE_NATIVE_SOUND
|
771
|
808
|
428
|
809 /* Native sound may be provided via soundcard.h, in various directories */
|
442
|
810 #undef SOUNDCARD_H_FILE
|
428
|
811
|
3308
|
812 /* Compile in support for ALSA (Advanced Linux Sound Architecture) */
|
|
813 #undef HAVE_ALSA_SOUND
|
|
814
|
428
|
815 /* Compile in support for NAS (Network Audio System)?
|
|
816 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
|
817 error handling changes. */
|
|
818 #undef HAVE_NAS_SOUND
|
|
819 #undef NAS_NO_ERROR_JUMP
|
|
820
|
|
821 /* Compile in support for ESD (Enlightened Sound Daemon)? */
|
|
822 #undef HAVE_ESD_SOUND
|
|
823
|
|
824 /* Compile in support for SunPro usage-tracking code? */
|
|
825 #undef USAGE_TRACKING
|
|
826
|
|
827 /* Compile in support for Tooltalk? */
|
|
828 #undef TOOLTALK
|
|
829 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
|
442
|
830 #undef TT_C_H_FILE
|
428
|
831
|
|
832 /* Toolkits used by lwlib for various widgets... */
|
771
|
833
|
428
|
834 #undef LWLIB_USES_MOTIF
|
|
835 #undef LWLIB_USES_ATHENA
|
|
836 #undef LWLIB_MENUBARS_LUCID
|
|
837 #undef LWLIB_MENUBARS_MOTIF
|
|
838 #undef LWLIB_SCROLLBARS_LUCID
|
|
839 #undef LWLIB_SCROLLBARS_MOTIF
|
|
840 #undef LWLIB_SCROLLBARS_ATHENA
|
|
841 #undef LWLIB_SCROLLBARS_ATHENA3D
|
|
842 #undef LWLIB_DIALOGS_MOTIF
|
|
843 #undef LWLIB_DIALOGS_ATHENA
|
|
844 #undef LWLIB_DIALOGS_ATHENA3D
|
|
845 #undef LWLIB_TABS_LUCID
|
|
846 #undef LWLIB_WIDGETS_MOTIF
|
|
847 #undef LWLIB_WIDGETS_ATHENA
|
440
|
848 #undef HAVE_ATHENA_3D
|
428
|
849
|
|
850 /* Other things that can be disabled by configure. */
|
|
851 #undef HAVE_MENUBARS
|
|
852 #undef HAVE_SCROLLBARS
|
|
853 #undef HAVE_DIALOGS
|
|
854 #undef HAVE_TOOLBARS
|
|
855 #undef HAVE_WIDGETS
|
|
856
|
771
|
857 #endif /* WIN32_NO_CONFIGURE */
|
|
858
|
2994
|
859 #ifdef _MSC_VER
|
|
860 /* Turn off tons of C4996 warnings in VC 8 about standard functions being
|
|
861 "deprecated" in favor of Microsoft-specific "secure" ones (!)
|
|
862 This must go *before* the inclusion of any system files. */
|
|
863 #define _CRT_SECURE_NO_DEPRECATE
|
|
864 #endif
|
|
865
|
2367
|
866 /* alloca twiddling.
|
|
867 Because we might be #including alloca.h here, feature test macros
|
|
868 such as _XOPEN_SOURCE must be defined above.
|
|
869
|
|
870 #### This really should go below the inclusion of s&m files, like
|
|
871 everything else. */
|
|
872
|
|
873 #ifndef NOT_C_CODE
|
|
874 #if defined (__CYGWIN__)
|
|
875 /* We get complaints about redefinitions if we just use the __GNUC__
|
|
876 definition: stdlib.h also includes alloca.h, which defines it slightly
|
|
877 differently */
|
|
878 #include <alloca.h>
|
|
879 #elif defined (__GNUC__)
|
|
880 #define alloca __builtin_alloca
|
|
881 #elif defined (WIN32_NO_CONFIGURE)
|
|
882 /* Defines size_t and alloca (). */
|
|
883 #include <malloc.h>
|
|
884 #elif defined (__DECC)
|
|
885 #include <alloca.h>
|
|
886 #pragma intrinsic(alloca)
|
|
887 #elif defined (HAVE_ALLOCA_H)
|
|
888 #include <alloca.h>
|
|
889 #elif defined (_AIX)
|
|
890 /* AIX requires this before any "real" code in the translation unit. */
|
|
891 #pragma alloca
|
|
892 #elif ! defined (alloca)
|
|
893 #ifdef C_ALLOCA
|
|
894 #define alloca xemacs_c_alloca
|
|
895 #else
|
|
896 void *alloca ();
|
|
897 #endif /* C_ALLOCA */
|
|
898 #endif /* !defined (alloca) */
|
|
899 #endif /* C code */
|
|
900
|
|
901 /* The configuration script may define `opsysfile' to be the name of
|
|
902 the s/...h file that describes your operating system.
|
|
903 The file name is chosen based on the configuration name. */
|
|
904
|
|
905 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
906 extern "C" {
|
|
907 #endif
|
|
908
|
|
909 #undef config_opsysfile
|
|
910 #ifdef WIN32_NO_CONFIGURE
|
|
911 #include "s/windowsnt.h"
|
|
912 #elif defined (config_opsysfile)
|
|
913 #include config_opsysfile
|
|
914 #endif
|
|
915
|
|
916 /* The configuration script may define `machfile' to be the name of
|
|
917 the m/...h file that describes the machine you are using.
|
|
918 The file name is chosen based on the configuration name. */
|
|
919
|
|
920 #undef config_machfile
|
|
921 #ifdef WIN32_NO_CONFIGURE
|
|
922 #include "m/windowsnt.h"
|
|
923 #elif defined (config_machfile)
|
|
924 #include config_machfile
|
|
925 #endif
|
|
926
|
|
927 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
928 }
|
|
929 #endif
|
|
930
|
|
931 /* This will be removed in 19.15. */
|
|
932 /* Hah! Try 20.3 ... */
|
|
933 /* Hah! Try never ... */
|
|
934 /* If at first you don't succeed, try, try again. */
|
|
935 /* #define LOSING_BYTECODE */
|
|
936
|
|
937 /* USER_FULL_NAME returns a string that is the user's full name.
|
|
938 It can assume that the variable `pw' points to the password file
|
|
939 entry for this user.
|
|
940
|
|
941 At some sites, the pw_gecos field contains the user's full name.
|
|
942 If neither this nor any other field contains the right thing, use
|
|
943 pw_name, giving the user's login name, since that is better than
|
|
944 nothing. */
|
|
945 #define USER_FULL_NAME pw->pw_gecos
|
|
946
|
|
947 #define XEMACS_WANTS_C_ALLOCA
|
|
948
|
|
949 /* s&m files shouldn't be required to define anything, or even to exist.
|
|
950 If the s&m files don't define SYSTEM_TYPE, configure will select an
|
|
951 appropriate default value. */
|
|
952 #ifndef SYSTEM_TYPE
|
|
953 #undef SYSTEM_TYPE
|
|
954 #endif
|
|
955
|
|
956 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
957 #define SYSTEM_MALLOC
|
|
958 #endif
|
|
959
|
2994
|
960 /* This enables type based information (updated during gc). The output
|
|
961 is used by show-memory-usage to print memory information for each
|
|
962 type. Since the new allocator does not distinguish between types
|
|
963 anymore, this functionality is additionally implemented and
|
|
964 consumes a lot of time. That is why this functionality can be
|
|
965 disabled; for the moment, we keep it enabled. */
|
|
966 #if !defined (MC_ALLOC) || 1
|
|
967 # define ALLOC_TYPE_STATS 1
|
|
968 #endif
|
|
969
|
2367
|
970 /* Define the return type of signal handlers if the s/xxx.h file
|
|
971 did not already do so. */
|
|
972 #define RETSIGTYPE void
|
|
973
|
|
974 #ifndef XCDECL
|
|
975 #define XCDECL
|
|
976 #endif
|
|
977
|
|
978 /* SIGTYPE is the macro we actually use. */
|
|
979 #ifndef SIGTYPE
|
|
980 #define SIGTYPE RETSIGTYPE XCDECL
|
|
981 #define SIGRETURN return
|
|
982 #endif
|
|
983
|
|
984 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
|
985 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
|
|
986 #define HAVE_WINDOW_SYSTEM
|
|
987 #endif
|
|
988
|
771
|
989 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS)
|
|
990 #define HAVE_GUI_OBJECTS
|
|
991 #endif
|
|
992
|
2367
|
993 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
994 #define HAVE_POPUPS
|
|
995 #endif
|
|
996
|
|
997 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS)
|
|
998 #define HAVE_XLIKE
|
|
999 #endif
|
|
1000
|
771
|
1001 /* For the moment, Athena widgets and dialogs may be very unstable and not
|
|
1002 working well, but things under Windows work much better. configure by
|
|
1003 default tries to turn Windows widgets and dialogs on, but the Athena
|
|
1004 ones off, so let's separate the defines. */
|
|
1005 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA))
|
|
1006 #define HAVE_X_WIDGETS
|
|
1007 #endif
|
|
1008
|
|
1009 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D))
|
|
1010 #define HAVE_X_DIALOGS
|
|
1011 #endif
|
428
|
1012
|
2367
|
1013 #ifdef HAVE_X_WINDOWS
|
|
1014 /* The following should always be defined, no matter what xmkmf thinks. */
|
|
1015 #ifndef NeedFunctionPrototypes
|
|
1016 #define NeedFunctionPrototypes 1
|
|
1017 #endif
|
|
1018 #ifndef FUNCPROTO
|
|
1019 #define FUNCPROTO 15
|
|
1020 #endif
|
|
1021 #endif /* HAVE_X_WINDOWS */
|
|
1022
|
|
1023 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
|
|
1024 #define XLIB_ILLEGAL_ACCESS 1
|
|
1025 #endif
|
|
1026
|
|
1027 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
|
1028 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT)
|
|
1029 #define HAVE_UNIXOID_EVENT_LOOP
|
428
|
1030 #endif
|
|
1031
|
|
1032 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
1033 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
1034 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
1035 statically linked (as XEmacs must be) because the static version of
|
|
1036 libc.a contains the *dynamic* versions of these functions. These
|
|
1037 functions don't seem to be called when XEmacs is running, so it's
|
|
1038 enough to define stubs for them.
|
|
1039
|
|
1040 This appears to be fixed in SunOS 4.1.2.
|
|
1041
|
|
1042 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
1043 sometimes reference memory past the end of the string, which can segv.
|
444
|
1044 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */
|
428
|
1045 #if defined (sparc) && !defined (USG)
|
|
1046 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
1047 #endif
|
|
1048
|
|
1049 #ifdef HAVE_CANNA
|
|
1050 # define CANNA_MULE
|
|
1051 # define CANNA_PURESIZE 0
|
|
1052 #else /* not CANNA */
|
|
1053 # define CANNA_PURESIZE 0
|
|
1054 #endif /* not CANNA */
|
|
1055
|
|
1056 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
1057 #define accept Raccept
|
|
1058 #define bind Rbind
|
|
1059 #define connect Rconnect
|
|
1060 #define getsockname Rgetsockname
|
|
1061 #define listen Rlisten
|
|
1062 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
1063
|
|
1064 #ifndef BITS_PER_CHAR
|
|
1065 #define BITS_PER_CHAR 8
|
|
1066 #endif
|
|
1067 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
1068 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
1069 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
1070 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
1071 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
1983
|
1072 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR)
|
|
1073
|
442
|
1074 /* Use `INLINE_HEADER' to define inline functions in .h files.
|
|
1075 Use `inline static' to define inline functions in .c files.
|
|
1076 See the Internals manual for examples and more information. */
|
|
1077
|
3493
|
1078 #if defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs)
|
442
|
1079 # define INLINE_HEADER inline static
|
|
1080 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
|
|
1081 # define INLINE_HEADER inline
|
|
1082 #else
|
|
1083 # define INLINE_HEADER inline extern
|
|
1084 #endif
|
428
|
1085
|
771
|
1086 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header
|
|
1087 file, like this: (This avoids the need to write a prototype directly
|
|
1088 followed by the function header itself.)
|
|
1089
|
|
1090 DECLARE_INLINE_HEADER (int foo (int x))
|
|
1091 {
|
|
1092 return x * x;
|
|
1093 }
|
|
1094
|
|
1095 */
|
|
1096
|
|
1097 #define DECLARE_INLINE_HEADER(header) \
|
|
1098 INLINE_HEADER header ; INLINE_HEADER header
|
|
1099
|
442
|
1100 #ifndef NOT_C_CODE /* Actually means C or C++ */
|
|
1101 # if defined (__cplusplus)
|
|
1102 # define EXTERN_C extern "C"
|
|
1103 # else /* C code */
|
|
1104 # define EXTERN_C extern
|
|
1105 # endif
|
|
1106 #endif /* C or C++ */
|
428
|
1107
|
|
1108 /* Strictly speaking, only int or unsigned int are valid types in a
|
|
1109 bitfield. In practice, we would like to use enums as bitfields.
|
|
1110 The following should just result in warning avoidance:
|
|
1111 warning: nonportable bit-field type */
|
|
1112 #ifdef __GNUC__
|
|
1113 #define enum_field(enumeration_type) enum enumeration_type
|
|
1114 #else
|
|
1115 #define enum_field(enumeration_type) unsigned int
|
|
1116 #endif
|
|
1117
|
|
1118 /* We want to avoid saving the signal mask if possible, because
|
|
1119 that necessitates a system call. */
|
|
1120 #ifdef HAVE_SIGSETJMP
|
|
1121 # define SETJMP(x) sigsetjmp (x, 0)
|
|
1122 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
1123 # define JMP_BUF sigjmp_buf
|
|
1124 #else
|
|
1125 # define SETJMP(x) setjmp (x)
|
|
1126 # define LONGJMP(x, y) longjmp (x, y)
|
|
1127 # define JMP_BUF jmp_buf
|
|
1128 #endif
|
|
1129
|
838
|
1130 /* For the moment, we go ahead and keep this, since it's used in mouse.el.
|
|
1131 #### font-lock does its own version using parse-partial-sexp. We should
|
|
1132 merge the two. */
|
|
1133 #define USE_C_FONT_LOCK
|
|
1134
|
800
|
1135 #ifdef ERROR_CHECK_ALL
|
|
1136 #define ERROR_CHECK_EXTENTS
|
|
1137 #define ERROR_CHECK_TYPES
|
|
1138 #define ERROR_CHECK_TEXT
|
|
1139 #define ERROR_CHECK_GC
|
|
1140 #define ERROR_CHECK_MALLOC
|
|
1141 #define ERROR_CHECK_BYTE_CODE
|
|
1142 #define ERROR_CHECK_GLYPHS
|
|
1143 #define ERROR_CHECK_DISPLAY
|
|
1144 #define ERROR_CHECK_STRUCTURES
|
|
1145 #endif /* ERROR_CHECK_ALL */
|
|
1146
|
428
|
1147 #endif /* _SRC_CONFIG_H_ */
|