diff options
| author | Glenn Morris | 2010-05-09 17:07:47 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-09 17:07:47 -0700 |
| commit | 7490175bc38099aa093715116b8d96e7319e7ca4 (patch) | |
| tree | 783ea2f527709ca56d1da6cfed56fca2832607aa /src/s/gnu-linux.h | |
| parent | 79ccd68f683c1e46bc5dcc12f5b232a75a42ea88 (diff) | |
| download | emacs-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/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 26 |
1 files changed, 0 insertions, 26 deletions
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 |