diff options
| author | Glenn Morris | 2012-07-12 19:34:05 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-07-12 19:34:05 -0700 |
| commit | 983188fd542cdf5704929b27f5c17acb30b6f1ad (patch) | |
| tree | 50fa2a6a01e1a62ecbfeb9ccaff27e4d8eb5c298 /src | |
| parent | d1e6866717a2951394c9779870db56b863ef40a1 (diff) | |
| download | emacs-983188fd542cdf5704929b27f5c17acb30b6f1ad.tar.gz emacs-983188fd542cdf5704929b27f5c17acb30b6f1ad.zip | |
Move "system type" macros from src/s to configure
* configure.ac (BSD4_2, BSD_SYSTEM, USG, USG5, _AIX, CYGWIN)
(DARWIN_OS, GNU_LINUX, HPUX, IRIX6_5, SOLARIS2):
Move "system type" macros here from src/s.
(BSD_SYSTEM_AHB): New hack macro.
(AH_BOTTOM): Set BSD_SYSTEM, using BSD_SYSTEM_AHB.
* src/s/usg5-4-common.h (USG, USG5):
* src/s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM):
* src/s/sol2-6.h (SOLARIS2):
* src/s/irix6-5.h (IRIX6_5):
* src/s/hpux10-20.h (USG, USG5, HPUX):
* src/s/gnu-linux.h (USG, GNU_LINUX):
* src/s/freebsd.h (BSD_SYSTEM):
* src/s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS):
* src/s/cygwin.h (CYGWIN):
* src/s/bsd-common.h (BSD_SYSTEM, BSD4_2):
* src/s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 13 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 18 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 13 | ||||
| -rw-r--r-- | src/s/freebsd.h | 10 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 12 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 9 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 2 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 2 | ||||
| -rw-r--r-- | src/s/template.h | 10 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 7 |
12 files changed, 15 insertions, 98 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8a0142eb2b8..8baa986fc5c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2012-07-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * s/usg5-4-common.h (USG, USG5): | ||
| 4 | * s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM): | ||
| 5 | * s/sol2-6.h (SOLARIS2): | ||
| 6 | * s/irix6-5.h (IRIX6_5): | ||
| 7 | * s/hpux10-20.h (USG, USG5, HPUX): | ||
| 8 | * s/gnu-linux.h (USG, GNU_LINUX): | ||
| 9 | * s/freebsd.h (BSD_SYSTEM): | ||
| 10 | * s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS): | ||
| 11 | * s/cygwin.h (CYGWIN): | ||
| 12 | * s/bsd-common.h (BSD_SYSTEM, BSD4_2): | ||
| 13 | * s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure. | ||
| 14 | |||
| 1 | 2012-07-13 BT Templeton <bpt@hcoop.net> (tiny change) | 15 | 2012-07-13 BT Templeton <bpt@hcoop.net> (tiny change) |
| 2 | 16 | ||
| 3 | * nsfont.m (ns_charset_covers): Don't abort if no bitmap (Bug#11853). | 17 | * nsfont.m (ns_charset_covers): Don't abort if no bitmap (Bug#11853). |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 55000f6f279..debc9f78c16 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -16,19 +16,6 @@ GNU General Public License for more details. | |||
| 16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | /* Define symbols to identify the version of Unix this is. | ||
| 20 | Define all the symbols that apply correctly. */ | ||
| 21 | #define USG /* System III, System V, etc */ | ||
| 22 | #define USG5 | ||
| 23 | |||
| 24 | /* This symbol should be defined on AIX Version 3 ??????? */ | ||
| 25 | #ifndef _AIX | ||
| 26 | #define _AIX | ||
| 27 | #endif | ||
| 28 | |||
| 29 | |||
| 30 | /* Special items needed to make Emacs run on this system. */ | ||
| 31 | |||
| 32 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ | 19 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ |
| 33 | #undef sigmask | 20 | #undef sigmask |
| 34 | 21 | ||
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 681f6599010..9e8c9ba4726 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -18,21 +18,3 @@ You should have received a copy of the GNU General Public License | |||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | /* Define symbols to identify the version of Unix this is. | ||
| 22 | Define all the symbols that apply correctly. */ | ||
| 23 | |||
| 24 | /* We give these symbols the numeric values found in <sys/param.h> to | ||
| 25 | avoid warnings about redefined macros. */ | ||
| 26 | |||
| 27 | /* Nothing in Emacs uses this any more. | ||
| 28 | ifndef BSD4_3 | ||
| 29 | define BSD4_3 1 | ||
| 30 | endif | ||
| 31 | */ | ||
| 32 | |||
| 33 | #ifndef BSD_SYSTEM | ||
| 34 | #define BSD_SYSTEM 43 | ||
| 35 | #endif /* BSD_SYSTEM */ | ||
| 36 | |||
| 37 | /* For mem-limits.h. */ | ||
| 38 | #define BSD4_2 | ||
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 7c32fd3f90d..1295083cd8e 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -17,5 +17,4 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | /* Used in various places to enable cygwin-specific code changes. */ | 20 | |
| 21 | #define CYGWIN 1 | ||
diff --git a/src/s/darwin.h b/src/s/darwin.h index 8b46113a720..20d576e4986 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -17,19 +17,6 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | |||
| 21 | /* Define symbols to identify the version of Unix this is. | ||
| 22 | Define all the symbols that apply correctly. */ | ||
| 23 | #define BSD4_2 | ||
| 24 | /* BSD4_3 and BSD4_4 are already defined in sys/param.h */ | ||
| 25 | #define BSD_SYSTEM | ||
| 26 | |||
| 27 | /* More specific than the above two. We cannot use __APPLE__ as this | ||
| 28 | may not be defined on non-OSX Darwin, and we cannot define DARWIN | ||
| 29 | here because Panther and lower CoreFoundation.h uses DARWIN to | ||
| 30 | distinguish OS X from pure Darwin. */ | ||
| 31 | #define DARWIN_OS | ||
| 32 | |||
| 33 | /* Definitions for how to compile & link. */ | 20 | /* Definitions for how to compile & link. */ |
| 34 | #ifdef emacs | 21 | #ifdef emacs |
| 35 | #define malloc unexec_malloc | 22 | #define malloc unexec_malloc |
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 8200238bf1f..f5838266143 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -23,16 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 23 | /* Get most of the stuff from bsd-common */ | 23 | /* Get most of the stuff from bsd-common */ |
| 24 | #include "bsd-common.h" | 24 | #include "bsd-common.h" |
| 25 | 25 | ||
| 26 | /* This silences a few compilation warnings. */ | ||
| 27 | #undef BSD_SYSTEM | ||
| 28 | #if __FreeBSD__ == 1 | ||
| 29 | #define BSD_SYSTEM 199103 | ||
| 30 | #elif __FreeBSD__ == 2 | ||
| 31 | #define BSD_SYSTEM 199306 | ||
| 32 | #elif __FreeBSD__ >= 3 | ||
| 33 | #define BSD_SYSTEM 199506 | ||
| 34 | #endif | ||
| 35 | |||
| 36 | /* Tell that garbage collector that setjmp is known to save all | 26 | /* Tell that garbage collector that setjmp is known to save all |
| 37 | registers relevant for conservative garbage collection in the jmp_buf. */ | 27 | registers relevant for conservative garbage collection in the jmp_buf. */ |
| 38 | #define GC_SETJMP_WORKS 1 | 28 | #define GC_SETJMP_WORKS 1 |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 30bdf0407be..6c20c788150 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -20,18 +20,6 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | /* Define symbols to identify the version of Unix this is. | ||
| 24 | Define all the symbols that apply correctly. */ | ||
| 25 | #define USG | ||
| 26 | #define GNU_LINUX | ||
| 27 | |||
| 28 | /* Here, on a separate page, add any special hacks needed | ||
| 29 | to make Emacs work on this system. For example, | ||
| 30 | you might define certain system call names that don't | ||
| 31 | exist on your system, or that do different things on | ||
| 32 | your system and must be used only through an encapsulation | ||
| 33 | (Which you should place, by convention, in sysdep.c). */ | ||
| 34 | |||
| 35 | #ifdef __ia64__ | 23 | #ifdef __ia64__ |
| 36 | #define GC_MARK_SECONDARY_STACK() \ | 24 | #define GC_MARK_SECONDARY_STACK() \ |
| 37 | do { \ | 25 | do { \ |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 6115565e9d0..c913062701a 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -17,15 +17,6 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | |||
| 21 | /* Define symbols to identify the version of Unix this is. | ||
| 22 | Define all the symbols that apply correctly. */ | ||
| 23 | #define USG /* System III, System V, etc */ | ||
| 24 | #define USG5 | ||
| 25 | #define HPUX | ||
| 26 | |||
| 27 | /* Special hacks needed to make Emacs run on this system. */ | ||
| 28 | |||
| 29 | /* We have to go this route, rather than hpux9's approach of renaming the | 20 | /* We have to go this route, rather than hpux9's approach of renaming the |
| 30 | functions via macros. The system's stdlib.h has fully prototyped | 21 | functions via macros. The system's stdlib.h has fully prototyped |
| 31 | declarations, which yields a conflicting definition of srand48; it | 22 | declarations, which yields a conflicting definition of srand48; it |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index a8923d230d2..a7365a76a91 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -17,8 +17,6 @@ GNU General Public License for more details. | |||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | |||
| 21 | #define IRIX6_5 /* used in m/iris4d */ | ||
| 22 | #include "usg5-4-common.h" | 20 | #include "usg5-4-common.h" |
| 23 | 21 | ||
| 24 | #undef _longjmp /* use system versions, not conservative aliases */ | 22 | #undef _longjmp /* use system versions, not conservative aliases */ |
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index ff6cfc277cc..78d13f2063d 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -19,6 +19,4 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | 19 | ||
| 20 | #include "usg5-4-common.h" | 20 | #include "usg5-4-common.h" |
| 21 | 21 | ||
| 22 | #define SOLARIS2 | ||
| 23 | |||
| 24 | #define GC_SETJMP_WORKS 1 | 22 | #define GC_SETJMP_WORKS 1 |
diff --git a/src/s/template.h b/src/s/template.h index f14890bc292..e6f43896aac 100644 --- a/src/s/template.h +++ b/src/s/template.h | |||
| @@ -19,16 +19,6 @@ GNU General Public License for more details. | |||
| 19 | You should have received a copy of the GNU General Public License | 19 | You should have received a copy of the GNU General Public License |
| 20 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 20 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 21 | 21 | ||
| 22 | |||
| 23 | /* Define symbols to identify the version of Unix this is. | ||
| 24 | Define all the symbols that apply correctly. */ | ||
| 25 | |||
| 26 | /* #define USG5 */ | ||
| 27 | /* #define USG */ | ||
| 28 | /* #define HPUX */ | ||
| 29 | /* #define BSD4_2 */ | ||
| 30 | /* #define BSD_SYSTEM */ | ||
| 31 | |||
| 32 | /* subprocesses should be undefined if you do NOT want to | 22 | /* subprocesses should be undefined if you do NOT want to |
| 33 | have code for asynchronous subprocesses | 23 | have code for asynchronous subprocesses |
| 34 | (as used in M-x compile and M-x shell). | 24 | (as used in M-x compile and M-x shell). |
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index 883d0b5dc21..93a05ebec54 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -20,13 +20,6 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | /* Use the SysVr3 file for at least base configuration. */ | ||
| 24 | #define USG /* System III, System V, etc */ | ||
| 25 | |||
| 26 | #define USG5 | ||
| 27 | /* Nothing in Emacs use this any more. */ | ||
| 28 | /* #define USG5_4 */ | ||
| 29 | |||
| 30 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, | 23 | /* setjmp and longjmp can safely replace _setjmp and _longjmp, |
| 31 | but they will run slower. */ | 24 | but they will run slower. */ |
| 32 | #define _setjmp setjmp | 25 | #define _setjmp setjmp |