(sentence-end-double-space, sentence-end-without-period): Move to paragraphs.
[emacs.git] / mac / inc / config.h
blobaeb4a8aaad7258c3735910d47cc5f2092569b02c
1 /* Handcrafted Emacs site configuration file for Mac OS. -*- C -*- */
3 /* GNU Emacs site configuration template file. -*- C -*-
4 Copyright (C) 1988, 1993, 1994, 1999, 2000 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs; see the file COPYING. If not, write to the
20 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
24 /* No code in Emacs #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 EMACS_CONFIG_H
28 #define EMACS_CONFIG_H
30 /* These are all defined in the top-level Makefile by configure.
31 They're here only for reference. */
33 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
34 /* #undef GNU_MALLOC */
36 /* Define if you are using the GNU C Library. */
37 /* #undef DOUG_LEA_MALLOC */
39 /* Define REL_ALLOC if you want to use the relocating allocator for
40 buffer space. */
41 /* #undef REL_ALLOC */
43 /* Define HAVE_X_WINDOWS if you want to use the X window system. */
44 /* #undef HAVE_X_WINDOWS */
46 /* Define HAVE_X11 if you want to use version 11 of X windows.
47 Otherwise, Emacs expects to use version 10. */
48 /* #undef HAVE_X11 */
50 /* Define if using an X toolkit. */
51 /* #undef USE_X_TOOLKIT */
53 /* Define this if you're using XFree386. */
54 /* #undef HAVE_XFREE386 */
56 /* Define this if you have Motif 2.1 or newer. */
57 /* #undef HAVE_MOTIF_2_1 */
59 /* Define HAVE_MENUS if you have mouse menus.
60 (This is automatic if you use X, but the option to specify it remains.)
61 It is also defined with other window systems that support xmenu.c. */
62 #define HAVE_MENUS 1
64 /* Define if we have the X11R6 or newer version of Xt. */
65 /* #undef HAVE_X11XTR6 */
67 /* Define if we have the X11R6 or newer version of Xlib. */
68 /* #undef HAVE_X11R6 */
70 /* Define if we have the X11R5 or newer version of Xlib. */
71 /* #undef HAVE_X11R5 */
73 /* Define if we have the XPM libary. */
74 /* #undef HAVE_XPM */
76 /* Define if we have the PNG library. */
77 /* #undef HAVE_PNG */
79 /* Define if we have the JPEG library. */
80 /* #undef HAVE_JPEG */
82 /* Define if we have the TIFF library. */
83 /* #undef HAVE_TIFF */
85 /* Define if we have the GIF library. */
86 /* #undef HAVE_GIF */
88 /* Define if libXaw3d is available. */
89 /* #undef HAVE_XAW3D */
91 /* Define if we should use toolkit scroll bars. */
92 /* #undef USE_TOOLKIT_SCROLL_BARS */
94 /* Define if we should use XIM, if it is available. */
95 /* #undef USE_XIM */
97 /* Define if netdb.h declares h_errno. */
98 /* #undef HAVE_H_ERRNO */
100 /* If we're using any sort of window system, define some consequences. */
101 #ifdef HAVE_X_WINDOWS
102 #define HAVE_WINDOW_SYSTEM
103 #define MULTI_KBOARD
104 #define HAVE_MOUSE
105 #endif
107 /* Define for MacOS */
108 #define HAVE_WINDOW_SYSTEM 1
109 #define HAVE_MOUSE 1
111 /* Define USER_FULL_NAME to return a string
112 that is the user's full name.
113 It can assume that the variable `pw'
114 points to the password file entry for this user.
116 At some sites, the pw_gecos field contains
117 the user's full name. If neither this nor any other
118 field contains the right thing, use pw_name,
119 giving the user's login name, since that is better than nothing. */
120 #define USER_FULL_NAME pw->pw_name
122 /* Define AMPERSAND_FULL_NAME if you use the convention
123 that & in the full name stands for the login id. */
124 /* Turned on June 1996 supposing nobody will mind it. */
125 /* #undef AMPERSAND_FULL_NAME */
127 /* Things set by --with options in the configure script. */
129 /* Define to support POP mail retrieval. */
130 /* #undef MAIL_USE_POP 1 */
132 /* Define to support Kerberos-authenticated POP mail retrieval. */
133 /* #undef KERBEROS */
134 /* Define to use Kerberos 5 instead of Kerberos 4 */
135 /* #undef KERBEROS5 */
136 /* Define to support GSS-API in addition to (or instead of) Kerberos */
137 /* #undef GSSAPI */
139 /* Define to support using a Hesiod database to find the POP server. */
140 /* #undef HESIOD */
142 /* Header for Voxware or PCM sound card driver. */
143 /* #undef HAVE_MACHINE_SOUNDCARD_H */
144 /* #undef HAVE_SYS_SOUNDCARD_H */
145 /* #undef HAVE_SOUNDCARD_H */
147 /* Define HAVE_SOUND if we have sound support. We know it works
148 and compiles only on the specified platforms. For others,
149 it probably doesn't make sense to try. */
151 #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__
152 #ifdef HAVE_MACHINE_SOUNDCARD_H
153 #define HAVE_SOUND 1
154 #endif
155 #ifdef HAVE_SYS_SOUNDCARD_H
156 #define HAVE_SOUND 1
157 #endif
158 #ifdef HAVE_SOUNDCARD_H
159 #define HAVE_SOUND 1
160 #endif
161 #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */
163 /* Some things figured out by the configure script, grouped as they are in
164 configure.in. */
165 #ifndef _ALL_SOURCE /* suppress warning if this is pre-defined */
166 /* #undef _ALL_SOURCE */
167 #endif
169 /* #undef HAVE_SYS_SELECT_H */
170 /* #undef HAVE_SYS_TIMEB_H */
171 #define HAVE_SYS_TIME_H 1
173 #ifdef __MRC__
174 #undef HAVE_UNISTD_H
175 #else /* CodeWarrior */
176 #define HAVE_UNISTD_H 1
177 #endif
179 #define HAVE_UTIME_H 1
180 /* #undef HAVE_LINUX_VERSION_H */
181 /* #undef HAVE_SYS_SYSTEMINFO_H */
182 /* #undef HAVE_TERMIOS_H */
183 #define HAVE_LIMITS_H 1
184 #define HAVE_STRING_H 1
185 /* #undef HAVE_STDLIB_H */
186 /* #undef HAVE_TERMCAP_H */
187 /* #undef HAVE_TERM_H */
188 /* #undef HAVE_STDIO_EXT_H */
189 /* #undef STDC_HEADERS */
190 /* #undef TIME_WITH_SYS_TIME */
191 /* #undef HAVE_VFORK_H */
192 #define HAVE_FCNTL_H 1
193 /* #undef HAVE_SETITIMER */
194 /* #undef HAVE_UALARM */
195 /* #undef HAVE_SYS_WAIT_H */
197 /* #undef HAVE_LIBDNET */
198 /* #undef HAVE_LIBPTHREADS */
199 /* #undef HAVE_LIBRESOLV */
200 /* #undef HAVE_LIBXMU */
201 /* #undef HAVE_LIBNCURSES */
202 /* #undef HAVE_LIBINTL */
203 /* #undef HAVE_LIBXP */
205 /* movemail Kerberos support */
206 /* libraries */
207 /* #undef HAVE_LIBKRB */
208 /* #undef HAVE_LIBKRB4 */
209 /* #undef HAVE_LIBDES */
210 /* #undef HAVE_LIBDES425 */
211 /* #undef HAVE_LIBKRB5 */
212 /* #undef HAVE_LIBCRYPTO */
213 /* #undef HAVE_LIBCOM_ERR */
214 /* header files */
215 /* #undef HAVE_KRB5_H */
216 /* #undef HAVE_DES_H */
217 /* #undef HAVE_KRB_H */
218 /* #undef HAVE_KERBEROSIV_DES_H */
219 /* #undef HAVE_KERBEROSIV_KRB_H */
220 /* #undef HAVE_KERBEROS_DES_H */
221 /* #undef HAVE_KERBEROS_KRB_H */
222 /* #undef HAVE_COM_ERR_H */
224 /* GSS-API libraries and headers */
225 /* #undef HAVE_LIBGSSAPI_KRB5 */
226 /* #undef HAVE_LIBGSSAPI */
227 /* #undef HAVE_GSSAPI_H */
229 /* Mail-file locking */
230 /* #undef HAVE_LIBMAIL */
231 /* #undef HAVE_MAILLOCK_H */
232 /* #undef HAVE_TOUCHLOCK */
234 /* #undef HAVE_ALLOCA_H */
236 /* #undef HAVE_DEV_PTMX */
238 #define HAVE_GETTIMEOFDAY 1
239 /* If we don't have gettimeofday,
240 the test for GETTIMEOFDAY_ONE_ARGUMENT may succeed,
241 but we should ignore it. */
242 #ifdef HAVE_GETTIMEOFDAY
243 #define GETTIMEOFDAY_ONE_ARGUMENT 1
244 #endif
245 /* #undef HAVE_GETHOSTNAME */
246 /* #undef HAVE_GETDOMAINNAME */
247 /* #undef HAVE_DUP2 */
248 #define HAVE_RENAME 1
249 #define HAVE_CLOSEDIR 1
251 /* #undef TM_IN_SYS_TIME */
252 /* #undef HAVE_TM_ZONE */
253 /* #undef HAVE_TZNAME */
254 /* #undef HAVE_TM_GMTOFF */
256 /* #undef const */
258 /* #undef HAVE_LONG_FILE_NAMES */
260 /* #undef CRAY_STACKSEG_END */
262 /* #undef UNEXEC_SRC unexelf.c
264 /* #undef HAVE_LIBXBSD */
265 /* #undef HAVE_XRMSETDATABASE */
266 /* #undef HAVE_XSCREENRESOURCESTRING */
267 /* #undef HAVE_XSCREENNUMBEROFSCREEN */
268 /* #undef HAVE_XSETWMPROTOCOLS */
270 #define HAVE_MKDIR 1
271 #define HAVE_RMDIR 1
272 /* #undef HAVE_SYSINFO */
273 /* #undef HAVE_RANDOM */
274 /* #undef HAVE_LRAND48 */
275 /* #undef HAVE_BCOPY */
276 /* #undef HAVE_BCMP */
277 #define HAVE_LOGB 1
278 #define HAVE_FREXP 1
279 #define HAVE_FMOD 1
281 #ifdef __MRC__
282 #undef HAVE_RINT
283 #else /* CodeWarrior */
284 #define HAVE_RINT
285 #endif
287 /* #undef HAVE_CBRT */
288 /* #undef HAVE_FTIME */
289 /* #undef HAVE_RES_INIT */ /* For -lresolv on Suns. */
290 /* #undef HAVE_SETSID */
291 /* #undef HAVE_FPATHCONF */
292 #define HAVE_SELECT 1
293 /* #undef HAVE_MKTIME */
294 /* #undef BROKEN_MKTIME */ /* have mktime but it's broken */
295 /* #undef HAVE_EUIDACCESS */
296 /* #undef HAVE_GETPAGESIZE */
297 /* #undef HAVE_TZSET */
298 #define HAVE_SETLOCALE 1
299 /* #undef HAVE_UTIMES */
300 /* #undef HAVE_SETRLIMIT */
301 /* #undef HAVE_SETPGID */
302 /* #undef HAVE_GETCWD */
303 #define HAVE_GETWD 1
304 /* #undef HAVE_SHUTDOWN */
305 #define HAVE_STRFTIME 1
306 /* #undef HAVE_GETADDRINFO */
307 /* #undef HAVE___FPENDING */
308 /* #undef HAVE_FTELLO */
309 /* #undef HAVE_GETLOADAVG */
310 /* #undef NLIST_STRUCT */
311 /* #undef NLIST_NAME_UNION */
312 /* #undef HAVE_MBLEN */
313 /* #undef HAVE_MBRLEN */
314 /* #undef HAVE_STRSIGNAL */
315 /* #undef HAVE_GRANTPT */
316 /* #undef HAVE_GETPT */
317 /* #undef HAVE_SPEED_T */ /* speed_t typedef in termios.h */
318 /* #undef HAVE_STRUCT_TIMEZONE */
320 /* #undef LOCALTIME_CACHE */
321 /* #undef HAVE_INET_SOCKETS */
323 /* #undef HAVE_AIX_SMT_EXP */
325 /* #undef vfork */
327 /* Define if you have the ANSI `strerror' function.
328 Otherwise you must have the variable `char *sys_errlist[]'. */
329 #define HAVE_STRERROR 1
331 /* Define if `sys_siglist' is declared by <signal.h>. */
332 /* #undef SYS_SIGLIST_DECLARED */
334 /* Define if `struct utimbuf' is declared by <utime.h>. */
335 #define HAVE_STRUCT_UTIMBUF 1
337 /* Define if `struct timeval' is declared by <sys/time.h>. */
338 #define HAVE_TIMEVAL 1
340 /* If using GNU, then support inline function declarations. */
341 /* Don't try to switch on inline handling as detected by AC_C_INLINE
342 generally, because even if non-gcc compilers accept `inline', they
343 may reject `extern inline'. */
344 #ifdef __GNUC__
345 #define INLINE __inline__
346 #else
347 #define INLINE
348 #endif
350 /* Define this if you don't have struct exception in math.h. */
351 /* #undef NO_MATHERR */
353 /* Define as `void' if your compiler accepts `void *'; otherwise
354 define as `char'. */
355 #define POINTER_TYPE void
356 #define PTR POINTER_TYPE * /* For strftime.c. */
358 /* Number of bits in a file offset, on hosts where this is settable. */
359 /* #undef _FILE_OFFSET_BITS */
360 /* Define to make ftello visible on some hosts (e.g. HP-UX 10.20). */
361 /* #undef _LARGEFILE_SOURCE */
362 /* Define for large files, on AIX-style hosts. */
363 /* #undef _LARGE_FILES */
364 /* Define to make ftello visible on some hosts (e.g. glibc 2.1.3). */
365 /* #undef _XOPEN_SOURCE */
367 #ifdef __MRC__
368 #define EMACS_CONFIGURATION "macos-mpw"
369 #else /* Assume CodeWarrior */
370 #define EMACS_CONFIGURATION "macos-cw"
371 #endif
373 #define EMACS_CONFIG_OPTIONS ""
375 /* The configuration script defines opsysfile to be the name of the
376 s/SYSTEM.h file that describes the system type you are using. The file
377 is chosen based on the configuration name you give.
379 See the file ../etc/MACHINES for a list of systems and the
380 configuration names to use for them.
382 See s/template.h for documentation on writing s/SYSTEM.h files. */
383 #undef config_opsysfile
384 #include "s-mac.h"
386 /* The configuration script defines machfile to be the name of the
387 m/MACHINE.h file that describes the machine you are using. The file is
388 chosen based on the configuration name you give.
390 See the file ../etc/MACHINES for a list of machines and the
391 configuration names to use for them.
393 See m/template.h for documentation on writing m/MACHINE.h files. */
394 #undef config_machfile
395 #include "m-mac.h"
397 /* Load in the conversion definitions if this system
398 needs them and the source file being compiled has not
399 said to inhibit this. There should be no need for you
400 to alter these lines. */
402 #ifdef SHORTNAMES
403 #ifndef NO_SHORTNAMES
404 #include "../shortnames/remap.h"
405 #endif /* not NO_SHORTNAMES */
406 #endif /* SHORTNAMES */
408 /* If no remapping takes place, static variables cannot be dumped as
409 pure, so don't worry about the `static' keyword. */
410 #ifdef NO_REMAP
411 /* #undef static */
412 #endif
414 /* Define `subprocesses' should be defined if you want to
415 have code for asynchronous subprocesses
416 (as used in M-x compile and M-x shell).
417 These do not work for some USG systems yet;
418 for the ones where they work, the s/SYSTEM.h file defines this flag. */
420 #ifndef VMS
421 #ifndef USG
422 /* #define subprocesses */
423 #endif
424 #endif
426 /* Define LD_SWITCH_SITE to contain any special flags your loader may need. */
427 /* #undef LD_SWITCH_SITE */
429 /* Define C_SWITCH_SITE to contain any special flags your compiler needs. */
430 /* #undef C_SWITCH_SITE */
432 /* Define LD_SWITCH_X_SITE to contain any special flags your loader
433 may need to deal with X Windows. For instance, if you've defined
434 HAVE_X_WINDOWS above and your X libraries aren't in a place that
435 your loader can find on its own, you might want to add "-L/..." or
436 something similar. */
437 /* #undef LD_SWITCH_X_SITE */
439 /* Define LD_SWITCH_X_SITE_AUX with an -R option
440 in case it's needed (for Solaris, for example). */
441 /* #undef LD_SWITCH_X_SITE_AUX */
443 /* Define C_SWITCH_X_SITE to contain any special flags your compiler
444 may need to deal with X Windows. For instance, if you've defined
445 HAVE_X_WINDOWS above and your X include files aren't in a place
446 that your compiler can find on its own, you might want to add
447 "-I/..." or something similar. */
448 /* #undef C_SWITCH_X_SITE */
450 /* Define STACK_DIRECTION here, but not if m/foo.h did. */
451 #ifndef STACK_DIRECTION
452 /* #undef STACK_DIRECTION */
453 #endif
455 /* Define the return type of signal handlers if the s-xxx file
456 did not already do so. */
457 #define RETSIGTYPE void
459 /* SIGTYPE is the macro we actually use. */
460 #ifndef SIGTYPE
461 #define SIGTYPE RETSIGTYPE
462 #endif
464 #ifdef emacs /* Don't do this for lib-src. */
465 /* Tell regex.c to use a type compatible with Emacs. */
466 #define RE_TRANSLATE_TYPE Lisp_Object
467 #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
468 #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
469 #endif
471 /* Avoid link-time collision with system mktime if we will use our own. */
472 #if ! HAVE_MKTIME || BROKEN_MKTIME
473 #define mktime emacs_mktime
474 #endif
476 /* The rest of the code currently tests the CPP symbol BSTRING.
477 Override any claims made by the system-description files.
478 Note that on some SCO version it is possible to have bcopy and not bcmp. */
479 /* #undef BSTRING */
480 #if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
481 #define BSTRING
482 #endif
484 /* Define to empty if the keyword `volatile' does not work. Warning:
485 valid code using `volatile' can become incorrect without. Disable
486 with care. */
487 /* #undef volatile */
489 /* Some of the files of Emacs which are intended for use with other
490 programs assume that if you have a config.h file, you must declare
491 the type of getenv.
493 This declaration shouldn't appear when alloca.s or Makefile.in
494 includes config.h. */
495 #ifndef NOT_C_CODE
496 extern char *getenv ();
497 #endif
499 #endif /* EMACS_CONFIG_H */
501 /* These default definitions are good for almost all machines.
502 The exceptions override them in m/MACHINE.h. */
504 #ifndef BITS_PER_CHAR
505 #define BITS_PER_CHAR 8
506 #endif
508 #ifndef BITS_PER_SHORT
509 #define BITS_PER_SHORT 16
510 #endif
512 /* Note that lisp.h uses this in a preprocessor conditional, so it
513 would not work to use sizeof. That being so, we do all of them
514 without sizeof, for uniformity's sake. */
515 #ifndef BITS_PER_INT
516 #define BITS_PER_INT 32
517 #endif
519 #ifndef BITS_PER_LONG
520 #ifdef _LP64
521 #define BITS_PER_LONG 64
522 #else
523 #define BITS_PER_LONG 32
524 #endif
525 #endif
527 /* Define if the compiler supports function prototypes. It may do so
528 but not define __STDC__ (e.g. DEC C by default) or may define it as
529 zero. */
530 /* #undef PROTOTYPES */
531 /* For mktime.c: */
532 #ifndef __P
533 # if defined PROTOTYPES
534 # define __P(args) args
535 # else
536 # define __P(args) ()
537 # endif /* GCC. */
538 #endif /* __P */
541 /* Don't include "string.h" or <stdlib.h> in non-C code. */
542 #ifndef NOT_C_CODE
543 #ifdef HAVE_STRING_H
544 #include "string.h"
545 #endif
546 #ifdef HAVE_STDLIB_H
547 #include <stdlib.h>
548 #endif
549 #endif
551 /* Define HAVE_X_I18N if we have usable i18n support. */
553 #ifdef HAVE_X11R6
554 #define HAVE_X_I18N
555 #elif defined HAVE_X11R5 && !defined X11R5_INHIBIT_I18N
556 #define HAVE_X_I18N
557 #endif
559 /* Define HAVE_X11R6_XIM if we have usable X11R6-style XIM support. */
561 #if defined HAVE_X11R6 && !defined INHIBIT_X11R6_XIM
562 #define HAVE_X11R6_XIM
563 #endif
565 /* Should we enable expensive run-time checking of data types? */
566 /* #undef ENABLE_CHECKING */
568 /* #define GLYPH_DEBUG 1 */
570 #define NO_RETURN /* nothing */