Mercurial > hg > xemacs-beta
comparison nt/config.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02111-1307, USA. */ |
20 | 20 |
21 /* Synched up with: FSF 19.30 (more or less). */ | 21 /* Synched up with: FSF 19.30 (more or less). */ |
22 | 22 |
23 /* No code in XEmacs #includes config.h twice, but some of the code | 23 /* No code in XEmacs #includes config.h twice, but some of the code |
24 intended to work with other packages as well (like gmalloc.c) | 24 intended to work with other packages as well (like gmalloc.c) |
25 think they can include it as many times as they like. */ | 25 think they can include it as many times as they like. */ |
26 #ifndef _SRC_CONFIG_H_ | 26 #ifndef _SRC_CONFIG_H_ |
27 #define _SRC_CONFIG_H_ | 27 #define _SRC_CONFIG_H_ |
28 | 28 |
29 #define NTHEAP_PROBE_BASE 1 | 29 #define NTHEAP_PROBE_BASE 1 |
64 /* #undef PACKAGE_PATH */ | 64 /* #undef PACKAGE_PATH */ |
65 | 65 |
66 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point | 66 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point |
67 numbers. */ | 67 numbers. */ |
68 #undef LISP_FLOAT_TYPE | 68 #undef LISP_FLOAT_TYPE |
69 | |
70 /* Define GNU_MALLOC if you want to use the *new* GNU memory allocator. */ | |
71 #define GNU_MALLOC | |
72 | |
73 /* Define USE_SYSTEM_MALLOC if you forcing the use of it. */ | |
74 #undef USE_SYSTEM_MALLOC | |
69 | 75 |
70 /* Define HAVE_TTY if you want TTY support compiled in. */ | 76 /* Define HAVE_TTY if you want TTY support compiled in. */ |
71 #undef HAVE_TTY | 77 #undef HAVE_TTY |
72 | 78 |
73 /* Compile in support for the X window system? */ | 79 /* Compile in support for the X window system? */ |
152 #undef HAVE_SYS_TIMEB_H | 158 #undef HAVE_SYS_TIMEB_H |
153 #undef HAVE_UNISTD_H | 159 #undef HAVE_UNISTD_H |
154 #undef HAVE_UTIME_H | 160 #undef HAVE_UTIME_H |
155 #undef HAVE_SYS_WAIT_H | 161 #undef HAVE_SYS_WAIT_H |
156 #undef HAVE_LIBGEN_H | 162 #undef HAVE_LIBGEN_H |
163 #undef HAVE_LINUX_VERSION_H | |
157 #undef WORDS_BIGENDIAN | 164 #undef WORDS_BIGENDIAN |
158 #undef TIME_WITH_SYS_TIME | 165 #undef TIME_WITH_SYS_TIME |
159 | 166 |
160 #undef HAVE_SYS_TIME_H | 167 #define HAVE_SYS_TIME_H |
161 #define HAVE_LOCALE_H | 168 #define HAVE_LOCALE_H |
162 #ifdef HAVE_X_WINDOWS | 169 #ifdef HAVE_X_WINDOWS |
163 #define HAVE_X11_LOCALE_H | 170 #define HAVE_X11_LOCALE_H |
164 #endif | 171 #endif |
165 #define STDC_HEADERS | 172 #define STDC_HEADERS |
228 #undef HAVE_FMOD | 235 #undef HAVE_FMOD |
229 #undef HAVE_FPATHCONF | 236 #undef HAVE_FPATHCONF |
230 #undef HAVE_FREXP | 237 #undef HAVE_FREXP |
231 #undef HAVE_FTIME | 238 #undef HAVE_FTIME |
232 #undef HAVE_GETHOSTNAME | 239 #undef HAVE_GETHOSTNAME |
233 | 240 #undef HAVE_GETPAGESIZE |
234 #define HAVE_GETPAGESIZE | |
235 #define getpagesize() 4096 | |
236 | |
237 #define HAVE_GETTIMEOFDAY | 241 #define HAVE_GETTIMEOFDAY |
238 #define HAVE_GETWD | 242 #define HAVE_GETWD |
239 #undef HAVE_LOGB | 243 #undef HAVE_LOGB |
240 #undef HAVE_LRAND48 | 244 #undef HAVE_LRAND48 |
241 #undef HAVE_MATHERR | 245 #undef HAVE_MATHERR |
287 #undef HAVE_DBM | 291 #undef HAVE_DBM |
288 | 292 |
289 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */ | 293 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */ |
290 #undef HAVE_BERKELEY_DB | 294 #undef HAVE_BERKELEY_DB |
291 /* Full #include file path for Berkeley DB's db.h */ | 295 /* Full #include file path for Berkeley DB's db.h */ |
292 #undef DB_H_FILE | 296 #undef DB_H_PATH |
293 | 297 |
294 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB) | 298 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB) |
295 # define HAVE_DATABASE | 299 # define HAVE_DATABASE |
296 #endif | 300 #endif |
297 | 301 |
298 /* Define HAVE_NCURSES if -lncurses is present. */ | 302 /* Define HAVE_NCURSES if -lncurses is present. */ |
299 #undef HAVE_NCURSES | 303 #undef HAVE_NCURSES |
300 /* Full #include file paths for ncurses' curses.h and term.h. */ | 304 /* Full #include file paths for ncurses' curses.h and term.h. */ |
301 #undef CURSES_H_FILE | 305 #undef CURSES_H_PATH |
302 #undef TERM_H_FILE | 306 #undef TERM_H_PATH |
303 | 307 |
304 #define LOWTAGS | 308 #define LOWTAGS |
305 | 309 |
306 #ifdef DEBUG_XEMACS | 310 #ifdef DEBUG_XEMACS |
307 | 311 |
330 etc. */ | 334 etc. */ |
331 #define ERROR_CHECK_MALLOC | 335 #define ERROR_CHECK_MALLOC |
332 | 336 |
333 #endif /* DEBUG_XEMACS */ | 337 #endif /* DEBUG_XEMACS */ |
334 | 338 |
335 /* Define convenient conditionally defined assertion macros. */ | |
336 #ifdef ERROR_CHECK_TYPECHECK | |
337 #define type_checking_assert(assertion) assert (assertion) | |
338 #else | |
339 #define type_checking_assert(assertion) | |
340 #endif | |
341 | |
342 #ifdef ERROR_CHECK_BUFPOS | |
343 #define bufpos_checking_assert(assertion) assert (assertion) | |
344 #else | |
345 #define bufpos_checking_assert(assertion) | |
346 #endif | |
347 | |
348 #ifdef ERROR_CHECK_GC | |
349 #define gc_checking_assert(assertion) assert (assertion) | |
350 #else | |
351 #define gc_checking_assert(assertion) | |
352 #endif | |
353 | |
354 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to | 339 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to |
355 determine where XEmacs's memory is going. */ | 340 determine where XEmacs's memory is going. */ |
356 #undef MEMORY_USAGE_STATS | 341 #undef MEMORY_USAGE_STATS |
357 | 342 |
358 /* Define QUANTIFY if using Quantify from Pure Software. This adds | 343 /* Define QUANTIFY if using Quantify from Pure Software. This adds |
424 | 409 |
425 /* Undocumented debugging option: Don't automatically rebuild the DOC | 410 /* Undocumented debugging option: Don't automatically rebuild the DOC |
426 file. This saves a lot of time when you're repeatedly | 411 file. This saves a lot of time when you're repeatedly |
427 compiling-running-crashing. */ | 412 compiling-running-crashing. */ |
428 #undef NO_DOC_FILE | 413 #undef NO_DOC_FILE |
414 | |
415 #define CONST const | |
429 | 416 |
430 /* If not defined, use unions instead of ints. A few systems (DEC Alpha) | 417 /* If not defined, use unions instead of ints. A few systems (DEC Alpha) |
431 seem to require this, probably because something with the int | 418 seem to require this, probably because something with the int |
432 definitions isn't right with 64-bit systems. | 419 definitions isn't right with 64-bit systems. |
433 | 420 |
487 | 474 |
488 /* Define SUNPRO to compiled in support for Sun Sparcworks. */ | 475 /* Define SUNPRO to compiled in support for Sun Sparcworks. */ |
489 #undef SUNPRO | 476 #undef SUNPRO |
490 | 477 |
491 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing | 478 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing |
492 different sound files as beeps. If you are on a SparcStation but do not | 479 different sound files as beeps. If you are on a SparcStation but do not |
493 have the sound option installed for some reason, then undefine | 480 have the sound option installed for some reason, then undefine |
494 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4 | 481 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4 |
495 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo" | 482 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo" |
496 package.) | 483 package.) |
497 */ | 484 */ |
537 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. | 524 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. |
538 There is a stupid bug in the SunOS libc.a: two functions which X11r5 | 525 There is a stupid bug in the SunOS libc.a: two functions which X11r5 |
539 uses, mbstowcs() and wcstombs(), are unusable when programs are | 526 uses, mbstowcs() and wcstombs(), are unusable when programs are |
540 statically linked (as XEmacs must be) because the static version of | 527 statically linked (as XEmacs must be) because the static version of |
541 libc.a contains the *dynamic* versions of these functions. These | 528 libc.a contains the *dynamic* versions of these functions. These |
542 functions don't seem to be called when XEmacs is running, so it's | 529 functions don't seem to be called when XEmacs is running, so it's |
543 enough to define stubs for them. | 530 enough to define stubs for them. |
544 | 531 |
545 This appears to be fixed in SunOS 4.1.2. | 532 This appears to be fixed in SunOS 4.1.2. |
546 | 533 |
547 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that | 534 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that |
560 /* System calls that are encapsulated */ | 547 /* System calls that are encapsulated */ |
561 #define ENCAPSULATE_RENAME | 548 #define ENCAPSULATE_RENAME |
562 #define ENCAPSULATE_OPEN | 549 #define ENCAPSULATE_OPEN |
563 #define ENCAPSULATE_FOPEN | 550 #define ENCAPSULATE_FOPEN |
564 #define ENCAPSULATE_MKDIR | 551 #define ENCAPSULATE_MKDIR |
565 #define ENCAPSULATE_STAT | 552 |
566 #define ENCAPSULATE_FSTAT | 553 #if defined (WIN32) && defined (USE_IME) |
554 #define HAVE_FEP | |
555 #endif | |
567 | 556 |
568 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) | 557 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) |
569 #define accept Raccept | 558 #define accept Raccept |
570 #define bind Rbind | 559 #define bind Rbind |
571 #define connect Rconnect | 560 #define connect Rconnect |
582 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | 571 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) |
583 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | 572 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) |
584 | 573 |
585 /* MSVC version >= 2.x without /Za supports __inline */ | 574 /* MSVC version >= 2.x without /Za supports __inline */ |
586 #if (_MSC_VER < 900) || defined(__STDC__) | 575 #if (_MSC_VER < 900) || defined(__STDC__) |
587 # define inline | 576 # define INLINE static |
588 #else | 577 #else |
589 # define inline __inline | 578 # define INLINE __inline |
590 #endif | 579 #endif |
591 | |
592 #define INLINE_HEADER inline static | |
593 | 580 |
594 /* MSVC warnings no-no crap. When adding one to this section, | 581 /* MSVC warnings no-no crap. When adding one to this section, |
595 1. Think twice | 582 1. Think twice |
596 2. Insert textual description of the warning. | 583 2. Insert textual description of the warning. |
597 3. Think twice. Undo still works */ | 584 3. Think twice. Undo still works */ |
599 | 586 |
600 /* 'expression' : signed/unsigned mismatch */ | 587 /* 'expression' : signed/unsigned mismatch */ |
601 #pragma warning ( disable : 4018 ) | 588 #pragma warning ( disable : 4018 ) |
602 | 589 |
603 #endif /* compiler understands #pragma warning*/ | 590 #endif /* compiler understands #pragma warning*/ |
604 | |
605 #ifndef NOT_C_CODE /* Actually means C or C++ */ | |
606 # if defined (__cplusplus) | |
607 /* Avoid C++ keywords used as ordinary C identifiers */ | |
608 # define class c_class | |
609 # define new c_new | |
610 # define this c_this | |
611 # define catch c_catch | |
612 # define not c_not | |
613 | |
614 # define EXTERN_C extern "C" | |
615 # else /* C code */ | |
616 # define EXTERN_C extern | |
617 # endif | |
618 #endif /* C or C++ */ | |
619 | 591 |
620 #define enum_field(enumeration_type) unsigned int | 592 #define enum_field(enumeration_type) unsigned int |
621 | 593 |
622 /* We want to avoid saving the signal mask if possible, because | 594 /* We want to avoid saving the signal mask if possible, because |
623 that necessitates a system call. */ | 595 that necessitates a system call. */ |
637 /* Should movemail use kerberos for POP authentication? */ | 609 /* Should movemail use kerberos for POP authentication? */ |
638 #undef KERBEROS | 610 #undef KERBEROS |
639 /* Should movemail use hesiod for getting POP server host? */ | 611 /* Should movemail use hesiod for getting POP server host? */ |
640 #undef HESIOD | 612 #undef HESIOD |
641 /* Determine type of mail locking. */ | 613 /* Determine type of mail locking. */ |
642 #undef MAIL_LOCK_LOCKF | 614 /* Play preprocessor games so that configure options override s&m files */ |
643 #undef REAL_LOCK_FLOCK | 615 #undef REAL_MAIL_USE_LOCKF |
644 #undef MAIL_LOCK_DOT | 616 #undef REAL_MAIL_USE_FLOCK |
617 #undef MAIL_USE_LOCKF | |
618 #undef MAIL_USE_FLOCK | |
619 #ifdef REAL_MAIL_USE_FLOCK | |
620 #define MAIL_USE_FLOCK | |
621 #endif | |
622 #ifdef REAL_MAIL_USE_LOCKF | |
623 #define MAIL_USE_LOCKF | |
624 #endif | |
645 | 625 |
646 #endif /* _SRC_CONFIG_H_ */ | 626 #endif /* _SRC_CONFIG_H_ */ |