aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-05-09 17:07:47 -0700
committerGlenn Morris2010-05-09 17:07:47 -0700
commit7490175bc38099aa093715116b8d96e7319e7ca4 (patch)
tree783ea2f527709ca56d1da6cfed56fca2832607aa /src
parent79ccd68f683c1e46bc5dcc12f5b232a75a42ea88 (diff)
downloademacs-7490175bc38099aa093715116b8d96e7319e7ca4.tar.gz
emacs-7490175bc38099aa093715116b8d96e7319e7ca4.zip
Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure.
* configure.in (MAIL_USE_FLOCK, MAIL_USE_LOCKF): New AC_DEFINEs. (BLESSMAIL_TARGET): New output variable. * lib-src/Makefile.in (BLESSMAIL_TARGET): Set with configure, not cpp. * src/s/aix4-2.h (MAIL_USE_LOCKF): * src/s/bsd-common.h (MAIL_USE_FLOCK): * src/s/darwin.h (MAIL_USE_FLOCK): * src/s/gnu-linux.h (MAIL_USE_FLOCK): * src/s/irix6-5.h (MAIL_USE_FLOCK): * src/s/template.h (MAIL_USE_FLOCK): Move to configure. * src/s/ms-w32.h: Comment. * msdos/sed3v2.inp (BLESSMAIL_TARGET): Edit to need-blessmail.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/s/aix4-2.h1
-rw-r--r--src/s/bsd-common.h33
-rw-r--r--src/s/darwin.h30
-rw-r--r--src/s/gnu-linux.h26
-rw-r--r--src/s/irix6-5.h14
-rw-r--r--src/s/ms-w32.h11
-rw-r--r--src/s/template.h12
8 files changed, 30 insertions, 107 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 422939fce0b..c0a264d46c9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12010-05-10 Glenn Morris <rgm@gnu.org>
2
3 * s/aix4-2.h (MAIL_USE_LOCKF):
4 * s/bsd-common.h (MAIL_USE_FLOCK):
5 * s/darwin.h (MAIL_USE_FLOCK):
6 * s/gnu-linux.h (MAIL_USE_FLOCK):
7 * s/irix6-5.h (MAIL_USE_FLOCK):
8 * s/template.h (MAIL_USE_FLOCK):
9 Move to configure.
10
12010-05-08 Chong Yidong <cyd@stupidchicken.com> 112010-05-08 Chong Yidong <cyd@stupidchicken.com>
2 12
3 * Version 23.2 released. 13 * Version 23.2 released.
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index eb2003d9489..dc6ba71ab6f 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -110,7 +110,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
110 110
111/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 111/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
112#define SIGNALS_VIA_CHARACTERS 112#define SIGNALS_VIA_CHARACTERS
113#define MAIL_USE_LOCKF
114#define CLASH_DETECTION 113#define CLASH_DETECTION
115 114
116/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 115/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h
index e44757f19a4..ef79d71e3c6 100644
--- a/src/s/bsd-common.h
+++ b/src/s/bsd-common.h
@@ -1,6 +1,7 @@
1/* Definitions file for GNU Emacs running on bsd 4.3 1/* Definitions file for GNU Emacs running on bsd 4.3
2 Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2
3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008, 2009, 2010 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -18,10 +19,8 @@ You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 20
20 21
21/* 22/* Define symbols to identify the version of Unix this is.
22 * Define symbols to identify the version of Unix this is. 23 * Define all the symbols that apply correctly. */
23 * Define all the symbols that apply correctly.
24 */
25 24
26/* We give these symbols the numeric values found in <sys/param.h> to 25/* We give these symbols the numeric values found in <sys/param.h> to
27 avoid warnings about redefined macros. */ 26 avoid warnings about redefined macros. */
@@ -55,61 +54,41 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
55 generated in the Makefile generated by `xmkmf'. If we don't 54 generated in the Makefile generated by `xmkmf'. If we don't
56 define NARROWPROTO, we will see the wrong function prototypes 55 define NARROWPROTO, we will see the wrong function prototypes
57 for X functions taking float or double parameters. */ 56 for X functions taking float or double parameters. */
58
59#define NARROWPROTO 1 57#define NARROWPROTO 1
60 58
61/* SYSTEM_TYPE should indicate the kind of system you are using. 59/* SYSTEM_TYPE should indicate the kind of system you are using.
62 It sets the Lisp variable system-type. */ 60 It sets the Lisp variable system-type. */
63
64#define SYSTEM_TYPE "berkeley-unix" 61#define SYSTEM_TYPE "berkeley-unix"
65 62
66/* Do not use interrupt_input = 1 by default, because in 4.3 63/* Do not use interrupt_input = 1 by default, because in 4.3
67 we can make noninterrupt input work properly. */ 64 we can make noninterrupt input work properly. */
68
69#undef INTERRUPT_INPUT 65#undef INTERRUPT_INPUT
70 66
71/* First pty name is /dev/ptyp0. */ 67/* First pty name is /dev/ptyp0. */
72
73#define FIRST_PTY_LETTER 'p' 68#define FIRST_PTY_LETTER 'p'
74 69
75/* 70/* Define HAVE_PTYS if the system supports pty devices. */
76 * Define HAVE_PTYS if the system supports pty devices.
77 */
78
79#define HAVE_PTYS 71#define HAVE_PTYS
80 72
81/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ 73/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
82
83#define HAVE_SOCKETS 74#define HAVE_SOCKETS
84 75
85/* Define this symbol if your system has the functions bcopy, etc. */ 76/* Define this symbol if your system has the functions bcopy, etc. */
86
87#define BSTRING 77#define BSTRING
88 78
89/* define MAIL_USE_FLOCK if the mailer uses flock
90 to interlock access to /usr/spool/mail/$USER.
91 The alternative is that a lock file named
92 /usr/spool/mail/$USER.lock. */
93
94#define MAIL_USE_FLOCK
95
96/* Define CLASH_DETECTION if you want lock files to be written 79/* Define CLASH_DETECTION if you want lock files to be written
97 so that Emacs can tell instantly when you try to modify 80 so that Emacs can tell instantly when you try to modify
98 a file that someone else has modified in his Emacs. */ 81 a file that someone else has modified in his Emacs. */
99
100#define CLASH_DETECTION 82#define CLASH_DETECTION
101 83
102/* The file containing the kernel's symbol table is called /vmunix. */ 84/* The file containing the kernel's symbol table is called /vmunix. */
103
104#define KERNEL_FILE "/vmunix" 85#define KERNEL_FILE "/vmunix"
105 86
106/* The symbol in the kernel where the load average is found 87/* The symbol in the kernel where the load average is found
107 is named _avenrun. */ 88 is named _avenrun. */
108
109#define LDAV_SYMBOL "_avenrun" 89#define LDAV_SYMBOL "_avenrun"
110 90
111/* Send signals to subprocesses by "typing" special chars at them. */ 91/* Send signals to subprocesses by "typing" special chars at them. */
112
113#define SIGNALS_VIA_CHARACTERS 92#define SIGNALS_VIA_CHARACTERS
114 93
115/* arch-tag: 0c367245-bde3-492e-9029-3ff6898beb95 94/* arch-tag: 0c367245-bde3-492e-9029-3ff6898beb95
diff --git a/src/s/darwin.h b/src/s/darwin.h
index a3dfe06e83d..01544631aaa 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -1,6 +1,7 @@
1/* System description header file for Darwin (Mac OS X). 1/* System description header file for Darwin (Mac OS X).
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2
3 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4 2010 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -18,10 +19,8 @@ You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 20
20 21
21/* 22/* Define symbols to identify the version of Unix this is.
22 * Define symbols to identify the version of Unix this is. 23 * Define all the symbols that apply correctly. */
23 * Define all the symbols that apply correctly.
24 */
25 24
26#define BSD4_2 25#define BSD4_2
27/* BSD4_3 and BSD4_4 are already defined in sys/param.h */ 26/* BSD4_3 and BSD4_4 are already defined in sys/param.h */
@@ -31,13 +30,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
31 may not be defined on non-OSX Darwin, and we cannot define DARWIN 30 may not be defined on non-OSX Darwin, and we cannot define DARWIN
32 here because Panther and lower CoreFoundation.h uses DARWIN to 31 here because Panther and lower CoreFoundation.h uses DARWIN to
33 distinguish OS X from pure Darwin. */ 32 distinguish OS X from pure Darwin. */
34
35#define DARWIN_OS 33#define DARWIN_OS
36 34
37 35
38/* SYSTEM_TYPE should indicate the kind of system you are using. 36/* SYSTEM_TYPE should indicate the kind of system you are using.
39 It sets the Lisp variable system-type. */ 37 It sets the Lisp variable system-type. */
40
41#define SYSTEM_TYPE "darwin" 38#define SYSTEM_TYPE "darwin"
42 39
43/* Emacs can read input using SIGIO and buffering characters itself, 40/* Emacs can read input using SIGIO and buffering characters itself,
@@ -61,12 +58,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
61 It would have Emacs fork off a separate process 58 It would have Emacs fork off a separate process
62 to read the input and send it to the true Emacs process 59 to read the input and send it to the true Emacs process
63 through a pipe. */ 60 through a pipe. */
64
65#define INTERRUPT_INPUT 61#define INTERRUPT_INPUT
66 62
67/* Letter to use in finding device name of first pty, 63/* Letter to use in finding device name of first pty,
68 if system supports pty's. 'a' means it is /dev/ptya0 */ 64 if system supports pty's. 'a' means it is /dev/ptya0 */
69
70#define FIRST_PTY_LETTER 'p' 65#define FIRST_PTY_LETTER 'p'
71 66
72/* 67/*
@@ -79,16 +74,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
79 * Do not define both. HAVE_TERMIOS is preferred, if it is 74 * Do not define both. HAVE_TERMIOS is preferred, if it is
80 * supported on your system. 75 * supported on your system.
81 */ 76 */
82
83#define HAVE_TERMIOS 77#define HAVE_TERMIOS
84
85#define NO_TERMIO 78#define NO_TERMIO
86 79
87/* 80/*
88 * Define HAVE_PTYS if the system supports pty devices. 81 * Define HAVE_PTYS if the system supports pty devices.
89 * Note: PTYs are broken on darwin <6. Use at your own risk. 82 * Note: PTYs are broken on darwin <6. Use at your own risk.
90 */ 83 */
91
92#define HAVE_PTYS 84#define HAVE_PTYS
93/* Run only once. We need a `for'-loop because the code uses 85/* Run only once. We need a `for'-loop because the code uses
94 `continue'. */ 86 `continue'. */
@@ -117,20 +109,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
117#define MIN_PTY_KERNEL_VERSION '7' 109#define MIN_PTY_KERNEL_VERSION '7'
118 110
119/* Define this symbol if your system has the functions bcopy, etc. */ 111/* Define this symbol if your system has the functions bcopy, etc. */
120
121#define BSTRING 112#define BSTRING
122 113
123/* define MAIL_USE_FLOCK if the mailer uses flock
124 to interlock access to /usr/spool/mail/$USER.
125 The alternative is that a lock file named
126 /usr/spool/mail/$USER.lock. */
127
128#define MAIL_USE_FLOCK
129
130/* Define CLASH_DETECTION if you want lock files to be written 114/* Define CLASH_DETECTION if you want lock files to be written
131 so that Emacs can tell instantly when you try to modify 115 so that Emacs can tell instantly when you try to modify
132 a file that someone else has modified in his Emacs. */ 116 a file that someone else has modified in his Emacs. */
133
134#define CLASH_DETECTION 117#define CLASH_DETECTION
135 118
136/* Avoid the use of the name init_process (process.c) because it is 119/* Avoid the use of the name init_process (process.c) because it is
@@ -152,21 +135,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
152#define HAVE_SOCKETS 135#define HAVE_SOCKETS
153 136
154/* Definitions for how to dump. Copied from nextstep.h. */ 137/* Definitions for how to dump. Copied from nextstep.h. */
155
156#define UNEXEC unexmacosx.o 138#define UNEXEC unexmacosx.o
157 139
158/* start_of_text isn't actually used, so make it compile without error. */ 140/* start_of_text isn't actually used, so make it compile without error. */
159#define TEXT_START (0) 141#define TEXT_START (0)
160 142
161/* Definitions for how to compile & link. */ 143/* Definitions for how to compile & link. */
162
163#ifdef HAVE_NS 144#ifdef HAVE_NS
164#define SYSTEM_PURESIZE_EXTRA 200000 145#define SYSTEM_PURESIZE_EXTRA 200000
165#endif 146#endif
166 147
167/* On Darwin, res_init appears not to be useful: see bug#562 and 148/* On Darwin, res_init appears not to be useful: see bug#562 and
168 http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */ 149 http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */
169
170#undef HAVE_RES_INIT 150#undef HAVE_RES_INIT
171#undef HAVE_LIBRESOLV 151#undef HAVE_LIBRESOLV
172 152
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index d010fc72615..5c94a4369ce 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -103,41 +103,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
103#define HAVE_SOCKETS 103#define HAVE_SOCKETS
104 104
105/* Define this symbol if your system has the functions bcopy, etc. */ 105/* Define this symbol if your system has the functions bcopy, etc. */
106
107#define BSTRING 106#define BSTRING
108 107
109/* This is used in list_system_processes. */ 108/* This is used in list_system_processes. */
110#define HAVE_PROCFS 1 109#define HAVE_PROCFS 1
111 110
112/* define MAIL_USE_FLOCK if the mailer uses flock
113 to interlock access to /usr/spool/mail/$USER.
114 The alternative is that a lock file named
115 /usr/spool/mail/$USER.lock. */
116
117/* On GNU/Linux systems, both methods are used by various mail
118 programs. I assume that most people are using newer mailers that
119 have heard of flock. Change this if you need to. */
120/* Debian contains a patch which says: ``On Debian/GNU/Linux systems,
121 configure gets the right answers, and that means *NOT* using flock.
122 Using flock is guaranteed to be the wrong thing. See Debian Policy
123 for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
124 Debian maintainer hasn't provided a clean fix for Emacs.
125 movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
126 HAVE_MAILLOCK_H are defined, so the following appears to be the
127 correct logic. -- fx */
128/* We must check for HAVE_LIBLOCKFILE too, as movemail does.
129 liblockfile is a Free Software replacement for libmail, used on
130 Debian systems and elsewhere. -rfr */
131
132#if !((defined (HAVE_LIBMAIL) || defined (HAVE_LIBLOCKFILE)) && \
133 defined (HAVE_MAILLOCK_H))
134#define MAIL_USE_FLOCK
135#endif
136 111
137/* Define CLASH_DETECTION if you want lock files to be written 112/* Define CLASH_DETECTION if you want lock files to be written
138 so that Emacs can tell instantly when you try to modify 113 so that Emacs can tell instantly when you try to modify
139 a file that someone else has modified in his Emacs. */ 114 a file that someone else has modified in his Emacs. */
140
141#define CLASH_DETECTION 115#define CLASH_DETECTION
142 116
143/* Here, on a separate page, add any special hacks needed 117/* Here, on a separate page, add any special hacks needed
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 3614eab5a6c..7016e6bc443 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -85,21 +85,10 @@ char *_getpty();
85 85
86#define UNEXEC unexelf.o 86#define UNEXEC unexelf.o
87 87
88/* define MAIL_USE_FLOCK if the mailer uses flock
89 to interlock access to /usr/spool/mail/$USER.
90 The alternative is that a lock file named
91 /usr/spool/mail/$USER.lock. */
92
93#define MAIL_USE_FLOCK
94
95#define NARROWPROTO 1 88#define NARROWPROTO 1
96 89
97#define USE_MMAP_FOR_BUFFERS 1 90#define USE_MMAP_FOR_BUFFERS 1
98 91
99/* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b
100 (do not change this comment) */
101
102
103#if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ 92#if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
104#define _LP64 /* lisp.h takes care of the rest */ 93#define _LP64 /* lisp.h takes care of the rest */
105#endif /* _MIPS_SZLONG */ 94#endif /* _MIPS_SZLONG */
@@ -112,5 +101,8 @@ char *_getpty();
112#define GC_SETJMP_WORKS 1 101#define GC_SETJMP_WORKS 1
113#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 102#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
114 103
104/* arch-tag: ad0660e0-acf8-46ae-b866-4f3df5b1101b
105 (do not change this comment) */
106
115/* arch-tag: d7ad9ec2-54ad-4b2f-adf2-0070c5c63e83 107/* arch-tag: d7ad9ec2-54ad-4b2f-adf2-0070c5c63e83
116 (do not change this comment) */ 108 (do not change this comment) */
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index deb23322d9b..f5065507e5a 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -1,6 +1,7 @@
1/* System description file for Windows NT. 1/* System description file for Windows NT.
2 Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2
3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006,
4 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -89,12 +90,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
89 90
90#define COFF 1 91#define COFF 1
91 92
92/* define MAIL_USE_FLOCK if the mailer uses flock
93 to interlock access to /usr/spool/mail/$USER.
94 The alternative is that a lock file named
95 /usr/spool/mail/$USER.lock. */
96
97/* #define MAIL_USE_FLOCK */
98#define MAIL_USE_POP 1 93#define MAIL_USE_POP 1
99#define MAIL_USE_SYSTEM_LOCK 1 94#define MAIL_USE_SYSTEM_LOCK 1
100 95
diff --git a/src/s/template.h b/src/s/template.h
index a20aa266555..b3a88c0b28c 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -1,8 +1,9 @@
1/* Template for system description header files. 1/* Template for system description header files.
2 This file describes the parameters that system description files 2 This file describes the parameters that system description files
3 should define or not. 3 should define or not.
4 Copyright (C) 1985, 1986, 1992, 1999, 2001, 2002, 2003, 2004, 2005, 4
5 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 5Copyright (C) 1985, 1986, 1992, 1999, 2001, 2002, 2003, 2004, 2005,
6 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 7
7This file is part of GNU Emacs. 8This file is part of GNU Emacs.
8 9
@@ -102,13 +103,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
102 103
103/* #define COFF */ 104/* #define COFF */
104 105
105/* define MAIL_USE_FLOCK if the mailer uses flock
106 to interlock access to /usr/spool/mail/$USER.
107 The alternative is that a lock file named
108 /usr/spool/mail/$USER.lock. */
109
110#define MAIL_USE_FLOCK
111
112/* Define CLASH_DETECTION if you want lock files to be written 106/* Define CLASH_DETECTION if you want lock files to be written
113 so that Emacs can tell instantly when you try to modify 107 so that Emacs can tell instantly when you try to modify
114 a file that someone else has modified in his Emacs. */ 108 a file that someone else has modified in his Emacs. */