Mercurial > hg > xemacs-beta
comparison src/config.h.in @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 966663fcf606 |
children | ca9a9ec9c1c1 |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
30 AIX requires this to be the first thing in the file. */ | 30 AIX requires this to be the first thing in the file. */ |
31 #undef HAVE_ALLOCA_H | 31 #undef HAVE_ALLOCA_H |
32 | 32 |
33 #ifndef NOT_C_CODE | 33 #ifndef NOT_C_CODE |
34 #ifdef __GNUC__ | 34 #ifdef __GNUC__ |
35 #undef alloca | |
36 #define alloca __builtin_alloca | 35 #define alloca __builtin_alloca |
36 #elif HAVE_ALLOCA_H | |
37 #include <alloca.h> | |
37 #elif defined(_AIX) | 38 #elif defined(_AIX) |
38 #pragma alloca | 39 #pragma alloca |
39 #elif HAVE_ALLOCA_H | 40 #elif ! defined (alloca) |
40 #include <alloca.h> | 41 char *alloca(); |
41 #endif | 42 #endif |
42 #endif /* NOT C */ | 43 #endif /* C code */ |
43 | 44 |
44 | 45 |
45 /* Use this to add code in a structured way to FSF-maintained source | 46 /* Use this to add code in a structured way to FSF-maintained source |
46 files so as to make it obvious where XEmacs changes are. */ | 47 files so as to make it obvious where XEmacs changes are. */ |
47 #define XEMACS | 48 #define XEMACS 1 |
48 | 49 |
49 /* Allow s&m files to differentiate OS versions without having | 50 /* Allow s&m files to differentiate OS versions without having |
50 multiple files to maintain. */ | 51 multiple files to maintain. */ |
51 #undef OS_RELEASE | 52 #undef OS_RELEASE |
52 | 53 |
237 | 238 |
238 #undef HAVE_MMAP | 239 #undef HAVE_MMAP |
239 #undef HAVE_STRCOLL | 240 #undef HAVE_STRCOLL |
240 #undef HAVE_GETPGRP | 241 #undef HAVE_GETPGRP |
241 #undef GETPGRP_VOID | 242 #undef GETPGRP_VOID |
242 | |
243 #undef SIZEOF_SHORT | |
244 #undef SIZEOF_INT | |
245 #undef SIZEOF_LONG | |
246 #undef SIZEOF_LONG_LONG | |
247 #undef SIZEOF_VOID_P | |
248 | 243 |
249 #undef HAVE_INVERSE_HYPERBOLIC | 244 #undef HAVE_INVERSE_HYPERBOLIC |
250 | 245 |
251 #undef HAVE_CBRT | 246 #undef HAVE_CBRT |
252 #undef HAVE_CLOSEDIR | 247 #undef HAVE_CLOSEDIR |
361 #undef HAVE_NCURSES | 356 #undef HAVE_NCURSES |
362 /* Full #include file paths for ncurses' curses.h and term.h. */ | 357 /* Full #include file paths for ncurses' curses.h and term.h. */ |
363 #undef CURSES_H_PATH | 358 #undef CURSES_H_PATH |
364 #undef TERM_H_PATH | 359 #undef TERM_H_PATH |
365 | 360 |
366 #define LOWTAGS | |
367 | |
368 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). | 361 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). |
369 If the assertion fails, assert_failed() will be called. This is | 362 If the assertion fails, assert_failed() will be called. This is |
370 recommended for general use because it gives more info about the crash | 363 recommended for general use because it gives more info about the crash |
371 than just the abort() message. Too many people "Can't find the corefile" | 364 than just the abort() message. Too many people "Can't find the corefile" |
372 or have limit-ed core dumps out of existence. */ | 365 or have limit-ed core dumps out of existence. */ |
467 /* Debugging option: Don't automatically rebuild the DOC file. | 460 /* Debugging option: Don't automatically rebuild the DOC file. |
468 This saves a lot of time when you're repeatedly | 461 This saves a lot of time when you're repeatedly |
469 compiling-running-crashing. */ | 462 compiling-running-crashing. */ |
470 #undef NO_DOC_FILE | 463 #undef NO_DOC_FILE |
471 | 464 |
472 /* To eliminate use of `const' in the XEmacs sources, | 465 /* Defined by AC_C_CONST in configure.in */ |
473 do `#define CONST_IS_LOSING' */ | 466 #undef const |
474 #undef CONST_IS_LOSING | 467 |
475 | 468 #define CONST const |
476 # undef CONST | 469 |
477 # ifdef CONST_IS_LOSING | 470 /* If defined, use unions instead of ints. A few systems (DEC Alpha) |
478 # define CONST | |
479 # else | |
480 # define CONST const | |
481 # endif /* CONST */ | |
482 | |
483 /* If not defined, use unions instead of ints. A few systems (DEC Alpha) | |
484 seem to require this, probably because something with the int | 471 seem to require this, probably because something with the int |
485 definitions isn't right with 64-bit systems. | 472 definitions isn't right with 64-bit systems. */ |
486 | 473 #undef USE_UNION_TYPE |
487 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.) */ | 474 |
488 #undef NO_UNION_TYPE | |
489 | |
490 /* The next two options are turned on by --with-gung=yes */ | |
491 /* If defined, use a minimal number of tagbits. This allows usage of more | 475 /* If defined, use a minimal number of tagbits. This allows usage of more |
492 advanced versions of malloc (like the Doug Lea new GNU malloc) and larger | 476 advanced versions of malloc (like the Doug Lea new GNU malloc) and larger |
493 integers. */ | 477 integers. */ |
478 /* --use-minimal-tagbits */ | |
494 #undef USE_MINIMAL_TAGBITS | 479 #undef USE_MINIMAL_TAGBITS |
495 | 480 |
496 /* #### Document me. */ | 481 /* --use-indexed-lrecord-implementation */ |
497 #undef USE_INDEXED_LRECORD_IMPLEMENTATION | 482 #undef USE_INDEXED_LRECORD_IMPLEMENTATION |
498 | 483 |
499 /* The configuration script defines opsysfile to be the name of the | 484 /* The configuration script defines opsysfile to be the name of the |
500 s/...h file that describes the system type you are using. | 485 s/...h file that describes the system type you are using. |
501 The file is chosen based on the configuration name you give. | 486 The file is chosen based on the configuration name you give. |
508 #if defined (__cplusplus) && !defined (NOT_C_CODE) | 493 #if defined (__cplusplus) && !defined (NOT_C_CODE) |
509 extern "C" { | 494 extern "C" { |
510 #endif | 495 #endif |
511 #undef config_opsysfile | 496 #undef config_opsysfile |
512 #include config_opsysfile | 497 #include config_opsysfile |
513 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
514 } | |
515 #endif | |
516 | 498 |
517 /* The configuration script defines machfile to be the name of the | 499 /* The configuration script defines machfile to be the name of the |
518 m/...h file that describes the machine you are using. The file is | 500 m/...h file that describes the machine you are using. The file is |
519 chosen based on the configuration name you give. | 501 chosen based on the configuration name you give. |
520 | 502 |
522 configuration names to use for them. | 504 configuration names to use for them. |
523 | 505 |
524 See m/template.h for documentation on writing m/...h files. */ | 506 See m/template.h for documentation on writing m/...h files. */ |
525 #undef config_machfile | 507 #undef config_machfile |
526 #include config_machfile | 508 #include config_machfile |
509 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
510 } | |
511 #endif | |
527 | 512 |
528 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) | 513 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) |
529 #define SYSTEM_MALLOC | 514 #define SYSTEM_MALLOC |
530 #endif | 515 #endif |
531 | 516 |
655 | 640 |
656 #if defined (MULE) || defined (DEBUG_ENCAPSULATION) | 641 #if defined (MULE) || defined (DEBUG_ENCAPSULATION) |
657 # define ENCAPSULATE_CHDIR | 642 # define ENCAPSULATE_CHDIR |
658 # define ENCAPSULATE_MKDIR | 643 # define ENCAPSULATE_MKDIR |
659 # define ENCAPSULATE_OPENDIR | 644 # define ENCAPSULATE_OPENDIR |
645 # define ENCAPSULATE_CLOSEDIR | |
660 # define ENCAPSULATE_READDIR | 646 # define ENCAPSULATE_READDIR |
661 # define ENCAPSULATE_RMDIR | 647 # define ENCAPSULATE_RMDIR |
662 | 648 |
663 /* file-information calls */ | 649 /* file-information calls */ |
664 | 650 |
699 #define connect Rconnect | 685 #define connect Rconnect |
700 #define getsockname Rgetsockname | 686 #define getsockname Rgetsockname |
701 #define listen Rlisten | 687 #define listen Rlisten |
702 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ | 688 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ |
703 | 689 |
704 #ifndef SHORTBITS | 690 #undef SIZEOF_SHORT |
705 #define SHORTBITS (8 * SIZEOF_SHORT) | 691 #undef SIZEOF_INT |
706 #endif | 692 #undef SIZEOF_LONG |
707 #ifndef INTBITS | 693 #undef SIZEOF_LONG_LONG |
708 #define INTBITS (8 * SIZEOF_INT) | 694 #undef SIZEOF_VOID_P |
709 #endif | 695 |
710 #ifndef LONGBITS | 696 #ifndef BITS_PER_CHAR |
711 #define LONGBITS (8 * SIZEOF_LONG) | 697 #define BITS_PER_CHAR 8 |
712 #endif | 698 #endif |
699 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) | |
700 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) | |
701 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) | |
702 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | |
703 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | |
713 | 704 |
714 #ifndef NOT_C_CODE | 705 #ifndef NOT_C_CODE |
706 #ifdef __cplusplus | |
707 #define HAVE_INLINE 1 | |
708 #define INLINE inline | |
709 #else /* not C++ */ | |
715 /* Does the keyword `inline' exist? */ | 710 /* Does the keyword `inline' exist? */ |
716 #undef HAVE_INLINE | 711 #undef HAVE_INLINE |
717 #undef inline | 712 #undef inline |
718 | 713 |
719 # ifdef HAVE_INLINE | 714 # ifdef HAVE_INLINE |
727 # define INLINE static inline | 722 # define INLINE static inline |
728 # endif /* __GNUC__ */ | 723 # endif /* __GNUC__ */ |
729 # else | 724 # else |
730 # define INLINE static | 725 # define INLINE static |
731 # endif /* HAVE_INLINE */ | 726 # endif /* HAVE_INLINE */ |
727 #endif /* not C++ */ | |
732 #endif /* C code */ | 728 #endif /* C code */ |
729 | |
730 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
731 /* Avoid C++ keywords used as ordinary C identifiers */ | |
732 #define class c_class | |
733 #define new c_new | |
734 #define this c_this | |
735 #define catch c_catch | |
736 #endif /* C++ */ | |
737 | |
738 /* Strictly speaking, only int or unsigned int are valid types in a | |
739 bitfield. In practice, we would like to use enums as bitfields. | |
740 The following should just result in warning avoidance: | |
741 warning: nonportable bit-field type */ | |
742 #if !(defined (__SUNPRO_C) && __STDC__ == 1) | |
743 #define enum_field(enumeration_type) enum enumeration_type | |
744 #else | |
745 #define enum_field(enumeration_type) unsigned int | |
746 #endif | |
733 | 747 |
734 /* We want to avoid saving the signal mask if possible, because | 748 /* We want to avoid saving the signal mask if possible, because |
735 that necessitates a system call. */ | 749 that necessitates a system call. */ |
736 #ifdef HAVE_SIGSETJMP | 750 #ifdef HAVE_SIGSETJMP |
737 # define SETJMP(x) sigsetjmp (x, 0) | 751 # define SETJMP(x) sigsetjmp (x, 0) |