Mercurial > emacs
comparison configure @ 108380:72fc67fa8fe3
Regenerate configure, src/config.in.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 09 May 2010 17:11:40 -0700 |
parents | 973b5bc5fcfe |
children | 0ce7b05a8161 |
comparison
equal
deleted
inserted
replaced
108379:203aa49071bf | 108380:72fc67fa8fe3 |
---|---|
753 GPM_MOUSE_SUPPORT | 753 GPM_MOUSE_SUPPORT |
754 LIBXSM | 754 LIBXSM |
755 ALLOCA | 755 ALLOCA |
756 liblockfile | 756 liblockfile |
757 LIBS_MAIL | 757 LIBS_MAIL |
758 BLESSMAIL_TARGET | |
758 LIBOBJS | 759 LIBOBJS |
759 NEED_SETGID | 760 NEED_SETGID |
760 KMEM_GROUP | 761 KMEM_GROUP |
761 GETLOADAVG_LIBS | 762 GETLOADAVG_LIBS |
762 GETOPT_H | 763 GETOPT_H |
17563 | 17564 |
17564 done | 17565 done |
17565 | 17566 |
17566 | 17567 |
17567 | 17568 |
17569 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to | |
17570 ## interlock access to the mail spool. The alternative is a lock file named | |
17571 ## /usr/spool/mail/$USER.lock. | |
17572 mail_lock=no | |
17573 case "$opsys" in | |
17574 aix4-2) mail_lock="lockf" ;; | |
17575 | |
17576 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | |
17577 | |
17578 ## On GNU/Linux systems, both methods are used by various mail programs. | |
17579 ## I assume most people are using newer mailers that have heard of flock. | |
17580 ## Change this if you need to. | |
17581 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, | |
17582 ## configure gets the right answers, and that means *NOT* using flock. | |
17583 ## Using flock is guaranteed to be the wrong thing. See Debian Policy | |
17584 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the | |
17585 ## Debian maintainer hasn't provided a clean fix for Emacs. | |
17586 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and | |
17587 ## HAVE_MAILLOCK_H are defined, so the following appears to be the | |
17588 ## correct logic. -- fx | |
17589 ## We must check for HAVE_LIBLOCKFILE too, as movemail does. | |
17590 ## liblockfile is a Free Software replacement for libmail, used on | |
17591 ## Debian systems and elsewhere. -rfr. | |
17592 gnu-*) | |
17593 mail_lock="flock" | |
17594 if test $have_mail = yes || test $have_lockfile = yes; then | |
17595 test $ac_cv_header_maillock_h = yes && mail_lock=no | |
17596 fi | |
17597 ;; | |
17598 esac | |
17599 | |
17600 BLESSMAIL_TARGET= | |
17601 case "$mail_lock" in | |
17602 flock) | |
17603 cat >>confdefs.h <<\_ACEOF | |
17604 #define MAIL_USE_FLOCK 1 | |
17605 _ACEOF | |
17606 ;; | |
17607 | |
17608 lockf) | |
17609 cat >>confdefs.h <<\_ACEOF | |
17610 #define MAIL_USE_LOCKF 1 | |
17611 _ACEOF | |
17612 ;; | |
17613 | |
17614 *) BLESSMAIL_TARGET="need-blessmail" ;; | |
17615 esac | |
17616 | |
17617 | |
17618 | |
17568 | 17619 |
17569 | 17620 |
17570 | 17621 |
17571 | 17622 |
17572 | 17623 |