]> git.pld-linux.org Git - packages/mutt.git/blob - mutt-nntp.patch
http://dave.willfork.com/slrnface/
[packages/mutt.git] / mutt-nntp.patch
1 diff -uNr mutt-1.4.orig/ChangeLog.nntp mutt-1.4/ChangeLog.nntp
2 --- mutt-1.4.orig/ChangeLog.nntp        Thu Jan  1 01:00:00 1970
3 +++ mutt-1.4/ChangeLog.nntp     Sun Nov  3 21:57:20 2002
4 @@ -0,0 +1,422 @@
5 +* Wed May 29 2002 Vsevolod Volkov <vvv@mutt.org.ua>
6 +- update to 1.4
7 +
8 +* Thu May  2 2002 Vsevolod Volkov <vvv@mutt.org.ua>
9 +- update to 1.3.99
10 +
11 +* Wed Mar 13 2002 Vsevolod Volkov <vvv@mutt.org.ua>
12 +- update to 1.3.28
13 +- fixed SIGSEGV in <get-message>, <get-parent>, <get-children>,
14 +  <reconstruct-thread> functions
15 +- fixed message about nntp reconnect
16 +- fixed <attach-news-message> function using browser
17 +- added support of Followup-To: poster
18 +- added %n (new articles) in group_index_format
19 +- posting articles without inews by default
20 +
21 +* Wed Jan 23 2002 Vsevolod Volkov <vvv@mutt.org.ua>
22 +- update to 1.3.27
23 +
24 +* Fri Jan 18 2002 Vsevolod Volkov <vvv@mutt.org.ua>
25 +- update to 1.3.26
26 +
27 +* Thu Jan  3 2002 Vsevolod Volkov <vvv@mutt.org.ua>
28 +- update to 1.3.25
29 +- accelerated speed of access to news->newsgroups hash (by <gul@gul.kiev.ua>)
30 +- added default content disposition
31 +
32 +* Mon Dec  3 2001 Vsevolod Volkov <vvv@mutt.org.ua>
33 +- update to 1.3.24
34 +
35 +* Fri Nov  9 2001 Vsevolod Volkov <vvv@mutt.org.ua>
36 +- update to 1.3.23.2
37 +- fixed segfault if mutt_conn_find() returns null
38 +
39 +* Wed Oct 31 2001 Vsevolod Volkov <vvv@mutt.org.ua>
40 +- update to 1.3.23.1
41 +- added support of LISTGROUP command
42 +- added support for servers with broken overview
43 +- disabled <flag-message> function on news server
44 +- fixed error storing bad authentication information
45 +
46 +* Wed Oct 10 2001 Vsevolod Volkov <vvv@mutt.org.ua>
47 +- update to 1.3.23
48 +- fixed typo in buffy.c
49 +- added substitution of %s parameter in $inews variable
50 +
51 +* Fri Aug 31 2001 Vsevolod Volkov <vvv@mutt.org.ua>
52 +- update to 1.3.22.1
53 +- update to 1.3.22
54 +
55 +* Thu Aug 23 2001 Vsevolod Volkov <vvv@mutt.org.ua>
56 +- update to 1.3.21
57 +
58 +* Wed Jul 25 2001 Vsevolod Volkov <vvv@mutt.org.ua>
59 +- update to 1.3.20
60 +- removed 'server-hook', use 'account-hook' instead
61 +- fixed error opening NNTP server without newsgroup using -f option
62 +
63 +* Fri Jun  8 2001 Vsevolod Volkov <vvv@mutt.org.ua>
64 +- update to 1.3.19
65 +
66 +* Sat May  5 2001 Vsevolod Volkov <vvv@mutt.org.ua>
67 +- update to 1.3.18
68 +- fixed typo in nntp_attempt_features()
69 +- changed algorithm of XGTITLE command testing
70 +- disabled writing of NNTP password in debug file
71 +- fixed reading and writing of long newsrc lines
72 +- changed checking of last line while reading lines from server
73 +- fixed possible buffer overrun in nntp_parse_newsrc_line()
74 +- removed checking of XHDR command
75 +- compare NNTP return codes without trailing space
76 +
77 +* Thu Mar 29 2001 Vsevolod Volkov <vvv@mutt.org.ua>
78 +- update to 1.3.17
79 +- support for 'LIST NEWSGROUPS' command to read descriptions
80 +
81 +* Fri Mar  2 2001 Vsevolod Volkov <vvv@mutt.org.ua>
82 +- update to 1.3.16
83 +
84 +* Wed Feb 14 2001 Vsevolod Volkov <vvv@mutt.org.ua>
85 +- update to 1.3.15
86 +
87 +* Sun Jan 28 2001 Vsevolod Volkov <vvv@mutt.org.ua>
88 +- update to 1.3.14
89 +- show number of tagged messages patch from Felix von Leitner <leitner@fefe.de>
90 +
91 +* Sun Dec 31 2000 Vsevolod Volkov <vvv@mutt.org.ua>
92 +- update to 1.3.13
93 +
94 +* Sat Dec 30 2000 Vsevolod Volkov <vvv@mutt.org.ua>
95 +- Fixed problem if last article in group is deleted
96 +
97 +* Fri Dec 22 2000 Vsevolod Volkov <vvv@mutt.org.ua>
98 +- Fixed checking of XGTITLE command on some servers
99 +
100 +* Mon Dec 18 2000 Vsevolod Volkov <vvv@mutt.org.ua>
101 +- Added \r in AUTHINFO commands
102 +
103 +* Mon Nov 27 2000 Vsevolod Volkov <vvv@mutt.org.ua>
104 +- update to 1.3.12
105 +
106 +* Wed Nov  1 2000 Vsevolod Volkov <vvv@mutt.org.ua>
107 +- update to 1.3.11
108 +- fixed error opening newsgroup from mutt started with -g or -G
109 +
110 +* Thu Oct 12 2000 Vsevolod Volkov <vvv@mutt.org.ua>
111 +- update to 1.3.10
112 +- hotkey 'G' (get-message) replaced with '^G'
113 +
114 +* Thu Sep 21 2000 Vsevolod Volkov <vvv@mutt.org.ua>
115 +- update to 1.3.9
116 +- changed delay displaying error messages from 1 to 2 seconds
117 +- fixed error compiling with nntp and without imap
118 +
119 +* Wed Sep  6 2000 Vsevolod Volkov <vvv@mutt.org.ua>
120 +- fixed catchup in index
121 +- fixed nntp_open_mailbox()
122 +
123 +* Sat Sep  2 2000 Vsevolod Volkov <vvv@mutt.org.ua>
124 +- functions <edit> and <delete-entry> disabled
125 +- format of news mailbox names changed to url form
126 +- option nntp_attempts removed
127 +- option reconnect_news renamed to nntp_reconnect
128 +- default value of nntp_poll changed from 30 to 60
129 +- error handling improved
130 +
131 +* Wed Aug 30 2000 Vsevolod Volkov <vvv@mutt.org.ua>
132 +- update to 1.3.8
133 +- new option show_only_unread
134 +- add newsgroup completion
135 +
136 +* Fri Aug  4 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
137 +- update to 1.3.7
138 +
139 +* Sat Jul 29 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
140 +- update to 1.3.6
141 +
142 +* Sun Jul  9 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
143 +- update to 1.3.5
144 +- authentication code update
145 +- fix for changing to newsgroup from mailbox with read messages
146 +- socket code optimization
147 +
148 +* Wed Jun 21 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
149 +- update to 1.3.4
150 +
151 +* Wed Jun 14 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
152 +- don't substitute current newsgroup with deleted new messages
153 +
154 +* Mon Jun 12 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
155 +- update to 1.3.3
156 +- fix for substitution of newsgroup after reconnection
157 +- fix for loading newsgroups with very long names
158 +- fix for loading more than 32768 newsgroups
159 +
160 +* Wed May 24 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
161 +- update to 1.3.2
162 +
163 +* Sat May 20 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
164 +- update to 1.3.1
165 +
166 +* Fri May 12 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
167 +- update to 1.3
168 +
169 +* Thu May 11 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
170 +- update to 1.2
171 +
172 +* Thu May  4 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
173 +- update to 1.1.14
174 +
175 +* Sun Apr 23 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
176 +- update to 1.1.12
177 +
178 +* Fri Apr  7 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
179 +- add substitution of newsgroup with new messages by default
180 +
181 +* Wed Apr  5 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
182 +- add attach message from newsgroup
183 +- add one-line help in newsreader mode
184 +- disable 'change-dir' command in newsgroups browser
185 +- add -G option
186 +
187 +* Tue Apr  4 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
188 +- get default newsserver name from file /etc/nntpserver
189 +- use case insensitive server names
190 +- add print-style sequence %s to $newsrc
191 +- add -g option
192 +
193 +* Sat Apr  1 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
194 +- remove 'X-FTN-Origin' header processing
195 +
196 +* Thu Mar 30 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
197 +- update to 1.1.11
198 +- update to 1.1.10
199 +
200 +* Thu Mar 23 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
201 +- fix mutt_select_newsserver()
202 +- remove 'toggle-mode' function
203 +- add 'change-newsgroup' function
204 +
205 +* Wed Mar 22 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
206 +- fix server-hook
207 +
208 +* Tue Mar 21 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
209 +- fix error 'bounce' function after 'post'
210 +- add 'forward to newsgroup' function
211 +
212 +* Mon Mar 20 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
213 +- 'forward' function works in newsreader mode
214 +- add 'post' and 'followup' functions to pager and attachment menu
215 +- fix active descriptions and allowed flag reload
216 +
217 +* Tue Mar 14 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
218 +- update to 1.1.9
219 +- remove deleted newsgroups from list
220 +
221 +* Mon Mar 13 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
222 +- update .newsrc in browser
223 +
224 +* Sun Mar 12 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
225 +- reload .newsrc if externally modified
226 +- fix active cache update
227 +
228 +* Sun Mar  5 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
229 +- update to 1.1.8
230 +
231 +* Sat Mar  4 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
232 +- patch *.update_list_file is not required
233 +- count lines when loading descriptions
234 +- remove cache of unsubscribed newsgroups
235 +
236 +* Thu Mar  2 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
237 +- load list of newsgroups from cache faster
238 +
239 +* Wed Mar  1 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
240 +- update to 1.1.7
241 +
242 +* Tue Feb 29 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
243 +- fix unread messages in browser
244 +- fix newsrc_gen_entries()
245 +
246 +* Mon Feb 28 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
247 +- fix mutt_newsgroup_stat()
248 +- fix nntp_delete_cache()
249 +- fix nntp_get_status()
250 +- fix check_children()
251 +- fix nntp_fetch_headers()
252 +
253 +* Fri Feb 25 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
254 +- update to 1.1.5
255 +
256 +* Thu Feb 24 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
257 +- fix updating new messages in cache
258 +
259 +* Mon Feb 21 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
260 +- change default cache filenames
261 +- fix updating new messages in cache
262 +
263 +* Fri Feb 18 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
264 +- fix segmentation fault in news groups browser
265 +
266 +* Tue Feb 15 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
267 +- update to 1.1.4
268 +
269 +* Thu Feb 10 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
270 +- update to 1.1.3
271 +
272 +* Sun Jan 30 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
273 +- add X-Comment-To editing
274 +- add my_hdr support for Newsgroups:, Followup-To: and X-Comment-To: headers
275 +- add variables $ask_followup_to and $ask_x_comment_to
276 +
277 +* Fri Jan 28 2000 Vsevolod Volkov <vvv@mutt.kiev.ua>
278 +- update to 1.1.2
279 +
280 +* Wed Aug 23 2000 Andrej Gritsenko <andrej@lucky.net>
281 +- nntp.c: inserted server hook when opened a newsgroup - for
282 +  difference between mail and news reader environment
283 +- parse.c: `X-FTN-Origin:' processed for bad Fido gates
284 +
285 +* Tue Aug 22 2000 Vsevolod Volkov <vvv@mutt.org.ua>
286 +- browser.c, complete.c: newsgroup completion patch
287 +
288 +* Wed Dec 22 1999 Andrej Gritsenko <andrej@lucky.net>
289 +- send.c: fixed bug with `Subject:' on followup
290 +
291 +* Sat Dec 18 1999 Andrej Gritsenko <andrej@lucky.net>
292 +- updated to 1.1.1
293 +
294 +* Tue Oct 26 1999 Andrej Gritsenko <andrej@lucky.net>
295 +- updated to 1.1
296 +
297 +* Mon Jun 14 1999 Andrej Gritsenko <andrej@lucky.net>
298 +- sendlib.c: use $mime_subject for news articles only
299 +
300 +* Fri Jun 11 1999 Edouard G. Parmelan <Edouard.Parmelan@quadratec.fr>
301 +- nntp.c: bugfix with number of new articles
302 +
303 +* Thu Jun 10 1999 Andrej Gritsenko <andrej@lucky.net>
304 +- nntp.c: fixed incomplete creating of index file
305 +
306 +* Wed Jun  9 1999 Andrej Gritsenko <andrej@lucky.net>
307 +- updated to 0.96.3
308 +- doc/manual*: documentation updated
309 +
310 +* Sun Feb 21 1999 Andrej Gritsenko <andrej@lucky.net>
311 +- browser.c, newsrc.c, nntp.c: couple of fixes
312 +
313 +* Wed Dec 16 1998 Andrej Gritsenko <andrej@lucky.net>
314 +- curs_main.c, newsrc.c, nntp.c: fixes on number of read
315 +  articles
316 +
317 +* Tue Dec 15 1998 Vikas Agnihotri <vikasa@att.com>
318 +- nntp.c: fix with gone cache files
319 +
320 +* Tue Dec 15 1998 Andrej Gritsenko <andrej@lucky.net>
321 +- newsrc.c, nntp.c: fixes on number of read articles
322 +
323 +* Mon Dec 14 1998 Andrej Gritsenko <andrej@lucky.net>
324 +- browser.c, newsrc.c, nntp.c, nntp.h: changed then simplified
325 +  nntp_parse_xover()
326 +
327 +* Mon Dec 14 1998 Vikas Agnihotri <vikasa@att.com>
328 +- browser.c: cosmetic patch
329 +- nntp.c: say "Fetching %s from server..."
330 +
331 +* Sun Dec 13 1998 Andrej Gritsenko <andrej@lucky.net>
332 +- commands.c, newsrc.c, nntp.c, nntp.h: don't save newsrc file
333 +  so often (noted by Vikas Agnihotri)
334 +
335 +* Sat Dec 12 1998 Andrej Gritsenko <andrej@lucky.net>
336 +- browser.c, functions.h, nntp.c, nntp.h: fixed incorrect first
337 +  active loading
338 +
339 +* Wed Dec  9 1998 Vikas Agnihotri <vikasa@att.com>
340 +- nntp.c: fixed bug in `reconstruct-thread' function
341 +- curs_main.c, nntp.c: fixed the bug in non-XOVER case of get
342 +  headers
343 +
344 +* Tue Dec  8 1998 Andrej Gritsenko <andrej@lucky.net>
345 +- nntp.c: fixed error in getting status of article
346 +
347 +* Tue Dec  8 1998 Vikas Agnihotri <vikasa@att.com>
348 +- mutt.h, pattern.c: added `~w' search pattern
349 +
350 +* Tue Dec  8 1998 Andrej Gritsenko <andrej@lucky.net>
351 +- nntp.c: bugfix when get children
352 +
353 +* Tue Dec  8 1998 Vikas Agnihotri <vikasa@att.com>
354 +- newsrc.c: bugfix in mutt_newsgroup_catchup()
355 +
356 +* Tue Dec  8 1998 Andrej Gritsenko <andrej@lucky.net>
357 +- browser.c: bugfix in _mutt_select_file()
358 +
359 +* Sat Dec  5 1998 Andrej Gritsenko <andrej@lucky.net>
360 +- browser.c, newsrc.c, nntp.c, nntp.h: fix the sorting of
361 +  newsgroups in browser (from Vikas Agnihotri)
362 +
363 +* Fri Dec  4 1998 Vikas Agnihotri <vikasa@att.com>
364 +- OPS, curs_main.c, functions.h, nntp.c, nntp.h: new functions:
365 +  `get-children' and `reconstruct-thread'
366 +
367 +* Thu Dec  3 1998 Vikas Agnihotri <vikasa@att.com>
368 +- OPS, curs_main.c, functions.h, nntp.c, nntp.h: new functions:
369 +  `get-message' and `get-parent'
370 +
371 +* Wed Dec  2 1998 Vikas Agnihotri <vikasa@att.com>
372 +- OPS, compose.c, curs_main.c, functions.h, parse.c, send.c,
373 +  sendlib.c: added `Followup-To:' field editing
374 +
375 +* Wed Dec  2 1998 Vikas Agnihotri <vikasa@att.com>
376 +- OPS, browser.c, functions.h: new `load-active' function
377 +
378 +* Tue Dec  1 1998 Andrej Gritsenko <andrej@lucky.net>
379 +- browser.c: added option for blank %s in $group_index_format
380 +- hdrline.c, lib.c, mutt.h, parse.c: added %g and %W parameters
381 +  to $pager_format
382 +- hook.c, newsrc.c, nntp.c, sendlib.c: some small bugfixes
383 +
384 +* Mon Nov 30 1998 Andrej Gritsenko <andrej@lucky.net>
385 +- send.c: bugfix in `Followup-To:' field
386 +
387 +* Sun Nov 29 1998 Vikas Agnihotri <vikasa@att.com>
388 +- compose.c, lib.c, parse.c, protos.h: remove white spaces from
389 +  `Newsgroup:' field to prevent a unnecessary rejection of article
390 +
391 +* Sat Nov 28 1998 Vikas Agnihotri <vikasa@att.com>
392 +- newsrc.c: fixed bug in catchup
393 +
394 +* Sat Nov 28 1998 Vikas Agnihotri <vikasa@att.com>
395 +- browser.c: make indicator advance when (un)subscribe
396 +
397 +* Sat Nov 28 1998 Andrej Gritsenko <andrej@lucky.net>
398 +- newsrc.c: fixed segmentation fault in newsrc_update_line()
399 +
400 +* Sat Nov 28 1998 Andrej Gritsenko <andrej@lucky.net>
401 +- OPS, browser.c, functions.h, init.h, mutt.h, mx.c, newsrc.c,
402 +  nntp.c, nntp.h: corrected reading of newsrc file and added new
403 +  `catchup' function
404 +
405 +* Thu Nov 26 1998 Andrej Gritsenko <andrej@lucky.net>
406 +- browser.c, newsrc.c: implementation of `(un)subscribe-pattern'
407 +  functions from Vikas Agnihotri
408 +- globals.h, init.h, nntp.h, nntp.c: added variable $nntp_poll
409 +  to avoid of polling newsserver on each keypressing
410 +
411 +* Thu Nov 26 1998 Andrej Gritsenko <andrej@lucky.net>
412 +- nntp.c, socket.c: fixed parsing of long XOVER lines
413 +- send.c: removed silly ask for newsgroup name (noted by Vikas
414 +  Agnihotri)
415 +
416 +* Wed Nov 25 1998
417 +- commands.c: bugfix in mutt_update_list_file()
418 +
419 +* Wed Nov 25 1998 Andrej Gritsenko <andrej@lucky.net>
420 +- updated to mutt-0.94.17
421 +- init.c, nntp.c, nntp.h, parse.c, send.c: couple of bugfixes
422 +  from Vikas Agnihotri
423 +
424 +* Sat Nov 21 1998 Andrej Gritsenko <andrej@lucky.net>
425 +- [mutt-0.94.13] couple of files: pre-alpha version of patch,
426 +  partially based on code that written by Brandon Long
427 diff -uNr mutt-1.4.orig/Makefile.am mutt-1.4/Makefile.am
428 --- mutt-1.4.orig/Makefile.am   Sun Nov  3 21:42:52 2002
429 +++ mutt-1.4/Makefile.am        Sun Nov  3 21:57:20 2002
430 @@ -68,7 +68,8 @@
431  EXTRA_mutt_SOURCES = account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c \
432         mutt_tunnel.c pop.c pop_auth.c pop_lib.c pgp.c pgpinvoke.c pgpkey.c \
433         pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
434 -       browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c pgppacket.c 
435 +       browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c pgppacket.c \
436 +       nntp.c newsrc.c
437  
438  EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h \
439         attach.h buffy.h charset.h compress.h copy.h dotlock.h functions.h \
440 @@ -77,6 +78,7 @@
441         mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
442         mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h \
443         rfc2231.h rfc822.h sha1.h sort.h mime.types VERSION prepare \
444 +       nntp.h ChangeLog.nntp \
445         _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \
446         mbyte.h lib.h extlib.c pgpewrap.c pgplib.h Muttrc.head Muttrc \
447         makedoc.c stamp-doc-rc README.SSL \
448 diff -uNr mutt-1.4.orig/Makefile.in mutt-1.4/Makefile.in
449 --- mutt-1.4.orig/Makefile.in   Sun Nov  3 21:42:51 2002
450 +++ mutt-1.4/Makefile.in        Sun Nov  3 21:57:30 2002
451 @@ -1,6 +1,8 @@
452 -# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
453 +# Makefile.in generated by automake 1.6.3 from Makefile.am.
454 +# @configure_input@
455  
456 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
457 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
458 +# Free Software Foundation, Inc.
459  # This Makefile.in is free software; the Free Software Foundation
460  # gives unlimited permission to copy and/or distribute it,
461  # with or without modifications, as long as this notice is preserved.
462 @@ -10,7 +12,7 @@
463  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
464  # PARTICULAR PURPOSE.
465  
466 -
467 +@SET_MAKE@
468  SHELL = @SHELL@
469  
470  srcdir = @srcdir@
471 @@ -31,13 +33,9 @@
472  mandir = @mandir@
473  includedir = @includedir@
474  oldincludedir = /usr/include
475 -
476 -DESTDIR =
477 -
478  pkgdatadir = $(datadir)/@PACKAGE@
479  pkglibdir = $(libdir)/@PACKAGE@
480  pkgincludedir = $(includedir)/@PACKAGE@
481 -
482  top_builddir = .
483  
484  ACLOCAL = @ACLOCAL@
485 @@ -45,12 +43,16 @@
486  AUTOMAKE = @AUTOMAKE@
487  AUTOHEADER = @AUTOHEADER@
488  
489 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
490  INSTALL = @INSTALL@
491 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
492 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
493  INSTALL_DATA = @INSTALL_DATA@
494 +install_sh_DATA = $(install_sh) -c -m 644
495 +install_sh_PROGRAM = $(install_sh) -c
496 +install_sh_SCRIPT = $(install_sh) -c
497  INSTALL_SCRIPT = @INSTALL_SCRIPT@
498 +INSTALL_HEADER = $(INSTALL_DATA)
499  transform = @program_transform_name@
500 -
501  NORMAL_INSTALL = :
502  PRE_INSTALL = :
503  POST_INSTALL = :
504 @@ -59,14 +61,30 @@
505  POST_UNINSTALL = :
506  host_alias = @host_alias@
507  host_triplet = @host@
508 +
509 +EXEEXT = @EXEEXT@
510 +OBJEXT = @OBJEXT@
511 +PATH_SEPARATOR = @PATH_SEPARATOR@
512 +AMTAR = @AMTAR@
513  AR = @AR@
514 +AWK = @AWK@
515  BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
516  CATALOGS = @CATALOGS@
517  CATOBJEXT = @CATOBJEXT@
518  CC = @CC@
519 +
520 +
521 +# $(makedoc_OBJECTS): $(makedoc_SOURCES)
522 +#      $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $<
523 +
524 +# makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
525 +#      @rm -rf makedoc
526 +#      $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc
527 +CPP = @CPP@
528  DATADIRNAME = @DATADIRNAME@
529  DBX = @DBX@
530  DEBUGGER = @DEBUGGER@
531 +DEPDIR = @DEPDIR@
532  DOTLOCK_GROUP = @DOTLOCK_GROUP@
533  DOTLOCK_PERMISSION = @DOTLOCK_PERMISSION@
534  DOTLOCK_TARGET = @DOTLOCK_TARGET@
535 @@ -75,6 +93,7 @@
536  GLIBC21 = @GLIBC21@
537  GMOFILES = @GMOFILES@
538  GMSGFMT = @GMSGFMT@
539 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
540  INSTOBJEXT = @INSTOBJEXT@
541  INTLBISON = @INTLBISON@
542  INTLLIBS = @INTLLIBS@
543 @@ -85,11 +104,12 @@
544  LIBICONV = @LIBICONV@
545  LIBIMAP = @LIBIMAP@
546  LIBIMAPDEPS = @LIBIMAPDEPS@
547 -MAKEINFO = @MAKEINFO@
548  MKINSTALLDIRS = @MKINSTALLDIRS@
549  MSGFMT = @MSGFMT@
550  MUTTLIBS = @MUTTLIBS@
551  MUTT_LIB_OBJECTS = @MUTT_LIB_OBJECTS@
552 +
553 +OPS = @OPS@
554  PACKAGE = @PACKAGE@
555  PGPAUX_TARGET = @PGPAUX_TARGET@
556  POFILES = @POFILES@
557 @@ -97,12 +117,16 @@
558  RANLIB = @RANLIB@
559  SDB = @SDB@
560  SENDMAIL = @SENDMAIL@
561 +STRIP = @STRIP@
562  SUBVERSION = @SUBVERSION@
563  U = @U@
564  USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
565  USE_NLS = @USE_NLS@
566  VERSION = @VERSION@
567 +am__include = @am__include@
568 +am__quote = @am__quote@
569  docdir = @docdir@
570 +install_sh = @install_sh@
571  
572  AUTOMAKE_OPTIONS = foreign
573  EXTRA_PROGRAMS = mutt_dotlock pgpring makedoc
574 @@ -117,42 +141,70 @@
575  BUILT_SOURCES = keymap_defs.h patchlist.c
576  
577  bin_PROGRAMS = mutt @DOTLOCK_TARGET@ @PGPAUX_TARGET@
578 -mutt_SOURCES = $(BUILT_SOURCES)        addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c  commands.c complete.c compose.c compress.c copy.c curs_lib.c curs_main.c date.c         edit.c enter.c flags.c init.c filter.c from.c getdomain.c       handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c     main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c        postpone.c query.c recvattach.c recvcmd.c       rfc822.c rfc1524.c rfc2047.c rfc2231.c  score.c send.c sendlib.c signal.c sort.c        status.c system.c thread.c charset.c history.c lib.c    muttlib.c editmsg.c utf8.c mbyte.c wcwidth.c    url.c ascii.c
579 +mutt_SOURCES = $(BUILT_SOURCES) \
580 +       addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c \
581 +       commands.c complete.c compose.c compress.c copy.c curs_lib.c \
582 +       curs_main.c date.c \
583 +       edit.c enter.c flags.c init.c filter.c from.c getdomain.c \
584 +       handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c \
585 +       main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c \
586 +       postpone.c query.c recvattach.c recvcmd.c \
587 +       rfc822.c rfc1524.c rfc2047.c rfc2231.c \
588 +       score.c send.c sendlib.c signal.c signature.c sort.c \
589 +       status.c system.c thread.c charset.c history.c lib.c \
590 +       muttlib.c editmsg.c utf8.c mbyte.c wcwidth.c \
591 +       url.c ascii.c
592  
593  
594 -mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS)       $(INTLLIBS) $(LIBICONV)
595 +mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS) \
596 +       $(INTLLIBS) $(LIBICONV)
597  
598  
599 -mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAPDEPS)        $(INTLDEPS)
600 +mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAPDEPS) \
601 +       $(INTLDEPS)
602  
603  
604  makedoc_SOURCES = makedoc.c
605  makedoc_LDADD = 
606  makedoc_DEPENDENCIES = 
607  
608 -# $(makedoc_OBJECTS): $(makedoc_SOURCES)
609 -#      $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $<
610 -
611 -# makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
612 -#      @rm -rf makedoc
613 -#      $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc
614 -
615 -CPP = @CPP@
616 -
617 -DEFS = -DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\"   -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\"    -DHAVE_CONFIG_H=1
618 +DEFS = -DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
619 +       -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
620 +       -DHAVE_CONFIG_H=1
621  
622  
623  INCLUDES = -I. -I$(top_srcdir) $(IMAP_INCLUDES) -Iintl
624  
625  CPPFLAGS = @CPPFLAGS@ -I$(includedir)
626  
627 -non_us_sources = pgp.c pgpinvoke.c pgpkey.c pgplib.c sha1.c    pgpmicalg.c gnupgparse.c sha1.h         doc/language.txt doc/language50.txt OPS.PGP doc/PGP-Notes.txt   OPS.MIX remailer.c remailer.h pgpewrap.c                contrib/pgp2.rc contrib/pgp5.rc contrib/gpg.rc  mutt_ssl.c mutt_ssl.h README.SSL mutt_ssl_nss.c         pgppacket.c pgppacket.h
628 -
629 -
630 -EXTRA_mutt_SOURCES = account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c     mutt_tunnel.c pop.c pop_auth.c pop_lib.c pgp.c pgpinvoke.c pgpkey.c     pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c  browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c pgppacket.c 
631 -
632 -
633 -EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h     attach.h buffy.h charset.h compress.h copy.h dotlock.h functions.h gen_defs     globals.h hash.h history.h init.h keymap.h      mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h       mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h         mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h         rfc2231.h rfc822.h sha1.h sort.h mime.types VERSION prepare     _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h        mbyte.h lib.h extlib.c pgpewrap.c pgplib.h Muttrc.head Muttrc   makedoc.c stamp-doc-rc README.SSL       muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh
634 +non_us_sources = pgp.c pgpinvoke.c pgpkey.c pgplib.c sha1.c \
635 +       pgpmicalg.c gnupgparse.c sha1.h \
636 +       doc/language.txt doc/language50.txt OPS.PGP doc/PGP-Notes.txt \
637 +       OPS.MIX remailer.c remailer.h pgpewrap.c        \
638 +       contrib/pgp2.rc contrib/pgp5.rc contrib/gpg.rc \
639 +       mutt_ssl.c mutt_ssl.h README.SSL mutt_ssl_nss.c \
640 +       pgppacket.c pgppacket.h
641 +
642 +
643 +EXTRA_mutt_SOURCES = account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c \
644 +       mutt_tunnel.c pop.c pop_auth.c pop_lib.c pgp.c pgpinvoke.c pgpkey.c \
645 +       pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
646 +       browser.h mbyte.h remailer.h url.h mutt_ssl_nss.c pgppacket.c \
647 +       nntp.c newsrc.c
648 +
649 +
650 +EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO configure acconfig.h account.h \
651 +       attach.h buffy.h charset.h compress.h copy.h dotlock.h functions.h \
652 +       gen_defs globals.h hash.h history.h init.h keymap.h \
653 +       mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
654 +       mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
655 +       mx.h pager.h pgp.h pop.h protos.h reldate.h rfc1524.h rfc2047.h \
656 +       rfc2231.h rfc822.h sha1.h sort.h mime.types VERSION prepare \
657 +       nntp.h ChangeLog.nntp \
658 +       _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \
659 +       mbyte.h lib.h extlib.c pgpewrap.c pgplib.h Muttrc.head Muttrc \
660 +       makedoc.c stamp-doc-rc README.SSL \
661 +       muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh
662  
663  
664  mutt_dotlock_SOURCES = mutt_dotlock.c
665 @@ -163,204 +215,366 @@
666  pgpring_LDADD = @LIBOBJS@ $(INTLLIBS) 
667  pgpring_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS)
668  
669 -CLEANFILES = mutt_dotlock.c stamp-doc-rc makedoc       keymap_alldefs.h keymap_defs.h patchlist.c
670 +CLEANFILES = mutt_dotlock.c stamp-doc-rc makedoc \
671 +       keymap_alldefs.h keymap_defs.h patchlist.c
672  
673  
674  ACLOCAL_AMFLAGS = -I m4
675  
676  LDADD = @LIBOBJS@ @INTLLIBS@
677 -
678 -OPS = @OPS@
679 +subdir = .
680  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
681  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
682  CONFIG_HEADER = config.h
683 -CONFIG_CLEAN_FILES =  muttbug.sh Muttrc.head
684 -PROGRAMS =  $(bin_PROGRAMS)
685 +CONFIG_CLEAN_FILES = intl/Makefile doc/Makefile contrib/Makefile \
686 +       muttbug.sh Muttrc.head doc/instdoc.sh
687 +EXTRA_PROGRAMS = mutt_dotlock$(EXEEXT) pgpring$(EXEEXT) makedoc$(EXEEXT)
688 +bin_PROGRAMS = mutt$(EXEEXT) @DOTLOCK_TARGET@ @PGPAUX_TARGET@
689 +PROGRAMS = $(bin_PROGRAMS)
690 +
691 +am_makedoc_OBJECTS = makedoc.$(OBJEXT)
692 +makedoc_OBJECTS = $(am_makedoc_OBJECTS)
693 +makedoc_LDFLAGS =
694 +am__objects_1 = patchlist.$(OBJEXT)
695 +am_mutt_OBJECTS = $(am__objects_1) addrbook.$(OBJEXT) alias.$(OBJEXT) \
696 +       attach.$(OBJEXT) base64.$(OBJEXT) browser.$(OBJEXT) \
697 +       buffy.$(OBJEXT) color.$(OBJEXT) commands.$(OBJEXT) \
698 +       complete.$(OBJEXT) compose.$(OBJEXT) compress.$(OBJEXT) \
699 +       copy.$(OBJEXT) curs_lib.$(OBJEXT) curs_main.$(OBJEXT) \
700 +       date.$(OBJEXT) edit.$(OBJEXT) enter.$(OBJEXT) flags.$(OBJEXT) \
701 +       init.$(OBJEXT) filter.$(OBJEXT) from.$(OBJEXT) \
702 +       getdomain.$(OBJEXT) handler.$(OBJEXT) hash.$(OBJEXT) \
703 +       hdrline.$(OBJEXT) headers.$(OBJEXT) help.$(OBJEXT) \
704 +       hook.$(OBJEXT) keymap.$(OBJEXT) main.$(OBJEXT) mbox.$(OBJEXT) \
705 +       menu.$(OBJEXT) mh.$(OBJEXT) mx.$(OBJEXT) pager.$(OBJEXT) \
706 +       parse.$(OBJEXT) pattern.$(OBJEXT) postpone.$(OBJEXT) \
707 +       query.$(OBJEXT) recvattach.$(OBJEXT) recvcmd.$(OBJEXT) \
708 +       rfc822.$(OBJEXT) rfc1524.$(OBJEXT) rfc2047.$(OBJEXT) \
709 +       rfc2231.$(OBJEXT) score.$(OBJEXT) send.$(OBJEXT) \
710 +       sendlib.$(OBJEXT) signal.$(OBJEXT) signature.$(OBJEXT) \
711 +       sort.$(OBJEXT) status.$(OBJEXT) system.$(OBJEXT) \
712 +       thread.$(OBJEXT) charset.$(OBJEXT) history.$(OBJEXT) \
713 +       lib.$(OBJEXT) muttlib.$(OBJEXT) editmsg.$(OBJEXT) \
714 +       utf8.$(OBJEXT) mbyte.$(OBJEXT) wcwidth.$(OBJEXT) url.$(OBJEXT) \
715 +       ascii.$(OBJEXT)
716 +mutt_OBJECTS = $(am_mutt_OBJECTS)
717 +mutt_LDFLAGS =
718 +am_mutt_dotlock_OBJECTS = mutt_dotlock.$(OBJEXT)
719 +mutt_dotlock_OBJECTS = $(am_mutt_dotlock_OBJECTS)
720 +mutt_dotlock_LDFLAGS =
721 +am_pgpring_OBJECTS = pgppubring.$(OBJEXT) pgplib.$(OBJEXT) lib.$(OBJEXT) \
722 +       extlib.$(OBJEXT) sha1.$(OBJEXT) pgppacket.$(OBJEXT) \
723 +       ascii.$(OBJEXT)
724 +pgpring_OBJECTS = $(am_pgpring_OBJECTS)
725 +pgpring_LDFLAGS =
726 +SCRIPTS = $(bin_SCRIPTS)
727  
728 +DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
729  LDFLAGS = @LDFLAGS@
730  LIBS = @LIBS@
731 -mutt_dotlock_OBJECTS =  mutt_dotlock.o
732 -mutt_dotlock_LDFLAGS = 
733 -pgpring_OBJECTS =  pgppubring.o pgplib.o lib.o extlib.o sha1.o \
734 -pgppacket.o ascii.o
735 -pgpring_LDFLAGS = 
736 -makedoc_OBJECTS =  makedoc.o
737 -makedoc_LDFLAGS = 
738 -mutt_OBJECTS =  patchlist.o addrbook.o alias.o attach.o base64.o \
739 -browser.o buffy.o color.o commands.o complete.o compose.o compress.o copy.o \
740 -curs_lib.o curs_main.o date.o edit.o enter.o flags.o init.o filter.o \
741 -from.o getdomain.o handler.o hash.o hdrline.o headers.o help.o hook.o \
742 -keymap.o main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o \
743 -postpone.o query.o recvattach.o recvcmd.o rfc822.o rfc1524.o rfc2047.o \
744 -rfc2231.o score.o send.o sendlib.o signal.o sort.o status.o system.o \
745 -thread.o charset.o history.o lib.o muttlib.o editmsg.o utf8.o mbyte.o \
746 -wcwidth.o url.o ascii.o
747 -mutt_LDFLAGS = 
748 -SCRIPTS =  $(bin_SCRIPTS)
749 -
750 -CFLAGS = @CFLAGS@
751 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
752 +depcomp = $(SHELL) $(top_srcdir)/depcomp
753 +am__depfiles_maybe = depfiles
754 +@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/regex.Po $(DEPDIR)/snprintf.Po \
755 +@AMDEP_TRUE@   $(DEPDIR)/strcasecmp.Po $(DEPDIR)/strdup.Po \
756 +@AMDEP_TRUE@   ./$(DEPDIR)/account.Po ./$(DEPDIR)/addrbook.Po \
757 +@AMDEP_TRUE@   ./$(DEPDIR)/alias.Po ./$(DEPDIR)/ascii.Po \
758 +@AMDEP_TRUE@   ./$(DEPDIR)/attach.Po ./$(DEPDIR)/base64.Po \
759 +@AMDEP_TRUE@   ./$(DEPDIR)/browser.Po ./$(DEPDIR)/buffy.Po \
760 +@AMDEP_TRUE@   ./$(DEPDIR)/charset.Po ./$(DEPDIR)/color.Po \
761 +@AMDEP_TRUE@   ./$(DEPDIR)/commands.Po ./$(DEPDIR)/complete.Po \
762 +@AMDEP_TRUE@   ./$(DEPDIR)/compose.Po ./$(DEPDIR)/compress.Po \
763 +@AMDEP_TRUE@   ./$(DEPDIR)/copy.Po ./$(DEPDIR)/curs_lib.Po \
764 +@AMDEP_TRUE@   ./$(DEPDIR)/curs_main.Po ./$(DEPDIR)/date.Po \
765 +@AMDEP_TRUE@   ./$(DEPDIR)/dotlock.Po ./$(DEPDIR)/edit.Po \
766 +@AMDEP_TRUE@   ./$(DEPDIR)/editmsg.Po ./$(DEPDIR)/enter.Po \
767 +@AMDEP_TRUE@   ./$(DEPDIR)/extlib.Po ./$(DEPDIR)/filter.Po \
768 +@AMDEP_TRUE@   ./$(DEPDIR)/flags.Po ./$(DEPDIR)/from.Po \
769 +@AMDEP_TRUE@   ./$(DEPDIR)/getdomain.Po ./$(DEPDIR)/gnupgparse.Po \
770 +@AMDEP_TRUE@   ./$(DEPDIR)/handler.Po ./$(DEPDIR)/hash.Po \
771 +@AMDEP_TRUE@   ./$(DEPDIR)/hdrline.Po ./$(DEPDIR)/headers.Po \
772 +@AMDEP_TRUE@   ./$(DEPDIR)/help.Po ./$(DEPDIR)/history.Po \
773 +@AMDEP_TRUE@   ./$(DEPDIR)/hook.Po ./$(DEPDIR)/init.Po \
774 +@AMDEP_TRUE@   ./$(DEPDIR)/keymap.Po ./$(DEPDIR)/lib.Po \
775 +@AMDEP_TRUE@   ./$(DEPDIR)/main.Po ./$(DEPDIR)/makedoc.Po \
776 +@AMDEP_TRUE@   ./$(DEPDIR)/mbox.Po ./$(DEPDIR)/mbyte.Po \
777 +@AMDEP_TRUE@   ./$(DEPDIR)/md5c.Po ./$(DEPDIR)/menu.Po \
778 +@AMDEP_TRUE@   ./$(DEPDIR)/mh.Po ./$(DEPDIR)/mutt_dotlock.Po \
779 +@AMDEP_TRUE@   ./$(DEPDIR)/mutt_sasl.Po ./$(DEPDIR)/mutt_socket.Po \
780 +@AMDEP_TRUE@   ./$(DEPDIR)/mutt_ssl.Po ./$(DEPDIR)/mutt_ssl_nss.Po \
781 +@AMDEP_TRUE@   ./$(DEPDIR)/mutt_tunnel.Po ./$(DEPDIR)/muttlib.Po \
782 +@AMDEP_TRUE@   ./$(DEPDIR)/mx.Po ./$(DEPDIR)/newsrc.Po \
783 +@AMDEP_TRUE@   ./$(DEPDIR)/nntp.Po ./$(DEPDIR)/pager.Po \
784 +@AMDEP_TRUE@   ./$(DEPDIR)/parse.Po ./$(DEPDIR)/patchlist.Po \
785 +@AMDEP_TRUE@   ./$(DEPDIR)/pattern.Po ./$(DEPDIR)/pgp.Po \
786 +@AMDEP_TRUE@   ./$(DEPDIR)/pgpinvoke.Po ./$(DEPDIR)/pgpkey.Po \
787 +@AMDEP_TRUE@   ./$(DEPDIR)/pgplib.Po ./$(DEPDIR)/pgpmicalg.Po \
788 +@AMDEP_TRUE@   ./$(DEPDIR)/pgppacket.Po ./$(DEPDIR)/pgppubring.Po \
789 +@AMDEP_TRUE@   ./$(DEPDIR)/pop.Po ./$(DEPDIR)/pop_auth.Po \
790 +@AMDEP_TRUE@   ./$(DEPDIR)/pop_lib.Po ./$(DEPDIR)/postpone.Po \
791 +@AMDEP_TRUE@   ./$(DEPDIR)/query.Po ./$(DEPDIR)/recvattach.Po \
792 +@AMDEP_TRUE@   ./$(DEPDIR)/recvcmd.Po ./$(DEPDIR)/remailer.Po \
793 +@AMDEP_TRUE@   ./$(DEPDIR)/resize.Po ./$(DEPDIR)/rfc1524.Po \
794 +@AMDEP_TRUE@   ./$(DEPDIR)/rfc2047.Po ./$(DEPDIR)/rfc2231.Po \
795 +@AMDEP_TRUE@   ./$(DEPDIR)/rfc822.Po ./$(DEPDIR)/score.Po \
796 +@AMDEP_TRUE@   ./$(DEPDIR)/send.Po ./$(DEPDIR)/sendlib.Po \
797 +@AMDEP_TRUE@   ./$(DEPDIR)/sha1.Po ./$(DEPDIR)/signal.Po \
798 +@AMDEP_TRUE@   ./$(DEPDIR)/signature.Po ./$(DEPDIR)/sort.Po \
799 +@AMDEP_TRUE@   ./$(DEPDIR)/status.Po ./$(DEPDIR)/system.Po \
800 +@AMDEP_TRUE@   ./$(DEPDIR)/thread.Po ./$(DEPDIR)/url.Po \
801 +@AMDEP_TRUE@   ./$(DEPDIR)/utf8.Po ./$(DEPDIR)/wcwidth.Po
802 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
803 +       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
804  CCLD = $(CC)
805 -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
806 -DIST_COMMON =  README ./stamp-h.in ABOUT-NLS ChangeLog INSTALL \
807 -Makefile.am Makefile.in Muttrc.head.in NEWS TODO acconfig.h aclocal.m4 \
808 -config.guess config.h.in config.sub configure configure.in install-sh \
809 -missing mkinstalldirs muttbug.sh.in regex.c snprintf.c strcasecmp.c \
810 -strdup.c
811 -
812 +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
813 +CFLAGS = @CFLAGS@
814 +DIST_SOURCES = $(makedoc_SOURCES) $(mutt_SOURCES) $(EXTRA_mutt_SOURCES) \
815 +       $(mutt_dotlock_SOURCES) $(pgpring_SOURCES)
816  
817 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
818 +RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
819 +       uninstall-info-recursive all-recursive install-data-recursive \
820 +       install-exec-recursive installdirs-recursive install-recursive \
821 +       uninstall-recursive check-recursive installcheck-recursive
822 +DIST_COMMON = README ABOUT-NLS ChangeLog INSTALL Makefile.am \
823 +       Makefile.in Muttrc.head.in NEWS TODO acconfig.h aclocal.m4 \
824 +       config.guess config.h.in config.sub configure configure.in \
825 +       depcomp install-sh missing mkinstalldirs muttbug.sh.in regex.c \
826 +       snprintf.c strcasecmp.c strdup.c
827 +DIST_SUBDIRS = m4 po intl doc contrib imap
828 +SOURCES = $(makedoc_SOURCES) $(mutt_SOURCES) $(EXTRA_mutt_SOURCES) $(mutt_dotlock_SOURCES) $(pgpring_SOURCES)
829  
830 -TAR = tar
831 -GZIP_ENV = --best
832 -DIST_SUBDIRS =  m4 po intl doc contrib imap
833 -SOURCES = $(mutt_dotlock_SOURCES) $(pgpring_SOURCES) $(makedoc_SOURCES) $(mutt_SOURCES) $(EXTRA_mutt_SOURCES)
834 -OBJECTS = $(mutt_dotlock_OBJECTS) $(pgpring_OBJECTS) $(makedoc_OBJECTS) $(mutt_OBJECTS)
835 +all: $(BUILT_SOURCES) config.h
836 +       $(MAKE) $(AM_MAKEFLAGS) all-recursive
837  
838 -all: all-redirect
839  .SUFFIXES:
840 -.SUFFIXES: .S .c .o .s
841 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
842 -       cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile
843 -
844 -Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
845 -       cd $(top_builddir) \
846 -         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
847 -
848 -$(ACLOCAL_M4):  configure.in  m4/codeset.m4 m4/curslib.m4 m4/funcdecl.m4 \
849 -               m4/gettext.m4 m4/glibc21.m4 m4/gssapi.m4 m4/iconv.m4 \
850 -               m4/lcmessage.m4 m4/progtest.m4
851 -       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
852 +.SUFFIXES: .c .o .obj
853 +
854 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
855 + configure.lineno
856 +$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
857 +       cd $(top_srcdir) && \
858 +         $(AUTOMAKE) --foreign  Makefile
859  
860 -config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES)
861 +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
862         $(SHELL) ./config.status --recheck
863 -$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
864 +$(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
865         cd $(srcdir) && $(AUTOCONF)
866  
867 -config.h: stamp-h
868 -       @if test ! -f $@; then \
869 -               rm -f stamp-h; \
870 -               $(MAKE) stamp-h; \
871 -       else :; fi
872 -stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
873 -       cd $(top_builddir) \
874 -         && CONFIG_FILES= CONFIG_HEADERS=config.h \
875 -            $(SHELL) ./config.status
876 -       @echo timestamp > stamp-h 2> /dev/null
877 -$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
878 +$(ACLOCAL_M4):  configure.in m4/codeset.m4 m4/curslib.m4 m4/funcdecl.m4 m4/gettext.m4 m4/glibc21.m4 m4/gssapi.m4 m4/iconv.m4 m4/lcmessage.m4 m4/progtest.m4
879 +       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
880 +
881 +config.h: stamp-h1
882         @if test ! -f $@; then \
883 -               rm -f $(srcdir)/stamp-h.in; \
884 -               $(MAKE) $(srcdir)/stamp-h.in; \
885 +         rm -f stamp-h1; \
886 +         $(MAKE) stamp-h1; \
887         else :; fi
888 -$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
889 -       cd $(top_srcdir) && $(AUTOHEADER)
890 -       @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
891  
892 -mostlyclean-hdr:
893 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
894 +       @rm -f stamp-h1
895 +       cd $(top_builddir) && $(SHELL) ./config.status config.h
896  
897 -clean-hdr:
898 +$(srcdir)/config.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
899 +       cd $(top_srcdir) && $(AUTOHEADER)
900 +       touch $(srcdir)/config.h.in
901  
902  distclean-hdr:
903 -       -rm -f config.h
904 -
905 -maintainer-clean-hdr:
906 +       -rm -f config.h stamp-h1
907 +intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
908 +       cd $(top_builddir) && $(SHELL) ./config.status $@
909 +doc/Makefile: $(top_builddir)/config.status $(top_srcdir)/doc/Makefile.in
910 +       cd $(top_builddir) && $(SHELL) ./config.status $@
911 +contrib/Makefile: $(top_builddir)/config.status $(top_srcdir)/contrib/Makefile.in
912 +       cd $(top_builddir) && $(SHELL) ./config.status $@
913  muttbug.sh: $(top_builddir)/config.status muttbug.sh.in
914 -       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
915 +       cd $(top_builddir) && $(SHELL) ./config.status $@
916  Muttrc.head: $(top_builddir)/config.status Muttrc.head.in
917 -       cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
918 -
919 -mostlyclean-binPROGRAMS:
920 -
921 -clean-binPROGRAMS:
922 -       -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
923 -
924 -distclean-binPROGRAMS:
925 -
926 -maintainer-clean-binPROGRAMS:
927 -
928 +       cd $(top_builddir) && $(SHELL) ./config.status $@
929 +doc/instdoc.sh: $(top_builddir)/config.status $(top_srcdir)/doc/instdoc.sh.in
930 +       cd $(top_builddir) && $(SHELL) ./config.status $@
931 +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
932  install-binPROGRAMS: $(bin_PROGRAMS)
933         @$(NORMAL_INSTALL)
934         $(mkinstalldirs) $(DESTDIR)$(bindir)
935         @list='$(bin_PROGRAMS)'; for p in $$list; do \
936 -         if test -f $$p; then \
937 -           echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
938 -            $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
939 +         p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
940 +         if test -f $$p \
941 +         ; then \
942 +           f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
943 +          echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
944 +          $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
945           else :; fi; \
946         done
947  
948  uninstall-binPROGRAMS:
949         @$(NORMAL_UNINSTALL)
950 -       list='$(bin_PROGRAMS)'; for p in $$list; do \
951 -         rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
952 +       @list='$(bin_PROGRAMS)'; for p in $$list; do \
953 +         f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
954 +         echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
955 +         rm -f $(DESTDIR)$(bindir)/$$f; \
956         done
957  
958 -.c.o:
959 -       $(COMPILE) -c $<
960 -
961 -.s.o:
962 -       $(COMPILE) -c $<
963 -
964 -.S.o:
965 -       $(COMPILE) -c $<
966 -
967 -mostlyclean-compile:
968 -       -rm -f *.o core *.core
969 -
970 -clean-compile:
971 -
972 -distclean-compile:
973 -       -rm -f *.tab.c
974 -
975 -maintainer-clean-compile:
976 -
977 -mutt_dotlock: $(mutt_dotlock_OBJECTS) $(mutt_dotlock_DEPENDENCIES)
978 -       @rm -f mutt_dotlock
979 -       $(LINK) $(mutt_dotlock_LDFLAGS) $(mutt_dotlock_OBJECTS) $(mutt_dotlock_LDADD) $(LIBS)
980 -
981 -pgpring: $(pgpring_OBJECTS) $(pgpring_DEPENDENCIES)
982 -       @rm -f pgpring
983 -       $(LINK) $(pgpring_LDFLAGS) $(pgpring_OBJECTS) $(pgpring_LDADD) $(LIBS)
984 -
985 -makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
986 -       @rm -f makedoc
987 +clean-binPROGRAMS:
988 +       -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
989 +makedoc$(EXEEXT): $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES) 
990 +       @rm -f makedoc$(EXEEXT)
991         $(LINK) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) $(LIBS)
992 -
993 -mutt: $(mutt_OBJECTS) $(mutt_DEPENDENCIES)
994 -       @rm -f mutt
995 +mutt$(EXEEXT): $(mutt_OBJECTS) $(mutt_DEPENDENCIES) 
996 +       @rm -f mutt$(EXEEXT)
997         $(LINK) $(mutt_LDFLAGS) $(mutt_OBJECTS) $(mutt_LDADD) $(LIBS)
998 -
999 +mutt_dotlock$(EXEEXT): $(mutt_dotlock_OBJECTS) $(mutt_dotlock_DEPENDENCIES) 
1000 +       @rm -f mutt_dotlock$(EXEEXT)
1001 +       $(LINK) $(mutt_dotlock_LDFLAGS) $(mutt_dotlock_OBJECTS) $(mutt_dotlock_LDADD) $(LIBS)
1002 +pgpring$(EXEEXT): $(pgpring_OBJECTS) $(pgpring_DEPENDENCIES) 
1003 +       @rm -f pgpring$(EXEEXT)
1004 +       $(LINK) $(pgpring_LDFLAGS) $(pgpring_OBJECTS) $(pgpring_LDADD) $(LIBS)
1005 +binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
1006  install-binSCRIPTS: $(bin_SCRIPTS)
1007         @$(NORMAL_INSTALL)
1008         $(mkinstalldirs) $(DESTDIR)$(bindir)
1009         @list='$(bin_SCRIPTS)'; for p in $$list; do \
1010 -         if test -f $$p; then \
1011 -           echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
1012 -           $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
1013 -         else if test -f $(srcdir)/$$p; then \
1014 -           echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
1015 -           $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
1016 -         else :; fi; fi; \
1017 +         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1018 +         if test -f $$d$$p; then \
1019 +           f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
1020 +           echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
1021 +           $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
1022 +         else :; fi; \
1023         done
1024  
1025  uninstall-binSCRIPTS:
1026         @$(NORMAL_UNINSTALL)
1027 -       list='$(bin_SCRIPTS)'; for p in $$list; do \
1028 -         rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
1029 +       @list='$(bin_SCRIPTS)'; for p in $$list; do \
1030 +         f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
1031 +         echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
1032 +         rm -f $(DESTDIR)$(bindir)/$$f; \
1033         done
1034  
1035 +mostlyclean-compile:
1036 +       -rm -f *.$(OBJEXT) core *.core
1037 +
1038 +distclean-compile:
1039 +       -rm -f *.tab.c
1040 +
1041 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/regex.Po@am__quote@
1042 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/snprintf.Po@am__quote@
1043 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strcasecmp.Po@am__quote@
1044 +@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strdup.Po@am__quote@
1045 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/account.Po@am__quote@
1046 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addrbook.Po@am__quote@
1047 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alias.Po@am__quote@
1048 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ascii.Po@am__quote@
1049 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/attach.Po@am__quote@
1050 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Po@am__quote@
1051 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browser.Po@am__quote@
1052 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffy.Po@am__quote@
1053 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/charset.Po@am__quote@
1054 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color.Po@am__quote@
1055 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/commands.Po@am__quote@
1056 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/complete.Po@am__quote@
1057 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compose.Po@am__quote@
1058 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compress.Po@am__quote@
1059 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/copy.Po@am__quote@
1060 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curs_lib.Po@am__quote@
1061 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/curs_main.Po@am__quote@
1062 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/date.Po@am__quote@
1063 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dotlock.Po@am__quote@
1064 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/edit.Po@am__quote@
1065 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/editmsg.Po@am__quote@
1066 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enter.Po@am__quote@
1067 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extlib.Po@am__quote@
1068 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@
1069 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/flags.Po@am__quote@
1070 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/from.Po@am__quote@
1071 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdomain.Po@am__quote@
1072 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gnupgparse.Po@am__quote@
1073 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/handler.Po@am__quote@
1074 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Po@am__quote@
1075 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdrline.Po@am__quote@
1076 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/headers.Po@am__quote@
1077 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@
1078 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/history.Po@am__quote@
1079 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hook.Po@am__quote@
1080 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Po@am__quote@
1081 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keymap.Po@am__quote@
1082 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib.Po@am__quote@
1083 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
1084 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/makedoc.Po@am__quote@
1085 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbox.Po@am__quote@
1086 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbyte.Po@am__quote@
1087 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5c.Po@am__quote@
1088 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menu.Po@am__quote@
1089 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mh.Po@am__quote@
1090 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_dotlock.Po@am__quote@
1091 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_sasl.Po@am__quote@
1092 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_socket.Po@am__quote@
1093 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_ssl.Po@am__quote@
1094 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_ssl_nss.Po@am__quote@
1095 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutt_tunnel.Po@am__quote@
1096 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/muttlib.Po@am__quote@
1097 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mx.Po@am__quote@
1098 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newsrc.Po@am__quote@
1099 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nntp.Po@am__quote@
1100 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pager.Po@am__quote@
1101 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse.Po@am__quote@
1102 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/patchlist.Po@am__quote@
1103 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pattern.Po@am__quote@
1104 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgp.Po@am__quote@
1105 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgpinvoke.Po@am__quote@
1106 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgpkey.Po@am__quote@
1107 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgplib.Po@am__quote@
1108 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgpmicalg.Po@am__quote@
1109 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgppacket.Po@am__quote@
1110 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgppubring.Po@am__quote@
1111 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pop.Po@am__quote@
1112 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pop_auth.Po@am__quote@
1113 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pop_lib.Po@am__quote@
1114 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/postpone.Po@am__quote@
1115 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query.Po@am__quote@
1116 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recvattach.Po@am__quote@
1117 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recvcmd.Po@am__quote@
1118 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remailer.Po@am__quote@
1119 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resize.Po@am__quote@
1120 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc1524.Po@am__quote@
1121 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc2047.Po@am__quote@
1122 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc2231.Po@am__quote@
1123 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rfc822.Po@am__quote@
1124 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/score.Po@am__quote@
1125 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/send.Po@am__quote@
1126 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sendlib.Po@am__quote@
1127 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha1.Po@am__quote@
1128 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signal.Po@am__quote@
1129 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signature.Po@am__quote@
1130 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sort.Po@am__quote@
1131 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/status.Po@am__quote@
1132 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/system.Po@am__quote@
1133 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thread.Po@am__quote@
1134 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/url.Po@am__quote@
1135 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf8.Po@am__quote@
1136 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wcwidth.Po@am__quote@
1137 +
1138 +distclean-depend:
1139 +       -rm -rf $(DEPDIR) ./$(DEPDIR)
1140 +
1141 +.c.o:
1142 +@AMDEP_TRUE@   source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1143 +@AMDEP_TRUE@   depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
1144 +@AMDEP_TRUE@   $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1145 +       $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
1146 +
1147 +.c.obj:
1148 +@AMDEP_TRUE@   source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1149 +@AMDEP_TRUE@   depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
1150 +@AMDEP_TRUE@   $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1151 +       $(COMPILE) -c `cygpath -w $<`
1152 +CCDEPMODE = @CCDEPMODE@
1153 +uninstall-info-am:
1154 +
1155  # This directory's subdirectories are mostly independent; you can cd
1156  # into them and run `make' without going through this Makefile.
1157  # To change the values of `make' variables: instead of editing Makefiles,
1158  # (1) if the variable is set in `config.status', edit `config.status'
1159  #     (which will cause the Makefiles to be regenerated when you run `make');
1160  # (2) otherwise, pass the desired values on the `make' command line.
1161 -
1162 -@SET_MAKE@
1163 -
1164 -all-recursive install-data-recursive install-exec-recursive \
1165 -installdirs-recursive install-recursive uninstall-recursive  \
1166 -check-recursive installcheck-recursive info-recursive dvi-recursive:
1167 -       @set fnord $(MAKEFLAGS); amf=$$2; \
1168 +$(RECURSIVE_TARGETS):
1169 +       @set fnord $$MAKEFLAGS; amf=$$2; \
1170         dot_seen=no; \
1171         target=`echo $@ | sed s/-recursive//`; \
1172         list='$(SUBDIRS)'; for subdir in $$list; do \
1173 @@ -380,13 +594,18 @@
1174  
1175  mostlyclean-recursive clean-recursive distclean-recursive \
1176  maintainer-clean-recursive:
1177 -       @set fnord $(MAKEFLAGS); amf=$$2; \
1178 +       @set fnord $$MAKEFLAGS; amf=$$2; \
1179         dot_seen=no; \
1180 -       rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
1181 -         rev="$$subdir $$rev"; \
1182 -         test "$$subdir" = "." && dot_seen=yes; \
1183 +       case "$@" in \
1184 +         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1185 +         *) list='$(SUBDIRS)' ;; \
1186 +       esac; \
1187 +       rev=''; for subdir in $$list; do \
1188 +         if test "$$subdir" = "."; then :; else \
1189 +           rev="$$subdir $$rev"; \
1190 +         fi; \
1191         done; \
1192 -       test "$$dot_seen" = "no" && rev=". $$rev"; \
1193 +       rev="$$rev ."; \
1194         target=`echo $@ | sed s/-recursive//`; \
1195         for subdir in $$rev; do \
1196           echo "Making $$target in $$subdir"; \
1197 @@ -403,333 +622,172 @@
1198           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
1199         done
1200  
1201 +ETAGS = etags
1202 +ETAGSFLAGS =
1203 +
1204  tags: TAGS
1205  
1206 -ID: $(HEADERS) $(SOURCES) $(LISP)
1207 -       list='$(SOURCES) $(HEADERS)'; \
1208 -       unique=`for i in $$list; do echo $$i; done | \
1209 -         awk '    { files[$$0] = 1; } \
1210 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1211 +       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1212 +       unique=`for i in $$list; do \
1213 +           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1214 +         done | \
1215 +         $(AWK) '    { files[$$0] = 1; } \
1216                END { for (i in files) print i; }'`; \
1217 -       here=`pwd` && cd $(srcdir) \
1218 -         && mkid -f$$here/ID $$unique $(LISP)
1219 +       mkid -fID $$unique
1220  
1221 -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
1222 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1223 +               $(TAGS_FILES) $(LISP)
1224         tags=; \
1225         here=`pwd`; \
1226         list='$(SUBDIRS)'; for subdir in $$list; do \
1227 -   if test "$$subdir" = .; then :; else \
1228 +         if test "$$subdir" = .; then :; else \
1229             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
1230 -   fi; \
1231 +         fi; \
1232         done; \
1233 -       list='$(SOURCES) $(HEADERS)'; \
1234 -       unique=`for i in $$list; do echo $$i; done | \
1235 -         awk '    { files[$$0] = 1; } \
1236 +       list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1237 +       unique=`for i in $$list; do \
1238 +           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1239 +         done | \
1240 +         $(AWK) '    { files[$$0] = 1; } \
1241                END { for (i in files) print i; }'`; \
1242 -       test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
1243 -         || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
1244 -
1245 -mostlyclean-tags:
1246 -
1247 -clean-tags:
1248 +       test -z "$(ETAGS_ARGS)$$tags$$unique" \
1249 +         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1250 +            $$tags $$unique
1251 +
1252 +GTAGS:
1253 +       here=`$(am__cd) $(top_builddir) && pwd` \
1254 +         && cd $(top_srcdir) \
1255 +         && gtags -i $(GTAGS_ARGS) $$here
1256  
1257  distclean-tags:
1258 -       -rm -f TAGS ID
1259 -
1260 -maintainer-clean-tags:
1261 +       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
1262 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
1263  
1264 +top_distdir = .
1265  distdir = $(PACKAGE)-$(VERSION)
1266 -top_distdir = $(distdir)
1267  
1268 -# This target untars the dist file and tries a VPATH configuration.  Then
1269 -# it guarantees that the distribution is self-contained by making another
1270 -# tarfile.
1271 -distcheck: dist
1272 -       -rm -rf $(distdir)
1273 -       GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
1274 -       mkdir $(distdir)/=build
1275 -       mkdir $(distdir)/=inst
1276 -       dc_install_base=`cd $(distdir)/=inst && pwd`; \
1277 -       cd $(distdir)/=build \
1278 -         && ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
1279 -         && $(MAKE) $(AM_MAKEFLAGS) \
1280 -         && $(MAKE) $(AM_MAKEFLAGS) dvi \
1281 -         && $(MAKE) $(AM_MAKEFLAGS) check \
1282 -         && $(MAKE) $(AM_MAKEFLAGS) install \
1283 -         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1284 -         && $(MAKE) $(AM_MAKEFLAGS) dist
1285 -       -rm -rf $(distdir)
1286 -       @banner="$(distdir).tar.gz is ready for distribution"; \
1287 -       dashes=`echo "$$banner" | sed s/./=/g`; \
1288 -       echo "$$dashes"; \
1289 -       echo "$$banner"; \
1290 -       echo "$$dashes"
1291 -dist: distdir
1292 -       -chmod -R a+r $(distdir)
1293 -       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1294 -       -rm -rf $(distdir)
1295 -dist-all: distdir
1296 -       -chmod -R a+r $(distdir)
1297 -       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1298 -       -rm -rf $(distdir)
1299 +am__remove_distdir = \
1300 +  { test ! -d $(distdir) \
1301 +    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
1302 +         && rm -fr $(distdir); }; }
1303 +
1304 +GZIP_ENV = --best
1305 +distcleancheck_listfiles = find . -type f -print
1306 +
1307  distdir: $(DISTFILES)
1308 -       -rm -rf $(distdir)
1309 +       $(am__remove_distdir)
1310         mkdir $(distdir)
1311 -       -chmod 777 $(distdir)
1312 -       @for file in $(DISTFILES); do \
1313 -         d=$(srcdir); \
1314 +       $(mkinstalldirs) $(distdir)/. $(distdir)/contrib $(distdir)/doc $(distdir)/intl $(distdir)/po
1315 +       @list='$(DISTFILES)'; for file in $$list; do \
1316 +         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1317 +         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
1318 +         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
1319 +           dir="/$$dir"; \
1320 +           $(mkinstalldirs) "$(distdir)$$dir"; \
1321 +         else \
1322 +           dir=''; \
1323 +         fi; \
1324           if test -d $$d/$$file; then \
1325 -           cp -pr $$d/$$file $(distdir)/$$file; \
1326 +           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1327 +             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
1328 +           fi; \
1329 +           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1330           else \
1331             test -f $(distdir)/$$file \
1332 -           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1333 -           || cp -p $$d/$$file $(distdir)/$$file || :; \
1334 +           || cp -p $$d/$$file $(distdir)/$$file \
1335 +           || exit 1; \
1336           fi; \
1337         done
1338 -       for subdir in $(DIST_SUBDIRS); do \
1339 +       list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1340           if test "$$subdir" = .; then :; else \
1341             test -d $(distdir)/$$subdir \
1342             || mkdir $(distdir)/$$subdir \
1343             || exit 1; \
1344 -           chmod 777 $(distdir)/$$subdir; \
1345 -           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
1346 +           (cd $$subdir && \
1347 +             $(MAKE) $(AM_MAKEFLAGS) \
1348 +               top_distdir="$(top_distdir)" \
1349 +               distdir=../$(distdir)/$$subdir \
1350 +               distdir) \
1351               || exit 1; \
1352           fi; \
1353         done
1354 -       $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
1355 -addrbook.o: addrbook.c mutt.h config.h rfc822.h hash.h charset.h \
1356 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1357 -       mutt_menu.h keymap.h keymap_defs.h mapping.h sort.h
1358 -alias.o: alias.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1359 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h
1360 -ascii.o: ascii.c ascii.h
1361 -attach.o: attach.c mutt.h config.h rfc822.h hash.h charset.h \
1362 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1363 -       mutt_menu.h keymap.h keymap_defs.h mutt_curses.h rfc1524.h \
1364 -       mime.h pager.h mailbox.h copy.h mx.h pgp.h pgplib.h
1365 -base64.o: base64.c mutt.h config.h rfc822.h hash.h charset.h \
1366 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h mime.h
1367 -browser.o: browser.c mutt.h config.h rfc822.h hash.h charset.h \
1368 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1369 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h buffy.h \
1370 -       mapping.h sort.h mailbox.h browser.h
1371 -buffy.o: buffy.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1372 -       ascii.h protos.h mbyte.h lib.h globals.h buffy.h mailbox.h mx.h
1373 -charset.o: charset.c mutt.h config.h rfc822.h hash.h charset.h \
1374 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1375 -color.o: color.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1376 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h \
1377 -       mapping.h
1378 -commands.o: commands.c mutt.h config.h rfc822.h hash.h charset.h \
1379 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1380 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h mime.h sort.h \
1381 -       mapping.h mailbox.h copy.h mx.h pager.h pgp.h pgplib.h
1382 -complete.o: complete.c mutt.h config.h rfc822.h hash.h charset.h \
1383 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1384 -compose.o: compose.c mutt.h config.h rfc822.h hash.h charset.h \
1385 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1386 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h rfc1524.h \
1387 -       mime.h attach.h mapping.h mailbox.h sort.h pgp.h pgplib.h
1388 -copy.o: copy.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1389 -       ascii.h protos.h mbyte.h lib.h globals.h mailbox.h mx.h copy.h \
1390 -       rfc2047.h mime.h pgp.h pgplib.h
1391 -curs_lib.o: curs_lib.c mutt.h config.h rfc822.h hash.h charset.h \
1392 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1393 -       mutt_menu.h keymap.h keymap_defs.h mutt_curses.h pager.h
1394 -curs_main.o: curs_main.c mutt.h config.h rfc822.h hash.h charset.h \
1395 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1396 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h mailbox.h \
1397 -       mapping.h sort.h buffy.h mx.h pgp.h pgplib.h
1398 -date.o: date.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1399 -       ascii.h protos.h mbyte.h lib.h globals.h
1400 -edit.o: edit.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1401 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h
1402 -editmsg.o: editmsg.c mutt.h config.h rfc822.h hash.h charset.h \
1403 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h copy.h \
1404 -       mailbox.h mx.h
1405 -enter.o: enter.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1406 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_menu.h keymap.h \
1407 -       keymap_defs.h mutt_curses.h history.h
1408 -filter.o: filter.c mutt.h config.h rfc822.h hash.h charset.h \
1409 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1410 -flags.o: flags.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1411 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h sort.h \
1412 -       mapping.h mx.h mailbox.h
1413 -from.o: from.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1414 -       ascii.h protos.h mbyte.h lib.h globals.h
1415 -getdomain.o: getdomain.c mutt.h config.h rfc822.h hash.h charset.h \
1416 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1417 -gnupgparse.o: gnupgparse.c mutt.h config.h rfc822.h hash.h charset.h \
1418 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h pgp.h \
1419 -       pgplib.h mime.h
1420 -handler.o: handler.c mutt.h config.h rfc822.h hash.h charset.h \
1421 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1422 -       mutt_curses.h rfc1524.h keymap.h keymap_defs.h mime.h copy.h \
1423 -       pgp.h pgplib.h
1424 -hash.o: hash.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1425 -       ascii.h protos.h mbyte.h lib.h globals.h
1426 -hdrline.o: hdrline.c mutt.h config.h rfc822.h hash.h charset.h \
1427 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1428 -       mutt_curses.h sort.h mapping.h pgp.h pgplib.h
1429 -headers.o: headers.c mutt.h config.h rfc822.h hash.h charset.h \
1430 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h pgp.h \
1431 -       pgplib.h
1432 -help.o: help.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1433 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h keymap.h \
1434 -       keymap_defs.h pager.h mapping.h
1435 -history.o: history.c mutt.h config.h rfc822.h hash.h charset.h \
1436 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h history.h
1437 -hook.o: hook.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1438 -       ascii.h protos.h mbyte.h lib.h globals.h mailbox.h
1439 -init.o: init.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1440 -       ascii.h protos.h mbyte.h lib.h globals.h mapping.h \
1441 -       mutt_curses.h history.h keymap.h keymap_defs.h pgp.h pgplib.h \
1442 -       mx.h mailbox.h init.h sort.h buffy.h
1443 -keymap.o: keymap.c mutt.h config.h rfc822.h hash.h charset.h \
1444 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1445 -       mutt_menu.h keymap.h keymap_defs.h mutt_curses.h mapping.h \
1446 -       functions.h
1447 -lib.o: lib.c lib.h config.h
1448 -main.o: main.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1449 -       ascii.h protos.h mbyte.h lib.h globals.h mx.h mailbox.h buffy.h \
1450 -       sort.h mapping.h pgp.h pgplib.h mutt_curses.h keymap.h \
1451 -       keymap_defs.h url.h
1452 -makedoc.o: makedoc.c config.h
1453 -mbox.o: mbox.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1454 -       ascii.h protos.h mbyte.h lib.h globals.h mailbox.h mx.h sort.h \
1455 -       mapping.h copy.h
1456 -mbyte.o: mbyte.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1457 -       ascii.h protos.h mbyte.h lib.h globals.h
1458 -menu.o: menu.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1459 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h \
1460 -       mutt_menu.h keymap.h keymap_defs.h
1461 -mh.o: mh.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1462 -       ascii.h protos.h mbyte.h lib.h globals.h mailbox.h mx.h copy.h \
1463 -       buffy.h sort.h mapping.h
1464 -muttlib.o: muttlib.c mutt.h config.h rfc822.h hash.h charset.h \
1465 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1466 -       mutt_curses.h mime.h mailbox.h mx.h url.h reldate.h pgp.h \
1467 -       pgplib.h
1468 -mx.o: mx.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1469 -       ascii.h protos.h mbyte.h lib.h globals.h mx.h mailbox.h \
1470 -       rfc2047.h sort.h mapping.h copy.h keymap.h keymap_defs.h url.h \
1471 -       pgp.h pgplib.h dotlock.h
1472 -pager.o: pager.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1473 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h keymap.h \
1474 -       keymap_defs.h mutt_menu.h mapping.h sort.h pager.h attach.h \
1475 -       mx.h mailbox.h pgp.h pgplib.h
1476 -parse.o: parse.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1477 -       ascii.h protos.h mbyte.h lib.h globals.h mailbox.h mime.h \
1478 -       rfc2047.h rfc2231.h pgp.h pgplib.h
1479 -patchlist.o: patchlist.c mutt.h config.h rfc822.h hash.h charset.h \
1480 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1481 -pattern.o: pattern.c mutt.h config.h rfc822.h hash.h charset.h \
1482 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h mapping.h \
1483 -       keymap.h keymap_defs.h mailbox.h copy.h pgp.h pgplib.h
1484 -pgp.o: pgp.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1485 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h pgp.h \
1486 -       pgplib.h mime.h copy.h
1487 -pgpinvoke.o: pgpinvoke.c mutt.h config.h rfc822.h hash.h charset.h \
1488 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1489 -       mutt_curses.h pgp.h pgplib.h
1490 -pgpkey.o: pgpkey.c mutt.h config.h rfc822.h hash.h charset.h \
1491 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1492 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h mime.h pgp.h \
1493 -       pgplib.h pager.h sort.h mapping.h
1494 -pgplib.o: pgplib.c lib.h config.h pgplib.h
1495 -pgpmicalg.o: pgpmicalg.c mutt.h config.h rfc822.h hash.h charset.h \
1496 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h pgp.h \
1497 -       pgplib.h pgppacket.h mime.h
1498 -pgppacket.o: pgppacket.c config.h sha1.h lib.h pgplib.h pgppacket.h
1499 -postpone.o: postpone.c mutt.h config.h rfc822.h hash.h charset.h \
1500 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1501 -       mutt_menu.h keymap.h keymap_defs.h rfc1524.h mime.h mailbox.h \
1502 -       mapping.h pgp.h pgplib.h
1503 -query.o: query.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1504 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_menu.h keymap.h \
1505 -       keymap_defs.h mapping.h sort.h
1506 -recvattach.o: recvattach.c mutt.h config.h rfc822.h hash.h charset.h \
1507 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1508 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h rfc1524.h \
1509 -       mime.h mailbox.h attach.h mapping.h mx.h copy.h pgp.h pgplib.h
1510 -recvcmd.o: recvcmd.c mutt.h config.h rfc822.h hash.h charset.h \
1511 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1512 -       mutt_curses.h mutt_menu.h keymap.h keymap_defs.h rfc1524.h \
1513 -       mime.h mailbox.h attach.h mapping.h mx.h copy.h
1514 -resize.o: resize.c mutt.h config.h rfc822.h hash.h charset.h \
1515 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1516 -       mutt_curses.h
1517 -rfc1524.o: rfc1524.c mutt.h config.h rfc822.h hash.h charset.h \
1518 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h rfc1524.h
1519 -rfc2047.o: rfc2047.c mutt.h config.h rfc822.h hash.h charset.h \
1520 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h mime.h \
1521 -       rfc2047.h
1522 -rfc2231.o: rfc2231.c mutt.h config.h rfc822.h hash.h charset.h \
1523 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h mime.h \
1524 -       rfc2047.h rfc2231.h
1525 -rfc822.o: rfc822.c mutt.h config.h rfc822.h hash.h charset.h \
1526 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1527 -score.o: score.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1528 -       ascii.h protos.h mbyte.h lib.h globals.h sort.h mapping.h
1529 -send.o: send.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1530 -       ascii.h protos.h mbyte.h lib.h globals.h mutt_curses.h \
1531 -       rfc2047.h keymap.h keymap_defs.h mime.h mailbox.h copy.h mx.h \
1532 -       pgp.h pgplib.h
1533 -sendlib.o: sendlib.c mutt.h config.h rfc822.h hash.h charset.h \
1534 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1535 -       mutt_curses.h rfc2047.h rfc2231.h mx.h mailbox.h mime.h copy.h \
1536 -       pager.h pgp.h pgplib.h
1537 -signal.o: signal.c mutt.h config.h rfc822.h hash.h charset.h \
1538 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1539 -       mutt_curses.h
1540 -sort.o: sort.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1541 -       ascii.h protos.h mbyte.h lib.h globals.h sort.h mapping.h
1542 -status.o: status.c mutt.h config.h rfc822.h hash.h charset.h \
1543 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h \
1544 -       mutt_menu.h keymap.h keymap_defs.h mutt_curses.h sort.h \
1545 -       mapping.h mx.h mailbox.h
1546 -system.o: system.c mutt.h config.h rfc822.h hash.h charset.h \
1547 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1548 -thread.o: thread.c mutt.h config.h rfc822.h hash.h charset.h \
1549 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h sort.h \
1550 -       mapping.h
1551 -url.o: url.c mutt.h config.h rfc822.h hash.h charset.h mutt_regex.h \
1552 -       ascii.h protos.h mbyte.h lib.h globals.h mapping.h url.h mime.h
1553 -utf8.o: utf8.c
1554 -wcwidth.o: wcwidth.c mutt.h config.h rfc822.h hash.h charset.h \
1555 -       mutt_regex.h ascii.h protos.h mbyte.h lib.h globals.h
1556 +       $(MAKE) $(AM_MAKEFLAGS) \
1557 +         top_distdir="${top_distdir}" distdir="$(distdir)" \
1558 +         dist-hook
1559 +       -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1560 +         ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1561 +         ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1562 +         ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
1563 +       || chmod -R a+r $(distdir)
1564 +dist-gzip: distdir
1565 +       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1566 +       $(am__remove_distdir)
1567 +
1568 +dist dist-all: distdir
1569 +       $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1570 +       $(am__remove_distdir)
1571  
1572 -info-am:
1573 -info: info-recursive
1574 -dvi-am:
1575 -dvi: dvi-recursive
1576 +# This target untars the dist file and tries a VPATH configuration.  Then
1577 +# it guarantees that the distribution is self-contained by making another
1578 +# tarfile.
1579 +distcheck: dist
1580 +       $(am__remove_distdir)
1581 +       GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
1582 +       chmod -R a-w $(distdir); chmod a+w $(distdir)
1583 +       mkdir $(distdir)/=build
1584 +       mkdir $(distdir)/=inst
1585 +       chmod a-w $(distdir)
1586 +       dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
1587 +         && cd $(distdir)/=build \
1588 +         && ../configure --srcdir=.. --prefix=$$dc_install_base \
1589 +           $(DISTCHECK_CONFIGURE_FLAGS) \
1590 +         && $(MAKE) $(AM_MAKEFLAGS) \
1591 +         && $(MAKE) $(AM_MAKEFLAGS) dvi \
1592 +         && $(MAKE) $(AM_MAKEFLAGS) check \
1593 +         && $(MAKE) $(AM_MAKEFLAGS) install \
1594 +         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1595 +         && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1596 +         && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
1597 +             || { echo "ERROR: files left after uninstall:" ; \
1598 +                  find $$dc_install_base -type f -print ; \
1599 +                  exit 1; } >&2 ) \
1600 +         && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
1601 +         && rm -f $(distdir).tar.gz \
1602 +         && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
1603 +       $(am__remove_distdir)
1604 +       @echo "$(distdir).tar.gz is ready for distribution" | \
1605 +         sed 'h;s/./=/g;p;x;p;x'
1606 +distcleancheck: distclean
1607 +       if test '$(srcdir)' = . ; then \
1608 +         echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1609 +         exit 1 ; \
1610 +       fi
1611 +       test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1612 +         || { echo "ERROR: files left after distclean:" ; \
1613 +              $(distcleancheck_listfiles) ; \
1614 +              exit 1; } >&2
1615  check-am: all-am
1616  check: check-recursive
1617 -installcheck-am:
1618 -installcheck: installcheck-recursive
1619 -all-recursive-am: config.h
1620 -       $(MAKE) $(AM_MAKEFLAGS) all-recursive
1621 +all-am: Makefile $(PROGRAMS) $(SCRIPTS) config.h
1622 +installdirs: installdirs-recursive
1623 +installdirs-am:
1624 +       $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir)
1625  
1626 -install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1627 -               install-exec-local
1628 +install: install-recursive
1629  install-exec: install-exec-recursive
1630 -
1631 -install-data-am: install-data-local
1632  install-data: install-data-recursive
1633 +uninstall: uninstall-recursive
1634  
1635  install-am: all-am
1636         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1637 -install: install-recursive
1638 -uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
1639 -uninstall: uninstall-recursive
1640 -all-am: Makefile $(PROGRAMS) $(SCRIPTS) config.h
1641 -all-redirect: all-recursive-am
1642 -install-strip:
1643 -       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1644 -installdirs: installdirs-recursive
1645 -installdirs-am:
1646 -       $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(bindir)
1647 -
1648  
1649 +installcheck: installcheck-recursive
1650 +install-strip:
1651 +       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1652 +         INSTALL_STRIP_FLAG=-s \
1653 +         `test -z '$(STRIP)' || \
1654 +           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1655  mostlyclean-generic:
1656  
1657  clean-generic:
1658 @@ -737,53 +795,71 @@
1659  
1660  distclean-generic:
1661         -rm -f Makefile $(CONFIG_CLEAN_FILES)
1662 -       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1663  
1664  maintainer-clean-generic:
1665 +       @echo "This command is intended for maintainers to use"
1666 +       @echo "it deletes files that may require special tools to rebuild."
1667         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1668 -mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
1669 -               mostlyclean-compile mostlyclean-tags \
1670 -               mostlyclean-generic
1671 +clean: clean-recursive
1672  
1673 -mostlyclean: mostlyclean-recursive
1674 +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
1675  
1676 -clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
1677 -               clean-generic mostlyclean-am
1678 +distclean: distclean-recursive
1679 +       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1680 +distclean-am: clean-am distclean-compile distclean-depend \
1681 +       distclean-generic distclean-hdr distclean-tags
1682  
1683 -clean: clean-recursive
1684 +dvi: dvi-recursive
1685  
1686 -distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
1687 -               distclean-tags distclean-generic clean-am
1688 +dvi-am:
1689  
1690 -distclean: distclean-recursive
1691 -       -rm -f config.status
1692 +info: info-recursive
1693  
1694 -maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
1695 -               maintainer-clean-compile maintainer-clean-tags \
1696 -               maintainer-clean-generic distclean-am
1697 -       @echo "This command is intended for maintainers to use;"
1698 -       @echo "it deletes files that may require special tools to rebuild."
1699 +info-am:
1700 +
1701 +install-data-am: install-data-local
1702 +
1703 +install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1704 +       install-exec-local
1705 +
1706 +install-info: install-info-recursive
1707 +
1708 +install-man:
1709 +
1710 +installcheck-am:
1711  
1712  maintainer-clean: maintainer-clean-recursive
1713 -       -rm -f config.status
1714 +       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1715 +       -rm -rf autom4te.cache
1716 +maintainer-clean-am: distclean-am maintainer-clean-generic
1717  
1718 -.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
1719 -mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
1720 -maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
1721 -mostlyclean-compile distclean-compile clean-compile \
1722 -maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS \
1723 -install-data-recursive uninstall-data-recursive install-exec-recursive \
1724 -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
1725 -all-recursive check-recursive installcheck-recursive info-recursive \
1726 -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
1727 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
1728 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
1729 -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
1730 -install-exec-local install-exec-am install-exec install-data-local \
1731 -install-data-am install-data install-am install uninstall-am uninstall \
1732 -all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
1733 -distclean-generic clean-generic maintainer-clean-generic clean \
1734 -mostlyclean distclean maintainer-clean
1735 +mostlyclean: mostlyclean-recursive
1736 +
1737 +mostlyclean-am: mostlyclean-compile mostlyclean-generic
1738 +
1739 +uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
1740 +       uninstall-info-am
1741 +
1742 +uninstall-info: uninstall-info-recursive
1743 +
1744 +.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
1745 +       clean-binPROGRAMS clean-generic clean-recursive dist dist-all \
1746 +       dist-gzip distcheck distclean distclean-compile \
1747 +       distclean-depend distclean-generic distclean-hdr \
1748 +       distclean-recursive distclean-tags distcleancheck distdir dvi \
1749 +       dvi-am dvi-recursive info info-am info-recursive install \
1750 +       install-am install-binPROGRAMS install-binSCRIPTS install-data \
1751 +       install-data-am install-data-local install-data-recursive \
1752 +       install-exec install-exec-am install-exec-local \
1753 +       install-exec-recursive install-info install-info-am \
1754 +       install-info-recursive install-man install-recursive \
1755 +       install-strip installcheck installcheck-am installdirs \
1756 +       installdirs-am installdirs-recursive maintainer-clean \
1757 +       maintainer-clean-generic maintainer-clean-recursive mostlyclean \
1758 +       mostlyclean-compile mostlyclean-generic mostlyclean-recursive \
1759 +       tags tags-recursive uninstall uninstall-am \
1760 +       uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-info-am \
1761 +       uninstall-info-recursive uninstall-recursive
1762  
1763  
1764  mutt_dotlock.c: dotlock.c
1765 @@ -881,7 +957,6 @@
1766         ( ./mkjtags TAGS > tags.$$$$ && mv tags.$$$$ tags )
1767  
1768  .PHONY: jtags
1769 -
1770  # Tell versions [3.59,3.63) of GNU make to not export all variables.
1771  # Otherwise a system limit (for SysV at least) may be exceeded.
1772  .NOEXPORT:
1773 diff -uNr mutt-1.4.orig/Muttrc mutt-1.4/Muttrc
1774 --- mutt-1.4.orig/Muttrc        Sun Nov  3 21:42:52 2002
1775 +++ mutt-1.4/Muttrc     Sun Nov  3 21:57:20 2002
1776 @@ -185,6 +185,28 @@
1777  # editing the body of an outgoing message.
1778  # 
1779  # 
1780 +# set ask_follow_up=no
1781 +#
1782 +# Name: ask_follow_up
1783 +# Type: boolean
1784 +# Default: no
1785 +# 
1786 +# 
1787 +# If set, Mutt will prompt you for follow-up groups before editing
1788 +# the body of an outgoing message.
1789 +# 
1790 +# 
1791 +# set ask_x_comment_to=no
1792 +#
1793 +# Name: ask_x_comment_to
1794 +# Type: boolean
1795 +# Default: no
1796 +# 
1797 +# 
1798 +# If set, Mutt will prompt you for x-comment-to field before editing
1799 +# the body of an outgoing message.
1800 +# 
1801 +# 
1802  # set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
1803  #
1804  # Name: attach_format
1805 @@ -308,6 +330,17 @@
1806  # bouncing messages.  Postfix users may wish to unset this variable.
1807  # 
1808  # 
1809 +# set catchup_newsgroup=ask-yes
1810 +#
1811 +# Name: catchup_newsgroup
1812 +# Type: quadoption
1813 +# Default: ask-yes
1814 +# 
1815 +# 
1816 +# If this variable is set, Mutt will mark all articles in newsgroup
1817 +# as read when you quit the newsgroup (catchup newsgroup).
1818 +# 
1819 +# 
1820  # set charset=""
1821  #
1822  # Name: charset
1823 @@ -734,6 +767,19 @@
1824  # resulting in two copies of the same email for you.
1825  # 
1826  # 
1827 +# set followup_to_poster=ask-yes
1828 +#
1829 +# Name: followup_to_poster
1830 +# Type: quadoption
1831 +# Default: ask-yes
1832 +# 
1833 +# 
1834 +# If this variable is set and the keyword "poster" is present in
1835 +# Followup-To header, follow-up to newsgroup function is not
1836 +# permitted.  The message will be mailed to the submitter of the
1837 +# message via mail.
1838 +# 
1839 +# 
1840  # set force_name=no
1841  #
1842  # Name: force_name
1843 @@ -818,6 +864,28 @@
1844  # "Franklin" to "Franklin, Steve".
1845  # 
1846  # 
1847 +# set group_index_format="%4C %M%N %5s  %-45.45f %d"
1848 +#
1849 +# Name: group_index_format
1850 +# Type: string
1851 +# Default: "%4C %M%N %5s  %-45.45f %d"
1852 +# 
1853 +# 
1854 +# This variable allows you to customize the newsgroup browser display to
1855 +# your personal taste.  This string is similar to ``index_format'', but
1856 +# has its own set of printf()-like sequences:
1857 +# 
1858 +# %C      current newsgroup number
1859 +# %d      description of newsgroup (becomes from server)
1860 +# %f      newsgroup name
1861 +# %M      - if newsgroup not allowed for direct post (moderated for example)
1862 +# %N      N if newsgroup is new, u if unsubscribed, blank otherwise
1863 +# %n      number of new articles in newsgroup
1864 +# %s      number of unread articles in newsgroup
1865 +# %>X     right justify the rest of the string and pad with character "X"
1866 +# %|X     pad to the end of the line with character "X"
1867 +# 
1868 +# 
1869  # set hdrs=yes
1870  #
1871  # Name: hdrs
1872 @@ -1187,6 +1255,7 @@
1873  # %E      number of messages in current thread
1874  # %f      entire From: line (address + real name)
1875  # %F      author name, or recipient name if the message is from you
1876 +# %g      newsgroup name (if compiled with nntp support)
1877  # %i      message-id of the current message
1878  # %l      number of lines in the message
1879  # %L      If an address in the To or CC header field matches an address
1880 @@ -1204,6 +1273,7 @@
1881  # %T      the appropriate character from the $to_chars string
1882  # %u      user (login) name of the author
1883  # %v      first name of the author, or the recipient if the message is from you
1884 +# %W      name of organization of author (`organization:' field)
1885  # %y      `x-label:' field, if present
1886  # %Y      `x-label' field, if present, and (1) not at part of a thread tree,
1887  #         (2) at the top of a thread, or (3) `x-label' is different from
1888 @@ -1227,6 +1297,22 @@
1889  # See also: ``$to_chars''.
1890  # 
1891  # 
1892 +# set inews=""
1893 +#
1894 +# Name: inews
1895 +# Type: path
1896 +# Default: ""
1897 +# 
1898 +# 
1899 +# If set, specifies the program and arguments used to deliver news posted
1900 +# by Mutt.  Otherwise, mutt posts article using current connection to
1901 +# news server.  The following printf-style sequence is understood:
1902 +# 
1903 +# %s      newsserver name
1904 +# 
1905 +# Example: set inews="/usr/local/bin/inews -hS"
1906 +# 
1907 +# 
1908  # set ispell="/usr/bin/ispell"
1909  #
1910  # Name: ispell
1911 @@ -1496,6 +1582,18 @@
1912  # be attached to the newly composed message if this option is set.
1913  # 
1914  # 
1915 +# set mime_subject=yes
1916 +#
1917 +# Name: mime_subject
1918 +# Type: boolean
1919 +# Default: yes
1920 +# 
1921 +# 
1922 +# If unset, 8-bit ``subject:'' line in article header will not be
1923 +# encoded according to RFC2047 to base64.  This is useful when message
1924 +# is Usenet article, because MIME for news is nonstandard feature.
1925 +# 
1926 +# 
1927  # set mix_entry_format="%4n %c %-16s %a"
1928  #
1929  # Name: mix_entry_format
1930 @@ -1550,6 +1648,118 @@
1931  # escape sequences see the section on ``$index_format''.
1932  # 
1933  # 
1934 +# set news_cache_dir="~/.mutt"
1935 +#
1936 +# Name: news_cache_dir
1937 +# Type: path
1938 +# Default: "~/.mutt"
1939 +# 
1940 +# 
1941 +# This variable pointing to directory where Mutt will save cached news
1942 +# articles headers in. If unset, headers will not be saved at all
1943 +# and will be reloaded each time when you enter to newsgroup.
1944 +# 
1945 +# 
1946 +# set news_server=""
1947 +#
1948 +# Name: news_server
1949 +# Type: string
1950 +# Default: ""
1951 +# 
1952 +# 
1953 +# This variable specifies domain name or address of NNTP server. It
1954 +# defaults to the newsserver specified in the environment variable
1955 +# $NNTPSERVER or contained in the file /etc/nntpserver.  You can also
1956 +# specify username and an alternative port for each newsserver, ie:
1957 +# 
1958 +# [nntp[s]://][username[:password]@]newsserver[:port]
1959 +# 
1960 +# 
1961 +# set newsrc="~/.newsrc"
1962 +#
1963 +# Name: newsrc
1964 +# Type: path
1965 +# Default: "~/.newsrc"
1966 +# 
1967 +# 
1968 +# The file, containing info about subscribed newsgroups - names and
1969 +# indexes of read articles.  The following printf-style sequence
1970 +# is understood:
1971 +# 
1972 +# %s      newsserver name
1973 +# 
1974 +# 
1975 +# set nntp_context=1000
1976 +#
1977 +# Name: nntp_context
1978 +# Type: number
1979 +# Default: 1000
1980 +# 
1981 +# 
1982 +# This variable defines number of articles which will be in index when
1983 +# newsgroup entered.  If active newsgroup have more articles than this
1984 +# number, oldest articles will be ignored.  Also controls how many
1985 +# articles headers will be saved in cache when you quit newsgroup.
1986 +# 
1987 +# 
1988 +# set nntp_load_description=yes
1989 +#
1990 +# Name: nntp_load_description
1991 +# Type: boolean
1992 +# Default: yes
1993 +# 
1994 +# 
1995 +# This variable controls whether or not descriptions for each newsgroup
1996 +# must be loaded when newsgroup is added to list (first time list
1997 +# loading or new newsgroup adding).
1998 +# 
1999 +# 
2000 +# set nntp_user=""
2001 +#
2002 +# Name: nntp_user
2003 +# Type: string
2004 +# Default: ""
2005 +# 
2006 +# 
2007 +# Your login name on the NNTP server.  If unset and NNTP server requires
2008 +# authentification, Mutt will prompt you for your account name when you
2009 +# connect to newsserver.
2010 +# 
2011 +# 
2012 +# set nntp_pass=""
2013 +#
2014 +# Name: nntp_pass
2015 +# Type: string
2016 +# Default: ""
2017 +# 
2018 +# 
2019 +# Your password for NNTP account.
2020 +# 
2021 +# 
2022 +# set nntp_poll=60
2023 +#
2024 +# Name: nntp_poll
2025 +# Type: number
2026 +# Default: 60
2027 +# 
2028 +# 
2029 +# The time in seconds until any operations on newsgroup except post new
2030 +# article will cause recheck for new news.  If set to 0, Mutt will
2031 +# recheck newsgroup on each operation in index (stepping, read article,
2032 +# etc.).
2033 +# 
2034 +# 
2035 +# set nntp_reconnect=ask-yes
2036 +#
2037 +# Name: nntp_reconnect
2038 +# Type: quadoption
2039 +# Default: ask-yes
2040 +# 
2041 +# 
2042 +# Controls whether or not Mutt will try to reconnect to newsserver when
2043 +# connection lost.
2044 +# 
2045 +# 
2046  # set pager="builtin"
2047  #
2048  # Name: pager
2049 @@ -2293,6 +2503,19 @@
2050  # string after the inclusion of a message which is being replied to.
2051  # 
2052  # 
2053 +# set post_moderated=ask-yes
2054 +#
2055 +# Name: post_moderated
2056 +# Type: quadoption
2057 +# Default: ask-yes
2058 +# 
2059 +# 
2060 +# If set to yes, Mutt will post article to newsgroup that have
2061 +# not permissions to posting (e.g. moderated).  Note: if newsserver
2062 +# does not support posting to that newsgroup or totally read-only, that
2063 +# posting will not have an effect.
2064 +# 
2065 +# 
2066  # set postpone=ask-yes
2067  #
2068  # Name: postpone
2069 @@ -2802,6 +3025,41 @@
2070  # shell from /etc/passwd is used.
2071  # 
2072  # 
2073 +# set save_unsubscribed=no
2074 +#
2075 +# Name: save_unsubscribed
2076 +# Type: boolean
2077 +# Default: no
2078 +# 
2079 +# 
2080 +# When set, info about unsubscribed newsgroups will be saved into
2081 +# ``newsrc'' file and into cache.
2082 +# 
2083 +# 
2084 +# set show_new_news=yes
2085 +#
2086 +# Name: show_new_news
2087 +# Type: boolean
2088 +# Default: yes
2089 +# 
2090 +# 
2091 +# If set, newsserver will be asked for new newsgroups on entering
2092 +# the browser.  Otherwise, it will be done only once for a newsserver.
2093 +# Also controls whether or not number of new articles of subscribed
2094 +# newsgroups will be then checked.
2095 +# 
2096 +# 
2097 +# set show_only_unread=no
2098 +#
2099 +# Name: show_only_unread
2100 +# Type: boolean
2101 +# Default: no
2102 +# 
2103 +# 
2104 +# If set, only subscribed newsgroups that contain unread articles
2105 +# will be displayed in browser.
2106 +# 
2107 +# 
2108  # set sig_dashes=yes
2109  #
2110  # Name: sig_dashes
2111 @@ -3285,6 +3543,18 @@
2112  # command.
2113  # 
2114  # 
2115 +# set use_ipv6=yes
2116 +#
2117 +# Name: use_ipv6
2118 +# Type: boolean
2119 +# Default: yes
2120 +# 
2121 +# 
2122 +# When set, Mutt will look for IPv6 addresses of hosts it tries to
2123 +# contact.  If this option is unset, Mutt will restrict itself to IPv4 addresses.
2124 +# Normally, the default should work.
2125 +# 
2126 +# 
2127  # set user_agent=yes
2128  #
2129  # Name: user_agent
2130 @@ -3387,3 +3657,14 @@
2131  # messages to be sent.  Exim users may wish to use this.
2132  # 
2133  # 
2134 +# set x_comment_to=no
2135 +#
2136 +# Name: x_comment_to
2137 +# Type: boolean
2138 +# Default: no
2139 +# 
2140 +# 
2141 +# If set, Mutt will add ``X-Comment-To:'' field (that contains full
2142 +# name of original article author) to article that followuped to newsgroup.
2143 +# 
2144 +# 
2145 diff -uNr mutt-1.4.orig/Muttrc.head mutt-1.4/Muttrc.head
2146 --- mutt-1.4.orig/Muttrc.head   Sun Nov  3 21:42:51 2002
2147 +++ mutt-1.4/Muttrc.head        Thu Jan  1 01:00:00 1970
2148 @@ -1,43 +0,0 @@
2149 -#
2150 -# System configuration file for Mutt
2151 -#
2152 -
2153 -# default list of header fields to weed when displaying
2154 -#
2155 -ignore "from " received content- mime-version status x-status message-id
2156 -ignore sender references return-path lines
2157 -
2158 -# imitate the old search-body function
2159 -macro index \eb '/~b ' 'search in message bodies'
2160 -
2161 -# simulate the old url menu
2162 -macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
2163 -macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
2164 -
2165 -# Show documentation when pressing F1
2166 -macro generic <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
2167 -macro index   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
2168 -macro pager   <f1> "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation"
2169 -
2170 -# Use folders which match on \\.gz$ as gzipped folders:
2171 -# open-hook \\.gz$ "gzip -cd %f > %t"
2172 -# close-hook \\.gz$ "gzip -c %t > %f"
2173 -# append-hook \\.gz$ "gzip -c %t >> %f"
2174 -
2175 -# open-hook \\.bz2$ "bzip2 -cd %f > %t"
2176 -# close-hook \\.bz2$ "bzip2 -c %t > %f"
2177 -# append-hook \\.bz2$ "bzip2 -c %t >> %f"
2178 -
2179 -# If Mutt is unable to determine your site's domain name correctly, you can
2180 -# set the default here.
2181 -#
2182 -# set hostname=cs.hmc.edu
2183 -
2184 -# If your sendmail supports the -B8BITMIME flag, enable the following
2185 -#
2186 -# set use_8bitmime
2187 -
2188 -##
2189 -## More settings
2190 -##
2191 -
2192 diff -uNr mutt-1.4.orig/OPS mutt-1.4/OPS
2193 --- mutt-1.4.orig/OPS   Sun Nov  3 21:42:52 2002
2194 +++ mutt-1.4/OPS        Sun Nov  3 21:57:20 2002
2195 @@ -7,13 +7,15 @@
2196  OP_BROWSER_NEW_FILE "select a new file in this directory"
2197  OP_BROWSER_VIEW_FILE "view file"
2198  OP_BROWSER_TELL "display the currently selected file's name"
2199 -OP_BROWSER_SUBSCRIBE "subscribe to current mailbox (IMAP only)"
2200 -OP_BROWSER_UNSUBSCRIBE "unsubscribe to current mailbox (IMAP only)"
2201 +OP_CATCHUP "mark all articles in newsgroup as read"
2202 +OP_BROWSER_SUBSCRIBE "subscribe to current (IMAP/NNTP only)"
2203 +OP_BROWSER_UNSUBSCRIBE "unsubscribe to current (IMAP/NNTP only)"
2204  OP_BROWSER_TOGGLE_LSUB "toggle view all/subscribed mailboxes (IMAP only)"
2205  OP_CHANGE_DIRECTORY "change directories"
2206  OP_CHECK_NEW "check mailboxes for new mail"
2207  OP_COMPOSE_ATTACH_FILE "attach a file(s) to this message"
2208  OP_COMPOSE_ATTACH_MESSAGE "attach message(s) to this message"
2209 +OP_COMPOSE_ATTACH_NEWS_MESSAGE "attach newsmessage(s) to this message"
2210  OP_COMPOSE_EDIT_BCC "edit the BCC list"
2211  OP_COMPOSE_EDIT_CC "edit the CC list"
2212  OP_COMPOSE_EDIT_DESCRIPTION "edit attachment description"
2213 @@ -24,7 +26,10 @@
2214  OP_COMPOSE_EDIT_HEADERS "edit the message with headers"
2215  OP_COMPOSE_EDIT_MESSAGE "edit the message"
2216  OP_COMPOSE_EDIT_MIME "edit attachment using mailcap entry"
2217 +OP_COMPOSE_EDIT_NEWSGROUPS "edit the newsgroups list"
2218  OP_COMPOSE_EDIT_REPLY_TO "edit the Reply-To field"
2219 +OP_COMPOSE_EDIT_FOLLOWUP_TO "edit the Followup-To field"
2220 +OP_COMPOSE_EDIT_X_COMMENT_TO "edit the X-Comment-To field"
2221  OP_COMPOSE_EDIT_SUBJECT "edit the subject of this message"
2222  OP_COMPOSE_EDIT_TO "edit the TO list"
2223  OP_CREATE_MAILBOX "create a new mailbox (IMAP only)"
2224 @@ -84,8 +89,13 @@
2225  OP_FILTER "filter attachment through a shell command"
2226  OP_FIRST_ENTRY "move to the first entry"
2227  OP_FLAG_MESSAGE "toggle a message's 'important' flag"
2228 +OP_FOLLOWUP "followup to newsgroup"
2229 +OP_FORWARD_TO_GROUP "forward to newsgroup"
2230  OP_FORWARD_MESSAGE "forward a message with comments"
2231  OP_GENERIC_SELECT_ENTRY "select the current entry"
2232 +OP_GET_CHILDREN "get all children of the current message"
2233 +OP_GET_MESSAGE "get message with Message-Id"
2234 +OP_GET_PARENT "get parent of the current message"
2235  OP_GROUP_REPLY "reply to all recipients"
2236  OP_HALF_DOWN "scroll down 1/2 page"
2237  OP_HALF_UP "scroll up 1/2 page"
2238 @@ -93,13 +103,17 @@
2239  OP_JUMP "jump to an index number"
2240  OP_LAST_ENTRY "move to the last entry"
2241  OP_LIST_REPLY "reply to specified mailing list"
2242 +OP_LOAD_ACTIVE "load active file from NNTP server"
2243  OP_MACRO "execute a macro"
2244  OP_MAIL "compose a new mail message"
2245  OP_MAIN_BREAK_THREAD "break the thread in two"
2246  OP_MAIN_CHANGE_FOLDER "open a different folder"
2247  OP_MAIN_CHANGE_FOLDER_READONLY "open a different folder in read only mode"
2248 +OP_MAIN_CHANGE_GROUP "open a different newsgroup"
2249 +OP_MAIN_CHANGE_GROUP_READONLY "open a different newsgroup in read only mode"
2250  OP_MAIN_CLEAR_FLAG "clear a status flag from a message"
2251  OP_MAIN_DELETE_PATTERN "delete messages matching a pattern"
2252 +OP_RECONSTRUCT_THREAD "reconstruct thread containing current message"
2253  OP_MAIN_IMAP_FETCH "force retrieval of mail from IMAP server"
2254  OP_MAIN_FETCH_MAIL "retrieve mail from POP server"
2255  OP_MAIN_FIRST_MESSAGE "move to the first message"
2256 @@ -134,6 +148,7 @@
2257  OP_PAGER_SKIP_QUOTED "skip beyond quoted text"
2258  OP_PAGER_TOP "jump to the top of the message"
2259  OP_PIPE "pipe message/attachment to a shell command"
2260 +OP_POST "post message to newsgroup"
2261  OP_PREV_ENTRY "move to the previous entry"
2262  OP_PREV_LINE "scroll up one line"
2263  OP_PREV_PAGE "move to the previous page"
2264 @@ -159,17 +174,21 @@
2265  OP_SIG_SEARCH "search signatures matching a pattern"
2266  OP_SORT "sort messages"
2267  OP_SORT_REVERSE "sort messages in reverse order"
2268 +OP_SUBSCRIBE_PATTERN "subscribe to newsgroups matching a pattern"
2269  OP_TAG "tag the current entry"
2270  OP_TAG_PREFIX "apply next function to tagged messages"
2271  OP_TAG_SUBTHREAD "tag the current subthread"
2272  OP_TAG_THREAD "tag the current thread"
2273  OP_TOGGLE_NEW "toggle a message's 'new' flag"
2274 +OP_TOGGLE_READ "toggle view of read messages"
2275  OP_TOGGLE_WRITE "toggle whether the mailbox will be rewritten"
2276  OP_TOGGLE_MAILBOXES "toggle whether to browse mailboxes or all files"
2277  OP_TOP_PAGE "move to the top of the page"
2278 +OP_UNCATCHUP "mark all articles in newsgroup as unread"
2279  OP_UNDELETE "undelete the current entry"
2280  OP_UNDELETE_THREAD "undelete all messages in thread"
2281  OP_UNDELETE_SUBTHREAD "undelete all messages in subthread"
2282 +OP_UNSUBSCRIBE_PATTERN "unsubscribe from newsgroups matching a pattern"
2283  OP_VERSION "show the Mutt version number and date"
2284  OP_VIEW_ATTACH "view attachment using mailcap entry if necessary"
2285  OP_VIEW_ATTACHMENTS "show MIME attachments"
2286 diff -uNr mutt-1.4.orig/PATCHES mutt-1.4/PATCHES
2287 --- mutt-1.4.orig/PATCHES       Sun Nov  3 21:42:52 2002
2288 +++ mutt-1.4/PATCHES    Sun Nov  3 21:57:20 2002
2289 @@ -1,3 +1,4 @@
2290 +vvv.nntp
2291  patch-1.3.28.dw.pgp-hook.3
2292  vvv.quote
2293  patch-1.3.27.cd.signatures_menu.2.1
2294 diff -uNr mutt-1.4.orig/acconfig.h mutt-1.4/acconfig.h
2295 --- mutt-1.4.orig/acconfig.h    Tue Jan 15 23:08:12 2002
2296 +++ mutt-1.4/acconfig.h Sun Nov  3 21:57:20 2002
2297 @@ -14,6 +14,9 @@
2298   */
2299  #undef HOMESPOOL
2300  
2301 +/* Compiling with newsreading support with NNTP */
2302 +#undef USE_NNTP
2303 +
2304  /* program to use for shell commands */
2305  #define EXECSHELL "/bin/sh"
2306  
2307 diff -uNr mutt-1.4.orig/account.c mutt-1.4/account.c
2308 --- mutt-1.4.orig/account.c     Thu Apr 26 15:36:33 2001
2309 +++ mutt-1.4/account.c  Sun Nov  3 21:57:20 2002
2310 @@ -44,6 +44,11 @@
2311      user = PopUser;
2312  #endif
2313    
2314 +#ifdef USE_NNTP
2315 +  if (a1->type == M_ACCT_TYPE_NNTP && NntpUser)
2316 +    user = NntpUser;
2317 +#endif
2318 +
2319    if (a1->flags & a2->flags & M_ACCT_USER)
2320      return (!strcmp (a1->user, a2->user));
2321    if (a1->flags & M_ACCT_USER)
2322 @@ -113,6 +118,16 @@
2323    }
2324  #endif
2325  
2326 +#ifdef USE_NNTP
2327 +  if (account->type == M_ACCT_TYPE_NNTP)
2328 +  {
2329 +    if (account->flags & M_ACCT_SSL)
2330 +      url->scheme = U_NNTPS;
2331 +    else
2332 +      url->scheme = U_NNTP;
2333 +  }
2334 +#endif
2335 +
2336    url->host = account->host;
2337    if (account->flags & M_ACCT_PORT)
2338      url->port = account->port;
2339 @@ -138,6 +153,10 @@
2340    else if ((account->type == M_ACCT_TYPE_POP) && PopUser)
2341      strfcpy (account->user, PopUser, sizeof (account->user));
2342  #endif
2343 +#ifdef USE_NNTP
2344 +  else if ((account->type == M_ACCT_TYPE_NNTP) && NntpUser)
2345 +    strfcpy (account->user, NntpUser, sizeof (account->user));
2346 +#endif
2347    /* prompt (defaults to unix username), copy into account->user */
2348    else
2349    {
2350 @@ -167,6 +186,10 @@
2351    else if ((account->type == M_ACCT_TYPE_POP) && PopPass)
2352      strfcpy (account->pass, PopPass, sizeof (account->pass));
2353  #endif
2354 +#ifdef USE_NNTP
2355 +  else if ((account->type == M_ACCT_TYPE_NNTP) && NntpPass)
2356 +    strfcpy (account->pass, NntpPass, sizeof (account->pass));
2357 +#endif
2358    else
2359    {
2360      snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "),
2361 diff -uNr mutt-1.4.orig/account.h mutt-1.4/account.h
2362 --- mutt-1.4.orig/account.h     Tue Jan  2 10:34:30 2001
2363 +++ mutt-1.4/account.h  Sun Nov  3 21:57:20 2002
2364 @@ -28,6 +28,7 @@
2365  {
2366    M_ACCT_TYPE_NONE = 0,
2367    M_ACCT_TYPE_IMAP,
2368 +  M_ACCT_TYPE_NNTP,
2369    M_ACCT_TYPE_POP
2370  };
2371  
2372 diff -uNr mutt-1.4.orig/aclocal.m4 mutt-1.4/aclocal.m4
2373 --- mutt-1.4.orig/aclocal.m4    Wed May 29 11:29:28 2002
2374 +++ mutt-1.4/aclocal.m4 Sun Nov  3 21:57:23 2002
2375 @@ -1,93 +1,311 @@
2376 -dnl aclocal.m4 generated automatically by aclocal 1.4-p4
2377 +# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2378  
2379 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
2380 -dnl This file is free software; the Free Software Foundation
2381 -dnl gives unlimited permission to copy and/or distribute it,
2382 -dnl with or without modifications, as long as this notice is preserved.
2383 -
2384 -dnl This program is distributed in the hope that it will be useful,
2385 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
2386 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
2387 -dnl PARTICULAR PURPOSE.
2388 -
2389 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
2390 -
2391 -AC_DEFUN(AM_CONFIG_HEADER,
2392 -[AC_PREREQ([2.12])
2393 -AC_CONFIG_HEADER([$1])
2394 -dnl When config.status generates a header, we must update the stamp-h file.
2395 -dnl This file resides in the same directory as the config header
2396 -dnl that is generated.  We must strip everything past the first ":",
2397 -dnl and everything past the last "/".
2398 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
2399 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
2400 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
2401 -<<am_indx=1
2402 -for am_file in <<$1>>; do
2403 -  case " <<$>>CONFIG_HEADERS " in
2404 -  *" <<$>>am_file "*<<)>>
2405 -    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
2406 -    ;;
2407 -  esac
2408 -  am_indx=`expr "<<$>>am_indx" + 1`
2409 -done<<>>dnl>>)
2410 -changequote([,]))])
2411 -
2412 -# Do all the work for Automake.  This macro actually does too much --
2413 -# some checks are only needed if your package does certain things.
2414 -# But this isn't really a big deal.
2415 +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
2416 +# Free Software Foundation, Inc.
2417 +# This file is free software; the Free Software Foundation
2418 +# gives unlimited permission to copy and/or distribute it,
2419 +# with or without modifications, as long as this notice is preserved.
2420 +
2421 +# This program is distributed in the hope that it will be useful,
2422 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
2423 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
2424 +# PARTICULAR PURPOSE.
2425 +
2426 +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2427 +
2428 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2429 +
2430 +# This program is free software; you can redistribute it and/or modify
2431 +# it under the terms of the GNU General Public License as published by
2432 +# the Free Software Foundation; either version 2, or (at your option)
2433 +# any later version.
2434 +
2435 +# This program is distributed in the hope that it will be useful,
2436 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2437 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2438 +# GNU General Public License for more details.
2439 +
2440 +# You should have received a copy of the GNU General Public License
2441 +# along with this program; if not, write to the Free Software
2442 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2443 +# 02111-1307, USA.
2444 +
2445 +AC_PREREQ([2.52])
2446 +
2447 +# serial 6
2448 +
2449 +# When config.status generates a header, we must update the stamp-h file.
2450 +# This file resides in the same directory as the config header
2451 +# that is generated.  We must strip everything past the first ":",
2452 +# and everything past the last "/".
2453 +
2454 +# _AM_DIRNAME(PATH)
2455 +# -----------------
2456 +# Like AS_DIRNAME, only do it during macro expansion
2457 +AC_DEFUN([_AM_DIRNAME],
2458 +       [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
2459 +             m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
2460 +                   m4_if(regexp([$1], [^/.*]), -1,
2461 +                         [.],
2462 +                         patsubst([$1], [^\(/\).*], [\1])),
2463 +                   patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
2464 +             patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
2465 +])# _AM_DIRNAME
2466 +
2467 +
2468 +# The stamp files are numbered to have different names.
2469 +# We could number them on a directory basis, but that's additional
2470 +# complications, let's have a unique counter.
2471 +m4_define([_AM_STAMP_Count], [0])
2472 +
2473 +
2474 +# _AM_STAMP(HEADER)
2475 +# -----------------
2476 +# The name of the stamp file for HEADER.
2477 +AC_DEFUN([_AM_STAMP],
2478 +[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
2479 +AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
2480 +                               [:.*])))/stamp-h[]_AM_STAMP_Count])
2481 +
2482 +
2483 +# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
2484 +# ------------------------------------------------------------
2485 +# We used to try to get a real timestamp in stamp-h.  But the fear is that
2486 +# that will cause unnecessary cvs conflicts.
2487 +AC_DEFUN([_AM_CONFIG_HEADER],
2488 +[# Add the stamp file to the list of files AC keeps track of,
2489 +# along with our hook.
2490 +AC_CONFIG_HEADERS([$1],
2491 +                  [# update the timestamp
2492 +echo 'timestamp for $1' >"_AM_STAMP([$1])"
2493 +$2],
2494 +                  [$3])
2495 +])# _AM_CONFIG_HEADER
2496 +
2497 +
2498 +# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
2499 +# --------------------------------------------------------------
2500 +AC_DEFUN([AM_CONFIG_HEADER],
2501 +[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
2502 +])# AM_CONFIG_HEADER
2503 +
2504 +# Do all the work for Automake.                            -*- Autoconf -*-
2505 +
2506 +# This macro actually does too much some checks are only needed if
2507 +# your package does certain things.  But this isn't really a big deal.
2508 +
2509 +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
2510 +# Free Software Foundation, Inc.
2511 +
2512 +# This program is free software; you can redistribute it and/or modify
2513 +# it under the terms of the GNU General Public License as published by
2514 +# the Free Software Foundation; either version 2, or (at your option)
2515 +# any later version.
2516 +
2517 +# This program is distributed in the hope that it will be useful,
2518 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2519 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2520 +# GNU General Public License for more details.
2521 +
2522 +# You should have received a copy of the GNU General Public License
2523 +# along with this program; if not, write to the Free Software
2524 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2525 +# 02111-1307, USA.
2526 +
2527 +# serial 8
2528 +
2529 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2530 +# written in clear, in which case automake, when reading aclocal.m4,
2531 +# will think it sees a *use*, and therefore will trigger all it's
2532 +# C support machinery.  Also note that it means that autoscan, seeing
2533 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2534 +
2535 +
2536 +AC_PREREQ([2.52])
2537 +
2538 +# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
2539 +# the ones we care about.
2540 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2541 +
2542 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2543 +# AM_INIT_AUTOMAKE([OPTIONS])
2544 +# -----------------------------------------------
2545 +# The call with PACKAGE and VERSION arguments is the old style
2546 +# call (pre autoconf-2.50), which is being phased out.  PACKAGE
2547 +# and VERSION should now be passed to AC_INIT and removed from
2548 +# the call to AM_INIT_AUTOMAKE.
2549 +# We support both call styles for the transition.  After
2550 +# the next Automake release, Autoconf can make the AC_INIT
2551 +# arguments mandatory, and then we can depend on a new Autoconf
2552 +# release and drop the old call support.
2553 +AC_DEFUN([AM_INIT_AUTOMAKE],
2554 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2555 + AC_REQUIRE([AC_PROG_INSTALL])dnl
2556 +# test to see if srcdir already configured
2557 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
2558 +   test -f $srcdir/config.status; then
2559 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2560 +fi
2561  
2562 -# serial 1
2563 +# Define the identity of the package.
2564 +dnl Distinguish between old-style and new-style calls.
2565 +m4_ifval([$2],
2566 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2567 + AC_SUBST([PACKAGE], [$1])dnl
2568 + AC_SUBST([VERSION], [$2])],
2569 +[_AM_SET_OPTIONS([$1])dnl
2570 + AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
2571 + AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
2572 +
2573 +_AM_IF_OPTION([no-define],,
2574 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2575 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2576 +
2577 +# Some tools Automake needs.
2578 +AC_REQUIRE([AM_SANITY_CHECK])dnl
2579 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
2580 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2581 +AM_MISSING_PROG(AUTOCONF, autoconf)
2582 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2583 +AM_MISSING_PROG(AUTOHEADER, autoheader)
2584 +AM_MISSING_PROG(MAKEINFO, makeinfo)
2585 +AM_MISSING_PROG(AMTAR, tar)
2586 +AM_PROG_INSTALL_SH
2587 +AM_PROG_INSTALL_STRIP
2588 +# We need awk for the "check" target.  The system "awk" is bad on
2589 +# some platforms.
2590 +AC_REQUIRE([AC_PROG_AWK])dnl
2591 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2592 +
2593 +_AM_IF_OPTION([no-dependencies],,
2594 +[AC_PROVIDE_IFELSE([AC_PROG_][CC],
2595 +                  [_AM_DEPENDENCIES(CC)],
2596 +                  [define([AC_PROG_][CC],
2597 +                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
2598 +AC_PROVIDE_IFELSE([AC_PROG_][CXX],
2599 +                  [_AM_DEPENDENCIES(CXX)],
2600 +                  [define([AC_PROG_][CXX],
2601 +                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2602 +])
2603 +])
2604  
2605 -dnl Usage:
2606 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
2607 +# Copyright 2002  Free Software Foundation, Inc.
2608  
2609 -AC_DEFUN(AM_INIT_AUTOMAKE,
2610 -[AC_REQUIRE([AC_PROG_INSTALL])
2611 -PACKAGE=[$1]
2612 -AC_SUBST(PACKAGE)
2613 -VERSION=[$2]
2614 -AC_SUBST(VERSION)
2615 -dnl test to see if srcdir already configured
2616 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2617 -  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2618 -fi
2619 -ifelse([$3],,
2620 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2621 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
2622 -AC_REQUIRE([AM_SANITY_CHECK])
2623 -AC_REQUIRE([AC_ARG_PROGRAM])
2624 -dnl FIXME This is truly gross.
2625 -missing_dir=`cd $ac_aux_dir && pwd`
2626 -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
2627 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
2628 -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
2629 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
2630 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
2631 -AC_REQUIRE([AC_PROG_MAKE_SET])])
2632 +# This program is free software; you can redistribute it and/or modify
2633 +# it under the terms of the GNU General Public License as published by
2634 +# the Free Software Foundation; either version 2, or (at your option)
2635 +# any later version.
2636 +
2637 +# This program is distributed in the hope that it will be useful,
2638 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2639 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2640 +# GNU General Public License for more details.
2641 +
2642 +# You should have received a copy of the GNU General Public License
2643 +# along with this program; if not, write to the Free Software
2644 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2645 +
2646 +# AM_AUTOMAKE_VERSION(VERSION)
2647 +# ----------------------------
2648 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
2649 +# generated from the m4 files accompanying Automake X.Y.
2650 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
2651 +
2652 +# AM_SET_CURRENT_AUTOMAKE_VERSION
2653 +# -------------------------------
2654 +# Call AM_AUTOMAKE_VERSION so it can be traced.
2655 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
2656 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2657 +        [AM_AUTOMAKE_VERSION([1.6.3])])
2658 +
2659 +# Helper functions for option handling.                    -*- Autoconf -*-
2660 +
2661 +# Copyright 2001, 2002  Free Software Foundation, Inc.
2662 +
2663 +# This program is free software; you can redistribute it and/or modify
2664 +# it under the terms of the GNU General Public License as published by
2665 +# the Free Software Foundation; either version 2, or (at your option)
2666 +# any later version.
2667 +
2668 +# This program is distributed in the hope that it will be useful,
2669 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2670 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2671 +# GNU General Public License for more details.
2672 +
2673 +# You should have received a copy of the GNU General Public License
2674 +# along with this program; if not, write to the Free Software
2675 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2676 +# 02111-1307, USA.
2677 +
2678 +# serial 2
2679 +
2680 +# _AM_MANGLE_OPTION(NAME)
2681 +# -----------------------
2682 +AC_DEFUN([_AM_MANGLE_OPTION],
2683 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
2684 +
2685 +# _AM_SET_OPTION(NAME)
2686 +# ------------------------------
2687 +# Set option NAME.  Presently that only means defining a flag for this option.
2688 +AC_DEFUN([_AM_SET_OPTION],
2689 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
2690 +
2691 +# _AM_SET_OPTIONS(OPTIONS)
2692 +# ----------------------------------
2693 +# OPTIONS is a space-separated list of Automake options.
2694 +AC_DEFUN([_AM_SET_OPTIONS],
2695 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2696 +
2697 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
2698 +# -------------------------------------------
2699 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
2700 +AC_DEFUN([_AM_IF_OPTION],
2701 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2702  
2703  #
2704  # Check to make sure that the build environment is sane.
2705  #
2706  
2707 -AC_DEFUN(AM_SANITY_CHECK,
2708 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2709 +
2710 +# This program is free software; you can redistribute it and/or modify
2711 +# it under the terms of the GNU General Public License as published by
2712 +# the Free Software Foundation; either version 2, or (at your option)
2713 +# any later version.
2714 +
2715 +# This program is distributed in the hope that it will be useful,
2716 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2717 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2718 +# GNU General Public License for more details.
2719 +
2720 +# You should have received a copy of the GNU General Public License
2721 +# along with this program; if not, write to the Free Software
2722 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2723 +# 02111-1307, USA.
2724 +
2725 +# serial 3
2726 +
2727 +# AM_SANITY_CHECK
2728 +# ---------------
2729 +AC_DEFUN([AM_SANITY_CHECK],
2730  [AC_MSG_CHECKING([whether build environment is sane])
2731  # Just in case
2732  sleep 1
2733 -echo timestamp > conftestfile
2734 +echo timestamp > conftest.file
2735  # Do `set' in a subshell so we don't clobber the current shell's
2736  # arguments.  Must try -L first in case configure is actually a
2737  # symlink; some systems play weird games with the mod time of symlinks
2738  # (eg FreeBSD returns the mod time of the symlink's containing
2739  # directory).
2740  if (
2741 -   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2742 -   if test "[$]*" = "X"; then
2743 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2744 +   if test "$[*]" = "X"; then
2745        # -L didn't work.
2746 -      set X `ls -t $srcdir/configure conftestfile`
2747 +      set X `ls -t $srcdir/configure conftest.file`
2748     fi
2749 -   if test "[$]*" != "X $srcdir/configure conftestfile" \
2750 -      && test "[$]*" != "X conftestfile $srcdir/configure"; then
2751 +   rm -f conftest.file
2752 +   if test "$[*]" != "X $srcdir/configure conftest.file" \
2753 +      && test "$[*]" != "X conftest.file $srcdir/configure"; then
2754  
2755        # If neither matched, then we have a broken ls.  This can happen
2756        # if, for instance, CONFIG_SHELL is bash and it inherits a
2757 @@ -97,7 +315,7 @@
2758  alias in your environment])
2759     fi
2760  
2761 -   test "[$]2" = conftestfile
2762 +   test "$[2]" = conftest.file
2763     )
2764  then
2765     # Ok.
2766 @@ -106,24 +324,515 @@
2767     AC_MSG_ERROR([newly created file is older than distributed files!
2768  Check your system clock])
2769  fi
2770 -rm -f conftest*
2771  AC_MSG_RESULT(yes)])
2772  
2773 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
2774 -dnl The program must properly implement --version.
2775 -AC_DEFUN(AM_MISSING_PROG,
2776 -[AC_MSG_CHECKING(for working $2)
2777 -# Run test in a subshell; some versions of sh will print an error if
2778 -# an executable is not found, even if stderr is redirected.
2779 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2780 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
2781 -   $1=$2
2782 -   AC_MSG_RESULT(found)
2783 +#  -*- Autoconf -*-
2784 +
2785 +
2786 +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
2787 +
2788 +# This program is free software; you can redistribute it and/or modify
2789 +# it under the terms of the GNU General Public License as published by
2790 +# the Free Software Foundation; either version 2, or (at your option)
2791 +# any later version.
2792 +
2793 +# This program is distributed in the hope that it will be useful,
2794 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2795 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2796 +# GNU General Public License for more details.
2797 +
2798 +# You should have received a copy of the GNU General Public License
2799 +# along with this program; if not, write to the Free Software
2800 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2801 +# 02111-1307, USA.
2802 +
2803 +# serial 3
2804 +
2805 +# AM_MISSING_PROG(NAME, PROGRAM)
2806 +# ------------------------------
2807 +AC_DEFUN([AM_MISSING_PROG],
2808 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
2809 +$1=${$1-"${am_missing_run}$2"}
2810 +AC_SUBST($1)])
2811 +
2812 +
2813 +# AM_MISSING_HAS_RUN
2814 +# ------------------
2815 +# Define MISSING if not defined so far and test if it supports --run.
2816 +# If it does, set am_missing_run to use it, otherwise, to nothing.
2817 +AC_DEFUN([AM_MISSING_HAS_RUN],
2818 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2819 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2820 +# Use eval to expand $SHELL
2821 +if eval "$MISSING --run true"; then
2822 +  am_missing_run="$MISSING --run "
2823  else
2824 -   $1="$3/missing $2"
2825 -   AC_MSG_RESULT(missing)
2826 +  am_missing_run=
2827 +  AC_MSG_WARN([`missing' script is too old or missing])
2828  fi
2829 -AC_SUBST($1)])
2830 +])
2831 +
2832 +# AM_AUX_DIR_EXPAND
2833 +
2834 +# Copyright 2001 Free Software Foundation, Inc.
2835 +
2836 +# This program is free software; you can redistribute it and/or modify
2837 +# it under the terms of the GNU General Public License as published by
2838 +# the Free Software Foundation; either version 2, or (at your option)
2839 +# any later version.
2840 +
2841 +# This program is distributed in the hope that it will be useful,
2842 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2843 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2844 +# GNU General Public License for more details.
2845 +
2846 +# You should have received a copy of the GNU General Public License
2847 +# along with this program; if not, write to the Free Software
2848 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2849 +# 02111-1307, USA.
2850 +
2851 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2852 +# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
2853 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
2854 +#
2855 +# Of course, Automake must honor this variable whenever it calls a
2856 +# tool from the auxiliary directory.  The problem is that $srcdir (and
2857 +# therefore $ac_aux_dir as well) can be either absolute or relative,
2858 +# depending on how configure is run.  This is pretty annoying, since
2859 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2860 +# source directory, any form will work fine, but in subdirectories a
2861 +# relative path needs to be adjusted first.
2862 +#
2863 +# $ac_aux_dir/missing
2864 +#    fails when called from a subdirectory if $ac_aux_dir is relative
2865 +# $top_srcdir/$ac_aux_dir/missing
2866 +#    fails if $ac_aux_dir is absolute,
2867 +#    fails when called from a subdirectory in a VPATH build with
2868 +#          a relative $ac_aux_dir
2869 +#
2870 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2871 +# are both prefixed by $srcdir.  In an in-source build this is usually
2872 +# harmless because $srcdir is `.', but things will broke when you
2873 +# start a VPATH build or use an absolute $srcdir.
2874 +#
2875 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2876 +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
2877 +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2878 +# and then we would define $MISSING as
2879 +#   MISSING="\${SHELL} $am_aux_dir/missing"
2880 +# This will work as long as MISSING is not called from configure, because
2881 +# unfortunately $(top_srcdir) has no meaning in configure.
2882 +# However there are other variables, like CC, which are often used in
2883 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
2884 +#
2885 +# Another solution, used here, is to always expand $ac_aux_dir to an
2886 +# absolute PATH.  The drawback is that using absolute paths prevent a
2887 +# configured tree to be moved without reconfiguration.
2888 +
2889 +# Rely on autoconf to set up CDPATH properly.
2890 +AC_PREREQ([2.50])
2891 +
2892 +AC_DEFUN([AM_AUX_DIR_EXPAND], [
2893 +# expand $ac_aux_dir to an absolute path
2894 +am_aux_dir=`cd $ac_aux_dir && pwd`
2895 +])
2896 +
2897 +# AM_PROG_INSTALL_SH
2898 +# ------------------
2899 +# Define $install_sh.
2900 +
2901 +# Copyright 2001 Free Software Foundation, Inc.
2902 +
2903 +# This program is free software; you can redistribute it and/or modify
2904 +# it under the terms of the GNU General Public License as published by
2905 +# the Free Software Foundation; either version 2, or (at your option)
2906 +# any later version.
2907 +
2908 +# This program is distributed in the hope that it will be useful,
2909 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2910 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2911 +# GNU General Public License for more details.
2912 +
2913 +# You should have received a copy of the GNU General Public License
2914 +# along with this program; if not, write to the Free Software
2915 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2916 +# 02111-1307, USA.
2917 +
2918 +AC_DEFUN([AM_PROG_INSTALL_SH],
2919 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2920 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
2921 +AC_SUBST(install_sh)])
2922 +
2923 +# AM_PROG_INSTALL_STRIP
2924 +
2925 +# Copyright 2001 Free Software Foundation, Inc.
2926 +
2927 +# This program is free software; you can redistribute it and/or modify
2928 +# it under the terms of the GNU General Public License as published by
2929 +# the Free Software Foundation; either version 2, or (at your option)
2930 +# any later version.
2931 +
2932 +# This program is distributed in the hope that it will be useful,
2933 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2934 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2935 +# GNU General Public License for more details.
2936 +
2937 +# You should have received a copy of the GNU General Public License
2938 +# along with this program; if not, write to the Free Software
2939 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2940 +# 02111-1307, USA.
2941 +
2942 +# One issue with vendor `install' (even GNU) is that you can't
2943 +# specify the program used to strip binaries.  This is especially
2944 +# annoying in cross-compiling environments, where the build's strip
2945 +# is unlikely to handle the host's binaries.
2946 +# Fortunately install-sh will honor a STRIPPROG variable, so we
2947 +# always use install-sh in `make install-strip', and initialize
2948 +# STRIPPROG with the value of the STRIP variable (set by the user).
2949 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
2950 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2951 +# Installed binaries are usually stripped using `strip' when the user
2952 +# run `make install-strip'.  However `strip' might not be the right
2953 +# tool to use in cross-compilation environments, therefore Automake
2954 +# will honor the `STRIP' environment variable to overrule this program.
2955 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
2956 +if test "$cross_compiling" != no; then
2957 +  AC_CHECK_TOOL([STRIP], [strip], :)
2958 +fi
2959 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2960 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
2961 +
2962 +# serial 4                                             -*- Autoconf -*-
2963 +
2964 +# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
2965 +
2966 +# This program is free software; you can redistribute it and/or modify
2967 +# it under the terms of the GNU General Public License as published by
2968 +# the Free Software Foundation; either version 2, or (at your option)
2969 +# any later version.
2970 +
2971 +# This program is distributed in the hope that it will be useful,
2972 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2973 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2974 +# GNU General Public License for more details.
2975 +
2976 +# You should have received a copy of the GNU General Public License
2977 +# along with this program; if not, write to the Free Software
2978 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2979 +# 02111-1307, USA.
2980 +
2981 +
2982 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2983 +# written in clear, in which case automake, when reading aclocal.m4,
2984 +# will think it sees a *use*, and therefore will trigger all it's
2985 +# C support machinery.  Also note that it means that autoscan, seeing
2986 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2987 +
2988 +
2989 +
2990 +# _AM_DEPENDENCIES(NAME)
2991 +# ----------------------
2992 +# See how the compiler implements dependency checking.
2993 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
2994 +# We try a few techniques and use that to set a single cache variable.
2995 +#
2996 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2997 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2998 +# dependency, and given that the user is not expected to run this macro,
2999 +# just rely on AC_PROG_CC.
3000 +AC_DEFUN([_AM_DEPENDENCIES],
3001 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
3002 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
3003 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
3004 +AC_REQUIRE([AM_DEP_TRACK])dnl
3005 +
3006 +ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
3007 +       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
3008 +       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
3009 +       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
3010 +                   [depcc="$$1"   am_compiler_list=])
3011 +
3012 +AC_CACHE_CHECK([dependency style of $depcc],
3013 +               [am_cv_$1_dependencies_compiler_type],
3014 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3015 +  # We make a subdir and do the tests there.  Otherwise we can end up
3016 +  # making bogus files that we don't know about and never remove.  For
3017 +  # instance it was reported that on HP-UX the gcc test will end up
3018 +  # making a dummy file named `D' -- because `-MD' means `put the output
3019 +  # in D'.
3020 +  mkdir conftest.dir
3021 +  # Copy depcomp to subdir because otherwise we won't find it if we're
3022 +  # using a relative directory.
3023 +  cp "$am_depcomp" conftest.dir
3024 +  cd conftest.dir
3025 +
3026 +  am_cv_$1_dependencies_compiler_type=none
3027 +  if test "$am_compiler_list" = ""; then
3028 +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
3029 +  fi
3030 +  for depmode in $am_compiler_list; do
3031 +    # We need to recreate these files for each test, as the compiler may
3032 +    # overwrite some of them when testing with obscure command lines.
3033 +    # This happens at least with the AIX C compiler.
3034 +    echo '#include "conftest.h"' > conftest.c
3035 +    echo 'int i;' > conftest.h
3036 +    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3037 +
3038 +    case $depmode in
3039 +    nosideeffect)
3040 +      # after this tag, mechanisms are not by side-effect, so they'll
3041 +      # only be used when explicitly requested
3042 +      if test "x$enable_dependency_tracking" = xyes; then
3043 +       continue
3044 +      else
3045 +       break
3046 +      fi
3047 +      ;;
3048 +    none) break ;;
3049 +    esac
3050 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3051 +    # mode.  It turns out that the SunPro C++ compiler does not properly
3052 +    # handle `-M -o', and we need to detect this.
3053 +    if depmode=$depmode \
3054 +       source=conftest.c object=conftest.o \
3055 +       depfile=conftest.Po tmpdepfile=conftest.TPo \
3056 +       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3057 +       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3058 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3059 +      am_cv_$1_dependencies_compiler_type=$depmode
3060 +      break
3061 +    fi
3062 +  done
3063 +
3064 +  cd ..
3065 +  rm -rf conftest.dir
3066 +else
3067 +  am_cv_$1_dependencies_compiler_type=none
3068 +fi
3069 +])
3070 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
3071 +])
3072 +
3073 +
3074 +# AM_SET_DEPDIR
3075 +# -------------
3076 +# Choose a directory name for dependency files.
3077 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
3078 +AC_DEFUN([AM_SET_DEPDIR],
3079 +[rm -f .deps 2>/dev/null
3080 +mkdir .deps 2>/dev/null
3081 +if test -d .deps; then
3082 +  DEPDIR=.deps
3083 +else
3084 +  # MS-DOS does not allow filenames that begin with a dot.
3085 +  DEPDIR=_deps
3086 +fi
3087 +rmdir .deps 2>/dev/null
3088 +AC_SUBST([DEPDIR])
3089 +])
3090 +
3091 +
3092 +# AM_DEP_TRACK
3093 +# ------------
3094 +AC_DEFUN([AM_DEP_TRACK],
3095 +[AC_ARG_ENABLE(dependency-tracking,
3096 +[  --disable-dependency-tracking Speeds up one-time builds
3097 +  --enable-dependency-tracking  Do not reject slow dependency extractors])
3098 +if test "x$enable_dependency_tracking" != xno; then
3099 +  am_depcomp="$ac_aux_dir/depcomp"
3100 +  AMDEPBACKSLASH='\'
3101 +fi
3102 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
3103 +AC_SUBST([AMDEPBACKSLASH])
3104 +])
3105 +
3106 +# Generate code to set up dependency tracking.   -*- Autoconf -*-
3107 +
3108 +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3109 +
3110 +# This program is free software; you can redistribute it and/or modify
3111 +# it under the terms of the GNU General Public License as published by
3112 +# the Free Software Foundation; either version 2, or (at your option)
3113 +# any later version.
3114 +
3115 +# This program is distributed in the hope that it will be useful,
3116 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3117 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3118 +# GNU General Public License for more details.
3119 +
3120 +# You should have received a copy of the GNU General Public License
3121 +# along with this program; if not, write to the Free Software
3122 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3123 +# 02111-1307, USA.
3124 +
3125 +#serial 2
3126 +
3127 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
3128 +# ------------------------------
3129 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
3130 +[for mf in $CONFIG_FILES; do
3131 +  # Strip MF so we end up with the name of the file.
3132 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
3133 +  # Check whether this is an Automake generated Makefile or not.
3134 +  # We used to match only the files named `Makefile.in', but
3135 +  # some people rename them; so instead we look at the file content.
3136 +  # Grep'ing the first line is not enough: some people post-process
3137 +  # each Makefile.in and add a new line on top of each file to say so.
3138 +  # So let's grep whole file.
3139 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
3140 +    dirpart=`AS_DIRNAME("$mf")`
3141 +  else
3142 +    continue
3143 +  fi
3144 +  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
3145 +  # Extract the definition of DEP_FILES from the Makefile without
3146 +  # running `make'.
3147 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3148 +  test -z "$DEPDIR" && continue
3149 +  # When using ansi2knr, U may be empty or an underscore; expand it
3150 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
3151 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3152 +  # We invoke sed twice because it is the simplest approach to
3153 +  # changing $(DEPDIR) to its actual value in the expansion.
3154 +  for file in `sed -n -e '
3155 +    /^DEP_FILES = .*\\\\$/ {
3156 +      s/^DEP_FILES = //
3157 +      :loop
3158 +       s/\\\\$//
3159 +       p
3160 +       n
3161 +       /\\\\$/ b loop
3162 +      p
3163 +    }
3164 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3165 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3166 +    # Make sure the directory exists.
3167 +    test -f "$dirpart/$file" && continue
3168 +    fdir=`AS_DIRNAME(["$file"])`
3169 +    AS_MKDIR_P([$dirpart/$fdir])
3170 +    # echo "creating $dirpart/$file"
3171 +    echo '# dummy' > "$dirpart/$file"
3172 +  done
3173 +done
3174 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
3175 +
3176 +
3177 +# AM_OUTPUT_DEPENDENCY_COMMANDS
3178 +# -----------------------------
3179 +# This macro should only be invoked once -- use via AC_REQUIRE.
3180 +#
3181 +# This code is only required when automatic dependency tracking
3182 +# is enabled.  FIXME.  This creates each `.P' file that we will
3183 +# need in order to bootstrap the dependency handling code.
3184 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
3185 +[AC_CONFIG_COMMANDS([depfiles],
3186 +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
3187 +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
3188 +])
3189 +
3190 +# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
3191 +
3192 +# This program is free software; you can redistribute it and/or modify
3193 +# it under the terms of the GNU General Public License as published by
3194 +# the Free Software Foundation; either version 2, or (at your option)
3195 +# any later version.
3196 +
3197 +# This program is distributed in the hope that it will be useful,
3198 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3199 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3200 +# GNU General Public License for more details.
3201 +
3202 +# You should have received a copy of the GNU General Public License
3203 +# along with this program; if not, write to the Free Software
3204 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3205 +# 02111-1307, USA.
3206 +
3207 +# serial 2
3208 +
3209 +# AM_MAKE_INCLUDE()
3210 +# -----------------
3211 +# Check to see how make treats includes.
3212 +AC_DEFUN([AM_MAKE_INCLUDE],
3213 +[am_make=${MAKE-make}
3214 +cat > confinc << 'END'
3215 +doit:
3216 +       @echo done
3217 +END
3218 +# If we don't find an include directive, just comment out the code.
3219 +AC_MSG_CHECKING([for style of include used by $am_make])
3220 +am__include="#"
3221 +am__quote=
3222 +_am_result=none
3223 +# First try GNU make style include.
3224 +echo "include confinc" > confmf
3225 +# We grep out `Entering directory' and `Leaving directory'
3226 +# messages which can occur if `w' ends up in MAKEFLAGS.
3227 +# In particular we don't look at `^make:' because GNU make might
3228 +# be invoked under some other name (usually "gmake"), in which
3229 +# case it prints its new name instead of `make'.
3230 +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3231 +   am__include=include
3232 +   am__quote=
3233 +   _am_result=GNU
3234 +fi
3235 +# Now try BSD make style include.
3236 +if test "$am__include" = "#"; then
3237 +   echo '.include "confinc"' > confmf
3238 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3239 +      am__include=.include
3240 +      am__quote="\""
3241 +      _am_result=BSD
3242 +   fi
3243 +fi
3244 +AC_SUBST(am__include)
3245 +AC_SUBST(am__quote)
3246 +AC_MSG_RESULT($_am_result)
3247 +rm -f confinc confmf
3248 +])
3249 +
3250 +# AM_CONDITIONAL                                              -*- Autoconf -*-
3251 +
3252 +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
3253 +
3254 +# This program is free software; you can redistribute it and/or modify
3255 +# it under the terms of the GNU General Public License as published by
3256 +# the Free Software Foundation; either version 2, or (at your option)
3257 +# any later version.
3258 +
3259 +# This program is distributed in the hope that it will be useful,
3260 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3261 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3262 +# GNU General Public License for more details.
3263 +
3264 +# You should have received a copy of the GNU General Public License
3265 +# along with this program; if not, write to the Free Software
3266 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3267 +# 02111-1307, USA.
3268 +
3269 +# serial 5
3270 +
3271 +AC_PREREQ(2.52)
3272 +
3273 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
3274 +# -------------------------------------
3275 +# Define a conditional.
3276 +AC_DEFUN([AM_CONDITIONAL],
3277 +[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
3278 +        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
3279 +AC_SUBST([$1_TRUE])
3280 +AC_SUBST([$1_FALSE])
3281 +if $2; then
3282 +  $1_TRUE=
3283 +  $1_FALSE='#'
3284 +else
3285 +  $1_TRUE='#'
3286 +  $1_FALSE=
3287 +fi
3288 +AC_CONFIG_COMMANDS_PRE(
3289 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
3290 +  AC_MSG_ERROR([conditional \"$1\" was never defined.
3291 +Usually this means the macro was only invoked conditionally.])
3292 +fi])])
3293  
3294  #serial 1
3295  # This test replaces the one in autoconf.
3296 @@ -144,9 +853,26 @@
3297  )
3298  
3299  
3300 +# Copyright 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
3301 +
3302 +# This program is free software; you can redistribute it and/or modify
3303 +# it under the terms of the GNU General Public License as published by
3304 +# the Free Software Foundation; either version 2, or (at your option)
3305 +# any later version.
3306 +
3307 +# This program is distributed in the hope that it will be useful,
3308 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3309 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3310 +# GNU General Public License for more details.
3311 +
3312 +# You should have received a copy of the GNU General Public License
3313 +# along with this program; if not, write to the Free Software
3314 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3315 +# 02111-1307, USA.
3316 +
3317  # serial 1
3318  
3319 -AC_DEFUN(AM_C_PROTOTYPES,
3320 +AC_DEFUN([AM_C_PROTOTYPES],
3321  [AC_REQUIRE([AM_PROG_CC_STDC])
3322  AC_REQUIRE([AC_PROG_CPP])
3323  AC_MSG_CHECKING([for function prototypes])
3324 @@ -157,15 +883,32 @@
3325  else
3326    AC_MSG_RESULT(no)
3327    U=_ ANSI2KNR=./ansi2knr
3328 -  # Ensure some checks needed by ansi2knr itself.
3329 -  AC_HEADER_STDC
3330 -  AC_CHECK_HEADERS(string.h)
3331  fi
3332 +# Ensure some checks needed by ansi2knr itself.
3333 +AC_HEADER_STDC
3334 +AC_CHECK_HEADERS(string.h)
3335  AC_SUBST(U)dnl
3336  AC_SUBST(ANSI2KNR)dnl
3337  ])
3338  
3339  
3340 +# Copyright 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
3341 +
3342 +# This program is free software; you can redistribute it and/or modify
3343 +# it under the terms of the GNU General Public License as published by
3344 +# the Free Software Foundation; either version 2, or (at your option)
3345 +# any later version.
3346 +
3347 +# This program is distributed in the hope that it will be useful,
3348 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
3349 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3350 +# GNU General Public License for more details.
3351 +
3352 +# You should have received a copy of the GNU General Public License
3353 +# along with this program; if not, write to the Free Software
3354 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3355 +# 02111-1307, USA.
3356 +
3357  # serial 1
3358  
3359  # @defmac AC_PROG_CC_STDC
3360 @@ -183,7 +926,7 @@
3361  # program @code{ansi2knr}, which comes with Ghostscript.
3362  # @end defmac
3363  
3364 -AC_DEFUN(AM_PROG_CC_STDC,
3365 +AC_DEFUN([AM_PROG_CC_STDC],
3366  [AC_REQUIRE([AC_PROG_CC])
3367  AC_BEFORE([$0], [AC_C_INLINE])
3368  AC_BEFORE([$0], [AC_C_CONST])
3369 @@ -193,7 +936,7 @@
3370  dnl FIXME: can't do this because then AC_AIX won't work due to a
3371  dnl circular dependency.
3372  dnl AC_BEFORE([$0], [AC_PROG_CPP])
3373 -AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
3374 +AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
3375  AC_CACHE_VAL(am_cv_prog_cc_stdc,
3376  [am_cv_prog_cc_stdc=no
3377  ac_save_CC="$CC"
3378 @@ -201,9 +944,10 @@
3379  # breaks some systems' header files.
3380  # AIX                  -qlanglvl=ansi
3381  # Ultrix and OSF/1     -std1
3382 -# HP-UX                        -Aa -D_HPUX_SOURCE
3383 +# HP-UX 10.20 and later        -Ae
3384 +# HP-UX older versions -Aa -D_HPUX_SOURCE
3385  # SVR4                 -Xc -D__EXTENSIONS__
3386 -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3388  do
3389    CC="$ac_save_CC $ac_arg"
3390    AC_TRY_COMPILE(
3391 @@ -245,7 +989,7 @@
3392  if test -z "$am_cv_prog_cc_stdc"; then
3393    AC_MSG_RESULT([none needed])
3394  else
3395 -  AC_MSG_RESULT($am_cv_prog_cc_stdc)
3396 +  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
3397  fi
3398  case "x$am_cv_prog_cc_stdc" in
3399    x|xno) ;;
3400 @@ -400,19 +1144,6 @@
3401  ])dnl
3402  dnl ---------------------------------------------------------------------------
3403  
3404 -# Define a conditional.
3405 -
3406 -AC_DEFUN(AM_CONDITIONAL,
3407 -[AC_SUBST($1_TRUE)
3408 -AC_SUBST($1_FALSE)
3409 -if $2; then
3410 -  $1_TRUE=
3411 -  $1_FALSE='#'
3412 -else
3413 -  $1_TRUE='#'
3414 -  $1_FALSE=
3415 -fi])
3416 -
3417  # gssapi.m4: Find GSSAPI libraries in either Heimdal or MIT implementations
3418  # Brendan Cully <brendan@kublai.com> 20010529
3419  
3420 @@ -925,7 +1656,7 @@
3421  # Test for the GNU C Library, version 2.1 or newer.
3422  # From Bruno Haible.
3423  
3424 -AC_DEFUN([jm_GLIBC21],
3425 +AC_DEFUN([MUTT_jm_GLIBC21],
3426    [
3427      AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
3428        ac_cv_gnu_library_2_1,
3429 @@ -1067,30 +1798,3 @@
3430      fi
3431    fi])
3432  
3433 -#serial 2
3434 -
3435 -# Test for the GNU C Library, version 2.1 or newer.
3436 -# From Bruno Haible.
3437 -
3438 -AC_DEFUN([MUTT_jm_GLIBC21],
3439 -  [
3440 -    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
3441 -      ac_cv_gnu_library_2_1,
3442 -      [AC_EGREP_CPP([Lucky GNU user],
3443 -       [
3444 -#include <features.h>
3445 -#ifdef __GNU_LIBRARY__
3446 - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3447 -  Lucky GNU user
3448 - #endif
3449 -#endif
3450 -       ],
3451 -       ac_cv_gnu_library_2_1=yes,
3452 -       ac_cv_gnu_library_2_1=no)
3453 -      ]
3454 -    )
3455 -    AC_SUBST(GLIBC21)
3456 -    GLIBC21="$ac_cv_gnu_library_2_1"
3457 -  ]
3458 -)
3459 -
3460 diff -uNr mutt-1.4.orig/attach.h mutt-1.4/attach.h
3461 --- mutt-1.4.orig/attach.h      Tue Sep 11 13:20:34 2001
3462 +++ mutt-1.4/attach.h   Sun Nov  3 21:57:20 2002
3463 @@ -30,5 +30,5 @@
3464  
3465  void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
3466  void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
3467 -void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
3468 +void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
3469  void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
3470 diff -uNr mutt-1.4.orig/browser.c mutt-1.4/browser.c
3471 --- mutt-1.4.orig/browser.c     Sun Nov  3 21:42:52 2002
3472 +++ mutt-1.4/browser.c  Sun Nov  3 22:00:14 2002
3473 @@ -27,6 +27,9 @@
3474  #ifdef USE_IMAP
3475  #include "imap.h"
3476  #endif
3477 +#ifdef USE_NNTP
3478 +#include "nntp.h"
3479 +#endif
3480  
3481  #include <stdlib.h>
3482  #include <dirent.h>
3483 @@ -44,6 +47,19 @@
3484    { NULL }
3485  };
3486  
3487 +#ifdef USE_NNTP
3488 +static struct mapping_t FolderNewsHelp[] = {
3489 +  { N_("Exit"),        OP_EXIT },
3490 +  { N_("List"),        OP_TOGGLE_MAILBOXES },
3491 +  { N_("Subscribe"),   OP_BROWSER_SUBSCRIBE },
3492 +  { N_("Unsubscribe"), OP_BROWSER_UNSUBSCRIBE },
3493 +  { N_("Catchup"),     OP_CATCHUP },
3494 +  { N_("Mask"),        OP_ENTER_MASK },
3495 +  { N_("Help"),        OP_HELP },
3496 +  { NULL }
3497 +};
3498 +#endif
3499 +
3500  typedef struct folder_t
3501  {
3502    struct folder_file *ff;
3503 @@ -109,9 +125,17 @@
3504      case SORT_ORDER:
3505        return;
3506      case SORT_DATE:
3507 +#ifdef USE_NNTP
3508 +      if (option (OPTNEWS))
3509 +       return;
3510 +#endif
3511        f = browser_compare_date;
3512        break;
3513      case SORT_SIZE:
3514 +#ifdef USE_NNTP
3515 +      if (option (OPTNEWS))
3516 +       return;
3517 +#endif
3518        f = browser_compare_size;
3519        break;
3520      case SORT_SUBJECT:
3521 @@ -299,8 +323,106 @@
3522    return (src);
3523  }
3524  
3525 +#ifdef USE_NNTP
3526 +static const char *
3527 +newsgroup_format_str (char *dest, size_t destlen, char op, const char *src,
3528 +                      const char *fmt, const char *ifstring, const char *elsestring,
3529 +                      unsigned long data, format_flag flags)
3530 +{
3531 +  char fn[SHORT_STRING], tmp[SHORT_STRING];
3532 +  FOLDER *folder = (FOLDER *) data;
3533 +
3534 +  switch (op)
3535 +  {
3536 +    case 'C':
3537 +      snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3538 +      snprintf (dest, destlen, tmp, folder->num + 1);
3539 +      break;
3540 +      
3541 +    case 'f':
3542 +      strncpy (fn, folder->ff->name, sizeof(fn) - 1);
3543 +      snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
3544 +      snprintf (dest, destlen, tmp, fn);
3545 +      break;
3546 +
3547 +    case 'N':
3548 +      snprintf (tmp, sizeof (tmp), "%%%sc", fmt);
3549 +      if (folder->ff->nd->subscribed)
3550 +       snprintf (dest, destlen, tmp, ' ');
3551 +      else
3552 +       snprintf (dest, destlen, tmp, folder->ff->new ? 'N' : 'u');
3553 +      break;
3554 +
3555 +    case 'M':
3556 +      snprintf (tmp, sizeof (tmp), "%%%sc", fmt);
3557 +      if (folder->ff->nd->deleted)
3558 +       snprintf (dest, destlen, tmp, 'D');
3559 +      else
3560 +       snprintf (dest, destlen, tmp, folder->ff->nd->allowed ? ' ' : '-');
3561 +      break;
3562 +
3563 +    case 's':
3564 +      if (flags & M_FORMAT_OPTIONAL)
3565 +      {
3566 +       if (folder->ff->nd->unread != 0)
3567 +         mutt_FormatString (dest, destlen, ifstring, newsgroup_format_str,
3568 +               data, flags);
3569 +       else
3570 +         mutt_FormatString (dest, destlen, elsestring, newsgroup_format_str,
3571 +               data, flags);
3572 +      }
3573 +      else if (Context && Context->data == folder->ff->nd)
3574 +      {
3575 +       snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3576 +       snprintf (dest, destlen, tmp, Context->unread);
3577 +      }
3578 +      else
3579 +      {
3580 +       snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3581 +       snprintf (dest, destlen, tmp, folder->ff->nd->unread);
3582 +      }
3583 +      break;
3584 +
3585 +    case 'n':
3586 +      if (Context && Context->data == folder->ff->nd)
3587 +      {
3588 +       snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3589 +       snprintf (dest, destlen, tmp, Context->new);
3590 +      }
3591 +      else if (option (OPTMARKOLD) &&
3592 +               folder->ff->nd->lastCached >= folder->ff->nd->firstMessage &&
3593 +               folder->ff->nd->lastCached <= folder->ff->nd->lastMessage)
3594 +      {
3595 +       snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3596 +       snprintf (dest, destlen, tmp, folder->ff->nd->lastMessage - folder->ff->nd->lastCached);
3597 +      }
3598 +      else
3599 +      {
3600 +       snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
3601 +       snprintf (dest, destlen, tmp, folder->ff->nd->unread);
3602 +      }
3603 +      break;
3604 +
3605 +    case 'd':
3606 +      if (folder->ff->nd->desc != NULL)
3607 +      {
3608 +       snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
3609 +       snprintf (dest, destlen, tmp, folder->ff->nd->desc);
3610 +      }
3611 +      else
3612 +      {
3613 +       snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
3614 +       snprintf (dest, destlen, tmp, "");
3615 +      }
3616 +      break;
3617 +  }
3618 +  return (src);
3619 +}
3620 +#endif /* USE_NNTP */
3621 +
3622  static void add_folder (MUTTMENU *m, struct browser_state *state,
3623 -                       const char *name, const struct stat *s, int new)
3624 +                       const char *name, const struct stat *s,
3625 +                       void *data, int new)
3626  {
3627    if (state->entrylen == state->entrymax)
3628    {
3629 @@ -329,6 +451,10 @@
3630  #ifdef USE_IMAP
3631    (state->entry)[state->entrylen].imap = 0;
3632  #endif
3633 +#ifdef USE_NNTP
3634 +  if (option (OPTNEWS))
3635 +    (state->entry)[state->entrylen].nd = (NNTP_DATA *) data;
3636 +#endif
3637    (state->entrylen)++;
3638  }
3639  
3640 @@ -344,9 +470,35 @@
3641      menu->data = state->entry;
3642  }
3643  
3644 +/* get list of all files/newsgroups with mask */
3645  static int examine_directory (MUTTMENU *menu, struct browser_state *state,
3646                               char *d, const char *prefix)
3647  {
3648 +#ifdef USE_NNTP
3649 +  if (option (OPTNEWS))
3650 +  {
3651 +    LIST *tmp;
3652 +    NNTP_DATA *data;
3653 +    NNTP_SERVER *news = CurrentNewsSrv;
3654 +
3655 +/*  mutt_buffy_check (0); */
3656 +    init_state (state, menu);
3657 +
3658 +    for (tmp = news->list; tmp; tmp = tmp->next)
3659 +    {
3660 +      if (!(data = (NNTP_DATA *)tmp->data))
3661 +       continue;
3662 +      if (prefix && *prefix && strncmp (prefix, data->group,
3663 +           strlen (prefix)) != 0)
3664 +       continue;
3665 +      if (!((regexec (Mask.rx, data->group, 0, NULL, 0) == 0) ^ Mask.not))
3666 +       continue;
3667 +      add_folder (menu, state, data->group, NULL, data, data->new);
3668 +    }
3669 +  }
3670 +  else
3671 +#endif /* USE_NNTP */
3672 +  {
3673    struct stat s;
3674    DIR *dp;
3675    struct dirent *de;
3676 @@ -411,60 +563,95 @@
3677      tmp = Incoming;
3678      while (tmp && mutt_strcmp (buffer, tmp->path))
3679        tmp = tmp->next;
3680 -    add_folder (menu, state, de->d_name, &s, (tmp) ? tmp->new : 0);
3681 +    add_folder (menu, state, de->d_name, &s, NULL, (tmp) ? tmp->new : 0);
3682 +  }
3683 +  closedir (dp);
3684    }
3685 -  closedir (dp);  
3686    browser_sort (state);
3687    return 0;
3688  }
3689  
3690 +/* get list of mailboxes/subscribed newsgroups */
3691  static int examine_mailboxes (MUTTMENU *menu, struct browser_state *state)
3692  {
3693    struct stat s;
3694    char buffer[LONG_STRING];
3695 -  BUFFY *tmp = Incoming;
3696  
3697 -  if (!Incoming)
3698 -    return (-1);
3699 -  mutt_buffy_check (0);
3700 +#ifdef USE_NNTP
3701 +  if (option (OPTNEWS))
3702 +  {
3703 +    LIST *tmp;
3704 +    NNTP_DATA *data;
3705 +    NNTP_SERVER *news = CurrentNewsSrv;
3706  
3707 -  init_state (state, menu);
3708 +/*  mutt_buffy_check (0); */
3709 +    init_state (state, menu);
3710  
3711 -  do
3712 -  {
3713 -#ifdef USE_IMAP
3714 -    if (mx_is_imap (tmp->path))
3715 +    for (tmp = news->list; tmp; tmp = tmp->next)
3716      {
3717 -      add_folder (menu, state, tmp->path, NULL, tmp->new);
3718 -      continue;
3719 +      if ((data = (NNTP_DATA *) tmp->data) != NULL && (data->new ||
3720 +         (data->subscribed && (!option (OPTSHOWONLYUNREAD) || data->unread))))
3721 +      add_folder (menu, state, data->group, NULL, data, data->new);
3722      }
3723 +  }
3724 +  else
3725  #endif
3726 -#ifdef USE_POP
3727 -    if (mx_is_pop (tmp->path))
3728 +  {
3729 +    BUFFY *tmp = Incoming;
3730 +
3731 +    if (!Incoming)
3732 +      return (-1);
3733 +    mutt_buffy_check (0);
3734 +
3735 +    init_state (state, menu);
3736 +
3737 +    do
3738      {
3739 -      add_folder (menu, state, tmp->path, NULL, tmp->new);
3740 -      continue;
3741 -    }
3742 +#ifdef USE_IMAP
3743 +      if (mx_is_imap (tmp->path))
3744 +      {
3745 +       add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
3746 +       continue;
3747 +      }
3748  #endif
3749 -    if (lstat (tmp->path, &s) == -1)
3750 -      continue;
3751 +#ifdef USE_POP
3752 +      if (mx_is_pop (tmp->path))
3753 +      {
3754 +       add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
3755 +       continue;
3756 +      }
3757 +#endif
3758 +#ifdef USE_NNTP
3759 +      if (mx_is_nntp (tmp->path))
3760 +      {
3761 +       add_folder (menu, state, tmp->path, NULL, NULL, tmp->new);
3762 +       continue;
3763 +      }
3764 +#endif
3765 +      if (lstat (tmp->path, &s) == -1)
3766 +       continue;
3767  
3768 -    if ((! S_ISREG (s.st_mode)) && (! S_ISDIR (s.st_mode)) &&
3769 -       (! S_ISLNK (s.st_mode)))
3770 -      continue;
3771 +      if ((! S_ISREG (s.st_mode)) && (! S_ISDIR (s.st_mode)) &&
3772 +         (! S_ISLNK (s.st_mode)))
3773 +       continue;
3774      
3775 -    strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));
3776 -    mutt_pretty_mailbox (buffer);
3777 +      strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));
3778 +      mutt_pretty_mailbox (buffer);
3779  
3780 -    add_folder (menu, state, buffer, &s, tmp->new);
3781 +      add_folder (menu, state, buffer, &s, NULL, tmp->new);
3782 +    }
3783 +    while ((tmp = tmp->next));
3784    }
3785 -  while ((tmp = tmp->next));
3786    browser_sort (state);
3787    return 0;
3788  }
3789  
3790  int select_file_search (MUTTMENU *menu, regex_t *re, int n)
3791  {
3792 +#ifdef USE_NNTP
3793 +  if (option (OPTNEWS))
3794 +    return (regexec (re, ((struct folder_file *) menu->data)[n].desc, 0, NULL, 0));
3795 +#endif
3796    return (regexec (re, ((struct folder_file *) menu->data)[n].name, 0, NULL, 0));
3797  }
3798  
3799 @@ -475,7 +662,13 @@
3800    folder.ff = &((struct folder_file *) menu->data)[num];
3801    folder.num = num;
3802    
3803 -  mutt_FormatString (s, slen, NONULL(FolderFormat), folder_format_str, 
3804 +#ifdef USE_NNTP
3805 +  if (option (OPTNEWS))
3806 +    mutt_FormatString (s, slen, NONULL(GroupFormat), newsgroup_format_str, 
3807 +      (unsigned long) &folder, M_FORMAT_ARROWCURSOR);
3808 +  else
3809 +#endif
3810 +    mutt_FormatString (s, slen, NONULL(FolderFormat), folder_format_str, 
3811        (unsigned long) &folder, M_FORMAT_ARROWCURSOR);
3812  }
3813  
3814 @@ -495,7 +688,18 @@
3815      menu->top = 0;
3816  
3817    menu->tagged = 0;
3818 -  
3819 +
3820 +#ifdef USE_NNTP
3821 +  if (option (OPTNEWS))
3822 +  {
3823 +    if (buffy)
3824 +      snprintf (title, titlelen, _("Subscribed newsgroups"));
3825 +    else
3826 +      snprintf (title, titlelen, _("Newsgroups on server [%s]"),
3827 +               CurrentNewsSrv->conn->account.host);
3828 +  }
3829 +  else
3830 +#endif
3831    if (buffy)
3832      snprintf (title, titlelen, _("Mailboxes [%d]"), mutt_buffy_check (0));
3833    else
3834 @@ -551,6 +755,31 @@
3835    if (!folder)
3836      strfcpy (LastDirBackup, LastDir, sizeof (LastDirBackup));
3837  
3838 +#ifdef USE_NNTP
3839 +  if (option (OPTNEWS))
3840 +  {
3841 +    if (*f)
3842 +      strfcpy (prefix, f, sizeof (prefix));
3843 +    else
3844 +    {
3845 +      LIST *list;
3846 +
3847 +      /* default state for news reader mode is browse subscribed newsgroups */
3848 +      buffy = 0;
3849 +      for (list = CurrentNewsSrv->list; list; list = list->next)
3850 +      {
3851 +       NNTP_DATA *data = (NNTP_DATA *) list->data;
3852 +
3853 +       if (data && data->subscribed)
3854 +       {
3855 +         buffy = 1;
3856 +         break;
3857 +       }
3858 +      }
3859 +    }
3860 +  }
3861 +  else
3862 +#endif
3863    if (*f)
3864    {
3865      mutt_expand_path (f, flen);
3866 @@ -639,6 +868,9 @@
3867      menu->tag = file_tag;
3868  
3869    menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_FOLDER,
3870 +#ifdef USE_NNTP
3871 +    (option (OPTNEWS)) ? FolderNewsHelp :
3872 +#endif
3873      FolderHelp);
3874  
3875    init_menu (&state, menu, title, sizeof (title), buffy, FolderColumns);
3876 @@ -777,7 +1009,11 @@
3877           }
3878         }
3879  
3880 +#ifdef USE_NNTP
3881 +       if (buffy || option (OPTNEWS)) /* news have not path */
3882 +#else
3883         if (buffy)
3884 +#endif
3885         {
3886           strfcpy (f, state.entry[menu->current].name, flen);
3887           mutt_expand_path (f, flen);
3888 @@ -835,14 +1071,6 @@
3889          break;
3890  
3891  #ifdef USE_IMAP
3892 -      case OP_BROWSER_SUBSCRIBE:
3893 -       imap_subscribe (state.entry[menu->current].name, 1);
3894 -       break;
3895 -
3896 -      case OP_BROWSER_UNSUBSCRIBE:
3897 -       imap_subscribe (state.entry[menu->current].name, 0);
3898 -       break;
3899 -
3900        case OP_BROWSER_TOGGLE_LSUB:
3901         if (option (OPTIMAPLSUB))
3902         {
3903 @@ -913,6 +1141,11 @@
3904        
3905        case OP_CHANGE_DIRECTORY:
3906  
3907 +#ifdef USE_NNTP
3908 +       if (option (OPTNEWS))
3909 +         break;
3910 +#endif
3911 +
3912         strfcpy (buf, LastDir, sizeof (buf));
3913  #ifdef USE_IMAP
3914         if (!state.imap_browse)
3915 @@ -1163,6 +1396,190 @@
3916           else
3917             mutt_error _("Error trying to view file");
3918         }
3919 +       break;
3920 +
3921 +#ifdef USE_NNTP
3922 +      case OP_CATCHUP:
3923 +      case OP_UNCATCHUP:
3924 +       if (option (OPTNEWS))
3925 +       {
3926 +         struct folder_file *f = &state.entry[menu->current];
3927 +         NNTP_DATA *nd;
3928 +
3929 +         if (i == OP_CATCHUP)
3930 +           nd = mutt_newsgroup_catchup (CurrentNewsSrv, f->name);
3931 +         else
3932 +           nd = mutt_newsgroup_uncatchup (CurrentNewsSrv, f->name);
3933 +
3934 +         if (nd)
3935 +         {
3936 +/*         FOLDER folder;
3937 +           struct folder_file ff;
3938 +           char buffer[_POSIX_PATH_MAX + SHORT_STRING];
3939 +
3940 +           folder.ff = &ff;
3941 +           folder.ff->name = f->name;
3942 +           folder.ff->st = NULL;
3943 +           folder.ff->is_new = nd->new;
3944 +           folder.ff->nd = nd;
3945 +           safe_free ((void **) &f->desc);
3946 +           mutt_FormatString (buffer, sizeof (buffer), NONULL(GroupFormat),
3947 +                 newsgroup_format_str, (unsigned long) &folder,
3948 +                 M_FORMAT_ARROWCURSOR);
3949 +           f->desc = safe_strdup (buffer); */
3950 +           if (menu->current + 1 < menu->max)
3951 +             menu->current++;
3952 +           menu->redraw = REDRAW_MOTION_RESYNCH;
3953 +         }
3954 +       }
3955 +       break;
3956 +
3957 +      case OP_LOAD_ACTIVE:
3958 +       if (!option (OPTNEWS))
3959 +         break;
3960 +
3961 +       {
3962 +         LIST *tmp;
3963 +         NNTP_DATA *data;
3964 +
3965 +         for (tmp = CurrentNewsSrv->list; tmp; tmp = tmp->next)
3966 +         {
3967 +           if ((data = (NNTP_DATA *)tmp->data))
3968 +             data->deleted = 1;
3969 +         }
3970 +       }
3971 +       nntp_get_active (CurrentNewsSrv);
3972 +
3973 +       destroy_state (&state);
3974 +       if (buffy)
3975 +         examine_mailboxes (menu, &state);
3976 +       else
3977 +         examine_directory (menu, &state, NULL, NULL);
3978 +       init_menu (&state, menu, title, sizeof (title), buffy, 1);
3979 +       break;
3980 +#endif /* USE_NNTP */
3981 +
3982 +#if defined USE_IMAP || defined USE_NNTP
3983 +      case OP_BROWSER_SUBSCRIBE:
3984 +      case OP_BROWSER_UNSUBSCRIBE:
3985 +#endif
3986 +#ifdef USE_NNTP
3987 +      case OP_SUBSCRIBE_PATTERN:
3988 +      case OP_UNSUBSCRIBE_PATTERN:
3989 +        if (option (OPTNEWS))
3990 +       {
3991 +         regex_t *rx = (regex_t *) safe_malloc (sizeof (regex_t));
3992 +         char *s = buf;
3993 +         int j = menu->current;
3994 +         NNTP_DATA *nd;
3995 +         NNTP_SERVER *news = CurrentNewsSrv;
3996 +
3997 +         if (i == OP_SUBSCRIBE_PATTERN || i == OP_UNSUBSCRIBE_PATTERN)
3998 +         {
3999 +           char tmp[STRING];
4000 +           int err;
4001 +
4002 +           buf[0] = 0;
4003 +           if (i == OP_SUBSCRIBE_PATTERN)
4004 +             snprintf (tmp, sizeof (tmp), _("Subscribe pattern: "));
4005 +           else
4006 +             snprintf (tmp, sizeof (tmp), _("Unsubscribe pattern: "));
4007 +           if (mutt_get_field (tmp, buf, sizeof (buf), 0) != 0 || !buf[0])
4008 +           {
4009 +             FREE (&rx);
4010 +             break;
4011 +           }
4012 +
4013 +           if ((err = REGCOMP (rx, s, REG_NOSUB)) != 0)
4014 +           {
4015 +             regerror (err, rx, buf, sizeof (buf));
4016 +             regfree (rx);
4017 +             safe_free ((void **) &rx);
4018 +             mutt_error ("%s", buf);
4019 +             break;
4020 +           }
4021 +           menu->redraw = REDRAW_FULL;
4022 +           j = 0;
4023 +         }
4024 +         else if (!state.entrylen)
4025 +         {
4026 +           mutt_error _("No newsgroups match the mask");
4027 +           break;
4028 +         }
4029 +
4030 +         for ( ; j < state.entrylen; j++)
4031 +         {
4032 +           struct folder_file *f = &state.entry[j];
4033 +
4034 +           if (i == OP_BROWSER_SUBSCRIBE || i == OP_BROWSER_UNSUBSCRIBE ||
4035 +                 regexec (rx, f->name, 0, NULL, 0) == 0)
4036 +           {
4037 +             if (i == OP_BROWSER_SUBSCRIBE || i == OP_SUBSCRIBE_PATTERN)
4038 +               nd = mutt_newsgroup_subscribe (news, f->name);
4039 +             else
4040 +               nd = mutt_newsgroup_unsubscribe (news, f->name);
4041 +/*           if (nd)
4042 +             {
4043 +               FOLDER folder;
4044 +               char buffer[_POSIX_PATH_MAX + SHORT_STRING];
4045 +
4046 +               folder.name = f->name;
4047 +               folder.f = NULL;
4048 +               folder.new = nd->new;
4049 +               folder.nd = nd;
4050 +               safe_free ((void **) &f->desc);
4051 +               mutt_FormatString (buffer, sizeof (buffer), NONULL(GroupFormat),
4052 +                       newsgroup_format_str, (unsigned long) &folder,
4053 +                       M_FORMAT_ARROWCURSOR);
4054 +               f->desc = safe_strdup (buffer);
4055 +             } */
4056 +           }
4057 +           if (i == OP_BROWSER_SUBSCRIBE || i == OP_BROWSER_UNSUBSCRIBE)
4058 +           {
4059 +             if (menu->current + 1 < menu->max)
4060 +               menu->current++;
4061 +             menu->redraw = REDRAW_MOTION_RESYNCH;
4062 +             break;
4063 +           }
4064 +         }
4065 +         if (i == OP_SUBSCRIBE_PATTERN)
4066 +         {
4067 +           LIST *grouplist = NULL;
4068 +
4069 +           if (news)
4070 +             grouplist = news->list;
4071 +           for (; grouplist; grouplist = grouplist->next)
4072 +           {
4073 +             nd = (NNTP_DATA *) grouplist->data;
4074 +             if (nd && nd->group && !nd->subscribed)
4075 +             {
4076 +               if (regexec (rx, nd->group, 0, NULL, 0) == 0)
4077 +               {
4078 +                 mutt_newsgroup_subscribe (news, nd->group);
4079 +                 add_folder (menu, &state, nd->group, NULL, nd, nd->new);
4080 +               }
4081 +             }
4082 +           }
4083 +           init_menu (&state, menu, title, sizeof (title), buffy, 1);
4084 +         }
4085 +         mutt_newsrc_update (news);
4086 +         nntp_clear_cacheindex (news);
4087 +         if (i != OP_BROWSER_SUBSCRIBE && i != OP_BROWSER_UNSUBSCRIBE)
4088 +           regfree (rx);
4089 +         safe_free ((void **) &rx);
4090 +       }
4091 +#ifdef USE_IMAP
4092 +       else
4093 +#endif /* USE_IMAP && USE_NNTP */
4094 +#endif /* USE_NNTP */
4095 +#ifdef USE_IMAP
4096 +       {
4097 +         if (i == OP_BROWSER_SUBSCRIBE)
4098 +           imap_subscribe (state.entry[menu->current].name, 1);
4099 +         else
4100 +           imap_subscribe (state.entry[menu->current].name, 0);
4101 +       }
4102 +#endif /* USE_IMAP */
4103      }
4104    }
4105    
4106 diff -uNr mutt-1.4.orig/browser.h mutt-1.4/browser.h
4107 --- mutt-1.4.orig/browser.h     Mon Aug 21 17:42:20 2000
4108 +++ mutt-1.4/browser.h  Sun Nov  3 21:57:20 2002
4109 @@ -20,6 +20,10 @@
4110  #ifndef _BROWSER_H
4111  #define _BROWSER_H 1
4112  
4113 +#ifdef USE_NNTP
4114 +#include "nntp.h"
4115 +#endif
4116 +
4117  struct folder_file
4118  {
4119    mode_t mode;
4120 @@ -38,14 +42,17 @@
4121    unsigned selectable : 1;
4122    unsigned inferiors : 1;
4123  #endif
4124 +#ifdef USE_NNTP
4125 +  NNTP_DATA *nd;
4126 +#endif
4127    unsigned tagged : 1;
4128  };
4129  
4130  struct browser_state
4131  {
4132    struct folder_file *entry;
4133 -  short entrylen; /* number of real entries */
4134 -  short entrymax;  /* max entry */
4135 +  unsigned int entrylen; /* number of real entries */
4136 +  unsigned int entrymax; /* max entry */
4137  #ifdef USE_IMAP
4138    short imap_browse;
4139    char *folder;
4140 diff -uNr mutt-1.4.orig/buffy.c mutt-1.4/buffy.c
4141 --- mutt-1.4.orig/buffy.c       Mon Mar 25 12:30:08 2002
4142 +++ mutt-1.4/buffy.c    Sun Nov  3 21:57:20 2002
4143 @@ -257,6 +257,9 @@
4144  #ifdef USE_POP
4145    if (!Context || Context->magic != M_POP)
4146  #endif
4147 +#ifdef USE_NNTP
4148 +  if (!Context || Context->magic != M_NNTP)
4149 +#endif
4150    /* check device ID and serial number instead of comparing paths */
4151    if (!Context || !Context->path || stat (Context->path, &contex_sb) != 0)
4152    {
4153 @@ -278,6 +281,11 @@
4154        tmp->magic = M_POP;
4155      else
4156  #endif
4157 +#ifdef USE_NNTP
4158 +    if ((tmp->magic == M_NNTP) || mx_is_nntp (tmp->path))
4159 +      tmp->magic = M_NNTP;
4160 +    else
4161 +#endif
4162      if (stat (tmp->path, &sb) != 0 || sb.st_size == 0 ||
4163         (!tmp->magic && (tmp->magic = mx_get_magic (tmp->path)) <= 0))
4164      {
4165 @@ -294,25 +302,21 @@
4166      /* check to see if the folder is the currently selected folder
4167       * before polling */
4168      if (!Context || !Context->path ||
4169 -#if defined USE_IMAP || defined USE_POP
4170 -       ((
4171 +        (
4172 +          (0
4173  #ifdef USE_IMAP
4174 -       tmp->magic == M_IMAP
4175 +           || tmp->magic == M_IMAP
4176  #endif
4177  #ifdef USE_POP
4178 -#ifdef USE_IMAP
4179 -       ||
4180 -#endif
4181 -       tmp->magic == M_POP
4182 +           || tmp->magic == M_POP
4183  #endif
4184 -       ) ? mutt_strcmp (tmp->path, Context->path) :
4185 +#ifdef USE_NNTP
4186 +           || tmp->magic == M_NNTP
4187  #endif
4188 -        (sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino)
4189 -#if defined USE_IMAP || defined USE_POP         
4190 -           )
4191 -#endif
4192 -       )
4193 -       
4194 +          ) ? mutt_strcmp (tmp->path, Context->path) :
4195 +              (sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino)
4196 +        )
4197 +       )
4198      {
4199        switch (tmp->magic)
4200        {
4201 @@ -380,6 +384,11 @@
4202        case M_POP:
4203         break;
4204  #endif
4205 +
4206 +#ifdef USE_NNTP
4207 +      case M_NNTP:
4208 +       break;
4209 +#endif
4210        }
4211      }
4212  #ifdef BUFFY_SIZE
4213 diff -uNr mutt-1.4.orig/commands.c mutt-1.4/commands.c
4214 --- mutt-1.4.orig/commands.c    Sun Nov  3 21:42:52 2002
4215 +++ mutt-1.4/commands.c Sun Nov  3 21:57:20 2002
4216 @@ -26,6 +26,7 @@
4217  #include "copy.h"
4218  #include "mx.h"
4219  #include "pager.h"
4220 +#include "rfc1524.h"
4221  #include <sys/types.h>
4222  #include <sys/stat.h>
4223  #include <fcntl.h>
4224 @@ -791,6 +792,131 @@
4225    return -1;
4226  }
4227  
4228 +int mutt_update_list_file (char *filename, char *section, char *key, char *line)
4229 +{
4230 +  FILE *ifp;
4231 +  FILE *ofp;
4232 +  char buf[HUGE_STRING];
4233 +  char oldfile[_POSIX_PATH_MAX];
4234 +  char *c;
4235 +  int ext = 0, done = 0, r = 0;
4236 +
4237 +  snprintf (oldfile, sizeof(oldfile), "%s.bak", filename);
4238 +  dprint (1, (debugfile, "Renaming %s to %s\n", filename, oldfile));
4239 +
4240 +  /* if file not exist, create it */
4241 +  if ((ifp = safe_fopen (filename, "a")))
4242 +    fclose (ifp);
4243 +  if (_mutt_rename_file (filename, oldfile, 1))
4244 +  {
4245 +    mutt_perror _("Unable to create backup file");
4246 +    return (-1);
4247 +  }
4248 +  dprint (1, (debugfile, "Opening %s\n", oldfile));
4249 +  if (!(ifp = safe_fopen (oldfile, "r")))
4250 +  {
4251 +    mutt_perror _("Unable to open backup file for reading");
4252 +    return (-1);
4253 +  }
4254 +  dprint (1, (debugfile, "Opening %s\n", filename));
4255 +  if (!(ofp = fopen (filename, "w")))
4256 +  {
4257 +    fclose (ifp);
4258 +    mutt_perror _("Unable to open new file for writing");
4259 +    return (-1);
4260 +  }
4261 +  if (mx_lock_file (filename, fileno (ofp), 1, 0, 1))
4262 +  {
4263 +    fclose (ofp);
4264 +    fclose (ifp);
4265 +    mutt_error (_("Unable to lock %s, old file saved as %s"), filename, oldfile);
4266 +    return (-1);
4267 +  }
4268 +
4269 +  if (section)
4270 +  {
4271 +    while (r != EOF && !done && fgets (buf, sizeof (buf), ifp))
4272 +    {
4273 +      r = fputs (buf, ofp);
4274 +      c = buf;
4275 +      while (*c && *c != '\n') c++;
4276 +      c[0] = 0;        /* strip EOL */
4277 +      if (!strncmp (buf, "#: ", 3) && !mutt_strcasecmp (buf+3, section))
4278 +       done++;
4279 +    }
4280 +    if (r != EOF && !done)
4281 +    {
4282 +      snprintf (buf, sizeof(buf), "#: %s\n", section);
4283 +      r = fputs (buf, ofp);
4284 +    }
4285 +    done = 0;
4286 +  }
4287 +
4288 +  while (r != EOF && fgets (buf, sizeof (buf), ifp))
4289 +  {
4290 +    if (ext)
4291 +    {
4292 +      c = buf;
4293 +      while (*c && (*c != '\r') && (*c != '\n')) c++;
4294 +      c--;
4295 +      if (*c != '\\') ext = 0;
4296 +    }
4297 +    else if ((section && !strncmp (buf, "#: ", 3)))
4298 +    {
4299 +      if (!done && line)
4300 +      {
4301 +       fputs (line, ofp);
4302 +       fputc ('\n', ofp);
4303 +      }
4304 +      r = fputs (buf, ofp);
4305 +      done++;
4306 +      break;
4307 +    }
4308 +    else if (key && !strncmp (buf, key, strlen(key)) &&
4309 +           (!*key || buf[strlen(key)] == ' '))
4310 +    {
4311 +      c = buf;
4312 +      ext = 0;
4313 +      while (*c && (*c != '\r') && (*c != '\n')) c++;
4314 +      c--;
4315 +      if (*c == '\\') ext = 1;
4316 +      if (!done && line)
4317 +      {
4318 +       r = fputs (line, ofp);
4319 +       if (*key)
4320 +         r = fputc ('\n', ofp);
4321 +       done++;
4322 +      }
4323 +    }
4324 +    else
4325 +    {
4326 +      r = fputs (buf, ofp);
4327 +    }
4328 +  }
4329 +
4330 +  while (r != EOF && fgets (buf, sizeof (buf), ifp))
4331 +    r = fputs (buf, ofp);
4332 +
4333 +  /* If there wasn't a line to replace, put it on the end of the file */
4334 +  if (r != EOF && !done && line)
4335 +  {
4336 +    fputs (line, ofp);
4337 +    r = fputc ('\n', ofp);
4338 +  }
4339 +  mx_unlock_file (filename, fileno (ofp), 0);
4340 +  fclose (ofp);
4341 +  fclose (ifp);
4342 +  if (r != EOF)
4343 +  {
4344 +    unlink (oldfile);
4345 +    return 0;
4346 +  }
4347 +  unlink (filename);
4348 +  mutt_error (_("Cannot write new %s, old file saved as %s"), filename,
4349 +       oldfile);
4350 +  return (-1);
4351 +}
4352 +
4353  
4354  void mutt_version (void)
4355  {
4356 diff -uNr mutt-1.4.orig/complete.c mutt-1.4/complete.c
4357 --- mutt-1.4.orig/complete.c    Wed Nov  7 11:22:08 2001
4358 +++ mutt-1.4/complete.c Sun Nov  3 21:57:20 2002
4359 @@ -21,6 +21,9 @@
4360  #include "mailbox.h"
4361  #include "imap.h"
4362  #endif
4363 +#ifdef USE_NNTP
4364 +#include "nntp.h"
4365 +#endif
4366  
4367  #include <dirent.h>
4368  #include <string.h>
4369 @@ -44,9 +47,71 @@
4370    char filepart[_POSIX_PATH_MAX];
4371  #ifdef USE_IMAP
4372    char imap_path[LONG_STRING];
4373 +#endif
4374  
4375    dprint (2, (debugfile, "mutt_complete: completing %s\n", s));
4376  
4377 +#ifdef USE_NNTP
4378 +  if (option (OPTNEWS))
4379 +  {
4380 +    LIST *l = CurrentNewsSrv->list;
4381 +
4382 +    strfcpy (filepart, s, sizeof (filepart));
4383 +
4384 +    /*
4385 +     * special case to handle when there is no filepart yet.
4386 +     * find the first subscribed newsgroup
4387 +     */
4388 +    if ((len = mutt_strlen (filepart)) == 0)
4389 +    {
4390 +      for (; l; l = l->next)
4391 +      {
4392 +       NNTP_DATA *data = (NNTP_DATA *)l->data;
4393 +
4394 +       if (data && data->subscribed)
4395 +       {
4396 +         strfcpy (filepart, data->group, sizeof (filepart));
4397 +         init++;
4398 +         l = l->next;
4399 +         break;
4400 +       }
4401 +      }
4402 +    }
4403 +
4404 +    for (; l; l = l->next)
4405 +    {
4406 +      NNTP_DATA *data = (NNTP_DATA *)l->data;
4407 +
4408 +      if (data && data->subscribed &&
4409 +         mutt_strncmp (data->group, filepart, len) == 0)
4410 +      {
4411 +       if (init)
4412 +       {
4413 +         for (i = 0; filepart[i] && data->group[i]; i++)
4414 +         {
4415 +           if (filepart[i] != data->group[i])
4416 +           {
4417 +             filepart[i] = 0;
4418 +             break;
4419 +           }
4420 +         }
4421 +         filepart[i] = 0;
4422 +       }
4423 +       else
4424 +       {
4425 +         strfcpy (filepart, data->group, sizeof (filepart));
4426 +         init = 1;
4427 +       }
4428 +      }
4429 +    }
4430 +
4431 +    strcpy (s, filepart);
4432 +
4433 +    return (init ? 0 : -1);
4434 +  }
4435 +#endif
4436 +
4437 +#ifdef USE_IMAP
4438    /* we can use '/' as a delimiter, imap_complete rewrites it */
4439    if (*s == '=' || *s == '+' || *s == '!')
4440    {
4441 diff -uNr mutt-1.4.orig/compose.c mutt-1.4/compose.c
4442 --- mutt-1.4.orig/compose.c     Sun Nov  3 21:42:52 2002
4443 +++ mutt-1.4/compose.c  Sun Nov  3 21:57:20 2002
4444 @@ -26,10 +26,15 @@
4445  #include "mailbox.h"
4446  #include "sort.h"
4447  #include "charset.h"
4448 +#include "mx.h"
4449  
4450  #ifdef MIXMASTER
4451  #include "remailer.h"
4452  #endif
4453 +  
4454 +#ifdef USE_NNTP
4455 +#include "nntp.h"
4456 +#endif
4457  
4458  #include <errno.h>
4459  #include <string.h>
4460 @@ -63,12 +68,18 @@
4461    HDR_PGPSIGINFO,
4462  #endif
4463    
4464 +#ifdef USE_NNTP
4465 +  HDR_NEWSGROUPS,
4466 +  HDR_FOLLOWUPTO,
4467 +  HDR_XCOMMENTTO,
4468 +#endif
4469 +
4470  
4471    HDR_ATTACH  = (HDR_FCC + 5) /* where to start printing the attachments */
4472  };
4473  
4474 -#define HDR_XOFFSET 10
4475 -#define TITLE_FMT "%10s" /* Used for Prompts, which are ASCII */
4476 +#define HDR_XOFFSET 14
4477 +#define TITLE_FMT "%14s" /* Used for Prompts, which are ASCII */
4478  #define W (COLS - HDR_XOFFSET)
4479  
4480  static char *Prompts[] =
4481 @@ -80,6 +91,15 @@
4482    "Subject: ",
4483    "Reply-To: ",
4484    "Fcc: "
4485 +#ifdef HAVE_PGP
4486 +  ,""
4487 +  ,""
4488 +#endif
4489 +#ifdef USE_NNTP
4490 +  ,"Newsgroups: "
4491 +  ,"Followup-To: "
4492 +  ,"X-Comment-To: "
4493 +#endif
4494  };
4495  
4496  static struct mapping_t ComposeHelp[] = {
4497 @@ -94,6 +114,19 @@
4498    { NULL }
4499  };
4500  
4501 +#ifdef USE_NNTP
4502 +static struct mapping_t ComposeNewsHelp[] = {
4503 +  { N_("Send"),    OP_COMPOSE_SEND_MESSAGE },
4504 +  { N_("Abort"),   OP_EXIT },
4505 +  { "Newsgroups",  OP_COMPOSE_EDIT_NEWSGROUPS },
4506 +  { "Subj",        OP_COMPOSE_EDIT_SUBJECT },
4507 +  { N_("Attach file"),  OP_COMPOSE_ATTACH_FILE },
4508 +  { N_("Descrip"), OP_COMPOSE_EDIT_DESCRIPTION },
4509 +  { N_("Help"),    OP_HELP },
4510 +  { NULL }
4511 +};
4512 +#endif
4513 +
4514  static void snd_entry (char *b, size_t blen, MUTTMENU *menu, int num)
4515  {
4516      mutt_FormatString (b, blen, NONULL (AttachFormat), mutt_attach_fmt,
4517 @@ -108,7 +141,7 @@
4518  
4519  static void redraw_pgp_lines (int pgp)
4520  {
4521 -  mvaddstr (HDR_PGP, 0,     "     PGP: ");
4522 +  mvaddstr (HDR_PGP, 0,     "         PGP: ");
4523    if ((pgp & (PGPENCRYPT | PGPSIGN)) == (PGPENCRYPT | PGPSIGN))
4524      addstr (_("Sign, Encrypt"));
4525    else if (pgp & PGPENCRYPT)
4526 @@ -122,7 +155,7 @@
4527    move (HDR_PGPSIGINFO, 0);
4528    clrtoeol ();
4529    if (pgp & PGPSIGN)
4530 -    printw ("%s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("<default>"));
4531 +    printw ("    %s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("<default>"));
4532  }
4533  
4534  static int pgp_send_menu (int bits, int *redraw)
4535 @@ -258,9 +291,28 @@
4536  static void draw_envelope (HEADER *msg, char *fcc)
4537  {
4538    draw_envelope_addr (HDR_FROM, msg->env->from);
4539 +#ifdef USE_NNTP
4540 +  if (!option (OPTNEWSSEND))
4541 +  {
4542 +#endif
4543    draw_envelope_addr (HDR_TO, msg->env->to);
4544    draw_envelope_addr (HDR_CC, msg->env->cc);
4545    draw_envelope_addr (HDR_BCC, msg->env->bcc);
4546 +#ifdef USE_NNTP
4547 +  }
4548 +  else
4549 +  {
4550 +    mvprintw (HDR_TO, 0, TITLE_FMT , Prompts[HDR_NEWSGROUPS - 1]);
4551 +    mutt_paddstr (W, NONULL (msg->env->newsgroups));
4552 +    mvprintw (HDR_CC, 0, TITLE_FMT , Prompts[HDR_FOLLOWUPTO - 1]);
4553 +    mutt_paddstr (W, NONULL (msg->env->followup_to));
4554 +    if (option (OPTXCOMMENTTO))
4555 +    {
4556 +      mvprintw (HDR_BCC, 0, TITLE_FMT , Prompts[HDR_XCOMMENTTO - 1]);
4557 +      mutt_paddstr (W, NONULL (msg->env->x_comment_to));
4558 +    }
4559 +  }
4560 +#endif
4561    mvprintw (HDR_SUBJECT, 0, TITLE_FMT, Prompts[HDR_SUBJECT - 1]);
4562    mutt_paddstr (W, NONULL (msg->env->subject));
4563    draw_envelope_addr (HDR_REPLYTO, msg->env->reply_to);
4564 @@ -506,6 +558,12 @@
4565    /* Sort, SortAux could be changed in mutt_index_menu() */
4566    int oldSort, oldSortAux;
4567    struct stat st;
4568 +#ifdef USE_NNTP
4569 +  int news = 0;               /* is it a news article ? */
4570 +
4571 +  if (option (OPTNEWSSEND))
4572 +    news++;
4573 +#endif
4574  
4575    mutt_attach_init (msg->content);
4576    idx = mutt_gen_attach_list (msg->content, -1, idx, &idxlen, &idxmax, 0, 1);
4577 @@ -517,10 +575,18 @@
4578    menu->make_entry = snd_entry;
4579    menu->tag = mutt_tag_attach;
4580    menu->data = idx;
4581 +#ifdef USE_NNTP
4582 +  if (news)
4583 +  menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_COMPOSE, ComposeNewsHelp);
4584 +  else
4585 +#endif
4586    menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_COMPOSE, ComposeHelp);
4587    
4588    while (loop)
4589    {
4590 +#ifdef USE_NNTP
4591 +    unset_option (OPTNEWS);    /* for any case */
4592 +#endif
4593      switch (op = mutt_menuLoop (menu))
4594      {
4595        case OP_REDRAW:
4596 @@ -532,14 +598,81 @@
4597         menu->redraw = edit_address_list (HDR_FROM, &msg->env->from);
4598         break;
4599        case OP_COMPOSE_EDIT_TO:
4600 -       menu->redraw = edit_address_list (HDR_TO, &msg->env->to);
4601 +#ifdef USE_NNTP
4602 +       if (!news)
4603 +#endif
4604 +         menu->redraw = edit_address_list (HDR_TO, &msg->env->to);
4605         break;
4606        case OP_COMPOSE_EDIT_BCC:
4607 -       menu->redraw = edit_address_list (HDR_BCC, &msg->env->bcc);
4608 +#ifdef USE_NNTP
4609 +       if (!news)
4610 +#endif
4611 +         menu->redraw = edit_address_list (HDR_BCC, &msg->env->bcc);
4612         break;
4613        case OP_COMPOSE_EDIT_CC:
4614 -       menu->redraw = edit_address_list (HDR_CC, &msg->env->cc);
4615 +#ifdef USE_NNTP
4616 +       if (!news)
4617 +#endif
4618 +         menu->redraw = edit_address_list (HDR_CC, &msg->env->cc);
4619 +       break;
4620 +#ifdef USE_NNTP
4621 +      case OP_COMPOSE_EDIT_NEWSGROUPS:
4622 +       if (news)
4623 +       {
4624 +         if (msg->env->newsgroups)
4625 +           strfcpy (buf, msg->env->newsgroups, sizeof (buf));
4626 +         else
4627 +           buf[0] = 0;
4628 +         if (mutt_get_field ("Newsgroups: ", buf, sizeof (buf), 0) == 0 && buf[0])
4629 +         {
4630 +           safe_free ((void **) &msg->env->newsgroups);
4631 +           mutt_remove_trailing_ws (buf);
4632 +           msg->env->newsgroups = safe_strdup (mutt_skip_whitespace (buf));
4633 +           move (HDR_TO, HDR_XOFFSET);
4634 +           clrtoeol ();
4635 +           if (msg->env->newsgroups)
4636 +             printw ("%-*.*s", W, W, msg->env->newsgroups);
4637 +         }
4638 +       }
4639 +       break;
4640 +
4641 +      case OP_COMPOSE_EDIT_FOLLOWUP_TO:
4642 +       if (news)
4643 +       {
4644 +         buf[0] = 0;
4645 +         if (msg->env->followup_to)
4646 +           strfcpy (buf, msg->env->followup_to, sizeof (buf));
4647 +         if (mutt_get_field ("Followup-To: ", buf, sizeof (buf), 0) == 0 && buf[0])
4648 +         {
4649 +           safe_free ((void **) &msg->env->followup_to);
4650 +           mutt_remove_trailing_ws (buf);
4651 +           msg->env->followup_to = safe_strdup (mutt_skip_whitespace (buf));
4652 +           move (HDR_CC, HDR_XOFFSET);
4653 +           clrtoeol();
4654 +           if (msg->env->followup_to)
4655 +             printw ("%-*.*s", W, W, msg->env->followup_to);
4656 +         }
4657 +       }
4658         break;
4659 +
4660 +      case OP_COMPOSE_EDIT_X_COMMENT_TO:
4661 +       if (news && option (OPTXCOMMENTTO))
4662 +       {
4663 +         buf[0] = 0;
4664 +         if (msg->env->x_comment_to)
4665 +           strfcpy (buf, msg->env->x_comment_to, sizeof (buf));
4666 +         if (mutt_get_field ("X-Comment-To: ", buf, sizeof (buf), 0) == 0 && buf[0])
4667 +         {
4668 +           safe_free ((void **) &msg->env->x_comment_to);
4669 +           msg->env->x_comment_to = safe_strdup (buf);
4670 +           move (HDR_BCC, HDR_XOFFSET);
4671 +           clrtoeol();
4672 +           if (msg->env->x_comment_to)
4673 +             printw ("%-*.*s", W, W, msg->env->x_comment_to);
4674 +         }
4675 +       }
4676 +       break;
4677 +#endif
4678        case OP_COMPOSE_EDIT_SUBJECT:
4679         if (msg->env->subject)
4680           strfcpy (buf, msg->env->subject, sizeof (buf));
4681 @@ -695,6 +828,9 @@
4682         break;
4683  
4684        case OP_COMPOSE_ATTACH_MESSAGE:
4685 +#ifdef USE_NNTP
4686 +      case OP_COMPOSE_ATTACH_NEWS_MESSAGE:
4687 +#endif
4688         {
4689           char *prompt;
4690           HEADER *h;
4691 @@ -702,7 +838,22 @@
4692           fname[0] = 0;
4693           prompt = _("Open mailbox to attach message from");
4694  
4695 +#ifdef USE_NNTP
4696 +         unset_option (OPTNEWS);
4697 +         if (op == OP_COMPOSE_ATTACH_NEWS_MESSAGE)
4698 +         {
4699 +           if (!(CurrentNewsSrv = mutt_select_newsserver (NewsServer)))
4700 +             break;
4701 +
4702 +           prompt = _("Open newsgroup to attach message from");
4703 +           set_option (OPTNEWS);
4704 +         }
4705 +#endif
4706 +
4707           if (Context)
4708 +#ifdef USE_NNTP
4709 +         if ((op == OP_COMPOSE_ATTACH_MESSAGE) ^ (Context->magic == M_NNTP))
4710 +#endif
4711           {
4712             strfcpy (fname, NONULL (Context->path), sizeof (fname));
4713             mutt_pretty_mailbox (fname);
4714 @@ -711,6 +862,11 @@
4715           if (mutt_enter_fname (prompt, fname, sizeof (fname), &menu->redraw, 1) == -1 || !fname[0])
4716             break;
4717  
4718 +#ifdef USE_NNTP
4719 +         if (option (OPTNEWS))
4720 +           nntp_expand_path (fname, sizeof (fname), &CurrentNewsSrv->conn->account);
4721 +         else
4722 +#endif
4723           mutt_expand_path (fname, sizeof (fname));
4724  #ifdef USE_IMAP
4725            if (!mx_is_imap (fname))
4726 @@ -718,6 +874,9 @@
4727  #ifdef USE_POP
4728            if (!mx_is_pop (fname))
4729  #endif
4730 +#ifdef USE_NNTP
4731 +          if (!mx_is_nntp (fname) && !option (OPTNEWS))
4732 +#endif
4733           /* check to make sure the file exists and is readable */
4734           if (access (fname, R_OK) == -1)
4735           {
4736 diff -uNr mutt-1.4.orig/config.guess mutt-1.4/config.guess
4737 --- mutt-1.4.orig/config.guess  Wed Jan 16 21:44:49 2002
4738 +++ mutt-1.4/config.guess       Sun Nov  3 21:57:29 2002
4739 @@ -3,7 +3,7 @@
4740  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4741  #   2000, 2001, 2002 Free Software Foundation, Inc.
4742  
4743 -timestamp='2002-01-10'
4744 +timestamp='2002-07-23'
4745  
4746  # This file is free software; you can redistribute it and/or modify it
4747  # under the terms of the GNU General Public License as published by
4748 @@ -88,30 +88,40 @@
4749    exit 1
4750  fi
4751  
4752 +trap 'exit 1' 1 2 15
4753  
4754 -dummy=dummy-$$
4755 -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
4756 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
4757 +# compiler to aid in system detection is discouraged as it requires
4758 +# temporary files to be created and, as you can see below, it is a
4759 +# headache to deal with in a portable fashion.
4760  
4761 -# CC_FOR_BUILD -- compiler used by this script.
4762  # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
4763  # use `HOST_CC' if defined, but it is deprecated.
4764  
4765 -set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
4766 - ,,)    echo "int dummy(){}" > $dummy.c ;
4767 -       for c in cc gcc c89 ; do
4768 -         ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
4769 -         if test $? = 0 ; then
4770 +# This shell variable is my proudest work .. or something. --bje
4771 +
4772 +set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
4773 +(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
4774 +   || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
4775 +dummy=$tmpdir/dummy ;
4776 +files="$dummy.c $dummy.o $dummy.rel $dummy" ;
4777 +trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
4778 +case $CC_FOR_BUILD,$HOST_CC,$CC in
4779 + ,,)    echo "int x;" > $dummy.c ;
4780 +       for c in cc gcc c89 c99 ; do
4781 +         if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
4782              CC_FOR_BUILD="$c"; break ;
4783           fi ;
4784         done ;
4785 -       rm -f $dummy.c $dummy.o $dummy.rel ;
4786 +       rm -f $files ;
4787         if test x"$CC_FOR_BUILD" = x ; then
4788           CC_FOR_BUILD=no_compiler_found ;
4789         fi
4790         ;;
4791   ,,*)   CC_FOR_BUILD=$CC ;;
4792   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
4793 -esac'
4794 +esac ;
4795 +unset files'
4796  
4797  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
4798  # (ghazi@noc.rutgers.edu 1994-08-24)
4799 @@ -138,9 +148,11 @@
4800         #
4801         # Note: NetBSD doesn't particularly care about the vendor
4802         # portion of the name.  We always set it to "unknown".
4803 -       UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
4804 -           UNAME_MACHINE_ARCH=unknown
4805 +       sysctl="sysctl -n hw.machine_arch"
4806 +       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
4807 +           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
4808         case "${UNAME_MACHINE_ARCH}" in
4809 +           armeb) machine=armeb-unknown ;;
4810             arm*) machine=arm-unknown ;;
4811             sh3el) machine=shl-unknown ;;
4812             sh3eb) machine=sh-unknown ;;
4813 @@ -219,6 +231,7 @@
4814         # A Tn.n version is a released field test version.
4815         # A Xn.n version is an unreleased experimental baselevel.
4816         # 1.2 uses "1.2" for uname -r.
4817 +       eval $set_cc_for_build
4818         cat <<EOF >$dummy.s
4819         .data
4820  \$Lformat:
4821 @@ -244,10 +257,9 @@
4822         jsr \$26,exit
4823         .end main
4824  EOF
4825 -       eval $set_cc_for_build
4826         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
4827         if test "$?" = 0 ; then
4828 -               case `./$dummy` in
4829 +               case `$dummy` in
4830                         0-0)
4831                                 UNAME_MACHINE="alpha"
4832                                 ;;
4833 @@ -269,9 +281,12 @@
4834                         2-1307)
4835                                 UNAME_MACHINE="alphaev68"
4836                                 ;;
4837 +                       3-1307)
4838 +                               UNAME_MACHINE="alphaev7"
4839 +                               ;;
4840                 esac
4841         fi
4842 -       rm -f $dummy.s $dummy
4843 +       rm -f $dummy.s $dummy && rmdir $tmpdir
4844         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4845         exit 0 ;;
4846      Alpha\ *:Windows_NT*:*)
4847 @@ -312,6 +327,10 @@
4848      NILE*:*:*:dcosx)
4849         echo pyramid-pyramid-svr4
4850         exit 0 ;;
4851 +    DRS?6000:UNIX_SV:4.2*:7*)
4852 +       case `/usr/bin/uname -p` in
4853 +           sparc) echo sparc-icl-nx7 && exit 0 ;;
4854 +       esac ;;
4855      sun4H:SunOS:5.*:*)
4856         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
4857         exit 0 ;;
4858 @@ -340,7 +359,7 @@
4859         echo m68k-sun-sunos${UNAME_RELEASE}
4860         exit 0 ;;
4861      sun*:*:4.2BSD:*)
4862 -       UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4863 +       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4864         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
4865         case "`/bin/arch`" in
4866             sun3)
4867 @@ -419,14 +438,17 @@
4868         }
4869  EOF
4870         $CC_FOR_BUILD $dummy.c -o $dummy \
4871 -         && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
4872 -         && rm -f $dummy.c $dummy && exit 0
4873 -       rm -f $dummy.c $dummy
4874 +         && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
4875 +         && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
4876 +       rm -f $dummy.c $dummy && rmdir $tmpdir
4877         echo mips-mips-riscos${UNAME_RELEASE}
4878         exit 0 ;;
4879      Motorola:PowerMAX_OS:*:*)
4880         echo powerpc-motorola-powermax
4881         exit 0 ;;
4882 +    Night_Hawk:*:*:PowerMAX_OS)
4883 +       echo powerpc-harris-powermax
4884 +       exit 0 ;;
4885      Night_Hawk:Power_UNIX:*:*)
4886         echo powerpc-harris-powerunix
4887         exit 0 ;;
4888 @@ -499,8 +521,8 @@
4889                         exit(0);
4890                         }
4891  EOF
4892 -               $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
4893 -               rm -f $dummy.c $dummy
4894 +               $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
4895 +               rm -f $dummy.c $dummy && rmdir $tmpdir
4896                 echo rs6000-ibm-aix3.2.5
4897         elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
4898                 echo rs6000-ibm-aix3.2.4
4899 @@ -509,7 +531,7 @@
4900         fi
4901         exit 0 ;;
4902      *:AIX:*:[45])
4903 -       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
4904 +       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
4905         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
4906                 IBM_ARCH=rs6000
4907         else
4908 @@ -598,9 +620,9 @@
4909                    exit (0);
4910                }
4911  EOF
4912 -                   (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
4913 +                   (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
4914                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
4915 -                   rm -f $dummy.c $dummy
4916 +                   rm -f $dummy.c $dummy && rmdir $tmpdir
4917                 fi ;;
4918         esac
4919         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
4920 @@ -636,8 +658,8 @@
4921           exit (0);
4922         }
4923  EOF
4924 -       $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
4925 -       rm -f $dummy.c $dummy
4926 +       $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
4927 +       rm -f $dummy.c $dummy && rmdir $tmpdir
4928         echo unknown-hitachi-hiuxwe2
4929         exit 0 ;;
4930      9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
4931 @@ -683,9 +705,6 @@
4932      C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
4933         echo c4-convex-bsd
4934          exit 0 ;;
4935 -    CRAY*X-MP:*:*:*)
4936 -       echo xmp-cray-unicos
4937 -        exit 0 ;;
4938      CRAY*Y-MP:*:*:*)
4939         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4940         exit 0 ;;
4941 @@ -707,9 +726,6 @@
4942      CRAY*SV1:*:*:*)
4943         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
4944         exit 0 ;;
4945 -    CRAY-2:*:*:*)
4946 -       echo cray2-cray-unicos
4947 -        exit 0 ;;
4948      F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
4949         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
4950          FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
4951 @@ -726,7 +742,19 @@
4952         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
4953         exit 0 ;;
4954      *:FreeBSD:*:*)
4955 -       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
4956 +       # Determine whether the default compiler uses glibc.
4957 +       eval $set_cc_for_build
4958 +       sed 's/^        //' << EOF >$dummy.c
4959 +       #include <features.h>
4960 +       #if __GLIBC__ >= 2
4961 +       LIBC=gnu
4962 +       #else
4963 +       LIBC=
4964 +       #endif
4965 +EOF
4966 +       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
4967 +       rm -f $dummy.c && rmdir $tmpdir
4968 +       echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
4969         exit 0 ;;
4970      i*:CYGWIN*:*)
4971         echo ${UNAME_MACHINE}-pc-cygwin
4972 @@ -765,7 +793,7 @@
4973         echo ${UNAME_MACHINE}-unknown-linux-gnu
4974         exit 0 ;;
4975      ia64:Linux:*:*)
4976 -       echo ${UNAME_MACHINE}-unknown-linux
4977 +       echo ${UNAME_MACHINE}-unknown-linux-gnu
4978         exit 0 ;;
4979      m68*:Linux:*:*)
4980         echo ${UNAME_MACHINE}-unknown-linux-gnu
4981 @@ -776,18 +804,18 @@
4982         #undef CPU
4983         #undef mips
4984         #undef mipsel
4985 -       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
4986 -       CPU=mipsel 
4987 +       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
4988 +       CPU=mipsel
4989         #else
4990 -       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 
4991 +       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
4992         CPU=mips
4993         #else
4994         CPU=
4995         #endif
4996 -       #endif 
4997 +       #endif
4998  EOF
4999         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
5000 -       rm -f $dummy.c
5001 +       rm -f $dummy.c && rmdir $tmpdir
5002         test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
5003         ;;
5004      ppc:Linux:*:*)
5005 @@ -837,7 +865,8 @@
5006         # The BFD linker knows what the default object file format is, so
5007         # first see if it will tell us. cd to the root directory to prevent
5008         # problems with other programs or directories called `ld' in the path.
5009 -       ld_supported_targets=`cd /; ld --help 2>&1 \
5010 +       # Set LC_ALL=C to ensure ld outputs messages in English.
5011 +       ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
5012                          | sed -ne '/supported targets:/!d
5013                                     s/[         ][      ]*/ /g
5014                                     s/.*supported targets: *//
5015 @@ -849,7 +878,7 @@
5016                 ;;
5017           a.out-i386-linux)
5018                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
5019 -               exit 0 ;;               
5020 +               exit 0 ;;
5021           coff-i386)
5022                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
5023                 exit 0 ;;
5024 @@ -874,11 +903,15 @@
5025         LIBC=gnulibc1
5026         # endif
5027         #else
5028 +       #ifdef __INTEL_COMPILER
5029 +       LIBC=gnu
5030 +       #else
5031         LIBC=gnuaout
5032         #endif
5033 +       #endif
5034  EOF
5035         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
5036 -       rm -f $dummy.c
5037 +       rm -f $dummy.c && rmdir $tmpdir
5038         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
5039         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
5040         ;;
5041 @@ -917,13 +950,13 @@
5042                 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
5043                 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
5044         elif /bin/uname -X 2>/dev/null >/dev/null ; then
5045 -               UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
5046 -               (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
5047 -               (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
5048 +               UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
5049 +               (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
5050 +               (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
5051                         && UNAME_MACHINE=i586
5052 -               (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
5053 +               (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
5054                         && UNAME_MACHINE=i686
5055 -               (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
5056 +               (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
5057                         && UNAME_MACHINE=i686
5058                 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
5059         else
5060 @@ -958,7 +991,7 @@
5061         exit 0 ;;
5062      M68*:*:R3V[567]*:*)
5063         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
5064 -    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
5065 +    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
5066         OS_REL=''
5067         test -r /etc/.relid \
5068         && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
5069 @@ -1059,10 +1092,12 @@
5070         echo `uname -p`-apple-darwin${UNAME_RELEASE}
5071         exit 0 ;;
5072      *:procnto*:*:* | *:QNX:[0123456789]*:*)
5073 -       if test "${UNAME_MACHINE}" = "x86pc"; then
5074 +       UNAME_PROCESSOR=`uname -p`
5075 +       if test "$UNAME_PROCESSOR" = "x86"; then
5076 +               UNAME_PROCESSOR=i386
5077                 UNAME_MACHINE=pc
5078         fi
5079 -       echo `uname -p`-${UNAME_MACHINE}-nto-qnx
5080 +       echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
5081         exit 0 ;;
5082      *:QNX:*:4*)
5083         echo i386-pc-qnx
5084 @@ -1239,8 +1274,8 @@
5085  }
5086  EOF
5087  
5088 -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
5089 -rm -f $dummy.c $dummy
5090 +$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
5091 +rm -f $dummy.c $dummy && rmdir $tmpdir
5092  
5093  # Apollos put the system type in the environment.
5094  
5095 diff -uNr mutt-1.4.orig/config.h.in mutt-1.4/config.h.in
5096 --- mutt-1.4.orig/config.h.in   Sun Nov  3 21:42:51 2002
5097 +++ mutt-1.4/config.h.in        Sun Nov  3 21:57:45 2002
5098 @@ -1,57 +1,4 @@
5099 -/* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
5100 -
5101 -/* Define if using alloca.c.  */
5102 -#undef C_ALLOCA
5103 -
5104 -/* Define to empty if the keyword does not work.  */
5105 -#undef const
5106 -
5107 -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
5108 -   This function is required for alloca.c support on those systems.  */
5109 -#undef CRAY_STACKSEG_END
5110 -
5111 -/* Define if you have alloca, as a function or macro.  */
5112 -#undef HAVE_ALLOCA
5113 -
5114 -/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
5115 -#undef HAVE_ALLOCA_H
5116 -
5117 -/* Define if you have a working `mmap' system call.  */
5118 -#undef HAVE_MMAP
5119 -
5120 -/* Define as __inline if that's what the C compiler calls it.  */
5121 -#undef inline
5122 -
5123 -/* Define to `long' if <sys/types.h> doesn't define.  */
5124 -#undef off_t
5125 -
5126 -/* Define to `int' if <sys/types.h> doesn't define.  */
5127 -#undef pid_t
5128 -
5129 -/* Define as the return type of signal handlers (int or void).  */
5130 -#undef RETSIGTYPE
5131 -
5132 -/* Define to `unsigned' if <sys/types.h> doesn't define.  */
5133 -#undef size_t
5134 -
5135 -/* If using the C implementation of alloca, define if you know the
5136 -   direction of stack growth for your system; otherwise it will be
5137 -   automatically deduced at run-time.
5138 - STACK_DIRECTION > 0 => grows toward higher addresses
5139 - STACK_DIRECTION < 0 => grows toward lower addresses
5140 - STACK_DIRECTION = 0 => direction of growth unknown
5141 - */
5142 -#undef STACK_DIRECTION
5143 -
5144 -/* Define if you have the ANSI C header files.  */
5145 -#undef STDC_HEADERS
5146 -
5147 -/* Define if `sys_siglist' is declared by <signal.h>.  */
5148 -#undef SYS_SIGLIST_DECLARED
5149 -
5150 -/* Define if your processor stores words with the most significant
5151 -   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
5152 -#undef WORDS_BIGENDIAN
5153 +/* config.h.in.  Generated from configure.in by autoheader.  */
5154  
5155  /*
5156   * Define if you have problems with mutt not detecting new/old mailboxes
5157 @@ -68,6 +15,9 @@
5158   */
5159  #undef HOMESPOOL
5160  
5161 +/* Compiling with newsreading support with NNTP */
5162 +#undef USE_NNTP
5163 +
5164  /* program to use for shell commands */
5165  #define EXECSHELL "/bin/sh"
5166  
5167 @@ -78,418 +28,493 @@
5168  /* Define to `int' if <signal.h> doesn't define.  */
5169  #undef sig_atomic_t
5170  
5171 -/* The number of bytes in a int.  */
5172 -#undef SIZEOF_INT
5173  
5174 -/* The number of bytes in a long.  */
5175 -#undef SIZEOF_LONG
5176 +/* Define to enable the "buffy_size" feature. */
5177 +#undef BUFFY_SIZE
5178  
5179 -/* Define if you have the RAND_egd function.  */
5180 -#undef HAVE_RAND_EGD
5181 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
5182 +   systems. This function is required for `alloca.c' support on those systems.
5183 +   */
5184 +#undef CRAY_STACKSEG_END
5185  
5186 -/* Define if you have the RAND_status function.  */
5187 -#undef HAVE_RAND_STATUS
5188 +/* Define to 1 if using `alloca.c'. */
5189 +#undef C_ALLOCA
5190  
5191 -/* Define if you have the __argz_count function.  */
5192 -#undef HAVE___ARGZ_COUNT
5193 +/* Define to enable debugging info. */
5194 +#undef DEBUG
5195  
5196 -/* Define if you have the __argz_next function.  */
5197 -#undef HAVE___ARGZ_NEXT
5198 +/* Define if you want to use an external dotlocking program. */
5199 +#undef DL_STANDALONE
5200  
5201 -/* Define if you have the __argz_stringify function.  */
5202 -#undef HAVE___ARGZ_STRINGIFY
5203 +/* Define your domain name. */
5204 +#undef DOMAIN
5205 +
5206 +/* Define to 1 if translation of program messages to the user's native
5207 +   language is requested. */
5208 +#undef ENABLE_NLS
5209 +
5210 +/* Define to 1 if you have `alloca', as a function or macro. */
5211 +#undef HAVE_ALLOCA
5212 +
5213 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
5214 +   */
5215 +#undef HAVE_ALLOCA_H
5216 +
5217 +/* Define to 1 if you have the <argz.h> header file. */
5218 +#undef HAVE_ARGZ_H
5219  
5220 -/* Define if you have the bind_textdomain_codeset function.  */
5221 +/* Define to 1 if you have the `bind_textdomain_codeset' function. */
5222  #undef HAVE_BIND_TEXTDOMAIN_CODESET
5223  
5224 -/* Define if you have the dcgettext function.  */
5225 +/* Define if your curses library supports color. */
5226 +#undef HAVE_COLOR
5227 +
5228 +/* Define to 1 if you have the `dcgettext' function. */
5229  #undef HAVE_DCGETTEXT
5230  
5231 -/* Define if you have the fchdir function.  */
5232 +/* Define to 1 if you have the `fchdir' function. */
5233  #undef HAVE_FCHDIR
5234  
5235 -/* Define if you have the feof_unlocked function.  */
5236 +/* Define to 1 if you have the `feof_unlocked' function. */
5237  #undef HAVE_FEOF_UNLOCKED
5238  
5239 -/* Define if you have the fgetpos function.  */
5240 +/* Define to 1 if you have the `fgetpos' function. */
5241  #undef HAVE_FGETPOS
5242  
5243 -/* Define if you have the fgets_unlocked function.  */
5244 +/* Define to 1 if you have the `fgets_unlocked' function. */
5245  #undef HAVE_FGETS_UNLOCKED
5246  
5247 -/* Define if you have the ftruncate function.  */
5248 +/* Define to 1 if you have the `ftruncate' function. */
5249  #undef HAVE_FTRUNCATE
5250  
5251 -/* Define if you have the getaddrinfo function.  */
5252 +/* Define to 1 if you have the `getaddrinfo' function. */
5253  #undef HAVE_GETADDRINFO
5254  
5255 -/* Define if you have the getcwd function.  */
5256 +/* Define to 1 if you have the `getcwd' function. */
5257  #undef HAVE_GETCWD
5258  
5259 -/* Define if you have the getegid function.  */
5260 +/* Define to 1 if you have the `getegid' function. */
5261  #undef HAVE_GETEGID
5262  
5263 -/* Define if you have the geteuid function.  */
5264 +/* Define to 1 if you have the `geteuid' function. */
5265  #undef HAVE_GETEUID
5266  
5267 -/* Define if you have the getgid function.  */
5268 +/* Define to 1 if you have the `getgid' function. */
5269  #undef HAVE_GETGID
5270  
5271 -/* Define if you have the getpagesize function.  */
5272 +/* Define to 1 if you have the <getopt.h> header file. */
5273 +#undef HAVE_GETOPT_H
5274 +
5275 +/* Define to 1 if you have the `getpagesize' function. */
5276  #undef HAVE_GETPAGESIZE
5277  
5278 -/* Define if you have the getsid function.  */
5279 +/* Define to 1 if you have the `getsid' function. */
5280  #undef HAVE_GETSID
5281  
5282 -/* Define if you have the getuid function.  */
5283 +/* Define if the GNU gettext() function is already present or preinstalled. */
5284 +#undef HAVE_GETTEXT
5285 +
5286 +/* Define to 1 if you have the `getuid' function. */
5287  #undef HAVE_GETUID
5288  
5289 -/* Define if you have the iswalnum function.  */
5290 +/* Define if your GSSAPI implementation is Heimdal */
5291 +#undef HAVE_HEIMDAL
5292 +
5293 +/* Define if you have the iconv() function. */
5294 +#undef HAVE_ICONV
5295 +
5296 +/* Define to 1 if you have the <iconv.h> header file. */
5297 +#undef HAVE_ICONV_H
5298 +
5299 +/* Define if <iconv.h> defines iconv_t. */
5300 +#undef HAVE_ICONV_T_DEF
5301 +
5302 +/* Define to 1 if you have the <inttypes.h> header file. */
5303 +#undef HAVE_INTTYPES_H
5304 +
5305 +/* Define to 1 if you have the <ioctl.h> header file. */
5306 +#undef HAVE_IOCTL_H
5307 +
5308 +/* Define to 1 if you have the `iswalnum' function. */
5309  #undef HAVE_ISWALNUM
5310  
5311 -/* Define if you have the iswalpha function.  */
5312 +/* Define to 1 if you have the `iswalpha' function. */
5313  #undef HAVE_ISWALPHA
5314  
5315 -/* Define if you have the iswcntrl function.  */
5316 +/* Define to 1 if you have the `iswcntrl' function. */
5317  #undef HAVE_ISWCNTRL
5318  
5319 -/* Define if you have the iswdigit function.  */
5320 +/* Define to 1 if you have the `iswdigit' function. */
5321  #undef HAVE_ISWDIGIT
5322  
5323 -/* Define if you have the iswgraph function.  */
5324 +/* Define to 1 if you have the `iswgraph' function. */
5325  #undef HAVE_ISWGRAPH
5326  
5327 -/* Define if you have the iswlower function.  */
5328 +/* Define to 1 if you have the `iswlower' function. */
5329  #undef HAVE_ISWLOWER
5330  
5331 -/* Define if you have the iswprint function.  */
5332 +/* Define to 1 if you have the `iswprint' function. */
5333  #undef HAVE_ISWPRINT
5334  
5335 -/* Define if you have the iswpunct function.  */
5336 +/* Define to 1 if you have the `iswpunct' function. */
5337  #undef HAVE_ISWPUNCT
5338  
5339 -/* Define if you have the iswspace function.  */
5340 +/* Define to 1 if you have the `iswspace' function. */
5341  #undef HAVE_ISWSPACE
5342  
5343 -/* Define if you have the iswupper function.  */
5344 +/* Define to 1 if you have the `iswupper' function. */
5345  #undef HAVE_ISWUPPER
5346  
5347 -/* Define if you have the iswxdigit function.  */
5348 +/* Define to 1 if you have the `iswxdigit' function. */
5349  #undef HAVE_ISWXDIGIT
5350  
5351 -/* Define if you have the memmove function.  */
5352 -#undef HAVE_MEMMOVE
5353 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
5354 +#undef HAVE_LANGINFO_CODESET
5355  
5356 -/* Define if you have the mempcpy function.  */
5357 -#undef HAVE_MEMPCPY
5358 +/* Define if you have <langinfo.h> and nl_langinfo(YESEXPR). */
5359 +#undef HAVE_LANGINFO_YESEXPR
5360  
5361 -/* Define if you have the munmap function.  */
5362 -#undef HAVE_MUNMAP
5363 +/* Define if your <locale.h> file defines LC_MESSAGES. */
5364 +#undef HAVE_LC_MESSAGES
5365  
5366 -/* Define if you have the putenv function.  */
5367 -#undef HAVE_PUTENV
5368 +/* Define to 1 if you have the `crypto' library (-lcrypto). */
5369 +#undef HAVE_LIBCRYPTO
5370  
5371 -/* Define if you have the regcomp function.  */
5372 -#undef HAVE_REGCOMP
5373 +/* Define to 1 if you have the `intl' library (-lintl). */
5374 +#undef HAVE_LIBINTL
5375  
5376 -/* Define if you have the setegid function.  */
5377 -#undef HAVE_SETEGID
5378 +/* Define to 1 if you have the `nsl' library (-lnsl). */
5379 +#undef HAVE_LIBNSL
5380  
5381 -/* Define if you have the setenv function.  */
5382 -#undef HAVE_SETENV
5383 +/* Define to 1 if you have the `sasl' library (-lsasl). */
5384 +#undef HAVE_LIBSASL
5385  
5386 -/* Define if you have the setlocale function.  */
5387 -#undef HAVE_SETLOCALE
5388 +/* Define to 1 if you have the `socket' library (-lsocket). */
5389 +#undef HAVE_LIBSOCKET
5390  
5391 -/* Define if you have the setrlimit function.  */
5392 -#undef HAVE_SETRLIMIT
5393 +/* Define to 1 if you have the `ssl' library (-lssl). */
5394 +#undef HAVE_LIBSSL
5395  
5396 -/* Define if you have the snprintf function.  */
5397 -#undef HAVE_SNPRINTF
5398 +/* Define to 1 if you have the `termlib' library (-ltermlib). */
5399 +#undef HAVE_LIBTERMLIB
5400  
5401 -/* Define if you have the srand48 function.  */
5402 -#undef HAVE_SRAND48
5403 +/* Define to 1 if you have the `x' library (-lx). */
5404 +#undef HAVE_LIBX
5405  
5406 -/* Define if you have the stpcpy function.  */
5407 -#undef HAVE_STPCPY
5408 +/* Define to 1 if you have the <limits.h> header file. */
5409 +#undef HAVE_LIMITS_H
5410  
5411 -/* Define if you have the strcasecmp function.  */
5412 -#undef HAVE_STRCASECMP
5413 +/* Define to 1 if you have the <locale.h> header file. */
5414 +#undef HAVE_LOCALE_H
5415  
5416 -/* Define if you have the strchr function.  */
5417 -#undef HAVE_STRCHR
5418 +/* Define to 1 if you have the <malloc.h> header file. */
5419 +#undef HAVE_MALLOC_H
5420  
5421 -/* Define if you have the strdup function.  */
5422 -#undef HAVE_STRDUP
5423 +/* Define to 1 if you have the `memmove' function. */
5424 +#undef HAVE_MEMMOVE
5425  
5426 -/* Define if you have the strerror function.  */
5427 -#undef HAVE_STRERROR
5428 +/* Define to 1 if you have the <memory.h> header file. */
5429 +#undef HAVE_MEMORY_H
5430  
5431 -/* Define if you have the strftime function.  */
5432 -#undef HAVE_STRFTIME
5433 +/* Define to 1 if you have the `mempcpy' function. */
5434 +#undef HAVE_MEMPCPY
5435  
5436 -/* Define if you have the strtoul function.  */
5437 -#undef HAVE_STRTOUL
5438 +/* Define to 1 if you have a working `mmap' system call. */
5439 +#undef HAVE_MMAP
5440  
5441 -/* Define if you have the towlower function.  */
5442 -#undef HAVE_TOWLOWER
5443 +/* Define to 1 if you have the `munmap' function. */
5444 +#undef HAVE_MUNMAP
5445  
5446 -/* Define if you have the towupper function.  */
5447 -#undef HAVE_TOWUPPER
5448 +/* Define to 1 if you have the <ncursesw/ncurses.h> header file. */
5449 +#undef HAVE_NCURSESW_NCURSES_H
5450  
5451 -/* Define if you have the tsearch function.  */
5452 -#undef HAVE_TSEARCH
5453 +/* Define to 1 if you have the <ncurses.h> header file. */
5454 +#undef HAVE_NCURSES_H
5455  
5456 -/* Define if you have the vsnprintf function.  */
5457 -#undef HAVE_VSNPRINTF
5458 +/* Define to 1 if you have the <nl_types.h> header file. */
5459 +#undef HAVE_NL_TYPES_H
5460  
5461 -/* Define if you have the <argz.h> header file.  */
5462 -#undef HAVE_ARGZ_H
5463 +/* Define if you want PGP support. */
5464 +#undef HAVE_PGP
5465  
5466 -/* Define if you have the <getopt.h> header file.  */
5467 -#undef HAVE_GETOPT_H
5468 +/* Define to 1 if you have the `putenv' function. */
5469 +#undef HAVE_PUTENV
5470  
5471 -/* Define if you have the <iconv.h> header file.  */
5472 -#undef HAVE_ICONV_H
5473 +/* Define to 1 if you have the `RAND_egd' function. */
5474 +#undef HAVE_RAND_EGD
5475  
5476 -/* Define if you have the <inttypes.h> header file.  */
5477 -#undef HAVE_INTTYPES_H
5478 +/* Define to 1 if you have the `RAND_status' function. */
5479 +#undef HAVE_RAND_STATUS
5480  
5481 -/* Define if you have the <ioctl.h> header file.  */
5482 -#undef HAVE_IOCTL_H
5483 +/* Define to 1 if you have the `regcomp' function. */
5484 +#undef HAVE_REGCOMP
5485  
5486 -/* Define if you have the <limits.h> header file.  */
5487 -#undef HAVE_LIMITS_H
5488 +/* Define to 1 if you have the `setegid' function. */
5489 +#undef HAVE_SETEGID
5490  
5491 -/* Define if you have the <locale.h> header file.  */
5492 -#undef HAVE_LOCALE_H
5493 +/* Define to 1 if you have the `setenv' function. */
5494 +#undef HAVE_SETENV
5495  
5496 -/* Define if you have the <malloc.h> header file.  */
5497 -#undef HAVE_MALLOC_H
5498 +/* Define to 1 if you have the `setlocale' function. */
5499 +#undef HAVE_SETLOCALE
5500  
5501 -/* Define if you have the <ncurses.h> header file.  */
5502 -#undef HAVE_NCURSES_H
5503 +/* Define to 1 if you have the `setrlimit' function. */
5504 +#undef HAVE_SETRLIMIT
5505  
5506 -/* Define if you have the <ncursesw/ncurses.h> header file.  */
5507 -#undef HAVE_NCURSESW_NCURSES_H
5508 +/* Define to 1 if you have the `snprintf' function. */
5509 +#undef HAVE_SNPRINTF
5510  
5511 -/* Define if you have the <nl_types.h> header file.  */
5512 -#undef HAVE_NL_TYPES_H
5513 +/* Define to 1 if you have the `srand48' function. */
5514 +#undef HAVE_SRAND48
5515  
5516 -/* Define if you have the <stdarg.h> header file.  */
5517 +/* Define to 1 if you have the <stdarg.h> header file. */
5518  #undef HAVE_STDARG_H
5519  
5520 -/* Define if you have the <stddef.h> header file.  */
5521 +/* Define to 1 if you have the <stddef.h> header file. */
5522  #undef HAVE_STDDEF_H
5523  
5524 -/* Define if you have the <stdint.h> header file.  */
5525 +/* Define to 1 if you have the <stdint.h> header file. */
5526  #undef HAVE_STDINT_H
5527  
5528 -/* Define if you have the <stdlib.h> header file.  */
5529 +/* Define to 1 if you have the <stdlib.h> header file. */
5530  #undef HAVE_STDLIB_H
5531  
5532 -/* Define if you have the <string.h> header file.  */
5533 +/* Define to 1 if you have the `stpcpy' function. */
5534 +#undef HAVE_STPCPY
5535 +
5536 +/* Define to 1 if you have the `strcasecmp' function. */
5537 +#undef HAVE_STRCASECMP
5538 +
5539 +/* Define to 1 if you have the `strchr' function. */
5540 +#undef HAVE_STRCHR
5541 +
5542 +/* Define to 1 if you have the `strdup' function. */
5543 +#undef HAVE_STRDUP
5544 +
5545 +/* Define to 1 if you have the `strerror' function. */
5546 +#undef HAVE_STRERROR
5547 +
5548 +/* Define to 1 if you have the `strftime' function. */
5549 +#undef HAVE_STRFTIME
5550 +
5551 +/* Define to 1 if you have the <strings.h> header file. */
5552 +#undef HAVE_STRINGS_H
5553 +
5554 +/* Define to 1 if you have the <string.h> header file. */
5555  #undef HAVE_STRING_H
5556  
5557 -/* Define if you have the <sys/ioctl.h> header file.  */
5558 +/* Define to 1 if you have the `strtoul' function. */
5559 +#undef HAVE_STRTOUL
5560 +
5561 +/* Define to 1 if you have the <sysexits.h> header file. */
5562 +#undef HAVE_SYSEXITS_H
5563 +
5564 +/* Define to 1 if you have the <sys/ioctl.h> header file. */
5565  #undef HAVE_SYS_IOCTL_H
5566  
5567 -/* Define if you have the <sys/param.h> header file.  */
5568 +/* Define to 1 if you have the <sys/param.h> header file. */
5569  #undef HAVE_SYS_PARAM_H
5570  
5571 -/* Define if you have the <sys/resource.h> header file.  */
5572 +/* Define to 1 if you have the <sys/resource.h> header file. */
5573  #undef HAVE_SYS_RESOURCE_H
5574  
5575 -/* Define if you have the <sys/time.h> header file.  */
5576 +/* Define to 1 if you have the <sys/stat.h> header file. */
5577 +#undef HAVE_SYS_STAT_H
5578 +
5579 +/* Define to 1 if you have the <sys/time.h> header file. */
5580  #undef HAVE_SYS_TIME_H
5581  
5582 -/* Define if you have the <sysexits.h> header file.  */
5583 -#undef HAVE_SYSEXITS_H
5584 +/* Define to 1 if you have the <sys/types.h> header file. */
5585 +#undef HAVE_SYS_TYPES_H
5586 +
5587 +/* Define to 1 if you have the `towlower' function. */
5588 +#undef HAVE_TOWLOWER
5589  
5590 -/* Define if you have the <unistd.h> header file.  */
5591 +/* Define to 1 if you have the `towupper' function. */
5592 +#undef HAVE_TOWUPPER
5593 +
5594 +/* Define to 1 if you have the `tsearch' function. */
5595 +#undef HAVE_TSEARCH
5596 +
5597 +/* Define if you have the uint32_t type. */
5598 +#undef HAVE_UINT32_T
5599 +
5600 +/* Define to 1 if you have the <unistd.h> header file. */
5601  #undef HAVE_UNISTD_H
5602  
5603 -/* Define if you have the <unix.h> header file.  */
5604 +/* Define to 1 if you have the <unix.h> header file. */
5605  #undef HAVE_UNIX_H
5606  
5607 -/* Define if you have the <wchar.h> header file.  */
5608 +/* Define to 1 if you have the `vsnprintf' function. */
5609 +#undef HAVE_VSNPRINTF
5610 +
5611 +/* Define to 1 if you have the <wchar.h> header file. */
5612  #undef HAVE_WCHAR_H
5613  
5614 -/* Define if you have the <wctype.h> header file.  */
5615 +/* Define to 1 if you have the <wctype.h> header file. */
5616  #undef HAVE_WCTYPE_H
5617  
5618 -/* Define if you have the crypto library (-lcrypto).  */
5619 -#undef HAVE_LIBCRYPTO
5620 -
5621 -/* Define if you have the nsl library (-lnsl).  */
5622 -#undef HAVE_LIBNSL
5623 -
5624 -/* Define if you have the sasl library (-lsasl).  */
5625 -#undef HAVE_LIBSASL
5626 -
5627 -/* Define if you have the socket library (-lsocket).  */
5628 -#undef HAVE_LIBSOCKET
5629 +/* Define if you are using the system's wchar_t functions. */
5630 +#undef HAVE_WC_FUNCS
5631  
5632 -/* Define if you have the ssl library (-lssl).  */
5633 -#undef HAVE_LIBSSL
5634 +/* Define to 1 if you have the `__argz_count' function. */
5635 +#undef HAVE___ARGZ_COUNT
5636  
5637 -/* Define if you have the termlib library (-ltermlib).  */
5638 -#undef HAVE_LIBTERMLIB
5639 +/* Define to 1 if you have the `__argz_next' function. */
5640 +#undef HAVE___ARGZ_NEXT
5641  
5642 -/* Name of package */
5643 -#undef PACKAGE
5644 +/* Define to 1 if you have the `__argz_stringify' function. */
5645 +#undef HAVE___ARGZ_STRINGIFY
5646  
5647 -/* Version number of package */
5648 -#undef VERSION
5649 +/* Define as const if the declaration of iconv() needs const. */
5650 +#undef ICONV_CONST
5651  
5652 -/* Define if compiler has function prototypes */
5653 -#undef PROTOTYPES
5654 +/* Where to find ispell on your system. */
5655 +#undef ISPELL
5656  
5657 -/*  Where to find sendmail on your system.  */
5658 -#undef SENDMAIL
5659 +/* Define if the result of isprint() is unreliable. */
5660 +#undef LOCALES_HACK
5661  
5662 -/*  Define if you want PGP support.  */
5663 -#undef HAVE_PGP
5664 +/* Where new mail is spooled. */
5665 +#undef MAILPATH
5666  
5667 -/*  Where to find mixmaster on your system.  */
5668 +/* Where to find mixmaster on your system. */
5669  #undef MIXMASTER
5670  
5671 -/*  Is this the international version?  */
5672 -#undef SUBVERSION
5673 +/* Name of package */
5674 +#undef PACKAGE
5675  
5676 -/*  Where to find ispell on your system.  */
5677 -#undef ISPELL
5678 +/* Define to the address where bug reports for this package should be sent. */
5679 +#undef PACKAGE_BUGREPORT
5680  
5681 -/*  Define if you compile with SLang instead of curses/ncurses.  */
5682 -#undef USE_SLANG_CURSES
5683 +/* Define to the full name of this package. */
5684 +#undef PACKAGE_NAME
5685  
5686 -/*  Define if your curses library supports color.  */
5687 -#undef HAVE_COLOR
5688 +/* Define to the full name and version of this package. */
5689 +#undef PACKAGE_STRING
5690  
5691 -/*  Define if your curses library supports color.  */
5692 -#undef HAVE_COLOR
5693 +/* Define to the one symbol short name of this package. */
5694 +#undef PACKAGE_TARNAME
5695  
5696 -/*  Define if you have the uint32_t type.  */
5697 -#undef HAVE_UINT32_T
5698 +/* Define to the version of this package. */
5699 +#undef PACKAGE_VERSION
5700  
5701 -/*  Define if you want to use the included regex.c.  */
5702 -#undef USE_GNU_REGEX
5703 +/* Define if compiler has function prototypes */
5704 +#undef PROTOTYPES
5705  
5706 -/*  Where new mail is spooled.  */
5707 -#undef MAILPATH
5708 +/* Define as the return type of signal handlers (`int' or `void'). */
5709 +#undef RETSIGTYPE
5710  
5711 -/*  Define to use dotlocking for mailboxes.  */
5712 -#undef USE_DOTLOCK
5713 +/* Where to find sendmail on your system. */
5714 +#undef SENDMAIL
5715  
5716 -/*  Where new mail is spooled.  */
5717 -#undef MAILPATH
5718 +/* The size of a `int', as computed by sizeof. */
5719 +#undef SIZEOF_INT
5720  
5721 -/*  Define to use dotlocking for mailboxes.  */
5722 -#undef USE_DOTLOCK
5723 +/* The size of a `long', as computed by sizeof. */
5724 +#undef SIZEOF_LONG
5725  
5726 -/*  Define to use dotlocking for mailboxes.  */
5727 -#undef USE_DOTLOCK
5728 +/* If using the C implementation of alloca, define if you know the
5729 +   direction of stack growth for your system; otherwise it will be
5730 +   automatically deduced at run-time.
5731 +        STACK_DIRECTION > 0 => grows toward higher addresses
5732 +        STACK_DIRECTION < 0 => grows toward lower addresses
5733 +        STACK_DIRECTION = 0 => direction of growth unknown */
5734 +#undef STACK_DIRECTION
5735  
5736 -/*  Define if mutt should run setgid mail.  */
5737 -#undef USE_SETGID
5738 +/* Define to 1 if you have the ANSI C header files. */
5739 +#undef STDC_HEADERS
5740  
5741 -/*  Define if you want to use an external dotlocking program.  */
5742 -#undef DL_STANDALONE
5743 +/* Is this the international version? */
5744 +#undef SUBVERSION
5745  
5746 -/*  Define your domain name.  */
5747 -#undef DOMAIN
5748 +/* Define to enable Sun mailtool attachments support. */
5749 +#undef SUN_ATTACHMENT
5750  
5751 -/*  Define if you want support for the POP3 protocol.  */
5752 -#undef USE_POP
5753 +/* Define to 1 if `sys_siglist' is declared by <signal.h> or <unistd.h>. */
5754 +#undef SYS_SIGLIST_DECLARED
5755  
5756 -/*  Define if you want support for the IMAP protocol.  */
5757 -#undef USE_IMAP
5758 +/* Define to support compressed folders. */
5759 +#undef USE_COMPRESSED
5760  
5761 -/*  Define to 'int' if <sys/socket.h> doesn't have it.  */
5762 -#undef socklen_t
5763 +/* Define to use dotlocking for mailboxes. */
5764 +#undef USE_DOTLOCK
5765  
5766 -/*  Include code for socket support. Set automatically if you enable POP3 or IMAP  */
5767 -#undef USE_SOCKET
5768 +/* Define to use fcntl() to lock folders. */
5769 +#undef USE_FCNTL
5770  
5771 -/*  Define if your GSSAPI implementation is Heimdal  */
5772 -#undef HAVE_HEIMDAL
5773 +/* Define to use flock() to lock mailboxes. */
5774 +#undef USE_FLOCK
5775  
5776 -/*  Define if you have GSSAPI libraries available  */
5777 +/* Define if you want to use the included regex.c. */
5778 +#undef USE_GNU_REGEX
5779 +
5780 +/* Define if you have GSSAPI libraries available */
5781  #undef USE_GSS
5782  
5783 -/*  Define if you want support for SSL.  */
5784 -#undef USE_SSL
5785 +/* Define if you want support for the IMAP protocol. */
5786 +#undef USE_IMAP
5787  
5788 -/*  Define if you want support for SSL via the NSS library.  */
5789 +/* Define if you want support for SSL via the NSS library. */
5790  #undef USE_NSS
5791  
5792 -/*  Define if want to use the Cyrus SASL library for POP/IMAP authentication.  */
5793 -#undef USE_SASL
5794 +/* Define if you want support for the POP3 protocol. */
5795 +#undef USE_POP
5796  
5797 -/*  Define to enable debugging info.  */
5798 -#undef DEBUG
5799 +/* Define if want to use the Cyrus SASL library for POP/IMAP authentication.
5800 +   */
5801 +#undef USE_SASL
5802  
5803 -/*  Define to use flock() to lock mailboxes.  */
5804 -#undef USE_FLOCK
5805 +/* Define if mutt should run setgid "mail". */
5806 +#undef USE_SETGID
5807  
5808 -/*  Define to use fcntl() to lock folders.  */
5809 -#undef USE_FCNTL
5810 +/* Define if you compile with SLang instead of curses/ncurses. */
5811 +#undef USE_SLANG_CURSES
5812  
5813 -/*  Define to enable the buffy_size feature.  */
5814 -#undef BUFFY_SIZE
5815 +/* Include code for socket support. Set automatically if you enable POP3 or
5816 +   IMAP */
5817 +#undef USE_SOCKET
5818  
5819 -/*  Define to enable Sun mailtool attachments support.  */
5820 -#undef SUN_ATTACHMENT
5821 +/* Define if you want support for SSL. */
5822 +#undef USE_SSL
5823  
5824 -/* Define to enable compressed mailboxes support */
5825 -#undef USE_COMPRESSED
5826 +/* Version number of package */
5827 +#undef VERSION
5828  
5829 -/*  Define if the result of isprint() is unreliable.  */
5830 -#undef LOCALES_HACK
5831 +/* Define to 1 if your processor stores words with the most significant byte
5832 +   first (like Motorola and SPARC, unlike Intel and VAX). */
5833 +#undef WORDS_BIGENDIAN
5834  
5835 -/* Define if you have the iconv() function. */
5836 -#undef HAVE_ICONV
5837 +/* Define to empty if `const' does not conform to ANSI C. */
5838 +#undef const
5839  
5840 -/* Define as const if the declaration of iconv() needs const. */
5841 -#undef ICONV_CONST
5842 +/* Define as `__inline' if that's what the C compiler calls it, or to nothing
5843 +   if it is not supported. */
5844 +#undef inline
5845  
5846 -/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
5847 -#undef HAVE_LANGINFO_CODESET
5848 +/* Define to 'int' if system headers don't define. */
5849 +#undef mbstate_t
5850  
5851 -/* Define if your <locale.h> file defines LC_MESSAGES. */
5852 -#undef HAVE_LC_MESSAGES
5853 +/* Define to `long' if <sys/types.h> does not define. */
5854 +#undef off_t
5855  
5856 -/* Define to 1 if translation of program messages to the user's native language
5857 -   is requested. */
5858 -#undef ENABLE_NLS
5859 +/* Define to `int' if <sys/types.h> does not define. */
5860 +#undef pid_t
5861  
5862 -/* Define if the GNU gettext() function is already present or preinstalled. */
5863 -#undef HAVE_GETTEXT
5864 +/* Define to `int' if <sys/types.h> does not define. */
5865 +#undef sig_atomic_t
5866  
5867 -/* Define if <iconv.h> defines iconv_t. */
5868 -#undef HAVE_ICONV_T_DEF
5869 +/* Define to `unsigned' if <sys/types.h> does not define. */
5870 +#undef size_t
5871  
5872 -/*  Define if your gettext has bind_textdomain_codeset.  */
5873 -#undef HAVE_BIND_TEXTDOMAIN_CODESET
5874 +/* Define to 'int' if <sys/socket.h> doesn't have it. */
5875 +#undef socklen_t
5876  
5877 -/*  Define to 'int' if system headers don't define.  */
5878 +/* Define to 'int' if system headers don't define. */
5879  #undef wchar_t
5880  
5881 -/*  Define to 'int' if system headers don't define.  */
5882 +/* Define to 'int' if system headers don't define. */
5883  #undef wint_t
5884 -
5885 -/*  Define to 'int' if system headers don't define.  */
5886 -#undef mbstate_t
5887 -
5888 -/*  Define if you are using the system's wchar_t functions.  */
5889 -#undef HAVE_WC_FUNCS
5890 -
5891 -/*  Define if you have <langinfo.h> and nl_langinfo(CODESET).  */
5892 -#undef HAVE_LANGINFO_CODESET
5893 -
5894 -/*  Define if you have <langinfo.h> and nl_langinfo(YESEXPR).  */
5895 -#undef HAVE_LANGINFO_YESEXPR
5896 -
5897  /* Define if you have start_color, as a function or macro.  */
5898  #undef HAVE_START_COLOR
5899  
5900 diff -uNr mutt-1.4.orig/config.h.in~ mutt-1.4/config.h.in~
5901 --- mutt-1.4.orig/config.h.in~  Thu Jan  1 01:00:00 1970
5902 +++ mutt-1.4/config.h.in~       Sun Nov  3 21:57:20 2002
5903 @@ -0,0 +1,525 @@
5904 +/* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
5905 +
5906 +/* Define if using alloca.c.  */
5907 +#undef C_ALLOCA
5908 +
5909 +/* Define to empty if the keyword does not work.  */
5910 +#undef const
5911 +
5912 +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
5913 +   This function is required for alloca.c support on those systems.  */
5914 +#undef CRAY_STACKSEG_END
5915 +
5916 +/* Define if you have alloca, as a function or macro.  */
5917 +#undef HAVE_ALLOCA
5918 +
5919 +/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
5920 +#undef HAVE_ALLOCA_H
5921 +
5922 +/* Define if you have a working `mmap' system call.  */
5923 +#undef HAVE_MMAP
5924 +
5925 +/* Define as __inline if that's what the C compiler calls it.  */
5926 +#undef inline
5927 +
5928 +/* Define to `long' if <sys/types.h> doesn't define.  */
5929 +#undef off_t
5930 +
5931 +/* Define to `int' if <sys/types.h> doesn't define.  */
5932 +#undef pid_t
5933 +
5934 +/* Define as the return type of signal handlers (int or void).  */
5935 +#undef RETSIGTYPE
5936 +
5937 +/* Define to `unsigned' if <sys/types.h> doesn't define.  */
5938 +#undef size_t
5939 +
5940 +/* If using the C implementation of alloca, define if you know the
5941 +   direction of stack growth for your system; otherwise it will be
5942 +   automatically deduced at run-time.
5943 + STACK_DIRECTION > 0 => grows toward higher addresses
5944 + STACK_DIRECTION < 0 => grows toward lower addresses
5945 + STACK_DIRECTION = 0 => direction of growth unknown
5946 + */
5947 +#undef STACK_DIRECTION
5948 +
5949 +/* Define if you have the ANSI C header files.  */
5950 +#undef STDC_HEADERS
5951 +
5952 +/* Define if `sys_siglist' is declared by <signal.h>.  */
5953 +#undef SYS_SIGLIST_DECLARED
5954 +
5955 +/* Define if your processor stores words with the most significant
5956 +   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
5957 +#undef WORDS_BIGENDIAN
5958 +
5959 +/*
5960 + * Define if you have problems with mutt not detecting new/old mailboxes
5961 + * over NFS.  Some NFS implementations incorrectly cache the attributes
5962 + * of small files.
5963 + */
5964 +#undef NFS_ATTRIBUTE_HACK
5965 +
5966 +/*
5967 + * Is mail spooled to the user's home directory?  If defined, MAILPATH should
5968 + * be set to the filename of the spool mailbox relative the the home
5969 + * directory.
5970 + * use: configure --with-homespool=FILE
5971 + */
5972 +#undef HOMESPOOL
5973 +
5974 +/* Compiling with newsreading support with NNTP */
5975 +#undef USE_NNTP
5976 +
5977 +/* program to use for shell commands */
5978 +#define EXECSHELL "/bin/sh"
5979 +
5980 +/* Enable exact regeneration of email addresses as parsed?  NOTE: this requires
5981 +   significant more memory when defined. */
5982 +#undef EXACT_ADDRESS
5983 +
5984 +/* Define to `int' if <signal.h> doesn't define.  */
5985 +#undef sig_atomic_t
5986 +
5987 +/* The number of bytes in a int.  */
5988 +#undef SIZEOF_INT
5989 +
5990 +/* The number of bytes in a long.  */
5991 +#undef SIZEOF_LONG
5992 +
5993 +/* Define if you have the RAND_egd function.  */
5994 +#undef HAVE_RAND_EGD
5995 +
5996 +/* Define if you have the RAND_status function.  */
5997 +#undef HAVE_RAND_STATUS
5998 +
5999 +/* Define if you have the __argz_count function.  */
6000 +#undef HAVE___ARGZ_COUNT
6001 +
6002 +/* Define if you have the __argz_next function.  */
6003 +#undef HAVE___ARGZ_NEXT
6004 +
6005 +/* Define if you have the __argz_stringify function.  */
6006 +#undef HAVE___ARGZ_STRINGIFY
6007 +
6008 +/* Define if you have the bind_textdomain_codeset function.  */
6009 +#undef HAVE_BIND_TEXTDOMAIN_CODESET
6010 +
6011 +/* Define if you have the dcgettext function.  */
6012 +#undef HAVE_DCGETTEXT
6013 +
6014 +/* Define if you have the fchdir function.  */
6015 +#undef HAVE_FCHDIR
6016 +
6017 +/* Define if you have the feof_unlocked function.  */
6018 +#undef HAVE_FEOF_UNLOCKED
6019 +
6020 +/* Define if you have the fgetpos function.  */
6021 +#undef HAVE_FGETPOS
6022 +
6023 +/* Define if you have the fgets_unlocked function.  */
6024 +#undef HAVE_FGETS_UNLOCKED
6025 +
6026 +/* Define if you have the ftruncate function.  */
6027 +#undef HAVE_FTRUNCATE
6028 +
6029 +/* Define if you have the getaddrinfo function.  */
6030 +#undef HAVE_GETADDRINFO
6031 +
6032 +/* Define if you have the getcwd function.  */
6033 +#undef HAVE_GETCWD
6034 +
6035 +/* Define if you have the getegid function.  */
6036 +#undef HAVE_GETEGID
6037 +
6038 +/* Define if you have the geteuid function.  */
6039 +#undef HAVE_GETEUID
6040 +
6041 +/* Define if you have the getgid function.  */
6042 +#undef HAVE_GETGID
6043 +
6044 +/* Define if you have the getpagesize function.  */
6045 +#undef HAVE_GETPAGESIZE
6046 +
6047 +/* Define if you have the getsid function.  */
6048 +#undef HAVE_GETSID
6049 +
6050 +/* Define if you have the getuid function.  */
6051 +#undef HAVE_GETUID
6052 +
6053 +/* Define if you have the iswalnum function.  */
6054 +#undef HAVE_ISWALNUM
6055 +
6056 +/* Define if you have the iswalpha function.  */
6057 +#undef HAVE_ISWALPHA
6058 +
6059 +/* Define if you have the iswcntrl function.  */
6060 +#undef HAVE_ISWCNTRL
6061 +
6062 +/* Define if you have the iswdigit function.  */
6063 +#undef HAVE_ISWDIGIT
6064 +
6065 +/* Define if you have the iswgraph function.  */
6066 +#undef HAVE_ISWGRAPH
6067 +
6068 +/* Define if you have the iswlower function.  */
6069 +#undef HAVE_ISWLOWER
6070 +
6071 +/* Define if you have the iswprint function.  */
6072 +#undef HAVE_ISWPRINT
6073 +
6074 +/* Define if you have the iswpunct function.  */
6075 +#undef HAVE_ISWPUNCT
6076 +
6077 +/* Define if you have the iswspace function.  */
6078 +#undef HAVE_ISWSPACE
6079 +
6080 +/* Define if you have the iswupper function.  */
6081 +#undef HAVE_ISWUPPER
6082 +
6083 +/* Define if you have the iswxdigit function.  */
6084 +#undef HAVE_ISWXDIGIT
6085 +
6086 +/* Define if you have the memmove function.  */
6087 +#undef HAVE_MEMMOVE
6088 +
6089 +/* Define if you have the mempcpy function.  */
6090 +#undef HAVE_MEMPCPY
6091 +
6092 +/* Define if you have the munmap function.  */
6093 +#undef HAVE_MUNMAP
6094 +
6095 +/* Define if you have the putenv function.  */
6096 +#undef HAVE_PUTENV
6097 +
6098 +/* Define if you have the regcomp function.  */
6099 +#undef HAVE_REGCOMP
6100 +
6101 +/* Define if you have the setegid function.  */
6102 +#undef HAVE_SETEGID
6103 +
6104 +/* Define if you have the setenv function.  */
6105 +#undef HAVE_SETENV
6106 +
6107 +/* Define if you have the setlocale function.  */
6108 +#undef HAVE_SETLOCALE
6109 +
6110 +/* Define if you have the setrlimit function.  */
6111 +#undef HAVE_SETRLIMIT
6112 +
6113 +/* Define if you have the snprintf function.  */
6114 +#undef HAVE_SNPRINTF
6115 +
6116 +/* Define if you have the srand48 function.  */
6117 +#undef HAVE_SRAND48
6118 +
6119 +/* Define if you have the stpcpy function.  */
6120 +#undef HAVE_STPCPY
6121 +
6122 +/* Define if you have the strcasecmp function.  */
6123 +#undef HAVE_STRCASECMP
6124 +
6125 +/* Define if you have the strchr function.  */
6126 +#undef HAVE_STRCHR
6127 +
6128 +/* Define if you have the strdup function.  */
6129 +#undef HAVE_STRDUP
6130 +
6131 +/* Define if you have the strerror function.  */
6132 +#undef HAVE_STRERROR
6133 +
6134 +/* Define if you have the strftime function.  */
6135 +#undef HAVE_STRFTIME
6136 +
6137 +/* Define if you have the strtoul function.  */
6138 +#undef HAVE_STRTOUL
6139 +
6140 +/* Define if you have the towlower function.  */
6141 +#undef HAVE_TOWLOWER
6142 +
6143 +/* Define if you have the towupper function.  */
6144 +#undef HAVE_TOWUPPER
6145 +
6146 +/* Define if you have the tsearch function.  */
6147 +#undef HAVE_TSEARCH
6148 +
6149 +/* Define if you have the vsnprintf function.  */
6150 +#undef HAVE_VSNPRINTF
6151 +
6152 +/* Define if you have the <argz.h> header file.  */
6153 +#undef HAVE_ARGZ_H
6154 +
6155 +/* Define if you have the <getopt.h> header file.  */
6156 +#undef HAVE_GETOPT_H
6157 +
6158 +/* Define if you have the <iconv.h> header file.  */
6159 +#undef HAVE_ICONV_H
6160 +
6161 +/* Define if you have the <inttypes.h> header file.  */
6162 +#undef HAVE_INTTYPES_H
6163 +
6164 +/* Define if you have the <ioctl.h> header file.  */
6165 +#undef HAVE_IOCTL_H
6166 +
6167 +/* Define if you have the <limits.h> header file.  */
6168 +#undef HAVE_LIMITS_H
6169 +
6170 +/* Define if you have the <locale.h> header file.  */
6171 +#undef HAVE_LOCALE_H
6172 +
6173 +/* Define if you have the <malloc.h> header file.  */
6174 +#undef HAVE_MALLOC_H
6175 +
6176 +/* Define if you have the <ncurses.h> header file.  */
6177 +#undef HAVE_NCURSES_H
6178 +
6179 +/* Define if you have the <ncursesw/ncurses.h> header file.  */
6180 +#undef HAVE_NCURSESW_NCURSES_H
6181 +
6182 +/* Define if you have the <nl_types.h> header file.  */
6183 +#undef HAVE_NL_TYPES_H
6184 +
6185 +/* Define if you have the <stdarg.h> header file.  */
6186 +#undef HAVE_STDARG_H
6187 +
6188 +/* Define if you have the <stddef.h> header file.  */
6189 +#undef HAVE_STDDEF_H
6190 +
6191 +/* Define if you have the <stdint.h> header file.  */
6192 +#undef HAVE_STDINT_H
6193 +
6194 +/* Define if you have the <stdlib.h> header file.  */
6195 +#undef HAVE_STDLIB_H
6196 +
6197 +/* Define if you have the <string.h> header file.  */
6198 +#undef HAVE_STRING_H
6199 +
6200 +/* Define if you have the <sys/ioctl.h> header file.  */
6201 +#undef HAVE_SYS_IOCTL_H
6202 +
6203 +/* Define if you have the <sys/param.h> header file.  */
6204 +#undef HAVE_SYS_PARAM_H
6205 +
6206 +/* Define if you have the <sys/resource.h> header file.  */
6207 +#undef HAVE_SYS_RESOURCE_H
6208 +
6209 +/* Define if you have the <sys/time.h> header file.  */
6210 +#undef HAVE_SYS_TIME_H
6211 +
6212 +/* Define if you have the <sysexits.h> header file.  */
6213 +#undef HAVE_SYSEXITS_H
6214 +
6215 +/* Define if you have the <unistd.h> header file.  */
6216 +#undef HAVE_UNISTD_H
6217 +
6218 +/* Define if you have the <unix.h> header file.  */
6219 +#undef HAVE_UNIX_H
6220 +
6221 +/* Define if you have the <wchar.h> header file.  */
6222 +#undef HAVE_WCHAR_H
6223 +
6224 +/* Define if you have the <wctype.h> header file.  */
6225 +#undef HAVE_WCTYPE_H
6226 +
6227 +/* Define if you have the crypto library (-lcrypto).  */
6228 +#undef HAVE_LIBCRYPTO
6229 +
6230 +/* Define if you have the nsl library (-lnsl).  */
6231 +#undef HAVE_LIBNSL
6232 +
6233 +/* Define if you have the sasl library (-lsasl).  */
6234 +#undef HAVE_LIBSASL
6235 +
6236 +/* Define if you have the socket library (-lsocket).  */
6237 +#undef HAVE_LIBSOCKET
6238 +
6239 +/* Define if you have the ssl library (-lssl).  */
6240 +#undef HAVE_LIBSSL
6241 +
6242 +/* Define if you have the termlib library (-ltermlib).  */
6243 +#undef HAVE_LIBTERMLIB
6244 +
6245 +/* Name of package */
6246 +#undef PACKAGE
6247 +
6248 +/* Version number of package */
6249 +#undef VERSION
6250 +
6251 +/* Define if compiler has function prototypes */
6252 +#undef PROTOTYPES
6253 +
6254 +/*  Where to find sendmail on your system.  */
6255 +#undef SENDMAIL
6256 +
6257 +/*  Define if you want PGP support.  */
6258 +#undef HAVE_PGP
6259 +
6260 +/*  Where to find mixmaster on your system.  */
6261 +#undef MIXMASTER
6262 +
6263 +/*  Is this the international version?  */
6264 +#undef SUBVERSION
6265 +
6266 +/*  Where to find ispell on your system.  */
6267 +#undef ISPELL
6268 +
6269 +/*  Define if you compile with SLang instead of curses/ncurses.  */
6270 +#undef USE_SLANG_CURSES
6271 +
6272 +/*  Define if your curses library supports color.  */
6273 +#undef HAVE_COLOR
6274 +
6275 +/*  Define if your curses library supports color.  */
6276 +#undef HAVE_COLOR
6277 +
6278 +/*  Define if you have the uint32_t type.  */
6279 +#undef HAVE_UINT32_T
6280 +
6281 +/*  Define if you want to use the included regex.c.  */
6282 +#undef USE_GNU_REGEX
6283 +
6284 +/*  Where new mail is spooled.  */
6285 +#undef MAILPATH
6286 +
6287 +/*  Define to use dotlocking for mailboxes.  */
6288 +#undef USE_DOTLOCK
6289 +
6290 +/*  Where new mail is spooled.  */
6291 +#undef MAILPATH
6292 +
6293 +/*  Define to use dotlocking for mailboxes.  */
6294 +#undef USE_DOTLOCK
6295 +
6296 +/*  Define to use dotlocking for mailboxes.  */
6297 +#undef USE_DOTLOCK
6298 +
6299 +/*  Define if mutt should run setgid mail.  */
6300 +#undef USE_SETGID
6301 +
6302 +/*  Define if you want to use an external dotlocking program.  */
6303 +#undef DL_STANDALONE
6304 +
6305 +/*  Define your domain name.  */
6306 +#undef DOMAIN
6307 +
6308 +/*  Define if you want support for the POP3 protocol.  */
6309 +#undef USE_POP
6310 +
6311 +/*  Define if you want support for the IMAP protocol.  */
6312 +#undef USE_IMAP
6313 +
6314 +/*  Define to 'int' if <sys/socket.h> doesn't have it.  */
6315 +#undef socklen_t
6316 +
6317 +/*  Include code for socket support. Set automatically if you enable POP3 or IMAP  */
6318 +#undef USE_SOCKET
6319 +
6320 +/*  Define if your GSSAPI implementation is Heimdal  */
6321 +#undef HAVE_HEIMDAL
6322 +
6323 +/*  Define if you have GSSAPI libraries available  */
6324 +#undef USE_GSS
6325 +
6326 +/*  Define if you want support for SSL.  */
6327 +#undef USE_SSL
6328 +
6329 +/*  Define if you want support for SSL via the NSS library.  */
6330 +#undef USE_NSS
6331 +
6332 +/*  Define if want to use the Cyrus SASL library for POP/IMAP authentication.  */
6333 +#undef USE_SASL
6334 +
6335 +/*  Define to enable debugging info.  */
6336 +#undef DEBUG
6337 +
6338 +/*  Define to use flock() to lock mailboxes.  */
6339 +#undef USE_FLOCK
6340 +
6341 +/*  Define to use fcntl() to lock folders.  */
6342 +#undef USE_FCNTL
6343 +
6344 +/*  Define to enable the buffy_size feature.  */
6345 +#undef BUFFY_SIZE
6346 +
6347 +/*  Define to enable Sun mailtool attachments support.  */
6348 +#undef SUN_ATTACHMENT
6349 +
6350 +/* Define to enable compressed mailboxes support */
6351 +#undef USE_COMPRESSED
6352 +
6353 +/*  Define if the result of isprint() is unreliable.  */
6354 +#undef LOCALES_HACK
6355 +
6356 +/* Define if you have the iconv() function. */
6357 +#undef HAVE_ICONV
6358 +
6359 +/* Define as const if the declaration of iconv() needs const. */
6360 +#undef ICONV_CONST
6361 +
6362 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
6363 +#undef HAVE_LANGINFO_CODESET
6364 +
6365 +/* Define if your <locale.h> file defines LC_MESSAGES. */
6366 +#undef HAVE_LC_MESSAGES
6367 +
6368 +/* Define to 1 if translation of program messages to the user's native language
6369 +   is requested. */
6370 +#undef ENABLE_NLS
6371 +
6372 +/* Define if the GNU gettext() function is already present or preinstalled. */
6373 +#undef HAVE_GETTEXT
6374 +
6375 +/* Define if <iconv.h> defines iconv_t. */
6376 +#undef HAVE_ICONV_T_DEF
6377 +
6378 +/*  Define if your gettext has bind_textdomain_codeset.  */
6379 +#undef HAVE_BIND_TEXTDOMAIN_CODESET
6380 +
6381 +/*  Define to 'int' if system headers don't define.  */
6382 +#undef wchar_t
6383 +
6384 +/*  Define to 'int' if system headers don't define.  */
6385 +#undef wint_t
6386 +
6387 +/*  Define to 'int' if system headers don't define.  */
6388 +#undef mbstate_t
6389 +
6390 +/*  Define if you are using the system's wchar_t functions.  */
6391 +#undef HAVE_WC_FUNCS
6392 +
6393 +/*  Define if you have <langinfo.h> and nl_langinfo(CODESET).  */
6394 +#undef HAVE_LANGINFO_CODESET
6395 +
6396 +/*  Define if you have <langinfo.h> and nl_langinfo(YESEXPR).  */
6397 +#undef HAVE_LANGINFO_YESEXPR
6398 +
6399 +/* Define if you have start_color, as a function or macro.  */
6400 +#undef HAVE_START_COLOR
6401 +
6402 +/* Define if you have typeahead, as a function or macro.  */
6403 +#undef HAVE_TYPEAHEAD
6404 +
6405 +/* Define if you have bkgdset, as a function or macro.  */
6406 +#undef HAVE_BKGDSET
6407 +
6408 +/* Define if you have curs_set, as a function or macro.  */
6409 +#undef HAVE_CURS_SET
6410 +
6411 +/* Define if you have meta, as a function or macro.  */
6412 +#undef HAVE_META
6413 +
6414 +/* Define if you have use_default_colors, as a function or macro.  */
6415 +#undef HAVE_USE_DEFAULT_COLORS
6416 +
6417 +/* Define if you have resizeterm, as a function or macro.  */
6418 +#undef HAVE_RESIZETERM
6419 +
6420 +/* Some systems declare sig_atomic_t as volatile, some others -- no.
6421 + * This define will have value `sig_atomic_t' or `volatile sig_atomic_t'
6422 + * accordingly. */
6423 +#undef SIG_ATOMIC_VOLATILE_T
6424 +
6425 +/* Define as 1 if iconv() only converts exactly and we should treat
6426 + * all return values other than (size_t)(-1) as equivalent. */
6427 +#undef ICONV_NONTRANS
6428 +
6429 diff -uNr mutt-1.4.orig/config.sub mutt-1.4/config.sub
6430 --- mutt-1.4.orig/config.sub    Wed Jan 16 21:44:49 2002
6431 +++ mutt-1.4/config.sub Sun Nov  3 21:57:29 2002
6432 @@ -3,7 +3,7 @@
6433  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6434  #   2000, 2001, 2002 Free Software Foundation, Inc.
6435  
6436 -timestamp='2002-01-02'
6437 +timestamp='2002-07-03'
6438  
6439  # This file is (in principle) common to ALL GNU software.
6440  # The presence of a machine in this file suggests that SOME GNU software
6441 @@ -118,7 +118,7 @@
6442  # Here we must recognize all the valid KERNEL-OS combinations.
6443  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6444  case $maybe_os in
6445 -  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
6446 +  nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
6447      os=-$maybe_os
6448      basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
6449      ;;
6450 @@ -230,24 +230,32 @@
6451         | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6452         | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
6453         | c4x | clipper \
6454 -       | d10v | d30v | dsp16xx \
6455 -       | fr30 \
6456 +       | d10v | d30v | dlx | dsp16xx \
6457 +       | fr30 | frv \
6458         | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
6459         | i370 | i860 | i960 | ia64 \
6460 +       | ip2k \
6461         | m32r | m68000 | m68k | m88k | mcore \
6462 -       | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
6463 -       | mips64vr4100 | mips64vr4100el | mips64vr4300 \
6464 -       | mips64vr4300el | mips64vr5000 | mips64vr5000el \
6465 -       | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
6466 -       | mipsisa32 \
6467 +       | mips | mipsbe | mipseb | mipsel | mipsle \
6468 +       | mips16 \
6469 +       | mips64 | mips64el \
6470 +       | mips64orion | mips64orionel \
6471 +       | mips64vr4100 | mips64vr4100el \
6472 +       | mips64vr4300 | mips64vr4300el \
6473 +       | mips64vr5000 | mips64vr5000el \
6474 +       | mipsisa32 | mipsisa32el \
6475 +       | mipsisa64 | mipsisa64el \
6476 +       | mipsisa64sb1 | mipsisa64sb1el \
6477 +       | mipstx39 | mipstx39el \
6478         | mn10200 | mn10300 \
6479         | ns16k | ns32k \
6480 -       | openrisc \
6481 +       | openrisc | or32 \
6482         | pdp10 | pdp11 | pj | pjl \
6483         | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
6484         | pyramid \
6485 -       | sh | sh[34] | sh[34]eb | shbe | shle \
6486 -       | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
6487 +       | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
6488 +       | sh64 | sh64le \
6489 +       | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
6490         | strongarm \
6491         | tahoe | thumb | tic80 | tron \
6492         | v850 | v850e \
6493 @@ -281,37 +289,46 @@
6494         | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
6495         | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
6496         | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
6497 -       | arm-*  | armbe-* | armle-* | armv*-* \
6498 +       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
6499         | avr-* \
6500         | bs2000-* \
6501         | c[123]* | c30-* | [cjt]90-* | c54x-* \
6502 -       | clipper-* | cray2-* | cydra-* \
6503 -       | d10v-* | d30v-* \
6504 +       | clipper-* | cydra-* \
6505 +       | d10v-* | d30v-* | dlx-* \
6506         | elxsi-* \
6507 -       | f30[01]-* | f700-* | fr30-* | fx80-* \
6508 +       | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
6509         | h8300-* | h8500-* \
6510         | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
6511         | i*86-* | i860-* | i960-* | ia64-* \
6512 +       | ip2k-* \
6513         | m32r-* \
6514 -       | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
6515 +       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
6516         | m88110-* | m88k-* | mcore-* \
6517 -       | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
6518 -       | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
6519 -       | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
6520 -       | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
6521 +       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
6522 +       | mips16-* \
6523 +       | mips64-* | mips64el-* \
6524 +       | mips64orion-* | mips64orionel-* \
6525 +       | mips64vr4100-* | mips64vr4100el-* \
6526 +       | mips64vr4300-* | mips64vr4300el-* \
6527 +       | mips64vr5000-* | mips64vr5000el-* \
6528 +       | mipsisa32-* | mipsisa32el-* \
6529 +       | mipsisa64-* | mipsisa64el-* \
6530 +       | mipsisa64sb1-* | mipsisa64sb1el-* \
6531 +       | mipstx39 | mipstx39el \
6532         | none-* | np1-* | ns16k-* | ns32k-* \
6533         | orion-* \
6534         | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
6535         | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
6536         | pyramid-* \
6537         | romp-* | rs6000-* \
6538 -       | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
6539 -       | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
6540 -       | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
6541 -       | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
6542 +       | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
6543 +       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
6544 +       | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
6545 +       | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
6546 +       | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
6547         | v850-* | v850e-* | vax-* \
6548         | we32k-* \
6549 -       | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
6550 +       | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
6551         | xtensa-* \
6552         | ymp-* \
6553         | z8k-*)
6554 @@ -377,6 +394,10 @@
6555                 basic_machine=ns32k-sequent
6556                 os=-dynix
6557                 ;;
6558 +       c90)
6559 +               basic_machine=c90-cray
6560 +               os=-unicos
6561 +               ;;
6562         convex-c1)
6563                 basic_machine=c1-convex
6564                 os=-bsd
6565 @@ -397,16 +418,8 @@
6566                 basic_machine=c38-convex
6567                 os=-bsd
6568                 ;;
6569 -       cray | ymp)
6570 -               basic_machine=ymp-cray
6571 -               os=-unicos
6572 -               ;;
6573 -       cray2)
6574 -               basic_machine=cray2-cray
6575 -               os=-unicos
6576 -               ;;
6577 -       [cjt]90)
6578 -               basic_machine=${basic_machine}-cray
6579 +       cray | j90)
6580 +               basic_machine=j90-cray
6581                 os=-unicos
6582                 ;;
6583         crds | unos)
6584 @@ -609,14 +622,6 @@
6585                 basic_machine=m68k-atari
6586                 os=-mint
6587                 ;;
6588 -       mipsel*-linux*)
6589 -               basic_machine=mipsel-unknown
6590 -               os=-linux-gnu
6591 -               ;;
6592 -       mips*-linux*)
6593 -               basic_machine=mips-unknown
6594 -               os=-linux-gnu
6595 -               ;;
6596         mips3*-*)
6597                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
6598                 ;;
6599 @@ -714,6 +719,10 @@
6600                 basic_machine=hppa1.1-oki
6601                 os=-proelf
6602                 ;;
6603 +       or32 | or32-*)
6604 +               basic_machine=or32-unknown
6605 +               os=-coff
6606 +               ;;
6607         OSE68000 | ose68000)
6608                 basic_machine=m68000-ericsson
6609                 os=-ose
6610 @@ -874,7 +883,7 @@
6611         sun386 | sun386i | roadrunner)
6612                 basic_machine=i386-sun
6613                 ;;
6614 -       sv1)
6615 +        sv1)
6616                 basic_machine=sv1-cray
6617                 os=-unicos
6618                 ;;
6619 @@ -882,8 +891,16 @@
6620                 basic_machine=i386-sequent
6621                 os=-dynix
6622                 ;;
6623 +       t3d)
6624 +               basic_machine=alpha-cray
6625 +               os=-unicos
6626 +               ;;
6627         t3e)
6628 -               basic_machine=t3e-cray
6629 +               basic_machine=alphaev5-cray
6630 +               os=-unicos
6631 +               ;;
6632 +       t90)
6633 +               basic_machine=t90-cray
6634                 os=-unicos
6635                 ;;
6636         tic54x | c54x*)
6637 @@ -950,13 +967,13 @@
6638                 basic_machine=i386-pc
6639                 os=-windows32-msvcrt
6640                 ;;
6641 -       xmp)
6642 -               basic_machine=xmp-cray
6643 -               os=-unicos
6644 -               ;;
6645          xps | xps100)
6646                 basic_machine=xps100-honeywell
6647                 ;;
6648 +       ymp)
6649 +               basic_machine=ymp-cray
6650 +               os=-unicos
6651 +               ;;
6652         z8k-*-coff)
6653                 basic_machine=z8k-unknown
6654                 os=-sim
6655 @@ -977,13 +994,6 @@
6656         op60c)
6657                 basic_machine=hppa1.1-oki
6658                 ;;
6659 -       mips)
6660 -               if [ x$os = x-linux-gnu ]; then
6661 -                       basic_machine=mips-unknown
6662 -               else
6663 -                       basic_machine=mips-mips
6664 -               fi
6665 -               ;;
6666         romp)
6667                 basic_machine=romp-ibm
6668                 ;;
6669 @@ -1003,9 +1013,12 @@
6670         we32k)
6671                 basic_machine=we32k-att
6672                 ;;
6673 -       sh3 | sh4 | sh3eb | sh4eb)
6674 +       sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
6675                 basic_machine=sh-unknown
6676                 ;;
6677 +       sh64)
6678 +               basic_machine=sh64-unknown
6679 +               ;;
6680         sparc | sparcv9 | sparcv9b)
6681                 basic_machine=sparc-sun
6682                 ;;
6683 @@ -1093,7 +1106,8 @@
6684               | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
6685               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
6686               | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
6687 -             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
6688 +             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
6689 +             | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
6690         # Remember, each alternative MUST END IN *, to match a version number.
6691                 ;;
6692         -qnx*)
6693 @@ -1154,6 +1168,9 @@
6694         -ctix* | -uts*)
6695                 os=-sysv
6696                 ;;
6697 +       -nova*)
6698 +               os=-rtmk-nova
6699 +               ;;
6700         -ns2 )
6701                 os=-nextstep2
6702                 ;;
6703 @@ -1259,6 +1276,9 @@
6704         mips*-*)
6705                 os=-elf
6706                 ;;
6707 +       or32-*)
6708 +               os=-coff
6709 +               ;;
6710         *-tti)  # must be before sparc entry or we get the wrong os.
6711                 os=-sysv3
6712                 ;;
6713 @@ -1406,7 +1426,7 @@
6714                         -ptx*)
6715                                 vendor=sequent
6716                                 ;;
6717 -                       -vxsim* | -vxworks*)
6718 +                       -vxsim* | -vxworks* | -windiss*)
6719                                 vendor=wrs
6720                                 ;;
6721                         -aux*)
6722 diff -uNr mutt-1.4.orig/configure mutt-1.4/configure
6723 --- mutt-1.4.orig/configure     Sun Nov  3 21:42:51 2002
6724 +++ mutt-1.4/configure  Sun Nov  3 21:57:28 2002
6725 @@ -1,88 +1,328 @@
6726  #! /bin/sh
6727 -
6728  # Guess values for system-dependent variables and create Makefiles.
6729 -# Generated automatically using autoconf version 2.13 
6730 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6731 +# Generated by GNU Autoconf 2.53a.
6732  #
6733 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6734 +# Free Software Foundation, Inc.
6735  # This configure script is free software; the Free Software Foundation
6736  # gives unlimited permission to copy, distribute and modify it.
6737 +## --------------------- ##
6738 +## M4sh Initialization.  ##
6739 +## --------------------- ##
6740 +
6741 +# Be Bourne compatible
6742 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6743 +  emulate sh
6744 +  NULLCMD=:
6745 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6746 +  # is contrary to our usage.  Disable this feature.
6747 +  alias -g '${1+"$@"}'='"$@"'
6748 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6749 +  set -o posix
6750 +fi
6751 +
6752 +# NLS nuisances.
6753 +# Support unset when possible.
6754 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6755 +  as_unset=unset
6756 +else
6757 +  as_unset=false
6758 +fi
6759 +
6760 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6761 +    { $as_unset LANG || test "${LANG+set}" != set; } ||
6762 +      { LANG=C; export LANG; }
6763 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6764 +    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6765 +      { LC_ALL=C; export LC_ALL; }
6766 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6767 +    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6768 +      { LC_TIME=C; export LC_TIME; }
6769 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6770 +    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6771 +      { LC_CTYPE=C; export LC_CTYPE; }
6772 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6773 +    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6774 +      { LANGUAGE=C; export LANGUAGE; }
6775 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6776 +    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6777 +      { LC_COLLATE=C; export LC_COLLATE; }
6778 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6779 +    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6780 +      { LC_NUMERIC=C; export LC_NUMERIC; }
6781 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6782 +    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6783 +      { LC_MESSAGES=C; export LC_MESSAGES; }
6784 +
6785 +
6786 +# Required to use basename.
6787 +if expr a : '\(a\)' >/dev/null 2>&1; then
6788 +  as_expr=expr
6789 +else
6790 +  as_expr=false
6791 +fi
6792 +
6793 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6794 +  as_basename=basename
6795 +else
6796 +  as_basename=false
6797 +fi
6798 +
6799 +
6800 +# Name of the executable.
6801 +as_me=`$as_basename "$0" ||
6802 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6803 +        X"$0" : 'X\(//\)$' \| \
6804 +        X"$0" : 'X\(/\)$' \| \
6805 +        .     : '\(.\)' 2>/dev/null ||
6806 +echo X/"$0" |
6807 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6808 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
6809 +         /^X\/\(\/\).*/{ s//\1/; q; }
6810 +         s/.*/./; q'`
6811 +
6812 +
6813 +# PATH needs CR, and LINENO needs CR and PATH.
6814 +# Avoid depending upon Character Ranges.
6815 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6816 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6817 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6818 +as_cr_digits='0123456789'
6819 +as_cr_alnum=$as_cr_Letters$as_cr_digits
6820 +
6821 +# The user is always right.
6822 +if test "${PATH_SEPARATOR+set}" != set; then
6823 +  echo "#! /bin/sh" >conftest.sh
6824 +  echo  "exit 0"   >>conftest.sh
6825 +  chmod +x conftest.sh
6826 +  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6827 +    PATH_SEPARATOR=';'
6828 +  else
6829 +    PATH_SEPARATOR=:
6830 +  fi
6831 +  rm -f conftest.sh
6832 +fi
6833 +
6834 +
6835 +  as_lineno_1=$LINENO
6836 +  as_lineno_2=$LINENO
6837 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6838 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
6839 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6840 +  # Find who we are.  Look in the path if we contain no path at all
6841 +  # relative or not.
6842 +  case $0 in
6843 +    *[\\/]* ) as_myself=$0 ;;
6844 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 +for as_dir in $PATH
6846 +do
6847 +  IFS=$as_save_IFS
6848 +  test -z "$as_dir" && as_dir=.
6849 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6850 +done
6851 +
6852 +       ;;
6853 +  esac
6854 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
6855 +  # in which case we are not to be found in the path.
6856 +  if test "x$as_myself" = x; then
6857 +    as_myself=$0
6858 +  fi
6859 +  if test ! -f "$as_myself"; then
6860 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
6861 +   { (exit 1); exit 1; }; }
6862 +  fi
6863 +  case $CONFIG_SHELL in
6864 +  '')
6865 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6867 +do
6868 +  IFS=$as_save_IFS
6869 +  test -z "$as_dir" && as_dir=.
6870 +  for as_base in sh bash ksh sh5; do
6871 +        case $as_dir in
6872 +        /*)
6873 +          if ("$as_dir/$as_base" -c '
6874 +  as_lineno_1=$LINENO
6875 +  as_lineno_2=$LINENO
6876 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6877 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
6878 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6879 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6880 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6881 +            CONFIG_SHELL=$as_dir/$as_base
6882 +            export CONFIG_SHELL
6883 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6884 +          fi;;
6885 +        esac
6886 +       done
6887 +done
6888 +;;
6889 +  esac
6890 +
6891 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6892 +  # uniformly replaced by the line number.  The first 'sed' inserts a
6893 +  # line-number line before each line; the second 'sed' does the real
6894 +  # work.  The second script uses 'N' to pair each line-number line
6895 +  # with the numbered line, and appends trailing '-' during
6896 +  # substitution so that $LINENO is not a special case at line end.
6897 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6898 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6899 +  sed '=' <$as_myself |
6900 +    sed '
6901 +      N
6902 +      s,$,-,
6903 +      : loop
6904 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6905 +      t loop
6906 +      s,-$,,
6907 +      s,^['$as_cr_digits']*\n,,
6908 +    ' >$as_me.lineno &&
6909 +  chmod +x $as_me.lineno ||
6910 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6911 +   { (exit 1); exit 1; }; }
6912 +
6913 +  # Don't try to exec as it changes $[0], causing all sort of problems
6914 +  # (the dirname of $[0] is not the place where we might find the
6915 +  # original and so on.  Autoconf is especially sensible to this).
6916 +  . ./$as_me.lineno
6917 +  # Exit status is that of the last command.
6918 +  exit
6919 +}
6920 +
6921 +
6922 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6923 +  *c*,-n*) ECHO_N= ECHO_C='
6924 +' ECHO_T='     ' ;;
6925 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6926 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6927 +esac
6928 +
6929 +if expr a : '\(a\)' >/dev/null 2>&1; then
6930 +  as_expr=expr
6931 +else
6932 +  as_expr=false
6933 +fi
6934 +
6935 +rm -f conf$$ conf$$.exe conf$$.file
6936 +echo >conf$$.file
6937 +if ln -s conf$$.file conf$$ 2>/dev/null; then
6938 +  # We could just check for DJGPP; but this test a) works b) is more generic
6939 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6940 +  if test -f conf$$.exe; then
6941 +    # Don't use ln at all; we don't have any links
6942 +    as_ln_s='cp -p'
6943 +  else
6944 +    as_ln_s='ln -s'
6945 +  fi
6946 +elif ln conf$$.file conf$$ 2>/dev/null; then
6947 +  as_ln_s=ln
6948 +else
6949 +  as_ln_s='cp -p'
6950 +fi
6951 +rm -f conf$$ conf$$.exe conf$$.file
6952  
6953 -# Defaults:
6954 -ac_help=
6955 +if mkdir -p . 2>/dev/null; then
6956 +  as_mkdir_p=:
6957 +else
6958 +  as_mkdir_p=false
6959 +fi
6960 +
6961 +as_executable_p="test -f"
6962 +
6963 +# Sed expression to map a string onto a valid CPP name.
6964 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6965 +
6966 +# Sed expression to map a string onto a valid variable name.
6967 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6968 +
6969 +
6970 +# IFS
6971 +# We need space, tab and new line, in precisely that order.
6972 +as_nl='
6973 +'
6974 +IFS="  $as_nl"
6975 +
6976 +# CDPATH.
6977 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6978 +
6979 +
6980 +# Name of the host.
6981 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
6982 +# so uname gets run too.
6983 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
6984 +
6985 +exec 6>&1
6986 +
6987 +#
6988 +# Initializations.
6989 +#
6990  ac_default_prefix=/usr/local
6991 -# Any additions from configure.in:
6992 -ac_help="$ac_help
6993 -  --disable-pgp              Disable PGP support"
6994 -ac_help="$ac_help
6995 -  --with-mixmaster[=PATH]    Include Mixmaster support"
6996 -ac_help="$ac_help
6997 -  --with-slang[=DIR]         Use S-Lang instead of ncurses"
6998 -ac_help="$ac_help
6999 -  --with-curses=DIR          Where ncurses is installed "
7000 -ac_help="$ac_help
7001 -  --with-regex               Use the GNU regex library "
7002 -ac_help="$ac_help
7003 -  --with-homespool[=FILE]    File in user's directory where new mail is spooled"
7004 -ac_help="$ac_help
7005 -  --with-mailpath=DIR        Directory where spool mailboxes are located"
7006 -ac_help="$ac_help
7007 -  --enable-external-dotlock  Force use of an external dotlock program"
7008 -ac_help="$ac_help
7009 -  --with-docdir=PATH         Specify where to put the documentation"
7010 -ac_help="$ac_help
7011 -  --with-domain=DOMAIN       Specify your DNS domain name"
7012 -ac_help="$ac_help
7013 -  --enable-pop               Enable POP3 support"
7014 -ac_help="$ac_help
7015 -  --enable-imap              Enable IMAP support"
7016 -ac_help="$ac_help
7017 -    --with-gss[=PFX]         Compile in GSSAPI authentication for IMAP"
7018 -ac_help="$ac_help
7019 -  --with-ssl[=PFX]           Compile in SSL support for POP/IMAP"
7020 -ac_help="$ac_help
7021 -  --with-nss[=PFX]           Compile in SSL support for POP/IMAP via NSS"
7022 -ac_help="$ac_help
7023 -  --with-sasl[=PFX]          Use Cyrus SASL library for POP/IMAP authentication"
7024 -ac_help="$ac_help
7025 -  --enable-debug             Enable debugging support"
7026 -ac_help="$ac_help
7027 -  --enable-flock             Use flock() to lock files"
7028 -ac_help="$ac_help
7029 -  --disable-fcntl            Do NOT use fcntl() to lock files "
7030 -ac_help="$ac_help
7031 -  --disable-warnings         Turn off compiler warnings (not recommended)"
7032 -ac_help="$ac_help
7033 -  --enable-nfs-fix           Work around an NFS with broken attributes caching "
7034 -ac_help="$ac_help
7035 -  --enable-buffy-size        Use file size attribute instead of access time "
7036 -ac_help="$ac_help
7037 -  --enable-mailtool          Enable Sun mailtool attachments support "
7038 -ac_help="$ac_help
7039 -  --enable-locales-fix       The result of isprint() is unreliable "
7040 -ac_help="$ac_help
7041 -  --enable-compressed        Enable compressed folders support "
7042 -ac_help="$ac_help
7043 -  --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)"
7044 -ac_help="$ac_help
7045 -  --enable-exact-address     Enable regeneration of email addresses"
7046 -ac_help="$ac_help
7047 -  --with-iconv[=DIR]  search for libiconv in DIR/include and DIR/lib"
7048 -ac_help="$ac_help
7049 -  --disable-nls           do not use Native Language Support"
7050 -ac_help="$ac_help
7051 -  --with-included-gettext use the GNU gettext library included here"
7052 -ac_help="$ac_help
7053 -  --without-wc-funcs         Do not use the system's wchar_t functions"
7054 +cross_compiling=no
7055 +subdirs=
7056 +MFLAGS=
7057 +MAKEFLAGS=
7058 +SHELL=${CONFIG_SHELL-/bin/sh}
7059 +
7060 +# Maximum number of lines to put in a shell here document.
7061 +# This variable seems obsolete.  It should probably be removed, and
7062 +# only ac_max_sed_lines should be used.
7063 +: ${ac_max_here_lines=38}
7064 +
7065 +# Identity of this package.
7066 +PACKAGE_NAME=
7067 +PACKAGE_TARNAME=
7068 +PACKAGE_VERSION=
7069 +PACKAGE_STRING=
7070 +PACKAGE_BUGREPORT=
7071 +
7072 +ac_unique_file="mutt.h"
7073 +# Factoring default headers for most tests.
7074 +ac_includes_default="\
7075 +#include <stdio.h>
7076 +#if HAVE_SYS_TYPES_H
7077 +# include <sys/types.h>
7078 +#endif
7079 +#if HAVE_SYS_STAT_H
7080 +# include <sys/stat.h>
7081 +#endif
7082 +#if STDC_HEADERS
7083 +# include <stdlib.h>
7084 +# include <stddef.h>
7085 +#else
7086 +# if HAVE_STDLIB_H
7087 +#  include <stdlib.h>
7088 +# endif
7089 +#endif
7090 +#if HAVE_STRING_H
7091 +# if !STDC_HEADERS && HAVE_MEMORY_H
7092 +#  include <memory.h>
7093 +# endif
7094 +# include <string.h>
7095 +#endif
7096 +#if HAVE_STRINGS_H
7097 +# include <strings.h>
7098 +#endif
7099 +#if HAVE_INTTYPES_H
7100 +# include <inttypes.h>
7101 +#else
7102 +# if HAVE_STDINT_H
7103 +#  include <stdint.h>
7104 +# endif
7105 +#endif
7106 +#if HAVE_UNISTD_H
7107 +# include <unistd.h>
7108 +#endif"
7109 +
7110  
7111  # Initialize some variables set by options.
7112 +ac_init_help=
7113 +ac_init_version=false
7114  # The variables have the same names as the options, with
7115  # dashes changed to underlines.
7116 -build=NONE
7117 -cache_file=./config.cache
7118 +cache_file=/dev/null
7119  exec_prefix=NONE
7120 -host=NONE
7121  no_create=
7122 -nonopt=NONE
7123  no_recursion=
7124  prefix=NONE
7125  program_prefix=NONE
7126 @@ -91,34 +331,31 @@
7127  silent=
7128  site=
7129  srcdir=
7130 -target=NONE
7131  verbose=
7132  x_includes=NONE
7133  x_libraries=NONE
7134 +
7135 +# Installation directory options.
7136 +# These are left unexpanded so users can "make install exec_prefix=/foo"
7137 +# and all the variables that are supposed to be based on exec_prefix
7138 +# by default will actually change.
7139 +# Use braces instead of parens because sh, perl, etc. also accept them.
7140  bindir='${exec_prefix}/bin'
7141  sbindir='${exec_prefix}/sbin'
7142 -libexecdir='${exec_prefix}/libexec'
7143 +libexecdir='${exec_prefix}/lib'
7144  datadir='${prefix}/share'
7145  sysconfdir='${prefix}/etc'
7146 -sharedstatedir='${prefix}/com'
7147 -localstatedir='${prefix}/var'
7148 +sharedstatedir='/var/lib'
7149 +localstatedir='/var/lib'
7150  libdir='${exec_prefix}/lib'
7151  includedir='${prefix}/include'
7152  oldincludedir='/usr/include'
7153 -infodir='${prefix}/info'
7154 -mandir='${prefix}/man'
7155 -
7156 -# Initialize some other variables.
7157 -subdirs=
7158 -MFLAGS= MAKEFLAGS=
7159 -SHELL=${CONFIG_SHELL-/bin/sh}
7160 -# Maximum number of lines to put in a shell here document.
7161 -ac_max_here_lines=12
7162 +infodir='/usr/share/info'
7163 +mandir='/usr/share/man'
7164  
7165  ac_prev=
7166  for ac_option
7167  do
7168 -
7169    # If the previous option needs an argument, assign it.
7170    if test -n "$ac_prev"; then
7171      eval "$ac_prev=\$ac_option"
7172 @@ -126,59 +363,59 @@
7173      continue
7174    fi
7175  
7176 -  case "$ac_option" in
7177 -  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
7178 -  *) ac_optarg= ;;
7179 -  esac
7180 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
7181  
7182    # Accept the important Cygnus configure options, so we can diagnose typos.
7183  
7184 -  case "$ac_option" in
7185 +  case $ac_option in
7186  
7187    -bindir | --bindir | --bindi | --bind | --bin | --bi)
7188      ac_prev=bindir ;;
7189    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
7190 -    bindir="$ac_optarg" ;;
7191 +    bindir=$ac_optarg ;;
7192  
7193    -build | --build | --buil | --bui | --bu)
7194 -    ac_prev=build ;;
7195 +    ac_prev=build_alias ;;
7196    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7197 -    build="$ac_optarg" ;;
7198 +    build_alias=$ac_optarg ;;
7199  
7200    -cache-file | --cache-file | --cache-fil | --cache-fi \
7201    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7202      ac_prev=cache_file ;;
7203    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7204    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7205 -    cache_file="$ac_optarg" ;;
7206 +    cache_file=$ac_optarg ;;
7207 +
7208 +  --config-cache | -C)
7209 +    cache_file=config.cache ;;
7210  
7211    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
7212      ac_prev=datadir ;;
7213    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
7214    | --da=*)
7215 -    datadir="$ac_optarg" ;;
7216 +    datadir=$ac_optarg ;;
7217  
7218    -disable-* | --disable-*)
7219 -    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
7220 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
7221      # Reject names that are not valid shell variable names.
7222 -    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
7223 -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
7224 -    fi
7225 -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
7226 -    eval "enable_${ac_feature}=no" ;;
7227 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
7228 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
7229 +   { (exit 1); exit 1; }; }
7230 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
7231 +    eval "enable_$ac_feature=no" ;;
7232  
7233    -enable-* | --enable-*)
7234 -    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
7235 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
7236      # Reject names that are not valid shell variable names.
7237 -    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
7238 -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
7239 -    fi
7240 -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
7241 -    case "$ac_option" in
7242 -      *=*) ;;
7243 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
7244 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
7245 +   { (exit 1); exit 1; }; }
7246 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
7247 +    case $ac_option in
7248 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
7249        *) ac_optarg=yes ;;
7250      esac
7251 -    eval "enable_${ac_feature}='$ac_optarg'" ;;
7252 +    eval "enable_$ac_feature='$ac_optarg'" ;;
7253  
7254    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
7255    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
7256 @@ -187,95 +424,47 @@
7257    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
7258    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
7259    | --exec=* | --exe=* | --ex=*)
7260 -    exec_prefix="$ac_optarg" ;;
7261 +    exec_prefix=$ac_optarg ;;
7262  
7263    -gas | --gas | --ga | --g)
7264      # Obsolete; use --with-gas.
7265      with_gas=yes ;;
7266  
7267 -  -help | --help | --hel | --he)
7268 -    # Omit some internal or obsolete options to make the list less imposing.
7269 -    # This message is too long to be a string in the A/UX 3.1 sh.
7270 -    cat << EOF
7271 -Usage: configure [options] [host]
7272 -Options: [defaults in brackets after descriptions]
7273 -Configuration:
7274 -  --cache-file=FILE       cache test results in FILE
7275 -  --help                  print this message
7276 -  --no-create             do not create output files
7277 -  --quiet, --silent       do not print \`checking...' messages
7278 -  --version               print the version of autoconf that created configure
7279 -Directory and file names:
7280 -  --prefix=PREFIX         install architecture-independent files in PREFIX
7281 -                          [$ac_default_prefix]
7282 -  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
7283 -                          [same as prefix]
7284 -  --bindir=DIR            user executables in DIR [EPREFIX/bin]
7285 -  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
7286 -  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
7287 -  --datadir=DIR           read-only architecture-independent data in DIR
7288 -                          [PREFIX/share]
7289 -  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
7290 -  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
7291 -                          [PREFIX/com]
7292 -  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
7293 -  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
7294 -  --includedir=DIR        C header files in DIR [PREFIX/include]
7295 -  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
7296 -  --infodir=DIR           info documentation in DIR [PREFIX/info]
7297 -  --mandir=DIR            man documentation in DIR [PREFIX/man]
7298 -  --srcdir=DIR            find the sources in DIR [configure dir or ..]
7299 -  --program-prefix=PREFIX prepend PREFIX to installed program names
7300 -  --program-suffix=SUFFIX append SUFFIX to installed program names
7301 -  --program-transform-name=PROGRAM
7302 -                          run sed PROGRAM on installed program names
7303 -EOF
7304 -    cat << EOF
7305 -Host type:
7306 -  --build=BUILD           configure for building on BUILD [BUILD=HOST]
7307 -  --host=HOST             configure for HOST [guessed]
7308 -  --target=TARGET         configure for TARGET [TARGET=HOST]
7309 -Features and packages:
7310 -  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
7311 -  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
7312 -  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
7313 -  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
7314 -  --x-includes=DIR        X include files are in DIR
7315 -  --x-libraries=DIR       X library files are in DIR
7316 -EOF
7317 -    if test -n "$ac_help"; then
7318 -      echo "--enable and --with options recognized:$ac_help"
7319 -    fi
7320 -    exit 0 ;;
7321 +  -help | --help | --hel | --he | -h)
7322 +    ac_init_help=long ;;
7323 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
7324 +    ac_init_help=recursive ;;
7325 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
7326 +    ac_init_help=short ;;
7327  
7328    -host | --host | --hos | --ho)
7329 -    ac_prev=host ;;
7330 +    ac_prev=host_alias ;;
7331    -host=* | --host=* | --hos=* | --ho=*)
7332 -    host="$ac_optarg" ;;
7333 +    host_alias=$ac_optarg ;;
7334  
7335    -includedir | --includedir | --includedi | --included | --include \
7336    | --includ | --inclu | --incl | --inc)
7337      ac_prev=includedir ;;
7338    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
7339    | --includ=* | --inclu=* | --incl=* | --inc=*)
7340 -    includedir="$ac_optarg" ;;
7341 +    includedir=$ac_optarg ;;
7342  
7343    -infodir | --infodir | --infodi | --infod | --info | --inf)
7344      ac_prev=infodir ;;
7345    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
7346 -    infodir="$ac_optarg" ;;
7347 +    infodir=$ac_optarg ;;
7348  
7349    -libdir | --libdir | --libdi | --libd)
7350      ac_prev=libdir ;;
7351    -libdir=* | --libdir=* | --libdi=* | --libd=*)
7352 -    libdir="$ac_optarg" ;;
7353 +    libdir=$ac_optarg ;;
7354  
7355    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
7356    | --libexe | --libex | --libe)
7357      ac_prev=libexecdir ;;
7358    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
7359    | --libexe=* | --libex=* | --libe=*)
7360 -    libexecdir="$ac_optarg" ;;
7361 +    libexecdir=$ac_optarg ;;
7362  
7363    -localstatedir | --localstatedir | --localstatedi | --localstated \
7364    | --localstate | --localstat | --localsta | --localst \
7365 @@ -284,19 +473,19 @@
7366    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7367    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
7368    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
7369 -    localstatedir="$ac_optarg" ;;
7370 +    localstatedir=$ac_optarg ;;
7371  
7372    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
7373      ac_prev=mandir ;;
7374    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
7375 -    mandir="$ac_optarg" ;;
7376 +    mandir=$ac_optarg ;;
7377  
7378    -nfp | --nfp | --nf)
7379      # Obsolete; use --without-fp.
7380      with_fp=no ;;
7381  
7382    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7383 -  | --no-cr | --no-c)
7384 +  | --no-cr | --no-c | -n)
7385      no_create=yes ;;
7386  
7387    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
7388 @@ -310,26 +499,26 @@
7389    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
7390    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
7391    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
7392 -    oldincludedir="$ac_optarg" ;;
7393 +    oldincludedir=$ac_optarg ;;
7394  
7395    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7396      ac_prev=prefix ;;
7397    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7398 -    prefix="$ac_optarg" ;;
7399 +    prefix=$ac_optarg ;;
7400  
7401    -program-prefix | --program-prefix | --program-prefi | --program-pref \
7402    | --program-pre | --program-pr | --program-p)
7403      ac_prev=program_prefix ;;
7404    -program-prefix=* | --program-prefix=* | --program-prefi=* \
7405    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
7406 -    program_prefix="$ac_optarg" ;;
7407 +    program_prefix=$ac_optarg ;;
7408  
7409    -program-suffix | --program-suffix | --program-suffi | --program-suff \
7410    | --program-suf | --program-su | --program-s)
7411      ac_prev=program_suffix ;;
7412    -program-suffix=* | --program-suffix=* | --program-suffi=* \
7413    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
7414 -    program_suffix="$ac_optarg" ;;
7415 +    program_suffix=$ac_optarg ;;
7416  
7417    -program-transform-name | --program-transform-name \
7418    | --program-transform-nam | --program-transform-na \
7419 @@ -346,7 +535,7 @@
7420    | --program-transfo=* | --program-transf=* \
7421    | --program-trans=* | --program-tran=* \
7422    | --progr-tra=* | --program-tr=* | --program-t=*)
7423 -    program_transform_name="$ac_optarg" ;;
7424 +    program_transform_name=$ac_optarg ;;
7425  
7426    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7427    | -silent | --silent | --silen | --sile | --sil)
7428 @@ -356,7 +545,7 @@
7429      ac_prev=sbindir ;;
7430    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
7431    | --sbi=* | --sb=*)
7432 -    sbindir="$ac_optarg" ;;
7433 +    sbindir=$ac_optarg ;;
7434  
7435    -sharedstatedir | --sharedstatedir | --sharedstatedi \
7436    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
7437 @@ -367,58 +556,57 @@
7438    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
7439    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
7440    | --sha=* | --sh=*)
7441 -    sharedstatedir="$ac_optarg" ;;
7442 +    sharedstatedir=$ac_optarg ;;
7443  
7444    -site | --site | --sit)
7445      ac_prev=site ;;
7446    -site=* | --site=* | --sit=*)
7447 -    site="$ac_optarg" ;;
7448 +    site=$ac_optarg ;;
7449  
7450    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7451      ac_prev=srcdir ;;
7452    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7453 -    srcdir="$ac_optarg" ;;
7454 +    srcdir=$ac_optarg ;;
7455  
7456    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
7457    | --syscon | --sysco | --sysc | --sys | --sy)
7458      ac_prev=sysconfdir ;;
7459    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
7460    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
7461 -    sysconfdir="$ac_optarg" ;;
7462 +    sysconfdir=$ac_optarg ;;
7463  
7464    -target | --target | --targe | --targ | --tar | --ta | --t)
7465 -    ac_prev=target ;;
7466 +    ac_prev=target_alias ;;
7467    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
7468 -    target="$ac_optarg" ;;
7469 +    target_alias=$ac_optarg ;;
7470  
7471    -v | -verbose | --verbose | --verbos | --verbo | --verb)
7472      verbose=yes ;;
7473  
7474 -  -version | --version | --versio | --versi | --vers)
7475 -    echo "configure generated by autoconf version 2.13"
7476 -    exit 0 ;;
7477 +  -version | --version | --versio | --versi | --vers | -V)
7478 +    ac_init_version=: ;;
7479  
7480    -with-* | --with-*)
7481 -    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
7482 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
7483      # Reject names that are not valid shell variable names.
7484 -    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
7485 -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
7486 -    fi
7487 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
7488 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
7489 +   { (exit 1); exit 1; }; }
7490      ac_package=`echo $ac_package| sed 's/-/_/g'`
7491 -    case "$ac_option" in
7492 -      *=*) ;;
7493 +    case $ac_option in
7494 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
7495        *) ac_optarg=yes ;;
7496      esac
7497 -    eval "with_${ac_package}='$ac_optarg'" ;;
7498 +    eval "with_$ac_package='$ac_optarg'" ;;
7499  
7500    -without-* | --without-*)
7501 -    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
7502 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
7503      # Reject names that are not valid shell variable names.
7504 -    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
7505 -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
7506 -    fi
7507 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
7508 -    eval "with_${ac_package}=no" ;;
7509 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
7510 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
7511 +   { (exit 1); exit 1; }; }
7512 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
7513 +    eval "with_$ac_package=no" ;;
7514  
7515    --x)
7516      # Obsolete; use --with-x.
7517 @@ -429,99 +617,110 @@
7518      ac_prev=x_includes ;;
7519    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
7520    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
7521 -    x_includes="$ac_optarg" ;;
7522 +    x_includes=$ac_optarg ;;
7523  
7524    -x-libraries | --x-libraries | --x-librarie | --x-librari \
7525    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
7526      ac_prev=x_libraries ;;
7527    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
7528    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
7529 -    x_libraries="$ac_optarg" ;;
7530 +    x_libraries=$ac_optarg ;;
7531  
7532 -  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
7533 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
7534 +Try \`$0 --help' for more information." >&2
7535 +   { (exit 1); exit 1; }; }
7536      ;;
7537  
7538 +  *=*)
7539 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
7540 +    # Reject names that are not valid shell variable names.
7541 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
7542 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
7543 +   { (exit 1); exit 1; }; }
7544 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
7545 +    eval "$ac_envvar='$ac_optarg'"
7546 +    export $ac_envvar ;;
7547 +
7548    *)
7549 -    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
7550 -      echo "configure: warning: $ac_option: invalid host type" 1>&2
7551 -    fi
7552 -    if test "x$nonopt" != xNONE; then
7553 -      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
7554 -    fi
7555 -    nonopt="$ac_option"
7556 +    # FIXME: should be removed in autoconf 3.0.
7557 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
7558 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7559 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
7560 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
7561      ;;
7562  
7563    esac
7564  done
7565  
7566  if test -n "$ac_prev"; then
7567 -  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
7568 -fi
7569 -
7570 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7571 -
7572 -# File descriptor usage:
7573 -# 0 standard input
7574 -# 1 file creation
7575 -# 2 errors and warnings
7576 -# 3 some systems may open it to /dev/tty
7577 -# 4 used on the Kubota Titan
7578 -# 6 checking for... messages and results
7579 -# 5 compiler messages saved in config.log
7580 -if test "$silent" = yes; then
7581 -  exec 6>/dev/null
7582 -else
7583 -  exec 6>&1
7584 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
7585 +  { echo "$as_me: error: missing argument to $ac_option" >&2
7586 +   { (exit 1); exit 1; }; }
7587  fi
7588 -exec 5>./config.log
7589  
7590 -echo "\
7591 -This file contains any messages produced by compilers while
7592 -running configure, to aid debugging if configure makes a mistake.
7593 -" 1>&5
7594 +# Be sure to have absolute paths.
7595 +for ac_var in exec_prefix prefix
7596 +do
7597 +  eval ac_val=$`echo $ac_var`
7598 +  case $ac_val in
7599 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
7600 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7601 +   { (exit 1); exit 1; }; };;
7602 +  esac
7603 +done
7604  
7605 -# Strip out --no-create and --no-recursion so they do not pile up.
7606 -# Also quote any args containing shell metacharacters.
7607 -ac_configure_args=
7608 -for ac_arg
7609 +# Be sure to have absolute paths.
7610 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
7611 +              localstatedir libdir includedir oldincludedir infodir mandir
7612  do
7613 -  case "$ac_arg" in
7614 -  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
7615 -  | --no-cr | --no-c) ;;
7616 -  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
7617 -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
7618 -  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
7619 -  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
7620 -  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
7621 +  eval ac_val=$`echo $ac_var`
7622 +  case $ac_val in
7623 +    [\\/$]* | ?:[\\/]* ) ;;
7624 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7625 +   { (exit 1); exit 1; }; };;
7626    esac
7627  done
7628  
7629 -# NLS nuisances.
7630 -# Only set these to C if already set.  These must not be set unconditionally
7631 -# because not all systems understand e.g. LANG=C (notably SCO).
7632 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
7633 -# Non-C LC_CTYPE values break the ctype check.
7634 -if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
7635 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
7636 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
7637 -if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
7638 +# There might be people who depend on the old broken behavior: `$host'
7639 +# used to hold the argument of --host etc.
7640 +# FIXME: To remove some day.
7641 +build=$build_alias
7642 +host=$host_alias
7643 +target=$target_alias
7644 +
7645 +# FIXME: To remove some day.
7646 +if test "x$host_alias" != x; then
7647 +  if test "x$build_alias" = x; then
7648 +    cross_compiling=maybe
7649 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
7650 +    If a cross compiler is detected then cross compile mode will be used." >&2
7651 +  elif test "x$build_alias" != "x$host_alias"; then
7652 +    cross_compiling=yes
7653 +  fi
7654 +fi
7655  
7656 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
7657 -rm -rf conftest* confdefs.h
7658 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
7659 -echo > confdefs.h
7660 +ac_tool_prefix=
7661 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
7662 +
7663 +test "$silent" = yes && exec 6>/dev/null
7664  
7665 -# A filename unique to this package, relative to the directory that
7666 -# configure is in, which we can look for to find out if srcdir is correct.
7667 -ac_unique_file=mutt.h
7668  
7669  # Find the source files, if location was not specified.
7670  if test -z "$srcdir"; then
7671    ac_srcdir_defaulted=yes
7672    # Try the directory containing this script, then its parent.
7673 -  ac_prog=$0
7674 -  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
7675 -  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
7676 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
7677 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7678 +         X"$0" : 'X\(//\)[^/]' \| \
7679 +         X"$0" : 'X\(//\)$' \| \
7680 +         X"$0" : 'X\(/\)' \| \
7681 +         .     : '\(.\)' 2>/dev/null ||
7682 +echo X"$0" |
7683 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7684 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7685 +         /^X\(\/\/\)$/{ s//\1/; q; }
7686 +         /^X\(\/\).*/{ s//\1/; q; }
7687 +         s/.*/./; q'`
7688    srcdir=$ac_confdir
7689    if test ! -r $srcdir/$ac_unique_file; then
7690      srcdir=..
7691 @@ -531,13 +730,415 @@
7692  fi
7693  if test ! -r $srcdir/$ac_unique_file; then
7694    if test "$ac_srcdir_defaulted" = yes; then
7695 -    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
7696 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
7697 +   { (exit 1); exit 1; }; }
7698    else
7699 -    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
7700 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
7701 +   { (exit 1); exit 1; }; }
7702    fi
7703  fi
7704 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
7705 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
7706 +ac_env_build_alias_set=${build_alias+set}
7707 +ac_env_build_alias_value=$build_alias
7708 +ac_cv_env_build_alias_set=${build_alias+set}
7709 +ac_cv_env_build_alias_value=$build_alias
7710 +ac_env_host_alias_set=${host_alias+set}
7711 +ac_env_host_alias_value=$host_alias
7712 +ac_cv_env_host_alias_set=${host_alias+set}
7713 +ac_cv_env_host_alias_value=$host_alias
7714 +ac_env_target_alias_set=${target_alias+set}
7715 +ac_env_target_alias_value=$target_alias
7716 +ac_cv_env_target_alias_set=${target_alias+set}
7717 +ac_cv_env_target_alias_value=$target_alias
7718 +ac_env_CC_set=${CC+set}
7719 +ac_env_CC_value=$CC
7720 +ac_cv_env_CC_set=${CC+set}
7721 +ac_cv_env_CC_value=$CC
7722 +ac_env_CFLAGS_set=${CFLAGS+set}
7723 +ac_env_CFLAGS_value=$CFLAGS
7724 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
7725 +ac_cv_env_CFLAGS_value=$CFLAGS
7726 +ac_env_LDFLAGS_set=${LDFLAGS+set}
7727 +ac_env_LDFLAGS_value=$LDFLAGS
7728 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
7729 +ac_cv_env_LDFLAGS_value=$LDFLAGS
7730 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
7731 +ac_env_CPPFLAGS_value=$CPPFLAGS
7732 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
7733 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
7734 +ac_env_CPP_set=${CPP+set}
7735 +ac_env_CPP_value=$CPP
7736 +ac_cv_env_CPP_set=${CPP+set}
7737 +ac_cv_env_CPP_value=$CPP
7738 +
7739 +#
7740 +# Report the --help message.
7741 +#
7742 +if test "$ac_init_help" = "long"; then
7743 +  # Omit some internal or obsolete options to make the list less imposing.
7744 +  # This message is too long to be a string in the A/UX 3.1 sh.
7745 +  cat <<_ACEOF
7746 +\`configure' configures this package to adapt to many kinds of systems.
7747 +
7748 +Usage: $0 [OPTION]... [VAR=VALUE]...
7749 +
7750 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
7751 +VAR=VALUE.  See below for descriptions of some of the useful variables.
7752 +
7753 +Defaults for the options are specified in brackets.
7754 +
7755 +Configuration:
7756 +  -h, --help              display this help and exit
7757 +      --help=short        display options specific to this package
7758 +      --help=recursive    display the short help of all the included packages
7759 +  -V, --version           display version information and exit
7760 +  -q, --quiet, --silent   do not print \`checking...' messages
7761 +      --cache-file=FILE   cache test results in FILE [disabled]
7762 +  -C, --config-cache      alias for \`--cache-file=config.cache'
7763 +  -n, --no-create         do not create output files
7764 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
7765 +
7766 +_ACEOF
7767 +
7768 +  cat <<_ACEOF
7769 +Installation directories:
7770 +  --prefix=PREFIX         install architecture-independent files in PREFIX
7771 +                          [$ac_default_prefix]
7772 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
7773 +                          [PREFIX]
7774 +
7775 +By default, \`make install' will install all the files in
7776 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
7777 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
7778 +for instance \`--prefix=\$HOME'.
7779 +
7780 +For better control, use the options below.
7781 +
7782 +Fine tuning of the installation directories:
7783 +  --bindir=DIR           user executables [EPREFIX/bin]
7784 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
7785 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
7786 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
7787 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
7788 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
7789 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
7790 +  --libdir=DIR           object code libraries [EPREFIX/lib]
7791 +  --includedir=DIR       C header files [PREFIX/include]
7792 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
7793 +  --infodir=DIR          info documentation [PREFIX/info]
7794 +  --mandir=DIR           man documentation [PREFIX/man]
7795 +_ACEOF
7796 +
7797 +  cat <<\_ACEOF
7798 +
7799 +Program names:
7800 +  --program-prefix=PREFIX            prepend PREFIX to installed program names
7801 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
7802 +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
7803 +
7804 +System types:
7805 +  --build=BUILD     configure for building on BUILD [guessed]
7806 +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
7807 +_ACEOF
7808 +fi
7809 +
7810 +if test -n "$ac_init_help"; then
7811 +
7812 +  cat <<\_ACEOF
7813 +
7814 +Optional Features:
7815 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
7816 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
7817 +  --disable-dependency-tracking Speeds up one-time builds
7818 +  --enable-dependency-tracking  Do not reject slow dependency extractors
7819 +  --disable-pgp              Disable PGP support
7820 +  --enable-external-dotlock  Force use of an external dotlock program
7821 +  --enable-pop               Enable POP3 support
7822 +  --enable-imap              Enable IMAP support
7823 +  --enable-nntp              Enable NNTP support
7824 +  --enable-debug             Enable debugging support
7825 +  --enable-flock             Use flock() to lock files
7826 +  --disable-fcntl            Do NOT use fcntl() to lock files
7827 +  --disable-warnings         Turn off compiler warnings (not recommended)
7828 +  --enable-nfs-fix           Work around an NFS with broken attributes caching
7829 +  --enable-buffy-size        Use file size attribute instead of access time
7830 +  --enable-mailtool          Enable Sun mailtool attachments support
7831 +  --enable-locales-fix       The result of isprint() is unreliable
7832 +  --enable-compressed        Enable compressed folders support
7833 +  --enable-exact-address     Enable regeneration of email addresses
7834 +  --disable-nls           do not use Native Language Support
7835 +
7836 +Optional Packages:
7837 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
7838 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
7839 +  --with-mixmaster=PATH    Include Mixmaster support
7840 +  --with-slang=DIR         Use S-Lang instead of ncurses
7841 +  --with-curses=DIR          Where ncurses is installed
7842 +  --with-regex               Use the GNU regex library
7843 +  --with-homespool=FILE    File in user's directory where new mail is spooled
7844 +  --with-mailpath=DIR        Directory where spool mailboxes are located
7845 +  --with-docdir=PATH         Specify where to put the documentation
7846 +  --with-domain=DOMAIN       Specify your DNS domain name
7847 +    --with-gss=PFX         Compile in GSSAPI authentication for IMAP
7848 +  --with-ssl=PFX           Compile in SSL support for POP/IMAP
7849 +  --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
7850 +  --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
7851 +  --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
7852 +  --with-iconv=DIR  search for libiconv in DIR/include and DIR/lib
7853 +  --with-included-gettext use the GNU gettext library included here
7854 +  --without-wc-funcs         Do not use the system's wchar_t functions
7855 +
7856 +Some influential environment variables:
7857 +  CC          C compiler command
7858 +  CFLAGS      C compiler flags
7859 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
7860 +              nonstandard directory <lib dir>
7861 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
7862 +              headers in a nonstandard directory <include dir>
7863 +  CPP         C preprocessor
7864 +
7865 +Use these variables to override the choices made by `configure' or to help
7866 +it to find libraries and programs with nonstandard names/locations.
7867 +
7868 +_ACEOF
7869 +fi
7870 +
7871 +if test "$ac_init_help" = "recursive"; then
7872 +  # If there are subdirs, report their specific --help.
7873 +  ac_popdir=`pwd`
7874 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7875 +    test -d $ac_dir || continue
7876 +    ac_builddir=.
7877 +
7878 +if test "$ac_dir" != .; then
7879 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7880 +  # A "../" for each directory in $ac_dir_suffix.
7881 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7882 +else
7883 +  ac_dir_suffix= ac_top_builddir=
7884 +fi
7885 +
7886 +case $srcdir in
7887 +  .)  # No --srcdir option.  We are building in place.
7888 +    ac_srcdir=.
7889 +    if test -z "$ac_top_builddir"; then
7890 +       ac_top_srcdir=.
7891 +    else
7892 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7893 +    fi ;;
7894 +  [\\/]* | ?:[\\/]* )  # Absolute path.
7895 +    ac_srcdir=$srcdir$ac_dir_suffix;
7896 +    ac_top_srcdir=$srcdir ;;
7897 +  *) # Relative path.
7898 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7899 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7900 +esac
7901 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7902 +# absolute.
7903 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7904 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7905 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7906 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7907 +
7908 +    cd $ac_dir
7909 +    # Check for guested configure; otherwise get Cygnus style configure.
7910 +    if test -f $ac_srcdir/configure.gnu; then
7911 +      echo
7912 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
7913 +    elif test -f $ac_srcdir/configure; then
7914 +      echo
7915 +      $SHELL $ac_srcdir/configure  --help=recursive
7916 +    elif test -f $ac_srcdir/configure.ac ||
7917 +           test -f $ac_srcdir/configure.in; then
7918 +      echo
7919 +      $ac_configure --help
7920 +    else
7921 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7922 +    fi
7923 +    cd $ac_popdir
7924 +  done
7925 +fi
7926 +
7927 +test -n "$ac_init_help" && exit 0
7928 +if $ac_init_version; then
7929 +  cat <<\_ACEOF
7930 +configure
7931 +generated by GNU Autoconf 2.53a
7932 +
7933 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7934 +Free Software Foundation, Inc.
7935 +This configure script is free software; the Free Software Foundation
7936 +gives unlimited permission to copy, distribute and modify it.
7937 +_ACEOF
7938 +  exit 0
7939 +fi
7940 +exec 5>config.log
7941 +cat >&5 <<_ACEOF
7942 +This file contains any messages produced by compilers while
7943 +running configure, to aid debugging if configure makes a mistake.
7944 +
7945 +It was created by $as_me, which was
7946 +generated by GNU Autoconf 2.53a.  Invocation command line was
7947 +
7948 +  $ $0 $@
7949 +
7950 +_ACEOF
7951 +{
7952 +cat <<_ASUNAME
7953 +## --------- ##
7954 +## Platform. ##
7955 +## --------- ##
7956 +
7957 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
7958 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
7959 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
7960 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
7961 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
7962 +
7963 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
7964 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
7965 +
7966 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
7967 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
7968 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7969 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
7970 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
7971 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
7972 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
7973 +
7974 +_ASUNAME
7975 +
7976 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 +for as_dir in $PATH
7978 +do
7979 +  IFS=$as_save_IFS
7980 +  test -z "$as_dir" && as_dir=.
7981 +  echo "PATH: $as_dir"
7982 +done
7983 +
7984 +} >&5
7985 +
7986 +cat >&5 <<_ACEOF
7987 +
7988 +
7989 +## ----------- ##
7990 +## Core tests. ##
7991 +## ----------- ##
7992 +
7993 +_ACEOF
7994 +
7995 +
7996 +# Keep a trace of the command line.
7997 +# Strip out --no-create and --no-recursion so they do not pile up.
7998 +# Also quote any args containing shell meta-characters.
7999 +ac_configure_args=
8000 +ac_sep=
8001 +for ac_arg
8002 +do
8003 +  case $ac_arg in
8004 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8005 +  | --no-cr | --no-c | -n ) continue ;;
8006 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8007 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
8008 +    continue ;;
8009 +  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
8010 +    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8011 +  esac
8012 +  case " $ac_configure_args " in
8013 +    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
8014 +    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
8015 +       ac_sep=" " ;;
8016 +  esac
8017 +  # Get rid of the leading space.
8018 +done
8019 +
8020 +# When interrupted or exit'd, cleanup temporary files, and complete
8021 +# config.log.  We remove comments because anyway the quotes in there
8022 +# would cause problems or look ugly.
8023 +# WARNING: Be sure not to use single quotes in there, as some shells,
8024 +# such as our DU 5.0 friend, will then `close' the trap.
8025 +trap 'exit_status=$?
8026 +  # Save into config.log some information that might help in debugging.
8027 +  {
8028 +    echo
8029 +    cat <<\_ASBOX
8030 +## ---------------- ##
8031 +## Cache variables. ##
8032 +## ---------------- ##
8033 +_ASBOX
8034 +    echo
8035 +    # The following way of writing the cache mishandles newlines in values,
8036 +{
8037 +  (set) 2>&1 |
8038 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
8039 +    *ac_space=\ *)
8040 +      sed -n \
8041 +        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
8042 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
8043 +      ;;
8044 +    *)
8045 +      sed -n \
8046 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8047 +      ;;
8048 +    esac;
8049 +}
8050 +    echo
8051 +    if test -s confdefs.h; then
8052 +      cat <<\_ASBOX
8053 +## ----------- ##
8054 +## confdefs.h. ##
8055 +## ----------- ##
8056 +_ASBOX
8057 +      echo
8058 +      sed "/^$/d" confdefs.h
8059 +      echo
8060 +    fi
8061 +    test "$ac_signal" != 0 &&
8062 +      echo "$as_me: caught signal $ac_signal"
8063 +    echo "$as_me: exit $exit_status"
8064 +  } >&5
8065 +  rm -f core core.* *.core &&
8066 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
8067 +    exit $exit_status
8068 +     ' 0
8069 +for ac_signal in 1 2 13 15; do
8070 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
8071 +done
8072 +ac_signal=0
8073 +
8074 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
8075 +rm -rf conftest* confdefs.h
8076 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
8077 +echo >confdefs.h
8078 +
8079 +# Predefined preprocessor variables.
8080 +
8081 +cat >>confdefs.h <<_ACEOF
8082 +#define PACKAGE_NAME "$PACKAGE_NAME"
8083 +_ACEOF
8084 +
8085 +
8086 +cat >>confdefs.h <<_ACEOF
8087 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
8088 +_ACEOF
8089 +
8090 +
8091 +cat >>confdefs.h <<_ACEOF
8092 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
8093 +_ACEOF
8094 +
8095  
8096 +cat >>confdefs.h <<_ACEOF
8097 +#define PACKAGE_STRING "$PACKAGE_STRING"
8098 +_ACEOF
8099 +
8100 +
8101 +cat >>confdefs.h <<_ACEOF
8102 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
8103 +_ACEOF
8104 +
8105 +
8106 +# Let the site file select an alternate cache file if it wants to.
8107  # Prefer explicitly selected file to automatically selected ones.
8108  if test -z "$CONFIG_SITE"; then
8109    if test "x$prefix" != xNONE; then
8110 @@ -548,48 +1149,116 @@
8111  fi
8112  for ac_site_file in $CONFIG_SITE; do
8113    if test -r "$ac_site_file"; then
8114 -    echo "loading site script $ac_site_file"
8115 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
8116 +echo "$as_me: loading site script $ac_site_file" >&6;}
8117 +    sed 's/^/| /' "$ac_site_file" >&5
8118      . "$ac_site_file"
8119    fi
8120  done
8121  
8122  if test -r "$cache_file"; then
8123 -  echo "loading cache $cache_file"
8124 -  . $cache_file
8125 +  # Some versions of bash will fail to source /dev/null (special
8126 +  # files actually), so we avoid doing that.
8127 +  if test -f "$cache_file"; then
8128 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
8129 +echo "$as_me: loading cache $cache_file" >&6;}
8130 +    case $cache_file in
8131 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
8132 +      *)                      . ./$cache_file;;
8133 +    esac
8134 +  fi
8135  else
8136 -  echo "creating cache $cache_file"
8137 -  > $cache_file
8138 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
8139 +echo "$as_me: creating cache $cache_file" >&6;}
8140 +  >$cache_file
8141 +fi
8142 +
8143 +# Check that the precious variables saved in the cache have kept the same
8144 +# value.
8145 +ac_cache_corrupted=false
8146 +for ac_var in `(set) 2>&1 |
8147 +               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
8148 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
8149 +  eval ac_new_set=\$ac_env_${ac_var}_set
8150 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
8151 +  eval ac_new_val="\$ac_env_${ac_var}_value"
8152 +  case $ac_old_set,$ac_new_set in
8153 +    set,)
8154 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8155 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
8156 +      ac_cache_corrupted=: ;;
8157 +    ,set)
8158 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
8159 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
8160 +      ac_cache_corrupted=: ;;
8161 +    ,);;
8162 +    *)
8163 +      if test "x$ac_old_val" != "x$ac_new_val"; then
8164 +        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
8165 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8166 +        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
8167 +echo "$as_me:   former value:  $ac_old_val" >&2;}
8168 +        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
8169 +echo "$as_me:   current value: $ac_new_val" >&2;}
8170 +        ac_cache_corrupted=:
8171 +      fi;;
8172 +  esac
8173 +  # Pass precious variables to config.status.
8174 +  if test "$ac_new_set" = set; then
8175 +    case $ac_new_val in
8176 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
8177 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
8178 +    *) ac_arg=$ac_var=$ac_new_val ;;
8179 +    esac
8180 +    case " $ac_configure_args " in
8181 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
8182 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
8183 +    esac
8184 +  fi
8185 +done
8186 +if $ac_cache_corrupted; then
8187 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
8188 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
8189 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
8190 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
8191 +   { (exit 1); exit 1; }; }
8192  fi
8193  
8194  ac_ext=c
8195 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8196  ac_cpp='$CPP $CPPFLAGS'
8197 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8198 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8199 -cross_compiling=$ac_cv_prog_cc_cross
8200 -
8201 -ac_exeext=
8202 -ac_objext=o
8203 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
8204 -  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
8205 -  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
8206 -    ac_n= ac_c='
8207 -' ac_t='       '
8208 -  else
8209 -    ac_n=-n ac_c= ac_t=
8210 -  fi
8211 -else
8212 -  ac_n= ac_c='\c' ac_t=
8213 -fi
8214 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217 +
8218 +
8219 +
8220 +
8221 +
8222 +
8223 +
8224 +
8225 +
8226 +
8227 +
8228 +
8229 +
8230 +
8231 +
8232 +
8233  
8234  
8235  
8236 +# Add the stamp file to the list of files AC keeps track of,
8237 +# along with our hook.
8238 +          ac_config_headers="$ac_config_headers config.h"
8239 +
8240  
8241  
8242  
8243  mutt_cv_version=`cat $srcdir/VERSION`
8244  
8245  
8246 +am__api_version="1.6"
8247  ac_aux_dir=
8248  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
8249    if test -f $ac_dir/install-sh; then
8250 @@ -600,14 +1269,20 @@
8251      ac_aux_dir=$ac_dir
8252      ac_install_sh="$ac_aux_dir/install.sh -c"
8253      break
8254 +  elif test -f $ac_dir/shtool; then
8255 +    ac_aux_dir=$ac_dir
8256 +    ac_install_sh="$ac_aux_dir/shtool install -c"
8257 +    break
8258    fi
8259  done
8260  if test -z "$ac_aux_dir"; then
8261 -  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
8262 -fi
8263 -ac_config_guess=$ac_aux_dir/config.guess
8264 -ac_config_sub=$ac_aux_dir/config.sub
8265 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
8266 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
8267 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
8268 +   { (exit 1); exit 1; }; }
8269 +fi
8270 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
8271 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
8272 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8273  
8274  # Find a good install program.  We prefer a C program (faster),
8275  # so one script is as good as another.  But avoid the broken or
8276 @@ -616,545 +1291,1487 @@
8277  # SunOS /usr/etc/install
8278  # IRIX /sbin/install
8279  # AIX /bin/install
8280 +# AmigaOS /C/install, which installs bootblocks on floppy discs
8281  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8282  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8283  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8284  # ./install, which can be erroneously created by make from ./install.sh.
8285 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8286 -echo "configure:623: checking for a BSD compatible install" >&5
8287 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8288 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8289  if test -z "$INSTALL"; then
8290 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8291 -  echo $ac_n "(cached) $ac_c" 1>&6
8292 +if test "${ac_cv_path_install+set}" = set; then
8293 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8294  else
8295 -    IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
8296 -  for ac_dir in $PATH; do
8297 -    # Account for people who put trailing slashes in PATH elements.
8298 -    case "$ac_dir/" in
8299 -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8300 -    *)
8301 -      # OSF1 and SCO ODT 3.0 have their own names for install.
8302 -      # Don't use installbsd from OSF since it installs stuff as root
8303 -      # by default.
8304 -      for ac_prog in ginstall scoinst install; do
8305 -        if test -f $ac_dir/$ac_prog; then
8306 -         if test $ac_prog = install &&
8307 -            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8308 -           # AIX install.  It has an incompatible calling convention.
8309 -           :
8310 -         else
8311 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
8312 -           break 2
8313 -         fi
8314 -       fi
8315 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 +for as_dir in $PATH
8317 +do
8318 +  IFS=$as_save_IFS
8319 +  test -z "$as_dir" && as_dir=.
8320 +  # Account for people who put trailing slashes in PATH elements.
8321 +case $as_dir/ in
8322 +  ./ | .// | /cC/* | \
8323 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8324 +  /usr/ucb/* ) ;;
8325 +  *)
8326 +    # OSF1 and SCO ODT 3.0 have their own names for install.
8327 +    # Don't use installbsd from OSF since it installs stuff as root
8328 +    # by default.
8329 +    for ac_prog in ginstall scoinst install; do
8330 +      for ac_exec_ext in '' $ac_executable_extensions; do
8331 +        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8332 +          if test $ac_prog = install &&
8333 +            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8334 +            # AIX install.  It has an incompatible calling convention.
8335 +            :
8336 +          elif test $ac_prog = install &&
8337 +            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8338 +            # program-specific install script used by HP pwplus--don't use.
8339 +            :
8340 +          else
8341 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8342 +            break 3
8343 +          fi
8344 +        fi
8345        done
8346 -      ;;
8347 -    esac
8348 -  done
8349 -  IFS="$ac_save_IFS"
8350 +    done
8351 +    ;;
8352 +esac
8353 +done
8354 +
8355  
8356  fi
8357    if test "${ac_cv_path_install+set}" = set; then
8358 -    INSTALL="$ac_cv_path_install"
8359 +    INSTALL=$ac_cv_path_install
8360    else
8361      # As a last resort, use the slow shell script.  We don't cache a
8362      # path for INSTALL within a source directory, because that will
8363      # break other packages using the cache if that directory is
8364      # removed, or if the path is relative.
8365 -    INSTALL="$ac_install_sh"
8366 +    INSTALL=$ac_install_sh
8367    fi
8368  fi
8369 -echo "$ac_t""$INSTALL" 1>&6
8370 +echo "$as_me:$LINENO: result: $INSTALL" >&5
8371 +echo "${ECHO_T}$INSTALL" >&6
8372  
8373  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8374  # It thinks the first close brace ends the variable substitution.
8375  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8376  
8377 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8378 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8379  
8380  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8381  
8382 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
8383 -echo "configure:676: checking whether build environment is sane" >&5
8384 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8385 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8386  # Just in case
8387  sleep 1
8388 -echo timestamp > conftestfile
8389 +echo timestamp > conftest.file
8390  # Do `set' in a subshell so we don't clobber the current shell's
8391  # arguments.  Must try -L first in case configure is actually a
8392  # symlink; some systems play weird games with the mod time of symlinks
8393  # (eg FreeBSD returns the mod time of the symlink's containing
8394  # directory).
8395  if (
8396 -   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
8397 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8398     if test "$*" = "X"; then
8399        # -L didn't work.
8400 -      set X `ls -t $srcdir/configure conftestfile`
8401 +      set X `ls -t $srcdir/configure conftest.file`
8402     fi
8403 -   if test "$*" != "X $srcdir/configure conftestfile" \
8404 -      && test "$*" != "X conftestfile $srcdir/configure"; then
8405 +   rm -f conftest.file
8406 +   if test "$*" != "X $srcdir/configure conftest.file" \
8407 +      && test "$*" != "X conftest.file $srcdir/configure"; then
8408  
8409        # If neither matched, then we have a broken ls.  This can happen
8410        # if, for instance, CONFIG_SHELL is bash and it inherits a
8411        # broken ls alias from the environment.  This has actually
8412        # happened.  Such a system could not be considered "sane".
8413 -      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
8414 -alias in your environment" 1>&2; exit 1; }
8415 +      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8416 +alias in your environment" >&5
8417 +echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8418 +alias in your environment" >&2;}
8419 +   { (exit 1); exit 1; }; }
8420     fi
8421  
8422 -   test "$2" = conftestfile
8423 +   test "$2" = conftest.file
8424     )
8425  then
8426     # Ok.
8427     :
8428  else
8429 -   { echo "configure: error: newly created file is older than distributed files!
8430 -Check your system clock" 1>&2; exit 1; }
8431 -fi
8432 -rm -f conftest*
8433 -echo "$ac_t""yes" 1>&6
8434 -if test "$program_transform_name" = s,x,x,; then
8435 -  program_transform_name=
8436 -else
8437 -  # Double any \ or $.  echo might interpret backslashes.
8438 -  cat <<\EOF_SED > conftestsed
8439 -s,\\,\\\\,g; s,\$,$$,g
8440 -EOF_SED
8441 -  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
8442 -  rm -f conftestsed
8443 +   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8444 +Check your system clock" >&5
8445 +echo "$as_me: error: newly created file is older than distributed files!
8446 +Check your system clock" >&2;}
8447 +   { (exit 1); exit 1; }; }
8448  fi
8449 +echo "$as_me:$LINENO: result: yes" >&5
8450 +echo "${ECHO_T}yes" >&6
8451  test "$program_prefix" != NONE &&
8452 -  program_transform_name="s,^,${program_prefix},; $program_transform_name"
8453 +  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8454  # Use a double $ so make ignores it.
8455  test "$program_suffix" != NONE &&
8456 -  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
8457 -
8458 -# sed with no file args requires a program.
8459 -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
8460 +  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8461 +# Double any \ or $.  echo might interpret backslashes.
8462 +# By default was `s,x,x', remove it if useless.
8463 +cat <<\_ACEOF >conftest.sed
8464 +s/[\\$]/&&/g;s/;s,x,x,$//
8465 +_ACEOF
8466 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8467 +rm conftest.sed
8468 +
8469 +
8470 +# expand $ac_aux_dir to an absolute path
8471 +am_aux_dir=`cd $ac_aux_dir && pwd`
8472 +
8473 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8474 +# Use eval to expand $SHELL
8475 +if eval "$MISSING --run true"; then
8476 +  am_missing_run="$MISSING --run "
8477 +else
8478 +  am_missing_run=
8479 +  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8480 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8481 +fi
8482  
8483 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8484 -echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
8485 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8486 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8487 -  echo $ac_n "(cached) $ac_c" 1>&6
8488 +for ac_prog in awk mawk gawk nawk
8489 +do
8490 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
8491 +set dummy $ac_prog; ac_word=$2
8492 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 +if test "${ac_cv_prog_AWK+set}" = set; then
8495 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8496  else
8497 -  cat > conftestmake <<\EOF
8498 -all:
8499 -       @echo 'ac_maketemp="${MAKE}"'
8500 -EOF
8501 -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8502 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8503 -if test -n "$ac_maketemp"; then
8504 -  eval ac_cv_prog_make_${ac_make}_set=yes
8505 +  if test -n "$AWK"; then
8506 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8507  else
8508 -  eval ac_cv_prog_make_${ac_make}_set=no
8509 -fi
8510 -rm -f conftestmake
8511 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 +for as_dir in $PATH
8513 +do
8514 +  IFS=$as_save_IFS
8515 +  test -z "$as_dir" && as_dir=.
8516 +  for ac_exec_ext in '' $ac_executable_extensions; do
8517 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8518 +    ac_cv_prog_AWK="$ac_prog"
8519 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 +    break 2
8521 +  fi
8522 +done
8523 +done
8524 +
8525 +fi
8526 +fi
8527 +AWK=$ac_cv_prog_AWK
8528 +if test -n "$AWK"; then
8529 +  echo "$as_me:$LINENO: result: $AWK" >&5
8530 +echo "${ECHO_T}$AWK" >&6
8531 +else
8532 +  echo "$as_me:$LINENO: result: no" >&5
8533 +echo "${ECHO_T}no" >&6
8534 +fi
8535 +
8536 +  test -n "$AWK" && break
8537 +done
8538 +
8539 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8540 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8541 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8542 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8543 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8544 +else
8545 +  cat >conftest.make <<\_ACEOF
8546 +all:
8547 +       @echo 'ac_maketemp="${MAKE}"'
8548 +_ACEOF
8549 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8550 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8551 +if test -n "$ac_maketemp"; then
8552 +  eval ac_cv_prog_make_${ac_make}_set=yes
8553 +else
8554 +  eval ac_cv_prog_make_${ac_make}_set=no
8555 +fi
8556 +rm -f conftest.make
8557  fi
8558  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8559 -  echo "$ac_t""yes" 1>&6
8560 +  echo "$as_me:$LINENO: result: yes" >&5
8561 +echo "${ECHO_T}yes" >&6
8562    SET_MAKE=
8563  else
8564 -  echo "$ac_t""no" 1>&6
8565 +  echo "$as_me:$LINENO: result: no" >&5
8566 +echo "${ECHO_T}no" >&6
8567    SET_MAKE="MAKE=${MAKE-make}"
8568  fi
8569  
8570 + # test to see if srcdir already configured
8571 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
8572 +   test -f $srcdir/config.status; then
8573 +  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8574 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8575 +   { (exit 1); exit 1; }; }
8576 +fi
8577  
8578 -PACKAGE=mutt
8579 +# Define the identity of the package.
8580 + PACKAGE=mutt
8581 + VERSION=$mutt_cv_version
8582  
8583 -VERSION=$mutt_cv_version
8584  
8585 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
8586 -  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
8587 -fi
8588 -cat >> confdefs.h <<EOF
8589 +cat >>confdefs.h <<_ACEOF
8590  #define PACKAGE "$PACKAGE"
8591 -EOF
8592 +_ACEOF
8593  
8594 -cat >> confdefs.h <<EOF
8595 +
8596 +cat >>confdefs.h <<_ACEOF
8597  #define VERSION "$VERSION"
8598 -EOF
8599 +_ACEOF
8600 +
8601 +# Some tools Automake needs.
8602 +
8603 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8604 +
8605 +
8606 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8607 +
8608 +
8609 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8610  
8611  
8612 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8613  
8614 -missing_dir=`cd $ac_aux_dir && pwd`
8615 -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
8616 -echo "configure:779: checking for working aclocal" >&5
8617 -# Run test in a subshell; some versions of sh will print an error if
8618 -# an executable is not found, even if stderr is redirected.
8619 -# Redirect stdin to placate older versions of autoconf.  Sigh.
8620 -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
8621 -   ACLOCAL=aclocal
8622 -   echo "$ac_t""found" 1>&6
8623 -else
8624 -   ACLOCAL="$missing_dir/missing aclocal"
8625 -   echo "$ac_t""missing" 1>&6
8626 -fi
8627 -
8628 -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
8629 -echo "configure:792: checking for working autoconf" >&5
8630 -# Run test in a subshell; some versions of sh will print an error if
8631 -# an executable is not found, even if stderr is redirected.
8632 -# Redirect stdin to placate older versions of autoconf.  Sigh.
8633 -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
8634 -   AUTOCONF=autoconf
8635 -   echo "$ac_t""found" 1>&6
8636 -else
8637 -   AUTOCONF="$missing_dir/missing autoconf"
8638 -   echo "$ac_t""missing" 1>&6
8639 -fi
8640 -
8641 -echo $ac_n "checking for working automake""... $ac_c" 1>&6
8642 -echo "configure:805: checking for working automake" >&5
8643 -# Run test in a subshell; some versions of sh will print an error if
8644 -# an executable is not found, even if stderr is redirected.
8645 -# Redirect stdin to placate older versions of autoconf.  Sigh.
8646 -if (automake --version) < /dev/null > /dev/null 2>&1; then
8647 -   AUTOMAKE=automake
8648 -   echo "$ac_t""found" 1>&6
8649 -else
8650 -   AUTOMAKE="$missing_dir/missing automake"
8651 -   echo "$ac_t""missing" 1>&6
8652 -fi
8653 -
8654 -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
8655 -echo "configure:818: checking for working autoheader" >&5
8656 -# Run test in a subshell; some versions of sh will print an error if
8657 -# an executable is not found, even if stderr is redirected.
8658 -# Redirect stdin to placate older versions of autoconf.  Sigh.
8659 -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
8660 -   AUTOHEADER=autoheader
8661 -   echo "$ac_t""found" 1>&6
8662 -else
8663 -   AUTOHEADER="$missing_dir/missing autoheader"
8664 -   echo "$ac_t""missing" 1>&6
8665 -fi
8666 -
8667 -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
8668 -echo "configure:831: checking for working makeinfo" >&5
8669 -# Run test in a subshell; some versions of sh will print an error if
8670 -# an executable is not found, even if stderr is redirected.
8671 -# Redirect stdin to placate older versions of autoconf.  Sigh.
8672 -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
8673 -   MAKEINFO=makeinfo
8674 -   echo "$ac_t""found" 1>&6
8675 +
8676 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8677 +
8678 +
8679 +AMTAR=${AMTAR-"${am_missing_run}tar"}
8680 +
8681 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
8682 +
8683 +# Installed binaries are usually stripped using `strip' when the user
8684 +# run `make install-strip'.  However `strip' might not be the right
8685 +# tool to use in cross-compilation environments, therefore Automake
8686 +# will honor the `STRIP' environment variable to overrule this program.
8687 +if test "$cross_compiling" != no; then
8688 +  if test -n "$ac_tool_prefix"; then
8689 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8690 +set dummy ${ac_tool_prefix}strip; ac_word=$2
8691 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8692 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693 +if test "${ac_cv_prog_STRIP+set}" = set; then
8694 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8695  else
8696 -   MAKEINFO="$missing_dir/missing makeinfo"
8697 -   echo "$ac_t""missing" 1>&6
8698 +  if test -n "$STRIP"; then
8699 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8700 +else
8701 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 +for as_dir in $PATH
8703 +do
8704 +  IFS=$as_save_IFS
8705 +  test -z "$as_dir" && as_dir=.
8706 +  for ac_exec_ext in '' $ac_executable_extensions; do
8707 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8709 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 +    break 2
8711 +  fi
8712 +done
8713 +done
8714 +
8715 +fi
8716 +fi
8717 +STRIP=$ac_cv_prog_STRIP
8718 +if test -n "$STRIP"; then
8719 +  echo "$as_me:$LINENO: result: $STRIP" >&5
8720 +echo "${ECHO_T}$STRIP" >&6
8721 +else
8722 +  echo "$as_me:$LINENO: result: no" >&5
8723 +echo "${ECHO_T}no" >&6
8724  fi
8725  
8726 +fi
8727 +if test -z "$ac_cv_prog_STRIP"; then
8728 +  ac_ct_STRIP=$STRIP
8729 +  # Extract the first word of "strip", so it can be a program name with args.
8730 +set dummy strip; ac_word=$2
8731 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8734 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8735 +else
8736 +  if test -n "$ac_ct_STRIP"; then
8737 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8738 +else
8739 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 +for as_dir in $PATH
8741 +do
8742 +  IFS=$as_save_IFS
8743 +  test -z "$as_dir" && as_dir=.
8744 +  for ac_exec_ext in '' $ac_executable_extensions; do
8745 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746 +    ac_cv_prog_ac_ct_STRIP="strip"
8747 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 +    break 2
8749 +  fi
8750 +done
8751 +done
8752  
8753 +  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8754 +fi
8755 +fi
8756 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8757 +if test -n "$ac_ct_STRIP"; then
8758 +  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8759 +echo "${ECHO_T}$ac_ct_STRIP" >&6
8760 +else
8761 +  echo "$as_me:$LINENO: result: no" >&5
8762 +echo "${ECHO_T}no" >&6
8763 +fi
8764  
8765 +  STRIP=$ac_ct_STRIP
8766 +else
8767 +  STRIP="$ac_cv_prog_STRIP"
8768 +fi
8769  
8770 -ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca"
8771 +fi
8772 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8773 +
8774 +# We need awk for the "check" target.  The system "awk" is bad on
8775 +# some platforms.
8776  
8777  
8778 -# Make sure we can run config.sub.
8779 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
8780 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
8781 -fi
8782  
8783 -echo $ac_n "checking host system type""... $ac_c" 1>&6
8784 -echo "configure:855: checking host system type" >&5
8785  
8786 -host_alias=$host
8787 -case "$host_alias" in
8788 -NONE)
8789 -  case $nonopt in
8790 -  NONE)
8791 -    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
8792 -    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
8793 -    fi ;;
8794 -  *) host_alias=$nonopt ;;
8795 -  esac ;;
8796 -esac
8797  
8798 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
8799 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8800 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8801 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8802 -echo "$ac_t""$host" 1>&6
8803 +ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca"
8804 +
8805 +# Make sure we can run config.sub.
8806 +$ac_config_sub sun4 >/dev/null 2>&1 ||
8807 +  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8808 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8809 +   { (exit 1); exit 1; }; }
8810 +
8811 +echo "$as_me:$LINENO: checking build system type" >&5
8812 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
8813 +if test "${ac_cv_build+set}" = set; then
8814 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8815 +else
8816 +  ac_cv_build_alias=$build_alias
8817 +test -z "$ac_cv_build_alias" &&
8818 +  ac_cv_build_alias=`$ac_config_guess`
8819 +test -z "$ac_cv_build_alias" &&
8820 +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8821 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8822 +   { (exit 1); exit 1; }; }
8823 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
8824 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8825 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8826 +   { (exit 1); exit 1; }; }
8827 +
8828 +fi
8829 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8830 +echo "${ECHO_T}$ac_cv_build" >&6
8831 +build=$ac_cv_build
8832 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8833 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8834 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8835 +
8836 +
8837 +echo "$as_me:$LINENO: checking host system type" >&5
8838 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
8839 +if test "${ac_cv_host+set}" = set; then
8840 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8841 +else
8842 +  ac_cv_host_alias=$host_alias
8843 +test -z "$ac_cv_host_alias" &&
8844 +  ac_cv_host_alias=$ac_cv_build_alias
8845 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8846 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8847 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8848 +   { (exit 1); exit 1; }; }
8849 +
8850 +fi
8851 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8852 +echo "${ECHO_T}$ac_cv_host" >&6
8853 +host=$ac_cv_host
8854 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8855 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8856 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8857  
8858  
8859 -echo $ac_n "checking for prefix""... $ac_c" 1>&6
8860 -echo "configure:877: checking for prefix" >&5
8861 +
8862 +echo "$as_me:$LINENO: checking for prefix" >&5
8863 +echo $ECHO_N "checking for prefix... $ECHO_C" >&6
8864  if test x$prefix = xNONE; then
8865          mutt_cv_prefix=$ac_default_prefix
8866  else
8867          mutt_cv_prefix=$prefix
8868  fi
8869 -echo "$ac_t""$mutt_cv_prefix" 1>&6
8870 +echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
8871 +echo "${ECHO_T}$mutt_cv_prefix" >&6
8872 +
8873 +ac_ext=c
8874 +ac_cpp='$CPP $CPPFLAGS'
8875 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878 +if test -n "$ac_tool_prefix"; then
8879 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8880 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
8881 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8882 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8883 +if test "${ac_cv_prog_CC+set}" = set; then
8884 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8885 +else
8886 +  if test -n "$CC"; then
8887 +  ac_cv_prog_CC="$CC" # Let the user override the test.
8888 +else
8889 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 +for as_dir in $PATH
8891 +do
8892 +  IFS=$as_save_IFS
8893 +  test -z "$as_dir" && as_dir=.
8894 +  for ac_exec_ext in '' $ac_executable_extensions; do
8895 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
8897 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 +    break 2
8899 +  fi
8900 +done
8901 +done
8902 +
8903 +fi
8904 +fi
8905 +CC=$ac_cv_prog_CC
8906 +if test -n "$CC"; then
8907 +  echo "$as_me:$LINENO: result: $CC" >&5
8908 +echo "${ECHO_T}$CC" >&6
8909 +else
8910 +  echo "$as_me:$LINENO: result: no" >&5
8911 +echo "${ECHO_T}no" >&6
8912 +fi
8913  
8914 -# Extract the first word of "gcc", so it can be a program name with args.
8915 +fi
8916 +if test -z "$ac_cv_prog_CC"; then
8917 +  ac_ct_CC=$CC
8918 +  # Extract the first word of "gcc", so it can be a program name with args.
8919  set dummy gcc; ac_word=$2
8920 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8921 -echo "configure:888: checking for $ac_word" >&5
8922 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8923 -  echo $ac_n "(cached) $ac_c" 1>&6
8924 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8926 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8927 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8928 +else
8929 +  if test -n "$ac_ct_CC"; then
8930 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8931 +else
8932 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 +for as_dir in $PATH
8934 +do
8935 +  IFS=$as_save_IFS
8936 +  test -z "$as_dir" && as_dir=.
8937 +  for ac_exec_ext in '' $ac_executable_extensions; do
8938 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939 +    ac_cv_prog_ac_ct_CC="gcc"
8940 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 +    break 2
8942 +  fi
8943 +done
8944 +done
8945 +
8946 +fi
8947 +fi
8948 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
8949 +if test -n "$ac_ct_CC"; then
8950 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
8951 +echo "${ECHO_T}$ac_ct_CC" >&6
8952 +else
8953 +  echo "$as_me:$LINENO: result: no" >&5
8954 +echo "${ECHO_T}no" >&6
8955 +fi
8956 +
8957 +  CC=$ac_ct_CC
8958 +else
8959 +  CC="$ac_cv_prog_CC"
8960 +fi
8961 +
8962 +if test -z "$CC"; then
8963 +  if test -n "$ac_tool_prefix"; then
8964 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8965 +set dummy ${ac_tool_prefix}cc; ac_word=$2
8966 +echo "$as_me:$LINENO: checking for $ac_word" >&5
8967 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968 +if test "${ac_cv_prog_CC+set}" = set; then
8969 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8970  else
8971    if test -n "$CC"; then
8972    ac_cv_prog_CC="$CC" # Let the user override the test.
8973  else
8974 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
8975 -  ac_dummy="$PATH"
8976 -  for ac_dir in $ac_dummy; do
8977 -    test -z "$ac_dir" && ac_dir=.
8978 -    if test -f $ac_dir/$ac_word; then
8979 -      ac_cv_prog_CC="gcc"
8980 -      break
8981 -    fi
8982 -  done
8983 -  IFS="$ac_save_ifs"
8984 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 +for as_dir in $PATH
8986 +do
8987 +  IFS=$as_save_IFS
8988 +  test -z "$as_dir" && as_dir=.
8989 +  for ac_exec_ext in '' $ac_executable_extensions; do
8990 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
8992 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 +    break 2
8994 +  fi
8995 +done
8996 +done
8997 +
8998  fi
8999  fi
9000 -CC="$ac_cv_prog_CC"
9001 +CC=$ac_cv_prog_CC
9002  if test -n "$CC"; then
9003 -  echo "$ac_t""$CC" 1>&6
9004 +  echo "$as_me:$LINENO: result: $CC" >&5
9005 +echo "${ECHO_T}$CC" >&6
9006  else
9007 -  echo "$ac_t""no" 1>&6
9008 +  echo "$as_me:$LINENO: result: no" >&5
9009 +echo "${ECHO_T}no" >&6
9010  fi
9011  
9012 +fi
9013 +if test -z "$ac_cv_prog_CC"; then
9014 +  ac_ct_CC=$CC
9015 +  # Extract the first word of "cc", so it can be a program name with args.
9016 +set dummy cc; ac_word=$2
9017 +echo "$as_me:$LINENO: checking for $ac_word" >&5
9018 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9020 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9021 +else
9022 +  if test -n "$ac_ct_CC"; then
9023 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9024 +else
9025 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 +for as_dir in $PATH
9027 +do
9028 +  IFS=$as_save_IFS
9029 +  test -z "$as_dir" && as_dir=.
9030 +  for ac_exec_ext in '' $ac_executable_extensions; do
9031 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 +    ac_cv_prog_ac_ct_CC="cc"
9033 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 +    break 2
9035 +  fi
9036 +done
9037 +done
9038 +
9039 +fi
9040 +fi
9041 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
9042 +if test -n "$ac_ct_CC"; then
9043 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9044 +echo "${ECHO_T}$ac_ct_CC" >&6
9045 +else
9046 +  echo "$as_me:$LINENO: result: no" >&5
9047 +echo "${ECHO_T}no" >&6
9048 +fi
9049 +
9050 +  CC=$ac_ct_CC
9051 +else
9052 +  CC="$ac_cv_prog_CC"
9053 +fi
9054 +
9055 +fi
9056  if test -z "$CC"; then
9057    # Extract the first word of "cc", so it can be a program name with args.
9058  set dummy cc; ac_word=$2
9059 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9060 -echo "configure:918: checking for $ac_word" >&5
9061 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9062 -  echo $ac_n "(cached) $ac_c" 1>&6
9063 +echo "$as_me:$LINENO: checking for $ac_word" >&5
9064 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9065 +if test "${ac_cv_prog_CC+set}" = set; then
9066 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9067  else
9068    if test -n "$CC"; then
9069    ac_cv_prog_CC="$CC" # Let the user override the test.
9070  else
9071 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
9072    ac_prog_rejected=no
9073 -  ac_dummy="$PATH"
9074 -  for ac_dir in $ac_dummy; do
9075 -    test -z "$ac_dir" && ac_dir=.
9076 -    if test -f $ac_dir/$ac_word; then
9077 -      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9078 -        ac_prog_rejected=yes
9079 -       continue
9080 -      fi
9081 -      ac_cv_prog_CC="cc"
9082 -      break
9083 -    fi
9084 -  done
9085 -  IFS="$ac_save_ifs"
9086 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 +for as_dir in $PATH
9088 +do
9089 +  IFS=$as_save_IFS
9090 +  test -z "$as_dir" && as_dir=.
9091 +  for ac_exec_ext in '' $ac_executable_extensions; do
9092 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9094 +       ac_prog_rejected=yes
9095 +       continue
9096 +     fi
9097 +    ac_cv_prog_CC="cc"
9098 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 +    break 2
9100 +  fi
9101 +done
9102 +done
9103 +
9104  if test $ac_prog_rejected = yes; then
9105    # We found a bogon in the path, so make sure we never use it.
9106    set dummy $ac_cv_prog_CC
9107    shift
9108 -  if test $# -gt 0; then
9109 +  if test $# != 0; then
9110      # We chose a different compiler from the bogus one.
9111      # However, it has the same basename, so the bogon will be chosen
9112      # first if we set CC to just the basename; use the full file name.
9113      shift
9114 -    set dummy "$ac_dir/$ac_word" "$@"
9115 -    shift
9116 -    ac_cv_prog_CC="$@"
9117 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9118    fi
9119  fi
9120  fi
9121  fi
9122 -CC="$ac_cv_prog_CC"
9123 +CC=$ac_cv_prog_CC
9124  if test -n "$CC"; then
9125 -  echo "$ac_t""$CC" 1>&6
9126 +  echo "$as_me:$LINENO: result: $CC" >&5
9127 +echo "${ECHO_T}$CC" >&6
9128  else
9129 -  echo "$ac_t""no" 1>&6
9130 +  echo "$as_me:$LINENO: result: no" >&5
9131 +echo "${ECHO_T}no" >&6
9132  fi
9133  
9134 -  if test -z "$CC"; then
9135 -    case "`uname -s`" in
9136 -    *win32* | *WIN32*)
9137 -      # Extract the first word of "cl", so it can be a program name with args.
9138 -set dummy cl; ac_word=$2
9139 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9140 -echo "configure:969: checking for $ac_word" >&5
9141 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9142 -  echo $ac_n "(cached) $ac_c" 1>&6
9143 +fi
9144 +if test -z "$CC"; then
9145 +  if test -n "$ac_tool_prefix"; then
9146 +  for ac_prog in cl
9147 +  do
9148 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9149 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9150 +echo "$as_me:$LINENO: checking for $ac_word" >&5
9151 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9152 +if test "${ac_cv_prog_CC+set}" = set; then
9153 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9154 +else
9155 +  if test -n "$CC"; then
9156 +  ac_cv_prog_CC="$CC" # Let the user override the test.
9157 +else
9158 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 +for as_dir in $PATH
9160 +do
9161 +  IFS=$as_save_IFS
9162 +  test -z "$as_dir" && as_dir=.
9163 +  for ac_exec_ext in '' $ac_executable_extensions; do
9164 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9166 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 +    break 2
9168 +  fi
9169 +done
9170 +done
9171 +
9172 +fi
9173 +fi
9174 +CC=$ac_cv_prog_CC
9175 +if test -n "$CC"; then
9176 +  echo "$as_me:$LINENO: result: $CC" >&5
9177 +echo "${ECHO_T}$CC" >&6
9178 +else
9179 +  echo "$as_me:$LINENO: result: no" >&5
9180 +echo "${ECHO_T}no" >&6
9181 +fi
9182 +
9183 +    test -n "$CC" && break
9184 +  done
9185 +fi
9186 +if test -z "$CC"; then
9187 +  ac_ct_CC=$CC
9188 +  for ac_prog in cl
9189 +do
9190 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
9191 +set dummy $ac_prog; ac_word=$2
9192 +echo "$as_me:$LINENO: checking for $ac_word" >&5
9193 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9194 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9195 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9196 +else
9197 +  if test -n "$ac_ct_CC"; then
9198 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9199 +else
9200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 +for as_dir in $PATH
9202 +do
9203 +  IFS=$as_save_IFS
9204 +  test -z "$as_dir" && as_dir=.
9205 +  for ac_exec_ext in '' $ac_executable_extensions; do
9206 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 +    ac_cv_prog_ac_ct_CC="$ac_prog"
9208 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 +    break 2
9210 +  fi
9211 +done
9212 +done
9213 +
9214 +fi
9215 +fi
9216 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
9217 +if test -n "$ac_ct_CC"; then
9218 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9219 +echo "${ECHO_T}$ac_ct_CC" >&6
9220 +else
9221 +  echo "$as_me:$LINENO: result: no" >&5
9222 +echo "${ECHO_T}no" >&6
9223 +fi
9224 +
9225 +  test -n "$ac_ct_CC" && break
9226 +done
9227 +
9228 +  CC=$ac_ct_CC
9229 +fi
9230 +
9231 +fi
9232 +
9233 +
9234 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
9235 +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
9236 +   { (exit 1); exit 1; }; }
9237 +
9238 +# Provide some information about the compiler.
9239 +echo "$as_me:$LINENO:" \
9240 +     "checking for C compiler version" >&5
9241 +ac_compiler=`set X $ac_compile; echo $2`
9242 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9243 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
9244 +  ac_status=$?
9245 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 +  (exit $ac_status); }
9247 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9248 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
9249 +  ac_status=$?
9250 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 +  (exit $ac_status); }
9252 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9253 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
9254 +  ac_status=$?
9255 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 +  (exit $ac_status); }
9257 +
9258 +cat >conftest.$ac_ext <<_ACEOF
9259 +#line $LINENO "configure"
9260 +#include "confdefs.h"
9261 +
9262 +#ifdef F77_DUMMY_MAIN
9263 +#  ifdef __cplusplus
9264 +     extern "C"
9265 +#  endif
9266 +   int F77_DUMMY_MAIN() { return 1; }
9267 +#endif
9268 +int
9269 +main ()
9270 +{
9271 +
9272 +  ;
9273 +  return 0;
9274 +}
9275 +_ACEOF
9276 +ac_clean_files_save=$ac_clean_files
9277 +ac_clean_files="$ac_clean_files a.out a.exe"
9278 +# Try to create an executable without -o first, disregard a.out.
9279 +# It will help us diagnose broken compilers, and finding out an intuition
9280 +# of exeext.
9281 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
9282 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9283 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9284 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9285 +  (eval $ac_link_default) 2>&5
9286 +  ac_status=$?
9287 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 +  (exit $ac_status); }; then
9289 +  # Find the output, starting from the most likely.  This scheme is
9290 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
9291 +# resort.
9292 +
9293 +# Be careful to initialize this variable, since it used to be cached.
9294 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
9295 +ac_cv_exeext=
9296 +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
9297 +                ls a.out conftest 2>/dev/null;
9298 +                ls a.* conftest.* 2>/dev/null`; do
9299 +  case $ac_file in
9300 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9301 +    a.out ) # We found the default executable, but exeext='' is most
9302 +            # certainly right.
9303 +            break;;
9304 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9305 +          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
9306 +          export ac_cv_exeext
9307 +          break;;
9308 +    * ) break;;
9309 +  esac
9310 +done
9311 +else
9312 +  echo "$as_me: failed program was:" >&5
9313 +cat conftest.$ac_ext >&5
9314 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
9315 +echo "$as_me: error: C compiler cannot create executables" >&2;}
9316 +   { (exit 77); exit 77; }; }
9317 +fi
9318 +
9319 +ac_exeext=$ac_cv_exeext
9320 +echo "$as_me:$LINENO: result: $ac_file" >&5
9321 +echo "${ECHO_T}$ac_file" >&6
9322 +
9323 +# Check the compiler produces executables we can run.  If not, either
9324 +# the compiler is broken, or we cross compile.
9325 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
9326 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
9327 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
9328 +# If not cross compiling, check that we can run a simple program.
9329 +if test "$cross_compiling" != yes; then
9330 +  if { ac_try='./$ac_file'
9331 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 +  (eval $ac_try) 2>&5
9333 +  ac_status=$?
9334 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 +  (exit $ac_status); }; }; then
9336 +    cross_compiling=no
9337 +  else
9338 +    if test "$cross_compiling" = maybe; then
9339 +       cross_compiling=yes
9340 +    else
9341 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
9342 +If you meant to cross compile, use \`--host'." >&5
9343 +echo "$as_me: error: cannot run C compiled programs.
9344 +If you meant to cross compile, use \`--host'." >&2;}
9345 +   { (exit 1); exit 1; }; }
9346 +    fi
9347 +  fi
9348 +fi
9349 +echo "$as_me:$LINENO: result: yes" >&5
9350 +echo "${ECHO_T}yes" >&6
9351 +
9352 +rm -f a.out a.exe conftest$ac_cv_exeext
9353 +ac_clean_files=$ac_clean_files_save
9354 +# Check the compiler produces executables we can run.  If not, either
9355 +# the compiler is broken, or we cross compile.
9356 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
9357 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
9358 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
9359 +echo "${ECHO_T}$cross_compiling" >&6
9360 +
9361 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
9362 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
9363 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364 +  (eval $ac_link) 2>&5
9365 +  ac_status=$?
9366 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 +  (exit $ac_status); }; then
9368 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
9369 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
9370 +# work properly (i.e., refer to `conftest.exe'), while it won't with
9371 +# `rm'.
9372 +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
9373 +  case $ac_file in
9374 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9375 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9376 +          export ac_cv_exeext
9377 +          break;;
9378 +    * ) break;;
9379 +  esac
9380 +done
9381 +else
9382 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
9383 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
9384 +   { (exit 1); exit 1; }; }
9385 +fi
9386 +
9387 +rm -f conftest$ac_cv_exeext
9388 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
9389 +echo "${ECHO_T}$ac_cv_exeext" >&6
9390 +
9391 +rm -f conftest.$ac_ext
9392 +EXEEXT=$ac_cv_exeext
9393 +ac_exeext=$EXEEXT
9394 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
9395 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
9396 +if test "${ac_cv_objext+set}" = set; then
9397 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9398 +else
9399 +  cat >conftest.$ac_ext <<_ACEOF
9400 +#line $LINENO "configure"
9401 +#include "confdefs.h"
9402 +
9403 +#ifdef F77_DUMMY_MAIN
9404 +#  ifdef __cplusplus
9405 +     extern "C"
9406 +#  endif
9407 +   int F77_DUMMY_MAIN() { return 1; }
9408 +#endif
9409 +int
9410 +main ()
9411 +{
9412 +
9413 +  ;
9414 +  return 0;
9415 +}
9416 +_ACEOF
9417 +rm -f conftest.o conftest.obj
9418 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9419 +  (eval $ac_compile) 2>&5
9420 +  ac_status=$?
9421 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 +  (exit $ac_status); }; then
9423 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
9424 +  case $ac_file in
9425 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
9426 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9427 +       break;;
9428 +  esac
9429 +done
9430 +else
9431 +  echo "$as_me: failed program was:" >&5
9432 +cat conftest.$ac_ext >&5
9433 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
9434 +echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
9435 +   { (exit 1); exit 1; }; }
9436 +fi
9437 +
9438 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
9439 +fi
9440 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
9441 +echo "${ECHO_T}$ac_cv_objext" >&6
9442 +OBJEXT=$ac_cv_objext
9443 +ac_objext=$OBJEXT
9444 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
9445 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9446 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
9447 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9448 +else
9449 +  cat >conftest.$ac_ext <<_ACEOF
9450 +#line $LINENO "configure"
9451 +#include "confdefs.h"
9452 +
9453 +#ifdef F77_DUMMY_MAIN
9454 +#  ifdef __cplusplus
9455 +     extern "C"
9456 +#  endif
9457 +   int F77_DUMMY_MAIN() { return 1; }
9458 +#endif
9459 +int
9460 +main ()
9461 +{
9462 +#ifndef __GNUC__
9463 +       choke me
9464 +#endif
9465 +
9466 +  ;
9467 +  return 0;
9468 +}
9469 +_ACEOF
9470 +rm -f conftest.$ac_objext
9471 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472 +  (eval $ac_compile) 2>&5
9473 +  ac_status=$?
9474 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 +  (exit $ac_status); } &&
9476 +         { ac_try='test -s conftest.$ac_objext'
9477 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 +  (eval $ac_try) 2>&5
9479 +  ac_status=$?
9480 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 +  (exit $ac_status); }; }; then
9482 +  ac_compiler_gnu=yes
9483 +else
9484 +  echo "$as_me: failed program was:" >&5
9485 +cat conftest.$ac_ext >&5
9486 +ac_compiler_gnu=no
9487 +fi
9488 +rm -f conftest.$ac_objext conftest.$ac_ext
9489 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
9490 +
9491 +fi
9492 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
9493 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9494 +GCC=`test $ac_compiler_gnu = yes && echo yes`
9495 +ac_test_CFLAGS=${CFLAGS+set}
9496 +ac_save_CFLAGS=$CFLAGS
9497 +CFLAGS="-g"
9498 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
9499 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9500 +if test "${ac_cv_prog_cc_g+set}" = set; then
9501 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9502 +else
9503 +  cat >conftest.$ac_ext <<_ACEOF
9504 +#line $LINENO "configure"
9505 +#include "confdefs.h"
9506 +
9507 +#ifdef F77_DUMMY_MAIN
9508 +#  ifdef __cplusplus
9509 +     extern "C"
9510 +#  endif
9511 +   int F77_DUMMY_MAIN() { return 1; }
9512 +#endif
9513 +int
9514 +main ()
9515 +{
9516 +
9517 +  ;
9518 +  return 0;
9519 +}
9520 +_ACEOF
9521 +rm -f conftest.$ac_objext
9522 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 +  (eval $ac_compile) 2>&5
9524 +  ac_status=$?
9525 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 +  (exit $ac_status); } &&
9527 +         { ac_try='test -s conftest.$ac_objext'
9528 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 +  (eval $ac_try) 2>&5
9530 +  ac_status=$?
9531 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 +  (exit $ac_status); }; }; then
9533 +  ac_cv_prog_cc_g=yes
9534 +else
9535 +  echo "$as_me: failed program was:" >&5
9536 +cat conftest.$ac_ext >&5
9537 +ac_cv_prog_cc_g=no
9538 +fi
9539 +rm -f conftest.$ac_objext conftest.$ac_ext
9540 +fi
9541 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9542 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9543 +if test "$ac_test_CFLAGS" = set; then
9544 +  CFLAGS=$ac_save_CFLAGS
9545 +elif test $ac_cv_prog_cc_g = yes; then
9546 +  if test "$GCC" = yes; then
9547 +    CFLAGS="-g -O2"
9548 +  else
9549 +    CFLAGS="-g"
9550 +  fi
9551 +else
9552 +  if test "$GCC" = yes; then
9553 +    CFLAGS="-O2"
9554 +  else
9555 +    CFLAGS=
9556 +  fi
9557 +fi
9558 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9559 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9560 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
9561 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9562 +else
9563 +  ac_cv_prog_cc_stdc=no
9564 +ac_save_CC=$CC
9565 +cat >conftest.$ac_ext <<_ACEOF
9566 +#line $LINENO "configure"
9567 +#include "confdefs.h"
9568 +#include <stdarg.h>
9569 +#include <stdio.h>
9570 +#include <sys/types.h>
9571 +#include <sys/stat.h>
9572 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9573 +struct buf { int x; };
9574 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
9575 +static char *e (p, i)
9576 +     char **p;
9577 +     int i;
9578 +{
9579 +  return p[i];
9580 +}
9581 +static char *f (char * (*g) (char **, int), char **p, ...)
9582 +{
9583 +  char *s;
9584 +  va_list v;
9585 +  va_start (v,p);
9586 +  s = g (p, va_arg (v,int));
9587 +  va_end (v);
9588 +  return s;
9589 +}
9590 +int test (int i, double x);
9591 +struct s1 {int (*f) (int a);};
9592 +struct s2 {int (*f) (double a);};
9593 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9594 +int argc;
9595 +char **argv;
9596 +#ifdef F77_DUMMY_MAIN
9597 +#  ifdef __cplusplus
9598 +     extern "C"
9599 +#  endif
9600 +   int F77_DUMMY_MAIN() { return 1; }
9601 +#endif
9602 +int
9603 +main ()
9604 +{
9605 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9606 +  ;
9607 +  return 0;
9608 +}
9609 +_ACEOF
9610 +# Don't try gcc -ansi; that turns off useful extensions and
9611 +# breaks some systems' header files.
9612 +# AIX                  -qlanglvl=ansi
9613 +# Ultrix and OSF/1     -std1
9614 +# HP-UX 10.20 and later        -Ae
9615 +# HP-UX older versions -Aa -D_HPUX_SOURCE
9616 +# SVR4                 -Xc -D__EXTENSIONS__
9617 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9618 +do
9619 +  CC="$ac_save_CC $ac_arg"
9620 +  rm -f conftest.$ac_objext
9621 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 +  (eval $ac_compile) 2>&5
9623 +  ac_status=$?
9624 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 +  (exit $ac_status); } &&
9626 +         { ac_try='test -s conftest.$ac_objext'
9627 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 +  (eval $ac_try) 2>&5
9629 +  ac_status=$?
9630 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 +  (exit $ac_status); }; }; then
9632 +  ac_cv_prog_cc_stdc=$ac_arg
9633 +break
9634 +else
9635 +  echo "$as_me: failed program was:" >&5
9636 +cat conftest.$ac_ext >&5
9637 +fi
9638 +rm -f conftest.$ac_objext
9639 +done
9640 +rm -f conftest.$ac_ext conftest.$ac_objext
9641 +CC=$ac_save_CC
9642 +
9643 +fi
9644 +
9645 +case "x$ac_cv_prog_cc_stdc" in
9646 +  x|xno)
9647 +    echo "$as_me:$LINENO: result: none needed" >&5
9648 +echo "${ECHO_T}none needed" >&6 ;;
9649 +  *)
9650 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
9651 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9652 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
9653 +esac
9654 +
9655 +# Some people use a C++ compiler to compile C.  Since we use `exit',
9656 +# in C++ we need to declare it.  In case someone uses the same compiler
9657 +# for both compiling C and C++ we need to have the C++ compiler decide
9658 +# the declaration of exit, since it's the most demanding environment.
9659 +cat >conftest.$ac_ext <<_ACEOF
9660 +#ifndef __cplusplus
9661 +  choke me
9662 +#endif
9663 +_ACEOF
9664 +rm -f conftest.$ac_objext
9665 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 +  (eval $ac_compile) 2>&5
9667 +  ac_status=$?
9668 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 +  (exit $ac_status); } &&
9670 +         { ac_try='test -s conftest.$ac_objext'
9671 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 +  (eval $ac_try) 2>&5
9673 +  ac_status=$?
9674 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 +  (exit $ac_status); }; }; then
9676 +  for ac_declaration in \
9677 +   ''\
9678 +   '#include <stdlib.h>' \
9679 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
9680 +   'extern "C" void std::exit (int); using std::exit;' \
9681 +   'extern "C" void exit (int) throw ();' \
9682 +   'extern "C" void exit (int);' \
9683 +   'void exit (int);'
9684 +do
9685 +  cat >conftest.$ac_ext <<_ACEOF
9686 +#line $LINENO "configure"
9687 +#include "confdefs.h"
9688 +#include <stdlib.h>
9689 +$ac_declaration
9690 +#ifdef F77_DUMMY_MAIN
9691 +#  ifdef __cplusplus
9692 +     extern "C"
9693 +#  endif
9694 +   int F77_DUMMY_MAIN() { return 1; }
9695 +#endif
9696 +int
9697 +main ()
9698 +{
9699 +exit (42);
9700 +  ;
9701 +  return 0;
9702 +}
9703 +_ACEOF
9704 +rm -f conftest.$ac_objext
9705 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 +  (eval $ac_compile) 2>&5
9707 +  ac_status=$?
9708 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 +  (exit $ac_status); } &&
9710 +         { ac_try='test -s conftest.$ac_objext'
9711 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 +  (eval $ac_try) 2>&5
9713 +  ac_status=$?
9714 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 +  (exit $ac_status); }; }; then
9716 +  :
9717  else
9718 -  if test -n "$CC"; then
9719 -  ac_cv_prog_CC="$CC" # Let the user override the test.
9720 +  echo "$as_me: failed program was:" >&5
9721 +cat conftest.$ac_ext >&5
9722 +continue
9723 +fi
9724 +rm -f conftest.$ac_objext conftest.$ac_ext
9725 +  cat >conftest.$ac_ext <<_ACEOF
9726 +#line $LINENO "configure"
9727 +#include "confdefs.h"
9728 +$ac_declaration
9729 +#ifdef F77_DUMMY_MAIN
9730 +#  ifdef __cplusplus
9731 +     extern "C"
9732 +#  endif
9733 +   int F77_DUMMY_MAIN() { return 1; }
9734 +#endif
9735 +int
9736 +main ()
9737 +{
9738 +exit (42);
9739 +  ;
9740 +  return 0;
9741 +}
9742 +_ACEOF
9743 +rm -f conftest.$ac_objext
9744 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 +  (eval $ac_compile) 2>&5
9746 +  ac_status=$?
9747 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 +  (exit $ac_status); } &&
9749 +         { ac_try='test -s conftest.$ac_objext'
9750 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 +  (eval $ac_try) 2>&5
9752 +  ac_status=$?
9753 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 +  (exit $ac_status); }; }; then
9755 +  break
9756  else
9757 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
9758 -  ac_dummy="$PATH"
9759 -  for ac_dir in $ac_dummy; do
9760 -    test -z "$ac_dir" && ac_dir=.
9761 -    if test -f $ac_dir/$ac_word; then
9762 -      ac_cv_prog_CC="cl"
9763 -      break
9764 -    fi
9765 -  done
9766 -  IFS="$ac_save_ifs"
9767 +  echo "$as_me: failed program was:" >&5
9768 +cat conftest.$ac_ext >&5
9769  fi
9770 +rm -f conftest.$ac_objext conftest.$ac_ext
9771 +done
9772 +rm -f conftest*
9773 +if test -n "$ac_declaration"; then
9774 +  echo '#ifdef __cplusplus' >>confdefs.h
9775 +  echo $ac_declaration      >>confdefs.h
9776 +  echo '#endif'             >>confdefs.h
9777  fi
9778 -CC="$ac_cv_prog_CC"
9779 -if test -n "$CC"; then
9780 -  echo "$ac_t""$CC" 1>&6
9781 +
9782  else
9783 -  echo "$ac_t""no" 1>&6
9784 +  echo "$as_me: failed program was:" >&5
9785 +cat conftest.$ac_ext >&5
9786  fi
9787 - ;;
9788 -    esac
9789 -  fi
9790 -  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9791 -fi
9792 -
9793 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9794 -echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9795 -
9796 +rm -f conftest.$ac_objext conftest.$ac_ext
9797  ac_ext=c
9798 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9799  ac_cpp='$CPP $CPPFLAGS'
9800 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9801 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9802 -cross_compiling=$ac_cv_prog_cc_cross
9803 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9804 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9805 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
9806 +rm -f .deps 2>/dev/null
9807 +mkdir .deps 2>/dev/null
9808 +if test -d .deps; then
9809 +  DEPDIR=.deps
9810 +else
9811 +  # MS-DOS does not allow filenames that begin with a dot.
9812 +  DEPDIR=_deps
9813 +fi
9814 +rmdir .deps 2>/dev/null
9815 +
9816 +
9817 +          ac_config_commands="$ac_config_commands depfiles"
9818 +
9819 +
9820 +am_make=${MAKE-make}
9821 +cat > confinc << 'END'
9822 +doit:
9823 +       @echo done
9824 +END
9825 +# If we don't find an include directive, just comment out the code.
9826 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9827 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9828 +am__include="#"
9829 +am__quote=
9830 +_am_result=none
9831 +# First try GNU make style include.
9832 +echo "include confinc" > confmf
9833 +# We grep out `Entering directory' and `Leaving directory'
9834 +# messages which can occur if `w' ends up in MAKEFLAGS.
9835 +# In particular we don't look at `^make:' because GNU make might
9836 +# be invoked under some other name (usually "gmake"), in which
9837 +# case it prints its new name instead of `make'.
9838 +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
9839 +   am__include=include
9840 +   am__quote=
9841 +   _am_result=GNU
9842 +fi
9843 +# Now try BSD make style include.
9844 +if test "$am__include" = "#"; then
9845 +   echo '.include "confinc"' > confmf
9846 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9847 +      am__include=.include
9848 +      am__quote="\""
9849 +      _am_result=BSD
9850 +   fi
9851 +fi
9852  
9853 -cat > conftest.$ac_ext << EOF
9854  
9855 -#line 1012 "configure"
9856 -#include "confdefs.h"
9857 +echo "$as_me:$LINENO: result: $_am_result" >&5
9858 +echo "${ECHO_T}$_am_result" >&6
9859 +rm -f confinc confmf
9860  
9861 -main(){return(0);}
9862 -EOF
9863 -if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9864 -  ac_cv_prog_cc_works=yes
9865 -  # If we can't run a trivial program, we are probably using a cross compiler.
9866 -  if (./conftest; exit) 2>/dev/null; then
9867 -    ac_cv_prog_cc_cross=no
9868 -  else
9869 -    ac_cv_prog_cc_cross=yes
9870 -  fi
9871 -else
9872 -  echo "configure: failed program was:" >&5
9873 -  cat conftest.$ac_ext >&5
9874 -  ac_cv_prog_cc_works=no
9875 -fi
9876 -rm -fr conftest*
9877 -ac_ext=c
9878 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9879 -ac_cpp='$CPP $CPPFLAGS'
9880 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9881 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9882 -cross_compiling=$ac_cv_prog_cc_cross
9883 -
9884 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9885 -if test $ac_cv_prog_cc_works = no; then
9886 -  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9887 -fi
9888 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9889 -echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9890 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9891 -cross_compiling=$ac_cv_prog_cc_cross
9892 -
9893 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9894 -echo "configure:1048: checking whether we are using GNU C" >&5
9895 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9896 -  echo $ac_n "(cached) $ac_c" 1>&6
9897 -else
9898 -  cat > conftest.c <<EOF
9899 -#ifdef __GNUC__
9900 -  yes;
9901 -#endif
9902 -EOF
9903 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9904 -  ac_cv_prog_gcc=yes
9905 -else
9906 -  ac_cv_prog_gcc=no
9907 -fi
9908 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9909 +if test "${enable_dependency_tracking+set}" = set; then
9910 +  enableval="$enable_dependency_tracking"
9911 +
9912 +fi;
9913 +if test "x$enable_dependency_tracking" != xno; then
9914 +  am_depcomp="$ac_aux_dir/depcomp"
9915 +  AMDEPBACKSLASH='\'
9916  fi
9917  
9918 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9919  
9920 -if test $ac_cv_prog_gcc = yes; then
9921 -  GCC=yes
9922 +if test "x$enable_dependency_tracking" != xno; then
9923 +  AMDEP_TRUE=
9924 +  AMDEP_FALSE='#'
9925  else
9926 -  GCC=
9927 +  AMDEP_TRUE='#'
9928 +  AMDEP_FALSE=
9929  fi
9930  
9931 -ac_test_CFLAGS="${CFLAGS+set}"
9932 -ac_save_CFLAGS="$CFLAGS"
9933 -CFLAGS=
9934 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9935 -echo "configure:1076: checking whether ${CC-cc} accepts -g" >&5
9936 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9937 -  echo $ac_n "(cached) $ac_c" 1>&6
9938 +
9939 +
9940 +
9941 +depcc="$CC"   am_compiler_list=
9942 +
9943 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9944 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9945 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9946 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9947  else
9948 -  echo 'void f(){}' > conftest.c
9949 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9950 -  ac_cv_prog_cc_g=yes
9951 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9952 +  # We make a subdir and do the tests there.  Otherwise we can end up
9953 +  # making bogus files that we don't know about and never remove.  For
9954 +  # instance it was reported that on HP-UX the gcc test will end up
9955 +  # making a dummy file named `D' -- because `-MD' means `put the output
9956 +  # in D'.
9957 +  mkdir conftest.dir
9958 +  # Copy depcomp to subdir because otherwise we won't find it if we're
9959 +  # using a relative directory.
9960 +  cp "$am_depcomp" conftest.dir
9961 +  cd conftest.dir
9962 +
9963 +  am_cv_CC_dependencies_compiler_type=none
9964 +  if test "$am_compiler_list" = ""; then
9965 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9966 +  fi
9967 +  for depmode in $am_compiler_list; do
9968 +    # We need to recreate these files for each test, as the compiler may
9969 +    # overwrite some of them when testing with obscure command lines.
9970 +    # This happens at least with the AIX C compiler.
9971 +    echo '#include "conftest.h"' > conftest.c
9972 +    echo 'int i;' > conftest.h
9973 +    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9974 +
9975 +    case $depmode in
9976 +    nosideeffect)
9977 +      # after this tag, mechanisms are not by side-effect, so they'll
9978 +      # only be used when explicitly requested
9979 +      if test "x$enable_dependency_tracking" = xyes; then
9980 +       continue
9981 +      else
9982 +       break
9983 +      fi
9984 +      ;;
9985 +    none) break ;;
9986 +    esac
9987 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9988 +    # mode.  It turns out that the SunPro C++ compiler does not properly
9989 +    # handle `-M -o', and we need to detect this.
9990 +    if depmode=$depmode \
9991 +       source=conftest.c object=conftest.o \
9992 +       depfile=conftest.Po tmpdepfile=conftest.TPo \
9993 +       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9994 +       grep conftest.h conftest.Po > /dev/null 2>&1 &&
9995 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9996 +      am_cv_CC_dependencies_compiler_type=$depmode
9997 +      break
9998 +    fi
9999 +  done
10000 +
10001 +  cd ..
10002 +  rm -rf conftest.dir
10003  else
10004 -  ac_cv_prog_cc_g=no
10005 +  am_cv_CC_dependencies_compiler_type=none
10006  fi
10007 -rm -f conftest*
10008  
10009  fi
10010 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10011 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
10012 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10013 +
10014  
10015 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10016 -if test "$ac_test_CFLAGS" = set; then
10017 -  CFLAGS="$ac_save_CFLAGS"
10018 -elif test $ac_cv_prog_cc_g = yes; then
10019 -  if test "$GCC" = yes; then
10020 -    CFLAGS="-g -O2"
10021 -  else
10022 -    CFLAGS="-g"
10023 -  fi
10024 -else
10025 -  if test "$GCC" = yes; then
10026 -    CFLAGS="-O2"
10027 -  else
10028 -    CFLAGS=
10029 -  fi
10030 -fi
10031  
10032  
10033 -        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
10034 -echo "configure:1109: checking for strerror in -lcposix" >&5
10035 -ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
10036 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10037 -  echo $ac_n "(cached) $ac_c" 1>&6
10038 +        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
10039 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
10040 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
10041 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10042  else
10043 -  ac_save_LIBS="$LIBS"
10044 +  ac_check_lib_save_LIBS=$LIBS
10045  LIBS="-lcposix  $LIBS"
10046 -cat > conftest.$ac_ext <<EOF
10047 -#line 1117 "configure"
10048 +cat >conftest.$ac_ext <<_ACEOF
10049 +#line $LINENO "configure"
10050  #include "confdefs.h"
10051 +
10052  /* Override any gcc2 internal prototype to avoid an error.  */
10053 +#ifdef __cplusplus
10054 +extern "C"
10055 +#endif
10056  /* We use char because int might match the return type of a gcc2
10057 -    builtin and then its argument prototype would still apply.  */
10058 -char strerror();
10059 -
10060 -int main() {
10061 -strerror()
10062 -; return 0; }
10063 -EOF
10064 -if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10065 -  rm -rf conftest*
10066 -  eval "ac_cv_lib_$ac_lib_var=yes"
10067 -else
10068 -  echo "configure: failed program was:" >&5
10069 -  cat conftest.$ac_ext >&5
10070 -  rm -rf conftest*
10071 -  eval "ac_cv_lib_$ac_lib_var=no"
10072 -fi
10073 -rm -f conftest*
10074 -LIBS="$ac_save_LIBS"
10075 -
10076 -fi
10077 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10078 -  echo "$ac_t""yes" 1>&6
10079 +   builtin and then its argument prototype would still apply.  */
10080 +char strerror ();
10081 +#ifdef F77_DUMMY_MAIN
10082 +#  ifdef __cplusplus
10083 +     extern "C"
10084 +#  endif
10085 +   int F77_DUMMY_MAIN() { return 1; }
10086 +#endif
10087 +int
10088 +main ()
10089 +{
10090 +strerror ();
10091 +  ;
10092 +  return 0;
10093 +}
10094 +_ACEOF
10095 +rm -f conftest.$ac_objext conftest$ac_exeext
10096 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 +  (eval $ac_link) 2>&5
10098 +  ac_status=$?
10099 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 +  (exit $ac_status); } &&
10101 +         { ac_try='test -s conftest$ac_exeext'
10102 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 +  (eval $ac_try) 2>&5
10104 +  ac_status=$?
10105 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 +  (exit $ac_status); }; }; then
10107 +  ac_cv_lib_cposix_strerror=yes
10108 +else
10109 +  echo "$as_me: failed program was:" >&5
10110 +cat conftest.$ac_ext >&5
10111 +ac_cv_lib_cposix_strerror=no
10112 +fi
10113 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10114 +LIBS=$ac_check_lib_save_LIBS
10115 +fi
10116 +echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
10117 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
10118 +if test $ac_cv_lib_cposix_strerror = yes; then
10119    LIBS="$LIBS -lcposix"
10120 -else
10121 -  echo "$ac_t""no" 1>&6
10122  fi
10123  
10124 -  
10125  
10126  
10127  
10128  
10129 -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
10130 -echo "configure:1154: checking for ${CC-cc} option to accept ANSI C" >&5
10131 -if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
10132 -  echo $ac_n "(cached) $ac_c" 1>&6
10133 +
10134 +echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
10135 +echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
10136 +if test "${am_cv_prog_cc_stdc+set}" = set; then
10137 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10138  else
10139    am_cv_prog_cc_stdc=no
10140  ac_save_CC="$CC"
10141 @@ -1162,13 +2779,14 @@
10142  # breaks some systems' header files.
10143  # AIX                  -qlanglvl=ansi
10144  # Ultrix and OSF/1     -std1
10145 -# HP-UX                        -Aa -D_HPUX_SOURCE
10146 +# HP-UX 10.20 and later        -Ae
10147 +# HP-UX older versions -Aa -D_HPUX_SOURCE
10148  # SVR4                 -Xc -D__EXTENSIONS__
10149 -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10150 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10151  do
10152    CC="$ac_save_CC $ac_arg"
10153 -  cat > conftest.$ac_ext <<EOF
10154 -#line 1170 "configure"
10155 +  cat >conftest.$ac_ext <<_ACEOF
10156 +#line $LINENO "configure"
10157  #include "confdefs.h"
10158  #include <stdarg.h>
10159  #include <stdio.h>
10160 @@ -1199,170 +2817,386 @@
10161  int argc;
10162  char **argv;
10163  
10164 -int main() {
10165 +#ifdef F77_DUMMY_MAIN
10166 +#  ifdef __cplusplus
10167 +     extern "C"
10168 +#  endif
10169 +   int F77_DUMMY_MAIN() { return 1; }
10170 +#endif
10171 +int
10172 +main ()
10173 +{
10174  
10175  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10176  
10177 -; return 0; }
10178 -EOF
10179 -if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 -  rm -rf conftest*
10181 +  ;
10182 +  return 0;
10183 +}
10184 +_ACEOF
10185 +rm -f conftest.$ac_objext
10186 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 +  (eval $ac_compile) 2>&5
10188 +  ac_status=$?
10189 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 +  (exit $ac_status); } &&
10191 +         { ac_try='test -s conftest.$ac_objext'
10192 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 +  (eval $ac_try) 2>&5
10194 +  ac_status=$?
10195 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 +  (exit $ac_status); }; }; then
10197    am_cv_prog_cc_stdc="$ac_arg"; break
10198  else
10199 -  echo "configure: failed program was:" >&5
10200 -  cat conftest.$ac_ext >&5
10201 +  echo "$as_me: failed program was:" >&5
10202 +cat conftest.$ac_ext >&5
10203  fi
10204 -rm -f conftest*
10205 +rm -f conftest.$ac_objext conftest.$ac_ext
10206  done
10207  CC="$ac_save_CC"
10208  
10209  fi
10210  
10211  if test -z "$am_cv_prog_cc_stdc"; then
10212 -  echo "$ac_t""none needed" 1>&6
10213 +  echo "$as_me:$LINENO: result: none needed" >&5
10214 +echo "${ECHO_T}none needed" >&6
10215  else
10216 -  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
10217 +  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
10218 +echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
10219  fi
10220  case "x$am_cv_prog_cc_stdc" in
10221    x|xno) ;;
10222    *) CC="$CC $am_cv_prog_cc_stdc" ;;
10223  esac
10224  
10225 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
10226 -echo "configure:1231: checking how to run the C preprocessor" >&5
10227 +ac_ext=c
10228 +ac_cpp='$CPP $CPPFLAGS'
10229 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10230 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10231 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10232 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10233 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10234  # On Suns, sometimes $CPP names a directory.
10235  if test -n "$CPP" && test -d "$CPP"; then
10236    CPP=
10237  fi
10238  if test -z "$CPP"; then
10239 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
10240 -  echo $ac_n "(cached) $ac_c" 1>&6
10241 +  if test "${ac_cv_prog_CPP+set}" = set; then
10242 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10243  else
10244 -    # This must be in double quotes, not single quotes, because CPP may get
10245 -  # substituted into the Makefile and "${CC-cc}" will confuse make.
10246 -  CPP="${CC-cc} -E"
10247 +      # Double quotes because CPP needs to be expanded
10248 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10249 +    do
10250 +      ac_preproc_ok=false
10251 +for ac_c_preproc_warn_flag in '' yes
10252 +do
10253 +  # Use a header file that comes with gcc, so configuring glibc
10254 +  # with a fresh cross-compiler works.
10255    # On the NeXT, cc -E runs the code through the compiler's parser,
10256 -  # not just through cpp.
10257 -  cat > conftest.$ac_ext <<EOF
10258 -#line 1246 "configure"
10259 +  # not just through cpp. "Syntax error" is here to catch this case.
10260 +  cat >conftest.$ac_ext <<_ACEOF
10261 +#line $LINENO "configure"
10262  #include "confdefs.h"
10263  #include <assert.h>
10264 -Syntax Error
10265 -EOF
10266 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10267 -{ (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10268 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10269 -if test -z "$ac_err"; then
10270 +                     Syntax error
10271 +_ACEOF
10272 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10273 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10274 +  ac_status=$?
10275 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10276 +  rm -f conftest.er1
10277 +  cat conftest.err >&5
10278 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 +  (exit $ac_status); } >/dev/null; then
10280 +  if test -s conftest.err; then
10281 +    ac_cpp_err=$ac_c_preproc_warn_flag
10282 +  else
10283 +    ac_cpp_err=
10284 +  fi
10285 +else
10286 +  ac_cpp_err=yes
10287 +fi
10288 +if test -z "$ac_cpp_err"; then
10289    :
10290  else
10291 -  echo "$ac_err" >&5
10292 -  echo "configure: failed program was:" >&5
10293 +  echo "$as_me: failed program was:" >&5
10294    cat conftest.$ac_ext >&5
10295 -  rm -rf conftest*
10296 -  CPP="${CC-cc} -E -traditional-cpp"
10297 -  cat > conftest.$ac_ext <<EOF
10298 -#line 1263 "configure"
10299 -#include "confdefs.h"
10300 -#include <assert.h>
10301 -Syntax Error
10302 -EOF
10303 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10304 -{ (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10305 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10306 -if test -z "$ac_err"; then
10307 -  :
10308 +  # Broken: fails on valid input.
10309 +continue
10310 +fi
10311 +rm -f conftest.err conftest.$ac_ext
10312 +
10313 +  # OK, works on sane cases.  Now check whether non-existent headers
10314 +  # can be detected and how.
10315 +  cat >conftest.$ac_ext <<_ACEOF
10316 +#line $LINENO "configure"
10317 +#include "confdefs.h"
10318 +#include <ac_nonexistent.h>
10319 +_ACEOF
10320 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10321 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10322 +  ac_status=$?
10323 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10324 +  rm -f conftest.er1
10325 +  cat conftest.err >&5
10326 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 +  (exit $ac_status); } >/dev/null; then
10328 +  if test -s conftest.err; then
10329 +    ac_cpp_err=$ac_c_preproc_warn_flag
10330 +  else
10331 +    ac_cpp_err=
10332 +  fi
10333  else
10334 -  echo "$ac_err" >&5
10335 -  echo "configure: failed program was:" >&5
10336 +  ac_cpp_err=yes
10337 +fi
10338 +if test -z "$ac_cpp_err"; then
10339 +  # Broken: success on invalid input.
10340 +continue
10341 +else
10342 +  echo "$as_me: failed program was:" >&5
10343    cat conftest.$ac_ext >&5
10344 -  rm -rf conftest*
10345 -  CPP="${CC-cc} -nologo -E"
10346 -  cat > conftest.$ac_ext <<EOF
10347 -#line 1280 "configure"
10348 +  # Passes both tests.
10349 +ac_preproc_ok=:
10350 +break
10351 +fi
10352 +rm -f conftest.err conftest.$ac_ext
10353 +
10354 +done
10355 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10356 +rm -f conftest.err conftest.$ac_ext
10357 +if $ac_preproc_ok; then
10358 +  break
10359 +fi
10360 +
10361 +    done
10362 +    ac_cv_prog_CPP=$CPP
10363 +
10364 +fi
10365 +  CPP=$ac_cv_prog_CPP
10366 +else
10367 +  ac_cv_prog_CPP=$CPP
10368 +fi
10369 +echo "$as_me:$LINENO: result: $CPP" >&5
10370 +echo "${ECHO_T}$CPP" >&6
10371 +ac_preproc_ok=false
10372 +for ac_c_preproc_warn_flag in '' yes
10373 +do
10374 +  # Use a header file that comes with gcc, so configuring glibc
10375 +  # with a fresh cross-compiler works.
10376 +  # On the NeXT, cc -E runs the code through the compiler's parser,
10377 +  # not just through cpp. "Syntax error" is here to catch this case.
10378 +  cat >conftest.$ac_ext <<_ACEOF
10379 +#line $LINENO "configure"
10380  #include "confdefs.h"
10381  #include <assert.h>
10382 -Syntax Error
10383 -EOF
10384 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10385 -{ (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10386 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10387 -if test -z "$ac_err"; then
10388 +                     Syntax error
10389 +_ACEOF
10390 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10391 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10392 +  ac_status=$?
10393 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10394 +  rm -f conftest.er1
10395 +  cat conftest.err >&5
10396 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 +  (exit $ac_status); } >/dev/null; then
10398 +  if test -s conftest.err; then
10399 +    ac_cpp_err=$ac_c_preproc_warn_flag
10400 +  else
10401 +    ac_cpp_err=
10402 +  fi
10403 +else
10404 +  ac_cpp_err=yes
10405 +fi
10406 +if test -z "$ac_cpp_err"; then
10407    :
10408  else
10409 -  echo "$ac_err" >&5
10410 -  echo "configure: failed program was:" >&5
10411 +  echo "$as_me: failed program was:" >&5
10412    cat conftest.$ac_ext >&5
10413 -  rm -rf conftest*
10414 -  CPP=/lib/cpp
10415 +  # Broken: fails on valid input.
10416 +continue
10417  fi
10418 -rm -f conftest*
10419 +rm -f conftest.err conftest.$ac_ext
10420 +
10421 +  # OK, works on sane cases.  Now check whether non-existent headers
10422 +  # can be detected and how.
10423 +  cat >conftest.$ac_ext <<_ACEOF
10424 +#line $LINENO "configure"
10425 +#include "confdefs.h"
10426 +#include <ac_nonexistent.h>
10427 +_ACEOF
10428 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10429 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10430 +  ac_status=$?
10431 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10432 +  rm -f conftest.er1
10433 +  cat conftest.err >&5
10434 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 +  (exit $ac_status); } >/dev/null; then
10436 +  if test -s conftest.err; then
10437 +    ac_cpp_err=$ac_c_preproc_warn_flag
10438 +  else
10439 +    ac_cpp_err=
10440 +  fi
10441 +else
10442 +  ac_cpp_err=yes
10443  fi
10444 -rm -f conftest*
10445 +if test -z "$ac_cpp_err"; then
10446 +  # Broken: success on invalid input.
10447 +continue
10448 +else
10449 +  echo "$as_me: failed program was:" >&5
10450 +  cat conftest.$ac_ext >&5
10451 +  # Passes both tests.
10452 +ac_preproc_ok=:
10453 +break
10454  fi
10455 -rm -f conftest*
10456 -  ac_cv_prog_CPP="$CPP"
10457 +rm -f conftest.err conftest.$ac_ext
10458 +
10459 +done
10460 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10461 +rm -f conftest.err conftest.$ac_ext
10462 +if $ac_preproc_ok; then
10463 +  :
10464 +else
10465 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
10466 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
10467 +   { (exit 1); exit 1; }; }
10468  fi
10469 -  CPP="$ac_cv_prog_CPP"
10470 +
10471 +ac_ext=c
10472 +ac_cpp='$CPP $CPPFLAGS'
10473 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10474 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10475 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10476 +
10477 +
10478 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10479 +
10480 +
10481 +
10482 +
10483 +
10484 +
10485 +
10486 +
10487 +
10488 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10489 +                  inttypes.h stdint.h unistd.h
10490 +do
10491 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10492 +echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10494 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10496 +else
10497 +  cat >conftest.$ac_ext <<_ACEOF
10498 +#line $LINENO "configure"
10499 +#include "confdefs.h"
10500 +$ac_includes_default
10501 +
10502 +#include <$ac_header>
10503 +_ACEOF
10504 +rm -f conftest.$ac_objext
10505 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 +  (eval $ac_compile) 2>&5
10507 +  ac_status=$?
10508 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 +  (exit $ac_status); } &&
10510 +         { ac_try='test -s conftest.$ac_objext'
10511 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 +  (eval $ac_try) 2>&5
10513 +  ac_status=$?
10514 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 +  (exit $ac_status); }; }; then
10516 +  eval "$as_ac_Header=yes"
10517  else
10518 -  ac_cv_prog_CPP="$CPP"
10519 +  echo "$as_me: failed program was:" >&5
10520 +cat conftest.$ac_ext >&5
10521 +eval "$as_ac_Header=no"
10522 +fi
10523 +rm -f conftest.$ac_objext conftest.$ac_ext
10524 +fi
10525 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10526 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10527 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
10528 +  cat >>confdefs.h <<_ACEOF
10529 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10530 +_ACEOF
10531 +
10532  fi
10533 -echo "$ac_t""$CPP" 1>&6
10534 +
10535 +done
10536 +
10537  
10538  
10539  
10540 -echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
10541 -echo "configure:1313: checking for function prototypes" >&5
10542 +echo "$as_me:$LINENO: checking for function prototypes" >&5
10543 +echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
10544  if test "$am_cv_prog_cc_stdc" != no; then
10545 -  echo "$ac_t""yes" 1>&6
10546 -  cat >> confdefs.h <<\EOF
10547 +  echo "$as_me:$LINENO: result: yes" >&5
10548 +echo "${ECHO_T}yes" >&6
10549 +
10550 +cat >>confdefs.h <<\_ACEOF
10551  #define PROTOTYPES 1
10552 -EOF
10553 +_ACEOF
10554  
10555    U= ANSI2KNR=
10556  else
10557 -  echo "$ac_t""no" 1>&6
10558 +  echo "$as_me:$LINENO: result: no" >&5
10559 +echo "${ECHO_T}no" >&6
10560    U=_ ANSI2KNR=./ansi2knr
10561 -  # Ensure some checks needed by ansi2knr itself.
10562 -  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10563 -echo "configure:1326: checking for ANSI C header files" >&5
10564 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10565 -  echo $ac_n "(cached) $ac_c" 1>&6
10566 +fi
10567 +# Ensure some checks needed by ansi2knr itself.
10568 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10569 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10570 +if test "${ac_cv_header_stdc+set}" = set; then
10571 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10572  else
10573 -  cat > conftest.$ac_ext <<EOF
10574 -#line 1331 "configure"
10575 +  cat >conftest.$ac_ext <<_ACEOF
10576 +#line $LINENO "configure"
10577  #include "confdefs.h"
10578  #include <stdlib.h>
10579  #include <stdarg.h>
10580  #include <string.h>
10581  #include <float.h>
10582 -EOF
10583 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10584 -{ (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10585 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10586 -if test -z "$ac_err"; then
10587 -  rm -rf conftest*
10588 +
10589 +_ACEOF
10590 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10591 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10592 +  ac_status=$?
10593 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10594 +  rm -f conftest.er1
10595 +  cat conftest.err >&5
10596 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 +  (exit $ac_status); } >/dev/null; then
10598 +  if test -s conftest.err; then
10599 +    ac_cpp_err=$ac_c_preproc_warn_flag
10600 +  else
10601 +    ac_cpp_err=
10602 +  fi
10603 +else
10604 +  ac_cpp_err=yes
10605 +fi
10606 +if test -z "$ac_cpp_err"; then
10607    ac_cv_header_stdc=yes
10608  else
10609 -  echo "$ac_err" >&5
10610 -  echo "configure: failed program was:" >&5
10611 +  echo "$as_me: failed program was:" >&5
10612    cat conftest.$ac_ext >&5
10613 -  rm -rf conftest*
10614    ac_cv_header_stdc=no
10615  fi
10616 -rm -f conftest*
10617 +rm -f conftest.err conftest.$ac_ext
10618  
10619  if test $ac_cv_header_stdc = yes; then
10620    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10621 -cat > conftest.$ac_ext <<EOF
10622 -#line 1356 "configure"
10623 +  cat >conftest.$ac_ext <<_ACEOF
10624 +#line $LINENO "configure"
10625  #include "confdefs.h"
10626  #include <string.h>
10627 -EOF
10628 +
10629 +_ACEOF
10630  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10631    egrep "memchr" >/dev/null 2>&1; then
10632    :
10633  else
10634 -  rm -rf conftest*
10635    ac_cv_header_stdc=no
10636  fi
10637  rm -f conftest*
10638 @@ -1371,16 +3205,16 @@
10639  
10640  if test $ac_cv_header_stdc = yes; then
10641    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10642 -cat > conftest.$ac_ext <<EOF
10643 -#line 1374 "configure"
10644 +  cat >conftest.$ac_ext <<_ACEOF
10645 +#line $LINENO "configure"
10646  #include "confdefs.h"
10647  #include <stdlib.h>
10648 -EOF
10649 +
10650 +_ACEOF
10651  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10652    egrep "free" >/dev/null 2>&1; then
10653    :
10654  else
10655 -  rm -rf conftest*
10656    ac_cv_header_stdc=no
10657  fi
10658  rm -f conftest*
10659 @@ -1389,193 +3223,414 @@
10660  
10661  if test $ac_cv_header_stdc = yes; then
10662    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10663 -if test "$cross_compiling" = yes; then
10664 +  if test "$cross_compiling" = yes; then
10665    :
10666  else
10667 -  cat > conftest.$ac_ext <<EOF
10668 -#line 1395 "configure"
10669 +  cat >conftest.$ac_ext <<_ACEOF
10670 +#line $LINENO "configure"
10671  #include "confdefs.h"
10672  #include <ctype.h>
10673 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10674 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10675 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10676 -int main () { int i; for (i = 0; i < 256; i++)
10677 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10678 -exit (0); }
10679 +#if ((' ' & 0x0FF) == 0x020)
10680 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10681 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10682 +#else
10683 +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10684 +                     || ('j' <= (c) && (c) <= 'r') \
10685 +                     || ('s' <= (c) && (c) <= 'z'))
10686 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10687 +#endif
10688  
10689 -EOF
10690 -if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10691 -then
10692 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10693 +int
10694 +main ()
10695 +{
10696 +  int i;
10697 +  for (i = 0; i < 256; i++)
10698 +    if (XOR (islower (i), ISLOWER (i))
10699 +        || toupper (i) != TOUPPER (i))
10700 +      exit(2);
10701 +  exit (0);
10702 +}
10703 +_ACEOF
10704 +rm -f conftest$ac_exeext
10705 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 +  (eval $ac_link) 2>&5
10707 +  ac_status=$?
10708 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10710 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 +  (eval $ac_try) 2>&5
10712 +  ac_status=$?
10713 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 +  (exit $ac_status); }; }; then
10715    :
10716  else
10717 -  echo "configure: failed program was:" >&5
10718 -  cat conftest.$ac_ext >&5
10719 -  rm -fr conftest*
10720 -  ac_cv_header_stdc=no
10721 +  echo "$as_me: program exited with status $ac_status" >&5
10722 +echo "$as_me: failed program was:" >&5
10723 +cat conftest.$ac_ext >&5
10724 +( exit $ac_status )
10725 +ac_cv_header_stdc=no
10726  fi
10727 -rm -fr conftest*
10728 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10729  fi
10730 -
10731  fi
10732  fi
10733 -
10734 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
10735 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10736 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
10737  if test $ac_cv_header_stdc = yes; then
10738 -  cat >> confdefs.h <<\EOF
10739 +
10740 +cat >>confdefs.h <<\_ACEOF
10741  #define STDC_HEADERS 1
10742 -EOF
10743 +_ACEOF
10744  
10745  fi
10746  
10747 -  for ac_hdr in string.h
10748 +
10749 +for ac_header in string.h
10750  do
10751 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10752 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10753 -echo "configure:1433: checking for $ac_hdr" >&5
10754 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10755 -  echo $ac_n "(cached) $ac_c" 1>&6
10756 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10760 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
10761 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10762 +fi
10763 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10764 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10765 +else
10766 +  # Is the header compilable?
10767 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
10768 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10769 +cat >conftest.$ac_ext <<_ACEOF
10770 +#line $LINENO "configure"
10771 +#include "confdefs.h"
10772 +$ac_includes_default
10773 +#include <$ac_header>
10774 +_ACEOF
10775 +rm -f conftest.$ac_objext
10776 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 +  (eval $ac_compile) 2>&5
10778 +  ac_status=$?
10779 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 +  (exit $ac_status); } &&
10781 +         { ac_try='test -s conftest.$ac_objext'
10782 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 +  (eval $ac_try) 2>&5
10784 +  ac_status=$?
10785 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 +  (exit $ac_status); }; }; then
10787 +  ac_header_compiler=yes
10788 +else
10789 +  echo "$as_me: failed program was:" >&5
10790 +cat conftest.$ac_ext >&5
10791 +ac_header_compiler=no
10792 +fi
10793 +rm -f conftest.$ac_objext conftest.$ac_ext
10794 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10795 +echo "${ECHO_T}$ac_header_compiler" >&6
10796 +
10797 +# Is the header present?
10798 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
10799 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10800 +cat >conftest.$ac_ext <<_ACEOF
10801 +#line $LINENO "configure"
10802 +#include "confdefs.h"
10803 +#include <$ac_header>
10804 +_ACEOF
10805 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10806 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10807 +  ac_status=$?
10808 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10809 +  rm -f conftest.er1
10810 +  cat conftest.err >&5
10811 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 +  (exit $ac_status); } >/dev/null; then
10813 +  if test -s conftest.err; then
10814 +    ac_cpp_err=$ac_c_preproc_warn_flag
10815 +  else
10816 +    ac_cpp_err=
10817 +  fi
10818  else
10819 -  cat > conftest.$ac_ext <<EOF
10820 -#line 1438 "configure"
10821 -#include "confdefs.h"
10822 -#include <$ac_hdr>
10823 -EOF
10824 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10825 -{ (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10826 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10827 -if test -z "$ac_err"; then
10828 -  rm -rf conftest*
10829 -  eval "ac_cv_header_$ac_safe=yes"
10830 +  ac_cpp_err=yes
10831 +fi
10832 +if test -z "$ac_cpp_err"; then
10833 +  ac_header_preproc=yes
10834  else
10835 -  echo "$ac_err" >&5
10836 -  echo "configure: failed program was:" >&5
10837 +  echo "$as_me: failed program was:" >&5
10838    cat conftest.$ac_ext >&5
10839 -  rm -rf conftest*
10840 -  eval "ac_cv_header_$ac_safe=no"
10841 -fi
10842 -rm -f conftest*
10843 +  ac_header_preproc=no
10844  fi
10845 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10846 -  echo "$ac_t""yes" 1>&6
10847 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10848 -  cat >> confdefs.h <<EOF
10849 -#define $ac_tr_hdr 1
10850 -EOF
10851
10852 +rm -f conftest.err conftest.$ac_ext
10853 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10854 +echo "${ECHO_T}$ac_header_preproc" >&6
10855 +
10856 +# So?  What about this header?
10857 +case $ac_header_compiler:$ac_header_preproc in
10858 +  yes:no )
10859 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10860 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10861 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10862 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10863 +  no:yes )
10864 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10865 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10866 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10867 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10868 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10869 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10870 +esac
10871 +echo "$as_me:$LINENO: checking for $ac_header" >&5
10872 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10873 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
10874 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10875  else
10876 -  echo "$ac_t""no" 1>&6
10877 +  eval "$as_ac_Header=$ac_header_preproc"
10878  fi
10879 -done
10880 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882 +
10883 +fi
10884 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885 +  cat >>confdefs.h <<_ACEOF
10886 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887 +_ACEOF
10888  
10889  fi
10890  
10891 +done
10892 +
10893 +
10894  if test "x$U" != "x"; then
10895 -  { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
10896 +  { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
10897 +echo "$as_me: error: Compiler not ANSI compliant" >&2;}
10898 +   { (exit 1); exit 1; }; }
10899  fi
10900 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
10901 -echo "configure:1475: checking how to run the C preprocessor" >&5
10902 +ac_ext=c
10903 +ac_cpp='$CPP $CPPFLAGS'
10904 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10905 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10906 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10907 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10908 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10909  # On Suns, sometimes $CPP names a directory.
10910  if test -n "$CPP" && test -d "$CPP"; then
10911    CPP=
10912  fi
10913  if test -z "$CPP"; then
10914 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
10915 -  echo $ac_n "(cached) $ac_c" 1>&6
10916 +  if test "${ac_cv_prog_CPP+set}" = set; then
10917 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10918  else
10919 -    # This must be in double quotes, not single quotes, because CPP may get
10920 -  # substituted into the Makefile and "${CC-cc}" will confuse make.
10921 -  CPP="${CC-cc} -E"
10922 +      # Double quotes because CPP needs to be expanded
10923 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10924 +    do
10925 +      ac_preproc_ok=false
10926 +for ac_c_preproc_warn_flag in '' yes
10927 +do
10928 +  # Use a header file that comes with gcc, so configuring glibc
10929 +  # with a fresh cross-compiler works.
10930    # On the NeXT, cc -E runs the code through the compiler's parser,
10931 -  # not just through cpp.
10932 -  cat > conftest.$ac_ext <<EOF
10933 -#line 1490 "configure"
10934 +  # not just through cpp. "Syntax error" is here to catch this case.
10935 +  cat >conftest.$ac_ext <<_ACEOF
10936 +#line $LINENO "configure"
10937  #include "confdefs.h"
10938  #include <assert.h>
10939 -Syntax Error
10940 -EOF
10941 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10942 -{ (eval echo configure:1496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10943 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10944 -if test -z "$ac_err"; then
10945 +                     Syntax error
10946 +_ACEOF
10947 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10948 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10949 +  ac_status=$?
10950 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10951 +  rm -f conftest.er1
10952 +  cat conftest.err >&5
10953 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 +  (exit $ac_status); } >/dev/null; then
10955 +  if test -s conftest.err; then
10956 +    ac_cpp_err=$ac_c_preproc_warn_flag
10957 +  else
10958 +    ac_cpp_err=
10959 +  fi
10960 +else
10961 +  ac_cpp_err=yes
10962 +fi
10963 +if test -z "$ac_cpp_err"; then
10964    :
10965  else
10966 -  echo "$ac_err" >&5
10967 -  echo "configure: failed program was:" >&5
10968 +  echo "$as_me: failed program was:" >&5
10969    cat conftest.$ac_ext >&5
10970 -  rm -rf conftest*
10971 -  CPP="${CC-cc} -E -traditional-cpp"
10972 -  cat > conftest.$ac_ext <<EOF
10973 -#line 1507 "configure"
10974 -#include "confdefs.h"
10975 -#include <assert.h>
10976 -Syntax Error
10977 -EOF
10978 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10979 -{ (eval echo configure:1513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10980 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10981 -if test -z "$ac_err"; then
10982 -  :
10983 +  # Broken: fails on valid input.
10984 +continue
10985 +fi
10986 +rm -f conftest.err conftest.$ac_ext
10987 +
10988 +  # OK, works on sane cases.  Now check whether non-existent headers
10989 +  # can be detected and how.
10990 +  cat >conftest.$ac_ext <<_ACEOF
10991 +#line $LINENO "configure"
10992 +#include "confdefs.h"
10993 +#include <ac_nonexistent.h>
10994 +_ACEOF
10995 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10996 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10997 +  ac_status=$?
10998 +  egrep -v '^ *\+' conftest.er1 >conftest.err
10999 +  rm -f conftest.er1
11000 +  cat conftest.err >&5
11001 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 +  (exit $ac_status); } >/dev/null; then
11003 +  if test -s conftest.err; then
11004 +    ac_cpp_err=$ac_c_preproc_warn_flag
11005 +  else
11006 +    ac_cpp_err=
11007 +  fi
11008 +else
11009 +  ac_cpp_err=yes
11010 +fi
11011 +if test -z "$ac_cpp_err"; then
11012 +  # Broken: success on invalid input.
11013 +continue
11014  else
11015 -  echo "$ac_err" >&5
11016 -  echo "configure: failed program was:" >&5
11017 +  echo "$as_me: failed program was:" >&5
11018    cat conftest.$ac_ext >&5
11019 -  rm -rf conftest*
11020 -  CPP="${CC-cc} -nologo -E"
11021 -  cat > conftest.$ac_ext <<EOF
11022 -#line 1524 "configure"
11023 +  # Passes both tests.
11024 +ac_preproc_ok=:
11025 +break
11026 +fi
11027 +rm -f conftest.err conftest.$ac_ext
11028 +
11029 +done
11030 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11031 +rm -f conftest.err conftest.$ac_ext
11032 +if $ac_preproc_ok; then
11033 +  break
11034 +fi
11035 +
11036 +    done
11037 +    ac_cv_prog_CPP=$CPP
11038 +
11039 +fi
11040 +  CPP=$ac_cv_prog_CPP
11041 +else
11042 +  ac_cv_prog_CPP=$CPP
11043 +fi
11044 +echo "$as_me:$LINENO: result: $CPP" >&5
11045 +echo "${ECHO_T}$CPP" >&6
11046 +ac_preproc_ok=false
11047 +for ac_c_preproc_warn_flag in '' yes
11048 +do
11049 +  # Use a header file that comes with gcc, so configuring glibc
11050 +  # with a fresh cross-compiler works.
11051 +  # On the NeXT, cc -E runs the code through the compiler's parser,
11052 +  # not just through cpp. "Syntax error" is here to catch this case.
11053 +  cat >conftest.$ac_ext <<_ACEOF
11054 +#line $LINENO "configure"
11055  #include "confdefs.h"
11056  #include <assert.h>
11057 -Syntax Error
11058 -EOF
11059 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11060 -{ (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11061 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11062 -if test -z "$ac_err"; then
11063 +                     Syntax error
11064 +_ACEOF
11065 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11066 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11067 +  ac_status=$?
11068 +  egrep -v '^ *\+' conftest.er1 >conftest.err
11069 +  rm -f conftest.er1
11070 +  cat conftest.err >&5
11071 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 +  (exit $ac_status); } >/dev/null; then
11073 +  if test -s conftest.err; then
11074 +    ac_cpp_err=$ac_c_preproc_warn_flag
11075 +  else
11076 +    ac_cpp_err=
11077 +  fi
11078 +else
11079 +  ac_cpp_err=yes
11080 +fi
11081 +if test -z "$ac_cpp_err"; then
11082    :
11083  else
11084 -  echo "$ac_err" >&5
11085 -  echo "configure: failed program was:" >&5
11086 +  echo "$as_me: failed program was:" >&5
11087    cat conftest.$ac_ext >&5
11088 -  rm -rf conftest*
11089 -  CPP=/lib/cpp
11090 -fi
11091 -rm -f conftest*
11092 +  # Broken: fails on valid input.
11093 +continue
11094  fi
11095 -rm -f conftest*
11096 +rm -f conftest.err conftest.$ac_ext
11097 +
11098 +  # OK, works on sane cases.  Now check whether non-existent headers
11099 +  # can be detected and how.
11100 +  cat >conftest.$ac_ext <<_ACEOF
11101 +#line $LINENO "configure"
11102 +#include "confdefs.h"
11103 +#include <ac_nonexistent.h>
11104 +_ACEOF
11105 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11106 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11107 +  ac_status=$?
11108 +  egrep -v '^ *\+' conftest.er1 >conftest.err
11109 +  rm -f conftest.er1
11110 +  cat conftest.err >&5
11111 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 +  (exit $ac_status); } >/dev/null; then
11113 +  if test -s conftest.err; then
11114 +    ac_cpp_err=$ac_c_preproc_warn_flag
11115 +  else
11116 +    ac_cpp_err=
11117 +  fi
11118 +else
11119 +  ac_cpp_err=yes
11120  fi
11121 -rm -f conftest*
11122 -  ac_cv_prog_CPP="$CPP"
11123 +if test -z "$ac_cpp_err"; then
11124 +  # Broken: success on invalid input.
11125 +continue
11126 +else
11127 +  echo "$as_me: failed program was:" >&5
11128 +  cat conftest.$ac_ext >&5
11129 +  # Passes both tests.
11130 +ac_preproc_ok=:
11131 +break
11132  fi
11133 -  CPP="$ac_cv_prog_CPP"
11134 +rm -f conftest.err conftest.$ac_ext
11135 +
11136 +done
11137 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11138 +rm -f conftest.err conftest.$ac_ext
11139 +if $ac_preproc_ok; then
11140 +  :
11141  else
11142 -  ac_cv_prog_CPP="$CPP"
11143 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
11144 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
11145 +   { (exit 1); exit 1; }; }
11146  fi
11147 -echo "$ac_t""$CPP" 1>&6
11148  
11149 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
11150 -echo "configure:1555: checking whether ${MAKE-make} sets \${MAKE}" >&5
11151 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11152 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11153 -  echo $ac_n "(cached) $ac_c" 1>&6
11154 +ac_ext=c
11155 +ac_cpp='$CPP $CPPFLAGS'
11156 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11157 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11158 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11159 +
11160 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
11161 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
11162 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
11163 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11164 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11165  else
11166 -  cat > conftestmake <<\EOF
11167 +  cat >conftest.make <<\_ACEOF
11168  all:
11169         @echo 'ac_maketemp="${MAKE}"'
11170 -EOF
11171 +_ACEOF
11172  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11173 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11174 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11175  if test -n "$ac_maketemp"; then
11176    eval ac_cv_prog_make_${ac_make}_set=yes
11177  else
11178    eval ac_cv_prog_make_${ac_make}_set=no
11179  fi
11180 -rm -f conftestmake
11181 +rm -f conftest.make
11182  fi
11183  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11184 -  echo "$ac_t""yes" 1>&6
11185 +  echo "$as_me:$LINENO: result: yes" >&5
11186 +echo "${ECHO_T}yes" >&6
11187    SET_MAKE=
11188  else
11189 -  echo "$ac_t""no" 1>&6
11190 +  echo "$as_me:$LINENO: result: no" >&5
11191 +echo "${ECHO_T}no" >&6
11192    SET_MAKE="MAKE=${MAKE-make}"
11193  fi
11194  
11195 @@ -1586,407 +3641,508 @@
11196  # SunOS /usr/etc/install
11197  # IRIX /sbin/install
11198  # AIX /bin/install
11199 +# AmigaOS /C/install, which installs bootblocks on floppy discs
11200  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11201  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11202  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11203  # ./install, which can be erroneously created by make from ./install.sh.
11204 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
11205 -echo "configure:1593: checking for a BSD compatible install" >&5
11206 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11207 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11208  if test -z "$INSTALL"; then
11209 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
11210 -  echo $ac_n "(cached) $ac_c" 1>&6
11211 +if test "${ac_cv_path_install+set}" = set; then
11212 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11213  else
11214 -    IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
11215 -  for ac_dir in $PATH; do
11216 -    # Account for people who put trailing slashes in PATH elements.
11217 -    case "$ac_dir/" in
11218 -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
11219 -    *)
11220 -      # OSF1 and SCO ODT 3.0 have their own names for install.
11221 -      # Don't use installbsd from OSF since it installs stuff as root
11222 -      # by default.
11223 -      for ac_prog in ginstall scoinst install; do
11224 -        if test -f $ac_dir/$ac_prog; then
11225 -         if test $ac_prog = install &&
11226 -            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
11227 -           # AIX install.  It has an incompatible calling convention.
11228 -           :
11229 -         else
11230 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
11231 -           break 2
11232 -         fi
11233 -       fi
11234 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235 +for as_dir in $PATH
11236 +do
11237 +  IFS=$as_save_IFS
11238 +  test -z "$as_dir" && as_dir=.
11239 +  # Account for people who put trailing slashes in PATH elements.
11240 +case $as_dir/ in
11241 +  ./ | .// | /cC/* | \
11242 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11243 +  /usr/ucb/* ) ;;
11244 +  *)
11245 +    # OSF1 and SCO ODT 3.0 have their own names for install.
11246 +    # Don't use installbsd from OSF since it installs stuff as root
11247 +    # by default.
11248 +    for ac_prog in ginstall scoinst install; do
11249 +      for ac_exec_ext in '' $ac_executable_extensions; do
11250 +        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11251 +          if test $ac_prog = install &&
11252 +            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11253 +            # AIX install.  It has an incompatible calling convention.
11254 +            :
11255 +          elif test $ac_prog = install &&
11256 +            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11257 +            # program-specific install script used by HP pwplus--don't use.
11258 +            :
11259 +          else
11260 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11261 +            break 3
11262 +          fi
11263 +        fi
11264        done
11265 -      ;;
11266 -    esac
11267 -  done
11268 -  IFS="$ac_save_IFS"
11269 +    done
11270 +    ;;
11271 +esac
11272 +done
11273 +
11274  
11275  fi
11276    if test "${ac_cv_path_install+set}" = set; then
11277 -    INSTALL="$ac_cv_path_install"
11278 +    INSTALL=$ac_cv_path_install
11279    else
11280      # As a last resort, use the slow shell script.  We don't cache a
11281      # path for INSTALL within a source directory, because that will
11282      # break other packages using the cache if that directory is
11283      # removed, or if the path is relative.
11284 -    INSTALL="$ac_install_sh"
11285 +    INSTALL=$ac_install_sh
11286    fi
11287  fi
11288 -echo "$ac_t""$INSTALL" 1>&6
11289 +echo "$as_me:$LINENO: result: $INSTALL" >&5
11290 +echo "${ECHO_T}$INSTALL" >&6
11291  
11292  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11293  # It thinks the first close brace ends the variable substitution.
11294  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11295  
11296 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
11297 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11298  
11299  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11300  
11301 -# Extract the first word of "ranlib", so it can be a program name with args.
11302 -set dummy ranlib; ac_word=$2
11303 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11304 -echo "configure:1648: checking for $ac_word" >&5
11305 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
11306 -  echo $ac_n "(cached) $ac_c" 1>&6
11307 +if test -n "$ac_tool_prefix"; then
11308 +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11309 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11310 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11311 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11312 +if test "${ac_cv_prog_RANLIB+set}" = set; then
11313 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11314  else
11315    if test -n "$RANLIB"; then
11316    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11317  else
11318 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11319 -  ac_dummy="$PATH"
11320 -  for ac_dir in $ac_dummy; do
11321 -    test -z "$ac_dir" && ac_dir=.
11322 -    if test -f $ac_dir/$ac_word; then
11323 -      ac_cv_prog_RANLIB="ranlib"
11324 -      break
11325 -    fi
11326 -  done
11327 -  IFS="$ac_save_ifs"
11328 -  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
11329 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 +for as_dir in $PATH
11331 +do
11332 +  IFS=$as_save_IFS
11333 +  test -z "$as_dir" && as_dir=.
11334 +  for ac_exec_ext in '' $ac_executable_extensions; do
11335 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336 +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11337 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 +    break 2
11339 +  fi
11340 +done
11341 +done
11342 +
11343  fi
11344  fi
11345 -RANLIB="$ac_cv_prog_RANLIB"
11346 +RANLIB=$ac_cv_prog_RANLIB
11347  if test -n "$RANLIB"; then
11348 -  echo "$ac_t""$RANLIB" 1>&6
11349 +  echo "$as_me:$LINENO: result: $RANLIB" >&5
11350 +echo "${ECHO_T}$RANLIB" >&6
11351  else
11352 -  echo "$ac_t""no" 1>&6
11353 +  echo "$as_me:$LINENO: result: no" >&5
11354 +echo "${ECHO_T}no" >&6
11355  fi
11356  
11357 -echo $ac_n "checking build system type""... $ac_c" 1>&6
11358 -echo "configure:1676: checking build system type" >&5
11359 -
11360 -build_alias=$build
11361 -case "$build_alias" in
11362 -NONE)
11363 -  case $nonopt in
11364 -  NONE) build_alias=$host_alias ;;
11365 -  *) build_alias=$nonopt ;;
11366 -  esac ;;
11367 -esac
11368 +fi
11369 +if test -z "$ac_cv_prog_RANLIB"; then
11370 +  ac_ct_RANLIB=$RANLIB
11371 +  # Extract the first word of "ranlib", so it can be a program name with args.
11372 +set dummy ranlib; ac_word=$2
11373 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11374 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11375 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11376 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11377 +else
11378 +  if test -n "$ac_ct_RANLIB"; then
11379 +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11380 +else
11381 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 +for as_dir in $PATH
11383 +do
11384 +  IFS=$as_save_IFS
11385 +  test -z "$as_dir" && as_dir=.
11386 +  for ac_exec_ext in '' $ac_executable_extensions; do
11387 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 +    ac_cv_prog_ac_ct_RANLIB="ranlib"
11389 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 +    break 2
11391 +  fi
11392 +done
11393 +done
11394  
11395 -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
11396 -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11397 -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11398 -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11399 -echo "$ac_t""$build" 1>&6
11400 +  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11401 +fi
11402 +fi
11403 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11404 +if test -n "$ac_ct_RANLIB"; then
11405 +  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11406 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
11407 +else
11408 +  echo "$as_me:$LINENO: result: no" >&5
11409 +echo "${ECHO_T}no" >&6
11410 +fi
11411  
11412 -if test $host != $build; then
11413 -  ac_tool_prefix=${host_alias}-
11414 +  RANLIB=$ac_ct_RANLIB
11415  else
11416 -  ac_tool_prefix=
11417 +  RANLIB="$ac_cv_prog_RANLIB"
11418  fi
11419  
11420 -# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11421 +if test -n "$ac_tool_prefix"; then
11422 +  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11423  set dummy ${ac_tool_prefix}ar; ac_word=$2
11424 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11425 -echo "configure:1702: checking for $ac_word" >&5
11426 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
11427 -  echo $ac_n "(cached) $ac_c" 1>&6
11428 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11429 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11430 +if test "${ac_cv_prog_AR+set}" = set; then
11431 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11432  else
11433    if test -n "$AR"; then
11434    ac_cv_prog_AR="$AR" # Let the user override the test.
11435  else
11436 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11437 -  ac_dummy="$PATH"
11438 -  for ac_dir in $ac_dummy; do
11439 -    test -z "$ac_dir" && ac_dir=.
11440 -    if test -f $ac_dir/$ac_word; then
11441 -      ac_cv_prog_AR="${ac_tool_prefix}ar"
11442 -      break
11443 -    fi
11444 -  done
11445 -  IFS="$ac_save_ifs"
11446 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 +for as_dir in $PATH
11448 +do
11449 +  IFS=$as_save_IFS
11450 +  test -z "$as_dir" && as_dir=.
11451 +  for ac_exec_ext in '' $ac_executable_extensions; do
11452 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 +    ac_cv_prog_AR="${ac_tool_prefix}ar"
11454 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 +    break 2
11456 +  fi
11457 +done
11458 +done
11459 +
11460  fi
11461  fi
11462 -AR="$ac_cv_prog_AR"
11463 +AR=$ac_cv_prog_AR
11464  if test -n "$AR"; then
11465 -  echo "$ac_t""$AR" 1>&6
11466 +  echo "$as_me:$LINENO: result: $AR" >&5
11467 +echo "${ECHO_T}$AR" >&6
11468  else
11469 -  echo "$ac_t""no" 1>&6
11470 +  echo "$as_me:$LINENO: result: no" >&5
11471 +echo "${ECHO_T}no" >&6
11472  fi
11473  
11474 -
11475 +fi
11476  if test -z "$ac_cv_prog_AR"; then
11477 -if test -n "$ac_tool_prefix"; then
11478 +  ac_ct_AR=$AR
11479    # Extract the first word of "ar", so it can be a program name with args.
11480  set dummy ar; ac_word=$2
11481 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11482 -echo "configure:1734: checking for $ac_word" >&5
11483 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
11484 -  echo $ac_n "(cached) $ac_c" 1>&6
11485 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11486 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11487 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11488 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11489  else
11490 -  if test -n "$AR"; then
11491 -  ac_cv_prog_AR="$AR" # Let the user override the test.
11492 +  if test -n "$ac_ct_AR"; then
11493 +  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11494  else
11495 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11496 -  ac_dummy="$PATH"
11497 -  for ac_dir in $ac_dummy; do
11498 -    test -z "$ac_dir" && ac_dir=.
11499 -    if test -f $ac_dir/$ac_word; then
11500 -      ac_cv_prog_AR="ar"
11501 -      break
11502 -    fi
11503 -  done
11504 -  IFS="$ac_save_ifs"
11505 -  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11506 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 +for as_dir in $PATH
11508 +do
11509 +  IFS=$as_save_IFS
11510 +  test -z "$as_dir" && as_dir=.
11511 +  for ac_exec_ext in '' $ac_executable_extensions; do
11512 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 +    ac_cv_prog_ac_ct_AR="ar"
11514 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 +    break 2
11516 +  fi
11517 +done
11518 +done
11519 +
11520 +  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
11521  fi
11522  fi
11523 -AR="$ac_cv_prog_AR"
11524 -if test -n "$AR"; then
11525 -  echo "$ac_t""$AR" 1>&6
11526 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
11527 +if test -n "$ac_ct_AR"; then
11528 +  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11529 +echo "${ECHO_T}$ac_ct_AR" >&6
11530  else
11531 -  echo "$ac_t""no" 1>&6
11532 +  echo "$as_me:$LINENO: result: no" >&5
11533 +echo "${ECHO_T}no" >&6
11534  fi
11535  
11536 +  AR=$ac_ct_AR
11537  else
11538 -  AR="ar"
11539 -fi
11540 +  AR="$ac_cv_prog_AR"
11541  fi
11542  
11543  
11544 -echo $ac_n "checking for inline""... $ac_c" 1>&6
11545 -echo "configure:1768: checking for inline" >&5
11546 -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11547 -  echo $ac_n "(cached) $ac_c" 1>&6
11548 +echo "$as_me:$LINENO: checking for inline" >&5
11549 +echo $ECHO_N "checking for inline... $ECHO_C" >&6
11550 +if test "${ac_cv_c_inline+set}" = set; then
11551 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11552  else
11553    ac_cv_c_inline=no
11554  for ac_kw in inline __inline__ __inline; do
11555 -  cat > conftest.$ac_ext <<EOF
11556 -#line 1775 "configure"
11557 +  cat >conftest.$ac_ext <<_ACEOF
11558 +#line $LINENO "configure"
11559  #include "confdefs.h"
11560 -
11561 -int main() {
11562 -} $ac_kw foo() {
11563 -; return 0; }
11564 -EOF
11565 -if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11566 -  rm -rf conftest*
11567 +#ifndef __cplusplus
11568 +typedef int foo_t;
11569 +static $ac_kw foo_t static_foo () {return 0; }
11570 +$ac_kw foo_t foo () {return 0; }
11571 +#endif
11572 +
11573 +_ACEOF
11574 +rm -f conftest.$ac_objext
11575 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576 +  (eval $ac_compile) 2>&5
11577 +  ac_status=$?
11578 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 +  (exit $ac_status); } &&
11580 +         { ac_try='test -s conftest.$ac_objext'
11581 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 +  (eval $ac_try) 2>&5
11583 +  ac_status=$?
11584 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 +  (exit $ac_status); }; }; then
11586    ac_cv_c_inline=$ac_kw; break
11587  else
11588 -  echo "configure: failed program was:" >&5
11589 -  cat conftest.$ac_ext >&5
11590 +  echo "$as_me: failed program was:" >&5
11591 +cat conftest.$ac_ext >&5
11592  fi
11593 -rm -f conftest*
11594 +rm -f conftest.$ac_objext conftest.$ac_ext
11595  done
11596  
11597  fi
11598 -
11599 -echo "$ac_t""$ac_cv_c_inline" 1>&6
11600 -case "$ac_cv_c_inline" in
11601 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11602 +echo "${ECHO_T}$ac_cv_c_inline" >&6
11603 +case $ac_cv_c_inline in
11604    inline | yes) ;;
11605 -  no) cat >> confdefs.h <<\EOF
11606 -#define inline 
11607 -EOF
11608 +  no)
11609 +cat >>confdefs.h <<\_ACEOF
11610 +#define inline
11611 +_ACEOF
11612   ;;
11613 -  *)  cat >> confdefs.h <<EOF
11614 +  *)  cat >>confdefs.h <<_ACEOF
11615  #define inline $ac_cv_c_inline
11616 -EOF
11617 +_ACEOF
11618   ;;
11619  esac
11620  
11621 -echo $ac_n "checking for working const""... $ac_c" 1>&6
11622 -echo "configure:1808: checking for working const" >&5
11623 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11624 -  echo $ac_n "(cached) $ac_c" 1>&6
11625 -else
11626 -  cat > conftest.$ac_ext <<EOF
11627 -#line 1813 "configure"
11628 -#include "confdefs.h"
11629 -
11630 -int main() {
11631 -
11632 -/* Ultrix mips cc rejects this.  */
11633 -typedef int charset[2]; const charset x;
11634 -/* SunOS 4.1.1 cc rejects this.  */
11635 -char const *const *ccp;
11636 -char **p;
11637 -/* NEC SVR4.0.2 mips cc rejects this.  */
11638 -struct point {int x, y;};
11639 -static struct point const zero = {0,0};
11640 -/* AIX XL C 1.02.0.0 rejects this.
11641 -   It does not let you subtract one const X* pointer from another in an arm
11642 -   of an if-expression whose if-part is not a constant expression */
11643 -const char *g = "string";
11644 -ccp = &g + (g ? g-g : 0);
11645 -/* HPUX 7.0 cc rejects these. */
11646 -++ccp;
11647 -p = (char**) ccp;
11648 -ccp = (char const *const *) p;
11649 -{ /* SCO 3.2v4 cc rejects this.  */
11650 -  char *t;
11651 -  char const *s = 0 ? (char *) 0 : (char const *) 0;
11652 -
11653 -  *t++ = 0;
11654 -}
11655 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11656 -  int x[] = {25, 17};
11657 -  const int *foo = &x[0];
11658 -  ++foo;
11659 -}
11660 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11661 -  typedef const int *iptr;
11662 -  iptr p = 0;
11663 -  ++p;
11664 -}
11665 -{ /* AIX XL C 1.02.0.0 rejects this saying
11666 -     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11667 -  struct s { int j; const int *ap[3]; };
11668 -  struct s *b; b->j = 5;
11669 -}
11670 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11671 -  const int foo = 10;
11672 -}
11673 -
11674 -; return 0; }
11675 -EOF
11676 -if { (eval echo configure:1862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11677 -  rm -rf conftest*
11678 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11679 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11680 +if test "${ac_cv_c_const+set}" = set; then
11681 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11682 +else
11683 +  cat >conftest.$ac_ext <<_ACEOF
11684 +#line $LINENO "configure"
11685 +#include "confdefs.h"
11686 +
11687 +#ifdef F77_DUMMY_MAIN
11688 +#  ifdef __cplusplus
11689 +     extern "C"
11690 +#  endif
11691 +   int F77_DUMMY_MAIN() { return 1; }
11692 +#endif
11693 +int
11694 +main ()
11695 +{
11696 +/* FIXME: Include the comments suggested by Paul. */
11697 +#ifndef __cplusplus
11698 +  /* Ultrix mips cc rejects this.  */
11699 +  typedef int charset[2];
11700 +  const charset x;
11701 +  /* SunOS 4.1.1 cc rejects this.  */
11702 +  char const *const *ccp;
11703 +  char **p;
11704 +  /* NEC SVR4.0.2 mips cc rejects this.  */
11705 +  struct point {int x, y;};
11706 +  static struct point const zero = {0,0};
11707 +  /* AIX XL C 1.02.0.0 rejects this.
11708 +     It does not let you subtract one const X* pointer from another in
11709 +     an arm of an if-expression whose if-part is not a constant
11710 +     expression */
11711 +  const char *g = "string";
11712 +  ccp = &g + (g ? g-g : 0);
11713 +  /* HPUX 7.0 cc rejects these. */
11714 +  ++ccp;
11715 +  p = (char**) ccp;
11716 +  ccp = (char const *const *) p;
11717 +  { /* SCO 3.2v4 cc rejects this.  */
11718 +    char *t;
11719 +    char const *s = 0 ? (char *) 0 : (char const *) 0;
11720 +
11721 +    *t++ = 0;
11722 +  }
11723 +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11724 +    int x[] = {25, 17};
11725 +    const int *foo = &x[0];
11726 +    ++foo;
11727 +  }
11728 +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11729 +    typedef const int *iptr;
11730 +    iptr p = 0;
11731 +    ++p;
11732 +  }
11733 +  { /* AIX XL C 1.02.0.0 rejects this saying
11734 +       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11735 +    struct s { int j; const int *ap[3]; };
11736 +    struct s *b; b->j = 5;
11737 +  }
11738 +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11739 +    const int foo = 10;
11740 +  }
11741 +#endif
11742 +
11743 +  ;
11744 +  return 0;
11745 +}
11746 +_ACEOF
11747 +rm -f conftest.$ac_objext
11748 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11749 +  (eval $ac_compile) 2>&5
11750 +  ac_status=$?
11751 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 +  (exit $ac_status); } &&
11753 +         { ac_try='test -s conftest.$ac_objext'
11754 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 +  (eval $ac_try) 2>&5
11756 +  ac_status=$?
11757 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 +  (exit $ac_status); }; }; then
11759    ac_cv_c_const=yes
11760  else
11761 -  echo "configure: failed program was:" >&5
11762 -  cat conftest.$ac_ext >&5
11763 -  rm -rf conftest*
11764 -  ac_cv_c_const=no
11765 +  echo "$as_me: failed program was:" >&5
11766 +cat conftest.$ac_ext >&5
11767 +ac_cv_c_const=no
11768  fi
11769 -rm -f conftest*
11770 +rm -f conftest.$ac_objext conftest.$ac_ext
11771  fi
11772 -
11773 -echo "$ac_t""$ac_cv_c_const" 1>&6
11774 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11775 +echo "${ECHO_T}$ac_cv_c_const" >&6
11776  if test $ac_cv_c_const = no; then
11777 -  cat >> confdefs.h <<\EOF
11778 -#define const 
11779 -EOF
11780 +
11781 +cat >>confdefs.h <<\_ACEOF
11782 +#define const
11783 +_ACEOF
11784  
11785  fi
11786  
11787  
11788  # Extract the first word of "dbx", so it can be a program name with args.
11789  set dummy dbx; ac_word=$2
11790 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11791 -echo "configure:1886: checking for $ac_word" >&5
11792 -if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
11793 -  echo $ac_n "(cached) $ac_c" 1>&6
11794 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11795 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11796 +if test "${ac_cv_path_DBX+set}" = set; then
11797 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11798  else
11799 -  case "$DBX" in
11800 -  /*)
11801 +  case $DBX in
11802 +  [\\/]* | ?:[\\/]*)
11803    ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
11804    ;;
11805 -  ?:/*)                         
11806 -  ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
11807 -  ;;
11808    *)
11809 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11810 -  ac_dummy="$PATH"
11811 -  for ac_dir in $ac_dummy; do 
11812 -    test -z "$ac_dir" && ac_dir=.
11813 -    if test -f $ac_dir/$ac_word; then
11814 -      ac_cv_path_DBX="$ac_dir/$ac_word"
11815 -      break
11816 -    fi
11817 -  done
11818 -  IFS="$ac_save_ifs"
11819 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 +for as_dir in $PATH
11821 +do
11822 +  IFS=$as_save_IFS
11823 +  test -z "$as_dir" && as_dir=.
11824 +  for ac_exec_ext in '' $ac_executable_extensions; do
11825 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 +    ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
11827 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 +    break 2
11829 +  fi
11830 +done
11831 +done
11832 +
11833    test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
11834    ;;
11835  esac
11836  fi
11837 -DBX="$ac_cv_path_DBX"
11838 +DBX=$ac_cv_path_DBX
11839 +
11840  if test -n "$DBX"; then
11841 -  echo "$ac_t""$DBX" 1>&6
11842 +  echo "$as_me:$LINENO: result: $DBX" >&5
11843 +echo "${ECHO_T}$DBX" >&6
11844  else
11845 -  echo "$ac_t""no" 1>&6
11846 +  echo "$as_me:$LINENO: result: no" >&5
11847 +echo "${ECHO_T}no" >&6
11848  fi
11849  
11850  # Extract the first word of "gdb", so it can be a program name with args.
11851  set dummy gdb; ac_word=$2
11852 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11853 -echo "configure:1922: checking for $ac_word" >&5
11854 -if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
11855 -  echo $ac_n "(cached) $ac_c" 1>&6
11856 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11857 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11858 +if test "${ac_cv_path_GDB+set}" = set; then
11859 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11860  else
11861 -  case "$GDB" in
11862 -  /*)
11863 +  case $GDB in
11864 +  [\\/]* | ?:[\\/]*)
11865    ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
11866    ;;
11867 -  ?:/*)                         
11868 -  ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
11869 -  ;;
11870    *)
11871 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11872 -  ac_dummy="$PATH"
11873 -  for ac_dir in $ac_dummy; do 
11874 -    test -z "$ac_dir" && ac_dir=.
11875 -    if test -f $ac_dir/$ac_word; then
11876 -      ac_cv_path_GDB="$ac_dir/$ac_word"
11877 -      break
11878 -    fi
11879 -  done
11880 -  IFS="$ac_save_ifs"
11881 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 +for as_dir in $PATH
11883 +do
11884 +  IFS=$as_save_IFS
11885 +  test -z "$as_dir" && as_dir=.
11886 +  for ac_exec_ext in '' $ac_executable_extensions; do
11887 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 +    ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
11889 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 +    break 2
11891 +  fi
11892 +done
11893 +done
11894 +
11895    test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
11896    ;;
11897  esac
11898  fi
11899 -GDB="$ac_cv_path_GDB"
11900 +GDB=$ac_cv_path_GDB
11901 +
11902  if test -n "$GDB"; then
11903 -  echo "$ac_t""$GDB" 1>&6
11904 +  echo "$as_me:$LINENO: result: $GDB" >&5
11905 +echo "${ECHO_T}$GDB" >&6
11906  else
11907 -  echo "$ac_t""no" 1>&6
11908 +  echo "$as_me:$LINENO: result: no" >&5
11909 +echo "${ECHO_T}no" >&6
11910  fi
11911  
11912  # Extract the first word of "sdb", so it can be a program name with args.
11913  set dummy sdb; ac_word=$2
11914 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11915 -echo "configure:1958: checking for $ac_word" >&5
11916 -if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
11917 -  echo $ac_n "(cached) $ac_c" 1>&6
11918 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11919 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11920 +if test "${ac_cv_path_SDB+set}" = set; then
11921 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11922  else
11923 -  case "$SDB" in
11924 -  /*)
11925 +  case $SDB in
11926 +  [\\/]* | ?:[\\/]*)
11927    ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
11928    ;;
11929 -  ?:/*)                         
11930 -  ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
11931 -  ;;
11932    *)
11933 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11934 -  ac_dummy="$PATH"
11935 -  for ac_dir in $ac_dummy; do 
11936 -    test -z "$ac_dir" && ac_dir=.
11937 -    if test -f $ac_dir/$ac_word; then
11938 -      ac_cv_path_SDB="$ac_dir/$ac_word"
11939 -      break
11940 -    fi
11941 -  done
11942 -  IFS="$ac_save_ifs"
11943 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 +for as_dir in $PATH
11945 +do
11946 +  IFS=$as_save_IFS
11947 +  test -z "$as_dir" && as_dir=.
11948 +  for ac_exec_ext in '' $ac_executable_extensions; do
11949 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950 +    ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
11951 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11952 +    break 2
11953 +  fi
11954 +done
11955 +done
11956 +
11957    test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
11958    ;;
11959  esac
11960  fi
11961 -SDB="$ac_cv_path_SDB"
11962 +SDB=$ac_cv_path_SDB
11963 +
11964  if test -n "$SDB"; then
11965 -  echo "$ac_t""$SDB" 1>&6
11966 +  echo "$as_me:$LINENO: result: $SDB" >&5
11967 +echo "${ECHO_T}$SDB" >&6
11968  else
11969 -  echo "$ac_t""no" 1>&6
11970 +  echo "$as_me:$LINENO: result: no" >&5
11971 +echo "${ECHO_T}no" >&6
11972  fi
11973  
11974  
11975 @@ -2005,43 +4161,49 @@
11976  ac_aux_path_sendmail=/usr/sbin:/usr/lib
11977  # Extract the first word of "sendmail", so it can be a program name with args.
11978  set dummy sendmail; ac_word=$2
11979 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11980 -echo "configure:2008: checking for $ac_word" >&5
11981 -if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
11982 -  echo $ac_n "(cached) $ac_c" 1>&6
11983 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11984 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11985 +if test "${ac_cv_path_SENDMAIL+set}" = set; then
11986 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11987  else
11988 -  case "$SENDMAIL" in
11989 -  /*)
11990 +  case $SENDMAIL in
11991 +  [\\/]* | ?:[\\/]*)
11992    ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11993    ;;
11994 -  ?:/*)                         
11995 -  ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
11996 -  ;;
11997    *)
11998 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
11999 -  ac_dummy="$PATH:$ac_aux_path_sendmail"
12000 -  for ac_dir in $ac_dummy; do 
12001 -    test -z "$ac_dir" && ac_dir=.
12002 -    if test -f $ac_dir/$ac_word; then
12003 -      ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
12004 -      break
12005 -    fi
12006 -  done
12007 -  IFS="$ac_save_ifs"
12008 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 +as_dummy="$PATH:$ac_aux_path_sendmail"
12010 +for as_dir in $as_dummy
12011 +do
12012 +  IFS=$as_save_IFS
12013 +  test -z "$as_dir" && as_dir=.
12014 +  for ac_exec_ext in '' $ac_executable_extensions; do
12015 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 +    ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
12017 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 +    break 2
12019 +  fi
12020 +done
12021 +done
12022 +
12023    test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
12024    ;;
12025  esac
12026  fi
12027 -SENDMAIL="$ac_cv_path_SENDMAIL"
12028 +SENDMAIL=$ac_cv_path_SENDMAIL
12029 +
12030  if test -n "$SENDMAIL"; then
12031 -  echo "$ac_t""$SENDMAIL" 1>&6
12032 +  echo "$as_me:$LINENO: result: $SENDMAIL" >&5
12033 +echo "${ECHO_T}$SENDMAIL" >&6
12034  else
12035 -  echo "$ac_t""no" 1>&6
12036 +  echo "$as_me:$LINENO: result: no" >&5
12037 +echo "${ECHO_T}no" >&6
12038  fi
12039  
12040 -cat >> confdefs.h <<EOF
12041 +
12042 +cat >>confdefs.h <<_ACEOF
12043  #define SENDMAIL "$ac_cv_path_SENDMAIL"
12044 -EOF
12045 +_ACEOF
12046  
12047  
12048  OPS='$(srcdir)/OPS'
12049 @@ -2056,21 +4218,22 @@
12050           if test x$enableval = xno ; then
12051                          have_pgp=no
12052                  fi
12053 -        
12054 -fi
12055  
12056 +fi;
12057  
12058          if test x$have_pgp != xno ; then
12059 -                cat >> confdefs.h <<\EOF
12060 +
12061 +cat >>confdefs.h <<\_ACEOF
12062  #define HAVE_PGP 1
12063 -EOF
12064 +_ACEOF
12065  
12066                  PGPAUX_TARGET="pgpring pgpewrap"
12067                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
12068                  OPS="$OPS \$(srcdir)/OPS.PGP"
12069          fi
12070  
12071 -        # Check whether --with-mixmaster or --without-mixmaster was given.
12072 +
12073 +# Check whether --with-mixmaster or --without-mixmaster was given.
12074  if test "${with_mixmaster+set}" = set; then
12075    withval="$with_mixmaster"
12076    if test -x "$withval" ; then
12077 @@ -2080,81 +4243,88 @@
12078                   fi
12079                   OPS="$OPS \$(srcdir)/OPS.MIX"
12080                   MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
12081 -                 cat >> confdefs.h <<EOF
12082 +
12083 +cat >>confdefs.h <<_ACEOF
12084  #define MIXMASTER "$MIXMASTER"
12085 -EOF
12086 +_ACEOF
12087  
12088 -                
12089 -fi
12090  
12091 +fi;
12092  
12093  fi
12094  
12095  
12096  
12097  
12098 -cat >> confdefs.h <<EOF
12099 +
12100 +cat >>confdefs.h <<_ACEOF
12101  #define SUBVERSION "$SUBVERSION"
12102 -EOF
12103 +_ACEOF
12104  
12105  
12106  
12107  # Extract the first word of "ispell", so it can be a program name with args.
12108  set dummy ispell; ac_word=$2
12109 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12110 -echo "configure:2104: checking for $ac_word" >&5
12111 -if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
12112 -  echo $ac_n "(cached) $ac_c" 1>&6
12113 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12114 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12115 +if test "${ac_cv_path_ISPELL+set}" = set; then
12116 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12117  else
12118 -  case "$ISPELL" in
12119 -  /*)
12120 +  case $ISPELL in
12121 +  [\\/]* | ?:[\\/]*)
12122    ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
12123    ;;
12124 -  ?:/*)                         
12125 -  ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
12126 -  ;;
12127    *)
12128 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
12129 -  ac_dummy="$PATH"
12130 -  for ac_dir in $ac_dummy; do 
12131 -    test -z "$ac_dir" && ac_dir=.
12132 -    if test -f $ac_dir/$ac_word; then
12133 -      ac_cv_path_ISPELL="$ac_dir/$ac_word"
12134 -      break
12135 -    fi
12136 -  done
12137 -  IFS="$ac_save_ifs"
12138 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 +for as_dir in $PATH
12140 +do
12141 +  IFS=$as_save_IFS
12142 +  test -z "$as_dir" && as_dir=.
12143 +  for ac_exec_ext in '' $ac_executable_extensions; do
12144 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12145 +    ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
12146 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 +    break 2
12148 +  fi
12149 +done
12150 +done
12151 +
12152    test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
12153    ;;
12154  esac
12155  fi
12156 -ISPELL="$ac_cv_path_ISPELL"
12157 +ISPELL=$ac_cv_path_ISPELL
12158 +
12159  if test -n "$ISPELL"; then
12160 -  echo "$ac_t""$ISPELL" 1>&6
12161 +  echo "$as_me:$LINENO: result: $ISPELL" >&5
12162 +echo "${ECHO_T}$ISPELL" >&6
12163  else
12164 -  echo "$ac_t""no" 1>&6
12165 +  echo "$as_me:$LINENO: result: no" >&5
12166 +echo "${ECHO_T}no" >&6
12167  fi
12168  
12169  if test $ISPELL != no; then
12170 -        cat >> confdefs.h <<EOF
12171 +
12172 +cat >>confdefs.h <<_ACEOF
12173  #define ISPELL "$ISPELL"
12174 -EOF
12175 +_ACEOF
12176  
12177  fi
12178  
12179 +
12180  # Check whether --with-slang or --without-slang was given.
12181  if test "${with_slang+set}" = set; then
12182    withval="$with_slang"
12183 -  echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
12184 -echo "configure:2148: checking if this is a BSD system" >&5
12185 -if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
12186 -  echo $ac_n "(cached) $ac_c" 1>&6
12187 +  echo "$as_me:$LINENO: checking if this is a BSD system" >&5
12188 +echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
12189 +if test "${mutt_cv_bsdish+set}" = set; then
12190 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12191  else
12192    if test "$cross_compiling" = yes; then
12193    mutt_cv_bsdish=no
12194  else
12195 -  cat > conftest.$ac_ext <<EOF
12196 -#line 2156 "configure"
12197 +  cat >conftest.$ac_ext <<_ACEOF
12198 +#line $LINENO "configure"
12199  #include "confdefs.h"
12200  #include <sys/param.h>
12201  
12202 @@ -2166,25 +4336,34 @@
12203          exit (1);
12204  #endif
12205  }
12206 -EOF
12207 -if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12208 -then
12209 +_ACEOF
12210 +rm -f conftest$ac_exeext
12211 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 +  (eval $ac_link) 2>&5
12213 +  ac_status=$?
12214 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12216 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 +  (eval $ac_try) 2>&5
12218 +  ac_status=$?
12219 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 +  (exit $ac_status); }; }; then
12221    mutt_cv_bsdish=yes
12222  else
12223 -  echo "configure: failed program was:" >&5
12224 -  cat conftest.$ac_ext >&5
12225 -  rm -fr conftest*
12226 -  mutt_cv_bsdish=no
12227 +  echo "$as_me: program exited with status $ac_status" >&5
12228 +echo "$as_me: failed program was:" >&5
12229 +cat conftest.$ac_ext >&5
12230 +( exit $ac_status )
12231 +mutt_cv_bsdish=no
12232  fi
12233 -rm -fr conftest*
12234 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12235  fi
12236 -
12237  fi
12238 +echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
12239 +echo "${ECHO_T}$mutt_cv_bsdish" >&6
12240  
12241 -echo "$ac_t""$mutt_cv_bsdish" 1>&6
12242 -
12243 -        echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
12244 -echo "configure:2186: checking for S-Lang" >&5
12245 +        echo "$as_me:$LINENO: checking for S-Lang" >&5
12246 +echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
12247          if test $withval = yes; then
12248                  if test -d $srcdir/../slang; then
12249                          mutt_cv_slang=$srcdir/../slang/src
12250 @@ -2213,109 +4392,151 @@
12251                          LDFLAGS="$LDFLAGS -L${withval}/lib"
12252                  fi
12253          fi
12254 -        echo "$ac_t""$mutt_cv_slang" 1>&6
12255 +        echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
12256 +echo "${ECHO_T}$mutt_cv_slang" >&6
12257          if test $mutt_cv_bsdish = yes; then
12258 -                echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
12259 -echo "configure:2218: checking for main in -ltermlib" >&5
12260 -ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
12261 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12262 -  echo $ac_n "(cached) $ac_c" 1>&6
12263 +
12264 +echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
12265 +echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
12266 +if test "${ac_cv_lib_termlib_main+set}" = set; then
12267 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12268  else
12269 -  ac_save_LIBS="$LIBS"
12270 +  ac_check_lib_save_LIBS=$LIBS
12271  LIBS="-ltermlib  $LIBS"
12272 -cat > conftest.$ac_ext <<EOF
12273 -#line 2226 "configure"
12274 +cat >conftest.$ac_ext <<_ACEOF
12275 +#line $LINENO "configure"
12276  #include "confdefs.h"
12277  
12278 -int main() {
12279 -main()
12280 -; return 0; }
12281 -EOF
12282 -if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12283 -  rm -rf conftest*
12284 -  eval "ac_cv_lib_$ac_lib_var=yes"
12285 -else
12286 -  echo "configure: failed program was:" >&5
12287 -  cat conftest.$ac_ext >&5
12288 -  rm -rf conftest*
12289 -  eval "ac_cv_lib_$ac_lib_var=no"
12290 -fi
12291 -rm -f conftest*
12292 -LIBS="$ac_save_LIBS"
12293  
12294 -fi
12295 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12296 -  echo "$ac_t""yes" 1>&6
12297 -    ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12298 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12299 -  cat >> confdefs.h <<EOF
12300 -#define $ac_tr_lib 1
12301 -EOF
12302 +#ifdef F77_DUMMY_MAIN
12303 +#  ifdef __cplusplus
12304 +     extern "C"
12305 +#  endif
12306 +   int F77_DUMMY_MAIN() { return 1; }
12307 +#endif
12308 +int
12309 +main ()
12310 +{
12311 +main ();
12312 +  ;
12313 +  return 0;
12314 +}
12315 +_ACEOF
12316 +rm -f conftest.$ac_objext conftest$ac_exeext
12317 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 +  (eval $ac_link) 2>&5
12319 +  ac_status=$?
12320 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 +  (exit $ac_status); } &&
12322 +         { ac_try='test -s conftest$ac_exeext'
12323 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 +  (eval $ac_try) 2>&5
12325 +  ac_status=$?
12326 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 +  (exit $ac_status); }; }; then
12328 +  ac_cv_lib_termlib_main=yes
12329 +else
12330 +  echo "$as_me: failed program was:" >&5
12331 +cat conftest.$ac_ext >&5
12332 +ac_cv_lib_termlib_main=no
12333 +fi
12334 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12335 +LIBS=$ac_check_lib_save_LIBS
12336 +fi
12337 +echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
12338 +echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
12339 +if test $ac_cv_lib_termlib_main = yes; then
12340 +  cat >>confdefs.h <<_ACEOF
12341 +#define HAVE_LIBTERMLIB 1
12342 +_ACEOF
12343  
12344    LIBS="-ltermlib $LIBS"
12345  
12346 -else
12347 -  echo "$ac_t""no" 1>&6
12348  fi
12349  
12350          fi
12351 -        cat >> confdefs.h <<\EOF
12352 +
12353 +cat >>confdefs.h <<\_ACEOF
12354  #define USE_SLANG_CURSES 1
12355 -EOF
12356 +_ACEOF
12357  
12358 -        cat >> confdefs.h <<\EOF
12359 +
12360 +cat >>confdefs.h <<\_ACEOF
12361  #define HAVE_COLOR 1
12362 -EOF
12363 +_ACEOF
12364  
12365          MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
12366  
12367 -        
12368 -        echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
12369 -echo "configure:2273: checking for SLtt_get_terminfo in -lslang" >&5
12370 -ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
12371 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12372 -  echo $ac_n "(cached) $ac_c" 1>&6
12373 +
12374 +        echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
12375 +echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
12376 +if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
12377 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12378  else
12379 -  ac_save_LIBS="$LIBS"
12380 +  ac_check_lib_save_LIBS=$LIBS
12381  LIBS="-lslang -lm $LIBS"
12382 -cat > conftest.$ac_ext <<EOF
12383 -#line 2281 "configure"
12384 +cat >conftest.$ac_ext <<_ACEOF
12385 +#line $LINENO "configure"
12386  #include "confdefs.h"
12387 +
12388  /* Override any gcc2 internal prototype to avoid an error.  */
12389 +#ifdef __cplusplus
12390 +extern "C"
12391 +#endif
12392  /* We use char because int might match the return type of a gcc2
12393 -    builtin and then its argument prototype would still apply.  */
12394 -char SLtt_get_terminfo();
12395 -
12396 -int main() {
12397 -SLtt_get_terminfo()
12398 -; return 0; }
12399 -EOF
12400 -if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401 -  rm -rf conftest*
12402 -  eval "ac_cv_lib_$ac_lib_var=yes"
12403 -else
12404 -  echo "configure: failed program was:" >&5
12405 -  cat conftest.$ac_ext >&5
12406 -  rm -rf conftest*
12407 -  eval "ac_cv_lib_$ac_lib_var=no"
12408 -fi
12409 -rm -f conftest*
12410 -LIBS="$ac_save_LIBS"
12411 -
12412 -fi
12413 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12414 -  echo "$ac_t""yes" 1>&6
12415 +   builtin and then its argument prototype would still apply.  */
12416 +char SLtt_get_terminfo ();
12417 +#ifdef F77_DUMMY_MAIN
12418 +#  ifdef __cplusplus
12419 +     extern "C"
12420 +#  endif
12421 +   int F77_DUMMY_MAIN() { return 1; }
12422 +#endif
12423 +int
12424 +main ()
12425 +{
12426 +SLtt_get_terminfo ();
12427 +  ;
12428 +  return 0;
12429 +}
12430 +_ACEOF
12431 +rm -f conftest.$ac_objext conftest$ac_exeext
12432 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433 +  (eval $ac_link) 2>&5
12434 +  ac_status=$?
12435 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 +  (exit $ac_status); } &&
12437 +         { ac_try='test -s conftest$ac_exeext'
12438 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 +  (eval $ac_try) 2>&5
12440 +  ac_status=$?
12441 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 +  (exit $ac_status); }; }; then
12443 +  ac_cv_lib_slang_SLtt_get_terminfo=yes
12444 +else
12445 +  echo "$as_me: failed program was:" >&5
12446 +cat conftest.$ac_ext >&5
12447 +ac_cv_lib_slang_SLtt_get_terminfo=no
12448 +fi
12449 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12450 +LIBS=$ac_check_lib_save_LIBS
12451 +fi
12452 +echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
12453 +echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
12454 +if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
12455    MUTTLIBS="$MUTTLIBS -lslang -lm"
12456  else
12457 -  echo "$ac_t""no" 1>&6
12458 -{ echo "configure: error: unable to compile.  check config.log" 1>&2; exit 1; }
12459 +  { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
12460 +echo "$as_me: error: unable to compile.  check config.log" >&2;}
12461 +   { (exit 1); exit 1; }; }
12462  fi
12463  
12464  
12465 -        
12466 +
12467  else
12468    mutt_cv_curses=/usr
12469 -        # Check whether --with-curses or --without-curses was given.
12470 +
12471 +# Check whether --with-curses or --without-curses was given.
12472  if test "${with_curses+set}" = set; then
12473    withval="$with_curses"
12474    if test $withval != yes; then
12475 @@ -2325,403 +4546,691 @@
12476                          LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
12477                          CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
12478                  fi
12479 -fi
12480 +fi;
12481  
12482 -
12483 -       echo $ac_n "checking for initscr""... $ac_c" 1>&6
12484 -echo "configure:2331: checking for initscr" >&5
12485 -if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
12486 -  echo $ac_n "(cached) $ac_c" 1>&6
12487 +       echo "$as_me:$LINENO: checking for initscr" >&5
12488 +echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12489 +if test "${ac_cv_func_initscr+set}" = set; then
12490 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12491  else
12492 -  cat > conftest.$ac_ext <<EOF
12493 -#line 2336 "configure"
12494 +  cat >conftest.$ac_ext <<_ACEOF
12495 +#line $LINENO "configure"
12496  #include "confdefs.h"
12497  /* System header to define __stub macros and hopefully few prototypes,
12498 -    which can conflict with char initscr(); below.  */
12499 +    which can conflict with char initscr (); below.  */
12500  #include <assert.h>
12501  /* Override any gcc2 internal prototype to avoid an error.  */
12502 +#ifdef __cplusplus
12503 +extern "C"
12504 +#endif
12505  /* We use char because int might match the return type of a gcc2
12506 -    builtin and then its argument prototype would still apply.  */
12507 -char initscr();
12508 -
12509 -int main() {
12510 +   builtin and then its argument prototype would still apply.  */
12511 +char initscr ();
12512 +char (*f) ();
12513  
12514 +#ifdef F77_DUMMY_MAIN
12515 +#  ifdef __cplusplus
12516 +     extern "C"
12517 +#  endif
12518 +   int F77_DUMMY_MAIN() { return 1; }
12519 +#endif
12520 +int
12521 +main ()
12522 +{
12523  /* The GNU C library defines this for functions which it implements
12524      to always fail with ENOSYS.  Some functions are actually named
12525      something starting with __ and the normal name is an alias.  */
12526  #if defined (__stub_initscr) || defined (__stub___initscr)
12527  choke me
12528  #else
12529 -initscr();
12530 +f = initscr;
12531  #endif
12532  
12533 -; return 0; }
12534 -EOF
12535 -if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12536 -  rm -rf conftest*
12537 -  eval "ac_cv_func_initscr=yes"
12538 -else
12539 -  echo "configure: failed program was:" >&5
12540 -  cat conftest.$ac_ext >&5
12541 -  rm -rf conftest*
12542 -  eval "ac_cv_func_initscr=no"
12543 -fi
12544 -rm -f conftest*
12545 -fi
12546 -
12547 -if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
12548 -  echo "$ac_t""yes" 1>&6
12549 +  ;
12550 +  return 0;
12551 +}
12552 +_ACEOF
12553 +rm -f conftest.$ac_objext conftest$ac_exeext
12554 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 +  (eval $ac_link) 2>&5
12556 +  ac_status=$?
12557 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 +  (exit $ac_status); } &&
12559 +         { ac_try='test -s conftest$ac_exeext'
12560 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 +  (eval $ac_try) 2>&5
12562 +  ac_status=$?
12563 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 +  (exit $ac_status); }; }; then
12565 +  ac_cv_func_initscr=yes
12566 +else
12567 +  echo "$as_me: failed program was:" >&5
12568 +cat conftest.$ac_ext >&5
12569 +ac_cv_func_initscr=no
12570 +fi
12571 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12572 +fi
12573 +echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
12574 +echo "${ECHO_T}$ac_cv_func_initscr" >&6
12575 +if test $ac_cv_func_initscr = yes; then
12576    :
12577  else
12578 -  echo "$ac_t""no" 1>&6
12579  
12580         cf_ncurses="ncurses"
12581         for lib in ncurses ncursesw
12582         do
12583 -               echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
12584 -echo "configure:2381: checking for waddnwstr in -l$lib" >&5
12585 -ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
12586 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12587 -  echo $ac_n "(cached) $ac_c" 1>&6
12588 +               as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
12589 +echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
12590 +echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
12591 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12592 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12593  else
12594 -  ac_save_LIBS="$LIBS"
12595 +  ac_check_lib_save_LIBS=$LIBS
12596  LIBS="-l$lib  $LIBS"
12597 -cat > conftest.$ac_ext <<EOF
12598 -#line 2389 "configure"
12599 +cat >conftest.$ac_ext <<_ACEOF
12600 +#line $LINENO "configure"
12601  #include "confdefs.h"
12602 +
12603  /* Override any gcc2 internal prototype to avoid an error.  */
12604 +#ifdef __cplusplus
12605 +extern "C"
12606 +#endif
12607  /* We use char because int might match the return type of a gcc2
12608 -    builtin and then its argument prototype would still apply.  */
12609 -char waddnwstr();
12610 -
12611 -int main() {
12612 -waddnwstr()
12613 -; return 0; }
12614 -EOF
12615 -if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12616 -  rm -rf conftest*
12617 -  eval "ac_cv_lib_$ac_lib_var=yes"
12618 -else
12619 -  echo "configure: failed program was:" >&5
12620 -  cat conftest.$ac_ext >&5
12621 -  rm -rf conftest*
12622 -  eval "ac_cv_lib_$ac_lib_var=no"
12623 -fi
12624 -rm -f conftest*
12625 -LIBS="$ac_save_LIBS"
12626 -
12627 -fi
12628 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12629 -  echo "$ac_t""yes" 1>&6
12630 +   builtin and then its argument prototype would still apply.  */
12631 +char waddnwstr ();
12632 +#ifdef F77_DUMMY_MAIN
12633 +#  ifdef __cplusplus
12634 +     extern "C"
12635 +#  endif
12636 +   int F77_DUMMY_MAIN() { return 1; }
12637 +#endif
12638 +int
12639 +main ()
12640 +{
12641 +waddnwstr ();
12642 +  ;
12643 +  return 0;
12644 +}
12645 +_ACEOF
12646 +rm -f conftest.$ac_objext conftest$ac_exeext
12647 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 +  (eval $ac_link) 2>&5
12649 +  ac_status=$?
12650 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 +  (exit $ac_status); } &&
12652 +         { ac_try='test -s conftest$ac_exeext'
12653 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 +  (eval $ac_try) 2>&5
12655 +  ac_status=$?
12656 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 +  (exit $ac_status); }; }; then
12658 +  eval "$as_ac_Lib=yes"
12659 +else
12660 +  echo "$as_me: failed program was:" >&5
12661 +cat conftest.$ac_ext >&5
12662 +eval "$as_ac_Lib=no"
12663 +fi
12664 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12665 +LIBS=$ac_check_lib_save_LIBS
12666 +fi
12667 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12668 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12669 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12670    cf_ncurses="$lib"; break
12671 -else
12672 -  echo "$ac_t""no" 1>&6
12673  fi
12674  
12675         done
12676 -        echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
12677 -echo "configure:2422: checking for initscr in -l$cf_ncurses" >&5
12678 -ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
12679 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12680 -  echo $ac_n "(cached) $ac_c" 1>&6
12681 +        as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
12682 +echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
12683 +echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
12684 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12685 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12686  else
12687 -  ac_save_LIBS="$LIBS"
12688 +  ac_check_lib_save_LIBS=$LIBS
12689  LIBS="-l$cf_ncurses  $LIBS"
12690 -cat > conftest.$ac_ext <<EOF
12691 -#line 2430 "configure"
12692 +cat >conftest.$ac_ext <<_ACEOF
12693 +#line $LINENO "configure"
12694  #include "confdefs.h"
12695 +
12696  /* Override any gcc2 internal prototype to avoid an error.  */
12697 +#ifdef __cplusplus
12698 +extern "C"
12699 +#endif
12700  /* We use char because int might match the return type of a gcc2
12701 -    builtin and then its argument prototype would still apply.  */
12702 -char initscr();
12703 -
12704 -int main() {
12705 -initscr()
12706 -; return 0; }
12707 -EOF
12708 -if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12709 -  rm -rf conftest*
12710 -  eval "ac_cv_lib_$ac_lib_var=yes"
12711 -else
12712 -  echo "configure: failed program was:" >&5
12713 -  cat conftest.$ac_ext >&5
12714 -  rm -rf conftest*
12715 -  eval "ac_cv_lib_$ac_lib_var=no"
12716 -fi
12717 -rm -f conftest*
12718 -LIBS="$ac_save_LIBS"
12719 -
12720 -fi
12721 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12722 -  echo "$ac_t""yes" 1>&6
12723 +   builtin and then its argument prototype would still apply.  */
12724 +char initscr ();
12725 +#ifdef F77_DUMMY_MAIN
12726 +#  ifdef __cplusplus
12727 +     extern "C"
12728 +#  endif
12729 +   int F77_DUMMY_MAIN() { return 1; }
12730 +#endif
12731 +int
12732 +main ()
12733 +{
12734 +initscr ();
12735 +  ;
12736 +  return 0;
12737 +}
12738 +_ACEOF
12739 +rm -f conftest.$ac_objext conftest$ac_exeext
12740 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 +  (eval $ac_link) 2>&5
12742 +  ac_status=$?
12743 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 +  (exit $ac_status); } &&
12745 +         { ac_try='test -s conftest$ac_exeext'
12746 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 +  (eval $ac_try) 2>&5
12748 +  ac_status=$?
12749 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 +  (exit $ac_status); }; }; then
12751 +  eval "$as_ac_Lib=yes"
12752 +else
12753 +  echo "$as_me: failed program was:" >&5
12754 +cat conftest.$ac_ext >&5
12755 +eval "$as_ac_Lib=no"
12756 +fi
12757 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12758 +LIBS=$ac_check_lib_save_LIBS
12759 +fi
12760 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12761 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12762 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12763    MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
12764                  if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
12765                          CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
12766                  fi
12767 -               
12768 +
12769                  if test "$cf_ncurses" = ncursesw; then
12770 -                       for ac_hdr in ncursesw/ncurses.h
12771 +
12772 +for ac_header in ncursesw/ncurses.h
12773  do
12774 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12775 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12776 -echo "configure:2466: checking for $ac_hdr" >&5
12777 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12778 -  echo $ac_n "(cached) $ac_c" 1>&6
12779 -else
12780 -  cat > conftest.$ac_ext <<EOF
12781 -#line 2471 "configure"
12782 -#include "confdefs.h"
12783 -#include <$ac_hdr>
12784 -EOF
12785 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12786 -{ (eval echo configure:2476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12787 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12788 -if test -z "$ac_err"; then
12789 -  rm -rf conftest*
12790 -  eval "ac_cv_header_$ac_safe=yes"
12791 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12792 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
12794 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12795 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12796 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12797 +fi
12798 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12800 +else
12801 +  # Is the header compilable?
12802 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12804 +cat >conftest.$ac_ext <<_ACEOF
12805 +#line $LINENO "configure"
12806 +#include "confdefs.h"
12807 +$ac_includes_default
12808 +#include <$ac_header>
12809 +_ACEOF
12810 +rm -f conftest.$ac_objext
12811 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 +  (eval $ac_compile) 2>&5
12813 +  ac_status=$?
12814 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 +  (exit $ac_status); } &&
12816 +         { ac_try='test -s conftest.$ac_objext'
12817 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 +  (eval $ac_try) 2>&5
12819 +  ac_status=$?
12820 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 +  (exit $ac_status); }; }; then
12822 +  ac_header_compiler=yes
12823 +else
12824 +  echo "$as_me: failed program was:" >&5
12825 +cat conftest.$ac_ext >&5
12826 +ac_header_compiler=no
12827 +fi
12828 +rm -f conftest.$ac_objext conftest.$ac_ext
12829 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 +echo "${ECHO_T}$ac_header_compiler" >&6
12831 +
12832 +# Is the header present?
12833 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12835 +cat >conftest.$ac_ext <<_ACEOF
12836 +#line $LINENO "configure"
12837 +#include "confdefs.h"
12838 +#include <$ac_header>
12839 +_ACEOF
12840 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12841 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12842 +  ac_status=$?
12843 +  egrep -v '^ *\+' conftest.er1 >conftest.err
12844 +  rm -f conftest.er1
12845 +  cat conftest.err >&5
12846 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 +  (exit $ac_status); } >/dev/null; then
12848 +  if test -s conftest.err; then
12849 +    ac_cpp_err=$ac_c_preproc_warn_flag
12850 +  else
12851 +    ac_cpp_err=
12852 +  fi
12853 +else
12854 +  ac_cpp_err=yes
12855 +fi
12856 +if test -z "$ac_cpp_err"; then
12857 +  ac_header_preproc=yes
12858  else
12859 -  echo "$ac_err" >&5
12860 -  echo "configure: failed program was:" >&5
12861 +  echo "$as_me: failed program was:" >&5
12862    cat conftest.$ac_ext >&5
12863 -  rm -rf conftest*
12864 -  eval "ac_cv_header_$ac_safe=no"
12865 +  ac_header_preproc=no
12866  fi
12867 -rm -f conftest*
12868 +rm -f conftest.err conftest.$ac_ext
12869 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12870 +echo "${ECHO_T}$ac_header_preproc" >&6
12871 +
12872 +# So?  What about this header?
12873 +case $ac_header_compiler:$ac_header_preproc in
12874 +  yes:no )
12875 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12876 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12877 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12878 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12879 +  no:yes )
12880 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12881 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12882 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12883 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12884 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12885 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12886 +esac
12887 +echo "$as_me:$LINENO: checking for $ac_header" >&5
12888 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12889 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12890 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12891 +else
12892 +  eval "$as_ac_Header=$ac_header_preproc"
12893 +fi
12894 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12896 +
12897  fi
12898 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12899 -  echo "$ac_t""yes" 1>&6
12900 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12901 -  cat >> confdefs.h <<EOF
12902 -#define $ac_tr_hdr 1
12903 -EOF
12904 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
12905 +  cat >>confdefs.h <<_ACEOF
12906 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12907 +_ACEOF
12908   cf_cv_ncurses_header="ncursesw/ncurses.h"
12909 -else
12910 -  echo "$ac_t""no" 1>&6
12911  fi
12912 +
12913  done
12914  
12915                 else
12916 -                       for ac_hdr in ncurses.h
12917 +
12918 +for ac_header in ncurses.h
12919  do
12920 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12921 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12922 -echo "configure:2507: checking for $ac_hdr" >&5
12923 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12924 -  echo $ac_n "(cached) $ac_c" 1>&6
12925 -else
12926 -  cat > conftest.$ac_ext <<EOF
12927 -#line 2512 "configure"
12928 -#include "confdefs.h"
12929 -#include <$ac_hdr>
12930 -EOF
12931 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12932 -{ (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12933 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12934 -if test -z "$ac_err"; then
12935 -  rm -rf conftest*
12936 -  eval "ac_cv_header_$ac_safe=yes"
12937 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12938 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
12940 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12943 +fi
12944 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12945 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 +else
12947 +  # Is the header compilable?
12948 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
12949 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12950 +cat >conftest.$ac_ext <<_ACEOF
12951 +#line $LINENO "configure"
12952 +#include "confdefs.h"
12953 +$ac_includes_default
12954 +#include <$ac_header>
12955 +_ACEOF
12956 +rm -f conftest.$ac_objext
12957 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958 +  (eval $ac_compile) 2>&5
12959 +  ac_status=$?
12960 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 +  (exit $ac_status); } &&
12962 +         { ac_try='test -s conftest.$ac_objext'
12963 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 +  (eval $ac_try) 2>&5
12965 +  ac_status=$?
12966 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 +  (exit $ac_status); }; }; then
12968 +  ac_header_compiler=yes
12969 +else
12970 +  echo "$as_me: failed program was:" >&5
12971 +cat conftest.$ac_ext >&5
12972 +ac_header_compiler=no
12973 +fi
12974 +rm -f conftest.$ac_objext conftest.$ac_ext
12975 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976 +echo "${ECHO_T}$ac_header_compiler" >&6
12977 +
12978 +# Is the header present?
12979 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
12980 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12981 +cat >conftest.$ac_ext <<_ACEOF
12982 +#line $LINENO "configure"
12983 +#include "confdefs.h"
12984 +#include <$ac_header>
12985 +_ACEOF
12986 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12987 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12988 +  ac_status=$?
12989 +  egrep -v '^ *\+' conftest.er1 >conftest.err
12990 +  rm -f conftest.er1
12991 +  cat conftest.err >&5
12992 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 +  (exit $ac_status); } >/dev/null; then
12994 +  if test -s conftest.err; then
12995 +    ac_cpp_err=$ac_c_preproc_warn_flag
12996 +  else
12997 +    ac_cpp_err=
12998 +  fi
12999 +else
13000 +  ac_cpp_err=yes
13001 +fi
13002 +if test -z "$ac_cpp_err"; then
13003 +  ac_header_preproc=yes
13004  else
13005 -  echo "$ac_err" >&5
13006 -  echo "configure: failed program was:" >&5
13007 +  echo "$as_me: failed program was:" >&5
13008    cat conftest.$ac_ext >&5
13009 -  rm -rf conftest*
13010 -  eval "ac_cv_header_$ac_safe=no"
13011 +  ac_header_preproc=no
13012  fi
13013 -rm -f conftest*
13014 +rm -f conftest.err conftest.$ac_ext
13015 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016 +echo "${ECHO_T}$ac_header_preproc" >&6
13017 +
13018 +# So?  What about this header?
13019 +case $ac_header_compiler:$ac_header_preproc in
13020 +  yes:no )
13021 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13022 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13024 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13025 +  no:yes )
13026 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13027 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13028 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13029 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13030 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13031 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13032 +esac
13033 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13034 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13035 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13036 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13037 +else
13038 +  eval "$as_ac_Header=$ac_header_preproc"
13039 +fi
13040 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13041 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13042 +
13043  fi
13044 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13045 -  echo "$ac_t""yes" 1>&6
13046 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13047 -  cat >> confdefs.h <<EOF
13048 -#define $ac_tr_hdr 1
13049 -EOF
13050 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051 +  cat >>confdefs.h <<_ACEOF
13052 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13053 +_ACEOF
13054   cf_cv_ncurses_header="ncurses.h"
13055 -else
13056 -  echo "$ac_t""no" 1>&6
13057  fi
13058 +
13059  done
13060  
13061                 fi
13062  else
13063 -  echo "$ac_t""no" 1>&6
13064  
13065 -echo $ac_n "checking for initscr""... $ac_c" 1>&6
13066 -echo "configure:2548: checking for initscr" >&5
13067 -if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
13068 -  echo $ac_n "(cached) $ac_c" 1>&6
13069 +echo "$as_me:$LINENO: checking for initscr" >&5
13070 +echo $ECHO_N "checking for initscr... $ECHO_C" >&6
13071 +if test "${ac_cv_func_initscr+set}" = set; then
13072 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13073  else
13074 -  cat > conftest.$ac_ext <<EOF
13075 -#line 2553 "configure"
13076 +  cat >conftest.$ac_ext <<_ACEOF
13077 +#line $LINENO "configure"
13078  #include "confdefs.h"
13079  /* System header to define __stub macros and hopefully few prototypes,
13080 -    which can conflict with char initscr(); below.  */
13081 +    which can conflict with char initscr (); below.  */
13082  #include <assert.h>
13083  /* Override any gcc2 internal prototype to avoid an error.  */
13084 +#ifdef __cplusplus
13085 +extern "C"
13086 +#endif
13087  /* We use char because int might match the return type of a gcc2
13088 -    builtin and then its argument prototype would still apply.  */
13089 -char initscr();
13090 -
13091 -int main() {
13092 +   builtin and then its argument prototype would still apply.  */
13093 +char initscr ();
13094 +char (*f) ();
13095  
13096 +#ifdef F77_DUMMY_MAIN
13097 +#  ifdef __cplusplus
13098 +     extern "C"
13099 +#  endif
13100 +   int F77_DUMMY_MAIN() { return 1; }
13101 +#endif
13102 +int
13103 +main ()
13104 +{
13105  /* The GNU C library defines this for functions which it implements
13106      to always fail with ENOSYS.  Some functions are actually named
13107      something starting with __ and the normal name is an alias.  */
13108  #if defined (__stub_initscr) || defined (__stub___initscr)
13109  choke me
13110  #else
13111 -initscr();
13112 +f = initscr;
13113  #endif
13114  
13115 -; return 0; }
13116 -EOF
13117 -if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13118 -  rm -rf conftest*
13119 -  eval "ac_cv_func_initscr=yes"
13120 -else
13121 -  echo "configure: failed program was:" >&5
13122 -  cat conftest.$ac_ext >&5
13123 -  rm -rf conftest*
13124 -  eval "ac_cv_func_initscr=no"
13125 -fi
13126 -rm -f conftest*
13127 -fi
13128 -
13129 -if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
13130 -  echo "$ac_t""yes" 1>&6
13131 +  ;
13132 +  return 0;
13133 +}
13134 +_ACEOF
13135 +rm -f conftest.$ac_objext conftest$ac_exeext
13136 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13137 +  (eval $ac_link) 2>&5
13138 +  ac_status=$?
13139 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 +  (exit $ac_status); } &&
13141 +         { ac_try='test -s conftest$ac_exeext'
13142 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 +  (eval $ac_try) 2>&5
13144 +  ac_status=$?
13145 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 +  (exit $ac_status); }; }; then
13147 +  ac_cv_func_initscr=yes
13148 +else
13149 +  echo "$as_me: failed program was:" >&5
13150 +cat conftest.$ac_ext >&5
13151 +ac_cv_func_initscr=no
13152 +fi
13153 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13154 +fi
13155 +echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
13156 +echo "${ECHO_T}$ac_cv_func_initscr" >&6
13157 +if test $ac_cv_func_initscr = yes; then
13158    :
13159  else
13160 -  echo "$ac_t""no" 1>&6
13161  
13162  case $host_os in #(vi
13163  freebsd*) #(vi
13164 -       echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
13165 -echo "configure:2597: checking for tgoto in -lmytinfo" >&5
13166 -ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
13167 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13168 -  echo $ac_n "(cached) $ac_c" 1>&6
13169 +       echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
13170 +echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
13171 +if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
13172 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13173  else
13174 -  ac_save_LIBS="$LIBS"
13175 +  ac_check_lib_save_LIBS=$LIBS
13176  LIBS="-lmytinfo  $LIBS"
13177 -cat > conftest.$ac_ext <<EOF
13178 -#line 2605 "configure"
13179 +cat >conftest.$ac_ext <<_ACEOF
13180 +#line $LINENO "configure"
13181  #include "confdefs.h"
13182 +
13183  /* Override any gcc2 internal prototype to avoid an error.  */
13184 +#ifdef __cplusplus
13185 +extern "C"
13186 +#endif
13187  /* We use char because int might match the return type of a gcc2
13188 -    builtin and then its argument prototype would still apply.  */
13189 -char tgoto();
13190 -
13191 -int main() {
13192 -tgoto()
13193 -; return 0; }
13194 -EOF
13195 -if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13196 -  rm -rf conftest*
13197 -  eval "ac_cv_lib_$ac_lib_var=yes"
13198 -else
13199 -  echo "configure: failed program was:" >&5
13200 -  cat conftest.$ac_ext >&5
13201 -  rm -rf conftest*
13202 -  eval "ac_cv_lib_$ac_lib_var=no"
13203 -fi
13204 -rm -f conftest*
13205 -LIBS="$ac_save_LIBS"
13206 -
13207 -fi
13208 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13209 -  echo "$ac_t""yes" 1>&6
13210 +   builtin and then its argument prototype would still apply.  */
13211 +char tgoto ();
13212 +#ifdef F77_DUMMY_MAIN
13213 +#  ifdef __cplusplus
13214 +     extern "C"
13215 +#  endif
13216 +   int F77_DUMMY_MAIN() { return 1; }
13217 +#endif
13218 +int
13219 +main ()
13220 +{
13221 +tgoto ();
13222 +  ;
13223 +  return 0;
13224 +}
13225 +_ACEOF
13226 +rm -f conftest.$ac_objext conftest$ac_exeext
13227 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228 +  (eval $ac_link) 2>&5
13229 +  ac_status=$?
13230 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 +  (exit $ac_status); } &&
13232 +         { ac_try='test -s conftest$ac_exeext'
13233 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 +  (eval $ac_try) 2>&5
13235 +  ac_status=$?
13236 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 +  (exit $ac_status); }; }; then
13238 +  ac_cv_lib_mytinfo_tgoto=yes
13239 +else
13240 +  echo "$as_me: failed program was:" >&5
13241 +cat conftest.$ac_ext >&5
13242 +ac_cv_lib_mytinfo_tgoto=no
13243 +fi
13244 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13245 +LIBS=$ac_check_lib_save_LIBS
13246 +fi
13247 +echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
13248 +echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
13249 +if test $ac_cv_lib_mytinfo_tgoto = yes; then
13250    LIBS="-lmytinfo $LIBS"
13251 -else
13252 -  echo "$ac_t""no" 1>&6
13253  fi
13254  
13255         ;;
13256  hpux10.*|hpux11.*)
13257 -       echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
13258 -echo "configure:2639: checking for initscr in -lcur_colr" >&5
13259 -ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
13260 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13261 -  echo $ac_n "(cached) $ac_c" 1>&6
13262 +       echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
13263 +echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
13264 +if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
13265 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13266  else
13267 -  ac_save_LIBS="$LIBS"
13268 +  ac_check_lib_save_LIBS=$LIBS
13269  LIBS="-lcur_colr  $LIBS"
13270 -cat > conftest.$ac_ext <<EOF
13271 -#line 2647 "configure"
13272 +cat >conftest.$ac_ext <<_ACEOF
13273 +#line $LINENO "configure"
13274  #include "confdefs.h"
13275 +
13276  /* Override any gcc2 internal prototype to avoid an error.  */
13277 +#ifdef __cplusplus
13278 +extern "C"
13279 +#endif
13280  /* We use char because int might match the return type of a gcc2
13281 -    builtin and then its argument prototype would still apply.  */
13282 -char initscr();
13283 -
13284 -int main() {
13285 -initscr()
13286 -; return 0; }
13287 -EOF
13288 -if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13289 -  rm -rf conftest*
13290 -  eval "ac_cv_lib_$ac_lib_var=yes"
13291 -else
13292 -  echo "configure: failed program was:" >&5
13293 -  cat conftest.$ac_ext >&5
13294 -  rm -rf conftest*
13295 -  eval "ac_cv_lib_$ac_lib_var=no"
13296 -fi
13297 -rm -f conftest*
13298 -LIBS="$ac_save_LIBS"
13299 +   builtin and then its argument prototype would still apply.  */
13300 +char initscr ();
13301 +#ifdef F77_DUMMY_MAIN
13302 +#  ifdef __cplusplus
13303 +     extern "C"
13304 +#  endif
13305 +   int F77_DUMMY_MAIN() { return 1; }
13306 +#endif
13307 +int
13308 +main ()
13309 +{
13310 +initscr ();
13311 +  ;
13312 +  return 0;
13313 +}
13314 +_ACEOF
13315 +rm -f conftest.$ac_objext conftest$ac_exeext
13316 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 +  (eval $ac_link) 2>&5
13318 +  ac_status=$?
13319 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 +  (exit $ac_status); } &&
13321 +         { ac_try='test -s conftest$ac_exeext'
13322 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 +  (eval $ac_try) 2>&5
13324 +  ac_status=$?
13325 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 +  (exit $ac_status); }; }; then
13327 +  ac_cv_lib_cur_colr_initscr=yes
13328 +else
13329 +  echo "$as_me: failed program was:" >&5
13330 +cat conftest.$ac_ext >&5
13331 +ac_cv_lib_cur_colr_initscr=no
13332 +fi
13333 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13334 +LIBS=$ac_check_lib_save_LIBS
13335 +fi
13336 +echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
13337 +echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
13338 +if test $ac_cv_lib_cur_colr_initscr = yes; then
13339  
13340 -fi
13341 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13342 -  echo "$ac_t""yes" 1>&6
13343 -  
13344                 LIBS="-lcur_colr $LIBS"
13345                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
13346                 ac_cv_func_initscr=yes
13347 -               
13348 +
13349  else
13350 -  echo "$ac_t""no" 1>&6
13351  
13352 -       echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
13353 -echo "configure:2682: checking for initscr in -lHcurses" >&5
13354 -ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
13355 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13356 -  echo $ac_n "(cached) $ac_c" 1>&6
13357 +       echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
13358 +echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
13359 +if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
13360 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13361  else
13362 -  ac_save_LIBS="$LIBS"
13363 +  ac_check_lib_save_LIBS=$LIBS
13364  LIBS="-lHcurses  $LIBS"
13365 -cat > conftest.$ac_ext <<EOF
13366 -#line 2690 "configure"
13367 +cat >conftest.$ac_ext <<_ACEOF
13368 +#line $LINENO "configure"
13369  #include "confdefs.h"
13370 +
13371  /* Override any gcc2 internal prototype to avoid an error.  */
13372 +#ifdef __cplusplus
13373 +extern "C"
13374 +#endif
13375  /* We use char because int might match the return type of a gcc2
13376 -    builtin and then its argument prototype would still apply.  */
13377 -char initscr();
13378 -
13379 -int main() {
13380 -initscr()
13381 -; return 0; }
13382 -EOF
13383 -if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13384 -  rm -rf conftest*
13385 -  eval "ac_cv_lib_$ac_lib_var=yes"
13386 -else
13387 -  echo "configure: failed program was:" >&5
13388 -  cat conftest.$ac_ext >&5
13389 -  rm -rf conftest*
13390 -  eval "ac_cv_lib_$ac_lib_var=no"
13391 -fi
13392 -rm -f conftest*
13393 -LIBS="$ac_save_LIBS"
13394 +   builtin and then its argument prototype would still apply.  */
13395 +char initscr ();
13396 +#ifdef F77_DUMMY_MAIN
13397 +#  ifdef __cplusplus
13398 +     extern "C"
13399 +#  endif
13400 +   int F77_DUMMY_MAIN() { return 1; }
13401 +#endif
13402 +int
13403 +main ()
13404 +{
13405 +initscr ();
13406 +  ;
13407 +  return 0;
13408 +}
13409 +_ACEOF
13410 +rm -f conftest.$ac_objext conftest$ac_exeext
13411 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13412 +  (eval $ac_link) 2>&5
13413 +  ac_status=$?
13414 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 +  (exit $ac_status); } &&
13416 +         { ac_try='test -s conftest$ac_exeext'
13417 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 +  (eval $ac_try) 2>&5
13419 +  ac_status=$?
13420 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 +  (exit $ac_status); }; }; then
13422 +  ac_cv_lib_Hcurses_initscr=yes
13423 +else
13424 +  echo "$as_me: failed program was:" >&5
13425 +cat conftest.$ac_ext >&5
13426 +ac_cv_lib_Hcurses_initscr=no
13427 +fi
13428 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13429 +LIBS=$ac_check_lib_save_LIBS
13430 +fi
13431 +echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
13432 +echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13433 +if test $ac_cv_lib_Hcurses_initscr = yes; then
13434  
13435 -fi
13436 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13437 -  echo "$ac_t""yes" 1>&6
13438 -  
13439                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13440                 LIBS="-lHcurses $LIBS"
13441                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
13442                 ac_cv_func_initscr=yes
13443 -               
13444 -else
13445 -  echo "$ac_t""no" 1>&6
13446 +
13447  fi
13448  
13449  fi
13450 @@ -2747,97 +5256,138 @@
13451  
13452         # Check for library containing tgoto.  Do this before curses library
13453         # because it may be needed to link the test-case for initscr.
13454 -       echo $ac_n "checking for tgoto""... $ac_c" 1>&6
13455 -echo "configure:2750: checking for tgoto" >&5
13456 -if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
13457 -  echo $ac_n "(cached) $ac_c" 1>&6
13458 +       echo "$as_me:$LINENO: checking for tgoto" >&5
13459 +echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13460 +if test "${ac_cv_func_tgoto+set}" = set; then
13461 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13462  else
13463 -  cat > conftest.$ac_ext <<EOF
13464 -#line 2755 "configure"
13465 +  cat >conftest.$ac_ext <<_ACEOF
13466 +#line $LINENO "configure"
13467  #include "confdefs.h"
13468  /* System header to define __stub macros and hopefully few prototypes,
13469 -    which can conflict with char tgoto(); below.  */
13470 +    which can conflict with char tgoto (); below.  */
13471  #include <assert.h>
13472  /* Override any gcc2 internal prototype to avoid an error.  */
13473 +#ifdef __cplusplus
13474 +extern "C"
13475 +#endif
13476  /* We use char because int might match the return type of a gcc2
13477 -    builtin and then its argument prototype would still apply.  */
13478 -char tgoto();
13479 -
13480 -int main() {
13481 +   builtin and then its argument prototype would still apply.  */
13482 +char tgoto ();
13483 +char (*f) ();
13484  
13485 +#ifdef F77_DUMMY_MAIN
13486 +#  ifdef __cplusplus
13487 +     extern "C"
13488 +#  endif
13489 +   int F77_DUMMY_MAIN() { return 1; }
13490 +#endif
13491 +int
13492 +main ()
13493 +{
13494  /* The GNU C library defines this for functions which it implements
13495      to always fail with ENOSYS.  Some functions are actually named
13496      something starting with __ and the normal name is an alias.  */
13497  #if defined (__stub_tgoto) || defined (__stub___tgoto)
13498  choke me
13499  #else
13500 -tgoto();
13501 +f = tgoto;
13502  #endif
13503  
13504 -; return 0; }
13505 -EOF
13506 -if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13507 -  rm -rf conftest*
13508 -  eval "ac_cv_func_tgoto=yes"
13509 -else
13510 -  echo "configure: failed program was:" >&5
13511 -  cat conftest.$ac_ext >&5
13512 -  rm -rf conftest*
13513 -  eval "ac_cv_func_tgoto=no"
13514 -fi
13515 -rm -f conftest*
13516 -fi
13517 -
13518 -if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
13519 -  echo "$ac_t""yes" 1>&6
13520 +  ;
13521 +  return 0;
13522 +}
13523 +_ACEOF
13524 +rm -f conftest.$ac_objext conftest$ac_exeext
13525 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 +  (eval $ac_link) 2>&5
13527 +  ac_status=$?
13528 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 +  (exit $ac_status); } &&
13530 +         { ac_try='test -s conftest$ac_exeext'
13531 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 +  (eval $ac_try) 2>&5
13533 +  ac_status=$?
13534 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 +  (exit $ac_status); }; }; then
13536 +  ac_cv_func_tgoto=yes
13537 +else
13538 +  echo "$as_me: failed program was:" >&5
13539 +cat conftest.$ac_ext >&5
13540 +ac_cv_func_tgoto=no
13541 +fi
13542 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13543 +fi
13544 +echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
13545 +echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13546 +if test $ac_cv_func_tgoto = yes; then
13547    cf_term_lib=predefined
13548  else
13549 -  echo "$ac_t""no" 1>&6
13550  
13551                 for cf_term_lib in termcap termlib unknown
13552                 do
13553 -                       echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
13554 -echo "configure:2799: checking for tgoto in -l$cf_term_lib" >&5
13555 -ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
13556 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13557 -  echo $ac_n "(cached) $ac_c" 1>&6
13558 +                       as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13559 +echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
13560 +echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13561 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13562 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13563  else
13564 -  ac_save_LIBS="$LIBS"
13565 +  ac_check_lib_save_LIBS=$LIBS
13566  LIBS="-l$cf_term_lib  $LIBS"
13567 -cat > conftest.$ac_ext <<EOF
13568 -#line 2807 "configure"
13569 +cat >conftest.$ac_ext <<_ACEOF
13570 +#line $LINENO "configure"
13571  #include "confdefs.h"
13572 +
13573  /* Override any gcc2 internal prototype to avoid an error.  */
13574 +#ifdef __cplusplus
13575 +extern "C"
13576 +#endif
13577  /* We use char because int might match the return type of a gcc2
13578 -    builtin and then its argument prototype would still apply.  */
13579 -char tgoto();
13580 -
13581 -int main() {
13582 -tgoto()
13583 -; return 0; }
13584 -EOF
13585 -if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 -  rm -rf conftest*
13587 -  eval "ac_cv_lib_$ac_lib_var=yes"
13588 -else
13589 -  echo "configure: failed program was:" >&5
13590 -  cat conftest.$ac_ext >&5
13591 -  rm -rf conftest*
13592 -  eval "ac_cv_lib_$ac_lib_var=no"
13593 -fi
13594 -rm -f conftest*
13595 -LIBS="$ac_save_LIBS"
13596 -
13597 -fi
13598 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13599 -  echo "$ac_t""yes" 1>&6
13600 +   builtin and then its argument prototype would still apply.  */
13601 +char tgoto ();
13602 +#ifdef F77_DUMMY_MAIN
13603 +#  ifdef __cplusplus
13604 +     extern "C"
13605 +#  endif
13606 +   int F77_DUMMY_MAIN() { return 1; }
13607 +#endif
13608 +int
13609 +main ()
13610 +{
13611 +tgoto ();
13612 +  ;
13613 +  return 0;
13614 +}
13615 +_ACEOF
13616 +rm -f conftest.$ac_objext conftest$ac_exeext
13617 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 +  (eval $ac_link) 2>&5
13619 +  ac_status=$?
13620 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 +  (exit $ac_status); } &&
13622 +         { ac_try='test -s conftest$ac_exeext'
13623 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 +  (eval $ac_try) 2>&5
13625 +  ac_status=$?
13626 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 +  (exit $ac_status); }; }; then
13628 +  eval "$as_ac_Lib=yes"
13629 +else
13630 +  echo "$as_me: failed program was:" >&5
13631 +cat conftest.$ac_ext >&5
13632 +eval "$as_ac_Lib=no"
13633 +fi
13634 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13635 +LIBS=$ac_check_lib_save_LIBS
13636 +fi
13637 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13638 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13639 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13640    break
13641 -else
13642 -  echo "$ac_t""no" 1>&6
13643  fi
13644  
13645                 done
13646 -       
13647 +
13648  fi
13649  
13650  
13651 @@ -2845,115 +5395,198 @@
13652         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13653         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
13654         do
13655 -               echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
13656 -echo "configure:2848: checking for initscr in -l$cf_curs_lib" >&5
13657 -ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
13658 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13659 -  echo $ac_n "(cached) $ac_c" 1>&6
13660 +               as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13661 +echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
13662 +echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13663 +if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13664 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13665  else
13666 -  ac_save_LIBS="$LIBS"
13667 +  ac_check_lib_save_LIBS=$LIBS
13668  LIBS="-l$cf_curs_lib  $LIBS"
13669 -cat > conftest.$ac_ext <<EOF
13670 -#line 2856 "configure"
13671 +cat >conftest.$ac_ext <<_ACEOF
13672 +#line $LINENO "configure"
13673  #include "confdefs.h"
13674 +
13675  /* Override any gcc2 internal prototype to avoid an error.  */
13676 +#ifdef __cplusplus
13677 +extern "C"
13678 +#endif
13679  /* We use char because int might match the return type of a gcc2
13680 -    builtin and then its argument prototype would still apply.  */
13681 -char initscr();
13682 -
13683 -int main() {
13684 -initscr()
13685 -; return 0; }
13686 -EOF
13687 -if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13688 -  rm -rf conftest*
13689 -  eval "ac_cv_lib_$ac_lib_var=yes"
13690 -else
13691 -  echo "configure: failed program was:" >&5
13692 -  cat conftest.$ac_ext >&5
13693 -  rm -rf conftest*
13694 -  eval "ac_cv_lib_$ac_lib_var=no"
13695 -fi
13696 -rm -f conftest*
13697 -LIBS="$ac_save_LIBS"
13698 -
13699 -fi
13700 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13701 -  echo "$ac_t""yes" 1>&6
13702 +   builtin and then its argument prototype would still apply.  */
13703 +char initscr ();
13704 +#ifdef F77_DUMMY_MAIN
13705 +#  ifdef __cplusplus
13706 +     extern "C"
13707 +#  endif
13708 +   int F77_DUMMY_MAIN() { return 1; }
13709 +#endif
13710 +int
13711 +main ()
13712 +{
13713 +initscr ();
13714 +  ;
13715 +  return 0;
13716 +}
13717 +_ACEOF
13718 +rm -f conftest.$ac_objext conftest$ac_exeext
13719 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 +  (eval $ac_link) 2>&5
13721 +  ac_status=$?
13722 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 +  (exit $ac_status); } &&
13724 +         { ac_try='test -s conftest$ac_exeext'
13725 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 +  (eval $ac_try) 2>&5
13727 +  ac_status=$?
13728 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 +  (exit $ac_status); }; }; then
13730 +  eval "$as_ac_Lib=yes"
13731 +else
13732 +  echo "$as_me: failed program was:" >&5
13733 +cat conftest.$ac_ext >&5
13734 +eval "$as_ac_Lib=no"
13735 +fi
13736 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13737 +LIBS=$ac_check_lib_save_LIBS
13738 +fi
13739 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13740 +echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13741 +if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13742    break
13743 -else
13744 -  echo "$ac_t""no" 1>&6
13745  fi
13746  
13747         done
13748 -       test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
13749 +       test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
13750 +echo "$as_me: error: no curses library found" >&2;}
13751 +   { (exit 1); exit 1; }; }
13752  
13753         LIBS="-l$cf_curs_lib $cf_save_LIBS"
13754         if test "$cf_term_lib" = unknown ; then
13755 -               echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
13756 -echo "configure:2893: checking if we can link with $cf_curs_lib library" >&5
13757 -               cat > conftest.$ac_ext <<EOF
13758 -#line 2895 "configure"
13759 +               echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
13760 +echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13761 +               cat >conftest.$ac_ext <<_ACEOF
13762 +#line $LINENO "configure"
13763  #include "confdefs.h"
13764  #include <${cf_cv_ncurses_header-curses.h}>
13765 -int main() {
13766 +#ifdef F77_DUMMY_MAIN
13767 +#  ifdef __cplusplus
13768 +     extern "C"
13769 +#  endif
13770 +   int F77_DUMMY_MAIN() { return 1; }
13771 +#endif
13772 +int
13773 +main ()
13774 +{
13775  initscr()
13776 -; return 0; }
13777 -EOF
13778 -if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 -  rm -rf conftest*
13780 +  ;
13781 +  return 0;
13782 +}
13783 +_ACEOF
13784 +rm -f conftest.$ac_objext conftest$ac_exeext
13785 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786 +  (eval $ac_link) 2>&5
13787 +  ac_status=$?
13788 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 +  (exit $ac_status); } &&
13790 +         { ac_try='test -s conftest$ac_exeext'
13791 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 +  (eval $ac_try) 2>&5
13793 +  ac_status=$?
13794 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 +  (exit $ac_status); }; }; then
13796    cf_result=yes
13797  else
13798 -  echo "configure: failed program was:" >&5
13799 -  cat conftest.$ac_ext >&5
13800 -  rm -rf conftest*
13801 -  cf_result=no
13802 -fi
13803 -rm -f conftest*
13804 -               echo "$ac_t""$cf_result" 1>&6
13805 -               test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
13806 +  echo "$as_me: failed program was:" >&5
13807 +cat conftest.$ac_ext >&5
13808 +cf_result=no
13809 +fi
13810 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13811 +               echo "$as_me:$LINENO: result: $cf_result" >&5
13812 +echo "${ECHO_T}$cf_result" >&6
13813 +               test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
13814 +echo "$as_me: error: Cannot link curses library" >&2;}
13815 +   { (exit 1); exit 1; }; }
13816         elif test "$cf_term_lib" != predefined ; then
13817 -               echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
13818 -echo "configure:2916: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13819 -               cat > conftest.$ac_ext <<EOF
13820 -#line 2918 "configure"
13821 +               echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13822 +echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13823 +               cat >conftest.$ac_ext <<_ACEOF
13824 +#line $LINENO "configure"
13825  #include "confdefs.h"
13826  #include <${cf_cv_ncurses_header-curses.h}>
13827 -int main() {
13828 +#ifdef F77_DUMMY_MAIN
13829 +#  ifdef __cplusplus
13830 +     extern "C"
13831 +#  endif
13832 +   int F77_DUMMY_MAIN() { return 1; }
13833 +#endif
13834 +int
13835 +main ()
13836 +{
13837  initscr(); tgoto((char *)0, 0, 0);
13838 -; return 0; }
13839 -EOF
13840 -if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841 -  rm -rf conftest*
13842 +  ;
13843 +  return 0;
13844 +}
13845 +_ACEOF
13846 +rm -f conftest.$ac_objext conftest$ac_exeext
13847 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848 +  (eval $ac_link) 2>&5
13849 +  ac_status=$?
13850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 +  (exit $ac_status); } &&
13852 +         { ac_try='test -s conftest$ac_exeext'
13853 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 +  (eval $ac_try) 2>&5
13855 +  ac_status=$?
13856 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 +  (exit $ac_status); }; }; then
13858    cf_result=no
13859  else
13860 -  echo "configure: failed program was:" >&5
13861 -  cat conftest.$ac_ext >&5
13862 -  rm -rf conftest*
13863 -  
13864 +  echo "$as_me: failed program was:" >&5
13865 +cat conftest.$ac_ext >&5
13866 +
13867                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13868 -                       cat > conftest.$ac_ext <<EOF
13869 -#line 2935 "configure"
13870 +                       cat >conftest.$ac_ext <<_ACEOF
13871 +#line $LINENO "configure"
13872  #include "confdefs.h"
13873  #include <${cf_cv_ncurses_header-curses.h}>
13874 -int main() {
13875 +#ifdef F77_DUMMY_MAIN
13876 +#  ifdef __cplusplus
13877 +     extern "C"
13878 +#  endif
13879 +   int F77_DUMMY_MAIN() { return 1; }
13880 +#endif
13881 +int
13882 +main ()
13883 +{
13884  initscr()
13885 -; return 0; }
13886 -EOF
13887 -if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13888 -  rm -rf conftest*
13889 +  ;
13890 +  return 0;
13891 +}
13892 +_ACEOF
13893 +rm -f conftest.$ac_objext conftest$ac_exeext
13894 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 +  (eval $ac_link) 2>&5
13896 +  ac_status=$?
13897 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 +  (exit $ac_status); } &&
13899 +         { ac_try='test -s conftest$ac_exeext'
13900 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 +  (eval $ac_try) 2>&5
13902 +  ac_status=$?
13903 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 +  (exit $ac_status); }; }; then
13905    cf_result=yes
13906  else
13907 -  echo "configure: failed program was:" >&5
13908 -  cat conftest.$ac_ext >&5
13909 -  rm -rf conftest*
13910 -  cf_result=error
13911 +  echo "$as_me: failed program was:" >&5
13912 +cat conftest.$ac_ext >&5
13913 +cf_result=error
13914  fi
13915 -rm -f conftest*
13916 -                       
13917 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13918 +
13919  fi
13920 -rm -f conftest*
13921 -               echo "$ac_t""$cf_result" 1>&6
13922 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13923 +               echo "$as_me:$LINENO: result: $cf_result" >&5
13924 +echo "${ECHO_T}$cf_result" >&6
13925         fi
13926  fi
13927  
13928 @@ -2962,7 +5595,7 @@
13929  
13930  fi
13931  
13932 -               
13933 +
13934  fi
13935  
13936  
13937 @@ -2971,125 +5604,176 @@
13938          for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
13939  do
13940  
13941 -echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
13942 -echo "configure:2974: checking for $ac_func declaration" >&5
13943 -if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
13944 -  echo $ac_n "(cached) $ac_c" 1>&6
13945 +echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
13946 +echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
13947 +if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
13948 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13949  else
13950 -  cat > conftest.$ac_ext <<EOF
13951 -#line 2979 "configure"
13952 +  cat >conftest.$ac_ext <<_ACEOF
13953 +#line $LINENO "configure"
13954  #include "confdefs.h"
13955  #include <${cf_cv_ncurses_header-curses.h}>
13956 -int main() {
13957 +#ifdef F77_DUMMY_MAIN
13958 +#  ifdef __cplusplus
13959 +     extern "C"
13960 +#  endif
13961 +   int F77_DUMMY_MAIN() { return 1; }
13962 +#endif
13963 +int
13964 +main ()
13965 +{
13966  #ifndef ${ac_func}
13967  extern int     ${ac_func}();
13968  #endif
13969 -; return 0; }
13970 -EOF
13971 -if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13972 -  rm -rf conftest*
13973 -  
13974 -cat > conftest.$ac_ext <<EOF
13975 -#line 2992 "configure"
13976 +  ;
13977 +  return 0;
13978 +}
13979 +_ACEOF
13980 +rm -f conftest.$ac_objext
13981 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13982 +  (eval $ac_compile) 2>&5
13983 +  ac_status=$?
13984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 +  (exit $ac_status); } &&
13986 +         { ac_try='test -s conftest.$ac_objext'
13987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 +  (eval $ac_try) 2>&5
13989 +  ac_status=$?
13990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 +  (exit $ac_status); }; }; then
13992 +
13993 +cat >conftest.$ac_ext <<_ACEOF
13994 +#line $LINENO "configure"
13995  #include "confdefs.h"
13996  #include <${cf_cv_ncurses_header-curses.h}>
13997 -int main() {
13998 +#ifdef F77_DUMMY_MAIN
13999 +#  ifdef __cplusplus
14000 +     extern "C"
14001 +#  endif
14002 +   int F77_DUMMY_MAIN() { return 1; }
14003 +#endif
14004 +int
14005 +main ()
14006 +{
14007  #ifndef ${ac_func}
14008  int    (*p)() = ${ac_func};
14009  #endif
14010 -; return 0; }
14011 -EOF
14012 -if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14013 -  rm -rf conftest*
14014 -  
14015 +  ;
14016 +  return 0;
14017 +}
14018 +_ACEOF
14019 +rm -f conftest.$ac_objext
14020 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 +  (eval $ac_compile) 2>&5
14022 +  ac_status=$?
14023 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 +  (exit $ac_status); } &&
14025 +         { ac_try='test -s conftest.$ac_objext'
14026 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 +  (eval $ac_try) 2>&5
14028 +  ac_status=$?
14029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 +  (exit $ac_status); }; }; then
14031 +
14032  eval "ac_cv_func_decl_$ac_func=yes"
14033  else
14034 -  echo "configure: failed program was:" >&5
14035 -  cat conftest.$ac_ext >&5
14036 -  rm -rf conftest*
14037 -  
14038 +  echo "$as_me: failed program was:" >&5
14039 +cat conftest.$ac_ext >&5
14040 +
14041  eval "ac_cv_func_decl_$ac_func=no"
14042  fi
14043 -rm -f conftest*
14044 +rm -f conftest.$ac_objext conftest.$ac_ext
14045  else
14046 -  echo "configure: failed program was:" >&5
14047 -  cat conftest.$ac_ext >&5
14048 -  rm -rf conftest*
14049 -  
14050 +  echo "$as_me: failed program was:" >&5
14051 +cat conftest.$ac_ext >&5
14052 +
14053  eval "ac_cv_func_decl_$ac_func=yes"
14054  fi
14055 -rm -f conftest*
14056 +rm -f conftest.$ac_objext conftest.$ac_ext
14057  fi
14058  
14059  if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
14060 -  echo "$ac_t""yes" 1>&6
14061 -  
14062 -  
14063 +  echo "$as_me:$LINENO: result: yes" >&5
14064 +echo "${ECHO_T}yes" >&6
14065 +
14066 +
14067  ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
14068  
14069 -  cat >> confdefs.h <<EOF
14070 +  cat >>confdefs.h <<_ACEOF
14071  #define $ac_tr_func 1
14072 -EOF
14073
14074 +_ACEOF
14075 +
14076  else
14077 -  echo "$ac_t""no" 1>&6
14078 +  echo "$as_me:$LINENO: result: no" >&5
14079 +echo "${ECHO_T}no" >&6
14080  fi
14081  done
14082  
14083          if test "$ac_cv_func_decl_start_color" = yes; then
14084 -                cat >> confdefs.h <<\EOF
14085 +
14086 +cat >>confdefs.h <<\_ACEOF
14087  #define HAVE_COLOR 1
14088 -EOF
14089 +_ACEOF
14090  
14091          fi
14092          if test "$ac_cv_func_decl_resizeterm" = yes; then
14093                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
14094          fi
14095          LIBS="$old_LIBS"
14096 -        
14097 -fi
14098  
14099 +fi;
14100  
14101 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14102 -echo "configure:3053: checking for ANSI C header files" >&5
14103 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14104 -  echo $ac_n "(cached) $ac_c" 1>&6
14105 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14106 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14107 +if test "${ac_cv_header_stdc+set}" = set; then
14108 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14109  else
14110 -  cat > conftest.$ac_ext <<EOF
14111 -#line 3058 "configure"
14112 +  cat >conftest.$ac_ext <<_ACEOF
14113 +#line $LINENO "configure"
14114  #include "confdefs.h"
14115  #include <stdlib.h>
14116  #include <stdarg.h>
14117  #include <string.h>
14118  #include <float.h>
14119 -EOF
14120 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14121 -{ (eval echo configure:3066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14122 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14123 -if test -z "$ac_err"; then
14124 -  rm -rf conftest*
14125 +
14126 +_ACEOF
14127 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14129 +  ac_status=$?
14130 +  egrep -v '^ *\+' conftest.er1 >conftest.err
14131 +  rm -f conftest.er1
14132 +  cat conftest.err >&5
14133 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 +  (exit $ac_status); } >/dev/null; then
14135 +  if test -s conftest.err; then
14136 +    ac_cpp_err=$ac_c_preproc_warn_flag
14137 +  else
14138 +    ac_cpp_err=
14139 +  fi
14140 +else
14141 +  ac_cpp_err=yes
14142 +fi
14143 +if test -z "$ac_cpp_err"; then
14144    ac_cv_header_stdc=yes
14145  else
14146 -  echo "$ac_err" >&5
14147 -  echo "configure: failed program was:" >&5
14148 +  echo "$as_me: failed program was:" >&5
14149    cat conftest.$ac_ext >&5
14150 -  rm -rf conftest*
14151    ac_cv_header_stdc=no
14152  fi
14153 -rm -f conftest*
14154 +rm -f conftest.err conftest.$ac_ext
14155  
14156  if test $ac_cv_header_stdc = yes; then
14157    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14158 -cat > conftest.$ac_ext <<EOF
14159 -#line 3083 "configure"
14160 +  cat >conftest.$ac_ext <<_ACEOF
14161 +#line $LINENO "configure"
14162  #include "confdefs.h"
14163  #include <string.h>
14164 -EOF
14165 +
14166 +_ACEOF
14167  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14168    egrep "memchr" >/dev/null 2>&1; then
14169    :
14170  else
14171 -  rm -rf conftest*
14172    ac_cv_header_stdc=no
14173  fi
14174  rm -f conftest*
14175 @@ -3098,16 +5782,16 @@
14176  
14177  if test $ac_cv_header_stdc = yes; then
14178    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14179 -cat > conftest.$ac_ext <<EOF
14180 -#line 3101 "configure"
14181 +  cat >conftest.$ac_ext <<_ACEOF
14182 +#line $LINENO "configure"
14183  #include "confdefs.h"
14184  #include <stdlib.h>
14185 -EOF
14186 +
14187 +_ACEOF
14188  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14189    egrep "free" >/dev/null 2>&1; then
14190    :
14191  else
14192 -  rm -rf conftest*
14193    ac_cv_header_stdc=no
14194  fi
14195  rm -f conftest*
14196 @@ -3116,234 +5800,506 @@
14197  
14198  if test $ac_cv_header_stdc = yes; then
14199    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14200 -if test "$cross_compiling" = yes; then
14201 +  if test "$cross_compiling" = yes; then
14202    :
14203  else
14204 -  cat > conftest.$ac_ext <<EOF
14205 -#line 3122 "configure"
14206 +  cat >conftest.$ac_ext <<_ACEOF
14207 +#line $LINENO "configure"
14208  #include "confdefs.h"
14209  #include <ctype.h>
14210 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14211 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14212 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14213 -int main () { int i; for (i = 0; i < 256; i++)
14214 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14215 -exit (0); }
14216 +#if ((' ' & 0x0FF) == 0x020)
14217 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14218 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14219 +#else
14220 +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14221 +                     || ('j' <= (c) && (c) <= 'r') \
14222 +                     || ('s' <= (c) && (c) <= 'z'))
14223 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14224 +#endif
14225  
14226 -EOF
14227 -if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14228 -then
14229 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14230 +int
14231 +main ()
14232 +{
14233 +  int i;
14234 +  for (i = 0; i < 256; i++)
14235 +    if (XOR (islower (i), ISLOWER (i))
14236 +        || toupper (i) != TOUPPER (i))
14237 +      exit(2);
14238 +  exit (0);
14239 +}
14240 +_ACEOF
14241 +rm -f conftest$ac_exeext
14242 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 +  (eval $ac_link) 2>&5
14244 +  ac_status=$?
14245 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14247 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 +  (eval $ac_try) 2>&5
14249 +  ac_status=$?
14250 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 +  (exit $ac_status); }; }; then
14252    :
14253 -else
14254 -  echo "configure: failed program was:" >&5
14255 -  cat conftest.$ac_ext >&5
14256 -  rm -fr conftest*
14257 -  ac_cv_header_stdc=no
14258 +else
14259 +  echo "$as_me: program exited with status $ac_status" >&5
14260 +echo "$as_me: failed program was:" >&5
14261 +cat conftest.$ac_ext >&5
14262 +( exit $ac_status )
14263 +ac_cv_header_stdc=no
14264  fi
14265 -rm -fr conftest*
14266 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14267  fi
14268 -
14269  fi
14270  fi
14271 -
14272 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
14273 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14274 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
14275  if test $ac_cv_header_stdc = yes; then
14276 -  cat >> confdefs.h <<\EOF
14277 +
14278 +cat >>confdefs.h <<\_ACEOF
14279  #define STDC_HEADERS 1
14280 -EOF
14281 +_ACEOF
14282  
14283  fi
14284  
14285  
14286 -for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
14287 +
14288 +
14289 +
14290 +
14291 +for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
14292  do
14293 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14294 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14295 -echo "configure:3161: checking for $ac_hdr" >&5
14296 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14297 -  echo $ac_n "(cached) $ac_c" 1>&6
14298 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14299 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14300 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
14301 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14302 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14303 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14304 +fi
14305 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14306 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14307 +else
14308 +  # Is the header compilable?
14309 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14310 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14311 +cat >conftest.$ac_ext <<_ACEOF
14312 +#line $LINENO "configure"
14313 +#include "confdefs.h"
14314 +$ac_includes_default
14315 +#include <$ac_header>
14316 +_ACEOF
14317 +rm -f conftest.$ac_objext
14318 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 +  (eval $ac_compile) 2>&5
14320 +  ac_status=$?
14321 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 +  (exit $ac_status); } &&
14323 +         { ac_try='test -s conftest.$ac_objext'
14324 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 +  (eval $ac_try) 2>&5
14326 +  ac_status=$?
14327 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 +  (exit $ac_status); }; }; then
14329 +  ac_header_compiler=yes
14330 +else
14331 +  echo "$as_me: failed program was:" >&5
14332 +cat conftest.$ac_ext >&5
14333 +ac_header_compiler=no
14334 +fi
14335 +rm -f conftest.$ac_objext conftest.$ac_ext
14336 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14337 +echo "${ECHO_T}$ac_header_compiler" >&6
14338 +
14339 +# Is the header present?
14340 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14341 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14342 +cat >conftest.$ac_ext <<_ACEOF
14343 +#line $LINENO "configure"
14344 +#include "confdefs.h"
14345 +#include <$ac_header>
14346 +_ACEOF
14347 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14348 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14349 +  ac_status=$?
14350 +  egrep -v '^ *\+' conftest.er1 >conftest.err
14351 +  rm -f conftest.er1
14352 +  cat conftest.err >&5
14353 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 +  (exit $ac_status); } >/dev/null; then
14355 +  if test -s conftest.err; then
14356 +    ac_cpp_err=$ac_c_preproc_warn_flag
14357 +  else
14358 +    ac_cpp_err=
14359 +  fi
14360  else
14361 -  cat > conftest.$ac_ext <<EOF
14362 -#line 3166 "configure"
14363 -#include "confdefs.h"
14364 -#include <$ac_hdr>
14365 -EOF
14366 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14367 -{ (eval echo configure:3171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14368 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14369 -if test -z "$ac_err"; then
14370 -  rm -rf conftest*
14371 -  eval "ac_cv_header_$ac_safe=yes"
14372 +  ac_cpp_err=yes
14373 +fi
14374 +if test -z "$ac_cpp_err"; then
14375 +  ac_header_preproc=yes
14376  else
14377 -  echo "$ac_err" >&5
14378 -  echo "configure: failed program was:" >&5
14379 +  echo "$as_me: failed program was:" >&5
14380    cat conftest.$ac_ext >&5
14381 -  rm -rf conftest*
14382 -  eval "ac_cv_header_$ac_safe=no"
14383 +  ac_header_preproc=no
14384  fi
14385 -rm -f conftest*
14386 +rm -f conftest.err conftest.$ac_ext
14387 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14388 +echo "${ECHO_T}$ac_header_preproc" >&6
14389 +
14390 +# So?  What about this header?
14391 +case $ac_header_compiler:$ac_header_preproc in
14392 +  yes:no )
14393 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14394 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14395 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14396 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14397 +  no:yes )
14398 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14399 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14400 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14401 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14402 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14404 +esac
14405 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14406 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14407 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14408 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14409 +else
14410 +  eval "$as_ac_Header=$ac_header_preproc"
14411 +fi
14412 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14413 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14414 +
14415  fi
14416 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14417 -  echo "$ac_t""yes" 1>&6
14418 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14419 -  cat >> confdefs.h <<EOF
14420 -#define $ac_tr_hdr 1
14421 -EOF
14422
14423 -else
14424 -  echo "$ac_t""no" 1>&6
14425 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 +  cat >>confdefs.h <<_ACEOF
14427 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 +_ACEOF
14429 +
14430  fi
14431 +
14432  done
14433  
14434 -for ac_hdr in sys/time.h sys/resource.h
14435 -do
14436 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14437 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14438 -echo "configure:3201: checking for $ac_hdr" >&5
14439 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14440 -  echo $ac_n "(cached) $ac_c" 1>&6
14441 -else
14442 -  cat > conftest.$ac_ext <<EOF
14443 -#line 3206 "configure"
14444 -#include "confdefs.h"
14445 -#include <$ac_hdr>
14446 -EOF
14447 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14448 -{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14449 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14450 -if test -z "$ac_err"; then
14451 -  rm -rf conftest*
14452 -  eval "ac_cv_header_$ac_safe=yes"
14453 +
14454 +
14455 +for ac_header in sys/time.h sys/resource.h
14456 +do
14457 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14458 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14459 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14463 +fi
14464 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14465 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14466 +else
14467 +  # Is the header compilable?
14468 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14469 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14470 +cat >conftest.$ac_ext <<_ACEOF
14471 +#line $LINENO "configure"
14472 +#include "confdefs.h"
14473 +$ac_includes_default
14474 +#include <$ac_header>
14475 +_ACEOF
14476 +rm -f conftest.$ac_objext
14477 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14478 +  (eval $ac_compile) 2>&5
14479 +  ac_status=$?
14480 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 +  (exit $ac_status); } &&
14482 +         { ac_try='test -s conftest.$ac_objext'
14483 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 +  (eval $ac_try) 2>&5
14485 +  ac_status=$?
14486 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 +  (exit $ac_status); }; }; then
14488 +  ac_header_compiler=yes
14489 +else
14490 +  echo "$as_me: failed program was:" >&5
14491 +cat conftest.$ac_ext >&5
14492 +ac_header_compiler=no
14493 +fi
14494 +rm -f conftest.$ac_objext conftest.$ac_ext
14495 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14496 +echo "${ECHO_T}$ac_header_compiler" >&6
14497 +
14498 +# Is the header present?
14499 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14500 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14501 +cat >conftest.$ac_ext <<_ACEOF
14502 +#line $LINENO "configure"
14503 +#include "confdefs.h"
14504 +#include <$ac_header>
14505 +_ACEOF
14506 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14507 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14508 +  ac_status=$?
14509 +  egrep -v '^ *\+' conftest.er1 >conftest.err
14510 +  rm -f conftest.er1
14511 +  cat conftest.err >&5
14512 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 +  (exit $ac_status); } >/dev/null; then
14514 +  if test -s conftest.err; then
14515 +    ac_cpp_err=$ac_c_preproc_warn_flag
14516 +  else
14517 +    ac_cpp_err=
14518 +  fi
14519  else
14520 -  echo "$ac_err" >&5
14521 -  echo "configure: failed program was:" >&5
14522 +  ac_cpp_err=yes
14523 +fi
14524 +if test -z "$ac_cpp_err"; then
14525 +  ac_header_preproc=yes
14526 +else
14527 +  echo "$as_me: failed program was:" >&5
14528    cat conftest.$ac_ext >&5
14529 -  rm -rf conftest*
14530 -  eval "ac_cv_header_$ac_safe=no"
14531 +  ac_header_preproc=no
14532  fi
14533 -rm -f conftest*
14534 +rm -f conftest.err conftest.$ac_ext
14535 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536 +echo "${ECHO_T}$ac_header_preproc" >&6
14537 +
14538 +# So?  What about this header?
14539 +case $ac_header_compiler:$ac_header_preproc in
14540 +  yes:no )
14541 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14542 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14544 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14545 +  no:yes )
14546 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14549 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14550 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14551 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14552 +esac
14553 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14554 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14555 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14556 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14557 +else
14558 +  eval "$as_ac_Header=$ac_header_preproc"
14559 +fi
14560 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14561 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14562 +
14563  fi
14564 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14565 -  echo "$ac_t""yes" 1>&6
14566 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14567 -  cat >> confdefs.h <<EOF
14568 -#define $ac_tr_hdr 1
14569 -EOF
14570
14571 -else
14572 -  echo "$ac_t""no" 1>&6
14573 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574 +  cat >>confdefs.h <<_ACEOF
14575 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14576 +_ACEOF
14577 +
14578  fi
14579 +
14580  done
14581  
14582 -for ac_hdr in unix.h
14583 -do
14584 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14585 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14586 -echo "configure:3241: checking for $ac_hdr" >&5
14587 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14588 -  echo $ac_n "(cached) $ac_c" 1>&6
14589 -else
14590 -  cat > conftest.$ac_ext <<EOF
14591 -#line 3246 "configure"
14592 -#include "confdefs.h"
14593 -#include <$ac_hdr>
14594 -EOF
14595 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14596 -{ (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14597 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14598 -if test -z "$ac_err"; then
14599 -  rm -rf conftest*
14600 -  eval "ac_cv_header_$ac_safe=yes"
14601 +
14602 +for ac_header in unix.h
14603 +do
14604 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14605 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14606 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
14607 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14608 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14609 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14610 +fi
14611 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14612 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14613 +else
14614 +  # Is the header compilable?
14615 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14616 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14617 +cat >conftest.$ac_ext <<_ACEOF
14618 +#line $LINENO "configure"
14619 +#include "confdefs.h"
14620 +$ac_includes_default
14621 +#include <$ac_header>
14622 +_ACEOF
14623 +rm -f conftest.$ac_objext
14624 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 +  (eval $ac_compile) 2>&5
14626 +  ac_status=$?
14627 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 +  (exit $ac_status); } &&
14629 +         { ac_try='test -s conftest.$ac_objext'
14630 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 +  (eval $ac_try) 2>&5
14632 +  ac_status=$?
14633 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 +  (exit $ac_status); }; }; then
14635 +  ac_header_compiler=yes
14636 +else
14637 +  echo "$as_me: failed program was:" >&5
14638 +cat conftest.$ac_ext >&5
14639 +ac_header_compiler=no
14640 +fi
14641 +rm -f conftest.$ac_objext conftest.$ac_ext
14642 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14643 +echo "${ECHO_T}$ac_header_compiler" >&6
14644 +
14645 +# Is the header present?
14646 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14647 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14648 +cat >conftest.$ac_ext <<_ACEOF
14649 +#line $LINENO "configure"
14650 +#include "confdefs.h"
14651 +#include <$ac_header>
14652 +_ACEOF
14653 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14654 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14655 +  ac_status=$?
14656 +  egrep -v '^ *\+' conftest.er1 >conftest.err
14657 +  rm -f conftest.er1
14658 +  cat conftest.err >&5
14659 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 +  (exit $ac_status); } >/dev/null; then
14661 +  if test -s conftest.err; then
14662 +    ac_cpp_err=$ac_c_preproc_warn_flag
14663 +  else
14664 +    ac_cpp_err=
14665 +  fi
14666  else
14667 -  echo "$ac_err" >&5
14668 -  echo "configure: failed program was:" >&5
14669 -  cat conftest.$ac_ext >&5
14670 -  rm -rf conftest*
14671 -  eval "ac_cv_header_$ac_safe=no"
14672 +  ac_cpp_err=yes
14673  fi
14674 -rm -f conftest*
14675 +if test -z "$ac_cpp_err"; then
14676 +  ac_header_preproc=yes
14677 +else
14678 +  echo "$as_me: failed program was:" >&5
14679 +  cat conftest.$ac_ext >&5
14680 +  ac_header_preproc=no
14681  fi
14682 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14683 -  echo "$ac_t""yes" 1>&6
14684 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14685 -  cat >> confdefs.h <<EOF
14686 -#define $ac_tr_hdr 1
14687 -EOF
14688
14689 +rm -f conftest.err conftest.$ac_ext
14690 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14691 +echo "${ECHO_T}$ac_header_preproc" >&6
14692 +
14693 +# So?  What about this header?
14694 +case $ac_header_compiler:$ac_header_preproc in
14695 +  yes:no )
14696 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14697 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14698 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14699 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14700 +  no:yes )
14701 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14702 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14703 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14704 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14705 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14707 +esac
14708 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14709 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14710 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14711 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14712  else
14713 -  echo "$ac_t""no" 1>&6
14714 +  eval "$as_ac_Header=$ac_header_preproc"
14715 +fi
14716 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14717 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14718 +
14719  fi
14720 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14721 +  cat >>confdefs.h <<_ACEOF
14722 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14723 +_ACEOF
14724 +
14725 +fi
14726 +
14727  done
14728  
14729  
14730 +
14731 +
14732  for ac_func in setrlimit getsid
14733  do
14734 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14735 -echo "configure:3281: checking for $ac_func" >&5
14736 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14737 -  echo $ac_n "(cached) $ac_c" 1>&6
14738 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 +echo "$as_me:$LINENO: checking for $ac_func" >&5
14740 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14741 +if eval "test \"\${$as_ac_var+set}\" = set"; then
14742 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14743  else
14744 -  cat > conftest.$ac_ext <<EOF
14745 -#line 3286 "configure"
14746 +  cat >conftest.$ac_ext <<_ACEOF
14747 +#line $LINENO "configure"
14748  #include "confdefs.h"
14749  /* System header to define __stub macros and hopefully few prototypes,
14750 -    which can conflict with char $ac_func(); below.  */
14751 +    which can conflict with char $ac_func (); below.  */
14752  #include <assert.h>
14753  /* Override any gcc2 internal prototype to avoid an error.  */
14754 +#ifdef __cplusplus
14755 +extern "C"
14756 +#endif
14757  /* We use char because int might match the return type of a gcc2
14758 -    builtin and then its argument prototype would still apply.  */
14759 -char $ac_func();
14760 -
14761 -int main() {
14762 +   builtin and then its argument prototype would still apply.  */
14763 +char $ac_func ();
14764 +char (*f) ();
14765  
14766 +#ifdef F77_DUMMY_MAIN
14767 +#  ifdef __cplusplus
14768 +     extern "C"
14769 +#  endif
14770 +   int F77_DUMMY_MAIN() { return 1; }
14771 +#endif
14772 +int
14773 +main ()
14774 +{
14775  /* The GNU C library defines this for functions which it implements
14776      to always fail with ENOSYS.  Some functions are actually named
14777      something starting with __ and the normal name is an alias.  */
14778  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14779  choke me
14780  #else
14781 -$ac_func();
14782 +f = $ac_func;
14783  #endif
14784  
14785 -; return 0; }
14786 -EOF
14787 -if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14788 -  rm -rf conftest*
14789 -  eval "ac_cv_func_$ac_func=yes"
14790 -else
14791 -  echo "configure: failed program was:" >&5
14792 -  cat conftest.$ac_ext >&5
14793 -  rm -rf conftest*
14794 -  eval "ac_cv_func_$ac_func=no"
14795 -fi
14796 -rm -f conftest*
14797 -fi
14798 +  ;
14799 +  return 0;
14800 +}
14801 +_ACEOF
14802 +rm -f conftest.$ac_objext conftest$ac_exeext
14803 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804 +  (eval $ac_link) 2>&5
14805 +  ac_status=$?
14806 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 +  (exit $ac_status); } &&
14808 +         { ac_try='test -s conftest$ac_exeext'
14809 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 +  (eval $ac_try) 2>&5
14811 +  ac_status=$?
14812 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 +  (exit $ac_status); }; }; then
14814 +  eval "$as_ac_var=yes"
14815 +else
14816 +  echo "$as_me: failed program was:" >&5
14817 +cat conftest.$ac_ext >&5
14818 +eval "$as_ac_var=no"
14819 +fi
14820 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14821 +fi
14822 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14823 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14824 +if test `eval echo '${'$as_ac_var'}'` = yes; then
14825 +  cat >>confdefs.h <<_ACEOF
14826 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14827 +_ACEOF
14828  
14829 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14830 -  echo "$ac_t""yes" 1>&6
14831 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14832 -  cat >> confdefs.h <<EOF
14833 -#define $ac_tr_func 1
14834 -EOF
14835
14836 -else
14837 -  echo "$ac_t""no" 1>&6
14838  fi
14839  done
14840  
14841  
14842 -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14843 -echo "configure:3335: checking return type of signal handlers" >&5
14844 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
14845 -  echo $ac_n "(cached) $ac_c" 1>&6
14846 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14847 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14848 +if test "${ac_cv_type_signal+set}" = set; then
14849 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14850  else
14851 -  cat > conftest.$ac_ext <<EOF
14852 -#line 3340 "configure"
14853 +  cat >conftest.$ac_ext <<_ACEOF
14854 +#line $LINENO "configure"
14855  #include "confdefs.h"
14856  #include <sys/types.h>
14857  #include <signal.h>
14858  #ifdef signal
14859 -#undef signal
14860 +# undef signal
14861  #endif
14862  #ifdef __cplusplus
14863  extern "C" void (*signal (int, void (*)(int)))(int);
14864 @@ -3351,1123 +6307,2384 @@
14865  void (*signal ()) ();
14866  #endif
14867  
14868 -int main() {
14869 +#ifdef F77_DUMMY_MAIN
14870 +#  ifdef __cplusplus
14871 +     extern "C"
14872 +#  endif
14873 +   int F77_DUMMY_MAIN() { return 1; }
14874 +#endif
14875 +int
14876 +main ()
14877 +{
14878  int i;
14879 -; return 0; }
14880 -EOF
14881 -if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14882 -  rm -rf conftest*
14883 +  ;
14884 +  return 0;
14885 +}
14886 +_ACEOF
14887 +rm -f conftest.$ac_objext
14888 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14889 +  (eval $ac_compile) 2>&5
14890 +  ac_status=$?
14891 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 +  (exit $ac_status); } &&
14893 +         { ac_try='test -s conftest.$ac_objext'
14894 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 +  (eval $ac_try) 2>&5
14896 +  ac_status=$?
14897 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 +  (exit $ac_status); }; }; then
14899    ac_cv_type_signal=void
14900  else
14901 -  echo "configure: failed program was:" >&5
14902 -  cat conftest.$ac_ext >&5
14903 -  rm -rf conftest*
14904 -  ac_cv_type_signal=int
14905 +  echo "$as_me: failed program was:" >&5
14906 +cat conftest.$ac_ext >&5
14907 +ac_cv_type_signal=int
14908  fi
14909 -rm -f conftest*
14910 +rm -f conftest.$ac_objext conftest.$ac_ext
14911  fi
14912 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14913 +echo "${ECHO_T}$ac_cv_type_signal" >&6
14914  
14915 -echo "$ac_t""$ac_cv_type_signal" 1>&6
14916 -cat >> confdefs.h <<EOF
14917 +cat >>confdefs.h <<_ACEOF
14918  #define RETSIGTYPE $ac_cv_type_signal
14919 -EOF
14920 +_ACEOF
14921  
14922  
14923  
14924 -echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
14925 -echo "configure:3377: checking for sig_atomic_t in signal.h" >&5
14926 -cat > conftest.$ac_ext <<EOF
14927 -#line 3379 "configure"
14928 +echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
14929 +echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
14930 +cat >conftest.$ac_ext <<_ACEOF
14931 +#line $LINENO "configure"
14932  #include "confdefs.h"
14933  #include <signal.h>
14934 -EOF
14935 +
14936 +_ACEOF
14937  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14938    egrep "sig_atomic_t" >/dev/null 2>&1; then
14939 -  rm -rf conftest*
14940 -  
14941 +
14942      ac_cv_type_sig_atomic_t=yes;
14943 -    cat > conftest.$ac_ext <<EOF
14944 -#line 3389 "configure"
14945 +    cat >conftest.$ac_ext <<_ACEOF
14946 +#line $LINENO "configure"
14947  #include "confdefs.h"
14948  #include <signal.h>
14949 -EOF
14950 +
14951 +_ACEOF
14952  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14953    egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
14954 -  rm -rf conftest*
14955 -  
14956 +
14957                          is_sig_atomic_t_volatile=yes;
14958 -                        echo "$ac_t""yes, volatile" 1>&6
14959 -                    
14960 +                        echo "$as_me:$LINENO: result: yes, volatile" >&5
14961 +echo "${ECHO_T}yes, volatile" >&6
14962 +
14963  else
14964 -  rm -rf conftest*
14965 -  
14966 +
14967                          is_sig_atomic_t_volatile=no;
14968 -                        echo "$ac_t""yes, non volatile" 1>&6
14969 -                    
14970 +                        echo "$as_me:$LINENO: result: yes, non volatile" >&5
14971 +echo "${ECHO_T}yes, non volatile" >&6
14972 +
14973  fi
14974  rm -f conftest*
14975  
14976 -  
14977 +
14978  else
14979 -  rm -rf conftest*
14980 -  
14981 -    echo "$ac_t""no" 1>&6
14982 -    echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14983 -echo "configure:3415: checking for sig_atomic_t" >&5
14984 -if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
14985 -  echo $ac_n "(cached) $ac_c" 1>&6
14986 +
14987 +    echo "$as_me:$LINENO: result: no" >&5
14988 +echo "${ECHO_T}no" >&6
14989 +    echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14990 +echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14991 +if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14992 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14993  else
14994 -  cat > conftest.$ac_ext <<EOF
14995 -#line 3420 "configure"
14996 +  cat >conftest.$ac_ext <<_ACEOF
14997 +#line $LINENO "configure"
14998  #include "confdefs.h"
14999 -#include <sys/types.h>
15000 -#if STDC_HEADERS
15001 -#include <stdlib.h>
15002 -#include <stddef.h>
15003 +$ac_includes_default
15004 +#ifdef F77_DUMMY_MAIN
15005 +#  ifdef __cplusplus
15006 +     extern "C"
15007 +#  endif
15008 +   int F77_DUMMY_MAIN() { return 1; }
15009  #endif
15010 -EOF
15011 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15012 -  egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15013 -  rm -rf conftest*
15014 +int
15015 +main ()
15016 +{
15017 +if ((sig_atomic_t *) 0)
15018 +  return 0;
15019 +if (sizeof (sig_atomic_t))
15020 +  return 0;
15021 +  ;
15022 +  return 0;
15023 +}
15024 +_ACEOF
15025 +rm -f conftest.$ac_objext
15026 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 +  (eval $ac_compile) 2>&5
15028 +  ac_status=$?
15029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 +  (exit $ac_status); } &&
15031 +         { ac_try='test -s conftest.$ac_objext'
15032 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 +  (eval $ac_try) 2>&5
15034 +  ac_status=$?
15035 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 +  (exit $ac_status); }; }; then
15037    ac_cv_type_sig_atomic_t=yes
15038  else
15039 -  rm -rf conftest*
15040 -  ac_cv_type_sig_atomic_t=no
15041 -fi
15042 -rm -f conftest*
15043 +  echo "$as_me: failed program was:" >&5
15044 +cat conftest.$ac_ext >&5
15045 +ac_cv_type_sig_atomic_t=no
15046 +fi
15047 +rm -f conftest.$ac_objext conftest.$ac_ext
15048 +fi
15049 +echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15050 +echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15051 +if test $ac_cv_type_sig_atomic_t = yes; then
15052 +  :
15053 +else
15054  
15055 -fi
15056 -echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
15057 -if test $ac_cv_type_sig_atomic_t = no; then
15058 -  cat >> confdefs.h <<\EOF
15059 +cat >>confdefs.h <<_ACEOF
15060  #define sig_atomic_t int
15061 -EOF
15062 +_ACEOF
15063  
15064  fi
15065  
15066      is_sig_atomic_t_volatile=no
15067 -  
15068 +
15069  fi
15070  rm -f conftest*
15071  
15072  if test $is_sig_atomic_t_volatile = 'yes'
15073  then
15074 -    cat >> confdefs.h <<\EOF
15075 +    cat >>confdefs.h <<\_ACEOF
15076  #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
15077 -EOF
15078 +_ACEOF
15079  
15080  else
15081 -    cat >> confdefs.h <<\EOF
15082 +    cat >>confdefs.h <<\_ACEOF
15083  #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
15084 -EOF
15085 +_ACEOF
15086  
15087  fi
15088  
15089 -echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
15090 -echo "configure:3466: checking for sys_siglist declaration in signal.h or unistd.h" >&5
15091 -if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
15092 -  echo $ac_n "(cached) $ac_c" 1>&6
15093 +echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
15094 +echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
15095 +if test "${ac_cv_decl_sys_siglist+set}" = set; then
15096 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15097  else
15098 -  cat > conftest.$ac_ext <<EOF
15099 -#line 3471 "configure"
15100 +  cat >conftest.$ac_ext <<_ACEOF
15101 +#line $LINENO "configure"
15102  #include "confdefs.h"
15103  #include <sys/types.h>
15104  #include <signal.h>
15105  /* NetBSD declares sys_siglist in unistd.h.  */
15106 -#ifdef HAVE_UNISTD_H
15107 -#include <unistd.h>
15108 +#if HAVE_UNISTD_H
15109 +# include <unistd.h>
15110  #endif
15111 -int main() {
15112 +
15113 +#ifdef F77_DUMMY_MAIN
15114 +#  ifdef __cplusplus
15115 +     extern "C"
15116 +#  endif
15117 +   int F77_DUMMY_MAIN() { return 1; }
15118 +#endif
15119 +int
15120 +main ()
15121 +{
15122  char *msg = *(sys_siglist + 1);
15123 -; return 0; }
15124 -EOF
15125 -if { (eval echo configure:3483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126 -  rm -rf conftest*
15127 +  ;
15128 +  return 0;
15129 +}
15130 +_ACEOF
15131 +rm -f conftest.$ac_objext
15132 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133 +  (eval $ac_compile) 2>&5
15134 +  ac_status=$?
15135 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 +  (exit $ac_status); } &&
15137 +         { ac_try='test -s conftest.$ac_objext'
15138 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 +  (eval $ac_try) 2>&5
15140 +  ac_status=$?
15141 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 +  (exit $ac_status); }; }; then
15143    ac_cv_decl_sys_siglist=yes
15144  else
15145 -  echo "configure: failed program was:" >&5
15146 -  cat conftest.$ac_ext >&5
15147 -  rm -rf conftest*
15148 -  ac_cv_decl_sys_siglist=no
15149 +  echo "$as_me: failed program was:" >&5
15150 +cat conftest.$ac_ext >&5
15151 +ac_cv_decl_sys_siglist=no
15152  fi
15153 -rm -f conftest*
15154 +rm -f conftest.$ac_objext conftest.$ac_ext
15155  fi
15156 -
15157 -echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
15158 +echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
15159 +echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
15160  if test $ac_cv_decl_sys_siglist = yes; then
15161 -  cat >> confdefs.h <<\EOF
15162 +
15163 +cat >>confdefs.h <<\_ACEOF
15164  #define SYS_SIGLIST_DECLARED 1
15165 -EOF
15166 +_ACEOF
15167  
15168  fi
15169  
15170  
15171 -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15172 -echo "configure:3505: checking whether byte ordering is bigendian" >&5
15173 -if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
15174 -  echo $ac_n "(cached) $ac_c" 1>&6
15175 +echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15176 +echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15177 +if test "${ac_cv_c_bigendian+set}" = set; then
15178 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15179  else
15180 -  ac_cv_c_bigendian=unknown
15181 -# See if sys/param.h defines the BYTE_ORDER macro.
15182 -cat > conftest.$ac_ext <<EOF
15183 -#line 3512 "configure"
15184 +  # See if sys/param.h defines the BYTE_ORDER macro.
15185 +cat >conftest.$ac_ext <<_ACEOF
15186 +#line $LINENO "configure"
15187  #include "confdefs.h"
15188  #include <sys/types.h>
15189  #include <sys/param.h>
15190 -int main() {
15191  
15192 +#ifdef F77_DUMMY_MAIN
15193 +#  ifdef __cplusplus
15194 +     extern "C"
15195 +#  endif
15196 +   int F77_DUMMY_MAIN() { return 1; }
15197 +#endif
15198 +int
15199 +main ()
15200 +{
15201  #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15202   bogus endian macros
15203  #endif
15204 -; return 0; }
15205 -EOF
15206 -if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15207 -  rm -rf conftest*
15208 +
15209 +  ;
15210 +  return 0;
15211 +}
15212 +_ACEOF
15213 +rm -f conftest.$ac_objext
15214 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15215 +  (eval $ac_compile) 2>&5
15216 +  ac_status=$?
15217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 +  (exit $ac_status); } &&
15219 +         { ac_try='test -s conftest.$ac_objext'
15220 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 +  (eval $ac_try) 2>&5
15222 +  ac_status=$?
15223 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 +  (exit $ac_status); }; }; then
15225    # It does; now see whether it defined to BIG_ENDIAN or not.
15226 -cat > conftest.$ac_ext <<EOF
15227 -#line 3527 "configure"
15228 +cat >conftest.$ac_ext <<_ACEOF
15229 +#line $LINENO "configure"
15230  #include "confdefs.h"
15231  #include <sys/types.h>
15232  #include <sys/param.h>
15233 -int main() {
15234  
15235 +#ifdef F77_DUMMY_MAIN
15236 +#  ifdef __cplusplus
15237 +     extern "C"
15238 +#  endif
15239 +   int F77_DUMMY_MAIN() { return 1; }
15240 +#endif
15241 +int
15242 +main ()
15243 +{
15244  #if BYTE_ORDER != BIG_ENDIAN
15245   not big endian
15246  #endif
15247 -; return 0; }
15248 -EOF
15249 -if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15250 -  rm -rf conftest*
15251 +
15252 +  ;
15253 +  return 0;
15254 +}
15255 +_ACEOF
15256 +rm -f conftest.$ac_objext
15257 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 +  (eval $ac_compile) 2>&5
15259 +  ac_status=$?
15260 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 +  (exit $ac_status); } &&
15262 +         { ac_try='test -s conftest.$ac_objext'
15263 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 +  (eval $ac_try) 2>&5
15265 +  ac_status=$?
15266 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 +  (exit $ac_status); }; }; then
15268    ac_cv_c_bigendian=yes
15269  else
15270 -  echo "configure: failed program was:" >&5
15271 -  cat conftest.$ac_ext >&5
15272 -  rm -rf conftest*
15273 +  echo "$as_me: failed program was:" >&5
15274 +cat conftest.$ac_ext >&5
15275 +ac_cv_c_bigendian=no
15276 +fi
15277 +rm -f conftest.$ac_objext conftest.$ac_ext
15278 +else
15279 +  echo "$as_me: failed program was:" >&5
15280 +cat conftest.$ac_ext >&5
15281 +# It does not; compile a test program.
15282 +if test "$cross_compiling" = yes; then
15283 +  # try to guess the endianness by grepping values into an object file
15284 +  ac_cv_c_bigendian=unknown
15285 +  cat >conftest.$ac_ext <<_ACEOF
15286 +#line $LINENO "configure"
15287 +#include "confdefs.h"
15288 +short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15289 +short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15290 +void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15291 +short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15292 +short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15293 +void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15294 +#ifdef F77_DUMMY_MAIN
15295 +#  ifdef __cplusplus
15296 +     extern "C"
15297 +#  endif
15298 +   int F77_DUMMY_MAIN() { return 1; }
15299 +#endif
15300 +int
15301 +main ()
15302 +{
15303 + _ascii (); _ebcdic ();
15304 +  ;
15305 +  return 0;
15306 +}
15307 +_ACEOF
15308 +rm -f conftest.$ac_objext
15309 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 +  (eval $ac_compile) 2>&5
15311 +  ac_status=$?
15312 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 +  (exit $ac_status); } &&
15314 +         { ac_try='test -s conftest.$ac_objext'
15315 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 +  (eval $ac_try) 2>&5
15317 +  ac_status=$?
15318 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 +  (exit $ac_status); }; }; then
15320 +  if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15321 +  ac_cv_c_bigendian=yes
15322 +fi
15323 +if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15324 +  if test "$ac_cv_c_bigendian" = unknown; then
15325 +    ac_cv_c_bigendian=no
15326 +  else
15327 +    # finding both strings is unlikely to happen, but who knows?
15328 +    ac_cv_c_bigendian=unknown
15329 +  fi
15330 +fi
15331 +else
15332 +  echo "$as_me: failed program was:" >&5
15333 +cat conftest.$ac_ext >&5
15334 +fi
15335 +rm -f conftest.$ac_objext conftest.$ac_ext
15336 +else
15337 +  cat >conftest.$ac_ext <<_ACEOF
15338 +#line $LINENO "configure"
15339 +#include "confdefs.h"
15340 +int
15341 +main ()
15342 +{
15343 +  /* Are we little or big endian?  From Harbison&Steele.  */
15344 +  union
15345 +  {
15346 +    long l;
15347 +    char c[sizeof (long)];
15348 +  } u;
15349 +  u.l = 1;
15350 +  exit (u.c[sizeof (long) - 1] == 1);
15351 +}
15352 +_ACEOF
15353 +rm -f conftest$ac_exeext
15354 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 +  (eval $ac_link) 2>&5
15356 +  ac_status=$?
15357 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15359 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 +  (eval $ac_try) 2>&5
15361 +  ac_status=$?
15362 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 +  (exit $ac_status); }; }; then
15364    ac_cv_c_bigendian=no
15365 +else
15366 +  echo "$as_me: program exited with status $ac_status" >&5
15367 +echo "$as_me: failed program was:" >&5
15368 +cat conftest.$ac_ext >&5
15369 +( exit $ac_status )
15370 +ac_cv_c_bigendian=yes
15371  fi
15372 -rm -f conftest*
15373 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15374 +fi
15375 +fi
15376 +rm -f conftest.$ac_objext conftest.$ac_ext
15377 +fi
15378 +echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15379 +echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15380 +case $ac_cv_c_bigendian in
15381 +  yes)
15382 +
15383 +cat >>confdefs.h <<\_ACEOF
15384 +#define WORDS_BIGENDIAN 1
15385 +_ACEOF
15386 + ;;
15387 +  no)
15388 +     ;;
15389 +  *)
15390 +    { { echo "$as_me:$LINENO: error: unknown endianness
15391 +presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15392 +echo "$as_me: error: unknown endianness
15393 +presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15394 +   { (exit 1); exit 1; }; } ;;
15395 +esac
15396 +
15397 +
15398 +
15399 +for ac_header in inttypes.h stdint.h
15400 +do
15401 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15403 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15405 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15406 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15407 +fi
15408 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15409 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15410 +else
15411 +  # Is the header compilable?
15412 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
15413 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15414 +cat >conftest.$ac_ext <<_ACEOF
15415 +#line $LINENO "configure"
15416 +#include "confdefs.h"
15417 +$ac_includes_default
15418 +#include <$ac_header>
15419 +_ACEOF
15420 +rm -f conftest.$ac_objext
15421 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 +  (eval $ac_compile) 2>&5
15423 +  ac_status=$?
15424 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 +  (exit $ac_status); } &&
15426 +         { ac_try='test -s conftest.$ac_objext'
15427 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 +  (eval $ac_try) 2>&5
15429 +  ac_status=$?
15430 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 +  (exit $ac_status); }; }; then
15432 +  ac_header_compiler=yes
15433 +else
15434 +  echo "$as_me: failed program was:" >&5
15435 +cat conftest.$ac_ext >&5
15436 +ac_header_compiler=no
15437 +fi
15438 +rm -f conftest.$ac_objext conftest.$ac_ext
15439 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15440 +echo "${ECHO_T}$ac_header_compiler" >&6
15441 +
15442 +# Is the header present?
15443 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
15444 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15445 +cat >conftest.$ac_ext <<_ACEOF
15446 +#line $LINENO "configure"
15447 +#include "confdefs.h"
15448 +#include <$ac_header>
15449 +_ACEOF
15450 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15451 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15452 +  ac_status=$?
15453 +  egrep -v '^ *\+' conftest.er1 >conftest.err
15454 +  rm -f conftest.er1
15455 +  cat conftest.err >&5
15456 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 +  (exit $ac_status); } >/dev/null; then
15458 +  if test -s conftest.err; then
15459 +    ac_cpp_err=$ac_c_preproc_warn_flag
15460 +  else
15461 +    ac_cpp_err=
15462 +  fi
15463 +else
15464 +  ac_cpp_err=yes
15465 +fi
15466 +if test -z "$ac_cpp_err"; then
15467 +  ac_header_preproc=yes
15468 +else
15469 +  echo "$as_me: failed program was:" >&5
15470 +  cat conftest.$ac_ext >&5
15471 +  ac_header_preproc=no
15472 +fi
15473 +rm -f conftest.err conftest.$ac_ext
15474 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475 +echo "${ECHO_T}$ac_header_preproc" >&6
15476 +
15477 +# So?  What about this header?
15478 +case $ac_header_compiler:$ac_header_preproc in
15479 +  yes:no )
15480 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15481 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15484 +  no:yes )
15485 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15486 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15487 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15488 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15489 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15490 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15491 +esac
15492 +echo "$as_me:$LINENO: checking for $ac_header" >&5
15493 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15494 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15495 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15496 +else
15497 +  eval "$as_ac_Header=$ac_header_preproc"
15498 +fi
15499 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15500 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15501 +
15502 +fi
15503 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 +  cat >>confdefs.h <<_ACEOF
15505 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506 +_ACEOF
15507 +
15508 +fi
15509 +
15510 +done
15511 +
15512 +echo "$as_me:$LINENO: checking for uint32_t" >&5
15513 +echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
15514 +cat >conftest.$ac_ext <<_ACEOF
15515 +#line $LINENO "configure"
15516 +#include "confdefs.h"
15517 +
15518 +#include <sys/types.h>
15519 +#if HAVE_INTTYPES_H
15520 +#include <inttypes.h>
15521 +#else
15522 +#if HAVE_STDINT_H
15523 +#include <stdint.h>
15524 +#endif
15525 +#endif
15526 +#ifdef F77_DUMMY_MAIN
15527 +#  ifdef __cplusplus
15528 +     extern "C"
15529 +#  endif
15530 +   int F77_DUMMY_MAIN() { return 1; }
15531 +#endif
15532 +int
15533 +main ()
15534 +{
15535 +if ((uint32_t *) 0)
15536 +  return 0;
15537 +if (sizeof (uint32_t))
15538 +  return 0;
15539 +
15540 +  ;
15541 +  return 0;
15542 +}
15543 +_ACEOF
15544 +rm -f conftest.$ac_objext
15545 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 +  (eval $ac_compile) 2>&5
15547 +  ac_status=$?
15548 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 +  (exit $ac_status); } &&
15550 +         { ac_try='test -s conftest.$ac_objext'
15551 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 +  (eval $ac_try) 2>&5
15553 +  ac_status=$?
15554 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 +  (exit $ac_status); }; }; then
15556 +
15557 +
15558 +cat >>confdefs.h <<\_ACEOF
15559 +#define HAVE_UINT32_T 1
15560 +_ACEOF
15561 +
15562 +    echo "$as_me:$LINENO: result: yes" >&5
15563 +echo "${ECHO_T}yes" >&6
15564 +
15565 +else
15566 +  echo "$as_me: failed program was:" >&5
15567 +cat conftest.$ac_ext >&5
15568 +echo "$as_me:$LINENO: result: no" >&5
15569 +echo "${ECHO_T}no" >&6
15570 +
15571 +fi
15572 +rm -f conftest.$ac_objext conftest.$ac_ext
15573 +echo "$as_me:$LINENO: checking for int" >&5
15574 +echo $ECHO_N "checking for int... $ECHO_C" >&6
15575 +if test "${ac_cv_type_int+set}" = set; then
15576 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15577 +else
15578 +  cat >conftest.$ac_ext <<_ACEOF
15579 +#line $LINENO "configure"
15580 +#include "confdefs.h"
15581 +$ac_includes_default
15582 +#ifdef F77_DUMMY_MAIN
15583 +#  ifdef __cplusplus
15584 +     extern "C"
15585 +#  endif
15586 +   int F77_DUMMY_MAIN() { return 1; }
15587 +#endif
15588 +int
15589 +main ()
15590 +{
15591 +if ((int *) 0)
15592 +  return 0;
15593 +if (sizeof (int))
15594 +  return 0;
15595 +  ;
15596 +  return 0;
15597 +}
15598 +_ACEOF
15599 +rm -f conftest.$ac_objext
15600 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 +  (eval $ac_compile) 2>&5
15602 +  ac_status=$?
15603 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 +  (exit $ac_status); } &&
15605 +         { ac_try='test -s conftest.$ac_objext'
15606 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 +  (eval $ac_try) 2>&5
15608 +  ac_status=$?
15609 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 +  (exit $ac_status); }; }; then
15611 +  ac_cv_type_int=yes
15612 +else
15613 +  echo "$as_me: failed program was:" >&5
15614 +cat conftest.$ac_ext >&5
15615 +ac_cv_type_int=no
15616 +fi
15617 +rm -f conftest.$ac_objext conftest.$ac_ext
15618 +fi
15619 +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15620 +echo "${ECHO_T}$ac_cv_type_int" >&6
15621 +
15622 +echo "$as_me:$LINENO: checking size of int" >&5
15623 +echo $ECHO_N "checking size of int... $ECHO_C" >&6
15624 +if test "${ac_cv_sizeof_int+set}" = set; then
15625 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15626 +else
15627 +  if test "$ac_cv_type_int" = yes; then
15628 +  # The cast to unsigned long works around a bug in the HP C Compiler
15629 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15630 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15631 +  # This bug is HP SR number 8606223364.
15632 +  if test "$cross_compiling" = yes; then
15633 +  # Depending upon the size, compute the lo and hi bounds.
15634 +cat >conftest.$ac_ext <<_ACEOF
15635 +#line $LINENO "configure"
15636 +#include "confdefs.h"
15637 +$ac_includes_default
15638 +#ifdef F77_DUMMY_MAIN
15639 +#  ifdef __cplusplus
15640 +     extern "C"
15641 +#  endif
15642 +   int F77_DUMMY_MAIN() { return 1; }
15643 +#endif
15644 +int
15645 +main ()
15646 +{
15647 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15648 +test_array [0] = 0
15649 +
15650 +  ;
15651 +  return 0;
15652 +}
15653 +_ACEOF
15654 +rm -f conftest.$ac_objext
15655 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 +  (eval $ac_compile) 2>&5
15657 +  ac_status=$?
15658 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 +  (exit $ac_status); } &&
15660 +         { ac_try='test -s conftest.$ac_objext'
15661 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 +  (eval $ac_try) 2>&5
15663 +  ac_status=$?
15664 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 +  (exit $ac_status); }; }; then
15666 +  ac_lo=0 ac_mid=0
15667 +  while :; do
15668 +    cat >conftest.$ac_ext <<_ACEOF
15669 +#line $LINENO "configure"
15670 +#include "confdefs.h"
15671 +$ac_includes_default
15672 +#ifdef F77_DUMMY_MAIN
15673 +#  ifdef __cplusplus
15674 +     extern "C"
15675 +#  endif
15676 +   int F77_DUMMY_MAIN() { return 1; }
15677 +#endif
15678 +int
15679 +main ()
15680 +{
15681 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15682 +test_array [0] = 0
15683 +
15684 +  ;
15685 +  return 0;
15686 +}
15687 +_ACEOF
15688 +rm -f conftest.$ac_objext
15689 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 +  (eval $ac_compile) 2>&5
15691 +  ac_status=$?
15692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 +  (exit $ac_status); } &&
15694 +         { ac_try='test -s conftest.$ac_objext'
15695 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 +  (eval $ac_try) 2>&5
15697 +  ac_status=$?
15698 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 +  (exit $ac_status); }; }; then
15700 +  ac_hi=$ac_mid; break
15701 +else
15702 +  echo "$as_me: failed program was:" >&5
15703 +cat conftest.$ac_ext >&5
15704 +ac_lo=`expr $ac_mid + 1`
15705 +                    if test $ac_lo -le $ac_mid; then
15706 +                      ac_lo= ac_hi=
15707 +                      break
15708 +                    fi
15709 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
15710 +fi
15711 +rm -f conftest.$ac_objext conftest.$ac_ext
15712 +  done
15713  else
15714 -  echo "configure: failed program was:" >&5
15715 -  cat conftest.$ac_ext >&5
15716 +  echo "$as_me: failed program was:" >&5
15717 +cat conftest.$ac_ext >&5
15718 +cat >conftest.$ac_ext <<_ACEOF
15719 +#line $LINENO "configure"
15720 +#include "confdefs.h"
15721 +$ac_includes_default
15722 +#ifdef F77_DUMMY_MAIN
15723 +#  ifdef __cplusplus
15724 +     extern "C"
15725 +#  endif
15726 +   int F77_DUMMY_MAIN() { return 1; }
15727 +#endif
15728 +int
15729 +main ()
15730 +{
15731 +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15732 +test_array [0] = 0
15733 +
15734 +  ;
15735 +  return 0;
15736 +}
15737 +_ACEOF
15738 +rm -f conftest.$ac_objext
15739 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15740 +  (eval $ac_compile) 2>&5
15741 +  ac_status=$?
15742 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 +  (exit $ac_status); } &&
15744 +         { ac_try='test -s conftest.$ac_objext'
15745 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 +  (eval $ac_try) 2>&5
15747 +  ac_status=$?
15748 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 +  (exit $ac_status); }; }; then
15750 +  ac_hi=-1 ac_mid=-1
15751 +  while :; do
15752 +    cat >conftest.$ac_ext <<_ACEOF
15753 +#line $LINENO "configure"
15754 +#include "confdefs.h"
15755 +$ac_includes_default
15756 +#ifdef F77_DUMMY_MAIN
15757 +#  ifdef __cplusplus
15758 +     extern "C"
15759 +#  endif
15760 +   int F77_DUMMY_MAIN() { return 1; }
15761 +#endif
15762 +int
15763 +main ()
15764 +{
15765 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15766 +test_array [0] = 0
15767 +
15768 +  ;
15769 +  return 0;
15770 +}
15771 +_ACEOF
15772 +rm -f conftest.$ac_objext
15773 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 +  (eval $ac_compile) 2>&5
15775 +  ac_status=$?
15776 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 +  (exit $ac_status); } &&
15778 +         { ac_try='test -s conftest.$ac_objext'
15779 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 +  (eval $ac_try) 2>&5
15781 +  ac_status=$?
15782 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 +  (exit $ac_status); }; }; then
15784 +  ac_lo=$ac_mid; break
15785 +else
15786 +  echo "$as_me: failed program was:" >&5
15787 +cat conftest.$ac_ext >&5
15788 +ac_hi=`expr '(' $ac_mid ')' - 1`
15789 +                       if test $ac_mid -le $ac_hi; then
15790 +                         ac_lo= ac_hi=
15791 +                         break
15792 +                       fi
15793 +                       ac_mid=`expr 2 '*' $ac_mid`
15794  fi
15795 -rm -f conftest*
15796 -if test $ac_cv_c_bigendian = unknown; then
15797 -if test "$cross_compiling" = yes; then
15798 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15799 +rm -f conftest.$ac_objext conftest.$ac_ext
15800 +  done
15801  else
15802 -  cat > conftest.$ac_ext <<EOF
15803 -#line 3558 "configure"
15804 -#include "confdefs.h"
15805 -main () {
15806 -  /* Are we little or big endian?  From Harbison&Steele.  */
15807 -  union
15808 -  {
15809 -    long l;
15810 -    char c[sizeof (long)];
15811 -  } u;
15812 -  u.l = 1;
15813 -  exit (u.c[sizeof (long) - 1] == 1);
15814 +  echo "$as_me: failed program was:" >&5
15815 +cat conftest.$ac_ext >&5
15816 +ac_lo= ac_hi=
15817 +fi
15818 +rm -f conftest.$ac_objext conftest.$ac_ext
15819 +fi
15820 +rm -f conftest.$ac_objext conftest.$ac_ext
15821 +# Binary search between lo and hi bounds.
15822 +while test "x$ac_lo" != "x$ac_hi"; do
15823 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15824 +  cat >conftest.$ac_ext <<_ACEOF
15825 +#line $LINENO "configure"
15826 +#include "confdefs.h"
15827 +$ac_includes_default
15828 +#ifdef F77_DUMMY_MAIN
15829 +#  ifdef __cplusplus
15830 +     extern "C"
15831 +#  endif
15832 +   int F77_DUMMY_MAIN() { return 1; }
15833 +#endif
15834 +int
15835 +main ()
15836 +{
15837 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15838 +test_array [0] = 0
15839 +
15840 +  ;
15841 +  return 0;
15842  }
15843 -EOF
15844 -if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15845 -then
15846 -  ac_cv_c_bigendian=no
15847 +_ACEOF
15848 +rm -f conftest.$ac_objext
15849 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 +  (eval $ac_compile) 2>&5
15851 +  ac_status=$?
15852 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 +  (exit $ac_status); } &&
15854 +         { ac_try='test -s conftest.$ac_objext'
15855 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 +  (eval $ac_try) 2>&5
15857 +  ac_status=$?
15858 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 +  (exit $ac_status); }; }; then
15860 +  ac_hi=$ac_mid
15861 +else
15862 +  echo "$as_me: failed program was:" >&5
15863 +cat conftest.$ac_ext >&5
15864 +ac_lo=`expr '(' $ac_mid ')' + 1`
15865 +fi
15866 +rm -f conftest.$ac_objext conftest.$ac_ext
15867 +done
15868 +case $ac_lo in
15869 +?*) ac_cv_sizeof_int=$ac_lo;;
15870 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
15871 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
15872 +   { (exit 1); exit 1; }; } ;;
15873 +esac
15874  else
15875 -  echo "configure: failed program was:" >&5
15876 -  cat conftest.$ac_ext >&5
15877 -  rm -fr conftest*
15878 -  ac_cv_c_bigendian=yes
15879 -fi
15880 -rm -fr conftest*
15881 -fi
15882 +  if test "$cross_compiling" = yes; then
15883 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15884 +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15885 +   { (exit 1); exit 1; }; }
15886 +else
15887 +  cat >conftest.$ac_ext <<_ACEOF
15888 +#line $LINENO "configure"
15889 +#include "confdefs.h"
15890 +$ac_includes_default
15891 +long longval () { return (long) (sizeof (int)); }
15892 +unsigned long ulongval () { return (long) (sizeof (int)); }
15893 +#include <stdio.h>
15894 +#include <stdlib.h>
15895 +#ifdef F77_DUMMY_MAIN
15896 +#  ifdef __cplusplus
15897 +     extern "C"
15898 +#  endif
15899 +   int F77_DUMMY_MAIN() { return 1; }
15900 +#endif
15901 +int
15902 +main ()
15903 +{
15904 +
15905 +  FILE *f = fopen ("conftest.val", "w");
15906 +  if (! f)
15907 +    exit (1);
15908 +  if (((long) (sizeof (int))) < 0)
15909 +    {
15910 +      long i = longval ();
15911 +      if (i != ((long) (sizeof (int))))
15912 +       exit (1);
15913 +      fprintf (f, "%ld\n", i);
15914 +    }
15915 +  else
15916 +    {
15917 +      unsigned long i = ulongval ();
15918 +      if (i != ((long) (sizeof (int))))
15919 +       exit (1);
15920 +      fprintf (f, "%lu\n", i);
15921 +    }
15922 +  exit (ferror (f) || fclose (f) != 0);
15923  
15924 +  ;
15925 +  return 0;
15926 +}
15927 +_ACEOF
15928 +rm -f conftest$ac_exeext
15929 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930 +  (eval $ac_link) 2>&5
15931 +  ac_status=$?
15932 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15934 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 +  (eval $ac_try) 2>&5
15936 +  ac_status=$?
15937 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 +  (exit $ac_status); }; }; then
15939 +  ac_cv_sizeof_int=`cat conftest.val`
15940 +else
15941 +  echo "$as_me: program exited with status $ac_status" >&5
15942 +echo "$as_me: failed program was:" >&5
15943 +cat conftest.$ac_ext >&5
15944 +( exit $ac_status )
15945 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
15946 +echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
15947 +   { (exit 1); exit 1; }; }
15948  fi
15949 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15950  fi
15951 -
15952 -echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15953 -if test $ac_cv_c_bigendian = yes; then
15954 -  cat >> confdefs.h <<\EOF
15955 -#define WORDS_BIGENDIAN 1
15956 -EOF
15957 -
15958  fi
15959 -
15960 -for ac_hdr in inttypes.h stdint.h
15961 -do
15962 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15963 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15964 -echo "configure:3598: checking for $ac_hdr" >&5
15965 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15966 -  echo $ac_n "(cached) $ac_c" 1>&6
15967 +rm -f conftest.val
15968  else
15969 -  cat > conftest.$ac_ext <<EOF
15970 -#line 3603 "configure"
15971 -#include "confdefs.h"
15972 -#include <$ac_hdr>
15973 -EOF
15974 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15975 -{ (eval echo configure:3608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15976 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15977 -if test -z "$ac_err"; then
15978 -  rm -rf conftest*
15979 -  eval "ac_cv_header_$ac_safe=yes"
15980 -else
15981 -  echo "$ac_err" >&5
15982 -  echo "configure: failed program was:" >&5
15983 -  cat conftest.$ac_ext >&5
15984 -  rm -rf conftest*
15985 -  eval "ac_cv_header_$ac_safe=no"
15986 -fi
15987 -rm -f conftest*
15988 +  ac_cv_sizeof_int=0
15989  fi
15990 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15991 -  echo "$ac_t""yes" 1>&6
15992 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15993 -  cat >> confdefs.h <<EOF
15994 -#define $ac_tr_hdr 1
15995 -EOF
15996
15997 -else
15998 -  echo "$ac_t""no" 1>&6
15999  fi
16000 -done
16001 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16002 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16003 +cat >>confdefs.h <<_ACEOF
16004 +#define SIZEOF_INT $ac_cv_sizeof_int
16005 +_ACEOF
16006  
16007 -echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
16008 -echo "configure:3635: checking for uint32_t" >&5
16009 -cat > conftest.$ac_ext <<EOF
16010 -#line 3637 "configure"
16011 -#include "confdefs.h"
16012  
16013 -#include <sys/types.h>
16014 -#if HAVE_INTTYPES_H
16015 -#include <inttypes.h>
16016 -#else
16017 -#if HAVE_STDINT_H
16018 -#include <stdint.h>
16019 -#endif
16020 +echo "$as_me:$LINENO: checking for long" >&5
16021 +echo $ECHO_N "checking for long... $ECHO_C" >&6
16022 +if test "${ac_cv_type_long+set}" = set; then
16023 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16024 +else
16025 +  cat >conftest.$ac_ext <<_ACEOF
16026 +#line $LINENO "configure"
16027 +#include "confdefs.h"
16028 +$ac_includes_default
16029 +#ifdef F77_DUMMY_MAIN
16030 +#  ifdef __cplusplus
16031 +     extern "C"
16032 +#  endif
16033 +   int F77_DUMMY_MAIN() { return 1; }
16034  #endif
16035 -int main() {
16036 -if ((uint32_t *) 0)
16037 +int
16038 +main ()
16039 +{
16040 +if ((long *) 0)
16041    return 0;
16042 -if (sizeof (uint32_t))
16043 +if (sizeof (long))
16044    return 0;
16045 +  ;
16046 +  return 0;
16047 +}
16048 +_ACEOF
16049 +rm -f conftest.$ac_objext
16050 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 +  (eval $ac_compile) 2>&5
16052 +  ac_status=$?
16053 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 +  (exit $ac_status); } &&
16055 +         { ac_try='test -s conftest.$ac_objext'
16056 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 +  (eval $ac_try) 2>&5
16058 +  ac_status=$?
16059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 +  (exit $ac_status); }; }; then
16061 +  ac_cv_type_long=yes
16062 +else
16063 +  echo "$as_me: failed program was:" >&5
16064 +cat conftest.$ac_ext >&5
16065 +ac_cv_type_long=no
16066 +fi
16067 +rm -f conftest.$ac_objext conftest.$ac_ext
16068 +fi
16069 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16070 +echo "${ECHO_T}$ac_cv_type_long" >&6
16071 +
16072 +echo "$as_me:$LINENO: checking size of long" >&5
16073 +echo $ECHO_N "checking size of long... $ECHO_C" >&6
16074 +if test "${ac_cv_sizeof_long+set}" = set; then
16075 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16076 +else
16077 +  if test "$ac_cv_type_long" = yes; then
16078 +  # The cast to unsigned long works around a bug in the HP C Compiler
16079 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16080 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16081 +  # This bug is HP SR number 8606223364.
16082 +  if test "$cross_compiling" = yes; then
16083 +  # Depending upon the size, compute the lo and hi bounds.
16084 +cat >conftest.$ac_ext <<_ACEOF
16085 +#line $LINENO "configure"
16086 +#include "confdefs.h"
16087 +$ac_includes_default
16088 +#ifdef F77_DUMMY_MAIN
16089 +#  ifdef __cplusplus
16090 +     extern "C"
16091 +#  endif
16092 +   int F77_DUMMY_MAIN() { return 1; }
16093 +#endif
16094 +int
16095 +main ()
16096 +{
16097 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16098 +test_array [0] = 0
16099  
16100 -; return 0; }
16101 -EOF
16102 -if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16103 -  rm -rf conftest*
16104 -  
16105 -    cat >> confdefs.h <<\EOF
16106 -#define HAVE_UINT32_T 1
16107 -EOF
16108 -
16109 -    echo "$ac_t""yes" 1>&6
16110 -  
16111 -else
16112 -  echo "configure: failed program was:" >&5
16113 -  cat conftest.$ac_ext >&5
16114 -  rm -rf conftest*
16115 -  echo "$ac_t""no" 1>&6
16116 +  ;
16117 +  return 0;
16118 +}
16119 +_ACEOF
16120 +rm -f conftest.$ac_objext
16121 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16122 +  (eval $ac_compile) 2>&5
16123 +  ac_status=$?
16124 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 +  (exit $ac_status); } &&
16126 +         { ac_try='test -s conftest.$ac_objext'
16127 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 +  (eval $ac_try) 2>&5
16129 +  ac_status=$?
16130 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 +  (exit $ac_status); }; }; then
16132 +  ac_lo=0 ac_mid=0
16133 +  while :; do
16134 +    cat >conftest.$ac_ext <<_ACEOF
16135 +#line $LINENO "configure"
16136 +#include "confdefs.h"
16137 +$ac_includes_default
16138 +#ifdef F77_DUMMY_MAIN
16139 +#  ifdef __cplusplus
16140 +     extern "C"
16141 +#  endif
16142 +   int F77_DUMMY_MAIN() { return 1; }
16143 +#endif
16144 +int
16145 +main ()
16146 +{
16147 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16148 +test_array [0] = 0
16149  
16150 +  ;
16151 +  return 0;
16152 +}
16153 +_ACEOF
16154 +rm -f conftest.$ac_objext
16155 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16156 +  (eval $ac_compile) 2>&5
16157 +  ac_status=$?
16158 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 +  (exit $ac_status); } &&
16160 +         { ac_try='test -s conftest.$ac_objext'
16161 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 +  (eval $ac_try) 2>&5
16163 +  ac_status=$?
16164 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 +  (exit $ac_status); }; }; then
16166 +  ac_hi=$ac_mid; break
16167 +else
16168 +  echo "$as_me: failed program was:" >&5
16169 +cat conftest.$ac_ext >&5
16170 +ac_lo=`expr $ac_mid + 1`
16171 +                    if test $ac_lo -le $ac_mid; then
16172 +                      ac_lo= ac_hi=
16173 +                      break
16174 +                    fi
16175 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
16176  fi
16177 -rm -f conftest*
16178 -echo $ac_n "checking size of int""... $ac_c" 1>&6
16179 -echo "configure:3674: checking size of int" >&5
16180 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
16181 -  echo $ac_n "(cached) $ac_c" 1>&6
16182 -else
16183 -  if test "$cross_compiling" = yes; then
16184 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16185 +rm -f conftest.$ac_objext conftest.$ac_ext
16186 +  done
16187  else
16188 -  cat > conftest.$ac_ext <<EOF
16189 -#line 3682 "configure"
16190 -#include "confdefs.h"
16191 -#include <stdio.h>
16192 -#include <sys/types.h>
16193 -main()
16194 +  echo "$as_me: failed program was:" >&5
16195 +cat conftest.$ac_ext >&5
16196 +cat >conftest.$ac_ext <<_ACEOF
16197 +#line $LINENO "configure"
16198 +#include "confdefs.h"
16199 +$ac_includes_default
16200 +#ifdef F77_DUMMY_MAIN
16201 +#  ifdef __cplusplus
16202 +     extern "C"
16203 +#  endif
16204 +   int F77_DUMMY_MAIN() { return 1; }
16205 +#endif
16206 +int
16207 +main ()
16208  {
16209 -  FILE *f=fopen("conftestval", "w");
16210 -  if (!f) exit(1);
16211 -  fprintf(f, "%d\n", sizeof(int));
16212 -  exit(0);
16213 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16214 +test_array [0] = 0
16215 +
16216 +  ;
16217 +  return 0;
16218  }
16219 -EOF
16220 -if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16221 -then
16222 -  ac_cv_sizeof_int=`cat conftestval`
16223 -else
16224 -  echo "configure: failed program was:" >&5
16225 -  cat conftest.$ac_ext >&5
16226 -  rm -fr conftest*
16227 -  ac_cv_sizeof_int=0
16228 -fi
16229 -rm -fr conftest*
16230 -fi
16231 +_ACEOF
16232 +rm -f conftest.$ac_objext
16233 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 +  (eval $ac_compile) 2>&5
16235 +  ac_status=$?
16236 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 +  (exit $ac_status); } &&
16238 +         { ac_try='test -s conftest.$ac_objext'
16239 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 +  (eval $ac_try) 2>&5
16241 +  ac_status=$?
16242 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 +  (exit $ac_status); }; }; then
16244 +  ac_hi=-1 ac_mid=-1
16245 +  while :; do
16246 +    cat >conftest.$ac_ext <<_ACEOF
16247 +#line $LINENO "configure"
16248 +#include "confdefs.h"
16249 +$ac_includes_default
16250 +#ifdef F77_DUMMY_MAIN
16251 +#  ifdef __cplusplus
16252 +     extern "C"
16253 +#  endif
16254 +   int F77_DUMMY_MAIN() { return 1; }
16255 +#endif
16256 +int
16257 +main ()
16258 +{
16259 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16260 +test_array [0] = 0
16261  
16262 +  ;
16263 +  return 0;
16264 +}
16265 +_ACEOF
16266 +rm -f conftest.$ac_objext
16267 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 +  (eval $ac_compile) 2>&5
16269 +  ac_status=$?
16270 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 +  (exit $ac_status); } &&
16272 +         { ac_try='test -s conftest.$ac_objext'
16273 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 +  (eval $ac_try) 2>&5
16275 +  ac_status=$?
16276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 +  (exit $ac_status); }; }; then
16278 +  ac_lo=$ac_mid; break
16279 +else
16280 +  echo "$as_me: failed program was:" >&5
16281 +cat conftest.$ac_ext >&5
16282 +ac_hi=`expr '(' $ac_mid ')' - 1`
16283 +                       if test $ac_mid -le $ac_hi; then
16284 +                         ac_lo= ac_hi=
16285 +                         break
16286 +                       fi
16287 +                       ac_mid=`expr 2 '*' $ac_mid`
16288  fi
16289 -echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16290 -cat >> confdefs.h <<EOF
16291 -#define SIZEOF_INT $ac_cv_sizeof_int
16292 -EOF
16293 -
16294 +rm -f conftest.$ac_objext conftest.$ac_ext
16295 +  done
16296 +else
16297 +  echo "$as_me: failed program was:" >&5
16298 +cat conftest.$ac_ext >&5
16299 +ac_lo= ac_hi=
16300 +fi
16301 +rm -f conftest.$ac_objext conftest.$ac_ext
16302 +fi
16303 +rm -f conftest.$ac_objext conftest.$ac_ext
16304 +# Binary search between lo and hi bounds.
16305 +while test "x$ac_lo" != "x$ac_hi"; do
16306 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16307 +  cat >conftest.$ac_ext <<_ACEOF
16308 +#line $LINENO "configure"
16309 +#include "confdefs.h"
16310 +$ac_includes_default
16311 +#ifdef F77_DUMMY_MAIN
16312 +#  ifdef __cplusplus
16313 +     extern "C"
16314 +#  endif
16315 +   int F77_DUMMY_MAIN() { return 1; }
16316 +#endif
16317 +int
16318 +main ()
16319 +{
16320 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16321 +test_array [0] = 0
16322  
16323 -echo $ac_n "checking size of long""... $ac_c" 1>&6
16324 -echo "configure:3714: checking size of long" >&5
16325 -if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
16326 -  echo $ac_n "(cached) $ac_c" 1>&6
16327 +  ;
16328 +  return 0;
16329 +}
16330 +_ACEOF
16331 +rm -f conftest.$ac_objext
16332 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16333 +  (eval $ac_compile) 2>&5
16334 +  ac_status=$?
16335 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 +  (exit $ac_status); } &&
16337 +         { ac_try='test -s conftest.$ac_objext'
16338 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 +  (eval $ac_try) 2>&5
16340 +  ac_status=$?
16341 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 +  (exit $ac_status); }; }; then
16343 +  ac_hi=$ac_mid
16344 +else
16345 +  echo "$as_me: failed program was:" >&5
16346 +cat conftest.$ac_ext >&5
16347 +ac_lo=`expr '(' $ac_mid ')' + 1`
16348 +fi
16349 +rm -f conftest.$ac_objext conftest.$ac_ext
16350 +done
16351 +case $ac_lo in
16352 +?*) ac_cv_sizeof_long=$ac_lo;;
16353 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16354 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16355 +   { (exit 1); exit 1; }; } ;;
16356 +esac
16357  else
16358    if test "$cross_compiling" = yes; then
16359 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16360 -else
16361 -  cat > conftest.$ac_ext <<EOF
16362 -#line 3722 "configure"
16363 -#include "confdefs.h"
16364 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16365 +echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16366 +   { (exit 1); exit 1; }; }
16367 +else
16368 +  cat >conftest.$ac_ext <<_ACEOF
16369 +#line $LINENO "configure"
16370 +#include "confdefs.h"
16371 +$ac_includes_default
16372 +long longval () { return (long) (sizeof (long)); }
16373 +unsigned long ulongval () { return (long) (sizeof (long)); }
16374  #include <stdio.h>
16375 -#include <sys/types.h>
16376 -main()
16377 +#include <stdlib.h>
16378 +#ifdef F77_DUMMY_MAIN
16379 +#  ifdef __cplusplus
16380 +     extern "C"
16381 +#  endif
16382 +   int F77_DUMMY_MAIN() { return 1; }
16383 +#endif
16384 +int
16385 +main ()
16386  {
16387 -  FILE *f=fopen("conftestval", "w");
16388 -  if (!f) exit(1);
16389 -  fprintf(f, "%d\n", sizeof(long));
16390 -  exit(0);
16391 +
16392 +  FILE *f = fopen ("conftest.val", "w");
16393 +  if (! f)
16394 +    exit (1);
16395 +  if (((long) (sizeof (long))) < 0)
16396 +    {
16397 +      long i = longval ();
16398 +      if (i != ((long) (sizeof (long))))
16399 +       exit (1);
16400 +      fprintf (f, "%ld\n", i);
16401 +    }
16402 +  else
16403 +    {
16404 +      unsigned long i = ulongval ();
16405 +      if (i != ((long) (sizeof (long))))
16406 +       exit (1);
16407 +      fprintf (f, "%lu\n", i);
16408 +    }
16409 +  exit (ferror (f) || fclose (f) != 0);
16410 +
16411 +  ;
16412 +  return 0;
16413  }
16414 -EOF
16415 -if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16416 -then
16417 -  ac_cv_sizeof_long=`cat conftestval`
16418 +_ACEOF
16419 +rm -f conftest$ac_exeext
16420 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16421 +  (eval $ac_link) 2>&5
16422 +  ac_status=$?
16423 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16425 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 +  (eval $ac_try) 2>&5
16427 +  ac_status=$?
16428 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 +  (exit $ac_status); }; }; then
16430 +  ac_cv_sizeof_long=`cat conftest.val`
16431 +else
16432 +  echo "$as_me: program exited with status $ac_status" >&5
16433 +echo "$as_me: failed program was:" >&5
16434 +cat conftest.$ac_ext >&5
16435 +( exit $ac_status )
16436 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
16437 +echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
16438 +   { (exit 1); exit 1; }; }
16439 +fi
16440 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16441 +fi
16442 +fi
16443 +rm -f conftest.val
16444  else
16445 -  echo "configure: failed program was:" >&5
16446 -  cat conftest.$ac_ext >&5
16447 -  rm -fr conftest*
16448    ac_cv_sizeof_long=0
16449  fi
16450 -rm -fr conftest*
16451  fi
16452 -
16453 -fi
16454 -echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16455 -cat >> confdefs.h <<EOF
16456 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16457 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16458 +cat >>confdefs.h <<_ACEOF
16459  #define SIZEOF_LONG $ac_cv_sizeof_long
16460 -EOF
16461 +_ACEOF
16462  
16463  
16464  
16465 -echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16466 -echo "configure:3755: checking for pid_t" >&5
16467 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16468 -  echo $ac_n "(cached) $ac_c" 1>&6
16469 +echo "$as_me:$LINENO: checking for pid_t" >&5
16470 +echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16471 +if test "${ac_cv_type_pid_t+set}" = set; then
16472 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16473  else
16474 -  cat > conftest.$ac_ext <<EOF
16475 -#line 3760 "configure"
16476 +  cat >conftest.$ac_ext <<_ACEOF
16477 +#line $LINENO "configure"
16478  #include "confdefs.h"
16479 -#include <sys/types.h>
16480 -#if STDC_HEADERS
16481 -#include <stdlib.h>
16482 -#include <stddef.h>
16483 +$ac_includes_default
16484 +#ifdef F77_DUMMY_MAIN
16485 +#  ifdef __cplusplus
16486 +     extern "C"
16487 +#  endif
16488 +   int F77_DUMMY_MAIN() { return 1; }
16489  #endif
16490 -EOF
16491 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16492 -  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16493 -  rm -rf conftest*
16494 +int
16495 +main ()
16496 +{
16497 +if ((pid_t *) 0)
16498 +  return 0;
16499 +if (sizeof (pid_t))
16500 +  return 0;
16501 +  ;
16502 +  return 0;
16503 +}
16504 +_ACEOF
16505 +rm -f conftest.$ac_objext
16506 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16507 +  (eval $ac_compile) 2>&5
16508 +  ac_status=$?
16509 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 +  (exit $ac_status); } &&
16511 +         { ac_try='test -s conftest.$ac_objext'
16512 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 +  (eval $ac_try) 2>&5
16514 +  ac_status=$?
16515 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 +  (exit $ac_status); }; }; then
16517    ac_cv_type_pid_t=yes
16518  else
16519 -  rm -rf conftest*
16520 -  ac_cv_type_pid_t=no
16521 -fi
16522 -rm -f conftest*
16523 +  echo "$as_me: failed program was:" >&5
16524 +cat conftest.$ac_ext >&5
16525 +ac_cv_type_pid_t=no
16526 +fi
16527 +rm -f conftest.$ac_objext conftest.$ac_ext
16528 +fi
16529 +echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16530 +echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16531 +if test $ac_cv_type_pid_t = yes; then
16532 +  :
16533 +else
16534  
16535 -fi
16536 -echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16537 -if test $ac_cv_type_pid_t = no; then
16538 -  cat >> confdefs.h <<\EOF
16539 +cat >>confdefs.h <<_ACEOF
16540  #define pid_t int
16541 -EOF
16542 +_ACEOF
16543  
16544  fi
16545  
16546  
16547 +
16548 +
16549 +
16550 +
16551 +
16552  for ac_func in fgetpos memmove setegid srand48 strerror
16553  do
16554 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16555 -echo "configure:3791: checking for $ac_func" >&5
16556 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16557 -  echo $ac_n "(cached) $ac_c" 1>&6
16558 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 +echo "$as_me:$LINENO: checking for $ac_func" >&5
16560 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16561 +if eval "test \"\${$as_ac_var+set}\" = set"; then
16562 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16563  else
16564 -  cat > conftest.$ac_ext <<EOF
16565 -#line 3796 "configure"
16566 +  cat >conftest.$ac_ext <<_ACEOF
16567 +#line $LINENO "configure"
16568  #include "confdefs.h"
16569  /* System header to define __stub macros and hopefully few prototypes,
16570 -    which can conflict with char $ac_func(); below.  */
16571 +    which can conflict with char $ac_func (); below.  */
16572  #include <assert.h>
16573  /* Override any gcc2 internal prototype to avoid an error.  */
16574 +#ifdef __cplusplus
16575 +extern "C"
16576 +#endif
16577  /* We use char because int might match the return type of a gcc2
16578 -    builtin and then its argument prototype would still apply.  */
16579 -char $ac_func();
16580 -
16581 -int main() {
16582 +   builtin and then its argument prototype would still apply.  */
16583 +char $ac_func ();
16584 +char (*f) ();
16585  
16586 +#ifdef F77_DUMMY_MAIN
16587 +#  ifdef __cplusplus
16588 +     extern "C"
16589 +#  endif
16590 +   int F77_DUMMY_MAIN() { return 1; }
16591 +#endif
16592 +int
16593 +main ()
16594 +{
16595  /* The GNU C library defines this for functions which it implements
16596      to always fail with ENOSYS.  Some functions are actually named
16597      something starting with __ and the normal name is an alias.  */
16598  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16599  choke me
16600  #else
16601 -$ac_func();
16602 +f = $ac_func;
16603  #endif
16604  
16605 -; return 0; }
16606 -EOF
16607 -if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16608 -  rm -rf conftest*
16609 -  eval "ac_cv_func_$ac_func=yes"
16610 -else
16611 -  echo "configure: failed program was:" >&5
16612 -  cat conftest.$ac_ext >&5
16613 -  rm -rf conftest*
16614 -  eval "ac_cv_func_$ac_func=no"
16615 -fi
16616 -rm -f conftest*
16617 -fi
16618 +  ;
16619 +  return 0;
16620 +}
16621 +_ACEOF
16622 +rm -f conftest.$ac_objext conftest$ac_exeext
16623 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 +  (eval $ac_link) 2>&5
16625 +  ac_status=$?
16626 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 +  (exit $ac_status); } &&
16628 +         { ac_try='test -s conftest$ac_exeext'
16629 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 +  (eval $ac_try) 2>&5
16631 +  ac_status=$?
16632 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 +  (exit $ac_status); }; }; then
16634 +  eval "$as_ac_var=yes"
16635 +else
16636 +  echo "$as_me: failed program was:" >&5
16637 +cat conftest.$ac_ext >&5
16638 +eval "$as_ac_var=no"
16639 +fi
16640 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16641 +fi
16642 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16643 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16644 +if test `eval echo '${'$as_ac_var'}'` = yes; then
16645 +  cat >>confdefs.h <<_ACEOF
16646 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16647 +_ACEOF
16648  
16649 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16650 -  echo "$ac_t""yes" 1>&6
16651 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16652 -  cat >> confdefs.h <<EOF
16653 -#define $ac_tr_func 1
16654 -EOF
16655
16656 -else
16657 -  echo "$ac_t""no" 1>&6
16658  fi
16659  done
16660  
16661  
16662 +
16663 +
16664  for ac_func in strcasecmp strdup
16665  do
16666 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16667 -echo "configure:3847: checking for $ac_func" >&5
16668 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16669 -  echo $ac_n "(cached) $ac_c" 1>&6
16670 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16671 +echo "$as_me:$LINENO: checking for $ac_func" >&5
16672 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16673 +if eval "test \"\${$as_ac_var+set}\" = set"; then
16674 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16675  else
16676 -  cat > conftest.$ac_ext <<EOF
16677 -#line 3852 "configure"
16678 +  cat >conftest.$ac_ext <<_ACEOF
16679 +#line $LINENO "configure"
16680  #include "confdefs.h"
16681  /* System header to define __stub macros and hopefully few prototypes,
16682 -    which can conflict with char $ac_func(); below.  */
16683 +    which can conflict with char $ac_func (); below.  */
16684  #include <assert.h>
16685  /* Override any gcc2 internal prototype to avoid an error.  */
16686 +#ifdef __cplusplus
16687 +extern "C"
16688 +#endif
16689  /* We use char because int might match the return type of a gcc2
16690 -    builtin and then its argument prototype would still apply.  */
16691 -char $ac_func();
16692 -
16693 -int main() {
16694 +   builtin and then its argument prototype would still apply.  */
16695 +char $ac_func ();
16696 +char (*f) ();
16697  
16698 +#ifdef F77_DUMMY_MAIN
16699 +#  ifdef __cplusplus
16700 +     extern "C"
16701 +#  endif
16702 +   int F77_DUMMY_MAIN() { return 1; }
16703 +#endif
16704 +int
16705 +main ()
16706 +{
16707  /* The GNU C library defines this for functions which it implements
16708      to always fail with ENOSYS.  Some functions are actually named
16709      something starting with __ and the normal name is an alias.  */
16710  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711  choke me
16712  #else
16713 -$ac_func();
16714 +f = $ac_func;
16715  #endif
16716  
16717 -; return 0; }
16718 -EOF
16719 -if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16720 -  rm -rf conftest*
16721 -  eval "ac_cv_func_$ac_func=yes"
16722 +  ;
16723 +  return 0;
16724 +}
16725 +_ACEOF
16726 +rm -f conftest.$ac_objext conftest$ac_exeext
16727 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 +  (eval $ac_link) 2>&5
16729 +  ac_status=$?
16730 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 +  (exit $ac_status); } &&
16732 +         { ac_try='test -s conftest$ac_exeext'
16733 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 +  (eval $ac_try) 2>&5
16735 +  ac_status=$?
16736 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 +  (exit $ac_status); }; }; then
16738 +  eval "$as_ac_var=yes"
16739  else
16740 -  echo "configure: failed program was:" >&5
16741 -  cat conftest.$ac_ext >&5
16742 -  rm -rf conftest*
16743 -  eval "ac_cv_func_$ac_func=no"
16744 +  echo "$as_me: failed program was:" >&5
16745 +cat conftest.$ac_ext >&5
16746 +eval "$as_ac_var=no"
16747  fi
16748 -rm -f conftest*
16749 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16750  fi
16751 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16752 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16753 +if test `eval echo '${'$as_ac_var'}'` = yes; then
16754 +  cat >>confdefs.h <<_ACEOF
16755 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16756 +_ACEOF
16757  
16758 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16759 -  echo "$ac_t""yes" 1>&6
16760 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16761 -  cat >> confdefs.h <<EOF
16762 -#define $ac_tr_func 1
16763 -EOF
16764
16765  else
16766 -  echo "$ac_t""no" 1>&6
16767 -LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16768 +  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16769  fi
16770  done
16771  
16772  
16773  
16774 -echo $ac_n "checking for getopt""... $ac_c" 1>&6
16775 -echo "configure:3903: checking for getopt" >&5
16776 -if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
16777 -  echo $ac_n "(cached) $ac_c" 1>&6
16778 +echo "$as_me:$LINENO: checking for getopt" >&5
16779 +echo $ECHO_N "checking for getopt... $ECHO_C" >&6
16780 +if test "${ac_cv_func_getopt+set}" = set; then
16781 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16782  else
16783 -  cat > conftest.$ac_ext <<EOF
16784 -#line 3908 "configure"
16785 +  cat >conftest.$ac_ext <<_ACEOF
16786 +#line $LINENO "configure"
16787  #include "confdefs.h"
16788  /* System header to define __stub macros and hopefully few prototypes,
16789 -    which can conflict with char getopt(); below.  */
16790 +    which can conflict with char getopt (); below.  */
16791  #include <assert.h>
16792  /* Override any gcc2 internal prototype to avoid an error.  */
16793 +#ifdef __cplusplus
16794 +extern "C"
16795 +#endif
16796  /* We use char because int might match the return type of a gcc2
16797 -    builtin and then its argument prototype would still apply.  */
16798 -char getopt();
16799 -
16800 -int main() {
16801 +   builtin and then its argument prototype would still apply.  */
16802 +char getopt ();
16803 +char (*f) ();
16804  
16805 +#ifdef F77_DUMMY_MAIN
16806 +#  ifdef __cplusplus
16807 +     extern "C"
16808 +#  endif
16809 +   int F77_DUMMY_MAIN() { return 1; }
16810 +#endif
16811 +int
16812 +main ()
16813 +{
16814  /* The GNU C library defines this for functions which it implements
16815      to always fail with ENOSYS.  Some functions are actually named
16816      something starting with __ and the normal name is an alias.  */
16817  #if defined (__stub_getopt) || defined (__stub___getopt)
16818  choke me
16819  #else
16820 -getopt();
16821 +f = getopt;
16822  #endif
16823  
16824 -; return 0; }
16825 -EOF
16826 -if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16827 -  rm -rf conftest*
16828 -  eval "ac_cv_func_getopt=yes"
16829 -else
16830 -  echo "configure: failed program was:" >&5
16831 -  cat conftest.$ac_ext >&5
16832 -  rm -rf conftest*
16833 -  eval "ac_cv_func_getopt=no"
16834 -fi
16835 -rm -f conftest*
16836 +  ;
16837 +  return 0;
16838 +}
16839 +_ACEOF
16840 +rm -f conftest.$ac_objext conftest$ac_exeext
16841 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16842 +  (eval $ac_link) 2>&5
16843 +  ac_status=$?
16844 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 +  (exit $ac_status); } &&
16846 +         { ac_try='test -s conftest$ac_exeext'
16847 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 +  (eval $ac_try) 2>&5
16849 +  ac_status=$?
16850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 +  (exit $ac_status); }; }; then
16852 +  ac_cv_func_getopt=yes
16853 +else
16854 +  echo "$as_me: failed program was:" >&5
16855 +cat conftest.$ac_ext >&5
16856 +ac_cv_func_getopt=no
16857  fi
16858 -
16859 -if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
16860 -  echo "$ac_t""yes" 1>&6
16861 -  :
16862 -else
16863 -  echo "$ac_t""no" 1>&6
16864 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865  fi
16866 +echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
16867 +echo "${ECHO_T}$ac_cv_func_getopt" >&6
16868  
16869  if test $ac_cv_func_getopt = yes; then
16870 -        for ac_hdr in getopt.h
16871 +
16872 +for ac_header in getopt.h
16873  do
16874 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16875 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16876 -echo "configure:3955: checking for $ac_hdr" >&5
16877 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16878 -  echo $ac_n "(cached) $ac_c" 1>&6
16879 -else
16880 -  cat > conftest.$ac_ext <<EOF
16881 -#line 3960 "configure"
16882 -#include "confdefs.h"
16883 -#include <$ac_hdr>
16884 -EOF
16885 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16886 -{ (eval echo configure:3965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16887 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16888 -if test -z "$ac_err"; then
16889 -  rm -rf conftest*
16890 -  eval "ac_cv_header_$ac_safe=yes"
16891 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16893 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
16894 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16895 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16896 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16897 +fi
16898 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16899 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16900 +else
16901 +  # Is the header compilable?
16902 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16903 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16904 +cat >conftest.$ac_ext <<_ACEOF
16905 +#line $LINENO "configure"
16906 +#include "confdefs.h"
16907 +$ac_includes_default
16908 +#include <$ac_header>
16909 +_ACEOF
16910 +rm -f conftest.$ac_objext
16911 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 +  (eval $ac_compile) 2>&5
16913 +  ac_status=$?
16914 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 +  (exit $ac_status); } &&
16916 +         { ac_try='test -s conftest.$ac_objext'
16917 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 +  (eval $ac_try) 2>&5
16919 +  ac_status=$?
16920 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 +  (exit $ac_status); }; }; then
16922 +  ac_header_compiler=yes
16923 +else
16924 +  echo "$as_me: failed program was:" >&5
16925 +cat conftest.$ac_ext >&5
16926 +ac_header_compiler=no
16927 +fi
16928 +rm -f conftest.$ac_objext conftest.$ac_ext
16929 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16930 +echo "${ECHO_T}$ac_header_compiler" >&6
16931 +
16932 +# Is the header present?
16933 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16934 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16935 +cat >conftest.$ac_ext <<_ACEOF
16936 +#line $LINENO "configure"
16937 +#include "confdefs.h"
16938 +#include <$ac_header>
16939 +_ACEOF
16940 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16941 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16942 +  ac_status=$?
16943 +  egrep -v '^ *\+' conftest.er1 >conftest.err
16944 +  rm -f conftest.er1
16945 +  cat conftest.err >&5
16946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 +  (exit $ac_status); } >/dev/null; then
16948 +  if test -s conftest.err; then
16949 +    ac_cpp_err=$ac_c_preproc_warn_flag
16950 +  else
16951 +    ac_cpp_err=
16952 +  fi
16953  else
16954 -  echo "$ac_err" >&5
16955 -  echo "configure: failed program was:" >&5
16956 -  cat conftest.$ac_ext >&5
16957 -  rm -rf conftest*
16958 -  eval "ac_cv_header_$ac_safe=no"
16959 +  ac_cpp_err=yes
16960  fi
16961 -rm -f conftest*
16962 +if test -z "$ac_cpp_err"; then
16963 +  ac_header_preproc=yes
16964 +else
16965 +  echo "$as_me: failed program was:" >&5
16966 +  cat conftest.$ac_ext >&5
16967 +  ac_header_preproc=no
16968  fi
16969 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16970 -  echo "$ac_t""yes" 1>&6
16971 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16972 -  cat >> confdefs.h <<EOF
16973 -#define $ac_tr_hdr 1
16974 -EOF
16975
16976 +rm -f conftest.err conftest.$ac_ext
16977 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978 +echo "${ECHO_T}$ac_header_preproc" >&6
16979 +
16980 +# So?  What about this header?
16981 +case $ac_header_compiler:$ac_header_preproc in
16982 +  yes:no )
16983 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16987 +  no:yes )
16988 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16989 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16990 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16991 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16992 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16993 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16994 +esac
16995 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16996 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16997 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16998 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16999  else
17000 -  echo "$ac_t""no" 1>&6
17001 +  eval "$as_ac_Header=$ac_header_preproc"
17002 +fi
17003 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17004 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17005 +
17006  fi
17007 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
17008 +  cat >>confdefs.h <<_ACEOF
17009 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17010 +_ACEOF
17011 +
17012 +fi
17013 +
17014  done
17015  
17016  fi
17017  
17018  mutt_cv_snprintf=no
17019  SNPRINTFOBJS=""
17020 +
17021  for ac_func in snprintf
17022  do
17023 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17024 -echo "configure:3998: checking for $ac_func" >&5
17025 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17026 -  echo $ac_n "(cached) $ac_c" 1>&6
17027 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17028 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17029 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17030 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17031 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17032  else
17033 -  cat > conftest.$ac_ext <<EOF
17034 -#line 4003 "configure"
17035 +  cat >conftest.$ac_ext <<_ACEOF
17036 +#line $LINENO "configure"
17037  #include "confdefs.h"
17038  /* System header to define __stub macros and hopefully few prototypes,
17039 -    which can conflict with char $ac_func(); below.  */
17040 +    which can conflict with char $ac_func (); below.  */
17041  #include <assert.h>
17042  /* Override any gcc2 internal prototype to avoid an error.  */
17043 +#ifdef __cplusplus
17044 +extern "C"
17045 +#endif
17046  /* We use char because int might match the return type of a gcc2
17047 -    builtin and then its argument prototype would still apply.  */
17048 -char $ac_func();
17049 -
17050 -int main() {
17051 +   builtin and then its argument prototype would still apply.  */
17052 +char $ac_func ();
17053 +char (*f) ();
17054  
17055 +#ifdef F77_DUMMY_MAIN
17056 +#  ifdef __cplusplus
17057 +     extern "C"
17058 +#  endif
17059 +   int F77_DUMMY_MAIN() { return 1; }
17060 +#endif
17061 +int
17062 +main ()
17063 +{
17064  /* The GNU C library defines this for functions which it implements
17065      to always fail with ENOSYS.  Some functions are actually named
17066      something starting with __ and the normal name is an alias.  */
17067  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17068  choke me
17069  #else
17070 -$ac_func();
17071 +f = $ac_func;
17072  #endif
17073  
17074 -; return 0; }
17075 -EOF
17076 -if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17077 -  rm -rf conftest*
17078 -  eval "ac_cv_func_$ac_func=yes"
17079 -else
17080 -  echo "configure: failed program was:" >&5
17081 -  cat conftest.$ac_ext >&5
17082 -  rm -rf conftest*
17083 -  eval "ac_cv_func_$ac_func=no"
17084 -fi
17085 -rm -f conftest*
17086 -fi
17087 +  ;
17088 +  return 0;
17089 +}
17090 +_ACEOF
17091 +rm -f conftest.$ac_objext conftest$ac_exeext
17092 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 +  (eval $ac_link) 2>&5
17094 +  ac_status=$?
17095 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 +  (exit $ac_status); } &&
17097 +         { ac_try='test -s conftest$ac_exeext'
17098 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 +  (eval $ac_try) 2>&5
17100 +  ac_status=$?
17101 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 +  (exit $ac_status); }; }; then
17103 +  eval "$as_ac_var=yes"
17104 +else
17105 +  echo "$as_me: failed program was:" >&5
17106 +cat conftest.$ac_ext >&5
17107 +eval "$as_ac_var=no"
17108 +fi
17109 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17110 +fi
17111 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17112 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17113 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17114 +  cat >>confdefs.h <<_ACEOF
17115 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17116 +_ACEOF
17117  
17118 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17119 -  echo "$ac_t""yes" 1>&6
17120 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17121 -  cat >> confdefs.h <<EOF
17122 -#define $ac_tr_func 1
17123 -EOF
17124
17125  else
17126 -  echo "$ac_t""no" 1>&6
17127 -mutt_cv_snprintf=yes
17128 +  mutt_cv_snprintf=yes
17129  fi
17130  done
17131  
17132 +
17133  for ac_func in vsnprintf
17134  do
17135 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17136 -echo "configure:4054: checking for $ac_func" >&5
17137 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17138 -  echo $ac_n "(cached) $ac_c" 1>&6
17139 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17140 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17141 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17142 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17143 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17144  else
17145 -  cat > conftest.$ac_ext <<EOF
17146 -#line 4059 "configure"
17147 +  cat >conftest.$ac_ext <<_ACEOF
17148 +#line $LINENO "configure"
17149  #include "confdefs.h"
17150  /* System header to define __stub macros and hopefully few prototypes,
17151 -    which can conflict with char $ac_func(); below.  */
17152 +    which can conflict with char $ac_func (); below.  */
17153  #include <assert.h>
17154  /* Override any gcc2 internal prototype to avoid an error.  */
17155 +#ifdef __cplusplus
17156 +extern "C"
17157 +#endif
17158  /* We use char because int might match the return type of a gcc2
17159 -    builtin and then its argument prototype would still apply.  */
17160 -char $ac_func();
17161 -
17162 -int main() {
17163 +   builtin and then its argument prototype would still apply.  */
17164 +char $ac_func ();
17165 +char (*f) ();
17166  
17167 +#ifdef F77_DUMMY_MAIN
17168 +#  ifdef __cplusplus
17169 +     extern "C"
17170 +#  endif
17171 +   int F77_DUMMY_MAIN() { return 1; }
17172 +#endif
17173 +int
17174 +main ()
17175 +{
17176  /* The GNU C library defines this for functions which it implements
17177      to always fail with ENOSYS.  Some functions are actually named
17178      something starting with __ and the normal name is an alias.  */
17179  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17180  choke me
17181  #else
17182 -$ac_func();
17183 +f = $ac_func;
17184  #endif
17185  
17186 -; return 0; }
17187 -EOF
17188 -if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17189 -  rm -rf conftest*
17190 -  eval "ac_cv_func_$ac_func=yes"
17191 -else
17192 -  echo "configure: failed program was:" >&5
17193 -  cat conftest.$ac_ext >&5
17194 -  rm -rf conftest*
17195 -  eval "ac_cv_func_$ac_func=no"
17196 -fi
17197 -rm -f conftest*
17198 -fi
17199 +  ;
17200 +  return 0;
17201 +}
17202 +_ACEOF
17203 +rm -f conftest.$ac_objext conftest$ac_exeext
17204 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205 +  (eval $ac_link) 2>&5
17206 +  ac_status=$?
17207 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 +  (exit $ac_status); } &&
17209 +         { ac_try='test -s conftest$ac_exeext'
17210 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 +  (eval $ac_try) 2>&5
17212 +  ac_status=$?
17213 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 +  (exit $ac_status); }; }; then
17215 +  eval "$as_ac_var=yes"
17216 +else
17217 +  echo "$as_me: failed program was:" >&5
17218 +cat conftest.$ac_ext >&5
17219 +eval "$as_ac_var=no"
17220 +fi
17221 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17222 +fi
17223 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17224 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17225 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17226 +  cat >>confdefs.h <<_ACEOF
17227 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17228 +_ACEOF
17229  
17230 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17231 -  echo "$ac_t""yes" 1>&6
17232 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17233 -  cat >> confdefs.h <<EOF
17234 -#define $ac_tr_func 1
17235 -EOF
17236
17237  else
17238 -  echo "$ac_t""no" 1>&6
17239 -mutt_cv_snprintf=yes
17240 +  mutt_cv_snprintf=yes
17241  fi
17242  done
17243  
17244  if test $mutt_cv_snprintf = yes; then
17245 -        LIBOBJS="$LIBOBJS snprintf.o"
17246 +        LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17247  fi
17248  
17249 +
17250  for ac_func in ftruncate
17251  do
17252 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17253 -echo "configure:4114: checking for $ac_func" >&5
17254 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17255 -  echo $ac_n "(cached) $ac_c" 1>&6
17256 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17259 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17260 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17261  else
17262 -  cat > conftest.$ac_ext <<EOF
17263 -#line 4119 "configure"
17264 +  cat >conftest.$ac_ext <<_ACEOF
17265 +#line $LINENO "configure"
17266  #include "confdefs.h"
17267  /* System header to define __stub macros and hopefully few prototypes,
17268 -    which can conflict with char $ac_func(); below.  */
17269 +    which can conflict with char $ac_func (); below.  */
17270  #include <assert.h>
17271  /* Override any gcc2 internal prototype to avoid an error.  */
17272 +#ifdef __cplusplus
17273 +extern "C"
17274 +#endif
17275  /* We use char because int might match the return type of a gcc2
17276 -    builtin and then its argument prototype would still apply.  */
17277 -char $ac_func();
17278 -
17279 -int main() {
17280 +   builtin and then its argument prototype would still apply.  */
17281 +char $ac_func ();
17282 +char (*f) ();
17283  
17284 +#ifdef F77_DUMMY_MAIN
17285 +#  ifdef __cplusplus
17286 +     extern "C"
17287 +#  endif
17288 +   int F77_DUMMY_MAIN() { return 1; }
17289 +#endif
17290 +int
17291 +main ()
17292 +{
17293  /* The GNU C library defines this for functions which it implements
17294      to always fail with ENOSYS.  Some functions are actually named
17295      something starting with __ and the normal name is an alias.  */
17296  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17297  choke me
17298  #else
17299 -$ac_func();
17300 +f = $ac_func;
17301  #endif
17302  
17303 -; return 0; }
17304 -EOF
17305 -if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17306 -  rm -rf conftest*
17307 -  eval "ac_cv_func_$ac_func=yes"
17308 -else
17309 -  echo "configure: failed program was:" >&5
17310 -  cat conftest.$ac_ext >&5
17311 -  rm -rf conftest*
17312 -  eval "ac_cv_func_$ac_func=no"
17313 -fi
17314 -rm -f conftest*
17315 -fi
17316 +  ;
17317 +  return 0;
17318 +}
17319 +_ACEOF
17320 +rm -f conftest.$ac_objext conftest$ac_exeext
17321 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322 +  (eval $ac_link) 2>&5
17323 +  ac_status=$?
17324 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 +  (exit $ac_status); } &&
17326 +         { ac_try='test -s conftest$ac_exeext'
17327 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 +  (eval $ac_try) 2>&5
17329 +  ac_status=$?
17330 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 +  (exit $ac_status); }; }; then
17332 +  eval "$as_ac_var=yes"
17333 +else
17334 +  echo "$as_me: failed program was:" >&5
17335 +cat conftest.$ac_ext >&5
17336 +eval "$as_ac_var=no"
17337 +fi
17338 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17339 +fi
17340 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17341 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17342 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17343 +  cat >>confdefs.h <<_ACEOF
17344 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17345 +_ACEOF
17346  
17347 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17348 -  echo "$ac_t""yes" 1>&6
17349 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17350 -  cat >> confdefs.h <<EOF
17351 -#define $ac_tr_func 1
17352 -EOF
17353
17354  else
17355 -  echo "$ac_t""no" 1>&6
17356 -echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
17357 -echo "configure:4164: checking for chsize in -lx" >&5
17358 -ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
17359 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17360 -  echo $ac_n "(cached) $ac_c" 1>&6
17361 +
17362 +echo "$as_me:$LINENO: checking for chsize in -lx" >&5
17363 +echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
17364 +if test "${ac_cv_lib_x_chsize+set}" = set; then
17365 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17366  else
17367 -  ac_save_LIBS="$LIBS"
17368 +  ac_check_lib_save_LIBS=$LIBS
17369  LIBS="-lx  $LIBS"
17370 -cat > conftest.$ac_ext <<EOF
17371 -#line 4172 "configure"
17372 +cat >conftest.$ac_ext <<_ACEOF
17373 +#line $LINENO "configure"
17374  #include "confdefs.h"
17375 +
17376  /* Override any gcc2 internal prototype to avoid an error.  */
17377 +#ifdef __cplusplus
17378 +extern "C"
17379 +#endif
17380  /* We use char because int might match the return type of a gcc2
17381 -    builtin and then its argument prototype would still apply.  */
17382 -char chsize();
17383 -
17384 -int main() {
17385 -chsize()
17386 -; return 0; }
17387 -EOF
17388 -if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17389 -  rm -rf conftest*
17390 -  eval "ac_cv_lib_$ac_lib_var=yes"
17391 -else
17392 -  echo "configure: failed program was:" >&5
17393 -  cat conftest.$ac_ext >&5
17394 -  rm -rf conftest*
17395 -  eval "ac_cv_lib_$ac_lib_var=no"
17396 -fi
17397 -rm -f conftest*
17398 -LIBS="$ac_save_LIBS"
17399 -
17400 -fi
17401 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17402 -  echo "$ac_t""yes" 1>&6
17403 -    ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
17404 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17405 -  cat >> confdefs.h <<EOF
17406 -#define $ac_tr_lib 1
17407 -EOF
17408 +   builtin and then its argument prototype would still apply.  */
17409 +char chsize ();
17410 +#ifdef F77_DUMMY_MAIN
17411 +#  ifdef __cplusplus
17412 +     extern "C"
17413 +#  endif
17414 +   int F77_DUMMY_MAIN() { return 1; }
17415 +#endif
17416 +int
17417 +main ()
17418 +{
17419 +chsize ();
17420 +  ;
17421 +  return 0;
17422 +}
17423 +_ACEOF
17424 +rm -f conftest.$ac_objext conftest$ac_exeext
17425 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 +  (eval $ac_link) 2>&5
17427 +  ac_status=$?
17428 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 +  (exit $ac_status); } &&
17430 +         { ac_try='test -s conftest$ac_exeext'
17431 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 +  (eval $ac_try) 2>&5
17433 +  ac_status=$?
17434 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 +  (exit $ac_status); }; }; then
17436 +  ac_cv_lib_x_chsize=yes
17437 +else
17438 +  echo "$as_me: failed program was:" >&5
17439 +cat conftest.$ac_ext >&5
17440 +ac_cv_lib_x_chsize=no
17441 +fi
17442 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17443 +LIBS=$ac_check_lib_save_LIBS
17444 +fi
17445 +echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
17446 +echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
17447 +if test $ac_cv_lib_x_chsize = yes; then
17448 +  cat >>confdefs.h <<_ACEOF
17449 +#define HAVE_LIBX 1
17450 +_ACEOF
17451  
17452    LIBS="-lx $LIBS"
17453  
17454 -else
17455 -  echo "$ac_t""no" 1>&6
17456  fi
17457  
17458  fi
17459  done
17460  
17461  
17462 +
17463  for ac_func in strftime
17464  do
17465 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17466 -echo "configure:4217: checking for $ac_func" >&5
17467 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17468 -  echo $ac_n "(cached) $ac_c" 1>&6
17469 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17470 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17471 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17472 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17473 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17474  else
17475 -  cat > conftest.$ac_ext <<EOF
17476 -#line 4222 "configure"
17477 +  cat >conftest.$ac_ext <<_ACEOF
17478 +#line $LINENO "configure"
17479  #include "confdefs.h"
17480  /* System header to define __stub macros and hopefully few prototypes,
17481 -    which can conflict with char $ac_func(); below.  */
17482 +    which can conflict with char $ac_func (); below.  */
17483  #include <assert.h>
17484  /* Override any gcc2 internal prototype to avoid an error.  */
17485 +#ifdef __cplusplus
17486 +extern "C"
17487 +#endif
17488  /* We use char because int might match the return type of a gcc2
17489 -    builtin and then its argument prototype would still apply.  */
17490 -char $ac_func();
17491 -
17492 -int main() {
17493 +   builtin and then its argument prototype would still apply.  */
17494 +char $ac_func ();
17495 +char (*f) ();
17496  
17497 +#ifdef F77_DUMMY_MAIN
17498 +#  ifdef __cplusplus
17499 +     extern "C"
17500 +#  endif
17501 +   int F77_DUMMY_MAIN() { return 1; }
17502 +#endif
17503 +int
17504 +main ()
17505 +{
17506  /* The GNU C library defines this for functions which it implements
17507      to always fail with ENOSYS.  Some functions are actually named
17508      something starting with __ and the normal name is an alias.  */
17509  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17510  choke me
17511  #else
17512 -$ac_func();
17513 +f = $ac_func;
17514  #endif
17515  
17516 -; return 0; }
17517 -EOF
17518 -if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 -  rm -rf conftest*
17520 -  eval "ac_cv_func_$ac_func=yes"
17521 -else
17522 -  echo "configure: failed program was:" >&5
17523 -  cat conftest.$ac_ext >&5
17524 -  rm -rf conftest*
17525 -  eval "ac_cv_func_$ac_func=no"
17526 -fi
17527 -rm -f conftest*
17528 -fi
17529 +  ;
17530 +  return 0;
17531 +}
17532 +_ACEOF
17533 +rm -f conftest.$ac_objext conftest$ac_exeext
17534 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 +  (eval $ac_link) 2>&5
17536 +  ac_status=$?
17537 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 +  (exit $ac_status); } &&
17539 +         { ac_try='test -s conftest$ac_exeext'
17540 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 +  (eval $ac_try) 2>&5
17542 +  ac_status=$?
17543 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 +  (exit $ac_status); }; }; then
17545 +  eval "$as_ac_var=yes"
17546 +else
17547 +  echo "$as_me: failed program was:" >&5
17548 +cat conftest.$ac_ext >&5
17549 +eval "$as_ac_var=no"
17550 +fi
17551 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17552 +fi
17553 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17554 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17555 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17556 +  cat >>confdefs.h <<_ACEOF
17557 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17558 +_ACEOF
17559  
17560 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17561 -  echo "$ac_t""yes" 1>&6
17562 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17563 -  cat >> confdefs.h <<EOF
17564 -#define $ac_tr_func 1
17565 -EOF
17566
17567  else
17568 -  echo "$ac_t""no" 1>&6
17569 -echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
17570 -echo "configure:4267: checking for strftime in -lintl" >&5
17571 -ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
17572 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17573 -  echo $ac_n "(cached) $ac_c" 1>&6
17574 +
17575 +echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17576 +echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17577 +if test "${ac_cv_lib_intl_strftime+set}" = set; then
17578 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17579  else
17580 -  ac_save_LIBS="$LIBS"
17581 +  ac_check_lib_save_LIBS=$LIBS
17582  LIBS="-lintl  $LIBS"
17583 -cat > conftest.$ac_ext <<EOF
17584 -#line 4275 "configure"
17585 +cat >conftest.$ac_ext <<_ACEOF
17586 +#line $LINENO "configure"
17587  #include "confdefs.h"
17588 +
17589  /* Override any gcc2 internal prototype to avoid an error.  */
17590 +#ifdef __cplusplus
17591 +extern "C"
17592 +#endif
17593  /* We use char because int might match the return type of a gcc2
17594 -    builtin and then its argument prototype would still apply.  */
17595 -char strftime();
17596 -
17597 -int main() {
17598 -strftime()
17599 -; return 0; }
17600 -EOF
17601 -if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17602 -  rm -rf conftest*
17603 -  eval "ac_cv_lib_$ac_lib_var=yes"
17604 -else
17605 -  echo "configure: failed program was:" >&5
17606 -  cat conftest.$ac_ext >&5
17607 -  rm -rf conftest*
17608 -  eval "ac_cv_lib_$ac_lib_var=no"
17609 -fi
17610 -rm -f conftest*
17611 -LIBS="$ac_save_LIBS"
17612 -
17613 -fi
17614 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17615 -  echo "$ac_t""yes" 1>&6
17616 -    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
17617 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17618 -  cat >> confdefs.h <<EOF
17619 -#define $ac_tr_lib 1
17620 -EOF
17621 +   builtin and then its argument prototype would still apply.  */
17622 +char strftime ();
17623 +#ifdef F77_DUMMY_MAIN
17624 +#  ifdef __cplusplus
17625 +     extern "C"
17626 +#  endif
17627 +   int F77_DUMMY_MAIN() { return 1; }
17628 +#endif
17629 +int
17630 +main ()
17631 +{
17632 +strftime ();
17633 +  ;
17634 +  return 0;
17635 +}
17636 +_ACEOF
17637 +rm -f conftest.$ac_objext conftest$ac_exeext
17638 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 +  (eval $ac_link) 2>&5
17640 +  ac_status=$?
17641 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 +  (exit $ac_status); } &&
17643 +         { ac_try='test -s conftest$ac_exeext'
17644 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 +  (eval $ac_try) 2>&5
17646 +  ac_status=$?
17647 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 +  (exit $ac_status); }; }; then
17649 +  ac_cv_lib_intl_strftime=yes
17650 +else
17651 +  echo "$as_me: failed program was:" >&5
17652 +cat conftest.$ac_ext >&5
17653 +ac_cv_lib_intl_strftime=no
17654 +fi
17655 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17656 +LIBS=$ac_check_lib_save_LIBS
17657 +fi
17658 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17659 +echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17660 +if test $ac_cv_lib_intl_strftime = yes; then
17661 +  cat >>confdefs.h <<_ACEOF
17662 +#define HAVE_LIBINTL 1
17663 +_ACEOF
17664  
17665    LIBS="-lintl $LIBS"
17666  
17667 -else
17668 -  echo "$ac_t""no" 1>&6
17669  fi
17670  
17671  fi
17672  done
17673  
17674  
17675 +
17676  for ac_func in fchdir
17677  do
17678 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17679 -echo "configure:4320: checking for $ac_func" >&5
17680 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17681 -  echo $ac_n "(cached) $ac_c" 1>&6
17682 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17683 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17684 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17685 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17686 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17687  else
17688 -  cat > conftest.$ac_ext <<EOF
17689 -#line 4325 "configure"
17690 +  cat >conftest.$ac_ext <<_ACEOF
17691 +#line $LINENO "configure"
17692  #include "confdefs.h"
17693  /* System header to define __stub macros and hopefully few prototypes,
17694 -    which can conflict with char $ac_func(); below.  */
17695 +    which can conflict with char $ac_func (); below.  */
17696  #include <assert.h>
17697  /* Override any gcc2 internal prototype to avoid an error.  */
17698 +#ifdef __cplusplus
17699 +extern "C"
17700 +#endif
17701  /* We use char because int might match the return type of a gcc2
17702 -    builtin and then its argument prototype would still apply.  */
17703 -char $ac_func();
17704 -
17705 -int main() {
17706 +   builtin and then its argument prototype would still apply.  */
17707 +char $ac_func ();
17708 +char (*f) ();
17709  
17710 +#ifdef F77_DUMMY_MAIN
17711 +#  ifdef __cplusplus
17712 +     extern "C"
17713 +#  endif
17714 +   int F77_DUMMY_MAIN() { return 1; }
17715 +#endif
17716 +int
17717 +main ()
17718 +{
17719  /* The GNU C library defines this for functions which it implements
17720      to always fail with ENOSYS.  Some functions are actually named
17721      something starting with __ and the normal name is an alias.  */
17722  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17723  choke me
17724  #else
17725 -$ac_func();
17726 +f = $ac_func;
17727  #endif
17728  
17729 -; return 0; }
17730 -EOF
17731 -if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17732 -  rm -rf conftest*
17733 -  eval "ac_cv_func_$ac_func=yes"
17734 -else
17735 -  echo "configure: failed program was:" >&5
17736 -  cat conftest.$ac_ext >&5
17737 -  rm -rf conftest*
17738 -  eval "ac_cv_func_$ac_func=no"
17739 -fi
17740 -rm -f conftest*
17741 -fi
17742 +  ;
17743 +  return 0;
17744 +}
17745 +_ACEOF
17746 +rm -f conftest.$ac_objext conftest$ac_exeext
17747 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 +  (eval $ac_link) 2>&5
17749 +  ac_status=$?
17750 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 +  (exit $ac_status); } &&
17752 +         { ac_try='test -s conftest$ac_exeext'
17753 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 +  (eval $ac_try) 2>&5
17755 +  ac_status=$?
17756 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 +  (exit $ac_status); }; }; then
17758 +  eval "$as_ac_var=yes"
17759 +else
17760 +  echo "$as_me: failed program was:" >&5
17761 +cat conftest.$ac_ext >&5
17762 +eval "$as_ac_var=no"
17763 +fi
17764 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17765 +fi
17766 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17767 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17768 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17769 +  cat >>confdefs.h <<_ACEOF
17770 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17771 +_ACEOF
17772  
17773 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17774 -  echo "$ac_t""yes" 1>&6
17775 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17776 -  cat >> confdefs.h <<EOF
17777 -#define $ac_tr_func 1
17778 -EOF
17779
17780  else
17781 -  echo "$ac_t""no" 1>&6
17782 -mutt_cv_fchdir=no
17783 +  mutt_cv_fchdir=no
17784  fi
17785  done
17786  
17787  
17788 +
17789  # Check whether --with-regex or --without-regex was given.
17790  if test "${with_regex+set}" = set; then
17791    withval="$with_regex"
17792    mutt_cv_regex=yes
17793  else
17794 -  for ac_func in regcomp
17795 +
17796 +for ac_func in regcomp
17797  do
17798 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17799 -echo "configure:4382: checking for $ac_func" >&5
17800 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17801 -  echo $ac_n "(cached) $ac_c" 1>&6
17802 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17803 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17804 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17805 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17806 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17807  else
17808 -  cat > conftest.$ac_ext <<EOF
17809 -#line 4387 "configure"
17810 +  cat >conftest.$ac_ext <<_ACEOF
17811 +#line $LINENO "configure"
17812  #include "confdefs.h"
17813  /* System header to define __stub macros and hopefully few prototypes,
17814 -    which can conflict with char $ac_func(); below.  */
17815 +    which can conflict with char $ac_func (); below.  */
17816  #include <assert.h>
17817  /* Override any gcc2 internal prototype to avoid an error.  */
17818 +#ifdef __cplusplus
17819 +extern "C"
17820 +#endif
17821  /* We use char because int might match the return type of a gcc2
17822 -    builtin and then its argument prototype would still apply.  */
17823 -char $ac_func();
17824 -
17825 -int main() {
17826 +   builtin and then its argument prototype would still apply.  */
17827 +char $ac_func ();
17828 +char (*f) ();
17829  
17830 +#ifdef F77_DUMMY_MAIN
17831 +#  ifdef __cplusplus
17832 +     extern "C"
17833 +#  endif
17834 +   int F77_DUMMY_MAIN() { return 1; }
17835 +#endif
17836 +int
17837 +main ()
17838 +{
17839  /* The GNU C library defines this for functions which it implements
17840      to always fail with ENOSYS.  Some functions are actually named
17841      something starting with __ and the normal name is an alias.  */
17842  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17843  choke me
17844  #else
17845 -$ac_func();
17846 +f = $ac_func;
17847  #endif
17848  
17849 -; return 0; }
17850 -EOF
17851 -if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17852 -  rm -rf conftest*
17853 -  eval "ac_cv_func_$ac_func=yes"
17854 -else
17855 -  echo "configure: failed program was:" >&5
17856 -  cat conftest.$ac_ext >&5
17857 -  rm -rf conftest*
17858 -  eval "ac_cv_func_$ac_func=no"
17859 -fi
17860 -rm -f conftest*
17861 -fi
17862 -
17863 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17864 -  echo "$ac_t""yes" 1>&6
17865 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17866 -  cat >> confdefs.h <<EOF
17867 -#define $ac_tr_func 1
17868 -EOF
17869 +  ;
17870 +  return 0;
17871 +}
17872 +_ACEOF
17873 +rm -f conftest.$ac_objext conftest$ac_exeext
17874 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17875 +  (eval $ac_link) 2>&5
17876 +  ac_status=$?
17877 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 +  (exit $ac_status); } &&
17879 +         { ac_try='test -s conftest$ac_exeext'
17880 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 +  (eval $ac_try) 2>&5
17882 +  ac_status=$?
17883 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 +  (exit $ac_status); }; }; then
17885 +  eval "$as_ac_var=yes"
17886 +else
17887 +  echo "$as_me: failed program was:" >&5
17888 +cat conftest.$ac_ext >&5
17889 +eval "$as_ac_var=no"
17890 +fi
17891 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17892 +fi
17893 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17894 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17895 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17896 +  cat >>confdefs.h <<_ACEOF
17897 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17898 +_ACEOF
17899   mutt_cv_regex=no
17900  else
17901 -  echo "$ac_t""no" 1>&6
17902 -mutt_cv_regex=yes
17903 +  mutt_cv_regex=yes
17904  fi
17905  done
17906  
17907 -fi
17908 -
17909 +fi;
17910  
17911  if test $mutt_cv_regex = no ; then
17912 -echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
17913 -echo "configure:4440: checking whether your system's regexp library is completely broken" >&5
17914 -if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
17915 -  echo $ac_n "(cached) $ac_c" 1>&6
17916 +echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
17917 +echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
17918 +if test "${mutt_cv_regex_broken+set}" = set; then
17919 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17920  else
17921    if test "$cross_compiling" = yes; then
17922    mutt_cv_regex_broken=yes
17923  else
17924 -  cat > conftest.$ac_ext <<EOF
17925 -#line 4448 "configure"
17926 +  cat >conftest.$ac_ext <<_ACEOF
17927 +#line $LINENO "configure"
17928  #include "confdefs.h"
17929  
17930  #include <unistd.h>
17931  #include <regex.h>
17932  main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
17933 -EOF
17934 -if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17935 -then
17936 +_ACEOF
17937 +rm -f conftest$ac_exeext
17938 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 +  (eval $ac_link) 2>&5
17940 +  ac_status=$?
17941 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17943 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 +  (eval $ac_try) 2>&5
17945 +  ac_status=$?
17946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 +  (exit $ac_status); }; }; then
17948    mutt_cv_regex_broken=no
17949  else
17950 -  echo "configure: failed program was:" >&5
17951 -  cat conftest.$ac_ext >&5
17952 -  rm -fr conftest*
17953 -  mutt_cv_regex_broken=yes
17954 +  echo "$as_me: program exited with status $ac_status" >&5
17955 +echo "$as_me: failed program was:" >&5
17956 +cat conftest.$ac_ext >&5
17957 +( exit $ac_status )
17958 +mutt_cv_regex_broken=yes
17959  fi
17960 -rm -fr conftest*
17961 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17962  fi
17963 -
17964  fi
17965 -
17966 -echo "$ac_t""$mutt_cv_regex_broken" 1>&6
17967 +echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
17968 +echo "${ECHO_T}$mutt_cv_regex_broken" >&6
17969          if test $mutt_cv_regex_broken = yes ; then
17970                  echo "Using the included GNU regex instead." >&6
17971                  mutt_cv_regex=yes
17972 @@ -4475,47 +8692,51 @@
17973  fi
17974  
17975  if test $mutt_cv_regex = yes; then
17976 -        cat >> confdefs.h <<\EOF
17977 +
17978 +cat >>confdefs.h <<\_ACEOF
17979  #define USE_GNU_REGEX 1
17980 -EOF
17981 +_ACEOF
17982  
17983 -        LIBOBJS="$LIBOBJS regex.o"
17984 +        LIBOBJS="$LIBOBJS regex.$ac_objext"
17985  fi
17986  
17987  
17988 +
17989  # Check whether --with-homespool or --without-homespool was given.
17990  if test "${with_homespool+set}" = set; then
17991    withval="$with_homespool"
17992    with_homespool=${withval}
17993 -fi
17994 -
17995 +fi;
17996  if test x$with_homespool != x; then
17997          if test $with_homespool = yes; then
17998                  with_homespool=mailbox
17999          fi
18000 -        cat >> confdefs.h <<EOF
18001 +
18002 +cat >>confdefs.h <<_ACEOF
18003  #define MAILPATH "$with_homespool"
18004 -EOF
18005 +_ACEOF
18006  
18007 -        cat >> confdefs.h <<\EOF
18008 +        cat >>confdefs.h <<\_ACEOF
18009  #define HOMESPOOL 1
18010 -EOF
18011 +_ACEOF
18012  
18013 -        cat >> confdefs.h <<\EOF
18014 +
18015 +cat >>confdefs.h <<\_ACEOF
18016  #define USE_DOTLOCK 1
18017 -EOF
18018 +_ACEOF
18019  
18020          mutt_cv_setgid=no
18021  else
18022 -        # Check whether --with-mailpath or --without-mailpath was given.
18023 +
18024 +# Check whether --with-mailpath or --without-mailpath was given.
18025  if test "${with_mailpath+set}" = set; then
18026    withval="$with_mailpath"
18027    mutt_cv_mailpath=$withval
18028  else
18029 -   echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
18030 -echo "configure:4515: checking where new mail is stored" >&5
18031 -if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
18032 -  echo $ac_n "(cached) $ac_c" 1>&6
18033 +   echo "$as_me:$LINENO: checking where new mail is stored" >&5
18034 +echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
18035 +if test "${mutt_cv_mailpath+set}" = set; then
18036 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18037  else
18038    mutt_cv_mailpath=no
18039                          if test -d /var/mail; then
18040 @@ -4528,29 +8749,31 @@
18041                                  mutt_cv_mailpath=/usr/mail
18042                          fi
18043  fi
18044 +echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
18045 +echo "${ECHO_T}$mutt_cv_mailpath" >&6
18046  
18047 -echo "$ac_t""$mutt_cv_mailpath" 1>&6
18048 -                
18049 -fi
18050 -
18051 +fi;
18052          if test $mutt_cv_mailpath = no; then
18053 -                { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
18054 +                { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
18055 +echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
18056 +   { (exit 1); exit 1; }; }
18057          fi
18058 -        cat >> confdefs.h <<EOF
18059 +
18060 +cat >>confdefs.h <<_ACEOF
18061  #define MAILPATH "$mutt_cv_mailpath"
18062 -EOF
18063 +_ACEOF
18064  
18065  
18066 -        echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
18067 -echo "configure:4544: checking if $mutt_cv_mailpath is world writable" >&5
18068 -if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
18069 -  echo $ac_n "(cached) $ac_c" 1>&6
18070 +        echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
18071 +echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
18072 +if test "${mutt_cv_worldwrite+set}" = set; then
18073 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18074  else
18075    if test "$cross_compiling" = yes; then
18076    mutt_cv_worldwrite=no
18077  else
18078 -  cat > conftest.$ac_ext <<EOF
18079 -#line 4552 "configure"
18080 +  cat >conftest.$ac_ext <<_ACEOF
18081 +#line $LINENO "configure"
18082  #include "confdefs.h"
18083  #include <sys/types.h>
18084  #include <sys/stat.h>
18085 @@ -4563,41 +8786,51 @@
18086          if (s.st_mode & S_IWOTH) exit (0);
18087          exit (1);
18088  }
18089 -EOF
18090 -if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18091 -then
18092 +_ACEOF
18093 +rm -f conftest$ac_exeext
18094 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18095 +  (eval $ac_link) 2>&5
18096 +  ac_status=$?
18097 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18099 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 +  (eval $ac_try) 2>&5
18101 +  ac_status=$?
18102 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 +  (exit $ac_status); }; }; then
18104    mutt_cv_worldwrite=yes
18105  else
18106 -  echo "configure: failed program was:" >&5
18107 -  cat conftest.$ac_ext >&5
18108 -  rm -fr conftest*
18109 -  mutt_cv_worldwrite=no
18110 +  echo "$as_me: program exited with status $ac_status" >&5
18111 +echo "$as_me: failed program was:" >&5
18112 +cat conftest.$ac_ext >&5
18113 +( exit $ac_status )
18114 +mutt_cv_worldwrite=no
18115  fi
18116 -rm -fr conftest*
18117 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18118  fi
18119 -
18120  fi
18121 -
18122 -echo "$ac_t""$mutt_cv_worldwrite" 1>&6
18123 +echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
18124 +echo "${ECHO_T}$mutt_cv_worldwrite" >&6
18125  
18126          mutt_cv_setgid=no
18127          if test $mutt_cv_worldwrite = yes; then
18128 -                cat >> confdefs.h <<\EOF
18129 +
18130 +cat >>confdefs.h <<\_ACEOF
18131  #define USE_DOTLOCK 1
18132 -EOF
18133 +_ACEOF
18134  
18135          else
18136  
18137 -                echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
18138 -echo "configure:4591: checking if $mutt_cv_mailpath is group writable" >&5
18139 -if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
18140 -  echo $ac_n "(cached) $ac_c" 1>&6
18141 +                echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
18142 +echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
18143 +if test "${mutt_cv_groupwrite+set}" = set; then
18144 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18145  else
18146    if test "$cross_compiling" = yes; then
18147    mutt_cv_groupwrite=no
18148  else
18149 -  cat > conftest.$ac_ext <<EOF
18150 -#line 4599 "configure"
18151 +  cat >conftest.$ac_ext <<_ACEOF
18152 +#line $LINENO "configure"
18153  #include "confdefs.h"
18154  #include <sys/types.h>
18155  #include <sys/stat.h>
18156 @@ -4610,50 +8843,59 @@
18157          if (s.st_mode & S_IWGRP) exit (0);
18158          exit (1);
18159  }
18160 -EOF
18161 -if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18162 -then
18163 +_ACEOF
18164 +rm -f conftest$ac_exeext
18165 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18166 +  (eval $ac_link) 2>&5
18167 +  ac_status=$?
18168 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18170 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 +  (eval $ac_try) 2>&5
18172 +  ac_status=$?
18173 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 +  (exit $ac_status); }; }; then
18175    mutt_cv_groupwrite=yes
18176  else
18177 -  echo "configure: failed program was:" >&5
18178 -  cat conftest.$ac_ext >&5
18179 -  rm -fr conftest*
18180 -  mutt_cv_groupwrite=no
18181 +  echo "$as_me: program exited with status $ac_status" >&5
18182 +echo "$as_me: failed program was:" >&5
18183 +cat conftest.$ac_ext >&5
18184 +( exit $ac_status )
18185 +mutt_cv_groupwrite=no
18186  fi
18187 -rm -fr conftest*
18188 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18189  fi
18190 -
18191  fi
18192 +echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
18193 +echo "${ECHO_T}$mutt_cv_groupwrite" >&6
18194  
18195 -echo "$ac_t""$mutt_cv_groupwrite" 1>&6
18196 +       fi
18197  
18198 -                if test $mutt_cv_groupwrite = yes; then
18199 -                        cat >> confdefs.h <<\EOF
18200 +cat >>confdefs.h <<\_ACEOF
18201  #define USE_DOTLOCK 1
18202 -EOF
18203 +_ACEOF
18204  
18205 -                        cat >> confdefs.h <<\EOF
18206 +
18207 +cat >>confdefs.h <<\_ACEOF
18208  #define USE_SETGID 1
18209 -EOF
18210 +_ACEOF
18211  
18212                          mutt_cv_setgid=yes
18213 -                fi
18214 -        fi
18215  fi
18216  
18217  # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
18218  if test "${enable_external_dotlock+set}" = set; then
18219    enableval="$enable_external_dotlock"
18220    mutt_cv_external_dotlock="$enableval"
18221 -fi
18222 -
18223 +fi;
18224  
18225  if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
18226          || test "x$mutt_cv_external_dotlock" = "xyes"
18227  then
18228 -        cat >> confdefs.h <<\EOF
18229 +
18230 +cat >>confdefs.h <<\_ACEOF
18231  #define DL_STANDALONE 1
18232 -EOF
18233 +_ACEOF
18234  
18235          DOTLOCK_TARGET="mutt_dotlock"
18236  else
18237 @@ -4663,17 +8905,18 @@
18238  
18239  
18240  
18241 -echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
18242 -echo "configure:4666: checking where to put the documentation" >&5
18243 +echo "$as_me:$LINENO: checking where to put the documentation" >&5
18244 +echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
18245 +
18246  # Check whether --with-docdir or --without-docdir was given.
18247  if test "${with_docdir+set}" = set; then
18248    withval="$with_docdir"
18249    mutt_cv_docdir=$withval
18250  else
18251    mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
18252 -fi
18253 -
18254 -echo "$ac_t""$mutt_cv_docdir" 1>&6
18255 +fi;
18256 +echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
18257 +echo "${ECHO_T}$mutt_cv_docdir" >&6
18258  
18259  docdir=$mutt_cv_docdir
18260  
18261 @@ -4688,17 +8931,18 @@
18262  
18263  
18264  
18265 +
18266  # Check whether --with-domain or --without-domain was given.
18267  if test "${with_domain+set}" = set; then
18268    withval="$with_domain"
18269    if test $withval != yes; then
18270 -                cat >> confdefs.h <<EOF
18271 +
18272 +cat >>confdefs.h <<_ACEOF
18273  #define DOMAIN "$withval"
18274 -EOF
18275 +_ACEOF
18276  
18277          fi
18278 -fi
18279 -
18280 +fi;
18281  
18282  need_socket="no"
18283  
18284 @@ -4707,25 +8951,26 @@
18285  if test "${enable_pop+set}" = set; then
18286    enableval="$enable_pop"
18287           if test x$enableval = xyes ; then
18288 -                cat >> confdefs.h <<\EOF
18289 +
18290 +cat >>confdefs.h <<\_ACEOF
18291  #define USE_POP 1
18292 -EOF
18293 +_ACEOF
18294  
18295                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
18296                  need_socket="yes"
18297                  need_md5="yes"
18298          fi
18299  
18300 -fi
18301 -
18302 +fi;
18303  
18304  # Check whether --enable-imap or --disable-imap was given.
18305  if test "${enable_imap+set}" = set; then
18306    enableval="$enable_imap"
18307           if test x$enableval = xyes ; then
18308 -                cat >> confdefs.h <<\EOF
18309 +
18310 +cat >>confdefs.h <<\_ACEOF
18311  #define USE_IMAP 1
18312 -EOF
18313 +_ACEOF
18314  
18315                  LIBIMAP="-Limap -limap"
18316                  LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
18317 @@ -4734,8 +8979,7 @@
18318                  need_md5="yes"
18319          fi
18320  
18321 -fi
18322 -
18323 +fi;
18324  
18325  
18326  if test x$need_imap = xyes; then
18327 @@ -4747,295 +8991,412 @@
18328  fi
18329  
18330  
18331 +# Check whether --enable-nntp or --disable-nntp was given.
18332 +if test "${enable_nntp+set}" = set; then
18333 +  enableval="$enable_nntp"
18334 +       if test x$enableval = xyes ; then
18335 +               cat >>confdefs.h <<\_ACEOF
18336 +#define USE_NNTP 1
18337 +_ACEOF
18338 +
18339 +               MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
18340 +               need_socket="yes"
18341 +       fi
18342 +
18343 +fi;
18344 +
18345 +
18346  if test "$need_socket" = "yes"
18347  then
18348 -        echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
18349 -echo "configure:4752: checking for socklen_t" >&5
18350 -        cat > conftest.$ac_ext <<EOF
18351 -#line 4754 "configure"
18352 +        echo "$as_me:$LINENO: checking for socklen_t" >&5
18353 +echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
18354 +        cat >conftest.$ac_ext <<_ACEOF
18355 +#line $LINENO "configure"
18356  #include "confdefs.h"
18357  #include <sys/socket.h>
18358 -EOF
18359 +
18360 +_ACEOF
18361  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362    egrep "socklen_t" >/dev/null 2>&1; then
18363 -  rm -rf conftest*
18364 -  echo "$ac_t""yes" 1>&6
18365 +  echo "$as_me:$LINENO: result: yes" >&5
18366 +echo "${ECHO_T}yes" >&6
18367  else
18368 -  rm -rf conftest*
18369 -  echo "$ac_t""no" 1>&6
18370 -                cat >> confdefs.h <<\EOF
18371 +  echo "$as_me:$LINENO: result: no" >&5
18372 +echo "${ECHO_T}no" >&6
18373 +
18374 +cat >>confdefs.h <<\_ACEOF
18375  #define socklen_t int
18376 -EOF
18377 +_ACEOF
18378  
18379  fi
18380  rm -f conftest*
18381  
18382 -        echo $ac_n "checking for gethostent""... $ac_c" 1>&6
18383 -echo "configure:4773: checking for gethostent" >&5
18384 -if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
18385 -  echo $ac_n "(cached) $ac_c" 1>&6
18386 +        echo "$as_me:$LINENO: checking for gethostent" >&5
18387 +echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
18388 +if test "${ac_cv_func_gethostent+set}" = set; then
18389 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18390  else
18391 -  cat > conftest.$ac_ext <<EOF
18392 -#line 4778 "configure"
18393 +  cat >conftest.$ac_ext <<_ACEOF
18394 +#line $LINENO "configure"
18395  #include "confdefs.h"
18396  /* System header to define __stub macros and hopefully few prototypes,
18397 -    which can conflict with char gethostent(); below.  */
18398 +    which can conflict with char gethostent (); below.  */
18399  #include <assert.h>
18400  /* Override any gcc2 internal prototype to avoid an error.  */
18401 +#ifdef __cplusplus
18402 +extern "C"
18403 +#endif
18404  /* We use char because int might match the return type of a gcc2
18405 -    builtin and then its argument prototype would still apply.  */
18406 -char gethostent();
18407 -
18408 -int main() {
18409 +   builtin and then its argument prototype would still apply.  */
18410 +char gethostent ();
18411 +char (*f) ();
18412  
18413 +#ifdef F77_DUMMY_MAIN
18414 +#  ifdef __cplusplus
18415 +     extern "C"
18416 +#  endif
18417 +   int F77_DUMMY_MAIN() { return 1; }
18418 +#endif
18419 +int
18420 +main ()
18421 +{
18422  /* The GNU C library defines this for functions which it implements
18423      to always fail with ENOSYS.  Some functions are actually named
18424      something starting with __ and the normal name is an alias.  */
18425  #if defined (__stub_gethostent) || defined (__stub___gethostent)
18426  choke me
18427  #else
18428 -gethostent();
18429 +f = gethostent;
18430  #endif
18431  
18432 -; return 0; }
18433 -EOF
18434 -if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18435 -  rm -rf conftest*
18436 -  eval "ac_cv_func_gethostent=yes"
18437 -else
18438 -  echo "configure: failed program was:" >&5
18439 -  cat conftest.$ac_ext >&5
18440 -  rm -rf conftest*
18441 -  eval "ac_cv_func_gethostent=no"
18442 -fi
18443 -rm -f conftest*
18444 -fi
18445 -
18446 -if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
18447 -  echo "$ac_t""yes" 1>&6
18448 +  ;
18449 +  return 0;
18450 +}
18451 +_ACEOF
18452 +rm -f conftest.$ac_objext conftest$ac_exeext
18453 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18454 +  (eval $ac_link) 2>&5
18455 +  ac_status=$?
18456 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 +  (exit $ac_status); } &&
18458 +         { ac_try='test -s conftest$ac_exeext'
18459 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 +  (eval $ac_try) 2>&5
18461 +  ac_status=$?
18462 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 +  (exit $ac_status); }; }; then
18464 +  ac_cv_func_gethostent=yes
18465 +else
18466 +  echo "$as_me: failed program was:" >&5
18467 +cat conftest.$ac_ext >&5
18468 +ac_cv_func_gethostent=no
18469 +fi
18470 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18471 +fi
18472 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
18473 +echo "${ECHO_T}$ac_cv_func_gethostent" >&6
18474 +if test $ac_cv_func_gethostent = yes; then
18475    :
18476  else
18477 -  echo "$ac_t""no" 1>&6
18478 -echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
18479 -echo "configure:4819: checking for gethostent in -lnsl" >&5
18480 -ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
18481 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18482 -  echo $ac_n "(cached) $ac_c" 1>&6
18483 +
18484 +echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
18485 +echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
18486 +if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
18487 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18488  else
18489 -  ac_save_LIBS="$LIBS"
18490 +  ac_check_lib_save_LIBS=$LIBS
18491  LIBS="-lnsl  $LIBS"
18492 -cat > conftest.$ac_ext <<EOF
18493 -#line 4827 "configure"
18494 +cat >conftest.$ac_ext <<_ACEOF
18495 +#line $LINENO "configure"
18496  #include "confdefs.h"
18497 +
18498  /* Override any gcc2 internal prototype to avoid an error.  */
18499 +#ifdef __cplusplus
18500 +extern "C"
18501 +#endif
18502  /* We use char because int might match the return type of a gcc2
18503 -    builtin and then its argument prototype would still apply.  */
18504 -char gethostent();
18505 -
18506 -int main() {
18507 -gethostent()
18508 -; return 0; }
18509 -EOF
18510 -if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18511 -  rm -rf conftest*
18512 -  eval "ac_cv_lib_$ac_lib_var=yes"
18513 -else
18514 -  echo "configure: failed program was:" >&5
18515 -  cat conftest.$ac_ext >&5
18516 -  rm -rf conftest*
18517 -  eval "ac_cv_lib_$ac_lib_var=no"
18518 -fi
18519 -rm -f conftest*
18520 -LIBS="$ac_save_LIBS"
18521 -
18522 -fi
18523 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18524 -  echo "$ac_t""yes" 1>&6
18525 -    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
18526 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18527 -  cat >> confdefs.h <<EOF
18528 -#define $ac_tr_lib 1
18529 -EOF
18530 +   builtin and then its argument prototype would still apply.  */
18531 +char gethostent ();
18532 +#ifdef F77_DUMMY_MAIN
18533 +#  ifdef __cplusplus
18534 +     extern "C"
18535 +#  endif
18536 +   int F77_DUMMY_MAIN() { return 1; }
18537 +#endif
18538 +int
18539 +main ()
18540 +{
18541 +gethostent ();
18542 +  ;
18543 +  return 0;
18544 +}
18545 +_ACEOF
18546 +rm -f conftest.$ac_objext conftest$ac_exeext
18547 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 +  (eval $ac_link) 2>&5
18549 +  ac_status=$?
18550 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 +  (exit $ac_status); } &&
18552 +         { ac_try='test -s conftest$ac_exeext'
18553 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 +  (eval $ac_try) 2>&5
18555 +  ac_status=$?
18556 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 +  (exit $ac_status); }; }; then
18558 +  ac_cv_lib_nsl_gethostent=yes
18559 +else
18560 +  echo "$as_me: failed program was:" >&5
18561 +cat conftest.$ac_ext >&5
18562 +ac_cv_lib_nsl_gethostent=no
18563 +fi
18564 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18565 +LIBS=$ac_check_lib_save_LIBS
18566 +fi
18567 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
18568 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
18569 +if test $ac_cv_lib_nsl_gethostent = yes; then
18570 +  cat >>confdefs.h <<_ACEOF
18571 +#define HAVE_LIBNSL 1
18572 +_ACEOF
18573  
18574    LIBS="-lnsl $LIBS"
18575  
18576 -else
18577 -  echo "$ac_t""no" 1>&6
18578  fi
18579  
18580  fi
18581  
18582 -        echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
18583 -echo "configure:4868: checking for setsockopt" >&5
18584 -if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
18585 -  echo $ac_n "(cached) $ac_c" 1>&6
18586 +        echo "$as_me:$LINENO: checking for setsockopt" >&5
18587 +echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
18588 +if test "${ac_cv_func_setsockopt+set}" = set; then
18589 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18590  else
18591 -  cat > conftest.$ac_ext <<EOF
18592 -#line 4873 "configure"
18593 +  cat >conftest.$ac_ext <<_ACEOF
18594 +#line $LINENO "configure"
18595  #include "confdefs.h"
18596  /* System header to define __stub macros and hopefully few prototypes,
18597 -    which can conflict with char setsockopt(); below.  */
18598 +    which can conflict with char setsockopt (); below.  */
18599  #include <assert.h>
18600  /* Override any gcc2 internal prototype to avoid an error.  */
18601 +#ifdef __cplusplus
18602 +extern "C"
18603 +#endif
18604  /* We use char because int might match the return type of a gcc2
18605 -    builtin and then its argument prototype would still apply.  */
18606 -char setsockopt();
18607 -
18608 -int main() {
18609 +   builtin and then its argument prototype would still apply.  */
18610 +char setsockopt ();
18611 +char (*f) ();
18612  
18613 +#ifdef F77_DUMMY_MAIN
18614 +#  ifdef __cplusplus
18615 +     extern "C"
18616 +#  endif
18617 +   int F77_DUMMY_MAIN() { return 1; }
18618 +#endif
18619 +int
18620 +main ()
18621 +{
18622  /* The GNU C library defines this for functions which it implements
18623      to always fail with ENOSYS.  Some functions are actually named
18624      something starting with __ and the normal name is an alias.  */
18625  #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
18626  choke me
18627  #else
18628 -setsockopt();
18629 +f = setsockopt;
18630  #endif
18631  
18632 -; return 0; }
18633 -EOF
18634 -if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635 -  rm -rf conftest*
18636 -  eval "ac_cv_func_setsockopt=yes"
18637 -else
18638 -  echo "configure: failed program was:" >&5
18639 -  cat conftest.$ac_ext >&5
18640 -  rm -rf conftest*
18641 -  eval "ac_cv_func_setsockopt=no"
18642 -fi
18643 -rm -f conftest*
18644 -fi
18645 -
18646 -if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
18647 -  echo "$ac_t""yes" 1>&6
18648 +  ;
18649 +  return 0;
18650 +}
18651 +_ACEOF
18652 +rm -f conftest.$ac_objext conftest$ac_exeext
18653 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654 +  (eval $ac_link) 2>&5
18655 +  ac_status=$?
18656 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 +  (exit $ac_status); } &&
18658 +         { ac_try='test -s conftest$ac_exeext'
18659 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 +  (eval $ac_try) 2>&5
18661 +  ac_status=$?
18662 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 +  (exit $ac_status); }; }; then
18664 +  ac_cv_func_setsockopt=yes
18665 +else
18666 +  echo "$as_me: failed program was:" >&5
18667 +cat conftest.$ac_ext >&5
18668 +ac_cv_func_setsockopt=no
18669 +fi
18670 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18671 +fi
18672 +echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
18673 +echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
18674 +if test $ac_cv_func_setsockopt = yes; then
18675    :
18676  else
18677 -  echo "$ac_t""no" 1>&6
18678 -echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
18679 -echo "configure:4914: checking for setsockopt in -lsocket" >&5
18680 -ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
18681 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18682 -  echo $ac_n "(cached) $ac_c" 1>&6
18683 -else
18684 -  ac_save_LIBS="$LIBS"
18685 -LIBS="-lsocket  $LIBS"
18686 -cat > conftest.$ac_ext <<EOF
18687 -#line 4922 "configure"
18688 -#include "confdefs.h"
18689 -/* Override any gcc2 internal prototype to avoid an error.  */
18690 -/* We use char because int might match the return type of a gcc2
18691 -    builtin and then its argument prototype would still apply.  */
18692 -char setsockopt();
18693  
18694 -int main() {
18695 -setsockopt()
18696 -; return 0; }
18697 -EOF
18698 -if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18699 -  rm -rf conftest*
18700 -  eval "ac_cv_lib_$ac_lib_var=yes"
18701 +echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
18702 +echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
18703 +if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
18704 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18705  else
18706 -  echo "configure: failed program was:" >&5
18707 -  cat conftest.$ac_ext >&5
18708 -  rm -rf conftest*
18709 -  eval "ac_cv_lib_$ac_lib_var=no"
18710 -fi
18711 -rm -f conftest*
18712 -LIBS="$ac_save_LIBS"
18713 +  ac_check_lib_save_LIBS=$LIBS
18714 +LIBS="-lsocket  $LIBS"
18715 +cat >conftest.$ac_ext <<_ACEOF
18716 +#line $LINENO "configure"
18717 +#include "confdefs.h"
18718  
18719 -fi
18720 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18721 -  echo "$ac_t""yes" 1>&6
18722 -    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
18723 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18724 -  cat >> confdefs.h <<EOF
18725 -#define $ac_tr_lib 1
18726 -EOF
18727 +/* Override any gcc2 internal prototype to avoid an error.  */
18728 +#ifdef __cplusplus
18729 +extern "C"
18730 +#endif
18731 +/* We use char because int might match the return type of a gcc2
18732 +   builtin and then its argument prototype would still apply.  */
18733 +char setsockopt ();
18734 +#ifdef F77_DUMMY_MAIN
18735 +#  ifdef __cplusplus
18736 +     extern "C"
18737 +#  endif
18738 +   int F77_DUMMY_MAIN() { return 1; }
18739 +#endif
18740 +int
18741 +main ()
18742 +{
18743 +setsockopt ();
18744 +  ;
18745 +  return 0;
18746 +}
18747 +_ACEOF
18748 +rm -f conftest.$ac_objext conftest$ac_exeext
18749 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750 +  (eval $ac_link) 2>&5
18751 +  ac_status=$?
18752 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 +  (exit $ac_status); } &&
18754 +         { ac_try='test -s conftest$ac_exeext'
18755 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 +  (eval $ac_try) 2>&5
18757 +  ac_status=$?
18758 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 +  (exit $ac_status); }; }; then
18760 +  ac_cv_lib_socket_setsockopt=yes
18761 +else
18762 +  echo "$as_me: failed program was:" >&5
18763 +cat conftest.$ac_ext >&5
18764 +ac_cv_lib_socket_setsockopt=no
18765 +fi
18766 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18767 +LIBS=$ac_check_lib_save_LIBS
18768 +fi
18769 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
18770 +echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
18771 +if test $ac_cv_lib_socket_setsockopt = yes; then
18772 +  cat >>confdefs.h <<_ACEOF
18773 +#define HAVE_LIBSOCKET 1
18774 +_ACEOF
18775  
18776    LIBS="-lsocket $LIBS"
18777  
18778 -else
18779 -  echo "$ac_t""no" 1>&6
18780  fi
18781  
18782  fi
18783  
18784 -        for ac_func in getaddrinfo
18785 +
18786 +for ac_func in getaddrinfo
18787  do
18788 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18789 -echo "configure:4965: checking for $ac_func" >&5
18790 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18791 -  echo $ac_n "(cached) $ac_c" 1>&6
18792 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18793 +echo "$as_me:$LINENO: checking for $ac_func" >&5
18794 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18795 +if eval "test \"\${$as_ac_var+set}\" = set"; then
18796 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18797  else
18798 -  cat > conftest.$ac_ext <<EOF
18799 -#line 4970 "configure"
18800 +  cat >conftest.$ac_ext <<_ACEOF
18801 +#line $LINENO "configure"
18802  #include "confdefs.h"
18803  /* System header to define __stub macros and hopefully few prototypes,
18804 -    which can conflict with char $ac_func(); below.  */
18805 +    which can conflict with char $ac_func (); below.  */
18806  #include <assert.h>
18807  /* Override any gcc2 internal prototype to avoid an error.  */
18808 +#ifdef __cplusplus
18809 +extern "C"
18810 +#endif
18811  /* We use char because int might match the return type of a gcc2
18812 -    builtin and then its argument prototype would still apply.  */
18813 -char $ac_func();
18814 -
18815 -int main() {
18816 +   builtin and then its argument prototype would still apply.  */
18817 +char $ac_func ();
18818 +char (*f) ();
18819  
18820 +#ifdef F77_DUMMY_MAIN
18821 +#  ifdef __cplusplus
18822 +     extern "C"
18823 +#  endif
18824 +   int F77_DUMMY_MAIN() { return 1; }
18825 +#endif
18826 +int
18827 +main ()
18828 +{
18829  /* The GNU C library defines this for functions which it implements
18830      to always fail with ENOSYS.  Some functions are actually named
18831      something starting with __ and the normal name is an alias.  */
18832  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18833  choke me
18834  #else
18835 -$ac_func();
18836 +f = $ac_func;
18837  #endif
18838  
18839 -; return 0; }
18840 -EOF
18841 -if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18842 -  rm -rf conftest*
18843 -  eval "ac_cv_func_$ac_func=yes"
18844 -else
18845 -  echo "configure: failed program was:" >&5
18846 -  cat conftest.$ac_ext >&5
18847 -  rm -rf conftest*
18848 -  eval "ac_cv_func_$ac_func=no"
18849 -fi
18850 -rm -f conftest*
18851 -fi
18852 +  ;
18853 +  return 0;
18854 +}
18855 +_ACEOF
18856 +rm -f conftest.$ac_objext conftest$ac_exeext
18857 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18858 +  (eval $ac_link) 2>&5
18859 +  ac_status=$?
18860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 +  (exit $ac_status); } &&
18862 +         { ac_try='test -s conftest$ac_exeext'
18863 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 +  (eval $ac_try) 2>&5
18865 +  ac_status=$?
18866 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 +  (exit $ac_status); }; }; then
18868 +  eval "$as_ac_var=yes"
18869 +else
18870 +  echo "$as_me: failed program was:" >&5
18871 +cat conftest.$ac_ext >&5
18872 +eval "$as_ac_var=no"
18873 +fi
18874 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18875 +fi
18876 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18877 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18878 +if test `eval echo '${'$as_ac_var'}'` = yes; then
18879 +  cat >>confdefs.h <<_ACEOF
18880 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 +_ACEOF
18882  
18883 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18884 -  echo "$ac_t""yes" 1>&6
18885 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18886 -  cat >> confdefs.h <<EOF
18887 -#define $ac_tr_func 1
18888 -EOF
18889
18890 -else
18891 -  echo "$ac_t""no" 1>&6
18892  fi
18893  done
18894  
18895 -        cat >> confdefs.h <<\EOF
18896 +
18897 +cat >>confdefs.h <<\_ACEOF
18898  #define USE_SOCKET 1
18899 -EOF
18900 +_ACEOF
18901  
18902          MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
18903  fi
18904  
18905  
18906 +
18907  # Check whether --with-gss or --without-gss was given.
18908  if test "${with_gss+set}" = set; then
18909    withval="$with_gss"
18910    gss_prefix="$withval"
18911  else
18912    gss_prefix="no"
18913 -fi
18914 -
18915 +fi;
18916  if test "$gss_prefix" != "no"
18917  then
18918    if test "$need_imap" = "yes"
18919    then
18920 -    
18921 +
18922    GSSAPI_PREFIX=$gss_prefix
18923    GSSAPI_IMPL="none"
18924      if test "$GSSAPI_PREFIX" != "yes"
18925 @@ -5046,38 +9407,42 @@
18926    fi
18927    # Extract the first word of "krb5-config", so it can be a program name with args.
18928  set dummy krb5-config; ac_word=$2
18929 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
18930 -echo "configure:5049: checking for $ac_word" >&5
18931 -if eval "test \"`echo '$''{'ac_cv_path_KRB5CFGPATH'+set}'`\" = set"; then
18932 -  echo $ac_n "(cached) $ac_c" 1>&6
18933 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18934 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18935 +if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
18936 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18937  else
18938 -  case "$KRB5CFGPATH" in
18939 -  /*)
18940 +  case $KRB5CFGPATH in
18941 +  [\\/]* | ?:[\\/]*)
18942    ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
18943    ;;
18944 -  ?:/*)                         
18945 -  ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a dos path.
18946 -  ;;
18947    *)
18948 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
18949 -  ac_dummy="$krb5_path"
18950 -  for ac_dir in $ac_dummy; do 
18951 -    test -z "$ac_dir" && ac_dir=.
18952 -    if test -f $ac_dir/$ac_word; then
18953 -      ac_cv_path_KRB5CFGPATH="$ac_dir/$ac_word"
18954 -      break
18955 -    fi
18956 -  done
18957 -  IFS="$ac_save_ifs"
18958 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 +for as_dir in $krb5_path
18960 +do
18961 +  IFS=$as_save_IFS
18962 +  test -z "$as_dir" && as_dir=.
18963 +  for ac_exec_ext in '' $ac_executable_extensions; do
18964 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18965 +    ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
18966 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18967 +    break 2
18968 +  fi
18969 +done
18970 +done
18971 +
18972    test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
18973    ;;
18974  esac
18975  fi
18976 -KRB5CFGPATH="$ac_cv_path_KRB5CFGPATH"
18977 +KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
18978 +
18979  if test -n "$KRB5CFGPATH"; then
18980 -  echo "$ac_t""$KRB5CFGPATH" 1>&6
18981 +  echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
18982 +echo "${ECHO_T}$KRB5CFGPATH" >&6
18983  else
18984 -  echo "$ac_t""no" 1>&6
18985 +  echo "$as_me:$LINENO: result: no" >&5
18986 +echo "${ECHO_T}no" >&6
18987  fi
18988  
18989    if test "$KRB5CFGPATH" != "none"
18990 @@ -5101,141 +9466,198 @@
18991        LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
18992      fi
18993  
18994 -        echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
18995 -echo "configure:5104: checking for gss_init_sec_context in -lgssapi_krb5" >&5
18996 -ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
18997 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18998 -  echo $ac_n "(cached) $ac_c" 1>&6
18999 +        echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
19000 +echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
19001 +if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
19002 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19003  else
19004 -  ac_save_LIBS="$LIBS"
19005 +  ac_check_lib_save_LIBS=$LIBS
19006  LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
19007 -cat > conftest.$ac_ext <<EOF
19008 -#line 5112 "configure"
19009 +cat >conftest.$ac_ext <<_ACEOF
19010 +#line $LINENO "configure"
19011  #include "confdefs.h"
19012 +
19013  /* Override any gcc2 internal prototype to avoid an error.  */
19014 +#ifdef __cplusplus
19015 +extern "C"
19016 +#endif
19017  /* We use char because int might match the return type of a gcc2
19018 -    builtin and then its argument prototype would still apply.  */
19019 -char gss_init_sec_context();
19020 -
19021 -int main() {
19022 -gss_init_sec_context()
19023 -; return 0; }
19024 -EOF
19025 -if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19026 -  rm -rf conftest*
19027 -  eval "ac_cv_lib_$ac_lib_var=yes"
19028 -else
19029 -  echo "configure: failed program was:" >&5
19030 -  cat conftest.$ac_ext >&5
19031 -  rm -rf conftest*
19032 -  eval "ac_cv_lib_$ac_lib_var=no"
19033 -fi
19034 -rm -f conftest*
19035 -LIBS="$ac_save_LIBS"
19036 +   builtin and then its argument prototype would still apply.  */
19037 +char gss_init_sec_context ();
19038 +#ifdef F77_DUMMY_MAIN
19039 +#  ifdef __cplusplus
19040 +     extern "C"
19041 +#  endif
19042 +   int F77_DUMMY_MAIN() { return 1; }
19043 +#endif
19044 +int
19045 +main ()
19046 +{
19047 +gss_init_sec_context ();
19048 +  ;
19049 +  return 0;
19050 +}
19051 +_ACEOF
19052 +rm -f conftest.$ac_objext conftest$ac_exeext
19053 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054 +  (eval $ac_link) 2>&5
19055 +  ac_status=$?
19056 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 +  (exit $ac_status); } &&
19058 +         { ac_try='test -s conftest$ac_exeext'
19059 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 +  (eval $ac_try) 2>&5
19061 +  ac_status=$?
19062 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 +  (exit $ac_status); }; }; then
19064 +  ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
19065 +else
19066 +  echo "$as_me: failed program was:" >&5
19067 +cat conftest.$ac_ext >&5
19068 +ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
19069 +fi
19070 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19071 +LIBS=$ac_check_lib_save_LIBS
19072 +fi
19073 +echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
19074 +echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
19075 +if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
19076  
19077 -fi
19078 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19079 -  echo "$ac_t""yes" 1>&6
19080 -  
19081        GSSAPI_IMPL="MIT",
19082        GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
19083 -      
19084 -else
19085 -  echo "$ac_t""no" 1>&6
19086 +
19087  fi
19088  
19089  
19090          if test "$GSSAPI_IMPL" = "none"
19091      then
19092 -      echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
19093 -echo "configure:5150: checking for gss_init_sec_context in -lgssapi" >&5
19094 -ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
19095 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19096 -  echo $ac_n "(cached) $ac_c" 1>&6
19097 +      echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
19098 +echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
19099 +if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
19100 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19101  else
19102 -  ac_save_LIBS="$LIBS"
19103 +  ac_check_lib_save_LIBS=$LIBS
19104  LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
19105 -cat > conftest.$ac_ext <<EOF
19106 -#line 5158 "configure"
19107 +cat >conftest.$ac_ext <<_ACEOF
19108 +#line $LINENO "configure"
19109  #include "confdefs.h"
19110 +
19111  /* Override any gcc2 internal prototype to avoid an error.  */
19112 +#ifdef __cplusplus
19113 +extern "C"
19114 +#endif
19115  /* We use char because int might match the return type of a gcc2
19116 -    builtin and then its argument prototype would still apply.  */
19117 -char gss_init_sec_context();
19118 -
19119 -int main() {
19120 -gss_init_sec_context()
19121 -; return 0; }
19122 -EOF
19123 -if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19124 -  rm -rf conftest*
19125 -  eval "ac_cv_lib_$ac_lib_var=yes"
19126 -else
19127 -  echo "configure: failed program was:" >&5
19128 -  cat conftest.$ac_ext >&5
19129 -  rm -rf conftest*
19130 -  eval "ac_cv_lib_$ac_lib_var=no"
19131 -fi
19132 -rm -f conftest*
19133 -LIBS="$ac_save_LIBS"
19134 +   builtin and then its argument prototype would still apply.  */
19135 +char gss_init_sec_context ();
19136 +#ifdef F77_DUMMY_MAIN
19137 +#  ifdef __cplusplus
19138 +     extern "C"
19139 +#  endif
19140 +   int F77_DUMMY_MAIN() { return 1; }
19141 +#endif
19142 +int
19143 +main ()
19144 +{
19145 +gss_init_sec_context ();
19146 +  ;
19147 +  return 0;
19148 +}
19149 +_ACEOF
19150 +rm -f conftest.$ac_objext conftest$ac_exeext
19151 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19152 +  (eval $ac_link) 2>&5
19153 +  ac_status=$?
19154 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 +  (exit $ac_status); } &&
19156 +         { ac_try='test -s conftest$ac_exeext'
19157 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 +  (eval $ac_try) 2>&5
19159 +  ac_status=$?
19160 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 +  (exit $ac_status); }; }; then
19162 +  ac_cv_lib_gssapi_gss_init_sec_context=yes
19163 +else
19164 +  echo "$as_me: failed program was:" >&5
19165 +cat conftest.$ac_ext >&5
19166 +ac_cv_lib_gssapi_gss_init_sec_context=no
19167 +fi
19168 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19169 +LIBS=$ac_check_lib_save_LIBS
19170 +fi
19171 +echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
19172 +echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
19173 +if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
19174  
19175 -fi
19176 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19177 -  echo "$ac_t""yes" 1>&6
19178 -  
19179            GSSAPI_IMPL="Heimdal"
19180            GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
19181            GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
19182 -          
19183 -else
19184 -  echo "$ac_t""no" 1>&6
19185 +
19186  fi
19187  
19188      fi
19189  
19190                              if test "$GSSAPI_IMPL" = "none"
19191      then
19192 -      echo $ac_n "checking for g_order_init in -lgssapi_krb5""... $ac_c" 1>&6
19193 -echo "configure:5198: checking for g_order_init in -lgssapi_krb5" >&5
19194 -ac_lib_var=`echo gssapi_krb5'_'g_order_init | sed 'y%./+-%__p_%'`
19195 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19196 -  echo $ac_n "(cached) $ac_c" 1>&6
19197 +      echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
19198 +echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
19199 +if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
19200 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19201  else
19202 -  ac_save_LIBS="$LIBS"
19203 +  ac_check_lib_save_LIBS=$LIBS
19204  LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
19205 -cat > conftest.$ac_ext <<EOF
19206 -#line 5206 "configure"
19207 +cat >conftest.$ac_ext <<_ACEOF
19208 +#line $LINENO "configure"
19209  #include "confdefs.h"
19210 +
19211  /* Override any gcc2 internal prototype to avoid an error.  */
19212 +#ifdef __cplusplus
19213 +extern "C"
19214 +#endif
19215  /* We use char because int might match the return type of a gcc2
19216 -    builtin and then its argument prototype would still apply.  */
19217 -char g_order_init();
19218 -
19219 -int main() {
19220 -g_order_init()
19221 -; return 0; }
19222 -EOF
19223 -if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19224 -  rm -rf conftest*
19225 -  eval "ac_cv_lib_$ac_lib_var=yes"
19226 -else
19227 -  echo "configure: failed program was:" >&5
19228 -  cat conftest.$ac_ext >&5
19229 -  rm -rf conftest*
19230 -  eval "ac_cv_lib_$ac_lib_var=no"
19231 -fi
19232 -rm -f conftest*
19233 -LIBS="$ac_save_LIBS"
19234 +   builtin and then its argument prototype would still apply.  */
19235 +char g_order_init ();
19236 +#ifdef F77_DUMMY_MAIN
19237 +#  ifdef __cplusplus
19238 +     extern "C"
19239 +#  endif
19240 +   int F77_DUMMY_MAIN() { return 1; }
19241 +#endif
19242 +int
19243 +main ()
19244 +{
19245 +g_order_init ();
19246 +  ;
19247 +  return 0;
19248 +}
19249 +_ACEOF
19250 +rm -f conftest.$ac_objext conftest$ac_exeext
19251 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 +  (eval $ac_link) 2>&5
19253 +  ac_status=$?
19254 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 +  (exit $ac_status); } &&
19256 +         { ac_try='test -s conftest$ac_exeext'
19257 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 +  (eval $ac_try) 2>&5
19259 +  ac_status=$?
19260 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 +  (exit $ac_status); }; }; then
19262 +  ac_cv_lib_gssapi_krb5_g_order_init=yes
19263 +else
19264 +  echo "$as_me: failed program was:" >&5
19265 +cat conftest.$ac_ext >&5
19266 +ac_cv_lib_gssapi_krb5_g_order_init=no
19267 +fi
19268 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19269 +LIBS=$ac_check_lib_save_LIBS
19270 +fi
19271 +echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
19272 +echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
19273 +if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
19274  
19275 -fi
19276 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19277 -  echo "$ac_t""yes" 1>&6
19278 -  
19279          GSSAPI_IMPL="OldMIT",
19280          GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
19281 -        
19282 -else
19283 -  echo "$ac_t""no" 1>&6
19284 +
19285  fi
19286  
19287      fi
19288 @@ -5245,76 +9667,88 @@
19289    LDFLAGS="$saved_LDFLAGS"
19290    LIBS="$saved_LIBS"
19291  
19292 -    echo $ac_n "checking GSSAPI implementation""... $ac_c" 1>&6
19293 -echo "configure:5248: checking GSSAPI implementation" >&5
19294 -    echo "$ac_t""$GSSAPI_IMPL" 1>&6
19295 +    echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
19296 +echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
19297 +    echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
19298 +echo "${ECHO_T}$GSSAPI_IMPL" >&6
19299      if test "$GSSAPI_IMPL" = "none"
19300      then
19301 -      cat > confcache <<\EOF
19302 +      cat >confcache <<\_ACEOF
19303  # This file is a shell script that caches the results of configure
19304  # tests run on this system so they can be shared between configure
19305 -# scripts and configure runs.  It is not useful on other systems.
19306 -# If it contains results you don't want to keep, you may remove or edit it.
19307 +# scripts and configure runs, see configure's option --config-cache.
19308 +# It is not useful on other systems.  If it contains results you don't
19309 +# want to keep, you may remove or edit it.
19310  #
19311 -# By default, configure uses ./config.cache as the cache file,
19312 -# creating it if it does not exist already.  You can give configure
19313 -# the --cache-file=FILE option to use a different cache file; that is
19314 -# what configure does when it calls configure scripts in
19315 -# subdirectories, so they share the cache.
19316 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
19317 -# config.status only pays attention to the cache file if you give it the
19318 -# --recheck option to rerun configure.
19319 +# config.status only pays attention to the cache file if you give it
19320 +# the --recheck option to rerun configure.
19321  #
19322 -EOF
19323 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
19324 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
19325 +# following values.
19326 +
19327 +_ACEOF
19328 +
19329  # The following way of writing the cache mishandles newlines in values,
19330  # but we know of no workaround that is simple, portable, and efficient.
19331  # So, don't put newlines in cache variables' values.
19332  # Ultrix sh set writes to stderr and can't be redirected directly,
19333  # and sets the high bit in the cache file unless we assign to the vars.
19334 -(set) 2>&1 |
19335 -  case `(ac_space=' '; set | grep ac_space) 2>&1` in
19336 -  *ac_space=\ *)
19337 -    # `set' does not quote correctly, so add quotes (double-quote substitution
19338 -    # turns \\\\ into \\, and sed turns \\ into \).
19339 -    sed -n \
19340 -      -e "s/'/'\\\\''/g" \
19341 -      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19342 -    ;;
19343 -  *)
19344 -    # `set' quotes correctly as required by POSIX, so do not add quotes.
19345 -    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19346 -    ;;
19347 -  esac >> confcache
19348 -if cmp -s $cache_file confcache; then
19349 -  :
19350 -else
19351 +{
19352 +  (set) 2>&1 |
19353 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19354 +    *ac_space=\ *)
19355 +      # `set' does not quote correctly, so add quotes (double-quote
19356 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
19357 +      sed -n \
19358 +        "s/'/'\\\\''/g;
19359 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19360 +      ;;
19361 +    *)
19362 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
19363 +      sed -n \
19364 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19365 +      ;;
19366 +    esac;
19367 +} |
19368 +  sed '
19369 +     t clear
19370 +     : clear
19371 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19372 +     t end
19373 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19374 +     : end' >>confcache
19375 +if cmp -s $cache_file confcache; then :; else
19376    if test -w $cache_file; then
19377 -    echo "updating cache $cache_file"
19378 -    cat confcache > $cache_file
19379 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19380 +    cat confcache >$cache_file
19381    else
19382      echo "not updating unwritable cache $cache_file"
19383    fi
19384  fi
19385  rm -f confcache
19386 -
19387 -      echo "$ac_t""GSSAPI libraries not found" 1>&6
19388 +      echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
19389 +echo "${ECHO_T}GSSAPI libraries not found" >&6
19390      fi
19391      if test "$GSSAPI_IMPL" = "Heimdal"
19392      then
19393 -      cat >> confdefs.h <<\EOF
19394 +
19395 +cat >>confdefs.h <<\_ACEOF
19396  #define HAVE_HEIMDAL 1
19397 -EOF
19398 +_ACEOF
19399  
19400      fi
19401      CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
19402      MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
19403 -    cat >> confdefs.h <<\EOF
19404 +
19405 +cat >>confdefs.h <<\_ACEOF
19406  #define USE_GSS 1
19407 -EOF
19408 +_ACEOF
19409  
19410      need_gss="yes"
19411    else
19412 -    echo "configure: warning: GSS was requested but IMAP is not enabled" 1>&2
19413 +    { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
19414 +echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
19415    fi
19416  fi
19417  
19418 @@ -5328,13 +9762,17 @@
19419  fi
19420  
19421  
19422 +
19423 +
19424  # Check whether --with-ssl or --without-ssl was given.
19425  if test "${with_ssl+set}" = set; then
19426    withval="$with_ssl"
19427           if test "$with_ssl" != "no"
19428          then
19429            if test "$need_socket" != "yes"; then
19430 -           { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
19431 +           { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
19432 +echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
19433 +   { (exit 1); exit 1; }; }
19434            fi
19435  
19436            if test "$with_ssl" != "yes"
19437 @@ -5344,162 +9782,227 @@
19438            fi
19439            saved_LIBS="$LIBS"
19440  
19441 -          echo $ac_n "checking for X509_new in -lcrypto""... $ac_c" 1>&6
19442 -echo "configure:5347: checking for X509_new in -lcrypto" >&5
19443 -ac_lib_var=`echo crypto'_'X509_new | sed 'y%./+-%__p_%'`
19444 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19445 -  echo $ac_n "(cached) $ac_c" 1>&6
19446 +
19447 +echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
19448 +echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
19449 +if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
19450 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19451  else
19452 -  ac_save_LIBS="$LIBS"
19453 +  ac_check_lib_save_LIBS=$LIBS
19454  LIBS="-lcrypto  $LIBS"
19455 -cat > conftest.$ac_ext <<EOF
19456 -#line 5355 "configure"
19457 +cat >conftest.$ac_ext <<_ACEOF
19458 +#line $LINENO "configure"
19459  #include "confdefs.h"
19460 +
19461  /* Override any gcc2 internal prototype to avoid an error.  */
19462 +#ifdef __cplusplus
19463 +extern "C"
19464 +#endif
19465  /* We use char because int might match the return type of a gcc2
19466 -    builtin and then its argument prototype would still apply.  */
19467 -char X509_new();
19468 -
19469 -int main() {
19470 -X509_new()
19471 -; return 0; }
19472 -EOF
19473 -if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19474 -  rm -rf conftest*
19475 -  eval "ac_cv_lib_$ac_lib_var=yes"
19476 -else
19477 -  echo "configure: failed program was:" >&5
19478 -  cat conftest.$ac_ext >&5
19479 -  rm -rf conftest*
19480 -  eval "ac_cv_lib_$ac_lib_var=no"
19481 -fi
19482 -rm -f conftest*
19483 -LIBS="$ac_save_LIBS"
19484 -
19485 -fi
19486 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19487 -  echo "$ac_t""yes" 1>&6
19488 -    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19489 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19490 -  cat >> confdefs.h <<EOF
19491 -#define $ac_tr_lib 1
19492 -EOF
19493 +   builtin and then its argument prototype would still apply.  */
19494 +char X509_new ();
19495 +#ifdef F77_DUMMY_MAIN
19496 +#  ifdef __cplusplus
19497 +     extern "C"
19498 +#  endif
19499 +   int F77_DUMMY_MAIN() { return 1; }
19500 +#endif
19501 +int
19502 +main ()
19503 +{
19504 +X509_new ();
19505 +  ;
19506 +  return 0;
19507 +}
19508 +_ACEOF
19509 +rm -f conftest.$ac_objext conftest$ac_exeext
19510 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 +  (eval $ac_link) 2>&5
19512 +  ac_status=$?
19513 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 +  (exit $ac_status); } &&
19515 +         { ac_try='test -s conftest$ac_exeext'
19516 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 +  (eval $ac_try) 2>&5
19518 +  ac_status=$?
19519 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 +  (exit $ac_status); }; }; then
19521 +  ac_cv_lib_crypto_X509_new=yes
19522 +else
19523 +  echo "$as_me: failed program was:" >&5
19524 +cat conftest.$ac_ext >&5
19525 +ac_cv_lib_crypto_X509_new=no
19526 +fi
19527 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19528 +LIBS=$ac_check_lib_save_LIBS
19529 +fi
19530 +echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
19531 +echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
19532 +if test $ac_cv_lib_crypto_X509_new = yes; then
19533 +  cat >>confdefs.h <<_ACEOF
19534 +#define HAVE_LIBCRYPTO 1
19535 +_ACEOF
19536  
19537    LIBS="-lcrypto $LIBS"
19538  
19539  else
19540 -  echo "$ac_t""no" 1>&6
19541 -{ echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
19542 +  { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
19543 +echo "$as_me: error: Unable to find SSL library" >&2;}
19544 +   { (exit 1); exit 1; }; }
19545  fi
19546  
19547 -          echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
19548 -echo "configure:5395: checking for SSL_new in -lssl" >&5
19549 -ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
19550 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19551 -  echo $ac_n "(cached) $ac_c" 1>&6
19552 +
19553 +echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19554 +echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19555 +if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19556 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19557  else
19558 -  ac_save_LIBS="$LIBS"
19559 +  ac_check_lib_save_LIBS=$LIBS
19560  LIBS="-lssl -lcrypto $LIBS"
19561 -cat > conftest.$ac_ext <<EOF
19562 -#line 5403 "configure"
19563 +cat >conftest.$ac_ext <<_ACEOF
19564 +#line $LINENO "configure"
19565  #include "confdefs.h"
19566 +
19567  /* Override any gcc2 internal prototype to avoid an error.  */
19568 +#ifdef __cplusplus
19569 +extern "C"
19570 +#endif
19571  /* We use char because int might match the return type of a gcc2
19572 -    builtin and then its argument prototype would still apply.  */
19573 -char SSL_new();
19574 -
19575 -int main() {
19576 -SSL_new()
19577 -; return 0; }
19578 -EOF
19579 -if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19580 -  rm -rf conftest*
19581 -  eval "ac_cv_lib_$ac_lib_var=yes"
19582 -else
19583 -  echo "configure: failed program was:" >&5
19584 -  cat conftest.$ac_ext >&5
19585 -  rm -rf conftest*
19586 -  eval "ac_cv_lib_$ac_lib_var=no"
19587 -fi
19588 -rm -f conftest*
19589 -LIBS="$ac_save_LIBS"
19590 -
19591 -fi
19592 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19593 -  echo "$ac_t""yes" 1>&6
19594 -    ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19595 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19596 -  cat >> confdefs.h <<EOF
19597 -#define $ac_tr_lib 1
19598 -EOF
19599 +   builtin and then its argument prototype would still apply.  */
19600 +char SSL_new ();
19601 +#ifdef F77_DUMMY_MAIN
19602 +#  ifdef __cplusplus
19603 +     extern "C"
19604 +#  endif
19605 +   int F77_DUMMY_MAIN() { return 1; }
19606 +#endif
19607 +int
19608 +main ()
19609 +{
19610 +SSL_new ();
19611 +  ;
19612 +  return 0;
19613 +}
19614 +_ACEOF
19615 +rm -f conftest.$ac_objext conftest$ac_exeext
19616 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 +  (eval $ac_link) 2>&5
19618 +  ac_status=$?
19619 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 +  (exit $ac_status); } &&
19621 +         { ac_try='test -s conftest$ac_exeext'
19622 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 +  (eval $ac_try) 2>&5
19624 +  ac_status=$?
19625 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 +  (exit $ac_status); }; }; then
19627 +  ac_cv_lib_ssl_SSL_new=yes
19628 +else
19629 +  echo "$as_me: failed program was:" >&5
19630 +cat conftest.$ac_ext >&5
19631 +ac_cv_lib_ssl_SSL_new=no
19632 +fi
19633 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19634 +LIBS=$ac_check_lib_save_LIBS
19635 +fi
19636 +echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19637 +echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19638 +if test $ac_cv_lib_ssl_SSL_new = yes; then
19639 +  cat >>confdefs.h <<_ACEOF
19640 +#define HAVE_LIBSSL 1
19641 +_ACEOF
19642  
19643    LIBS="-lssl $LIBS"
19644  
19645  else
19646 -  echo "$ac_t""no" 1>&6
19647 -{ echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
19648 +  { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
19649 +echo "$as_me: error: Unable to find SSL library" >&2;}
19650 +   { (exit 1); exit 1; }; }
19651  fi
19652  
19653  
19654 -          for ac_func in RAND_status RAND_egd
19655 +
19656 +
19657 +for ac_func in RAND_status RAND_egd
19658  do
19659 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19660 -echo "configure:5446: checking for $ac_func" >&5
19661 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19662 -  echo $ac_n "(cached) $ac_c" 1>&6
19663 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19664 +echo "$as_me:$LINENO: checking for $ac_func" >&5
19665 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19666 +if eval "test \"\${$as_ac_var+set}\" = set"; then
19667 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19668  else
19669 -  cat > conftest.$ac_ext <<EOF
19670 -#line 5451 "configure"
19671 +  cat >conftest.$ac_ext <<_ACEOF
19672 +#line $LINENO "configure"
19673  #include "confdefs.h"
19674  /* System header to define __stub macros and hopefully few prototypes,
19675 -    which can conflict with char $ac_func(); below.  */
19676 +    which can conflict with char $ac_func (); below.  */
19677  #include <assert.h>
19678  /* Override any gcc2 internal prototype to avoid an error.  */
19679 +#ifdef __cplusplus
19680 +extern "C"
19681 +#endif
19682  /* We use char because int might match the return type of a gcc2
19683 -    builtin and then its argument prototype would still apply.  */
19684 -char $ac_func();
19685 -
19686 -int main() {
19687 +   builtin and then its argument prototype would still apply.  */
19688 +char $ac_func ();
19689 +char (*f) ();
19690  
19691 +#ifdef F77_DUMMY_MAIN
19692 +#  ifdef __cplusplus
19693 +     extern "C"
19694 +#  endif
19695 +   int F77_DUMMY_MAIN() { return 1; }
19696 +#endif
19697 +int
19698 +main ()
19699 +{
19700  /* The GNU C library defines this for functions which it implements
19701      to always fail with ENOSYS.  Some functions are actually named
19702      something starting with __ and the normal name is an alias.  */
19703  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19704  choke me
19705  #else
19706 -$ac_func();
19707 +f = $ac_func;
19708  #endif
19709  
19710 -; return 0; }
19711 -EOF
19712 -if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19713 -  rm -rf conftest*
19714 -  eval "ac_cv_func_$ac_func=yes"
19715 +  ;
19716 +  return 0;
19717 +}
19718 +_ACEOF
19719 +rm -f conftest.$ac_objext conftest$ac_exeext
19720 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721 +  (eval $ac_link) 2>&5
19722 +  ac_status=$?
19723 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 +  (exit $ac_status); } &&
19725 +         { ac_try='test -s conftest$ac_exeext'
19726 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 +  (eval $ac_try) 2>&5
19728 +  ac_status=$?
19729 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 +  (exit $ac_status); }; }; then
19731 +  eval "$as_ac_var=yes"
19732  else
19733 -  echo "configure: failed program was:" >&5
19734 -  cat conftest.$ac_ext >&5
19735 -  rm -rf conftest*
19736 -  eval "ac_cv_func_$ac_func=no"
19737 +  echo "$as_me: failed program was:" >&5
19738 +cat conftest.$ac_ext >&5
19739 +eval "$as_ac_var=no"
19740  fi
19741 -rm -f conftest*
19742 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19743  fi
19744 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19745 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19746 +if test `eval echo '${'$as_ac_var'}'` = yes; then
19747 +  cat >>confdefs.h <<_ACEOF
19748 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19749 +_ACEOF
19750  
19751 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19752 -  echo "$ac_t""yes" 1>&6
19753 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19754 -  cat >> confdefs.h <<EOF
19755 -#define $ac_tr_func 1
19756 -EOF
19757
19758 -else
19759 -  echo "$ac_t""no" 1>&6
19760  fi
19761  done
19762  
19763  
19764 -          cat >> confdefs.h <<\EOF
19765 +
19766 +cat >>confdefs.h <<\_ACEOF
19767  #define USE_SSL 1
19768 -EOF
19769 +_ACEOF
19770  
19771            LIBS="$saved_LIBS"
19772            MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
19773 @@ -5508,8 +10011,7 @@
19774  
19775          fi
19776  
19777 -fi
19778 -
19779 +fi;
19780  
19781  
19782  if test x$need_ssl = xyes; then
19783 @@ -5520,13 +10022,17 @@
19784    USE_SSL_FALSE=
19785  fi
19786  
19787 +
19788 +
19789  # Check whether --with-nss or --without-nss was given.
19790  if test "${with_nss+set}" = set; then
19791    withval="$with_nss"
19792           if test "$with_nss" != no
19793          then
19794            if test "$need_socket" != "yes"; then
19795 -           { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
19796 +           { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
19797 +echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
19798 +   { (exit 1); exit 1; }; }
19799            fi
19800  
19801            if test "$with_nss" != "yes"
19802 @@ -5535,9 +10041,10 @@
19803             CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
19804            fi
19805  
19806 -          cat >> confdefs.h <<\EOF
19807 +
19808 +cat >>confdefs.h <<\_ACEOF
19809  #define USE_NSS 1
19810 -EOF
19811 +_ACEOF
19812  
19813            MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
19814            MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
19815 @@ -5547,16 +10054,18 @@
19816            need_ssl=yes
19817          fi
19818  
19819 -fi
19820 +fi;
19821  
19822  
19823  # Check whether --with-sasl or --without-sasl was given.
19824  if test "${with_sasl+set}" = set; then
19825    withval="$with_sasl"
19826 -  
19827 +
19828          if test "$need_socket" != "yes"
19829          then
19830 -          { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
19831 +          { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
19832 +echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
19833 +   { (exit 1); exit 1; }; }
19834          fi
19835  
19836          if test "$with_sasl" != "no"
19837 @@ -5569,68 +10078,89 @@
19838  
19839            saved_LIBS="$LIBS"
19840  
19841 -          echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19842 -echo "configure:5572: checking for sasl_client_init in -lsasl" >&5
19843 -ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
19844 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19845 -  echo $ac_n "(cached) $ac_c" 1>&6
19846 +
19847 +echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
19848 +echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
19849 +if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
19850 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19851  else
19852 -  ac_save_LIBS="$LIBS"
19853 +  ac_check_lib_save_LIBS=$LIBS
19854  LIBS="-lsasl  $LIBS"
19855 -cat > conftest.$ac_ext <<EOF
19856 -#line 5580 "configure"
19857 +cat >conftest.$ac_ext <<_ACEOF
19858 +#line $LINENO "configure"
19859  #include "confdefs.h"
19860 +
19861  /* Override any gcc2 internal prototype to avoid an error.  */
19862 +#ifdef __cplusplus
19863 +extern "C"
19864 +#endif
19865  /* We use char because int might match the return type of a gcc2
19866 -    builtin and then its argument prototype would still apply.  */
19867 -char sasl_client_init();
19868 -
19869 -int main() {
19870 -sasl_client_init()
19871 -; return 0; }
19872 -EOF
19873 -if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19874 -  rm -rf conftest*
19875 -  eval "ac_cv_lib_$ac_lib_var=yes"
19876 -else
19877 -  echo "configure: failed program was:" >&5
19878 -  cat conftest.$ac_ext >&5
19879 -  rm -rf conftest*
19880 -  eval "ac_cv_lib_$ac_lib_var=no"
19881 -fi
19882 -rm -f conftest*
19883 -LIBS="$ac_save_LIBS"
19884 -
19885 -fi
19886 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19887 -  echo "$ac_t""yes" 1>&6
19888 -    ac_tr_lib=HAVE_LIB`echo sasl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19889 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19890 -  cat >> confdefs.h <<EOF
19891 -#define $ac_tr_lib 1
19892 -EOF
19893 +   builtin and then its argument prototype would still apply.  */
19894 +char sasl_client_init ();
19895 +#ifdef F77_DUMMY_MAIN
19896 +#  ifdef __cplusplus
19897 +     extern "C"
19898 +#  endif
19899 +   int F77_DUMMY_MAIN() { return 1; }
19900 +#endif
19901 +int
19902 +main ()
19903 +{
19904 +sasl_client_init ();
19905 +  ;
19906 +  return 0;
19907 +}
19908 +_ACEOF
19909 +rm -f conftest.$ac_objext conftest$ac_exeext
19910 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19911 +  (eval $ac_link) 2>&5
19912 +  ac_status=$?
19913 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 +  (exit $ac_status); } &&
19915 +         { ac_try='test -s conftest$ac_exeext'
19916 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 +  (eval $ac_try) 2>&5
19918 +  ac_status=$?
19919 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 +  (exit $ac_status); }; }; then
19921 +  ac_cv_lib_sasl_sasl_client_init=yes
19922 +else
19923 +  echo "$as_me: failed program was:" >&5
19924 +cat conftest.$ac_ext >&5
19925 +ac_cv_lib_sasl_sasl_client_init=no
19926 +fi
19927 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19928 +LIBS=$ac_check_lib_save_LIBS
19929 +fi
19930 +echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
19931 +echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
19932 +if test $ac_cv_lib_sasl_sasl_client_init = yes; then
19933 +  cat >>confdefs.h <<_ACEOF
19934 +#define HAVE_LIBSASL 1
19935 +_ACEOF
19936  
19937    LIBS="-lsasl $LIBS"
19938  
19939  else
19940 -  echo "$ac_t""no" 1>&6
19941 -{ echo "configure: error: could not find libsasl" 1>&2; exit 1; }
19942 +  { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
19943 +echo "$as_me: error: could not find libsasl" >&2;}
19944 +   { (exit 1); exit 1; }; }
19945  fi
19946  
19947  
19948            MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
19949            MUTTLIBS="$MUTTLIBS -lsasl"
19950            LIBS="$saved_LIBS"
19951 -          cat >> confdefs.h <<\EOF
19952 +
19953 +cat >>confdefs.h <<\_ACEOF
19954  #define USE_SASL 1
19955 -EOF
19956 +_ACEOF
19957  
19958            need_sasl=yes
19959            need_md5=no
19960          fi
19961 -        
19962 -fi
19963  
19964 +fi;
19965  
19966  
19967  if test x$need_sasl = xyes; then
19968 @@ -5641,6 +10171,7 @@
19969    USE_SASL_FALSE=
19970  fi
19971  
19972 +
19973  if test "$need_md5" = "yes"
19974  then
19975          MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
19976 @@ -5651,39 +10182,39 @@
19977  if test "${enable_debug+set}" = set; then
19978    enableval="$enable_debug"
19979     if test x$enableval = xyes ; then
19980 -                cat >> confdefs.h <<\EOF
19981 +
19982 +cat >>confdefs.h <<\_ACEOF
19983  #define DEBUG 1
19984 -EOF
19985 +_ACEOF
19986  
19987            fi
19988 -         
19989 -fi
19990  
19991 +fi;
19992  
19993  # Check whether --enable-flock or --disable-flock was given.
19994  if test "${enable_flock+set}" = set; then
19995    enableval="$enable_flock"
19996    if test $enableval = yes; then
19997 -                cat >> confdefs.h <<\EOF
19998 +
19999 +cat >>confdefs.h <<\_ACEOF
20000  #define USE_FLOCK 1
20001 -EOF
20002 +_ACEOF
20003  
20004          fi
20005 -fi
20006 -
20007 +fi;
20008  
20009  mutt_cv_fcntl=yes
20010  # Check whether --enable-fcntl or --disable-fcntl was given.
20011  if test "${enable_fcntl+set}" = set; then
20012    enableval="$enable_fcntl"
20013    if test $enableval = no; then mutt_cv_fcntl=no; fi
20014 -fi
20015 -
20016 +fi;
20017  
20018  if test $mutt_cv_fcntl = yes; then
20019 -        cat >> confdefs.h <<\EOF
20020 +
20021 +cat >>confdefs.h <<\_ACEOF
20022  #define USE_FCNTL 1
20023 -EOF
20024 +_ACEOF
20025  
20026  fi
20027  
20028 @@ -5694,8 +10225,7 @@
20029    if test $enableval = no; then
20030          mutt_cv_warnings=no
20031  fi
20032 -fi
20033 -
20034 +fi;
20035  
20036  if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
20037          CFLAGS="-Wall -pedantic $CFLAGS"
20038 @@ -5705,84 +10235,83 @@
20039  if test "${enable_nfs_fix+set}" = set; then
20040    enableval="$enable_nfs_fix"
20041    if test x$enableval = xyes; then
20042 -                cat >> confdefs.h <<\EOF
20043 +                cat >>confdefs.h <<\_ACEOF
20044  #define NFS_ATTRIBUTE_HACK 1
20045 -EOF
20046 +_ACEOF
20047  
20048          fi
20049 -fi
20050 -
20051 +fi;
20052  
20053  # Check whether --enable-buffy-size or --disable-buffy-size was given.
20054  if test "${enable_buffy_size+set}" = set; then
20055    enableval="$enable_buffy_size"
20056    if test x$enableval = xyes; then
20057 -                cat >> confdefs.h <<\EOF
20058 +
20059 +cat >>confdefs.h <<\_ACEOF
20060  #define BUFFY_SIZE 1
20061 -EOF
20062 +_ACEOF
20063  
20064          fi
20065 -fi
20066 -
20067 +fi;
20068  
20069  # Check whether --enable-mailtool or --disable-mailtool was given.
20070  if test "${enable_mailtool+set}" = set; then
20071    enableval="$enable_mailtool"
20072    if test x$enableval = xyes; then
20073 -                cat >> confdefs.h <<\EOF
20074 +
20075 +cat >>confdefs.h <<\_ACEOF
20076  #define SUN_ATTACHMENT 1
20077 -EOF
20078 +_ACEOF
20079  
20080          fi
20081 -fi
20082 -
20083 +fi;
20084  
20085  # Check whether --enable-locales-fix or --disable-locales-fix was given.
20086  if test "${enable_locales_fix+set}" = set; then
20087    enableval="$enable_locales_fix"
20088    if test x$enableval = xyes; then
20089 -                cat >> confdefs.h <<\EOF
20090 +
20091 +cat >>confdefs.h <<\_ACEOF
20092  #define LOCALES_HACK 1
20093 -EOF
20094 +_ACEOF
20095  
20096          fi
20097 -fi
20098 +fi;
20099 +
20100 +# Check whether --enable-compressed or --disable-compressed was given.
20101 +if test "${enable_compressed+set}" = set; then
20102 +  enableval="$enable_compressed"
20103 +  if test x$enableval = xyes; then
20104 +
20105 +cat >>confdefs.h <<\_ACEOF
20106 +#define USE_COMPRESSED 1
20107 +_ACEOF
20108 +
20109 +        fi
20110 +fi;
20111  
20112  
20113  # Check whether --with-exec-shell or --without-exec-shell was given.
20114  if test "${with_exec_shell+set}" = set; then
20115    withval="$with_exec_shell"
20116    if test $withval != yes; then
20117 -                cat >> confdefs.h <<EOF
20118 +                cat >>confdefs.h <<_ACEOF
20119  #define EXECSHELL "$withval"
20120 -EOF
20121 +_ACEOF
20122  
20123          fi
20124 -fi
20125 -
20126 +fi;
20127  
20128  # Check whether --enable-exact-address or --disable-exact-address was given.
20129  if test "${enable_exact_address+set}" = set; then
20130    enableval="$enable_exact_address"
20131    if test $enableval = yes; then
20132 -                cat >> confdefs.h <<\EOF
20133 +                cat >>confdefs.h <<\_ACEOF
20134  #define EXACT_ADDRESS 1
20135 -EOF
20136 -
20137 -        fi
20138 -fi
20139 -
20140 -
20141 -# Check whether --enable-compressed or --disable-compressed was given.
20142 -if test "${enable_compressed+set}" = set; then
20143 -  enableval="$enable_compressed"
20144 -  if test x$enableval = xyes; then
20145 -                cat >> confdefs.h <<\EOF
20146 -#define USE_COMPRESSED 1
20147 -EOF
20148 +_ACEOF
20149  
20150          fi
20151 -fi
20152 +fi;
20153  
20154  
20155  
20156 @@ -5790,117 +10319,185 @@
20157  
20158  
20159  
20160 -
20161 -echo $ac_n "checking for off_t""... $ac_c" 1>&6
20162 -echo "configure:5782: checking for off_t" >&5
20163 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
20164 -  echo $ac_n "(cached) $ac_c" 1>&6
20165 +echo "$as_me:$LINENO: checking for off_t" >&5
20166 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20167 +if test "${ac_cv_type_off_t+set}" = set; then
20168 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20169  else
20170 -  cat > conftest.$ac_ext <<EOF
20171 -#line 5787 "configure"
20172 +  cat >conftest.$ac_ext <<_ACEOF
20173 +#line $LINENO "configure"
20174  #include "confdefs.h"
20175 -#include <sys/types.h>
20176 -#if STDC_HEADERS
20177 -#include <stdlib.h>
20178 -#include <stddef.h>
20179 +$ac_includes_default
20180 +#ifdef F77_DUMMY_MAIN
20181 +#  ifdef __cplusplus
20182 +     extern "C"
20183 +#  endif
20184 +   int F77_DUMMY_MAIN() { return 1; }
20185  #endif
20186 -EOF
20187 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20188 -  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20189 -  rm -rf conftest*
20190 +int
20191 +main ()
20192 +{
20193 +if ((off_t *) 0)
20194 +  return 0;
20195 +if (sizeof (off_t))
20196 +  return 0;
20197 +  ;
20198 +  return 0;
20199 +}
20200 +_ACEOF
20201 +rm -f conftest.$ac_objext
20202 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203 +  (eval $ac_compile) 2>&5
20204 +  ac_status=$?
20205 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 +  (exit $ac_status); } &&
20207 +         { ac_try='test -s conftest.$ac_objext'
20208 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 +  (eval $ac_try) 2>&5
20210 +  ac_status=$?
20211 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 +  (exit $ac_status); }; }; then
20213    ac_cv_type_off_t=yes
20214  else
20215 -  rm -rf conftest*
20216 -  ac_cv_type_off_t=no
20217 -fi
20218 -rm -f conftest*
20219 +  echo "$as_me: failed program was:" >&5
20220 +cat conftest.$ac_ext >&5
20221 +ac_cv_type_off_t=no
20222 +fi
20223 +rm -f conftest.$ac_objext conftest.$ac_ext
20224 +fi
20225 +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20226 +echo "${ECHO_T}$ac_cv_type_off_t" >&6
20227 +if test $ac_cv_type_off_t = yes; then
20228 +  :
20229 +else
20230  
20231 -fi
20232 -echo "$ac_t""$ac_cv_type_off_t" 1>&6
20233 -if test $ac_cv_type_off_t = no; then
20234 -  cat >> confdefs.h <<\EOF
20235 +cat >>confdefs.h <<_ACEOF
20236  #define off_t long
20237 -EOF
20238 +_ACEOF
20239  
20240  fi
20241  
20242 -echo $ac_n "checking for size_t""... $ac_c" 1>&6
20243 -echo "configure:5815: checking for size_t" >&5
20244 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
20245 -  echo $ac_n "(cached) $ac_c" 1>&6
20246 +echo "$as_me:$LINENO: checking for size_t" >&5
20247 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20248 +if test "${ac_cv_type_size_t+set}" = set; then
20249 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20250  else
20251 -  cat > conftest.$ac_ext <<EOF
20252 -#line 5820 "configure"
20253 +  cat >conftest.$ac_ext <<_ACEOF
20254 +#line $LINENO "configure"
20255  #include "confdefs.h"
20256 -#include <sys/types.h>
20257 -#if STDC_HEADERS
20258 -#include <stdlib.h>
20259 -#include <stddef.h>
20260 +$ac_includes_default
20261 +#ifdef F77_DUMMY_MAIN
20262 +#  ifdef __cplusplus
20263 +     extern "C"
20264 +#  endif
20265 +   int F77_DUMMY_MAIN() { return 1; }
20266  #endif
20267 -EOF
20268 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20269 -  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20270 -  rm -rf conftest*
20271 +int
20272 +main ()
20273 +{
20274 +if ((size_t *) 0)
20275 +  return 0;
20276 +if (sizeof (size_t))
20277 +  return 0;
20278 +  ;
20279 +  return 0;
20280 +}
20281 +_ACEOF
20282 +rm -f conftest.$ac_objext
20283 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 +  (eval $ac_compile) 2>&5
20285 +  ac_status=$?
20286 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 +  (exit $ac_status); } &&
20288 +         { ac_try='test -s conftest.$ac_objext'
20289 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 +  (eval $ac_try) 2>&5
20291 +  ac_status=$?
20292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 +  (exit $ac_status); }; }; then
20294    ac_cv_type_size_t=yes
20295  else
20296 -  rm -rf conftest*
20297 -  ac_cv_type_size_t=no
20298 -fi
20299 -rm -f conftest*
20300 +  echo "$as_me: failed program was:" >&5
20301 +cat conftest.$ac_ext >&5
20302 +ac_cv_type_size_t=no
20303 +fi
20304 +rm -f conftest.$ac_objext conftest.$ac_ext
20305 +fi
20306 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20307 +echo "${ECHO_T}$ac_cv_type_size_t" >&6
20308 +if test $ac_cv_type_size_t = yes; then
20309 +  :
20310 +else
20311  
20312 -fi
20313 -echo "$ac_t""$ac_cv_type_size_t" 1>&6
20314 -if test $ac_cv_type_size_t = no; then
20315 -  cat >> confdefs.h <<\EOF
20316 +cat >>confdefs.h <<_ACEOF
20317  #define size_t unsigned
20318 -EOF
20319 +_ACEOF
20320  
20321  fi
20322  
20323  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20324  # for constant arguments.  Useless!
20325 -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
20326 -echo "configure:5850: checking for working alloca.h" >&5
20327 -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
20328 -  echo $ac_n "(cached) $ac_c" 1>&6
20329 +echo "$as_me:$LINENO: checking for working alloca.h" >&5
20330 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20331 +if test "${ac_cv_working_alloca_h+set}" = set; then
20332 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20333  else
20334 -  cat > conftest.$ac_ext <<EOF
20335 -#line 5855 "configure"
20336 +  cat >conftest.$ac_ext <<_ACEOF
20337 +#line $LINENO "configure"
20338  #include "confdefs.h"
20339  #include <alloca.h>
20340 -int main() {
20341 -char *p = alloca(2 * sizeof(int));
20342 -; return 0; }
20343 -EOF
20344 -if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20345 -  rm -rf conftest*
20346 -  ac_cv_header_alloca_h=yes
20347 -else
20348 -  echo "configure: failed program was:" >&5
20349 -  cat conftest.$ac_ext >&5
20350 -  rm -rf conftest*
20351 -  ac_cv_header_alloca_h=no
20352 -fi
20353 -rm -f conftest*
20354 -fi
20355 +#ifdef F77_DUMMY_MAIN
20356 +#  ifdef __cplusplus
20357 +     extern "C"
20358 +#  endif
20359 +   int F77_DUMMY_MAIN() { return 1; }
20360 +#endif
20361 +int
20362 +main ()
20363 +{
20364 +char *p = (char *) alloca (2 * sizeof (int));
20365 +  ;
20366 +  return 0;
20367 +}
20368 +_ACEOF
20369 +rm -f conftest.$ac_objext conftest$ac_exeext
20370 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371 +  (eval $ac_link) 2>&5
20372 +  ac_status=$?
20373 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 +  (exit $ac_status); } &&
20375 +         { ac_try='test -s conftest$ac_exeext'
20376 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 +  (eval $ac_try) 2>&5
20378 +  ac_status=$?
20379 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 +  (exit $ac_status); }; }; then
20381 +  ac_cv_working_alloca_h=yes
20382 +else
20383 +  echo "$as_me: failed program was:" >&5
20384 +cat conftest.$ac_ext >&5
20385 +ac_cv_working_alloca_h=no
20386 +fi
20387 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20388 +fi
20389 +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20390 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20391 +if test $ac_cv_working_alloca_h = yes; then
20392  
20393 -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
20394 -if test $ac_cv_header_alloca_h = yes; then
20395 -  cat >> confdefs.h <<\EOF
20396 +cat >>confdefs.h <<\_ACEOF
20397  #define HAVE_ALLOCA_H 1
20398 -EOF
20399 +_ACEOF
20400  
20401  fi
20402  
20403 -echo $ac_n "checking for alloca""... $ac_c" 1>&6
20404 -echo "configure:5883: checking for alloca" >&5
20405 -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
20406 -  echo $ac_n "(cached) $ac_c" 1>&6
20407 +echo "$as_me:$LINENO: checking for alloca" >&5
20408 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20409 +if test "${ac_cv_func_alloca_works+set}" = set; then
20410 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20411  else
20412 -  cat > conftest.$ac_ext <<EOF
20413 -#line 5888 "configure"
20414 +  cat >conftest.$ac_ext <<_ACEOF
20415 +#line $LINENO "configure"
20416  #include "confdefs.h"
20417 -
20418  #ifdef __GNUC__
20419  # define alloca __builtin_alloca
20420  #else
20421 @@ -5922,48 +10519,69 @@
20422  # endif
20423  #endif
20424  
20425 -int main() {
20426 -char *p = (char *) alloca(1);
20427 -; return 0; }
20428 -EOF
20429 -if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20430 -  rm -rf conftest*
20431 +#ifdef F77_DUMMY_MAIN
20432 +#  ifdef __cplusplus
20433 +     extern "C"
20434 +#  endif
20435 +   int F77_DUMMY_MAIN() { return 1; }
20436 +#endif
20437 +int
20438 +main ()
20439 +{
20440 +char *p = (char *) alloca (1);
20441 +  ;
20442 +  return 0;
20443 +}
20444 +_ACEOF
20445 +rm -f conftest.$ac_objext conftest$ac_exeext
20446 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20447 +  (eval $ac_link) 2>&5
20448 +  ac_status=$?
20449 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 +  (exit $ac_status); } &&
20451 +         { ac_try='test -s conftest$ac_exeext'
20452 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 +  (eval $ac_try) 2>&5
20454 +  ac_status=$?
20455 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 +  (exit $ac_status); }; }; then
20457    ac_cv_func_alloca_works=yes
20458  else
20459 -  echo "configure: failed program was:" >&5
20460 -  cat conftest.$ac_ext >&5
20461 -  rm -rf conftest*
20462 -  ac_cv_func_alloca_works=no
20463 +  echo "$as_me: failed program was:" >&5
20464 +cat conftest.$ac_ext >&5
20465 +ac_cv_func_alloca_works=no
20466  fi
20467 -rm -f conftest*
20468 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20469  fi
20470 +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20471 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20472  
20473 -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
20474  if test $ac_cv_func_alloca_works = yes; then
20475 -  cat >> confdefs.h <<\EOF
20476 -#define HAVE_ALLOCA 1
20477 -EOF
20478  
20479 -fi
20480 +cat >>confdefs.h <<\_ACEOF
20481 +#define HAVE_ALLOCA 1
20482 +_ACEOF
20483  
20484 -if test $ac_cv_func_alloca_works = no; then
20485 +else
20486    # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20487 -  # that cause trouble.  Some versions do not even contain alloca or
20488 -  # contain a buggy version.  If you still want to use their alloca,
20489 -  # use ar to extract alloca.o from them instead of compiling alloca.c.
20490 -  ALLOCA=alloca.${ac_objext}
20491 -  cat >> confdefs.h <<\EOF
20492 +# that cause trouble.  Some versions do not even contain alloca or
20493 +# contain a buggy version.  If you still want to use their alloca,
20494 +# use ar to extract alloca.o from them instead of compiling alloca.c.
20495 +
20496 +ALLOCA=alloca.$ac_objext
20497 +
20498 +cat >>confdefs.h <<\_ACEOF
20499  #define C_ALLOCA 1
20500 -EOF
20501 +_ACEOF
20502  
20503  
20504 -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
20505 -echo "configure:5948: checking whether alloca needs Cray hooks" >&5
20506 -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
20507 -  echo $ac_n "(cached) $ac_c" 1>&6
20508 +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20509 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20510 +if test "${ac_cv_os_cray+set}" = set; then
20511 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20512  else
20513 -  cat > conftest.$ac_ext <<EOF
20514 -#line 5953 "configure"
20515 +  cat >conftest.$ac_ext <<_ACEOF
20516 +#line $LINENO "configure"
20517  #include "confdefs.h"
20518  #if defined(CRAY) && ! defined(CRAY2)
20519  webecray
20520 @@ -5971,88 +10589,109 @@
20521  wenotbecray
20522  #endif
20523  
20524 -EOF
20525 +_ACEOF
20526  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527    egrep "webecray" >/dev/null 2>&1; then
20528 -  rm -rf conftest*
20529    ac_cv_os_cray=yes
20530  else
20531 -  rm -rf conftest*
20532    ac_cv_os_cray=no
20533  fi
20534  rm -f conftest*
20535  
20536  fi
20537 -
20538 -echo "$ac_t""$ac_cv_os_cray" 1>&6
20539 +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20540 +echo "${ECHO_T}$ac_cv_os_cray" >&6
20541  if test $ac_cv_os_cray = yes; then
20542 -for ac_func in _getb67 GETB67 getb67; do
20543 -  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20544 -echo "configure:5978: checking for $ac_func" >&5
20545 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20546 -  echo $ac_n "(cached) $ac_c" 1>&6
20547 +  for ac_func in _getb67 GETB67 getb67; do
20548 +    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20549 +echo "$as_me:$LINENO: checking for $ac_func" >&5
20550 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20551 +if eval "test \"\${$as_ac_var+set}\" = set"; then
20552 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20553  else
20554 -  cat > conftest.$ac_ext <<EOF
20555 -#line 5983 "configure"
20556 +  cat >conftest.$ac_ext <<_ACEOF
20557 +#line $LINENO "configure"
20558  #include "confdefs.h"
20559  /* System header to define __stub macros and hopefully few prototypes,
20560 -    which can conflict with char $ac_func(); below.  */
20561 +    which can conflict with char $ac_func (); below.  */
20562  #include <assert.h>
20563  /* Override any gcc2 internal prototype to avoid an error.  */
20564 +#ifdef __cplusplus
20565 +extern "C"
20566 +#endif
20567  /* We use char because int might match the return type of a gcc2
20568 -    builtin and then its argument prototype would still apply.  */
20569 -char $ac_func();
20570 -
20571 -int main() {
20572 +   builtin and then its argument prototype would still apply.  */
20573 +char $ac_func ();
20574 +char (*f) ();
20575  
20576 +#ifdef F77_DUMMY_MAIN
20577 +#  ifdef __cplusplus
20578 +     extern "C"
20579 +#  endif
20580 +   int F77_DUMMY_MAIN() { return 1; }
20581 +#endif
20582 +int
20583 +main ()
20584 +{
20585  /* The GNU C library defines this for functions which it implements
20586      to always fail with ENOSYS.  Some functions are actually named
20587      something starting with __ and the normal name is an alias.  */
20588  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20589  choke me
20590  #else
20591 -$ac_func();
20592 +f = $ac_func;
20593  #endif
20594  
20595 -; return 0; }
20596 -EOF
20597 -if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20598 -  rm -rf conftest*
20599 -  eval "ac_cv_func_$ac_func=yes"
20600 -else
20601 -  echo "configure: failed program was:" >&5
20602 -  cat conftest.$ac_ext >&5
20603 -  rm -rf conftest*
20604 -  eval "ac_cv_func_$ac_func=no"
20605 -fi
20606 -rm -f conftest*
20607 -fi
20608 +  ;
20609 +  return 0;
20610 +}
20611 +_ACEOF
20612 +rm -f conftest.$ac_objext conftest$ac_exeext
20613 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614 +  (eval $ac_link) 2>&5
20615 +  ac_status=$?
20616 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 +  (exit $ac_status); } &&
20618 +         { ac_try='test -s conftest$ac_exeext'
20619 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 +  (eval $ac_try) 2>&5
20621 +  ac_status=$?
20622 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 +  (exit $ac_status); }; }; then
20624 +  eval "$as_ac_var=yes"
20625 +else
20626 +  echo "$as_me: failed program was:" >&5
20627 +cat conftest.$ac_ext >&5
20628 +eval "$as_ac_var=no"
20629 +fi
20630 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20631 +fi
20632 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20633 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20634 +if test `eval echo '${'$as_ac_var'}'` = yes; then
20635  
20636 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20637 -  echo "$ac_t""yes" 1>&6
20638 -  cat >> confdefs.h <<EOF
20639 +cat >>confdefs.h <<_ACEOF
20640  #define CRAY_STACKSEG_END $ac_func
20641 -EOF
20642 +_ACEOF
20643  
20644 -  break
20645 -else
20646 -  echo "$ac_t""no" 1>&6
20647 +    break
20648  fi
20649  
20650 -done
20651 +  done
20652  fi
20653  
20654 -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
20655 -echo "configure:6033: checking stack direction for C alloca" >&5
20656 -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
20657 -  echo $ac_n "(cached) $ac_c" 1>&6
20658 +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20659 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20660 +if test "${ac_cv_c_stack_direction+set}" = set; then
20661 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20662  else
20663    if test "$cross_compiling" = yes; then
20664    ac_cv_c_stack_direction=0
20665  else
20666 -  cat > conftest.$ac_ext <<EOF
20667 -#line 6041 "configure"
20668 +  cat >conftest.$ac_ext <<_ACEOF
20669 +#line $LINENO "configure"
20670  #include "confdefs.h"
20671 +int
20672  find_stack_direction ()
20673  {
20674    static char *addr = 0;
20675 @@ -6065,138 +10704,250 @@
20676    else
20677      return (&dummy > addr) ? 1 : -1;
20678  }
20679 +
20680 +int
20681  main ()
20682  {
20683 -  exit (find_stack_direction() < 0);
20684 +  exit (find_stack_direction () < 0);
20685  }
20686 -EOF
20687 -if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20688 -then
20689 +_ACEOF
20690 +rm -f conftest$ac_exeext
20691 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20692 +  (eval $ac_link) 2>&5
20693 +  ac_status=$?
20694 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20696 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 +  (eval $ac_try) 2>&5
20698 +  ac_status=$?
20699 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 +  (exit $ac_status); }; }; then
20701    ac_cv_c_stack_direction=1
20702  else
20703 -  echo "configure: failed program was:" >&5
20704 -  cat conftest.$ac_ext >&5
20705 -  rm -fr conftest*
20706 -  ac_cv_c_stack_direction=-1
20707 +  echo "$as_me: program exited with status $ac_status" >&5
20708 +echo "$as_me: failed program was:" >&5
20709 +cat conftest.$ac_ext >&5
20710 +( exit $ac_status )
20711 +ac_cv_c_stack_direction=-1
20712  fi
20713 -rm -fr conftest*
20714 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20715  fi
20716 -
20717  fi
20718 +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20719 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20720  
20721 -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
20722 -cat >> confdefs.h <<EOF
20723 +cat >>confdefs.h <<_ACEOF
20724  #define STACK_DIRECTION $ac_cv_c_stack_direction
20725 -EOF
20726 +_ACEOF
20727 +
20728  
20729  fi
20730  
20731 -for ac_hdr in unistd.h
20732 +
20733 +
20734 +for ac_header in stdlib.h unistd.h
20735  do
20736 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20737 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20738 -echo "configure:6085: checking for $ac_hdr" >&5
20739 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20740 -  echo $ac_n "(cached) $ac_c" 1>&6
20741 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20742 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
20743 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
20744 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20745 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
20746 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20747 +fi
20748 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20749 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20750 +else
20751 +  # Is the header compilable?
20752 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
20753 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20754 +cat >conftest.$ac_ext <<_ACEOF
20755 +#line $LINENO "configure"
20756 +#include "confdefs.h"
20757 +$ac_includes_default
20758 +#include <$ac_header>
20759 +_ACEOF
20760 +rm -f conftest.$ac_objext
20761 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20762 +  (eval $ac_compile) 2>&5
20763 +  ac_status=$?
20764 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 +  (exit $ac_status); } &&
20766 +         { ac_try='test -s conftest.$ac_objext'
20767 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 +  (eval $ac_try) 2>&5
20769 +  ac_status=$?
20770 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 +  (exit $ac_status); }; }; then
20772 +  ac_header_compiler=yes
20773 +else
20774 +  echo "$as_me: failed program was:" >&5
20775 +cat conftest.$ac_ext >&5
20776 +ac_header_compiler=no
20777 +fi
20778 +rm -f conftest.$ac_objext conftest.$ac_ext
20779 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20780 +echo "${ECHO_T}$ac_header_compiler" >&6
20781 +
20782 +# Is the header present?
20783 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
20784 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20785 +cat >conftest.$ac_ext <<_ACEOF
20786 +#line $LINENO "configure"
20787 +#include "confdefs.h"
20788 +#include <$ac_header>
20789 +_ACEOF
20790 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20792 +  ac_status=$?
20793 +  egrep -v '^ *\+' conftest.er1 >conftest.err
20794 +  rm -f conftest.er1
20795 +  cat conftest.err >&5
20796 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 +  (exit $ac_status); } >/dev/null; then
20798 +  if test -s conftest.err; then
20799 +    ac_cpp_err=$ac_c_preproc_warn_flag
20800 +  else
20801 +    ac_cpp_err=
20802 +  fi
20803  else
20804 -  cat > conftest.$ac_ext <<EOF
20805 -#line 6090 "configure"
20806 -#include "confdefs.h"
20807 -#include <$ac_hdr>
20808 -EOF
20809 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20810 -{ (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20811 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20812 -if test -z "$ac_err"; then
20813 -  rm -rf conftest*
20814 -  eval "ac_cv_header_$ac_safe=yes"
20815 +  ac_cpp_err=yes
20816 +fi
20817 +if test -z "$ac_cpp_err"; then
20818 +  ac_header_preproc=yes
20819  else
20820 -  echo "$ac_err" >&5
20821 -  echo "configure: failed program was:" >&5
20822 +  echo "$as_me: failed program was:" >&5
20823    cat conftest.$ac_ext >&5
20824 -  rm -rf conftest*
20825 -  eval "ac_cv_header_$ac_safe=no"
20826 -fi
20827 -rm -f conftest*
20828 +  ac_header_preproc=no
20829  fi
20830 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20831 -  echo "$ac_t""yes" 1>&6
20832 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20833 -  cat >> confdefs.h <<EOF
20834 -#define $ac_tr_hdr 1
20835 -EOF
20836
20837 +rm -f conftest.err conftest.$ac_ext
20838 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20839 +echo "${ECHO_T}$ac_header_preproc" >&6
20840 +
20841 +# So?  What about this header?
20842 +case $ac_header_compiler:$ac_header_preproc in
20843 +  yes:no )
20844 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20845 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20846 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20847 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20848 +  no:yes )
20849 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20850 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20851 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20852 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20853 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20854 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20855 +esac
20856 +echo "$as_me:$LINENO: checking for $ac_header" >&5
20857 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20858 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
20859 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20860  else
20861 -  echo "$ac_t""no" 1>&6
20862 +  eval "$as_ac_Header=$ac_header_preproc"
20863 +fi
20864 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20865 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20866 +
20867  fi
20868 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
20869 +  cat >>confdefs.h <<_ACEOF
20870 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20871 +_ACEOF
20872 +
20873 +fi
20874 +
20875  done
20876  
20877 +
20878  for ac_func in getpagesize
20879  do
20880 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20881 -echo "configure:6124: checking for $ac_func" >&5
20882 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20883 -  echo $ac_n "(cached) $ac_c" 1>&6
20884 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20885 +echo "$as_me:$LINENO: checking for $ac_func" >&5
20886 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20887 +if eval "test \"\${$as_ac_var+set}\" = set"; then
20888 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20889  else
20890 -  cat > conftest.$ac_ext <<EOF
20891 -#line 6129 "configure"
20892 +  cat >conftest.$ac_ext <<_ACEOF
20893 +#line $LINENO "configure"
20894  #include "confdefs.h"
20895  /* System header to define __stub macros and hopefully few prototypes,
20896 -    which can conflict with char $ac_func(); below.  */
20897 +    which can conflict with char $ac_func (); below.  */
20898  #include <assert.h>
20899  /* Override any gcc2 internal prototype to avoid an error.  */
20900 +#ifdef __cplusplus
20901 +extern "C"
20902 +#endif
20903  /* We use char because int might match the return type of a gcc2
20904 -    builtin and then its argument prototype would still apply.  */
20905 -char $ac_func();
20906 -
20907 -int main() {
20908 +   builtin and then its argument prototype would still apply.  */
20909 +char $ac_func ();
20910 +char (*f) ();
20911  
20912 +#ifdef F77_DUMMY_MAIN
20913 +#  ifdef __cplusplus
20914 +     extern "C"
20915 +#  endif
20916 +   int F77_DUMMY_MAIN() { return 1; }
20917 +#endif
20918 +int
20919 +main ()
20920 +{
20921  /* The GNU C library defines this for functions which it implements
20922      to always fail with ENOSYS.  Some functions are actually named
20923      something starting with __ and the normal name is an alias.  */
20924  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20925  choke me
20926  #else
20927 -$ac_func();
20928 +f = $ac_func;
20929  #endif
20930  
20931 -; return 0; }
20932 -EOF
20933 -if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20934 -  rm -rf conftest*
20935 -  eval "ac_cv_func_$ac_func=yes"
20936 -else
20937 -  echo "configure: failed program was:" >&5
20938 -  cat conftest.$ac_ext >&5
20939 -  rm -rf conftest*
20940 -  eval "ac_cv_func_$ac_func=no"
20941 -fi
20942 -rm -f conftest*
20943 -fi
20944 +  ;
20945 +  return 0;
20946 +}
20947 +_ACEOF
20948 +rm -f conftest.$ac_objext conftest$ac_exeext
20949 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 +  (eval $ac_link) 2>&5
20951 +  ac_status=$?
20952 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 +  (exit $ac_status); } &&
20954 +         { ac_try='test -s conftest$ac_exeext'
20955 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 +  (eval $ac_try) 2>&5
20957 +  ac_status=$?
20958 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 +  (exit $ac_status); }; }; then
20960 +  eval "$as_ac_var=yes"
20961 +else
20962 +  echo "$as_me: failed program was:" >&5
20963 +cat conftest.$ac_ext >&5
20964 +eval "$as_ac_var=no"
20965 +fi
20966 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20967 +fi
20968 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20969 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20970 +if test `eval echo '${'$as_ac_var'}'` = yes; then
20971 +  cat >>confdefs.h <<_ACEOF
20972 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20973 +_ACEOF
20974  
20975 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20976 -  echo "$ac_t""yes" 1>&6
20977 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20978 -  cat >> confdefs.h <<EOF
20979 -#define $ac_tr_func 1
20980 -EOF
20981
20982 -else
20983 -  echo "$ac_t""no" 1>&6
20984  fi
20985  done
20986  
20987 -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
20988 -echo "configure:6177: checking for working mmap" >&5
20989 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
20990 -  echo $ac_n "(cached) $ac_c" 1>&6
20991 +echo "$as_me:$LINENO: checking for working mmap" >&5
20992 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20993 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20994 +  echo $ECHO_N "(cached) $ECHO_C" >&6
20995  else
20996    if test "$cross_compiling" = yes; then
20997    ac_cv_func_mmap_fixed_mapped=no
20998  else
20999 -  cat > conftest.$ac_ext <<EOF
21000 -#line 6185 "configure"
21001 +  cat >conftest.$ac_ext <<_ACEOF
21002 +#line $LINENO "configure"
21003  #include "confdefs.h"
21004 +$ac_includes_default
21005 +/* malloc might have been renamed as rpl_malloc. */
21006 +#undef malloc
21007  
21008  /* Thanks to Mike Haertel and Jim Avera for this test.
21009     Here is a matrix of mmap possibilities:
21010 @@ -6210,34 +10961,34 @@
21011     back from the file, nor mmap's back from the file at a different
21012     address.  (There have been systems where private was not correctly
21013     implemented like the infamous i386 svr4.0, and systems where the
21014 -   VM page cache was not coherent with the filesystem buffer cache
21015 +   VM page cache was not coherent with the file system buffer cache
21016     like early versions of FreeBSD and possibly contemporary NetBSD.)
21017     For shared mappings, we should conversely verify that changes get
21018 -   propogated back to all the places they're supposed to be.
21019 +   propagated back to all the places they're supposed to be.
21020  
21021     Grep wants private fixed already mapped.
21022     The main things grep needs to know about mmap are:
21023     * does it exist and is it safe to write into the mmap'd area
21024     * how to use it (BSD variants)  */
21025 -#include <sys/types.h>
21026 +
21027  #include <fcntl.h>
21028  #include <sys/mman.h>
21029  
21030 -/* This mess was copied from the GNU getpagesize.h.  */
21031 -#ifndef HAVE_GETPAGESIZE
21032 -# ifdef HAVE_UNISTD_H
21033 -#  include <unistd.h>
21034 -# endif
21035 +#if !STDC_HEADERS && !HAVE_STDLIB_H
21036 +char *malloc ();
21037 +#endif
21038  
21039 +/* This mess was copied from the GNU getpagesize.h.  */
21040 +#if !HAVE_GETPAGESIZE
21041  /* Assume that all systems that can run configure have sys/param.h.  */
21042 -# ifndef HAVE_SYS_PARAM_H
21043 +# if !HAVE_SYS_PARAM_H
21044  #  define HAVE_SYS_PARAM_H 1
21045  # endif
21046  
21047  # ifdef _SC_PAGESIZE
21048  #  define getpagesize() sysconf(_SC_PAGESIZE)
21049  # else /* no _SC_PAGESIZE */
21050 -#  ifdef HAVE_SYS_PARAM_H
21051 +#  if HAVE_SYS_PARAM_H
21052  #   include <sys/param.h>
21053  #   ifdef EXEC_PAGESIZE
21054  #    define getpagesize() EXEC_PAGESIZE
21055 @@ -6264,107 +11015,104 @@
21056  
21057  #endif /* no HAVE_GETPAGESIZE */
21058  
21059 -#ifdef __cplusplus
21060 -extern "C" { void *malloc(unsigned); }
21061 -#else
21062 -char *malloc();
21063 -#endif
21064 -
21065  int
21066 -main()
21067 +main ()
21068  {
21069 -       char *data, *data2, *data3;
21070 -       int i, pagesize;
21071 -       int fd;
21072 -
21073 -       pagesize = getpagesize();
21074 -
21075 -       /*
21076 -        * First, make a file with some known garbage in it.
21077 -        */
21078 -       data = malloc(pagesize);
21079 -       if (!data)
21080 -               exit(1);
21081 -       for (i = 0; i < pagesize; ++i)
21082 -               *(data + i) = rand();
21083 -       umask(0);
21084 -       fd = creat("conftestmmap", 0600);
21085 -       if (fd < 0)
21086 -               exit(1);
21087 -       if (write(fd, data, pagesize) != pagesize)
21088 -               exit(1);
21089 -       close(fd);
21090 -
21091 -       /*
21092 -        * Next, try to mmap the file at a fixed address which
21093 -        * already has something else allocated at it.  If we can,
21094 -        * also make sure that we see the same garbage.
21095 -        */
21096 -       fd = open("conftestmmap", O_RDWR);
21097 -       if (fd < 0)
21098 -               exit(1);
21099 -       data2 = malloc(2 * pagesize);
21100 -       if (!data2)
21101 -               exit(1);
21102 -       data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21103 -       if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21104 -           MAP_PRIVATE | MAP_FIXED, fd, 0L))
21105 -               exit(1);
21106 -       for (i = 0; i < pagesize; ++i)
21107 -               if (*(data + i) != *(data2 + i))
21108 -                       exit(1);
21109 -
21110 -       /*
21111 -        * Finally, make sure that changes to the mapped area
21112 -        * do not percolate back to the file as seen by read().
21113 -        * (This is a bug on some variants of i386 svr4.0.)
21114 -        */
21115 -       for (i = 0; i < pagesize; ++i)
21116 -               *(data2 + i) = *(data2 + i) + 1;
21117 -       data3 = malloc(pagesize);
21118 -       if (!data3)
21119 -               exit(1);
21120 -       if (read(fd, data3, pagesize) != pagesize)
21121 -               exit(1);
21122 -       for (i = 0; i < pagesize; ++i)
21123 -               if (*(data + i) != *(data3 + i))
21124 -                       exit(1);
21125 -       close(fd);
21126 -       unlink("conftestmmap");
21127 -       exit(0);
21128 +  char *data, *data2, *data3;
21129 +  int i, pagesize;
21130 +  int fd;
21131 +
21132 +  pagesize = getpagesize ();
21133 +
21134 +  /* First, make a file with some known garbage in it. */
21135 +  data = (char *) malloc (pagesize);
21136 +  if (!data)
21137 +    exit (1);
21138 +  for (i = 0; i < pagesize; ++i)
21139 +    *(data + i) = rand ();
21140 +  umask (0);
21141 +  fd = creat ("conftest.mmap", 0600);
21142 +  if (fd < 0)
21143 +    exit (1);
21144 +  if (write (fd, data, pagesize) != pagesize)
21145 +    exit (1);
21146 +  close (fd);
21147 +
21148 +  /* Next, try to mmap the file at a fixed address which already has
21149 +     something else allocated at it.  If we can, also make sure that
21150 +     we see the same garbage.  */
21151 +  fd = open ("conftest.mmap", O_RDWR);
21152 +  if (fd < 0)
21153 +    exit (1);
21154 +  data2 = (char *) malloc (2 * pagesize);
21155 +  if (!data2)
21156 +    exit (1);
21157 +  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21158 +  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21159 +                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21160 +    exit (1);
21161 +  for (i = 0; i < pagesize; ++i)
21162 +    if (*(data + i) != *(data2 + i))
21163 +      exit (1);
21164 +
21165 +  /* Finally, make sure that changes to the mapped area do not
21166 +     percolate back to the file as seen by read().  (This is a bug on
21167 +     some variants of i386 svr4.0.)  */
21168 +  for (i = 0; i < pagesize; ++i)
21169 +    *(data2 + i) = *(data2 + i) + 1;
21170 +  data3 = (char *) malloc (pagesize);
21171 +  if (!data3)
21172 +    exit (1);
21173 +  if (read (fd, data3, pagesize) != pagesize)
21174 +    exit (1);
21175 +  for (i = 0; i < pagesize; ++i)
21176 +    if (*(data + i) != *(data3 + i))
21177 +      exit (1);
21178 +  close (fd);
21179 +  exit (0);
21180  }
21181 -
21182 -EOF
21183 -if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21184 -then
21185 +_ACEOF
21186 +rm -f conftest$ac_exeext
21187 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188 +  (eval $ac_link) 2>&5
21189 +  ac_status=$?
21190 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21192 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 +  (eval $ac_try) 2>&5
21194 +  ac_status=$?
21195 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 +  (exit $ac_status); }; }; then
21197    ac_cv_func_mmap_fixed_mapped=yes
21198  else
21199 -  echo "configure: failed program was:" >&5
21200 -  cat conftest.$ac_ext >&5
21201 -  rm -fr conftest*
21202 -  ac_cv_func_mmap_fixed_mapped=no
21203 +  echo "$as_me: program exited with status $ac_status" >&5
21204 +echo "$as_me: failed program was:" >&5
21205 +cat conftest.$ac_ext >&5
21206 +( exit $ac_status )
21207 +ac_cv_func_mmap_fixed_mapped=no
21208  fi
21209 -rm -fr conftest*
21210 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21211  fi
21212 -
21213  fi
21214 -
21215 -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21216 +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21217 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21218  if test $ac_cv_func_mmap_fixed_mapped = yes; then
21219 -  cat >> confdefs.h <<\EOF
21220 +
21221 +cat >>confdefs.h <<\_ACEOF
21222  #define HAVE_MMAP 1
21223 -EOF
21224 +_ACEOF
21225  
21226  fi
21227 +rm -f conftest.mmap
21228  
21229  
21230 -    echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
21231 -echo "configure:6349: checking whether we are using the GNU C Library 2.1 or newer" >&5
21232 -if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
21233 -  echo $ac_n "(cached) $ac_c" 1>&6
21234 +    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
21235 +echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
21236 +if test "${ac_cv_gnu_library_2_1+set}" = set; then
21237 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21238  else
21239 -  cat > conftest.$ac_ext <<EOF
21240 -#line 6354 "configure"
21241 +  cat >conftest.$ac_ext <<_ACEOF
21242 +#line $LINENO "configure"
21243  #include "confdefs.h"
21244  
21245  #include <features.h>
21246 @@ -6373,133 +11121,256 @@
21247    Lucky GNU user
21248   #endif
21249  #endif
21250 -       
21251 -EOF
21252 +
21253 +_ACEOF
21254  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21255    egrep "Lucky GNU user" >/dev/null 2>&1; then
21256 -  rm -rf conftest*
21257    ac_cv_gnu_library_2_1=yes
21258  else
21259 -  rm -rf conftest*
21260    ac_cv_gnu_library_2_1=no
21261  fi
21262  rm -f conftest*
21263  
21264 -      
21265 -    
21266 +
21267 +
21268  fi
21269 +echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
21270 +echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
21271  
21272 -echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
21273 -    
21274      GLIBC21="$ac_cv_gnu_library_2_1"
21275 -  
21276  
21277 -                                    
21278 -   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21279 +
21280 +
21281 +
21282 +
21283 +
21284 +
21285 +
21286 +
21287 +
21288 +
21289 +
21290 +
21291 +for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21292  stdlib.h string.h unistd.h sys/param.h
21293  do
21294 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21295 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21296 -echo "configure:6390: checking for $ac_hdr" >&5
21297 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21298 -  echo $ac_n "(cached) $ac_c" 1>&6
21299 -else
21300 -  cat > conftest.$ac_ext <<EOF
21301 -#line 6395 "configure"
21302 -#include "confdefs.h"
21303 -#include <$ac_hdr>
21304 -EOF
21305 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21306 -{ (eval echo configure:6400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21307 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21308 -if test -z "$ac_err"; then
21309 -  rm -rf conftest*
21310 -  eval "ac_cv_header_$ac_safe=yes"
21311 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21312 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
21313 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
21314 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21315 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
21316 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21317 +fi
21318 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21319 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21320 +else
21321 +  # Is the header compilable?
21322 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
21323 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21324 +cat >conftest.$ac_ext <<_ACEOF
21325 +#line $LINENO "configure"
21326 +#include "confdefs.h"
21327 +$ac_includes_default
21328 +#include <$ac_header>
21329 +_ACEOF
21330 +rm -f conftest.$ac_objext
21331 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21332 +  (eval $ac_compile) 2>&5
21333 +  ac_status=$?
21334 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 +  (exit $ac_status); } &&
21336 +         { ac_try='test -s conftest.$ac_objext'
21337 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 +  (eval $ac_try) 2>&5
21339 +  ac_status=$?
21340 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 +  (exit $ac_status); }; }; then
21342 +  ac_header_compiler=yes
21343 +else
21344 +  echo "$as_me: failed program was:" >&5
21345 +cat conftest.$ac_ext >&5
21346 +ac_header_compiler=no
21347 +fi
21348 +rm -f conftest.$ac_objext conftest.$ac_ext
21349 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21350 +echo "${ECHO_T}$ac_header_compiler" >&6
21351 +
21352 +# Is the header present?
21353 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
21354 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21355 +cat >conftest.$ac_ext <<_ACEOF
21356 +#line $LINENO "configure"
21357 +#include "confdefs.h"
21358 +#include <$ac_header>
21359 +_ACEOF
21360 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21361 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21362 +  ac_status=$?
21363 +  egrep -v '^ *\+' conftest.er1 >conftest.err
21364 +  rm -f conftest.er1
21365 +  cat conftest.err >&5
21366 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 +  (exit $ac_status); } >/dev/null; then
21368 +  if test -s conftest.err; then
21369 +    ac_cpp_err=$ac_c_preproc_warn_flag
21370 +  else
21371 +    ac_cpp_err=
21372 +  fi
21373  else
21374 -  echo "$ac_err" >&5
21375 -  echo "configure: failed program was:" >&5
21376 -  cat conftest.$ac_ext >&5
21377 -  rm -rf conftest*
21378 -  eval "ac_cv_header_$ac_safe=no"
21379 +  ac_cpp_err=yes
21380  fi
21381 -rm -f conftest*
21382 +if test -z "$ac_cpp_err"; then
21383 +  ac_header_preproc=yes
21384 +else
21385 +  echo "$as_me: failed program was:" >&5
21386 +  cat conftest.$ac_ext >&5
21387 +  ac_header_preproc=no
21388  fi
21389 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21390 -  echo "$ac_t""yes" 1>&6
21391 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21392 -  cat >> confdefs.h <<EOF
21393 -#define $ac_tr_hdr 1
21394 -EOF
21395
21396 +rm -f conftest.err conftest.$ac_ext
21397 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21398 +echo "${ECHO_T}$ac_header_preproc" >&6
21399 +
21400 +# So?  What about this header?
21401 +case $ac_header_compiler:$ac_header_preproc in
21402 +  yes:no )
21403 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21404 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21405 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21406 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21407 +  no:yes )
21408 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21409 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21410 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21411 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21412 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21413 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21414 +esac
21415 +echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21417 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
21418 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21419  else
21420 -  echo "$ac_t""no" 1>&6
21421 +  eval "$as_ac_Header=$ac_header_preproc"
21422 +fi
21423 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21424 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21425 +
21426 +fi
21427 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
21428 +  cat >>confdefs.h <<_ACEOF
21429 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21430 +_ACEOF
21431 +
21432  fi
21433 +
21434  done
21435  
21436 -   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
21437 +
21438 +
21439 +
21440 +
21441 +
21442 +
21443 +
21444 +
21445 +
21446 +
21447 +
21448 +
21449 +
21450 +
21451 +
21452 +
21453 +
21454 +
21455 +
21456 +
21457 +
21458 +for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
21459  getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
21460  strdup strtoul tsearch __argz_count __argz_stringify __argz_next
21461  do
21462 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21463 -echo "configure:6431: checking for $ac_func" >&5
21464 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21465 -  echo $ac_n "(cached) $ac_c" 1>&6
21466 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21467 +echo "$as_me:$LINENO: checking for $ac_func" >&5
21468 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21469 +if eval "test \"\${$as_ac_var+set}\" = set"; then
21470 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21471  else
21472 -  cat > conftest.$ac_ext <<EOF
21473 -#line 6436 "configure"
21474 +  cat >conftest.$ac_ext <<_ACEOF
21475 +#line $LINENO "configure"
21476  #include "confdefs.h"
21477  /* System header to define __stub macros and hopefully few prototypes,
21478 -    which can conflict with char $ac_func(); below.  */
21479 +    which can conflict with char $ac_func (); below.  */
21480  #include <assert.h>
21481  /* Override any gcc2 internal prototype to avoid an error.  */
21482 +#ifdef __cplusplus
21483 +extern "C"
21484 +#endif
21485  /* We use char because int might match the return type of a gcc2
21486 -    builtin and then its argument prototype would still apply.  */
21487 -char $ac_func();
21488 -
21489 -int main() {
21490 +   builtin and then its argument prototype would still apply.  */
21491 +char $ac_func ();
21492 +char (*f) ();
21493  
21494 +#ifdef F77_DUMMY_MAIN
21495 +#  ifdef __cplusplus
21496 +     extern "C"
21497 +#  endif
21498 +   int F77_DUMMY_MAIN() { return 1; }
21499 +#endif
21500 +int
21501 +main ()
21502 +{
21503  /* The GNU C library defines this for functions which it implements
21504      to always fail with ENOSYS.  Some functions are actually named
21505      something starting with __ and the normal name is an alias.  */
21506  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21507  choke me
21508  #else
21509 -$ac_func();
21510 +f = $ac_func;
21511  #endif
21512  
21513 -; return 0; }
21514 -EOF
21515 -if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21516 -  rm -rf conftest*
21517 -  eval "ac_cv_func_$ac_func=yes"
21518 +  ;
21519 +  return 0;
21520 +}
21521 +_ACEOF
21522 +rm -f conftest.$ac_objext conftest$ac_exeext
21523 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524 +  (eval $ac_link) 2>&5
21525 +  ac_status=$?
21526 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 +  (exit $ac_status); } &&
21528 +         { ac_try='test -s conftest$ac_exeext'
21529 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 +  (eval $ac_try) 2>&5
21531 +  ac_status=$?
21532 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 +  (exit $ac_status); }; }; then
21534 +  eval "$as_ac_var=yes"
21535  else
21536 -  echo "configure: failed program was:" >&5
21537 -  cat conftest.$ac_ext >&5
21538 -  rm -rf conftest*
21539 -  eval "ac_cv_func_$ac_func=no"
21540 +  echo "$as_me: failed program was:" >&5
21541 +cat conftest.$ac_ext >&5
21542 +eval "$as_ac_var=no"
21543  fi
21544 -rm -f conftest*
21545 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21546  fi
21547 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21548 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21549 +if test `eval echo '${'$as_ac_var'}'` = yes; then
21550 +  cat >>confdefs.h <<_ACEOF
21551 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21552 +_ACEOF
21553  
21554 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21555 -  echo "$ac_t""yes" 1>&6
21556 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21557 -  cat >> confdefs.h <<EOF
21558 -#define $ac_tr_func 1
21559 -EOF
21560
21561 -else
21562 -  echo "$ac_t""no" 1>&6
21563  fi
21564  done
21565  
21566  
21567 -   
21568 -    
21569 -  # Check whether --with-iconv or --without-iconv was given.
21570 +
21571 +
21572 +
21573 +# Check whether --with-iconv or --without-iconv was given.
21574  if test "${with_iconv+set}" = set; then
21575    withval="$with_iconv"
21576 -  
21577 +
21578      if test "$withval" != no ; then
21579      for dir in `echo "$withval" | tr : ' '`; do
21580        if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21581 @@ -6508,82 +11379,122 @@
21582      else
21583        use_iconv=no
21584      fi
21585 -   
21586 +
21587  else
21588    use_iconv=yes
21589 -fi
21590 -
21591 +fi;
21592  
21593    if test "$use_iconv" = yes ; then
21594 -  echo $ac_n "checking for iconv""... $ac_c" 1>&6
21595 -echo "configure:6506: checking for iconv" >&5
21596 -if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
21597 -  echo $ac_n "(cached) $ac_c" 1>&6
21598 +  echo "$as_me:$LINENO: checking for iconv" >&5
21599 +echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21600 +if test "${am_cv_func_iconv+set}" = set; then
21601 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21602  else
21603 -  
21604 +
21605      am_cv_func_iconv="no, consider installing GNU libiconv"
21606      am_cv_lib_iconv=no
21607 -    cat > conftest.$ac_ext <<EOF
21608 -#line 6514 "configure"
21609 +    cat >conftest.$ac_ext <<_ACEOF
21610 +#line $LINENO "configure"
21611  #include "confdefs.h"
21612  #include <stdlib.h>
21613  #include <iconv.h>
21614 -int main() {
21615 +#ifdef F77_DUMMY_MAIN
21616 +#  ifdef __cplusplus
21617 +     extern "C"
21618 +#  endif
21619 +   int F77_DUMMY_MAIN() { return 1; }
21620 +#endif
21621 +int
21622 +main ()
21623 +{
21624  iconv_t cd = iconv_open("","");
21625         iconv(cd,NULL,NULL,NULL,NULL);
21626         iconv_close(cd);
21627 -; return 0; }
21628 -EOF
21629 -if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21630 -  rm -rf conftest*
21631 +  ;
21632 +  return 0;
21633 +}
21634 +_ACEOF
21635 +rm -f conftest.$ac_objext conftest$ac_exeext
21636 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21637 +  (eval $ac_link) 2>&5
21638 +  ac_status=$?
21639 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 +  (exit $ac_status); } &&
21641 +         { ac_try='test -s conftest$ac_exeext'
21642 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 +  (eval $ac_try) 2>&5
21644 +  ac_status=$?
21645 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 +  (exit $ac_status); }; }; then
21647    am_cv_func_iconv=yes
21648  else
21649 -  echo "configure: failed program was:" >&5
21650 -  cat conftest.$ac_ext >&5
21651 +  echo "$as_me: failed program was:" >&5
21652 +cat conftest.$ac_ext >&5
21653  fi
21654 -rm -f conftest*
21655 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21656      if test "$am_cv_func_iconv" != yes; then
21657        am_save_LIBS="$LIBS"
21658        LIBS="$LIBS -liconv"
21659 -      cat > conftest.$ac_ext <<EOF
21660 -#line 6536 "configure"
21661 +      cat >conftest.$ac_ext <<_ACEOF
21662 +#line $LINENO "configure"
21663  #include "confdefs.h"
21664  #include <stdlib.h>
21665  #include <iconv.h>
21666 -int main() {
21667 +#ifdef F77_DUMMY_MAIN
21668 +#  ifdef __cplusplus
21669 +     extern "C"
21670 +#  endif
21671 +   int F77_DUMMY_MAIN() { return 1; }
21672 +#endif
21673 +int
21674 +main ()
21675 +{
21676  iconv_t cd = iconv_open("","");
21677           iconv(cd,NULL,NULL,NULL,NULL);
21678           iconv_close(cd);
21679 -; return 0; }
21680 -EOF
21681 -if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21682 -  rm -rf conftest*
21683 +  ;
21684 +  return 0;
21685 +}
21686 +_ACEOF
21687 +rm -f conftest.$ac_objext conftest$ac_exeext
21688 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21689 +  (eval $ac_link) 2>&5
21690 +  ac_status=$?
21691 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 +  (exit $ac_status); } &&
21693 +         { ac_try='test -s conftest$ac_exeext'
21694 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 +  (eval $ac_try) 2>&5
21696 +  ac_status=$?
21697 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 +  (exit $ac_status); }; }; then
21699    am_cv_lib_iconv=yes
21700          am_cv_func_iconv=yes
21701  else
21702 -  echo "configure: failed program was:" >&5
21703 -  cat conftest.$ac_ext >&5
21704 +  echo "$as_me: failed program was:" >&5
21705 +cat conftest.$ac_ext >&5
21706  fi
21707 -rm -f conftest*
21708 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21709        LIBS="$am_save_LIBS"
21710      fi
21711 -  
21712 -fi
21713  
21714 -echo "$ac_t""$am_cv_func_iconv" 1>&6
21715 +fi
21716 +echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21717 +echo "${ECHO_T}$am_cv_func_iconv" >&6
21718    if test "$am_cv_func_iconv" = yes; then
21719 -    cat >> confdefs.h <<\EOF
21720 +
21721 +cat >>confdefs.h <<\_ACEOF
21722  #define HAVE_ICONV 1
21723 -EOF
21724 +_ACEOF
21725 +
21726 +    echo "$as_me:$LINENO: checking for iconv declaration" >&5
21727 +echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21728 +    if test "${am_cv_proto_iconv+set}" = set; then
21729 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21730 +else
21731  
21732 -    echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
21733 -echo "configure:6567: checking for iconv declaration" >&5
21734 -    if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
21735 -  echo $ac_n "(cached) $ac_c" 1>&6
21736 -else
21737 -  
21738 -      cat > conftest.$ac_ext <<EOF
21739 -#line 6573 "configure"
21740 +      cat >conftest.$ac_ext <<_ACEOF
21741 +#line $LINENO "configure"
21742  #include "confdefs.h"
21743  
21744  #include <stdlib.h>
21745 @@ -6598,246 +11509,423 @@
21746  size_t iconv();
21747  #endif
21748  
21749 -int main() {
21750 +#ifdef F77_DUMMY_MAIN
21751 +#  ifdef __cplusplus
21752 +     extern "C"
21753 +#  endif
21754 +   int F77_DUMMY_MAIN() { return 1; }
21755 +#endif
21756 +int
21757 +main ()
21758 +{
21759  
21760 -; return 0; }
21761 -EOF
21762 -if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21763 -  rm -rf conftest*
21764 +  ;
21765 +  return 0;
21766 +}
21767 +_ACEOF
21768 +rm -f conftest.$ac_objext
21769 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770 +  (eval $ac_compile) 2>&5
21771 +  ac_status=$?
21772 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 +  (exit $ac_status); } &&
21774 +         { ac_try='test -s conftest.$ac_objext'
21775 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 +  (eval $ac_try) 2>&5
21777 +  ac_status=$?
21778 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 +  (exit $ac_status); }; }; then
21780    am_cv_proto_iconv_arg1=""
21781  else
21782 -  echo "configure: failed program was:" >&5
21783 -  cat conftest.$ac_ext >&5
21784 -  rm -rf conftest*
21785 -  am_cv_proto_iconv_arg1="const"
21786 +  echo "$as_me: failed program was:" >&5
21787 +cat conftest.$ac_ext >&5
21788 +am_cv_proto_iconv_arg1="const"
21789  fi
21790 -rm -f conftest*
21791 +rm -f conftest.$ac_objext conftest.$ac_ext
21792        am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21793  fi
21794  
21795      am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21796 -    echo "$ac_t""${ac_t:-
21797 -         }$am_cv_proto_iconv" 1>&6
21798 -    cat >> confdefs.h <<EOF
21799 +    echo "$as_me:$LINENO: result: ${ac_t:-
21800 +         }$am_cv_proto_iconv" >&5
21801 +echo "${ECHO_T}${ac_t:-
21802 +         }$am_cv_proto_iconv" >&6
21803 +
21804 +cat >>confdefs.h <<_ACEOF
21805  #define ICONV_CONST $am_cv_proto_iconv_arg1
21806 -EOF
21807 +_ACEOF
21808  
21809    fi
21810    LIBICONV=
21811    if test "$am_cv_lib_iconv" = yes; then
21812      LIBICONV="-liconv"
21813    fi
21814 -  
21815 +
21816  
21817    fi # use_iconv
21818  
21819 -   
21820 -  echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
21821 -echo "configure:6623: checking for nl_langinfo and CODESET" >&5
21822 -if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
21823 -  echo $ac_n "(cached) $ac_c" 1>&6
21824 +
21825 +  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21826 +echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21827 +if test "${am_cv_langinfo_codeset+set}" = set; then
21828 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21829  else
21830 -  cat > conftest.$ac_ext <<EOF
21831 -#line 6628 "configure"
21832 +  cat >conftest.$ac_ext <<_ACEOF
21833 +#line $LINENO "configure"
21834  #include "confdefs.h"
21835  #include <langinfo.h>
21836 -int main() {
21837 +#ifdef F77_DUMMY_MAIN
21838 +#  ifdef __cplusplus
21839 +     extern "C"
21840 +#  endif
21841 +   int F77_DUMMY_MAIN() { return 1; }
21842 +#endif
21843 +int
21844 +main ()
21845 +{
21846  char* cs = nl_langinfo(CODESET);
21847 -; return 0; }
21848 -EOF
21849 -if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21850 -  rm -rf conftest*
21851 +  ;
21852 +  return 0;
21853 +}
21854 +_ACEOF
21855 +rm -f conftest.$ac_objext conftest$ac_exeext
21856 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857 +  (eval $ac_link) 2>&5
21858 +  ac_status=$?
21859 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 +  (exit $ac_status); } &&
21861 +         { ac_try='test -s conftest$ac_exeext'
21862 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 +  (eval $ac_try) 2>&5
21864 +  ac_status=$?
21865 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 +  (exit $ac_status); }; }; then
21867    am_cv_langinfo_codeset=yes
21868  else
21869 -  echo "configure: failed program was:" >&5
21870 -  cat conftest.$ac_ext >&5
21871 -  rm -rf conftest*
21872 -  am_cv_langinfo_codeset=no
21873 -fi
21874 -rm -f conftest*
21875 -    
21876 +  echo "$as_me: failed program was:" >&5
21877 +cat conftest.$ac_ext >&5
21878 +am_cv_langinfo_codeset=no
21879  fi
21880 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21881  
21882 -echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
21883 +fi
21884 +echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
21885 +echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
21886    if test $am_cv_langinfo_codeset = yes; then
21887 -    cat >> confdefs.h <<\EOF
21888 +
21889 +cat >>confdefs.h <<\_ACEOF
21890  #define HAVE_LANGINFO_CODESET 1
21891 -EOF
21892 +_ACEOF
21893  
21894    fi
21895  
21896     if test $ac_cv_header_locale_h = yes; then
21897 -    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21898 -echo "configure:6658: checking for LC_MESSAGES" >&5
21899 -if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21900 -  echo $ac_n "(cached) $ac_c" 1>&6
21901 +    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21902 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
21903 +if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21904 +  echo $ECHO_N "(cached) $ECHO_C" >&6
21905  else
21906 -  cat > conftest.$ac_ext <<EOF
21907 -#line 6663 "configure"
21908 +  cat >conftest.$ac_ext <<_ACEOF
21909 +#line $LINENO "configure"
21910  #include "confdefs.h"
21911  #include <locale.h>
21912 -int main() {
21913 +#ifdef F77_DUMMY_MAIN
21914 +#  ifdef __cplusplus
21915 +     extern "C"
21916 +#  endif
21917 +   int F77_DUMMY_MAIN() { return 1; }
21918 +#endif
21919 +int
21920 +main ()
21921 +{
21922  return LC_MESSAGES
21923 -; return 0; }
21924 -EOF
21925 -if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21926 -  rm -rf conftest*
21927 +  ;
21928 +  return 0;
21929 +}
21930 +_ACEOF
21931 +rm -f conftest.$ac_objext conftest$ac_exeext
21932 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21933 +  (eval $ac_link) 2>&5
21934 +  ac_status=$?
21935 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 +  (exit $ac_status); } &&
21937 +         { ac_try='test -s conftest$ac_exeext'
21938 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 +  (eval $ac_try) 2>&5
21940 +  ac_status=$?
21941 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 +  (exit $ac_status); }; }; then
21943    am_cv_val_LC_MESSAGES=yes
21944  else
21945 -  echo "configure: failed program was:" >&5
21946 -  cat conftest.$ac_ext >&5
21947 -  rm -rf conftest*
21948 -  am_cv_val_LC_MESSAGES=no
21949 +  echo "$as_me: failed program was:" >&5
21950 +cat conftest.$ac_ext >&5
21951 +am_cv_val_LC_MESSAGES=no
21952  fi
21953 -rm -f conftest*
21954 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21955  fi
21956 -
21957 -echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
21958 +echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21959 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
21960      if test $am_cv_val_LC_MESSAGES = yes; then
21961 -      cat >> confdefs.h <<\EOF
21962 +
21963 +cat >>confdefs.h <<\_ACEOF
21964  #define HAVE_LC_MESSAGES 1
21965 -EOF
21966 +_ACEOF
21967  
21968      fi
21969    fi
21970 -   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
21971 -echo "configure:6691: checking whether NLS is requested" >&5
21972 +   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21973 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21974          # Check whether --enable-nls or --disable-nls was given.
21975  if test "${enable_nls+set}" = set; then
21976    enableval="$enable_nls"
21977    USE_NLS=$enableval
21978  else
21979    USE_NLS=yes
21980 -fi
21981 +fi;
21982 +    echo "$as_me:$LINENO: result: $USE_NLS" >&5
21983 +echo "${ECHO_T}$USE_NLS" >&6
21984  
21985 -    echo "$ac_t""$USE_NLS" 1>&6
21986 -    
21987  
21988      BUILD_INCLUDED_LIBINTL=no
21989      USE_INCLUDED_LIBINTL=no
21990      INTLLIBS=
21991  
21992          if test "$USE_NLS" = "yes"; then
21993 -      cat >> confdefs.h <<\EOF
21994 +
21995 +cat >>confdefs.h <<\_ACEOF
21996  #define ENABLE_NLS 1
21997 -EOF
21998 +_ACEOF
21999 +
22000 +      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
22001 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
22002  
22003 -      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
22004 -echo "configure:6713: checking whether included gettext is requested" >&5
22005 -      # Check whether --with-included-gettext or --without-included-gettext was given.
22006 +# Check whether --with-included-gettext or --without-included-gettext was given.
22007  if test "${with_included_gettext+set}" = set; then
22008    withval="$with_included_gettext"
22009    nls_cv_force_use_gnu_gettext=$withval
22010  else
22011    nls_cv_force_use_gnu_gettext=no
22012 -fi
22013 -
22014 -      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
22015 +fi;
22016 +      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
22017 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
22018  
22019        nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22020        if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22021                                 CATOBJEXT=NONE
22022  
22023 -                
22024 -        
22025  
22026 -       ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
22027 -echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
22028 -echo "configure:6733: checking for libintl.h" >&5
22029 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22030 -  echo $ac_n "(cached) $ac_c" 1>&6
22031 -else
22032 -  cat > conftest.$ac_ext <<EOF
22033 -#line 6738 "configure"
22034 +
22035 +
22036 +       if test "${ac_cv_header_libintl_h+set}" = set; then
22037 +  echo "$as_me:$LINENO: checking for libintl.h" >&5
22038 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22039 +if test "${ac_cv_header_libintl_h+set}" = set; then
22040 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22041 +fi
22042 +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22043 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22044 +else
22045 +  # Is the header compilable?
22046 +echo "$as_me:$LINENO: checking libintl.h usability" >&5
22047 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
22048 +cat >conftest.$ac_ext <<_ACEOF
22049 +#line $LINENO "configure"
22050 +#include "confdefs.h"
22051 +$ac_includes_default
22052 +#include <libintl.h>
22053 +_ACEOF
22054 +rm -f conftest.$ac_objext
22055 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056 +  (eval $ac_compile) 2>&5
22057 +  ac_status=$?
22058 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 +  (exit $ac_status); } &&
22060 +         { ac_try='test -s conftest.$ac_objext'
22061 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 +  (eval $ac_try) 2>&5
22063 +  ac_status=$?
22064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 +  (exit $ac_status); }; }; then
22066 +  ac_header_compiler=yes
22067 +else
22068 +  echo "$as_me: failed program was:" >&5
22069 +cat conftest.$ac_ext >&5
22070 +ac_header_compiler=no
22071 +fi
22072 +rm -f conftest.$ac_objext conftest.$ac_ext
22073 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22074 +echo "${ECHO_T}$ac_header_compiler" >&6
22075 +
22076 +# Is the header present?
22077 +echo "$as_me:$LINENO: checking libintl.h presence" >&5
22078 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
22079 +cat >conftest.$ac_ext <<_ACEOF
22080 +#line $LINENO "configure"
22081  #include "confdefs.h"
22082  #include <libintl.h>
22083 -EOF
22084 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22085 -{ (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22086 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22087 -if test -z "$ac_err"; then
22088 -  rm -rf conftest*
22089 -  eval "ac_cv_header_$ac_safe=yes"
22090 +_ACEOF
22091 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22092 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22093 +  ac_status=$?
22094 +  egrep -v '^ *\+' conftest.er1 >conftest.err
22095 +  rm -f conftest.er1
22096 +  cat conftest.err >&5
22097 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 +  (exit $ac_status); } >/dev/null; then
22099 +  if test -s conftest.err; then
22100 +    ac_cpp_err=$ac_c_preproc_warn_flag
22101 +  else
22102 +    ac_cpp_err=
22103 +  fi
22104 +else
22105 +  ac_cpp_err=yes
22106 +fi
22107 +if test -z "$ac_cpp_err"; then
22108 +  ac_header_preproc=yes
22109  else
22110 -  echo "$ac_err" >&5
22111 -  echo "configure: failed program was:" >&5
22112 +  echo "$as_me: failed program was:" >&5
22113    cat conftest.$ac_ext >&5
22114 -  rm -rf conftest*
22115 -  eval "ac_cv_header_$ac_safe=no"
22116 +  ac_header_preproc=no
22117  fi
22118 -rm -f conftest*
22119 +rm -f conftest.err conftest.$ac_ext
22120 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22121 +echo "${ECHO_T}$ac_header_preproc" >&6
22122 +
22123 +# So?  What about this header?
22124 +case $ac_header_compiler:$ac_header_preproc in
22125 +  yes:no )
22126 +    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22127 +echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22128 +    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22129 +echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
22130 +  no:yes )
22131 +    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22132 +echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22133 +    { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22134 +echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22135 +    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22136 +echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
22137 +esac
22138 +echo "$as_me:$LINENO: checking for libintl.h" >&5
22139 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22140 +if test "${ac_cv_header_libintl_h+set}" = set; then
22141 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22142 +else
22143 +  ac_cv_header_libintl_h=$ac_header_preproc
22144  fi
22145 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22146 -  echo "$ac_t""yes" 1>&6
22147 -  echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
22148 -echo "configure:6760: checking for GNU gettext in libc" >&5
22149 -if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
22150 -  echo $ac_n "(cached) $ac_c" 1>&6
22151 +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22152 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22153 +
22154 +fi
22155 +if test $ac_cv_header_libintl_h = yes; then
22156 +  echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22157 +echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22158 +if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
22159 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22160  else
22161 -  cat > conftest.$ac_ext <<EOF
22162 -#line 6765 "configure"
22163 +  cat >conftest.$ac_ext <<_ACEOF
22164 +#line $LINENO "configure"
22165  #include "confdefs.h"
22166  #include <libintl.h>
22167  extern int _nl_msg_cat_cntr;
22168 -int main() {
22169 +#ifdef F77_DUMMY_MAIN
22170 +#  ifdef __cplusplus
22171 +     extern "C"
22172 +#  endif
22173 +   int F77_DUMMY_MAIN() { return 1; }
22174 +#endif
22175 +int
22176 +main ()
22177 +{
22178  bindtextdomain ("", "");
22179  return (int) gettext ("") + _nl_msg_cat_cntr
22180 -; return 0; }
22181 -EOF
22182 -if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22183 -  rm -rf conftest*
22184 +  ;
22185 +  return 0;
22186 +}
22187 +_ACEOF
22188 +rm -f conftest.$ac_objext conftest$ac_exeext
22189 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22190 +  (eval $ac_link) 2>&5
22191 +  ac_status=$?
22192 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 +  (exit $ac_status); } &&
22194 +         { ac_try='test -s conftest$ac_exeext'
22195 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 +  (eval $ac_try) 2>&5
22197 +  ac_status=$?
22198 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 +  (exit $ac_status); }; }; then
22200    gt_cv_func_gnugettext1_libc=yes
22201  else
22202 -  echo "configure: failed program was:" >&5
22203 -  cat conftest.$ac_ext >&5
22204 -  rm -rf conftest*
22205 -  gt_cv_func_gnugettext1_libc=no
22206 +  echo "$as_me: failed program was:" >&5
22207 +cat conftest.$ac_ext >&5
22208 +gt_cv_func_gnugettext1_libc=no
22209  fi
22210 -rm -f conftest*
22211 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22212  fi
22213 -
22214 -echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
22215 +echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
22216 +echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
22217  
22218            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
22219 -            echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
22220 -echo "configure:6790: checking for GNU gettext in libintl" >&5
22221 -if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
22222 -  echo $ac_n "(cached) $ac_c" 1>&6
22223 +            echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22224 +echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
22225 +if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22226 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22227  else
22228    gt_save_LIBS="$LIBS"
22229                 LIBS="$LIBS -lintl $LIBICONV"
22230 -               cat > conftest.$ac_ext <<EOF
22231 -#line 6797 "configure"
22232 +               cat >conftest.$ac_ext <<_ACEOF
22233 +#line $LINENO "configure"
22234  #include "confdefs.h"
22235  #include <libintl.h>
22236  extern int _nl_msg_cat_cntr;
22237 -int main() {
22238 +#ifdef F77_DUMMY_MAIN
22239 +#  ifdef __cplusplus
22240 +     extern "C"
22241 +#  endif
22242 +   int F77_DUMMY_MAIN() { return 1; }
22243 +#endif
22244 +int
22245 +main ()
22246 +{
22247  bindtextdomain ("", "");
22248  return (int) gettext ("") + _nl_msg_cat_cntr
22249 -; return 0; }
22250 -EOF
22251 -if { (eval echo configure:6806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22252 -  rm -rf conftest*
22253 +  ;
22254 +  return 0;
22255 +}
22256 +_ACEOF
22257 +rm -f conftest.$ac_objext conftest$ac_exeext
22258 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259 +  (eval $ac_link) 2>&5
22260 +  ac_status=$?
22261 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 +  (exit $ac_status); } &&
22263 +         { ac_try='test -s conftest$ac_exeext'
22264 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 +  (eval $ac_try) 2>&5
22266 +  ac_status=$?
22267 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 +  (exit $ac_status); }; }; then
22269    gt_cv_func_gnugettext1_libintl=yes
22270  else
22271 -  echo "configure: failed program was:" >&5
22272 -  cat conftest.$ac_ext >&5
22273 -  rm -rf conftest*
22274 -  gt_cv_func_gnugettext1_libintl=no
22275 +  echo "$as_me: failed program was:" >&5
22276 +cat conftest.$ac_ext >&5
22277 +gt_cv_func_gnugettext1_libintl=no
22278  fi
22279 -rm -f conftest*
22280 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22281                 LIBS="$gt_save_LIBS"
22282  fi
22283 -
22284 -echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
22285 +echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22286 +echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
22287            fi
22288  
22289                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22290               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22291                    && test "$PACKAGE" != gettext; }; then
22292 -            cat >> confdefs.h <<\EOF
22293 +
22294 +cat >>confdefs.h <<\_ACEOF
22295  #define HAVE_GETTEXT 1
22296 -EOF
22297 +_ACEOF
22298  
22299  
22300              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22301 @@ -6846,58 +11934,79 @@
22302  
22303              gt_save_LIBS="$LIBS"
22304              LIBS="$LIBS $INTLLIBS"
22305 -            for ac_func in dcgettext
22306 +
22307 +for ac_func in dcgettext
22308  do
22309 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22310 -echo "configure:6839: checking for $ac_func" >&5
22311 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22312 -  echo $ac_n "(cached) $ac_c" 1>&6
22313 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22314 +echo "$as_me:$LINENO: checking for $ac_func" >&5
22315 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22316 +if eval "test \"\${$as_ac_var+set}\" = set"; then
22317 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22318  else
22319 -  cat > conftest.$ac_ext <<EOF
22320 -#line 6844 "configure"
22321 +  cat >conftest.$ac_ext <<_ACEOF
22322 +#line $LINENO "configure"
22323  #include "confdefs.h"
22324  /* System header to define __stub macros and hopefully few prototypes,
22325 -    which can conflict with char $ac_func(); below.  */
22326 +    which can conflict with char $ac_func (); below.  */
22327  #include <assert.h>
22328  /* Override any gcc2 internal prototype to avoid an error.  */
22329 +#ifdef __cplusplus
22330 +extern "C"
22331 +#endif
22332  /* We use char because int might match the return type of a gcc2
22333 -    builtin and then its argument prototype would still apply.  */
22334 -char $ac_func();
22335 -
22336 -int main() {
22337 +   builtin and then its argument prototype would still apply.  */
22338 +char $ac_func ();
22339 +char (*f) ();
22340  
22341 +#ifdef F77_DUMMY_MAIN
22342 +#  ifdef __cplusplus
22343 +     extern "C"
22344 +#  endif
22345 +   int F77_DUMMY_MAIN() { return 1; }
22346 +#endif
22347 +int
22348 +main ()
22349 +{
22350  /* The GNU C library defines this for functions which it implements
22351      to always fail with ENOSYS.  Some functions are actually named
22352      something starting with __ and the normal name is an alias.  */
22353  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22354  choke me
22355  #else
22356 -$ac_func();
22357 +f = $ac_func;
22358  #endif
22359  
22360 -; return 0; }
22361 -EOF
22362 -if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22363 -  rm -rf conftest*
22364 -  eval "ac_cv_func_$ac_func=yes"
22365 -else
22366 -  echo "configure: failed program was:" >&5
22367 -  cat conftest.$ac_ext >&5
22368 -  rm -rf conftest*
22369 -  eval "ac_cv_func_$ac_func=no"
22370 -fi
22371 -rm -f conftest*
22372 -fi
22373 +  ;
22374 +  return 0;
22375 +}
22376 +_ACEOF
22377 +rm -f conftest.$ac_objext conftest$ac_exeext
22378 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379 +  (eval $ac_link) 2>&5
22380 +  ac_status=$?
22381 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 +  (exit $ac_status); } &&
22383 +         { ac_try='test -s conftest$ac_exeext'
22384 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 +  (eval $ac_try) 2>&5
22386 +  ac_status=$?
22387 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 +  (exit $ac_status); }; }; then
22389 +  eval "$as_ac_var=yes"
22390 +else
22391 +  echo "$as_me: failed program was:" >&5
22392 +cat conftest.$ac_ext >&5
22393 +eval "$as_ac_var=no"
22394 +fi
22395 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22396 +fi
22397 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22398 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22399 +if test `eval echo '${'$as_ac_var'}'` = yes; then
22400 +  cat >>confdefs.h <<_ACEOF
22401 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22402 +_ACEOF
22403  
22404 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22405 -  echo "$ac_t""yes" 1>&6
22406 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22407 -  cat >> confdefs.h <<EOF
22408 -#define $ac_tr_func 1
22409 -EOF
22410
22411 -else
22412 -  echo "$ac_t""no" 1>&6
22413  fi
22414  done
22415  
22416 @@ -6905,10 +12014,10 @@
22417  
22418                      # Extract the first word of "msgfmt", so it can be a program name with args.
22419  set dummy msgfmt; ac_word=$2
22420 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22421 -echo "configure:6896: checking for $ac_word" >&5
22422 -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
22423 -  echo $ac_n "(cached) $ac_c" 1>&6
22424 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22425 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22426 +if test "${ac_cv_path_MSGFMT+set}" = set; then
22427 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22428  else
22429    case "$MSGFMT" in
22430    /*)
22431 @@ -6932,54 +12041,60 @@
22432  fi
22433  MSGFMT="$ac_cv_path_MSGFMT"
22434  if test "$MSGFMT" != ":"; then
22435 -  echo "$ac_t""$MSGFMT" 1>&6
22436 +  echo "$as_me:$LINENO: result: $MSGFMT" >&5
22437 +echo "${ECHO_T}$MSGFMT" >&6
22438  else
22439 -  echo "$ac_t""no" 1>&6
22440 +  echo "$as_me:$LINENO: result: no" >&5
22441 +echo "${ECHO_T}no" >&6
22442  fi
22443  
22444              # Extract the first word of "gmsgfmt", so it can be a program name with args.
22445  set dummy gmsgfmt; ac_word=$2
22446 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22447 -echo "configure:6930: checking for $ac_word" >&5
22448 -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
22449 -  echo $ac_n "(cached) $ac_c" 1>&6
22450 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22451 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22452 +if test "${ac_cv_path_GMSGFMT+set}" = set; then
22453 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22454  else
22455 -  case "$GMSGFMT" in
22456 -  /*)
22457 +  case $GMSGFMT in
22458 +  [\\/]* | ?:[\\/]*)
22459    ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22460    ;;
22461 -  ?:/*)                         
22462 -  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
22463 -  ;;
22464    *)
22465 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
22466 -  ac_dummy="$PATH"
22467 -  for ac_dir in $ac_dummy; do 
22468 -    test -z "$ac_dir" && ac_dir=.
22469 -    if test -f $ac_dir/$ac_word; then
22470 -      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
22471 -      break
22472 -    fi
22473 -  done
22474 -  IFS="$ac_save_ifs"
22475 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22476 +for as_dir in $PATH
22477 +do
22478 +  IFS=$as_save_IFS
22479 +  test -z "$as_dir" && as_dir=.
22480 +  for ac_exec_ext in '' $ac_executable_extensions; do
22481 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22482 +    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22483 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22484 +    break 2
22485 +  fi
22486 +done
22487 +done
22488 +
22489    test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22490    ;;
22491  esac
22492  fi
22493 -GMSGFMT="$ac_cv_path_GMSGFMT"
22494 +GMSGFMT=$ac_cv_path_GMSGFMT
22495 +
22496  if test -n "$GMSGFMT"; then
22497 -  echo "$ac_t""$GMSGFMT" 1>&6
22498 +  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22499 +echo "${ECHO_T}$GMSGFMT" >&6
22500  else
22501 -  echo "$ac_t""no" 1>&6
22502 +  echo "$as_me:$LINENO: result: no" >&5
22503 +echo "${ECHO_T}no" >&6
22504  fi
22505  
22506  
22507                      # Extract the first word of "xgettext", so it can be a program name with args.
22508  set dummy xgettext; ac_word=$2
22509 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22510 -echo "configure:6967: checking for $ac_word" >&5
22511 -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
22512 -  echo $ac_n "(cached) $ac_c" 1>&6
22513 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22514 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22515 +if test "${ac_cv_path_XGETTEXT+set}" = set; then
22516 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22517  else
22518    case "$XGETTEXT" in
22519    /*)
22520 @@ -7003,20 +12118,21 @@
22521  fi
22522  XGETTEXT="$ac_cv_path_XGETTEXT"
22523  if test "$XGETTEXT" != ":"; then
22524 -  echo "$ac_t""$XGETTEXT" 1>&6
22525 +  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22526 +echo "${ECHO_T}$XGETTEXT" >&6
22527  else
22528 -  echo "$ac_t""no" 1>&6
22529 +  echo "$as_me:$LINENO: result: no" >&5
22530 +echo "${ECHO_T}no" >&6
22531  fi
22532  
22533  
22534              CATOBJEXT=.gmo
22535            fi
22536 -       
22537 -else
22538 -  echo "$ac_t""no" 1>&6
22539 +
22540  fi
22541  
22542  
22543 +
22544          if test "$CATOBJEXT" = "NONE"; then
22545                           nls_cv_use_gnu_gettext=yes
22546          fi
22547 @@ -7026,10 +12142,10 @@
22548                  INTLOBJS="\$(GETTOBJS)"
22549          # Extract the first word of "msgfmt", so it can be a program name with args.
22550  set dummy msgfmt; ac_word=$2
22551 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22552 -echo "configure:7017: checking for $ac_word" >&5
22553 -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
22554 -  echo $ac_n "(cached) $ac_c" 1>&6
22555 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22556 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22557 +if test "${ac_cv_path_MSGFMT+set}" = set; then
22558 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22559  else
22560    case "$MSGFMT" in
22561    /*)
22562 @@ -7053,53 +12169,59 @@
22563  fi
22564  MSGFMT="$ac_cv_path_MSGFMT"
22565  if test "$MSGFMT" != ":"; then
22566 -  echo "$ac_t""$MSGFMT" 1>&6
22567 +  echo "$as_me:$LINENO: result: $MSGFMT" >&5
22568 +echo "${ECHO_T}$MSGFMT" >&6
22569  else
22570 -  echo "$ac_t""no" 1>&6
22571 +  echo "$as_me:$LINENO: result: no" >&5
22572 +echo "${ECHO_T}no" >&6
22573  fi
22574  
22575          # Extract the first word of "gmsgfmt", so it can be a program name with args.
22576  set dummy gmsgfmt; ac_word=$2
22577 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22578 -echo "configure:7051: checking for $ac_word" >&5
22579 -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
22580 -  echo $ac_n "(cached) $ac_c" 1>&6
22581 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22582 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22583 +if test "${ac_cv_path_GMSGFMT+set}" = set; then
22584 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22585  else
22586 -  case "$GMSGFMT" in
22587 -  /*)
22588 +  case $GMSGFMT in
22589 +  [\\/]* | ?:[\\/]*)
22590    ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22591    ;;
22592 -  ?:/*)                         
22593 -  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
22594 -  ;;
22595    *)
22596 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
22597 -  ac_dummy="$PATH"
22598 -  for ac_dir in $ac_dummy; do 
22599 -    test -z "$ac_dir" && ac_dir=.
22600 -    if test -f $ac_dir/$ac_word; then
22601 -      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
22602 -      break
22603 -    fi
22604 -  done
22605 -  IFS="$ac_save_ifs"
22606 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22607 +for as_dir in $PATH
22608 +do
22609 +  IFS=$as_save_IFS
22610 +  test -z "$as_dir" && as_dir=.
22611 +  for ac_exec_ext in '' $ac_executable_extensions; do
22612 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22613 +    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22614 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22615 +    break 2
22616 +  fi
22617 +done
22618 +done
22619 +
22620    test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22621    ;;
22622  esac
22623  fi
22624 -GMSGFMT="$ac_cv_path_GMSGFMT"
22625 +GMSGFMT=$ac_cv_path_GMSGFMT
22626 +
22627  if test -n "$GMSGFMT"; then
22628 -  echo "$ac_t""$GMSGFMT" 1>&6
22629 +  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22630 +echo "${ECHO_T}$GMSGFMT" >&6
22631  else
22632 -  echo "$ac_t""no" 1>&6
22633 +  echo "$as_me:$LINENO: result: no" >&5
22634 +echo "${ECHO_T}no" >&6
22635  fi
22636  
22637          # Extract the first word of "xgettext", so it can be a program name with args.
22638  set dummy xgettext; ac_word=$2
22639 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22640 -echo "configure:7087: checking for $ac_word" >&5
22641 -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
22642 -  echo $ac_n "(cached) $ac_c" 1>&6
22643 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22644 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22645 +if test "${ac_cv_path_XGETTEXT+set}" = set; then
22646 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22647  else
22648    case "$XGETTEXT" in
22649    /*)
22650 @@ -7123,12 +12245,14 @@
22651  fi
22652  XGETTEXT="$ac_cv_path_XGETTEXT"
22653  if test "$XGETTEXT" != ":"; then
22654 -  echo "$ac_t""$XGETTEXT" 1>&6
22655 +  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22656 +echo "${ECHO_T}$XGETTEXT" >&6
22657  else
22658 -  echo "$ac_t""no" 1>&6
22659 +  echo "$as_me:$LINENO: result: no" >&5
22660 +echo "${ECHO_T}no" >&6
22661  fi
22662  
22663 -        
22664 +
22665         BUILD_INCLUDED_LIBINTL=yes
22666         USE_INCLUDED_LIBINTL=yes
22667          CATOBJEXT=.gmo
22668 @@ -7140,7 +12264,8 @@
22669                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
22670           : ;
22671         else
22672 -         echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
22673 +         echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22674 +echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
22675           GMSGFMT=":"
22676         fi
22677        fi
22678 @@ -7149,14 +12274,16 @@
22679                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
22680           : ;
22681         else
22682 -         echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
22683 +         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22684 +echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22685           XGETTEXT=":"
22686         fi
22687        fi
22688  
22689              POSUB=po
22690      fi
22691 -    
22692 +              ac_config_commands="$ac_config_commands default-1"
22693 +
22694  
22695  
22696              if test "$PACKAGE" = gettext; then
22697 @@ -7165,43 +12292,49 @@
22698  
22699                                              for ac_prog in bison
22700  do
22701 -# Extract the first word of "$ac_prog", so it can be a program name with args.
22702 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
22703  set dummy $ac_prog; ac_word=$2
22704 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
22705 -echo "configure:7158: checking for $ac_word" >&5
22706 -if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
22707 -  echo $ac_n "(cached) $ac_c" 1>&6
22708 +echo "$as_me:$LINENO: checking for $ac_word" >&5
22709 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22710 +if test "${ac_cv_prog_INTLBISON+set}" = set; then
22711 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22712  else
22713    if test -n "$INTLBISON"; then
22714    ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22715  else
22716 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
22717 -  ac_dummy="$PATH"
22718 -  for ac_dir in $ac_dummy; do
22719 -    test -z "$ac_dir" && ac_dir=.
22720 -    if test -f $ac_dir/$ac_word; then
22721 -      ac_cv_prog_INTLBISON="$ac_prog"
22722 -      break
22723 -    fi
22724 -  done
22725 -  IFS="$ac_save_ifs"
22726 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22727 +for as_dir in $PATH
22728 +do
22729 +  IFS=$as_save_IFS
22730 +  test -z "$as_dir" && as_dir=.
22731 +  for ac_exec_ext in '' $ac_executable_extensions; do
22732 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22733 +    ac_cv_prog_INTLBISON="$ac_prog"
22734 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22735 +    break 2
22736 +  fi
22737 +done
22738 +done
22739 +
22740  fi
22741  fi
22742 -INTLBISON="$ac_cv_prog_INTLBISON"
22743 +INTLBISON=$ac_cv_prog_INTLBISON
22744  if test -n "$INTLBISON"; then
22745 -  echo "$ac_t""$INTLBISON" 1>&6
22746 +  echo "$as_me:$LINENO: result: $INTLBISON" >&5
22747 +echo "${ECHO_T}$INTLBISON" >&6
22748  else
22749 -  echo "$ac_t""no" 1>&6
22750 +  echo "$as_me:$LINENO: result: no" >&5
22751 +echo "${ECHO_T}no" >&6
22752  fi
22753  
22754 -test -n "$INTLBISON" && break
22755 +  test -n "$INTLBISON" && break
22756  done
22757  
22758      if test -z "$INTLBISON"; then
22759        ac_verc_fail=yes
22760      else
22761 -            echo $ac_n "checking version of bison""... $ac_c" 1>&6
22762 -echo "configure:7191: checking version of bison" >&5
22763 +            echo "$as_me:$LINENO: checking version of bison" >&5
22764 +echo $ECHO_N "checking version of bison... $ECHO_C" >&6
22765        ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22766        case $ac_prog_version in
22767          '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22768 @@ -7209,7 +12342,8 @@
22769             ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22770          *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22771        esac
22772 -      echo "$ac_t""$ac_prog_version" 1>&6
22773 +      echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22774 +echo "${ECHO_T}$ac_prog_version" >&6
22775      fi
22776      if test $ac_verc_fail = yes; then
22777        INTLBISON=:
22778 @@ -7220,35 +12354,35 @@
22779        POFILES="$POFILES $lang.po"
22780      done
22781  
22782 -        
22783 -    
22784 -    
22785 -    
22786 -    
22787 -    
22788 -    
22789 -    
22790 -    
22791 +
22792 +
22793 +
22794 +
22795 +
22796 +
22797 +
22798 +
22799 +
22800  
22801          nls_cv_header_intl=
22802      nls_cv_header_libgt=
22803  
22804          DATADIRNAME=share
22805 -    
22806 +
22807  
22808          INSTOBJEXT=.mo
22809 -    
22810 +
22811  
22812          GENCAT=gencat
22813 -    
22814 -  
22815 +
22816 +
22817  
22818     if test "x$CATOBJEXT" != "x"; then
22819       if test "x$ALL_LINGUAS" = "x"; then
22820         LINGUAS=
22821       else
22822 -       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
22823 -echo "configure:7238: checking for catalogs to be installed" >&5
22824 +       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22825 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
22826         NEW_LINGUAS=
22827         for presentlang in $ALL_LINGUAS; do
22828           useit=no
22829 @@ -7267,7 +12401,8 @@
22830           fi
22831         done
22832         LINGUAS=$NEW_LINGUAS
22833 -       echo "$ac_t""$LINGUAS" 1>&6
22834 +       echo "$as_me:$LINENO: result: $LINGUAS" >&5
22835 +echo "${ECHO_T}$LINGUAS" >&6
22836       fi
22837  
22838            if test -n "$LINGUAS"; then
22839 @@ -7282,90 +12417,167 @@
22840     if test -z "$MKINSTALLDIRS"; then
22841       MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22842     fi
22843 -   
22844 +
22845  
22846        INTL_LIBTOOL_SUFFIX_PREFIX=
22847 -   
22848 -  
22849 -for ac_hdr in iconv.h
22850 -do
22851 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22852 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22853 -echo "configure:7281: checking for $ac_hdr" >&5
22854 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22855 -  echo $ac_n "(cached) $ac_c" 1>&6
22856 -else
22857 -  cat > conftest.$ac_ext <<EOF
22858 -#line 7286 "configure"
22859 -#include "confdefs.h"
22860 -#include <$ac_hdr>
22861 -EOF
22862 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22863 -{ (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22864 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22865 -if test -z "$ac_err"; then
22866 -  rm -rf conftest*
22867 -  eval "ac_cv_header_$ac_safe=yes"
22868 +
22869 +
22870 +
22871 +for ac_header in iconv.h
22872 +do
22873 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22874 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
22875 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
22876 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22877 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
22878 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22879 +fi
22880 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22881 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22882 +else
22883 +  # Is the header compilable?
22884 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
22885 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22886 +cat >conftest.$ac_ext <<_ACEOF
22887 +#line $LINENO "configure"
22888 +#include "confdefs.h"
22889 +$ac_includes_default
22890 +#include <$ac_header>
22891 +_ACEOF
22892 +rm -f conftest.$ac_objext
22893 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22894 +  (eval $ac_compile) 2>&5
22895 +  ac_status=$?
22896 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 +  (exit $ac_status); } &&
22898 +         { ac_try='test -s conftest.$ac_objext'
22899 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 +  (eval $ac_try) 2>&5
22901 +  ac_status=$?
22902 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 +  (exit $ac_status); }; }; then
22904 +  ac_header_compiler=yes
22905 +else
22906 +  echo "$as_me: failed program was:" >&5
22907 +cat conftest.$ac_ext >&5
22908 +ac_header_compiler=no
22909 +fi
22910 +rm -f conftest.$ac_objext conftest.$ac_ext
22911 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22912 +echo "${ECHO_T}$ac_header_compiler" >&6
22913 +
22914 +# Is the header present?
22915 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
22916 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22917 +cat >conftest.$ac_ext <<_ACEOF
22918 +#line $LINENO "configure"
22919 +#include "confdefs.h"
22920 +#include <$ac_header>
22921 +_ACEOF
22922 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22923 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22924 +  ac_status=$?
22925 +  egrep -v '^ *\+' conftest.er1 >conftest.err
22926 +  rm -f conftest.er1
22927 +  cat conftest.err >&5
22928 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 +  (exit $ac_status); } >/dev/null; then
22930 +  if test -s conftest.err; then
22931 +    ac_cpp_err=$ac_c_preproc_warn_flag
22932 +  else
22933 +    ac_cpp_err=
22934 +  fi
22935  else
22936 -  echo "$ac_err" >&5
22937 -  echo "configure: failed program was:" >&5
22938 -  cat conftest.$ac_ext >&5
22939 -  rm -rf conftest*
22940 -  eval "ac_cv_header_$ac_safe=no"
22941 +  ac_cpp_err=yes
22942  fi
22943 -rm -f conftest*
22944 +if test -z "$ac_cpp_err"; then
22945 +  ac_header_preproc=yes
22946 +else
22947 +  echo "$as_me: failed program was:" >&5
22948 +  cat conftest.$ac_ext >&5
22949 +  ac_header_preproc=no
22950  fi
22951 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22952 -  echo "$ac_t""yes" 1>&6
22953 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22954 -  cat >> confdefs.h <<EOF
22955 -#define $ac_tr_hdr 1
22956 -EOF
22957 - echo $ac_n "checking whether iconv.h defines iconv_t""... $ac_c" 1>&6
22958 -echo "configure:7312: checking whether iconv.h defines iconv_t" >&5
22959 -         cat > conftest.$ac_ext <<EOF
22960 -#line 7314 "configure"
22961 +rm -f conftest.err conftest.$ac_ext
22962 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22963 +echo "${ECHO_T}$ac_header_preproc" >&6
22964 +
22965 +# So?  What about this header?
22966 +case $ac_header_compiler:$ac_header_preproc in
22967 +  yes:no )
22968 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22969 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22970 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22971 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22972 +  no:yes )
22973 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22974 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22975 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22976 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22977 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22978 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22979 +esac
22980 +echo "$as_me:$LINENO: checking for $ac_header" >&5
22981 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22982 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
22983 +  echo $ECHO_N "(cached) $ECHO_C" >&6
22984 +else
22985 +  eval "$as_ac_Header=$ac_header_preproc"
22986 +fi
22987 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22988 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22989 +
22990 +fi
22991 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
22992 +  cat >>confdefs.h <<_ACEOF
22993 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22994 +_ACEOF
22995 + echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
22996 +echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
22997 +         cat >conftest.$ac_ext <<_ACEOF
22998 +#line $LINENO "configure"
22999  #include "confdefs.h"
23000  #include <iconv.h>
23001 -EOF
23002 +
23003 +_ACEOF
23004  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23005    egrep "typedef.*iconv_t" >/dev/null 2>&1; then
23006 -  rm -rf conftest*
23007 -  echo "$ac_t""yes" 1>&6
23008 -                 cat >> confdefs.h <<\EOF
23009 +  echo "$as_me:$LINENO: result: yes" >&5
23010 +echo "${ECHO_T}yes" >&6
23011 +
23012 +cat >>confdefs.h <<\_ACEOF
23013  #define HAVE_ICONV_T_DEF 1
23014 -EOF
23015 +_ACEOF
23016  
23017  else
23018 -  rm -rf conftest*
23019 -  echo "$ac_t""no" 1>&6
23020 +  echo "$as_me:$LINENO: result: no" >&5
23021 +echo "${ECHO_T}no" >&6
23022  fi
23023  rm -f conftest*
23024  
23025 -else
23026 -  echo "$ac_t""no" 1>&6
23027  fi
23028 +
23029  done
23030  
23031  
23032  if test "$am_cv_func_iconv" != "yes"
23033  then
23034  #  AC_MSG_ERROR([Unable to find an iconv function. See INSTALL for help])
23035 -  echo "configure: warning: Unable to find an iconv function. See INSTALL for help" 1>&2
23036 +  { echo "$as_me:$LINENO: WARNING: Unable to find an iconv function. See INSTALL for help" >&5
23037 +echo "$as_me: WARNING: Unable to find an iconv function. See INSTALL for help" >&2;}
23038  else
23039  
23040 -echo $ac_n "checking whether this iconv is good enough""... $ac_c" 1>&6
23041 -echo "configure:7345: checking whether this iconv is good enough" >&5
23042 -if eval "test \"`echo '$''{'mutt_cv_iconv_good'+set}'`\" = set"; then
23043 -  echo $ac_n "(cached) $ac_c" 1>&6
23044 +echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
23045 +echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
23046 +if test "${mutt_cv_iconv_good+set}" = set; then
23047 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23048  else
23049    mutt_save_LIBS="$LIBS"
23050          LIBS="$LIBS $LIBICONV"
23051          if test "$cross_compiling" = yes; then
23052    mutt_cv_iconv_good=yes
23053  else
23054 -  cat > conftest.$ac_ext <<EOF
23055 -#line 7355 "configure"
23056 +  cat >conftest.$ac_ext <<_ACEOF
23057 +#line $LINENO "configure"
23058  #include "confdefs.h"
23059  
23060  #include <iconv.h>
23061 @@ -7381,40 +12593,51 @@
23062             !(ob == buf && obl == sizeof(buf)) ||
23063             iconv_close(cd)));
23064  }
23065 -                
23066 -EOF
23067 -if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23068 -then
23069 +
23070 +_ACEOF
23071 +rm -f conftest$ac_exeext
23072 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23073 +  (eval $ac_link) 2>&5
23074 +  ac_status=$?
23075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23077 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 +  (eval $ac_try) 2>&5
23079 +  ac_status=$?
23080 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 +  (exit $ac_status); }; }; then
23082    mutt_cv_iconv_good=yes
23083  else
23084 -  echo "configure: failed program was:" >&5
23085 -  cat conftest.$ac_ext >&5
23086 -  rm -fr conftest*
23087 -  mutt_cv_iconv_good=no
23088 +  echo "$as_me: program exited with status $ac_status" >&5
23089 +echo "$as_me: failed program was:" >&5
23090 +cat conftest.$ac_ext >&5
23091 +( exit $ac_status )
23092 +mutt_cv_iconv_good=no
23093  fi
23094 -rm -fr conftest*
23095 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23096  fi
23097 -
23098          LIBS="$mutt_save_LIBS"
23099  fi
23100 -
23101 -echo "$ac_t""$mutt_cv_iconv_good" 1>&6
23102 +echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
23103 +echo "${ECHO_T}$mutt_cv_iconv_good" >&6
23104  if test "$mutt_cv_iconv_good" = no; then
23105 -  { echo "configure: error: Try using libiconv instead" 1>&2; exit 1; }
23106 +  { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
23107 +echo "$as_me: error: Try using libiconv instead" >&2;}
23108 +   { (exit 1); exit 1; }; }
23109  fi
23110  
23111 -echo $ac_n "checking whether iconv is non-transcribing""... $ac_c" 1>&6
23112 -echo "configure:7394: checking whether iconv is non-transcribing" >&5
23113 -if eval "test \"`echo '$''{'mutt_cv_iconv_nontrans'+set}'`\" = set"; then
23114 -  echo $ac_n "(cached) $ac_c" 1>&6
23115 +echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
23116 +echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
23117 +if test "${mutt_cv_iconv_nontrans+set}" = set; then
23118 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23119  else
23120    mutt_save_LIBS="$LIBS"
23121          LIBS="$LIBS $LIBICONV"
23122          if test "$cross_compiling" = yes; then
23123    mutt_cv_iconv_nontrans=no
23124  else
23125 -  cat > conftest.$ac_ext <<EOF
23126 -#line 7404 "configure"
23127 +  cat >conftest.$ac_ext <<_ACEOF
23128 +#line $LINENO "configure"
23129  #include "confdefs.h"
23130  
23131  #include <iconv.h>
23132 @@ -7431,33 +12654,42 @@
23133    return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
23134            iconv(cd, &ib, &ibl, &ob, &obl));
23135  }
23136 -                
23137 -EOF
23138 -if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23139 -then
23140 +
23141 +_ACEOF
23142 +rm -f conftest$ac_exeext
23143 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23144 +  (eval $ac_link) 2>&5
23145 +  ac_status=$?
23146 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23148 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 +  (eval $ac_try) 2>&5
23150 +  ac_status=$?
23151 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 +  (exit $ac_status); }; }; then
23153    mutt_cv_iconv_nontrans=no
23154  else
23155 -  echo "configure: failed program was:" >&5
23156 -  cat conftest.$ac_ext >&5
23157 -  rm -fr conftest*
23158 -  mutt_cv_iconv_nontrans=yes
23159 +  echo "$as_me: program exited with status $ac_status" >&5
23160 +echo "$as_me: failed program was:" >&5
23161 +cat conftest.$ac_ext >&5
23162 +( exit $ac_status )
23163 +mutt_cv_iconv_nontrans=yes
23164  fi
23165 -rm -fr conftest*
23166 +rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23167  fi
23168 -
23169          LIBS="$mutt_save_LIBS"
23170  fi
23171 -
23172 -echo "$ac_t""$mutt_cv_iconv_nontrans" 1>&6
23173 +echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
23174 +echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
23175  if test "$mutt_cv_iconv_nontrans" = yes; then
23176 -  cat >> confdefs.h <<\EOF
23177 +  cat >>confdefs.h <<\_ACEOF
23178  #define ICONV_NONTRANS 1
23179 -EOF
23180 +_ACEOF
23181  
23182  else
23183 -  cat >> confdefs.h <<\EOF
23184 +  cat >>confdefs.h <<\_ACEOF
23185  #define ICONV_NONTRANS 0
23186 -EOF
23187 +_ACEOF
23188  
23189  fi
23190  
23191 @@ -7466,117 +12698,213 @@
23192  CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
23193  
23194  if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
23195 -  cat >> confdefs.h <<\EOF
23196 +
23197 +cat >>confdefs.h <<\_ACEOF
23198  #define HAVE_BIND_TEXTDOMAIN_CODESET 1
23199 -EOF
23200 +_ACEOF
23201  
23202  else
23203 -  for ac_func in bind_textdomain_codeset
23204 +
23205 +for ac_func in bind_textdomain_codeset
23206  do
23207 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23208 -echo "configure:7464: checking for $ac_func" >&5
23209 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23210 -  echo $ac_n "(cached) $ac_c" 1>&6
23211 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23212 +echo "$as_me:$LINENO: checking for $ac_func" >&5
23213 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23214 +if eval "test \"\${$as_ac_var+set}\" = set"; then
23215 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23216  else
23217 -  cat > conftest.$ac_ext <<EOF
23218 -#line 7469 "configure"
23219 +  cat >conftest.$ac_ext <<_ACEOF
23220 +#line $LINENO "configure"
23221  #include "confdefs.h"
23222  /* System header to define __stub macros and hopefully few prototypes,
23223 -    which can conflict with char $ac_func(); below.  */
23224 +    which can conflict with char $ac_func (); below.  */
23225  #include <assert.h>
23226  /* Override any gcc2 internal prototype to avoid an error.  */
23227 +#ifdef __cplusplus
23228 +extern "C"
23229 +#endif
23230  /* We use char because int might match the return type of a gcc2
23231 -    builtin and then its argument prototype would still apply.  */
23232 -char $ac_func();
23233 -
23234 -int main() {
23235 +   builtin and then its argument prototype would still apply.  */
23236 +char $ac_func ();
23237 +char (*f) ();
23238  
23239 +#ifdef F77_DUMMY_MAIN
23240 +#  ifdef __cplusplus
23241 +     extern "C"
23242 +#  endif
23243 +   int F77_DUMMY_MAIN() { return 1; }
23244 +#endif
23245 +int
23246 +main ()
23247 +{
23248  /* The GNU C library defines this for functions which it implements
23249      to always fail with ENOSYS.  Some functions are actually named
23250      something starting with __ and the normal name is an alias.  */
23251  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23252  choke me
23253  #else
23254 -$ac_func();
23255 +f = $ac_func;
23256  #endif
23257  
23258 -; return 0; }
23259 -EOF
23260 -if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23261 -  rm -rf conftest*
23262 -  eval "ac_cv_func_$ac_func=yes"
23263 +  ;
23264 +  return 0;
23265 +}
23266 +_ACEOF
23267 +rm -f conftest.$ac_objext conftest$ac_exeext
23268 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23269 +  (eval $ac_link) 2>&5
23270 +  ac_status=$?
23271 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 +  (exit $ac_status); } &&
23273 +         { ac_try='test -s conftest$ac_exeext'
23274 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 +  (eval $ac_try) 2>&5
23276 +  ac_status=$?
23277 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 +  (exit $ac_status); }; }; then
23279 +  eval "$as_ac_var=yes"
23280  else
23281 -  echo "configure: failed program was:" >&5
23282 -  cat conftest.$ac_ext >&5
23283 -  rm -rf conftest*
23284 -  eval "ac_cv_func_$ac_func=no"
23285 +  echo "$as_me: failed program was:" >&5
23286 +cat conftest.$ac_ext >&5
23287 +eval "$as_ac_var=no"
23288  fi
23289 -rm -f conftest*
23290 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23291  fi
23292 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23293 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23294 +if test `eval echo '${'$as_ac_var'}'` = yes; then
23295 +  cat >>confdefs.h <<_ACEOF
23296 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23297 +_ACEOF
23298  
23299 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23300 -  echo "$ac_t""yes" 1>&6
23301 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23302 -  cat >> confdefs.h <<EOF
23303 -#define $ac_tr_func 1
23304 -EOF
23305
23306 -else
23307 -  echo "$ac_t""no" 1>&6
23308  fi
23309  done
23310  
23311  fi
23312  
23313  
23314 -for ac_hdr in wchar.h
23315 +
23316 +for ac_header in wchar.h
23317  do
23318 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23319 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23320 -echo "configure:7523: checking for $ac_hdr" >&5
23321 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23322 -  echo $ac_n "(cached) $ac_c" 1>&6
23323 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23324 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23325 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
23326 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23327 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23328 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23329 +fi
23330 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23331 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23332 +else
23333 +  # Is the header compilable?
23334 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
23335 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23336 +cat >conftest.$ac_ext <<_ACEOF
23337 +#line $LINENO "configure"
23338 +#include "confdefs.h"
23339 +$ac_includes_default
23340 +#include <$ac_header>
23341 +_ACEOF
23342 +rm -f conftest.$ac_objext
23343 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23344 +  (eval $ac_compile) 2>&5
23345 +  ac_status=$?
23346 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 +  (exit $ac_status); } &&
23348 +         { ac_try='test -s conftest.$ac_objext'
23349 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 +  (eval $ac_try) 2>&5
23351 +  ac_status=$?
23352 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 +  (exit $ac_status); }; }; then
23354 +  ac_header_compiler=yes
23355 +else
23356 +  echo "$as_me: failed program was:" >&5
23357 +cat conftest.$ac_ext >&5
23358 +ac_header_compiler=no
23359 +fi
23360 +rm -f conftest.$ac_objext conftest.$ac_ext
23361 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23362 +echo "${ECHO_T}$ac_header_compiler" >&6
23363 +
23364 +# Is the header present?
23365 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
23366 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23367 +cat >conftest.$ac_ext <<_ACEOF
23368 +#line $LINENO "configure"
23369 +#include "confdefs.h"
23370 +#include <$ac_header>
23371 +_ACEOF
23372 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23373 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23374 +  ac_status=$?
23375 +  egrep -v '^ *\+' conftest.er1 >conftest.err
23376 +  rm -f conftest.er1
23377 +  cat conftest.err >&5
23378 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 +  (exit $ac_status); } >/dev/null; then
23380 +  if test -s conftest.err; then
23381 +    ac_cpp_err=$ac_c_preproc_warn_flag
23382 +  else
23383 +    ac_cpp_err=
23384 +  fi
23385  else
23386 -  cat > conftest.$ac_ext <<EOF
23387 -#line 7528 "configure"
23388 -#include "confdefs.h"
23389 -#include <$ac_hdr>
23390 -EOF
23391 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23392 -{ (eval echo configure:7533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23393 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23394 -if test -z "$ac_err"; then
23395 -  rm -rf conftest*
23396 -  eval "ac_cv_header_$ac_safe=yes"
23397 +  ac_cpp_err=yes
23398 +fi
23399 +if test -z "$ac_cpp_err"; then
23400 +  ac_header_preproc=yes
23401  else
23402 -  echo "$ac_err" >&5
23403 -  echo "configure: failed program was:" >&5
23404 +  echo "$as_me: failed program was:" >&5
23405    cat conftest.$ac_ext >&5
23406 -  rm -rf conftest*
23407 -  eval "ac_cv_header_$ac_safe=no"
23408 -fi
23409 -rm -f conftest*
23410 +  ac_header_preproc=no
23411  fi
23412 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23413 -  echo "$ac_t""yes" 1>&6
23414 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23415 -  cat >> confdefs.h <<EOF
23416 -#define $ac_tr_hdr 1
23417 -EOF
23418
23419 +rm -f conftest.err conftest.$ac_ext
23420 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23421 +echo "${ECHO_T}$ac_header_preproc" >&6
23422 +
23423 +# So?  What about this header?
23424 +case $ac_header_compiler:$ac_header_preproc in
23425 +  yes:no )
23426 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23427 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23428 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23429 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23430 +  no:yes )
23431 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23432 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23433 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23434 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23435 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23436 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23437 +esac
23438 +echo "$as_me:$LINENO: checking for $ac_header" >&5
23439 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23440 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23441 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23442  else
23443 -  echo "$ac_t""no" 1>&6
23444 +  eval "$as_ac_Header=$ac_header_preproc"
23445  fi
23446 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23447 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23448 +
23449 +fi
23450 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
23451 +  cat >>confdefs.h <<_ACEOF
23452 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23453 +_ACEOF
23454 +
23455 +fi
23456 +
23457  done
23458  
23459  
23460 -echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
23461 -echo "configure:7561: checking for wchar_t" >&5
23462 -if eval "test \"`echo '$''{'mutt_cv_wchar_t'+set}'`\" = set"; then
23463 -  echo $ac_n "(cached) $ac_c" 1>&6
23464 +echo "$as_me:$LINENO: checking for wchar_t" >&5
23465 +echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23466 +if test "${mutt_cv_wchar_t+set}" = set; then
23467 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23468  else
23469 -  cat > conftest.$ac_ext <<EOF
23470 -#line 7566 "configure"
23471 +  cat >conftest.$ac_ext <<_ACEOF
23472 +#line $LINENO "configure"
23473  #include "confdefs.h"
23474  
23475  #include <stddef.h>
23476 @@ -7584,39 +12912,59 @@
23477  #ifdef HAVE_WCHAR_H
23478  #include <wchar.h>
23479  #endif
23480 -                
23481 -int main() {
23482 - wchar_t wc; return 0; 
23483 -; return 0; }
23484 -EOF
23485 -if { (eval echo configure:7579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23486 -  rm -rf conftest*
23487 +
23488 +#ifdef F77_DUMMY_MAIN
23489 +#  ifdef __cplusplus
23490 +     extern "C"
23491 +#  endif
23492 +   int F77_DUMMY_MAIN() { return 1; }
23493 +#endif
23494 +int
23495 +main ()
23496 +{
23497 + wchar_t wc; return 0;
23498 +  ;
23499 +  return 0;
23500 +}
23501 +_ACEOF
23502 +rm -f conftest.$ac_objext
23503 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23504 +  (eval $ac_compile) 2>&5
23505 +  ac_status=$?
23506 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 +  (exit $ac_status); } &&
23508 +         { ac_try='test -s conftest.$ac_objext'
23509 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 +  (eval $ac_try) 2>&5
23511 +  ac_status=$?
23512 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 +  (exit $ac_status); }; }; then
23514    mutt_cv_wchar_t=yes
23515  else
23516 -  echo "configure: failed program was:" >&5
23517 -  cat conftest.$ac_ext >&5
23518 -  rm -rf conftest*
23519 -  mutt_cv_wchar_t=no
23520 +  echo "$as_me: failed program was:" >&5
23521 +cat conftest.$ac_ext >&5
23522 +mutt_cv_wchar_t=no
23523  fi
23524 -rm -f conftest*
23525 +rm -f conftest.$ac_objext conftest.$ac_ext
23526  fi
23527 -
23528 -echo "$ac_t""$mutt_cv_wchar_t" 1>&6
23529 +echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
23530 +echo "${ECHO_T}$mutt_cv_wchar_t" >&6
23531  
23532  if test "$mutt_cv_wchar_t" = no; then
23533 -        cat >> confdefs.h <<\EOF
23534 +
23535 +cat >>confdefs.h <<\_ACEOF
23536  #define wchar_t int
23537 -EOF
23538 +_ACEOF
23539  
23540  fi
23541  
23542 -echo $ac_n "checking for wint_t""... $ac_c" 1>&6
23543 -echo "configure:7601: checking for wint_t" >&5
23544 -if eval "test \"`echo '$''{'mutt_cv_wint_t'+set}'`\" = set"; then
23545 -  echo $ac_n "(cached) $ac_c" 1>&6
23546 +echo "$as_me:$LINENO: checking for wint_t" >&5
23547 +echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
23548 +if test "${mutt_cv_wint_t+set}" = set; then
23549 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23550  else
23551 -  cat > conftest.$ac_ext <<EOF
23552 -#line 7606 "configure"
23553 +  cat >conftest.$ac_ext <<_ACEOF
23554 +#line $LINENO "configure"
23555  #include "confdefs.h"
23556  
23557  #include <stddef.h>
23558 @@ -7624,245 +12972,412 @@
23559  #ifdef HAVE_WCHAR_H
23560  #include <wchar.h>
23561  #endif
23562 -                
23563 -int main() {
23564 - wint_t wc; return 0; 
23565 -; return 0; }
23566 -EOF
23567 -if { (eval echo configure:7619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23568 -  rm -rf conftest*
23569 +
23570 +#ifdef F77_DUMMY_MAIN
23571 +#  ifdef __cplusplus
23572 +     extern "C"
23573 +#  endif
23574 +   int F77_DUMMY_MAIN() { return 1; }
23575 +#endif
23576 +int
23577 +main ()
23578 +{
23579 + wint_t wc; return 0;
23580 +  ;
23581 +  return 0;
23582 +}
23583 +_ACEOF
23584 +rm -f conftest.$ac_objext
23585 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23586 +  (eval $ac_compile) 2>&5
23587 +  ac_status=$?
23588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 +  (exit $ac_status); } &&
23590 +         { ac_try='test -s conftest.$ac_objext'
23591 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 +  (eval $ac_try) 2>&5
23593 +  ac_status=$?
23594 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 +  (exit $ac_status); }; }; then
23596    mutt_cv_wint_t=yes
23597  else
23598 -  echo "configure: failed program was:" >&5
23599 -  cat conftest.$ac_ext >&5
23600 -  rm -rf conftest*
23601 -  mutt_cv_wint_t=no
23602 +  echo "$as_me: failed program was:" >&5
23603 +cat conftest.$ac_ext >&5
23604 +mutt_cv_wint_t=no
23605  fi
23606 -rm -f conftest*
23607 +rm -f conftest.$ac_objext conftest.$ac_ext
23608  fi
23609 -
23610 -echo "$ac_t""$mutt_cv_wint_t" 1>&6
23611 +echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
23612 +echo "${ECHO_T}$mutt_cv_wint_t" >&6
23613  
23614  if test "$mutt_cv_wint_t" = no; then
23615 -        cat >> confdefs.h <<\EOF
23616 +
23617 +cat >>confdefs.h <<\_ACEOF
23618  #define wint_t int
23619 -EOF
23620 +_ACEOF
23621  
23622  fi
23623  
23624 -for ac_hdr in wctype.h
23625 +
23626 +for ac_header in wctype.h
23627  do
23628 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23629 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23630 -echo "configure:7644: checking for $ac_hdr" >&5
23631 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23632 -  echo $ac_n "(cached) $ac_c" 1>&6
23633 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23634 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23635 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
23636 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23637 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23638 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23639 +fi
23640 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23641 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23642 +else
23643 +  # Is the header compilable?
23644 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
23645 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23646 +cat >conftest.$ac_ext <<_ACEOF
23647 +#line $LINENO "configure"
23648 +#include "confdefs.h"
23649 +$ac_includes_default
23650 +#include <$ac_header>
23651 +_ACEOF
23652 +rm -f conftest.$ac_objext
23653 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654 +  (eval $ac_compile) 2>&5
23655 +  ac_status=$?
23656 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 +  (exit $ac_status); } &&
23658 +         { ac_try='test -s conftest.$ac_objext'
23659 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 +  (eval $ac_try) 2>&5
23661 +  ac_status=$?
23662 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 +  (exit $ac_status); }; }; then
23664 +  ac_header_compiler=yes
23665 +else
23666 +  echo "$as_me: failed program was:" >&5
23667 +cat conftest.$ac_ext >&5
23668 +ac_header_compiler=no
23669 +fi
23670 +rm -f conftest.$ac_objext conftest.$ac_ext
23671 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23672 +echo "${ECHO_T}$ac_header_compiler" >&6
23673 +
23674 +# Is the header present?
23675 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
23676 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23677 +cat >conftest.$ac_ext <<_ACEOF
23678 +#line $LINENO "configure"
23679 +#include "confdefs.h"
23680 +#include <$ac_header>
23681 +_ACEOF
23682 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23683 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23684 +  ac_status=$?
23685 +  egrep -v '^ *\+' conftest.er1 >conftest.err
23686 +  rm -f conftest.er1
23687 +  cat conftest.err >&5
23688 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 +  (exit $ac_status); } >/dev/null; then
23690 +  if test -s conftest.err; then
23691 +    ac_cpp_err=$ac_c_preproc_warn_flag
23692 +  else
23693 +    ac_cpp_err=
23694 +  fi
23695  else
23696 -  cat > conftest.$ac_ext <<EOF
23697 -#line 7649 "configure"
23698 -#include "confdefs.h"
23699 -#include <$ac_hdr>
23700 -EOF
23701 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23702 -{ (eval echo configure:7654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23703 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23704 -if test -z "$ac_err"; then
23705 -  rm -rf conftest*
23706 -  eval "ac_cv_header_$ac_safe=yes"
23707 +  ac_cpp_err=yes
23708 +fi
23709 +if test -z "$ac_cpp_err"; then
23710 +  ac_header_preproc=yes
23711  else
23712 -  echo "$ac_err" >&5
23713 -  echo "configure: failed program was:" >&5
23714 +  echo "$as_me: failed program was:" >&5
23715    cat conftest.$ac_ext >&5
23716 -  rm -rf conftest*
23717 -  eval "ac_cv_header_$ac_safe=no"
23718 -fi
23719 -rm -f conftest*
23720 +  ac_header_preproc=no
23721  fi
23722 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23723 -  echo "$ac_t""yes" 1>&6
23724 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23725 -  cat >> confdefs.h <<EOF
23726 -#define $ac_tr_hdr 1
23727 -EOF
23728
23729 +rm -f conftest.err conftest.$ac_ext
23730 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23731 +echo "${ECHO_T}$ac_header_preproc" >&6
23732 +
23733 +# So?  What about this header?
23734 +case $ac_header_compiler:$ac_header_preproc in
23735 +  yes:no )
23736 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23737 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23738 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23739 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23740 +  no:yes )
23741 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23742 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23743 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23744 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23745 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23746 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23747 +esac
23748 +echo "$as_me:$LINENO: checking for $ac_header" >&5
23749 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23750 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
23751 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23752  else
23753 -  echo "$ac_t""no" 1>&6
23754 +  eval "$as_ac_Header=$ac_header_preproc"
23755 +fi
23756 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23757 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23758 +
23759 +fi
23760 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
23761 +  cat >>confdefs.h <<_ACEOF
23762 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23763 +_ACEOF
23764 +
23765  fi
23766 +
23767  done
23768  
23769 +
23770 +
23771 +
23772 +
23773  for ac_func in iswalnum iswalpha  iswcntrl iswdigit
23774  do
23775 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23776 -echo "configure:7683: checking for $ac_func" >&5
23777 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23778 -  echo $ac_n "(cached) $ac_c" 1>&6
23779 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23780 +echo "$as_me:$LINENO: checking for $ac_func" >&5
23781 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23782 +if eval "test \"\${$as_ac_var+set}\" = set"; then
23783 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23784  else
23785 -  cat > conftest.$ac_ext <<EOF
23786 -#line 7688 "configure"
23787 +  cat >conftest.$ac_ext <<_ACEOF
23788 +#line $LINENO "configure"
23789  #include "confdefs.h"
23790  /* System header to define __stub macros and hopefully few prototypes,
23791 -    which can conflict with char $ac_func(); below.  */
23792 +    which can conflict with char $ac_func (); below.  */
23793  #include <assert.h>
23794  /* Override any gcc2 internal prototype to avoid an error.  */
23795 +#ifdef __cplusplus
23796 +extern "C"
23797 +#endif
23798  /* We use char because int might match the return type of a gcc2
23799 -    builtin and then its argument prototype would still apply.  */
23800 -char $ac_func();
23801 -
23802 -int main() {
23803 +   builtin and then its argument prototype would still apply.  */
23804 +char $ac_func ();
23805 +char (*f) ();
23806  
23807 +#ifdef F77_DUMMY_MAIN
23808 +#  ifdef __cplusplus
23809 +     extern "C"
23810 +#  endif
23811 +   int F77_DUMMY_MAIN() { return 1; }
23812 +#endif
23813 +int
23814 +main ()
23815 +{
23816  /* The GNU C library defines this for functions which it implements
23817      to always fail with ENOSYS.  Some functions are actually named
23818      something starting with __ and the normal name is an alias.  */
23819  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23820  choke me
23821  #else
23822 -$ac_func();
23823 +f = $ac_func;
23824  #endif
23825  
23826 -; return 0; }
23827 -EOF
23828 -if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23829 -  rm -rf conftest*
23830 -  eval "ac_cv_func_$ac_func=yes"
23831 -else
23832 -  echo "configure: failed program was:" >&5
23833 -  cat conftest.$ac_ext >&5
23834 -  rm -rf conftest*
23835 -  eval "ac_cv_func_$ac_func=no"
23836 -fi
23837 -rm -f conftest*
23838 -fi
23839 +  ;
23840 +  return 0;
23841 +}
23842 +_ACEOF
23843 +rm -f conftest.$ac_objext conftest$ac_exeext
23844 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845 +  (eval $ac_link) 2>&5
23846 +  ac_status=$?
23847 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 +  (exit $ac_status); } &&
23849 +         { ac_try='test -s conftest$ac_exeext'
23850 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 +  (eval $ac_try) 2>&5
23852 +  ac_status=$?
23853 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 +  (exit $ac_status); }; }; then
23855 +  eval "$as_ac_var=yes"
23856 +else
23857 +  echo "$as_me: failed program was:" >&5
23858 +cat conftest.$ac_ext >&5
23859 +eval "$as_ac_var=no"
23860 +fi
23861 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23862 +fi
23863 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23864 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23865 +if test `eval echo '${'$as_ac_var'}'` = yes; then
23866 +  cat >>confdefs.h <<_ACEOF
23867 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23868 +_ACEOF
23869  
23870 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23871 -  echo "$ac_t""yes" 1>&6
23872 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23873 -  cat >> confdefs.h <<EOF
23874 -#define $ac_tr_func 1
23875 -EOF
23876
23877 -else
23878 -  echo "$ac_t""no" 1>&6
23879  fi
23880  done
23881  
23882 +
23883 +
23884 +
23885 +
23886 +
23887 +
23888  for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
23889  do
23890 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23891 -echo "configure:7738: checking for $ac_func" >&5
23892 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23893 -  echo $ac_n "(cached) $ac_c" 1>&6
23894 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23895 +echo "$as_me:$LINENO: checking for $ac_func" >&5
23896 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23897 +if eval "test \"\${$as_ac_var+set}\" = set"; then
23898 +  echo $ECHO_N "(cached) $ECHO_C" >&6
23899  else
23900 -  cat > conftest.$ac_ext <<EOF
23901 -#line 7743 "configure"
23902 +  cat >conftest.$ac_ext <<_ACEOF
23903 +#line $LINENO "configure"
23904  #include "confdefs.h"
23905  /* System header to define __stub macros and hopefully few prototypes,
23906 -    which can conflict with char $ac_func(); below.  */
23907 +    which can conflict with char $ac_func (); below.  */
23908  #include <assert.h>
23909  /* Override any gcc2 internal prototype to avoid an error.  */
23910 +#ifdef __cplusplus
23911 +extern "C"
23912 +#endif
23913  /* We use char because int might match the return type of a gcc2
23914 -    builtin and then its argument prototype would still apply.  */
23915 -char $ac_func();
23916 -
23917 -int main() {
23918 +   builtin and then its argument prototype would still apply.  */
23919 +char $ac_func ();
23920 +char (*f) ();
23921  
23922 +#ifdef F77_DUMMY_MAIN
23923 +#  ifdef __cplusplus
23924 +     extern "C"
23925 +#  endif
23926 +   int F77_DUMMY_MAIN() { return 1; }
23927 +#endif
23928 +int
23929 +main ()
23930 +{
23931  /* The GNU C library defines this for functions which it implements
23932      to always fail with ENOSYS.  Some functions are actually named
23933      something starting with __ and the normal name is an alias.  */
23934  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23935  choke me
23936  #else
23937 -$ac_func();
23938 +f = $ac_func;
23939  #endif
23940  
23941 -; return 0; }
23942 -EOF
23943 -if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23944 -  rm -rf conftest*
23945 -  eval "ac_cv_func_$ac_func=yes"
23946 -else
23947 -  echo "configure: failed program was:" >&5
23948 -  cat conftest.$ac_ext >&5
23949 -  rm -rf conftest*
23950 -  eval "ac_cv_func_$ac_func=no"
23951 -fi
23952 -rm -f conftest*
23953 -fi
23954 +  ;
23955 +  return 0;
23956 +}
23957 +_ACEOF
23958 +rm -f conftest.$ac_objext conftest$ac_exeext
23959 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23960 +  (eval $ac_link) 2>&5
23961 +  ac_status=$?
23962 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 +  (exit $ac_status); } &&
23964 +         { ac_try='test -s conftest$ac_exeext'
23965 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 +  (eval $ac_try) 2>&5
23967 +  ac_status=$?
23968 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 +  (exit $ac_status); }; }; then
23970 +  eval "$as_ac_var=yes"
23971 +else
23972 +  echo "$as_me: failed program was:" >&5
23973 +cat conftest.$ac_ext >&5
23974 +eval "$as_ac_var=no"
23975 +fi
23976 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23977 +fi
23978 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23979 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23980 +if test `eval echo '${'$as_ac_var'}'` = yes; then
23981 +  cat >>confdefs.h <<_ACEOF
23982 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23983 +_ACEOF
23984  
23985 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23986 -  echo "$ac_t""yes" 1>&6
23987 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23988 -  cat >> confdefs.h <<EOF
23989 -#define $ac_tr_func 1
23990 -EOF
23991
23992 -else
23993 -  echo "$ac_t""no" 1>&6
23994  fi
23995  done
23996  
23997 +
23998 +
23999 +
24000  for ac_func in iswxdigit towupper towlower
24001  do
24002 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24003 -echo "configure:7793: checking for $ac_func" >&5
24004 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
24005 -  echo $ac_n "(cached) $ac_c" 1>&6
24006 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24007 +echo "$as_me:$LINENO: checking for $ac_func" >&5
24008 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24009 +if eval "test \"\${$as_ac_var+set}\" = set"; then
24010 +  echo $ECHO_N "(cached) $ECHO_C" >&6
24011  else
24012 -  cat > conftest.$ac_ext <<EOF
24013 -#line 7798 "configure"
24014 +  cat >conftest.$ac_ext <<_ACEOF
24015 +#line $LINENO "configure"
24016  #include "confdefs.h"
24017  /* System header to define __stub macros and hopefully few prototypes,
24018 -    which can conflict with char $ac_func(); below.  */
24019 +    which can conflict with char $ac_func (); below.  */
24020  #include <assert.h>
24021  /* Override any gcc2 internal prototype to avoid an error.  */
24022 +#ifdef __cplusplus
24023 +extern "C"
24024 +#endif
24025  /* We use char because int might match the return type of a gcc2
24026 -    builtin and then its argument prototype would still apply.  */
24027 -char $ac_func();
24028 -
24029 -int main() {
24030 +   builtin and then its argument prototype would still apply.  */
24031 +char $ac_func ();
24032 +char (*f) ();
24033  
24034 +#ifdef F77_DUMMY_MAIN
24035 +#  ifdef __cplusplus
24036 +     extern "C"
24037 +#  endif
24038 +   int F77_DUMMY_MAIN() { return 1; }
24039 +#endif
24040 +int
24041 +main ()
24042 +{
24043  /* The GNU C library defines this for functions which it implements
24044      to always fail with ENOSYS.  Some functions are actually named
24045      something starting with __ and the normal name is an alias.  */
24046  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24047  choke me
24048  #else
24049 -$ac_func();
24050 +f = $ac_func;
24051  #endif
24052  
24053 -; return 0; }
24054 -EOF
24055 -if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24056 -  rm -rf conftest*
24057 -  eval "ac_cv_func_$ac_func=yes"
24058 -else
24059 -  echo "configure: failed program was:" >&5
24060 -  cat conftest.$ac_ext >&5
24061 -  rm -rf conftest*
24062 -  eval "ac_cv_func_$ac_func=no"
24063 -fi
24064 -rm -f conftest*
24065 -fi
24066 +  ;
24067 +  return 0;
24068 +}
24069 +_ACEOF
24070 +rm -f conftest.$ac_objext conftest$ac_exeext
24071 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24072 +  (eval $ac_link) 2>&5
24073 +  ac_status=$?
24074 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 +  (exit $ac_status); } &&
24076 +         { ac_try='test -s conftest$ac_exeext'
24077 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 +  (eval $ac_try) 2>&5
24079 +  ac_status=$?
24080 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 +  (exit $ac_status); }; }; then
24082 +  eval "$as_ac_var=yes"
24083 +else
24084 +  echo "$as_me: failed program was:" >&5
24085 +cat conftest.$ac_ext >&5
24086 +eval "$as_ac_var=no"
24087 +fi
24088 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24089 +fi
24090 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24091 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24092 +if test `eval echo '${'$as_ac_var'}'` = yes; then
24093 +  cat >>confdefs.h <<_ACEOF
24094 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24095 +_ACEOF
24096  
24097 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24098 -  echo "$ac_t""yes" 1>&6
24099 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24100 -  cat >> confdefs.h <<EOF
24101 -#define $ac_tr_func 1
24102 -EOF
24103
24104 -else
24105 -  echo "$ac_t""no" 1>&6
24106  fi
24107  done
24108  
24109  
24110 -echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
24111 -echo "configure:7847: checking for mbstate_t" >&5
24112 -if eval "test \"`echo '$''{'mutt_cv_mbstate_t'+set}'`\" = set"; then
24113 -  echo $ac_n "(cached) $ac_c" 1>&6
24114 +echo "$as_me:$LINENO: checking for mbstate_t" >&5
24115 +echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24116 +if test "${mutt_cv_mbstate_t+set}" = set; then
24117 +  echo $ECHO_N "(cached) $ECHO_C" >&6
24118  else
24119 -  cat > conftest.$ac_ext <<EOF
24120 -#line 7852 "configure"
24121 +  cat >conftest.$ac_ext <<_ACEOF
24122 +#line $LINENO "configure"
24123  #include "confdefs.h"
24124  
24125  #include <stddef.h>
24126 @@ -7870,49 +13385,69 @@
24127  #ifdef HAVE_WCHAR_H
24128  #include <wchar.h>
24129  #endif
24130 -                
24131 -int main() {
24132 - mbstate_t s; return 0; 
24133 -; return 0; }
24134 -EOF
24135 -if { (eval echo configure:7865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24136 -  rm -rf conftest*
24137 +
24138 +#ifdef F77_DUMMY_MAIN
24139 +#  ifdef __cplusplus
24140 +     extern "C"
24141 +#  endif
24142 +   int F77_DUMMY_MAIN() { return 1; }
24143 +#endif
24144 +int
24145 +main ()
24146 +{
24147 + mbstate_t s; return 0;
24148 +  ;
24149 +  return 0;
24150 +}
24151 +_ACEOF
24152 +rm -f conftest.$ac_objext
24153 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154 +  (eval $ac_compile) 2>&5
24155 +  ac_status=$?
24156 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 +  (exit $ac_status); } &&
24158 +         { ac_try='test -s conftest.$ac_objext'
24159 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 +  (eval $ac_try) 2>&5
24161 +  ac_status=$?
24162 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 +  (exit $ac_status); }; }; then
24164    mutt_cv_mbstate_t=yes
24165  else
24166 -  echo "configure: failed program was:" >&5
24167 -  cat conftest.$ac_ext >&5
24168 -  rm -rf conftest*
24169 -  mutt_cv_mbstate_t=no
24170 +  echo "$as_me: failed program was:" >&5
24171 +cat conftest.$ac_ext >&5
24172 +mutt_cv_mbstate_t=no
24173  fi
24174 -rm -f conftest*
24175 +rm -f conftest.$ac_objext conftest.$ac_ext
24176  fi
24177 -
24178 -echo "$ac_t""$mutt_cv_mbstate_t" 1>&6
24179 +echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
24180 +echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
24181  
24182  if test "$mutt_cv_mbstate_t" = no; then
24183 -        cat >> confdefs.h <<\EOF
24184 +
24185 +cat >>confdefs.h <<\_ACEOF
24186  #define mbstate_t int
24187 -EOF
24188 +_ACEOF
24189  
24190  fi
24191  
24192  wc_funcs=maybe
24193 +
24194  # Check whether --with-wc-funcs or --without-wc-funcs was given.
24195  if test "${with_wc_funcs+set}" = set; then
24196    withval="$with_wc_funcs"
24197    wc_funcs=$withval
24198 -fi
24199 -
24200 +fi;
24201  
24202  if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
24203 -        echo $ac_n "checking for wchar_t functions""... $ac_c" 1>&6
24204 -echo "configure:7896: checking for wchar_t functions" >&5
24205 -if eval "test \"`echo '$''{'mutt_cv_wc_funcs'+set}'`\" = set"; then
24206 -  echo $ac_n "(cached) $ac_c" 1>&6
24207 +        echo "$as_me:$LINENO: checking for wchar_t functions" >&5
24208 +echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
24209 +if test "${mutt_cv_wc_funcs+set}" = set; then
24210 +  echo $ECHO_N "(cached) $ECHO_C" >&6
24211  else
24212    mutt_cv_wc_funcs=no
24213 -                cat > conftest.$ac_ext <<EOF
24214 -#line 7902 "configure"
24215 +                cat >conftest.$ac_ext <<_ACEOF
24216 +#line $LINENO "configure"
24217  #include "confdefs.h"
24218  
24219  #define _XOPEN_SOURCE 1
24220 @@ -7924,533 +13459,1476 @@
24221  #ifdef HAVE_WCHAR_H
24222  #include <wchar.h>
24223  #endif
24224 -int main() {
24225 +#ifdef F77_DUMMY_MAIN
24226 +#  ifdef __cplusplus
24227 +     extern "C"
24228 +#  endif
24229 +   int F77_DUMMY_MAIN() { return 1; }
24230 +#endif
24231 +int
24232 +main ()
24233 +{
24234  mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
24235          iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
24236 -; return 0; }
24237 -EOF
24238 -if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24239 -  rm -rf conftest*
24240 +  ;
24241 +  return 0;
24242 +}
24243 +_ACEOF
24244 +rm -f conftest.$ac_objext conftest$ac_exeext
24245 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246 +  (eval $ac_link) 2>&5
24247 +  ac_status=$?
24248 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 +  (exit $ac_status); } &&
24250 +         { ac_try='test -s conftest$ac_exeext'
24251 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 +  (eval $ac_try) 2>&5
24253 +  ac_status=$?
24254 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 +  (exit $ac_status); }; }; then
24256    mutt_cv_wc_funcs=yes
24257  else
24258 -  echo "configure: failed program was:" >&5
24259 -  cat conftest.$ac_ext >&5
24260 +  echo "$as_me: failed program was:" >&5
24261 +cat conftest.$ac_ext >&5
24262  fi
24263 -rm -f conftest*
24264 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24265  fi
24266 -
24267 -echo "$ac_t""$mutt_cv_wc_funcs" 1>&6
24268 +echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
24269 +echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
24270          wc_funcs=$mutt_cv_wc_funcs
24271  fi
24272  
24273  if test $wc_funcs = yes; then
24274 -        cat >> confdefs.h <<\EOF
24275 +
24276 +cat >>confdefs.h <<\_ACEOF
24277  #define HAVE_WC_FUNCS 1
24278 -EOF
24279 +_ACEOF
24280  
24281  fi
24282  
24283 -echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
24284 -echo "configure:7941: checking for nl_langinfo and CODESET" >&5
24285 -if eval "test \"`echo '$''{'mutt_cv_langinfo_codeset'+set}'`\" = set"; then
24286 -  echo $ac_n "(cached) $ac_c" 1>&6
24287 +echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24288 +echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
24289 +if test "${mutt_cv_langinfo_codeset+set}" = set; then
24290 +  echo $ECHO_N "(cached) $ECHO_C" >&6
24291  else
24292 -  cat > conftest.$ac_ext <<EOF
24293 -#line 7946 "configure"
24294 +  cat >conftest.$ac_ext <<_ACEOF
24295 +#line $LINENO "configure"
24296  #include "confdefs.h"
24297  #include <langinfo.h>
24298 -int main() {
24299 +#ifdef F77_DUMMY_MAIN
24300 +#  ifdef __cplusplus
24301 +     extern "C"
24302 +#  endif
24303 +   int F77_DUMMY_MAIN() { return 1; }
24304 +#endif
24305 +int
24306 +main ()
24307 +{
24308  char* cs = nl_langinfo(CODESET);
24309 -; return 0; }
24310 -EOF
24311 -if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24312 -  rm -rf conftest*
24313 +  ;
24314 +  return 0;
24315 +}
24316 +_ACEOF
24317 +rm -f conftest.$ac_objext conftest$ac_exeext
24318 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24319 +  (eval $ac_link) 2>&5
24320 +  ac_status=$?
24321 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 +  (exit $ac_status); } &&
24323 +         { ac_try='test -s conftest$ac_exeext'
24324 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 +  (eval $ac_try) 2>&5
24326 +  ac_status=$?
24327 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 +  (exit $ac_status); }; }; then
24329    mutt_cv_langinfo_codeset=yes
24330  else
24331 -  echo "configure: failed program was:" >&5
24332 -  cat conftest.$ac_ext >&5
24333 -  rm -rf conftest*
24334 -  mutt_cv_langinfo_codeset=no
24335 +  echo "$as_me: failed program was:" >&5
24336 +cat conftest.$ac_ext >&5
24337 +mutt_cv_langinfo_codeset=no
24338  fi
24339 -rm -f conftest*
24340 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24341  fi
24342 -
24343 -echo "$ac_t""$mutt_cv_langinfo_codeset" 1>&6
24344 +echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
24345 +echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
24346  if test $mutt_cv_langinfo_codeset = yes; then
24347 -  cat >> confdefs.h <<\EOF
24348 +
24349 +cat >>confdefs.h <<\_ACEOF
24350  #define HAVE_LANGINFO_CODESET 1
24351 -EOF
24352 +_ACEOF
24353  
24354  fi
24355  
24356 -echo $ac_n "checking for nl_langinfo and YESEXPR""... $ac_c" 1>&6
24357 -echo "configure:7974: checking for nl_langinfo and YESEXPR" >&5
24358 -if eval "test \"`echo '$''{'mutt_cv_langinfo_yesexpr'+set}'`\" = set"; then
24359 -  echo $ac_n "(cached) $ac_c" 1>&6
24360 +echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
24361 +echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
24362 +if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
24363 +  echo $ECHO_N "(cached) $ECHO_C" >&6
24364  else
24365 -  cat > conftest.$ac_ext <<EOF
24366 -#line 7979 "configure"
24367 +  cat >conftest.$ac_ext <<_ACEOF
24368 +#line $LINENO "configure"
24369  #include "confdefs.h"
24370  #include <langinfo.h>
24371 -int main() {
24372 +#ifdef F77_DUMMY_MAIN
24373 +#  ifdef __cplusplus
24374 +     extern "C"
24375 +#  endif
24376 +   int F77_DUMMY_MAIN() { return 1; }
24377 +#endif
24378 +int
24379 +main ()
24380 +{
24381  char* cs = nl_langinfo(YESEXPR);
24382 -; return 0; }
24383 -EOF
24384 -if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24385 -  rm -rf conftest*
24386 +  ;
24387 +  return 0;
24388 +}
24389 +_ACEOF
24390 +rm -f conftest.$ac_objext conftest$ac_exeext
24391 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 +  (eval $ac_link) 2>&5
24393 +  ac_status=$?
24394 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 +  (exit $ac_status); } &&
24396 +         { ac_try='test -s conftest$ac_exeext'
24397 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 +  (eval $ac_try) 2>&5
24399 +  ac_status=$?
24400 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 +  (exit $ac_status); }; }; then
24402    mutt_cv_langinfo_yesexpr=yes
24403  else
24404 -  echo "configure: failed program was:" >&5
24405 -  cat conftest.$ac_ext >&5
24406 -  rm -rf conftest*
24407 -  mutt_cv_langinfo_yesexpr=no
24408 +  echo "$as_me: failed program was:" >&5
24409 +cat conftest.$ac_ext >&5
24410 +mutt_cv_langinfo_yesexpr=no
24411  fi
24412 -rm -f conftest*
24413 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24414  fi
24415 -
24416 -echo "$ac_t""$mutt_cv_langinfo_yesexpr" 1>&6
24417 +echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
24418 +echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
24419  if test $mutt_cv_langinfo_yesexpr = yes; then
24420 -  cat >> confdefs.h <<\EOF
24421 +
24422 +cat >>confdefs.h <<\_ACEOF
24423  #define HAVE_LANGINFO_YESEXPR 1
24424 -EOF
24425 +_ACEOF
24426  
24427  fi
24428  
24429 -trap '' 1 2 15
24430 -cat > confcache <<\EOF
24431 +                                                                                                    ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttrc.head doc/instdoc.sh"
24432 +cat >confcache <<\_ACEOF
24433  # This file is a shell script that caches the results of configure
24434  # tests run on this system so they can be shared between configure
24435 -# scripts and configure runs.  It is not useful on other systems.
24436 -# If it contains results you don't want to keep, you may remove or edit it.
24437 +# scripts and configure runs, see configure's option --config-cache.
24438 +# It is not useful on other systems.  If it contains results you don't
24439 +# want to keep, you may remove or edit it.
24440  #
24441 -# By default, configure uses ./config.cache as the cache file,
24442 -# creating it if it does not exist already.  You can give configure
24443 -# the --cache-file=FILE option to use a different cache file; that is
24444 -# what configure does when it calls configure scripts in
24445 -# subdirectories, so they share the cache.
24446 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
24447 -# config.status only pays attention to the cache file if you give it the
24448 -# --recheck option to rerun configure.
24449 +# config.status only pays attention to the cache file if you give it
24450 +# the --recheck option to rerun configure.
24451  #
24452 -EOF
24453 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
24454 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
24455 +# following values.
24456 +
24457 +_ACEOF
24458 +
24459  # The following way of writing the cache mishandles newlines in values,
24460  # but we know of no workaround that is simple, portable, and efficient.
24461  # So, don't put newlines in cache variables' values.
24462  # Ultrix sh set writes to stderr and can't be redirected directly,
24463  # and sets the high bit in the cache file unless we assign to the vars.
24464 -(set) 2>&1 |
24465 -  case `(ac_space=' '; set | grep ac_space) 2>&1` in
24466 -  *ac_space=\ *)
24467 -    # `set' does not quote correctly, so add quotes (double-quote substitution
24468 -    # turns \\\\ into \\, and sed turns \\ into \).
24469 -    sed -n \
24470 -      -e "s/'/'\\\\''/g" \
24471 -      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24472 -    ;;
24473 -  *)
24474 -    # `set' quotes correctly as required by POSIX, so do not add quotes.
24475 -    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24476 -    ;;
24477 -  esac >> confcache
24478 -if cmp -s $cache_file confcache; then
24479 -  :
24480 -else
24481 +{
24482 +  (set) 2>&1 |
24483 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
24484 +    *ac_space=\ *)
24485 +      # `set' does not quote correctly, so add quotes (double-quote
24486 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
24487 +      sed -n \
24488 +        "s/'/'\\\\''/g;
24489 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24490 +      ;;
24491 +    *)
24492 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
24493 +      sed -n \
24494 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24495 +      ;;
24496 +    esac;
24497 +} |
24498 +  sed '
24499 +     t clear
24500 +     : clear
24501 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24502 +     t end
24503 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24504 +     : end' >>confcache
24505 +if cmp -s $cache_file confcache; then :; else
24506    if test -w $cache_file; then
24507 -    echo "updating cache $cache_file"
24508 -    cat confcache > $cache_file
24509 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24510 +    cat confcache >$cache_file
24511    else
24512      echo "not updating unwritable cache $cache_file"
24513    fi
24514  fi
24515  rm -f confcache
24516  
24517 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24518 -
24519  test "x$prefix" = xNONE && prefix=$ac_default_prefix
24520  # Let make expand exec_prefix.
24521  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24522  
24523 -# Any assignment to VPATH causes Sun make to only execute
24524 -# the first set of double-colon rules, so remove it if not needed.
24525 -# If there is a colon in the path, we need to keep it.
24526 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
24527 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24528 +# trailing colons and then remove the whole line if VPATH becomes empty
24529 +# (actually we leave an empty line to preserve line numbers).
24530  if test "x$srcdir" = x.; then
24531 -  ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
24532 +  ac_vpsub='/^[        ]*VPATH[        ]*=/{
24533 +s/:*\$(srcdir):*/:/;
24534 +s/:*\${srcdir}:*/:/;
24535 +s/:*@srcdir@:*/:/;
24536 +s/^\([^=]*=[   ]*\):*/\1/;
24537 +s/:*$//;
24538 +s/^[^=]*=[     ]*$//;
24539 +}'
24540  fi
24541  
24542 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24543 -
24544  DEFS=-DHAVE_CONFIG_H
24545  
24546 -# Without the "./", some shells look in PATH for config.status.
24547 -: ${CONFIG_STATUS=./config.status}
24548 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24549 +  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24550 +Usually this means the macro was only invoked conditionally." >&5
24551 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
24552 +Usually this means the macro was only invoked conditionally." >&2;}
24553 +   { (exit 1); exit 1; }; }
24554 +fi
24555 +if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
24556 +  { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
24557 +Usually this means the macro was only invoked conditionally." >&5
24558 +echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
24559 +Usually this means the macro was only invoked conditionally." >&2;}
24560 +   { (exit 1); exit 1; }; }
24561 +fi
24562 +if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
24563 +  { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
24564 +Usually this means the macro was only invoked conditionally." >&5
24565 +echo "$as_me: error: conditional \"USE_GSS\" was never defined.
24566 +Usually this means the macro was only invoked conditionally." >&2;}
24567 +   { (exit 1); exit 1; }; }
24568 +fi
24569 +if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
24570 +  { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
24571 +Usually this means the macro was only invoked conditionally." >&5
24572 +echo "$as_me: error: conditional \"USE_SSL\" was never defined.
24573 +Usually this means the macro was only invoked conditionally." >&2;}
24574 +   { (exit 1); exit 1; }; }
24575 +fi
24576 +if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
24577 +  { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
24578 +Usually this means the macro was only invoked conditionally." >&5
24579 +echo "$as_me: error: conditional \"USE_SASL\" was never defined.
24580 +Usually this means the macro was only invoked conditionally." >&2;}
24581 +   { (exit 1); exit 1; }; }
24582 +fi
24583  
24584 -echo creating $CONFIG_STATUS
24585 -rm -f $CONFIG_STATUS
24586 -cat > $CONFIG_STATUS <<EOF
24587 -#! /bin/sh
24588 -# Generated automatically by configure.
24589 +: ${CONFIG_STATUS=./config.status}
24590 +ac_clean_files_save=$ac_clean_files
24591 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24592 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24593 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
24594 +cat >$CONFIG_STATUS <<_ACEOF
24595 +#! $SHELL
24596 +# Generated by $as_me.
24597  # Run this file to recreate the current configuration.
24598 -# This directory was configured as follows,
24599 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24600 -#
24601 -# $0 $ac_configure_args
24602 -#
24603  # Compiler output produced by configure, useful for debugging
24604 -# configure, is in ./config.log if it exists.
24605 +# configure, is in config.log if it exists.
24606  
24607 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24608 -for ac_option
24609 +debug=false
24610 +SHELL=\${CONFIG_SHELL-$SHELL}
24611 +_ACEOF
24612 +
24613 +cat >>$CONFIG_STATUS <<\_ACEOF
24614 +## --------------------- ##
24615 +## M4sh Initialization.  ##
24616 +## --------------------- ##
24617 +
24618 +# Be Bourne compatible
24619 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24620 +  emulate sh
24621 +  NULLCMD=:
24622 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24623 +  # is contrary to our usage.  Disable this feature.
24624 +  alias -g '${1+"$@"}'='"$@"'
24625 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24626 +  set -o posix
24627 +fi
24628 +
24629 +# NLS nuisances.
24630 +# Support unset when possible.
24631 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24632 +  as_unset=unset
24633 +else
24634 +  as_unset=false
24635 +fi
24636 +
24637 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24638 +    { $as_unset LANG || test "${LANG+set}" != set; } ||
24639 +      { LANG=C; export LANG; }
24640 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24641 +    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24642 +      { LC_ALL=C; export LC_ALL; }
24643 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24644 +    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24645 +      { LC_TIME=C; export LC_TIME; }
24646 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24647 +    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24648 +      { LC_CTYPE=C; export LC_CTYPE; }
24649 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24650 +    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24651 +      { LANGUAGE=C; export LANGUAGE; }
24652 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24653 +    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24654 +      { LC_COLLATE=C; export LC_COLLATE; }
24655 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24656 +    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24657 +      { LC_NUMERIC=C; export LC_NUMERIC; }
24658 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24659 +    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24660 +      { LC_MESSAGES=C; export LC_MESSAGES; }
24661 +
24662 +
24663 +# Required to use basename.
24664 +if expr a : '\(a\)' >/dev/null 2>&1; then
24665 +  as_expr=expr
24666 +else
24667 +  as_expr=false
24668 +fi
24669 +
24670 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24671 +  as_basename=basename
24672 +else
24673 +  as_basename=false
24674 +fi
24675 +
24676 +
24677 +# Name of the executable.
24678 +as_me=`$as_basename "$0" ||
24679 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24680 +        X"$0" : 'X\(//\)$' \| \
24681 +        X"$0" : 'X\(/\)$' \| \
24682 +        .     : '\(.\)' 2>/dev/null ||
24683 +echo X/"$0" |
24684 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24685 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
24686 +         /^X\/\(\/\).*/{ s//\1/; q; }
24687 +         s/.*/./; q'`
24688 +
24689 +
24690 +# PATH needs CR, and LINENO needs CR and PATH.
24691 +# Avoid depending upon Character Ranges.
24692 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24693 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24694 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24695 +as_cr_digits='0123456789'
24696 +as_cr_alnum=$as_cr_Letters$as_cr_digits
24697 +
24698 +# The user is always right.
24699 +if test "${PATH_SEPARATOR+set}" != set; then
24700 +  echo "#! /bin/sh" >conftest.sh
24701 +  echo  "exit 0"   >>conftest.sh
24702 +  chmod +x conftest.sh
24703 +  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24704 +    PATH_SEPARATOR=';'
24705 +  else
24706 +    PATH_SEPARATOR=:
24707 +  fi
24708 +  rm -f conftest.sh
24709 +fi
24710 +
24711 +
24712 +  as_lineno_1=$LINENO
24713 +  as_lineno_2=$LINENO
24714 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24715 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
24716 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24717 +  # Find who we are.  Look in the path if we contain no path at all
24718 +  # relative or not.
24719 +  case $0 in
24720 +    *[\\/]* ) as_myself=$0 ;;
24721 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24722 +for as_dir in $PATH
24723 +do
24724 +  IFS=$as_save_IFS
24725 +  test -z "$as_dir" && as_dir=.
24726 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24727 +done
24728 +
24729 +       ;;
24730 +  esac
24731 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
24732 +  # in which case we are not to be found in the path.
24733 +  if test "x$as_myself" = x; then
24734 +    as_myself=$0
24735 +  fi
24736 +  if test ! -f "$as_myself"; then
24737 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24738 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24739 +   { (exit 1); exit 1; }; }
24740 +  fi
24741 +  case $CONFIG_SHELL in
24742 +  '')
24743 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24744 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24745 +do
24746 +  IFS=$as_save_IFS
24747 +  test -z "$as_dir" && as_dir=.
24748 +  for as_base in sh bash ksh sh5; do
24749 +        case $as_dir in
24750 +        /*)
24751 +          if ("$as_dir/$as_base" -c '
24752 +  as_lineno_1=$LINENO
24753 +  as_lineno_2=$LINENO
24754 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24755 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
24756 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24757 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24758 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24759 +            CONFIG_SHELL=$as_dir/$as_base
24760 +            export CONFIG_SHELL
24761 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24762 +          fi;;
24763 +        esac
24764 +       done
24765 +done
24766 +;;
24767 +  esac
24768 +
24769 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24770 +  # uniformly replaced by the line number.  The first 'sed' inserts a
24771 +  # line-number line before each line; the second 'sed' does the real
24772 +  # work.  The second script uses 'N' to pair each line-number line
24773 +  # with the numbered line, and appends trailing '-' during
24774 +  # substitution so that $LINENO is not a special case at line end.
24775 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24776 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24777 +  sed '=' <$as_myself |
24778 +    sed '
24779 +      N
24780 +      s,$,-,
24781 +      : loop
24782 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24783 +      t loop
24784 +      s,-$,,
24785 +      s,^['$as_cr_digits']*\n,,
24786 +    ' >$as_me.lineno &&
24787 +  chmod +x $as_me.lineno ||
24788 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24789 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24790 +   { (exit 1); exit 1; }; }
24791 +
24792 +  # Don't try to exec as it changes $[0], causing all sort of problems
24793 +  # (the dirname of $[0] is not the place where we might find the
24794 +  # original and so on.  Autoconf is especially sensible to this).
24795 +  . ./$as_me.lineno
24796 +  # Exit status is that of the last command.
24797 +  exit
24798 +}
24799 +
24800 +
24801 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24802 +  *c*,-n*) ECHO_N= ECHO_C='
24803 +' ECHO_T='     ' ;;
24804 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24805 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24806 +esac
24807 +
24808 +if expr a : '\(a\)' >/dev/null 2>&1; then
24809 +  as_expr=expr
24810 +else
24811 +  as_expr=false
24812 +fi
24813 +
24814 +rm -f conf$$ conf$$.exe conf$$.file
24815 +echo >conf$$.file
24816 +if ln -s conf$$.file conf$$ 2>/dev/null; then
24817 +  # We could just check for DJGPP; but this test a) works b) is more generic
24818 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24819 +  if test -f conf$$.exe; then
24820 +    # Don't use ln at all; we don't have any links
24821 +    as_ln_s='cp -p'
24822 +  else
24823 +    as_ln_s='ln -s'
24824 +  fi
24825 +elif ln conf$$.file conf$$ 2>/dev/null; then
24826 +  as_ln_s=ln
24827 +else
24828 +  as_ln_s='cp -p'
24829 +fi
24830 +rm -f conf$$ conf$$.exe conf$$.file
24831 +
24832 +if mkdir -p . 2>/dev/null; then
24833 +  as_mkdir_p=:
24834 +else
24835 +  as_mkdir_p=false
24836 +fi
24837 +
24838 +as_executable_p="test -f"
24839 +
24840 +# Sed expression to map a string onto a valid CPP name.
24841 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24842 +
24843 +# Sed expression to map a string onto a valid variable name.
24844 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24845 +
24846 +
24847 +# IFS
24848 +# We need space, tab and new line, in precisely that order.
24849 +as_nl='
24850 +'
24851 +IFS="  $as_nl"
24852 +
24853 +# CDPATH.
24854 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24855 +
24856 +exec 6>&1
24857 +
24858 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
24859 +# report actual input values of CONFIG_FILES etc. instead of their
24860 +# values after options handling.  Logging --version etc. is OK.
24861 +exec 5>>config.log
24862 +{
24863 +  echo
24864 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24865 +## Running $as_me. ##
24866 +_ASBOX
24867 +} >&5
24868 +cat >&5 <<_CSEOF
24869 +
24870 +This file was extended by $as_me, which was
24871 +generated by GNU Autoconf 2.53a.  Invocation command line was
24872 +
24873 +  CONFIG_FILES    = $CONFIG_FILES
24874 +  CONFIG_HEADERS  = $CONFIG_HEADERS
24875 +  CONFIG_LINKS    = $CONFIG_LINKS
24876 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
24877 +  $ $0 $@
24878 +
24879 +_CSEOF
24880 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24881 +echo >&5
24882 +_ACEOF
24883 +
24884 +# Files that config.status was made for.
24885 +if test -n "$ac_config_files"; then
24886 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24887 +fi
24888 +
24889 +if test -n "$ac_config_headers"; then
24890 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24891 +fi
24892 +
24893 +if test -n "$ac_config_links"; then
24894 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24895 +fi
24896 +
24897 +if test -n "$ac_config_commands"; then
24898 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24899 +fi
24900 +
24901 +cat >>$CONFIG_STATUS <<\_ACEOF
24902 +
24903 +ac_cs_usage="\
24904 +\`$as_me' instantiates files from templates according to the
24905 +current configuration.
24906 +
24907 +Usage: $0 [OPTIONS] [FILE]...
24908 +
24909 +  -h, --help       print this help, then exit
24910 +  -V, --version    print version number, then exit
24911 +  -d, --debug      don't remove temporary files
24912 +      --recheck    update $as_me by reconfiguring in the same conditions
24913 +  --file=FILE[:TEMPLATE]
24914 +                   instantiate the configuration file FILE
24915 +  --header=FILE[:TEMPLATE]
24916 +                   instantiate the configuration header FILE
24917 +
24918 +Configuration files:
24919 +$config_files
24920 +
24921 +Configuration headers:
24922 +$config_headers
24923 +
24924 +Configuration commands:
24925 +$config_commands
24926 +
24927 +Report bugs to <bug-autoconf@gnu.org>."
24928 +_ACEOF
24929 +
24930 +cat >>$CONFIG_STATUS <<_ACEOF
24931 +ac_cs_version="\\
24932 +config.status
24933 +configured by $0, generated by GNU Autoconf 2.53a,
24934 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24935 +
24936 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24937 +Free Software Foundation, Inc.
24938 +This config.status script is free software; the Free Software Foundation
24939 +gives unlimited permission to copy, distribute and modify it."
24940 +srcdir=$srcdir
24941 +INSTALL="$INSTALL"
24942 +_ACEOF
24943 +
24944 +cat >>$CONFIG_STATUS <<\_ACEOF
24945 +# If no file are specified by the user, then we need to provide default
24946 +# value.  By we need to know if files were specified by the user.
24947 +ac_need_defaults=:
24948 +while test $# != 0
24949  do
24950 -  case "\$ac_option" in
24951 +  case $1 in
24952 +  --*=*)
24953 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24954 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24955 +    ac_shift=:
24956 +    ;;
24957 +  -*)
24958 +    ac_option=$1
24959 +    ac_optarg=$2
24960 +    ac_shift=shift
24961 +    ;;
24962 +  *) # This is not an option, so the user has probably given explicit
24963 +     # arguments.
24964 +     ac_option=$1
24965 +     ac_need_defaults=false;;
24966 +  esac
24967 +
24968 +  case $ac_option in
24969 +  # Handling of the options.
24970 +_ACEOF
24971 +cat >>$CONFIG_STATUS <<_ACEOF
24972    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24973 -    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24974 -    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24975 -  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24976 -    echo "$CONFIG_STATUS generated by autoconf version 2.13"
24977 -    exit 0 ;;
24978 -  -help | --help | --hel | --he | --h)
24979 -    echo "\$ac_cs_usage"; exit 0 ;;
24980 -  *) echo "\$ac_cs_usage"; exit 1 ;;
24981 +    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
24982 +    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
24983 +_ACEOF
24984 +cat >>$CONFIG_STATUS <<\_ACEOF
24985 +  --version | --vers* | -V )
24986 +    echo "$ac_cs_version"; exit 0 ;;
24987 +  --he | --h)
24988 +    # Conflict between --help and --header
24989 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24990 +Try \`$0 --help' for more information." >&5
24991 +echo "$as_me: error: ambiguous option: $1
24992 +Try \`$0 --help' for more information." >&2;}
24993 +   { (exit 1); exit 1; }; };;
24994 +  --help | --hel | -h )
24995 +    echo "$ac_cs_usage"; exit 0 ;;
24996 +  --debug | --d* | -d )
24997 +    debug=: ;;
24998 +  --file | --fil | --fi | --f )
24999 +    $ac_shift
25000 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25001 +    ac_need_defaults=false;;
25002 +  --header | --heade | --head | --hea )
25003 +    $ac_shift
25004 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25005 +    ac_need_defaults=false;;
25006 +
25007 +  # This is an error.
25008 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25009 +Try \`$0 --help' for more information." >&5
25010 +echo "$as_me: error: unrecognized option: $1
25011 +Try \`$0 --help' for more information." >&2;}
25012 +   { (exit 1); exit 1; }; } ;;
25013 +
25014 +  *) ac_config_targets="$ac_config_targets $1" ;;
25015 +
25016    esac
25017 +  shift
25018  done
25019  
25020 -ac_given_srcdir=$srcdir
25021 -ac_given_INSTALL="$INSTALL"
25022 +_ACEOF
25023  
25024 -trap 'rm -fr `echo "Makefile intl/Makefile m4/Makefile
25025 -        po/Makefile.in doc/Makefile contrib/Makefile
25026 -        muttbug.sh
25027 -        imap/Makefile
25028 -        Muttrc.head
25029 -        doc/instdoc.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25030 -EOF
25031 -cat >> $CONFIG_STATUS <<EOF
25032 -
25033 -# Protect against being on the right side of a sed subst in config.status.
25034 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25035 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25036 -$ac_vpsub
25037 -$extrasub
25038 -s%@SHELL@%$SHELL%g
25039 -s%@CFLAGS@%$CFLAGS%g
25040 -s%@CPPFLAGS@%$CPPFLAGS%g
25041 -s%@CXXFLAGS@%$CXXFLAGS%g
25042 -s%@FFLAGS@%$FFLAGS%g
25043 -s%@DEFS@%$DEFS%g
25044 -s%@LDFLAGS@%$LDFLAGS%g
25045 -s%@LIBS@%$LIBS%g
25046 -s%@exec_prefix@%$exec_prefix%g
25047 -s%@prefix@%$prefix%g
25048 -s%@program_transform_name@%$program_transform_name%g
25049 -s%@bindir@%$bindir%g
25050 -s%@sbindir@%$sbindir%g
25051 -s%@libexecdir@%$libexecdir%g
25052 -s%@datadir@%$datadir%g
25053 -s%@sysconfdir@%$sysconfdir%g
25054 -s%@sharedstatedir@%$sharedstatedir%g
25055 -s%@localstatedir@%$localstatedir%g
25056 -s%@libdir@%$libdir%g
25057 -s%@includedir@%$includedir%g
25058 -s%@oldincludedir@%$oldincludedir%g
25059 -s%@infodir@%$infodir%g
25060 -s%@mandir@%$mandir%g
25061 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25062 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25063 -s%@INSTALL_DATA@%$INSTALL_DATA%g
25064 -s%@PACKAGE@%$PACKAGE%g
25065 -s%@VERSION@%$VERSION%g
25066 -s%@ACLOCAL@%$ACLOCAL%g
25067 -s%@AUTOCONF@%$AUTOCONF%g
25068 -s%@AUTOMAKE@%$AUTOMAKE%g
25069 -s%@AUTOHEADER@%$AUTOHEADER%g
25070 -s%@MAKEINFO@%$MAKEINFO%g
25071 -s%@SET_MAKE@%$SET_MAKE%g
25072 -s%@host@%$host%g
25073 -s%@host_alias@%$host_alias%g
25074 -s%@host_cpu@%$host_cpu%g
25075 -s%@host_vendor@%$host_vendor%g
25076 -s%@host_os@%$host_os%g
25077 -s%@CC@%$CC%g
25078 -s%@CPP@%$CPP%g
25079 -s%@U@%$U%g
25080 -s%@ANSI2KNR@%$ANSI2KNR%g
25081 -s%@RANLIB@%$RANLIB%g
25082 -s%@build@%$build%g
25083 -s%@build_alias@%$build_alias%g
25084 -s%@build_cpu@%$build_cpu%g
25085 -s%@build_vendor@%$build_vendor%g
25086 -s%@build_os@%$build_os%g
25087 -s%@AR@%$AR%g
25088 -s%@DBX@%$DBX%g
25089 -s%@GDB@%$GDB%g
25090 -s%@SDB@%$SDB%g
25091 -s%@DEBUGGER@%$DEBUGGER%g
25092 -s%@SENDMAIL@%$SENDMAIL%g
25093 -s%@OPS@%$OPS%g
25094 -s%@PGPAUX_TARGET@%$PGPAUX_TARGET%g
25095 -s%@SUBVERSION@%$SUBVERSION%g
25096 -s%@ISPELL@%$ISPELL%g
25097 -s%@LIBOBJS@%$LIBOBJS%g
25098 -s%@DOTLOCK_TARGET@%$DOTLOCK_TARGET%g
25099 -s%@docdir@%$docdir%g
25100 -s%@DOTLOCK_GROUP@%$DOTLOCK_GROUP%g
25101 -s%@DOTLOCK_PERMISSION@%$DOTLOCK_PERMISSION%g
25102 -s%@BUILD_IMAP_TRUE@%$BUILD_IMAP_TRUE%g
25103 -s%@BUILD_IMAP_FALSE@%$BUILD_IMAP_FALSE%g
25104 -s%@KRB5CFGPATH@%$KRB5CFGPATH%g
25105 -s%@USE_GSS_TRUE@%$USE_GSS_TRUE%g
25106 -s%@USE_GSS_FALSE@%$USE_GSS_FALSE%g
25107 -s%@USE_SSL_TRUE@%$USE_SSL_TRUE%g
25108 -s%@USE_SSL_FALSE@%$USE_SSL_FALSE%g
25109 -s%@USE_SASL_TRUE@%$USE_SASL_TRUE%g
25110 -s%@USE_SASL_FALSE@%$USE_SASL_FALSE%g
25111 -s%@MUTTLIBS@%$MUTTLIBS%g
25112 -s%@MUTT_LIB_OBJECTS@%$MUTT_LIB_OBJECTS%g
25113 -s%@LIBIMAP@%$LIBIMAP%g
25114 -s%@LIBIMAPDEPS@%$LIBIMAPDEPS%g
25115 -s%@ALLOCA@%$ALLOCA%g
25116 -s%@GLIBC21@%$GLIBC21%g
25117 -s%@LIBICONV@%$LIBICONV%g
25118 -s%@USE_NLS@%$USE_NLS%g
25119 -s%@MSGFMT@%$MSGFMT%g
25120 -s%@GMSGFMT@%$GMSGFMT%g
25121 -s%@XGETTEXT@%$XGETTEXT%g
25122 -s%@INTLBISON@%$INTLBISON%g
25123 -s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
25124 -s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
25125 -s%@CATALOGS@%$CATALOGS%g
25126 -s%@CATOBJEXT@%$CATOBJEXT%g
25127 -s%@GMOFILES@%$GMOFILES%g
25128 -s%@INTLLIBS@%$INTLLIBS%g
25129 -s%@INTLOBJS@%$INTLOBJS%g
25130 -s%@POFILES@%$POFILES%g
25131 -s%@POSUB@%$POSUB%g
25132 -s%@DATADIRNAME@%$DATADIRNAME%g
25133 -s%@INSTOBJEXT@%$INSTOBJEXT%g
25134 -s%@GENCAT@%$GENCAT%g
25135 -s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
25136 -s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
25137 +cat >>$CONFIG_STATUS <<_ACEOF
25138 +#
25139 +# INIT-COMMANDS section.
25140 +#
25141 +
25142 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25143 +
25144 +
25145 +_ACEOF
25146 +
25147 +
25148 +
25149 +cat >>$CONFIG_STATUS <<\_ACEOF
25150 +for ac_config_target in $ac_config_targets
25151 +do
25152 +  case "$ac_config_target" in
25153 +  # Handling of arguments.
25154 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25155 +  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
25156 +  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
25157 +  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25158 +  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25159 +  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
25160 +  "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
25161 +  "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
25162 +  "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
25163 +  "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
25164 +  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25165 +  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25166 +  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25167 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25168 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25169 +   { (exit 1); exit 1; }; };;
25170 +  esac
25171 +done
25172 +
25173 +# If the user did not use the arguments to specify the items to instantiate,
25174 +# then the envvar interface is used.  Set only those that are not.
25175 +# We use the long form for the default assignment because of an extremely
25176 +# bizarre bug on SunOS 4.1.3.
25177 +if $ac_need_defaults; then
25178 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25179 +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25180 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25181 +fi
25182 +
25183 +# Create a temporary directory, and hook for its removal unless debugging.
25184 +$debug ||
25185 +{
25186 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25187 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
25188 +}
25189 +
25190 +# Create a (secure) tmp directory for tmp files.
25191 +: ${TMPDIR=/tmp}
25192 +{
25193 +  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25194 +  test -n "$tmp" && test -d "$tmp"
25195 +}  ||
25196 +{
25197 +  tmp=$TMPDIR/cs$$-$RANDOM
25198 +  (umask 077 && mkdir $tmp)
25199 +} ||
25200 +{
25201 +   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25202 +   { (exit 1); exit 1; }
25203 +}
25204 +
25205 +_ACEOF
25206 +
25207 +cat >>$CONFIG_STATUS <<_ACEOF
25208 +
25209 +#
25210 +# CONFIG_FILES section.
25211 +#
25212  
25213 +# No need to generate the scripts if there are no CONFIG_FILES.
25214 +# This happens for instance when ./config.status config.h
25215 +if test -n "\$CONFIG_FILES"; then
25216 +  # Protect against being on the right side of a sed subst in config.status.
25217 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25218 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25219 +s,@SHELL@,$SHELL,;t t
25220 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25221 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25222 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25223 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25224 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25225 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25226 +s,@exec_prefix@,$exec_prefix,;t t
25227 +s,@prefix@,$prefix,;t t
25228 +s,@program_transform_name@,$program_transform_name,;t t
25229 +s,@bindir@,$bindir,;t t
25230 +s,@sbindir@,$sbindir,;t t
25231 +s,@libexecdir@,$libexecdir,;t t
25232 +s,@datadir@,$datadir,;t t
25233 +s,@sysconfdir@,$sysconfdir,;t t
25234 +s,@sharedstatedir@,$sharedstatedir,;t t
25235 +s,@localstatedir@,$localstatedir,;t t
25236 +s,@libdir@,$libdir,;t t
25237 +s,@includedir@,$includedir,;t t
25238 +s,@oldincludedir@,$oldincludedir,;t t
25239 +s,@infodir@,$infodir,;t t
25240 +s,@mandir@,$mandir,;t t
25241 +s,@build_alias@,$build_alias,;t t
25242 +s,@host_alias@,$host_alias,;t t
25243 +s,@target_alias@,$target_alias,;t t
25244 +s,@DEFS@,$DEFS,;t t
25245 +s,@ECHO_C@,$ECHO_C,;t t
25246 +s,@ECHO_N@,$ECHO_N,;t t
25247 +s,@ECHO_T@,$ECHO_T,;t t
25248 +s,@LIBS@,$LIBS,;t t
25249 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25250 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25251 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25252 +s,@PACKAGE@,$PACKAGE,;t t
25253 +s,@VERSION@,$VERSION,;t t
25254 +s,@ACLOCAL@,$ACLOCAL,;t t
25255 +s,@AUTOCONF@,$AUTOCONF,;t t
25256 +s,@AUTOMAKE@,$AUTOMAKE,;t t
25257 +s,@AUTOHEADER@,$AUTOHEADER,;t t
25258 +s,@MAKEINFO@,$MAKEINFO,;t t
25259 +s,@AMTAR@,$AMTAR,;t t
25260 +s,@install_sh@,$install_sh,;t t
25261 +s,@STRIP@,$STRIP,;t t
25262 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25263 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25264 +s,@AWK@,$AWK,;t t
25265 +s,@SET_MAKE@,$SET_MAKE,;t t
25266 +s,@build@,$build,;t t
25267 +s,@build_cpu@,$build_cpu,;t t
25268 +s,@build_vendor@,$build_vendor,;t t
25269 +s,@build_os@,$build_os,;t t
25270 +s,@host@,$host,;t t
25271 +s,@host_cpu@,$host_cpu,;t t
25272 +s,@host_vendor@,$host_vendor,;t t
25273 +s,@host_os@,$host_os,;t t
25274 +s,@CC@,$CC,;t t
25275 +s,@CFLAGS@,$CFLAGS,;t t
25276 +s,@LDFLAGS@,$LDFLAGS,;t t
25277 +s,@CPPFLAGS@,$CPPFLAGS,;t t
25278 +s,@ac_ct_CC@,$ac_ct_CC,;t t
25279 +s,@EXEEXT@,$EXEEXT,;t t
25280 +s,@OBJEXT@,$OBJEXT,;t t
25281 +s,@DEPDIR@,$DEPDIR,;t t
25282 +s,@am__include@,$am__include,;t t
25283 +s,@am__quote@,$am__quote,;t t
25284 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25285 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25286 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25287 +s,@CCDEPMODE@,$CCDEPMODE,;t t
25288 +s,@CPP@,$CPP,;t t
25289 +s,@U@,$U,;t t
25290 +s,@ANSI2KNR@,$ANSI2KNR,;t t
25291 +s,@RANLIB@,$RANLIB,;t t
25292 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25293 +s,@AR@,$AR,;t t
25294 +s,@ac_ct_AR@,$ac_ct_AR,;t t
25295 +s,@DBX@,$DBX,;t t
25296 +s,@GDB@,$GDB,;t t
25297 +s,@SDB@,$SDB,;t t
25298 +s,@DEBUGGER@,$DEBUGGER,;t t
25299 +s,@SENDMAIL@,$SENDMAIL,;t t
25300 +s,@OPS@,$OPS,;t t
25301 +s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
25302 +s,@SUBVERSION@,$SUBVERSION,;t t
25303 +s,@ISPELL@,$ISPELL,;t t
25304 +s,@LIBOBJS@,$LIBOBJS,;t t
25305 +s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
25306 +s,@docdir@,$docdir,;t t
25307 +s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
25308 +s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
25309 +s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
25310 +s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
25311 +s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
25312 +s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
25313 +s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
25314 +s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
25315 +s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
25316 +s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
25317 +s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
25318 +s,@MUTTLIBS@,$MUTTLIBS,;t t
25319 +s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
25320 +s,@LIBIMAP@,$LIBIMAP,;t t
25321 +s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
25322 +s,@ALLOCA@,$ALLOCA,;t t
25323 +s,@GLIBC21@,$GLIBC21,;t t
25324 +s,@LIBICONV@,$LIBICONV,;t t
25325 +s,@USE_NLS@,$USE_NLS,;t t
25326 +s,@MSGFMT@,$MSGFMT,;t t
25327 +s,@GMSGFMT@,$GMSGFMT,;t t
25328 +s,@XGETTEXT@,$XGETTEXT,;t t
25329 +s,@INTLBISON@,$INTLBISON,;t t
25330 +s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
25331 +s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25332 +s,@CATALOGS@,$CATALOGS,;t t
25333 +s,@CATOBJEXT@,$CATOBJEXT,;t t
25334 +s,@GMOFILES@,$GMOFILES,;t t
25335 +s,@INTLLIBS@,$INTLLIBS,;t t
25336 +s,@INTLOBJS@,$INTLOBJS,;t t
25337 +s,@POFILES@,$POFILES,;t t
25338 +s,@POSUB@,$POSUB,;t t
25339 +s,@DATADIRNAME@,$DATADIRNAME,;t t
25340 +s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25341 +s,@GENCAT@,$GENCAT,;t t
25342 +s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
25343 +s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
25344  CEOF
25345 -EOF
25346  
25347 -cat >> $CONFIG_STATUS <<\EOF
25348 +_ACEOF
25349  
25350 -# Split the substitutions into bite-sized pieces for seds with
25351 -# small command number limits, like on Digital OSF/1 and HP-UX.
25352 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25353 -ac_file=1 # Number of current file.
25354 -ac_beg=1 # First line for current file.
25355 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
25356 -ac_more_lines=:
25357 -ac_sed_cmds=""
25358 -while $ac_more_lines; do
25359 -  if test $ac_beg -gt 1; then
25360 -    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25361 -  else
25362 -    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25363 -  fi
25364 -  if test ! -s conftest.s$ac_file; then
25365 -    ac_more_lines=false
25366 -    rm -f conftest.s$ac_file
25367 -  else
25368 -    if test -z "$ac_sed_cmds"; then
25369 -      ac_sed_cmds="sed -f conftest.s$ac_file"
25370 +  cat >>$CONFIG_STATUS <<\_ACEOF
25371 +  # Split the substitutions into bite-sized pieces for seds with
25372 +  # small command number limits, like on Digital OSF/1 and HP-UX.
25373 +  ac_max_sed_lines=48
25374 +  ac_sed_frag=1 # Number of current file.
25375 +  ac_beg=1 # First line for current file.
25376 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
25377 +  ac_more_lines=:
25378 +  ac_sed_cmds=
25379 +  while $ac_more_lines; do
25380 +    if test $ac_beg -gt 1; then
25381 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25382 +    else
25383 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25384 +    fi
25385 +    if test ! -s $tmp/subs.frag; then
25386 +      ac_more_lines=false
25387      else
25388 -      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25389 +      # The purpose of the label and of the branching condition is to
25390 +      # speed up the sed processing (if there are no `@' at all, there
25391 +      # is no need to browse any of the substitutions).
25392 +      # These are the two extra sed commands mentioned above.
25393 +      (echo ':t
25394 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25395 +      if test -z "$ac_sed_cmds"; then
25396 +       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25397 +      else
25398 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25399 +      fi
25400 +      ac_sed_frag=`expr $ac_sed_frag + 1`
25401 +      ac_beg=$ac_end
25402 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
25403      fi
25404 -    ac_file=`expr $ac_file + 1`
25405 -    ac_beg=$ac_end
25406 -    ac_end=`expr $ac_end + $ac_max_sed_cmds`
25407 -  fi
25408 -done
25409 -if test -z "$ac_sed_cmds"; then
25410 -  ac_sed_cmds=cat
25411 -fi
25412 -EOF
25413 -
25414 -cat >> $CONFIG_STATUS <<EOF
25415 -
25416 -CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile m4/Makefile
25417 -        po/Makefile.in doc/Makefile contrib/Makefile
25418 -        muttbug.sh
25419 -        imap/Makefile
25420 -        Muttrc.head
25421 -        doc/instdoc.sh"}
25422 -EOF
25423 -cat >> $CONFIG_STATUS <<\EOF
25424 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25425 +  done
25426 +  if test -z "$ac_sed_cmds"; then
25427 +    ac_sed_cmds=cat
25428 +  fi
25429 +fi # test -n "$CONFIG_FILES"
25430 +
25431 +_ACEOF
25432 +cat >>$CONFIG_STATUS <<\_ACEOF
25433 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25434    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25435 -  case "$ac_file" in
25436 -  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25437 -       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25438 -  *) ac_file_in="${ac_file}.in" ;;
25439 +  case $ac_file in
25440 +  - | *:- | *:-:* ) # input from stdin
25441 +        cat >$tmp/stdin
25442 +        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25443 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25444 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25445 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25446 +  * )   ac_file_in=$ac_file.in ;;
25447    esac
25448  
25449 -  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25450 -
25451 -  # Remove last slash and all that follows it.  Not all systems have dirname.
25452 -  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25453 -  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25454 -    # The file is in a subdirectory.
25455 -    test ! -d "$ac_dir" && mkdir "$ac_dir"
25456 -    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25457 -    # A "../" for each directory in $ac_dir_suffix.
25458 -    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25459 -  else
25460 -    ac_dir_suffix= ac_dots=
25461 -  fi
25462 -
25463 -  case "$ac_given_srcdir" in
25464 -  .)  srcdir=.
25465 -      if test -z "$ac_dots"; then top_srcdir=.
25466 -      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25467 -  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25468 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25469 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25470 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25471 +         X"$ac_file" : 'X\(//\)[^/]' \| \
25472 +         X"$ac_file" : 'X\(//\)$' \| \
25473 +         X"$ac_file" : 'X\(/\)' \| \
25474 +         .     : '\(.\)' 2>/dev/null ||
25475 +echo X"$ac_file" |
25476 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25477 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25478 +         /^X\(\/\/\)$/{ s//\1/; q; }
25479 +         /^X\(\/\).*/{ s//\1/; q; }
25480 +         s/.*/./; q'`
25481 +  { if $as_mkdir_p; then
25482 +    mkdir -p "$ac_dir"
25483 +  else
25484 +    as_dir="$ac_dir"
25485 +    as_dirs=
25486 +    while test ! -d "$as_dir"; do
25487 +      as_dirs="$as_dir $as_dirs"
25488 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25489 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25490 +         X"$as_dir" : 'X\(//\)[^/]' \| \
25491 +         X"$as_dir" : 'X\(//\)$' \| \
25492 +         X"$as_dir" : 'X\(/\)' \| \
25493 +         .     : '\(.\)' 2>/dev/null ||
25494 +echo X"$as_dir" |
25495 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25496 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25497 +         /^X\(\/\/\)$/{ s//\1/; q; }
25498 +         /^X\(\/\).*/{ s//\1/; q; }
25499 +         s/.*/./; q'`
25500 +    done
25501 +    test ! -n "$as_dirs" || mkdir $as_dirs
25502 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25503 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25504 +   { (exit 1); exit 1; }; }; }
25505 +
25506 +  ac_builddir=.
25507 +
25508 +if test "$ac_dir" != .; then
25509 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25510 +  # A "../" for each directory in $ac_dir_suffix.
25511 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25512 +else
25513 +  ac_dir_suffix= ac_top_builddir=
25514 +fi
25515 +
25516 +case $srcdir in
25517 +  .)  # No --srcdir option.  We are building in place.
25518 +    ac_srcdir=.
25519 +    if test -z "$ac_top_builddir"; then
25520 +       ac_top_srcdir=.
25521 +    else
25522 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25523 +    fi ;;
25524 +  [\\/]* | ?:[\\/]* )  # Absolute path.
25525 +    ac_srcdir=$srcdir$ac_dir_suffix;
25526 +    ac_top_srcdir=$srcdir ;;
25527    *) # Relative path.
25528 -    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25529 -    top_srcdir="$ac_dots$ac_given_srcdir" ;;
25530 -  esac
25531 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25532 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25533 +esac
25534 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25535 +# absolute.
25536 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25537 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25538 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25539 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25540  
25541 -  case "$ac_given_INSTALL" in
25542 -  [/$]*) INSTALL="$ac_given_INSTALL" ;;
25543 -  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25544 -  esac
25545  
25546 -  echo creating "$ac_file"
25547 -  rm -f "$ac_file"
25548 -  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25549 -  case "$ac_file" in
25550 -  *Makefile*) ac_comsub="1i\\
25551 -# $configure_input" ;;
25552 -  *) ac_comsub= ;;
25553 +  case $INSTALL in
25554 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25555 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25556    esac
25557  
25558 -  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25559 -  sed -e "$ac_comsub
25560 -s%@configure_input@%$configure_input%g
25561 -s%@srcdir@%$srcdir%g
25562 -s%@top_srcdir@%$top_srcdir%g
25563 -s%@INSTALL@%$INSTALL%g
25564 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25565 -fi; done
25566 -rm -f conftest.s*
25567 +  if test x"$ac_file" != x-; then
25568 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
25569 +echo "$as_me: creating $ac_file" >&6;}
25570 +    rm -f "$ac_file"
25571 +  fi
25572 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
25573 +  # use $as_me), people would be surprised to read:
25574 +  #    /* config.h.  Generated by config.status.  */
25575 +  if test x"$ac_file" = x-; then
25576 +    configure_input=
25577 +  else
25578 +    configure_input="$ac_file.  "
25579 +  fi
25580 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
25581 +                                     sed 's,.*/,,'` by configure."
25582 +
25583 +  # First look for the input files in the build tree, otherwise in the
25584 +  # src tree.
25585 +  ac_file_inputs=`IFS=:
25586 +    for f in $ac_file_in; do
25587 +      case $f in
25588 +      -) echo $tmp/stdin ;;
25589 +      [\\/$]*)
25590 +         # Absolute (can't be DOS-style, as IFS=:)
25591 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25592 +echo "$as_me: error: cannot find input file: $f" >&2;}
25593 +   { (exit 1); exit 1; }; }
25594 +         echo $f;;
25595 +      *) # Relative
25596 +         if test -f "$f"; then
25597 +           # Build tree
25598 +           echo $f
25599 +         elif test -f "$srcdir/$f"; then
25600 +           # Source tree
25601 +           echo $srcdir/$f
25602 +         else
25603 +           # /dev/null tree
25604 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25605 +echo "$as_me: error: cannot find input file: $f" >&2;}
25606 +   { (exit 1); exit 1; }; }
25607 +         fi;;
25608 +      esac
25609 +    done` || { (exit 1); exit 1; }
25610 +_ACEOF
25611 +cat >>$CONFIG_STATUS <<_ACEOF
25612 +  sed "$ac_vpsub
25613 +$extrasub
25614 +_ACEOF
25615 +cat >>$CONFIG_STATUS <<\_ACEOF
25616 +:t
25617 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25618 +s,@configure_input@,$configure_input,;t t
25619 +s,@srcdir@,$ac_srcdir,;t t
25620 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
25621 +s,@top_srcdir@,$ac_top_srcdir,;t t
25622 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25623 +s,@builddir@,$ac_builddir,;t t
25624 +s,@abs_builddir@,$ac_abs_builddir,;t t
25625 +s,@top_builddir@,$ac_top_builddir,;t t
25626 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25627 +s,@INSTALL@,$ac_INSTALL,;t t
25628 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25629 +  rm -f $tmp/stdin
25630 +  if test x"$ac_file" != x-; then
25631 +    mv $tmp/out $ac_file
25632 +  else
25633 +    cat $tmp/out
25634 +    rm -f $tmp/out
25635 +  fi
25636 +
25637 +done
25638 +_ACEOF
25639 +cat >>$CONFIG_STATUS <<\_ACEOF
25640 +
25641 +#
25642 +# CONFIG_HEADER section.
25643 +#
25644  
25645  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25646  # NAME is the cpp macro being defined and VALUE is the value it is being given.
25647  #
25648  # ac_d sets the value in "#define NAME VALUE" lines.
25649 -ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
25650 -ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
25651 -ac_dC='\3'
25652 -ac_dD='%g'
25653 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25654 -ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25655 -ac_uB='\([     ]\)%\1#\2define\3'
25656 +ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
25657 +ac_dB='[       ].*$,\1#\2'
25658 +ac_dC=' '
25659 +ac_dD=',;t'
25660 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25661 +ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25662 +ac_uB='$,\1#\2define\3'
25663  ac_uC=' '
25664 -ac_uD='\4%g'
25665 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25666 -ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25667 -ac_eB='$%\1#\2define\3'
25668 -ac_eC=' '
25669 -ac_eD='%g'
25670 -
25671 -if test "${CONFIG_HEADERS+set}" != set; then
25672 -EOF
25673 -cat >> $CONFIG_STATUS <<EOF
25674 -  CONFIG_HEADERS="config.h"
25675 -EOF
25676 -cat >> $CONFIG_STATUS <<\EOF
25677 -fi
25678 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25679 +ac_uD=',;t'
25680 +
25681 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25682    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25683 -  case "$ac_file" in
25684 -  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25685 -       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25686 -  *) ac_file_in="${ac_file}.in" ;;
25687 +  case $ac_file in
25688 +  - | *:- | *:-:* ) # input from stdin
25689 +        cat >$tmp/stdin
25690 +        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25691 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25692 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25693 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25694 +  * )   ac_file_in=$ac_file.in ;;
25695    esac
25696  
25697 -  echo creating $ac_file
25698 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25699 +echo "$as_me: creating $ac_file" >&6;}
25700  
25701 -  rm -f conftest.frag conftest.in conftest.out
25702 -  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25703 -  cat $ac_file_inputs > conftest.in
25704 -
25705 -EOF
25706 -
25707 -# Transform confdefs.h into a sed script conftest.vals that substitutes
25708 -# the proper values into config.h.in to produce config.h.  And first:
25709 -# Protect against being on the right side of a sed subst in config.status.
25710 -# Protect against being in an unquoted here document in config.status.
25711 -rm -f conftest.vals
25712 -cat > conftest.hdr <<\EOF
25713 -s/[\\&%]/\\&/g
25714 -s%[\\$`]%\\&%g
25715 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25716 -s%ac_d%ac_u%gp
25717 -s%ac_u%ac_e%gp
25718 -EOF
25719 -sed -n -f conftest.hdr confdefs.h > conftest.vals
25720 -rm -f conftest.hdr
25721 +  # First look for the input files in the build tree, otherwise in the
25722 +  # src tree.
25723 +  ac_file_inputs=`IFS=:
25724 +    for f in $ac_file_in; do
25725 +      case $f in
25726 +      -) echo $tmp/stdin ;;
25727 +      [\\/$]*)
25728 +         # Absolute (can't be DOS-style, as IFS=:)
25729 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25730 +echo "$as_me: error: cannot find input file: $f" >&2;}
25731 +   { (exit 1); exit 1; }; }
25732 +         echo $f;;
25733 +      *) # Relative
25734 +         if test -f "$f"; then
25735 +           # Build tree
25736 +           echo $f
25737 +         elif test -f "$srcdir/$f"; then
25738 +           # Source tree
25739 +           echo $srcdir/$f
25740 +         else
25741 +           # /dev/null tree
25742 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25743 +echo "$as_me: error: cannot find input file: $f" >&2;}
25744 +   { (exit 1); exit 1; }; }
25745 +         fi;;
25746 +      esac
25747 +    done` || { (exit 1); exit 1; }
25748 +  # Remove the trailing spaces.
25749 +  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
25750 +
25751 +_ACEOF
25752 +
25753 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
25754 +# `conftest.undefs', that substitutes the proper values into
25755 +# config.h.in to produce config.h.  The first handles `#define'
25756 +# templates, and the second `#undef' templates.
25757 +# And first: Protect against being on the right side of a sed subst in
25758 +# config.status.  Protect against being in an unquoted here document
25759 +# in config.status.
25760 +rm -f conftest.defines conftest.undefs
25761 +# Using a here document instead of a string reduces the quoting nightmare.
25762 +# Putting comments in sed scripts is not portable.
25763 +#
25764 +# `end' is used to avoid that the second main sed command (meant for
25765 +# 0-ary CPP macros) applies to n-ary macro definitions.
25766 +# See the Autoconf documentation for `clear'.
25767 +cat >confdef2sed.sed <<\_ACEOF
25768 +s/[\\&,]/\\&/g
25769 +s,[\\$`],\\&,g
25770 +t clear
25771 +: clear
25772 +s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25773 +t end
25774 +s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25775 +: end
25776 +_ACEOF
25777 +# If some macros were called several times there might be several times
25778 +# the same #defines, which is useless.  Nevertheless, we may not want to
25779 +# sort them, since we want the *last* AC-DEFINE to be honored.
25780 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25781 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25782 +rm -f confdef2sed.sed
25783  
25784  # This sed command replaces #undef with comments.  This is necessary, for
25785  # example, in the case of _POSIX_SOURCE, which is predefined and required
25786  # on some systems where configure will not decide to define it.
25787 -cat >> conftest.vals <<\EOF
25788 -s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25789 -EOF
25790 -
25791 -# Break up conftest.vals because some shells have a limit on
25792 -# the size of here documents, and old seds have small limits too.
25793 -
25794 +cat >>conftest.undefs <<\_ACEOF
25795 +s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25796 +_ACEOF
25797 +
25798 +# Break up conftest.defines because some shells have a limit on the size
25799 +# of here documents, and old seds have small limits too (100 cmds).
25800 +echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25801 +echo '  if egrep "^[   ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25802 +echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25803 +echo '  :' >>$CONFIG_STATUS
25804  rm -f conftest.tail
25805 -while :
25806 +while grep . conftest.defines >/dev/null
25807  do
25808 -  ac_lines=`grep -c . conftest.vals`
25809 -  # grep -c gives empty output for an empty file on some AIX systems.
25810 -  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25811 -  # Write a limited-size here document to conftest.frag.
25812 -  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25813 -  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25814 +  # Write a limited-size here document to $tmp/defines.sed.
25815 +  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25816 +  # Speed up: don't consider the non `#define' lines.
25817 +  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
25818 +  # Work around the forget-to-reset-the-flag bug.
25819 +  echo 't clr' >>$CONFIG_STATUS
25820 +  echo ': clr' >>$CONFIG_STATUS
25821 +  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25822    echo 'CEOF
25823 -  sed -f conftest.frag conftest.in > conftest.out
25824 -  rm -f conftest.in
25825 -  mv conftest.out conftest.in
25826 -' >> $CONFIG_STATUS
25827 -  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25828 -  rm -f conftest.vals
25829 -  mv conftest.tail conftest.vals
25830 -done
25831 -rm -f conftest.vals
25832 -
25833 -cat >> $CONFIG_STATUS <<\EOF
25834 -  rm -f conftest.frag conftest.h
25835 -  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
25836 -  cat conftest.in >> conftest.h
25837 -  rm -f conftest.in
25838 -  if cmp -s $ac_file conftest.h 2>/dev/null; then
25839 -    echo "$ac_file is unchanged"
25840 -    rm -f conftest.h
25841 -  else
25842 -    # Remove last slash and all that follows it.  Not all systems have dirname.
25843 -      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25844 -      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25845 -      # The file is in a subdirectory.
25846 -      test ! -d "$ac_dir" && mkdir "$ac_dir"
25847 -    fi
25848 -    rm -f $ac_file
25849 -    mv conftest.h $ac_file
25850 +  sed -f $tmp/defines.sed $tmp/in >$tmp/out
25851 +  rm -f $tmp/in
25852 +  mv $tmp/out $tmp/in
25853 +' >>$CONFIG_STATUS
25854 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25855 +  rm -f conftest.defines
25856 +  mv conftest.tail conftest.defines
25857 +done
25858 +rm -f conftest.defines
25859 +echo '  fi # egrep' >>$CONFIG_STATUS
25860 +echo >>$CONFIG_STATUS
25861 +
25862 +# Break up conftest.undefs because some shells have a limit on the size
25863 +# of here documents, and old seds have small limits too (100 cmds).
25864 +echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25865 +rm -f conftest.tail
25866 +while grep . conftest.undefs >/dev/null
25867 +do
25868 +  # Write a limited-size here document to $tmp/undefs.sed.
25869 +  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25870 +  # Speed up: don't consider the non `#undef'
25871 +  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25872 +  # Work around the forget-to-reset-the-flag bug.
25873 +  echo 't clr' >>$CONFIG_STATUS
25874 +  echo ': clr' >>$CONFIG_STATUS
25875 +  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25876 +  echo 'CEOF
25877 +  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25878 +  rm -f $tmp/in
25879 +  mv $tmp/out $tmp/in
25880 +' >>$CONFIG_STATUS
25881 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25882 +  rm -f conftest.undefs
25883 +  mv conftest.tail conftest.undefs
25884 +done
25885 +rm -f conftest.undefs
25886 +
25887 +cat >>$CONFIG_STATUS <<\_ACEOF
25888 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
25889 +  # use $as_me), people would be surprised to read:
25890 +  #    /* config.h.  Generated by config.status.  */
25891 +  if test x"$ac_file" = x-; then
25892 +    echo "/* Generated by configure.  */" >$tmp/config.h
25893 +  else
25894 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25895    fi
25896 -fi; done
25897 -
25898 -EOF
25899 -cat >> $CONFIG_STATUS <<EOF
25900 +  cat $tmp/in >>$tmp/config.h
25901 +  rm -f $tmp/in
25902 +  if test x"$ac_file" != x-; then
25903 +    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25904 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25905 +echo "$as_me: $ac_file is unchanged" >&6;}
25906 +    else
25907 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25908 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25909 +         X"$ac_file" : 'X\(//\)[^/]' \| \
25910 +         X"$ac_file" : 'X\(//\)$' \| \
25911 +         X"$ac_file" : 'X\(/\)' \| \
25912 +         .     : '\(.\)' 2>/dev/null ||
25913 +echo X"$ac_file" |
25914 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25915 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25916 +         /^X\(\/\/\)$/{ s//\1/; q; }
25917 +         /^X\(\/\).*/{ s//\1/; q; }
25918 +         s/.*/./; q'`
25919 +      { if $as_mkdir_p; then
25920 +    mkdir -p "$ac_dir"
25921 +  else
25922 +    as_dir="$ac_dir"
25923 +    as_dirs=
25924 +    while test ! -d "$as_dir"; do
25925 +      as_dirs="$as_dir $as_dirs"
25926 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25927 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25928 +         X"$as_dir" : 'X\(//\)[^/]' \| \
25929 +         X"$as_dir" : 'X\(//\)$' \| \
25930 +         X"$as_dir" : 'X\(/\)' \| \
25931 +         .     : '\(.\)' 2>/dev/null ||
25932 +echo X"$as_dir" |
25933 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25934 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25935 +         /^X\(\/\/\)$/{ s//\1/; q; }
25936 +         /^X\(\/\).*/{ s//\1/; q; }
25937 +         s/.*/./; q'`
25938 +    done
25939 +    test ! -n "$as_dirs" || mkdir $as_dirs
25940 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25941 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25942 +   { (exit 1); exit 1; }; }; }
25943  
25944 +      rm -f $ac_file
25945 +      mv $tmp/config.h $ac_file
25946 +    fi
25947 +  else
25948 +    cat $tmp/config.h
25949 +    rm -f $tmp/config.h
25950 +  fi
25951 +  # Run the commands associated with the file.
25952 +  case $ac_file in
25953 +    config.h ) # update the timestamp
25954 +echo 'timestamp for config.h' >"./stamp-h1"
25955 + ;;
25956 +  esac
25957 +done
25958 +_ACEOF
25959 +cat >>$CONFIG_STATUS <<\_ACEOF
25960  
25961 +#
25962 +# CONFIG_COMMANDS section.
25963 +#
25964 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25965 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25966 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25967 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25968 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25969 +         X"$ac_dest" : 'X\(//\)[^/]' \| \
25970 +         X"$ac_dest" : 'X\(//\)$' \| \
25971 +         X"$ac_dest" : 'X\(/\)' \| \
25972 +         .     : '\(.\)' 2>/dev/null ||
25973 +echo X"$ac_dest" |
25974 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25975 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25976 +         /^X\(\/\/\)$/{ s//\1/; q; }
25977 +         /^X\(\/\).*/{ s//\1/; q; }
25978 +         s/.*/./; q'`
25979 +  ac_builddir=.
25980 +
25981 +if test "$ac_dir" != .; then
25982 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25983 +  # A "../" for each directory in $ac_dir_suffix.
25984 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25985 +else
25986 +  ac_dir_suffix= ac_top_builddir=
25987 +fi
25988 +
25989 +case $srcdir in
25990 +  .)  # No --srcdir option.  We are building in place.
25991 +    ac_srcdir=.
25992 +    if test -z "$ac_top_builddir"; then
25993 +       ac_top_srcdir=.
25994 +    else
25995 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25996 +    fi ;;
25997 +  [\\/]* | ?:[\\/]* )  # Absolute path.
25998 +    ac_srcdir=$srcdir$ac_dir_suffix;
25999 +    ac_top_srcdir=$srcdir ;;
26000 +  *) # Relative path.
26001 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26002 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26003 +esac
26004 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26005 +# absolute.
26006 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26007 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
26008 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26009 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26010 +
26011 +
26012 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26013 +echo "$as_me: executing $ac_dest commands" >&6;}
26014 +  case $ac_dest in
26015 +    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26016 +  # Strip MF so we end up with the name of the file.
26017 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
26018 +  # Check whether this is an Automake generated Makefile or not.
26019 +  # We used to match only the files named `Makefile.in', but
26020 +  # some people rename them; so instead we look at the file content.
26021 +  # Grep'ing the first line is not enough: some people post-process
26022 +  # each Makefile.in and add a new line on top of each file to say so.
26023 +  # So let's grep whole file.
26024 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26025 +    dirpart=`(dirname "$mf") 2>/dev/null ||
26026 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26027 +         X"$mf" : 'X\(//\)[^/]' \| \
26028 +         X"$mf" : 'X\(//\)$' \| \
26029 +         X"$mf" : 'X\(/\)' \| \
26030 +         .     : '\(.\)' 2>/dev/null ||
26031 +echo X"$mf" |
26032 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26033 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26034 +         /^X\(\/\/\)$/{ s//\1/; q; }
26035 +         /^X\(\/\).*/{ s//\1/; q; }
26036 +         s/.*/./; q'`
26037 +  else
26038 +    continue
26039 +  fi
26040 +  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
26041 +  # Extract the definition of DEP_FILES from the Makefile without
26042 +  # running `make'.
26043 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
26044 +  test -z "$DEPDIR" && continue
26045 +  # When using ansi2knr, U may be empty or an underscore; expand it
26046 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
26047 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
26048 +  # We invoke sed twice because it is the simplest approach to
26049 +  # changing $(DEPDIR) to its actual value in the expansion.
26050 +  for file in `sed -n -e '
26051 +    /^DEP_FILES = .*\\\\$/ {
26052 +      s/^DEP_FILES = //
26053 +      :loop
26054 +       s/\\\\$//
26055 +       p
26056 +       n
26057 +       /\\\\$/ b loop
26058 +      p
26059 +    }
26060 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
26061 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26062 +    # Make sure the directory exists.
26063 +    test -f "$dirpart/$file" && continue
26064 +    fdir=`(dirname "$file") 2>/dev/null ||
26065 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26066 +         X"$file" : 'X\(//\)[^/]' \| \
26067 +         X"$file" : 'X\(//\)$' \| \
26068 +         X"$file" : 'X\(/\)' \| \
26069 +         .     : '\(.\)' 2>/dev/null ||
26070 +echo X"$file" |
26071 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26072 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26073 +         /^X\(\/\/\)$/{ s//\1/; q; }
26074 +         /^X\(\/\).*/{ s//\1/; q; }
26075 +         s/.*/./; q'`
26076 +    { if $as_mkdir_p; then
26077 +    mkdir -p $dirpart/$fdir
26078 +  else
26079 +    as_dir=$dirpart/$fdir
26080 +    as_dirs=
26081 +    while test ! -d "$as_dir"; do
26082 +      as_dirs="$as_dir $as_dirs"
26083 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26084 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26085 +         X"$as_dir" : 'X\(//\)[^/]' \| \
26086 +         X"$as_dir" : 'X\(//\)$' \| \
26087 +         X"$as_dir" : 'X\(/\)' \| \
26088 +         .     : '\(.\)' 2>/dev/null ||
26089 +echo X"$as_dir" |
26090 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26091 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26092 +         /^X\(\/\/\)$/{ s//\1/; q; }
26093 +         /^X\(\/\).*/{ s//\1/; q; }
26094 +         s/.*/./; q'`
26095 +    done
26096 +    test ! -n "$as_dirs" || mkdir $as_dirs
26097 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26098 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26099 +   { (exit 1); exit 1; }; }; }
26100  
26101 -EOF
26102 -cat >> $CONFIG_STATUS <<\EOF
26103 -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
26104 -for ac_file in $CONFIG_FILES; do
26105 +    # echo "creating $dirpart/$file"
26106 +    echo '# dummy' > "$dirpart/$file"
26107 +  done
26108 +done
26109 + ;;
26110 +    default-1 ) for ac_file in $CONFIG_FILES; do
26111          # Support "outfile[:infile[:infile...]]"
26112          case "$ac_file" in
26113            *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26114 @@ -8478,11 +14956,34 @@
26115            fi
26116            ;;
26117          esac
26118 -      done
26119 +      done ;;
26120 +  esac
26121 +done
26122 +_ACEOF
26123  
26124 -exit 0
26125 -EOF
26126 +cat >>$CONFIG_STATUS <<\_ACEOF
26127 +
26128 +{ (exit 0); exit 0; }
26129 +_ACEOF
26130  chmod +x $CONFIG_STATUS
26131 -rm -fr confdefs* $ac_clean_files
26132 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
26133 +ac_clean_files=$ac_clean_files_save
26134 +
26135 +
26136 +# configure is writing to config.log, and then calls config.status.
26137 +# config.status does its own redirection, appending to config.log.
26138 +# Unfortunately, on DOS this fails, as config.log is still kept open
26139 +# by configure, so config.status won't be able to write to it; its
26140 +# output is simply discarded.  So we exec the FD to /dev/null,
26141 +# effectively closing config.log, so it can be properly (re)opened and
26142 +# appended to by config.status.  When coming back to configure, we
26143 +# need to make the FD available again.
26144 +if test "$no_create" != yes; then
26145 +  ac_cs_success=:
26146 +  exec 5>/dev/null
26147 +  $SHELL $CONFIG_STATUS || ac_cs_success=false
26148 +  exec 5>>config.log
26149 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26150 +  # would make configure fail if this is the last instruction.
26151 +  $ac_cs_success || { (exit 1); exit 1; }
26152 +fi
26153  
26154 diff -uNr mutt-1.4.orig/configure.in mutt-1.4/configure.in
26155 --- mutt-1.4.orig/configure.in  Sun Nov  3 21:42:52 2002
26156 +++ mutt-1.4/configure.in       Sun Nov  3 21:57:20 2002
26157 @@ -457,6 +457,14 @@
26158  ])
26159  AM_CONDITIONAL(BUILD_IMAP, test x$need_imap = xyes)
26160  
26161 +AC_ARG_ENABLE(nntp, [  --enable-nntp              Enable NNTP support],
26162 +[      if test x$enableval = xyes ; then
26163 +               AC_DEFINE(USE_NNTP)
26164 +               MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
26165 +               need_socket="yes"
26166 +       fi
26167 +])
26168 +
26169  dnl -- end socket dependencies --
26170  
26171  if test "$need_socket" = "yes"
26172 diff -uNr mutt-1.4.orig/curs_main.c mutt-1.4/curs_main.c
26173 --- mutt-1.4.orig/curs_main.c   Sun Nov  3 21:42:52 2002
26174 +++ mutt-1.4/curs_main.c        Sun Nov  3 21:57:20 2002
26175 @@ -18,6 +18,7 @@
26176  
26177  #include "mutt.h"
26178  #include "mutt_curses.h"
26179 +#include "mx.h"
26180  #include "mutt_menu.h"
26181  #include "mailbox.h"
26182  #include "mapping.h"
26183 @@ -33,6 +34,10 @@
26184  #include "imap.h"
26185  #endif
26186  
26187 +#ifdef USE_NNTP
26188 +#include "nntp.h"
26189 +#endif
26190 +
26191  
26192  
26193  #ifdef HAVE_PGP
26194 @@ -405,12 +410,27 @@
26195    { NULL }
26196  };
26197  
26198 +#ifdef USE_NNTP
26199 +struct mapping_t IndexNewsHelp[] = {
26200 +  { N_("Quit"),     OP_QUIT },
26201 +  { N_("Del"),      OP_DELETE },
26202 +  { N_("Undel"),    OP_UNDELETE },
26203 +  { N_("Save"),     OP_SAVE },
26204 +  { N_("Post"),     OP_POST },
26205 +  { N_("Followup"), OP_FOLLOWUP },
26206 +  { N_("Catchup"),  OP_CATCHUP },
26207 +  { N_("Help"),     OP_HELP },
26208 +  { NULL }
26209 +};
26210 +#endif
26211 +
26212  /* This function handles the message index window as well as commands returned
26213   * from the pager (MENU_PAGER).
26214   */
26215  int mutt_index_menu (void)
26216  {
26217    char buf[LONG_STRING], helpstr[SHORT_STRING];
26218 +  int flags;
26219    int op = OP_NULL;
26220    int done = 0;                /* controls when to exit the "event" loop */
26221    int i = 0, j;
26222 @@ -432,7 +452,11 @@
26223    menu->make_entry = index_make_entry;
26224    menu->color = index_color;
26225    menu->current = ci_first_message ();
26226 -  menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_MAIN, IndexHelp);
26227 +  menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_MAIN,
26228 +#ifdef USE_NNTP
26229 +       (Context && (Context->magic == M_NNTP)) ? IndexNewsHelp :
26230 +#endif
26231 +       IndexHelp);
26232    
26233    if (!attach_msg) 
26234      mutt_buffy_check(1); /* force the buffy check after we enter the folder */
26235 @@ -633,6 +657,9 @@
26236        mutt_curs_set (1);       /* fallback from the pager */
26237      }
26238  
26239 +#ifdef USE_NNTP
26240 +    unset_option (OPTNEWS);    /* for any case */
26241 +#endif
26242      switch (op)
26243      {
26244  
26245 @@ -683,6 +710,120 @@
26246         menu_current_bottom (menu);
26247         break;
26248  
26249 +#ifdef USE_NNTP
26250 +      case OP_GET_MESSAGE:
26251 +      case OP_GET_PARENT:
26252 +       CHECK_MSGCOUNT;
26253 +       if (Context->magic == M_NNTP)
26254 +       {
26255 +         HEADER *h;
26256 +
26257 +         if (op == OP_GET_MESSAGE)
26258 +         {
26259 +           buf[0] = 0;
26260 +           if (mutt_get_field (_("Enter Message-Id: "), buf, sizeof (buf), 0) != 0
26261 +                 || !buf[0])
26262 +             break;
26263 +         }
26264 +         else
26265 +         {
26266 +           LIST *ref = CURHDR->env->references;
26267 +           if (!ref)
26268 +           {
26269 +             mutt_error _("Article has no parent reference!");
26270 +             break;
26271 +           }
26272 +           strfcpy (buf, ref->data, sizeof (buf));
26273 +         }
26274 +         if (!Context->id_hash)
26275 +           Context->id_hash = mutt_make_id_hash (Context);
26276 +         if ((h = hash_find (Context->id_hash, buf)))
26277 +         {
26278 +           if (h->virtual != -1)
26279 +           {
26280 +             menu->current = h->virtual;
26281 +             menu->redraw = REDRAW_MOTION_RESYNCH;
26282 +           }
26283 +           else if (h->collapsed)
26284 +           {
26285 +             mutt_uncollapse_thread (Context, h);
26286 +             mutt_set_virtual (Context);
26287 +             menu->current = h->virtual;
26288 +             menu->redraw = REDRAW_MOTION_RESYNCH;
26289 +           }
26290 +           else
26291 +             mutt_error _("Message not visible in limited view.");
26292 +         }
26293 +         else
26294 +         {
26295 +           if (nntp_check_msgid (Context, buf) == 0)
26296 +           {
26297 +             h = Context->hdrs[Context->msgcount-1];
26298 +             mutt_sort_headers (Context, 0);
26299 +             menu->current = h->virtual;
26300 +             menu->redraw = REDRAW_FULL;
26301 +           }
26302 +           else
26303 +             mutt_error (_("Article %s not found on server"), buf); 
26304 +         }
26305 +       }
26306 +       break;
26307 +
26308 +      case OP_GET_CHILDREN:
26309 +      case OP_RECONSTRUCT_THREAD:
26310 +       CHECK_MSGCOUNT;
26311 +       if (Context->magic == M_NNTP)
26312 +       {
26313 +         HEADER *h;
26314 +         int old = CURHDR->index, i;
26315 +
26316 +         if (!CURHDR->env->message_id)
26317 +         {
26318 +           mutt_error _("No Message-Id. Unable to perform operation");
26319 +           break;
26320 +         }
26321 +
26322 +         if (!Context->id_hash)
26323 +           Context->id_hash = mutt_make_id_hash (Context);
26324 +         strfcpy (buf, CURHDR->env->message_id, sizeof (buf));
26325 +
26326 +         if (op == OP_RECONSTRUCT_THREAD)
26327 +         {
26328 +           LIST *ref = CURHDR->env->references;
26329 +           while (ref)
26330 +           {
26331 +             nntp_check_msgid (Context, ref->data);
26332 +             /* the last msgid in References is the root message */
26333 +             if (!ref->next)
26334 +               strfcpy (buf, ref->data, sizeof (buf));
26335 +             ref = ref->next;
26336 +           }
26337 +         }
26338 +         mutt_message _("Check for children of message...");
26339 +         if (nntp_check_children (Context, buf) == 0)
26340 +         {
26341 +           mutt_sort_headers (Context, (op == OP_RECONSTRUCT_THREAD));
26342 +           h = hash_find (Context->id_hash, buf);
26343 +           /* if the root message was retrieved, move to it */
26344 +           if (h)
26345 +             menu->current = h->virtual;
26346 +           else /* try to restore old position */
26347 +             for (i = 0; i < Context->msgcount; i++)
26348 +               if (Context->hdrs[i]->index == old)
26349 +               {
26350 +                 menu->current = Context->hdrs[i]->virtual;
26351 +                 /* As an added courtesy, recenter the menu
26352 +                  * with the current entry at the middle of the screen */
26353 +                 menu_check_recenter (menu);
26354 +                 menu_current_middle (menu);
26355 +               }
26356 +         }
26357 +         menu->redraw = REDRAW_FULL;
26358 +         mutt_clear_error ();
26359 +       }
26360 +       break;
26361 +#endif
26362 +
26363        case OP_JUMP:
26364  
26365         CHECK_MSGCOUNT;
26366 @@ -778,11 +919,33 @@
26367          break;
26368  
26369        case OP_MAIN_LIMIT:
26370 +      case OP_TOGGLE_READ:
26371  
26372         CHECK_MSGCOUNT;
26373         menu->oldcurrent = (Context->vcount && menu->current >= 0 && menu->current < Context->vcount) ?
26374                 CURHDR->index : -1;
26375 -       if (mutt_pattern_func (M_LIMIT, _("Limit to messages matching: ")) == 0)
26376 +       if (op == OP_TOGGLE_READ)
26377 +       {
26378 +         char buf[LONG_STRING];
26379 +
26380 +         if (!Context->pattern || strncmp (Context->pattern, "!~R!~D~s", 8) != 0)
26381 +         {
26382 +           snprintf (buf, sizeof (buf), "!~R!~D~s%s",
26383 +                     Context->pattern ? Context->pattern : ".*");
26384 +           set_option (OPTHIDEREAD);
26385 +         }
26386 +         else
26387 +         {
26388 +           strfcpy (buf, Context->pattern + 8, sizeof(buf));
26389 +           if (!*buf || strncmp (buf, ".*", 2) == 0)
26390 +             snprintf (buf, sizeof(buf), "~A");
26391 +           unset_option (OPTHIDEREAD);
26392 +         }
26393 +         FREE (&Context->pattern);
26394 +         Context->pattern = safe_strdup (buf);
26395 +       }
26396 +       if ((op == OP_TOGGLE_READ && mutt_pattern_func (M_LIMIT, NULL) == 0) ||
26397 +           mutt_pattern_func (M_LIMIT, _("Limit to messages matching: ")) == 0)
26398         {
26399           if (menu->oldcurrent >= 0)
26400           {
26401 @@ -980,20 +1143,43 @@
26402         break;
26403  
26404        case OP_MAIN_CHANGE_FOLDER:
26405 -      
26406 -       if (attach_msg)
26407 -         op = OP_MAIN_CHANGE_FOLDER_READONLY;
26408 -
26409 -       /* fallback to the readonly case */
26410 -
26411        case OP_MAIN_CHANGE_FOLDER_READONLY:
26412 +#ifdef USE_NNTP
26413 +      case OP_MAIN_CHANGE_GROUP:
26414 +      case OP_MAIN_CHANGE_GROUP_READONLY:
26415 +#endif
26416 +
26417 +       if (attach_msg || option (OPTREADONLY) ||
26418 +#ifdef USE_NNTP
26419 +           op == OP_MAIN_CHANGE_GROUP_READONLY ||
26420 +#endif
26421 +           op == OP_MAIN_CHANGE_FOLDER_READONLY)
26422 +         flags = M_READONLY;
26423 +       else
26424 +         flags = 0;
26425  
26426 -        if ((op == OP_MAIN_CHANGE_FOLDER_READONLY) || option (OPTREADONLY))
26427 +       if (flags)
26428            cp = _("Open mailbox in read-only mode");
26429          else
26430            cp = _("Open mailbox");
26431  
26432         buf[0] = '\0';
26433 +#ifdef USE_NNTP
26434 +       unset_option (OPTNEWS);
26435 +       if (op == OP_MAIN_CHANGE_GROUP ||
26436 +           op == OP_MAIN_CHANGE_GROUP_READONLY)
26437 +       {
26438 +         set_option (OPTNEWS);
26439 +         if (!(CurrentNewsSrv = mutt_select_newsserver (NewsServer)))
26440 +           break;
26441 +         if (flags)
26442 +           cp = _("Open newsgroup in read-only mode");
26443 +         else
26444 +           cp = _("Open newsgroup");
26445 +         nntp_buffy (buf);
26446 +       }
26447 +       else
26448 +#endif
26449         mutt_buffy (buf, sizeof (buf));
26450  
26451         if (mutt_enter_fname (cp, buf, sizeof (buf), &menu->redraw, 1) == -1)
26452 @@ -1004,6 +1190,14 @@
26453           break;
26454         }
26455  
26456 +#ifdef USE_NNTP
26457 +        if (option (OPTNEWS))
26458 +       {
26459 +         unset_option (OPTNEWS);
26460 +          nntp_expand_path (buf, sizeof (buf), &CurrentNewsSrv->conn->account);
26461 +       }
26462 +        else
26463 +#endif
26464         mutt_expand_path (buf, sizeof (buf));
26465         if (mx_get_magic (buf) <= 0)
26466         {
26467 @@ -1039,15 +1233,18 @@
26468        
26469         mutt_folder_hook (buf);
26470  
26471 -       if ((Context = mx_open_mailbox (buf, 
26472 -                                       (option (OPTREADONLY) || op == OP_MAIN_CHANGE_FOLDER_READONLY) ?
26473 -                                       M_READONLY : 0, NULL)) != NULL)
26474 +       if ((Context = mx_open_mailbox (buf, flags, NULL)) != NULL)
26475         {
26476           menu->current = ci_first_message ();
26477         }
26478         else
26479           menu->current = 0;
26480  
26481 +#ifdef USE_NNTP
26482 +       /* mutt_buffy_check() must be done with mail-reader mode! */
26483 +       menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_MAIN,
26484 +         (Context && (Context->magic == M_NNTP)) ? IndexNewsHelp : IndexHelp);
26485 +#endif
26486         mutt_clear_error ();
26487         mutt_buffy_check(1); /* force the buffy check after we have changed
26488                               the folder */
26489 @@ -1422,6 +1619,15 @@
26490         }
26491  #endif
26492  
26493 +#ifdef USE_NNTP
26494 +       if (Context->magic == M_NNTP)
26495 +       {
26496 +         mutt_flushinp ();
26497 +         mutt_error _("Can't change 'important' flag on NNTP server.");
26498 +         break;
26499 +       }
26500 +#endif
26501 +
26502          if (tag)
26503          {
26504           for (j = 0; j < Context->vcount; j++)
26505 @@ -1767,6 +1973,17 @@
26506         }
26507         break;
26508  
26509 +#ifdef USE_NNTP
26510 +      case OP_CATCHUP:
26511 +       if (Context && Context->magic == M_NNTP)
26512 +       {
26513 +         if (mutt_newsgroup_catchup (CurrentNewsSrv,
26514 +               ((NNTP_DATA *)Context->data)->group))
26515 +           menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
26516 +       }
26517 +       break;
26518 +#endif
26519 +
26520        case OP_DISPLAY_ADDRESS:
26521  
26522         CHECK_MSGCOUNT;
26523 @@ -1801,6 +2018,15 @@
26524         }
26525  #endif
26526  
26527 +#ifdef USE_NNTP
26528 +       if (Context->magic == M_NNTP)
26529 +       {
26530 +         mutt_flushinp ();
26531 +         mutt_error _("Can't edit message on newsserver.");
26532 +         break;
26533 +       }
26534 +#endif
26535 +
26536          mutt_edit_message (Context, tag ? NULL : CURHDR);
26537         menu->redraw = REDRAW_FULL;
26538  
26539 @@ -1955,6 +2181,37 @@
26540        
26541          menu->redraw = REDRAW_FULL;
26542          break;
26543 +
26544 +#ifdef USE_NNTP
26545 +      case OP_POST:
26546 +      case OP_FOLLOWUP:
26547 +      case OP_FORWARD_TO_GROUP:
26548 +
26549 +       CHECK_ATTACH;
26550 +       if (op != OP_FOLLOWUP || !CURHDR->env->followup_to ||
26551 +           mutt_strcasecmp (CURHDR->env->followup_to, "poster") ||
26552 +           query_quadoption (OPT_FOLLOWUPTOPOSTER,_("Reply by mail as poster prefers?")) != M_YES)
26553 +       {
26554 +         if (Context && Context->magic == M_NNTP &&
26555 +             !((NNTP_DATA *)Context->data)->allowed &&
26556 +             query_quadoption (OPT_TOMODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != M_YES)
26557 +           break;
26558 +         if (op == OP_POST)
26559 +           ci_send_message (SENDNEWS, NULL, NULL, Context, NULL);
26560 +         else
26561 +         {
26562 +           CHECK_MSGCOUNT;
26563 +           if (op == OP_FOLLOWUP)
26564 +             ci_send_message (SENDNEWS|SENDREPLY, NULL, NULL, Context,
26565 +                              tag ? NULL : CURHDR);
26566 +           else
26567 +             ci_send_message (SENDNEWS|SENDFORWARD, NULL, NULL, Context,
26568 +                              tag ? NULL : CURHDR);
26569 +         }
26570 +         menu->redraw = REDRAW_FULL;
26571 +         break;
26572 +       }
26573 +#endif
26574        
26575        case OP_REPLY:
26576  
26577 @@ -2081,6 +2338,12 @@
26578    if (!attach_msg)
26579      imap_logout_all ();
26580  #endif
26581 +#ifdef USE_NNTP
26582 +  /* Close all open NNTP connections */
26583 +  if (!attach_msg)
26584 +    nntp_logout_all ();
26585 +#endif
26586 +
26587  
26588    mutt_menuDestroy (&menu);
26589    return (close);
26590 diff -uNr mutt-1.4.orig/depcomp mutt-1.4/depcomp
26591 --- mutt-1.4.orig/depcomp       Tue Feb 27 17:59:45 2001
26592 +++ mutt-1.4/depcomp    Sun Nov  3 21:57:30 2002
26593 @@ -18,6 +18,11 @@
26594  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26595  # 02111-1307, USA.
26596  
26597 +# As a special exception to the GNU General Public License, if you
26598 +# distribute this file as part of a program that contains a
26599 +# configuration script generated by Autoconf, you may include it under
26600 +# the same distribution terms that you use for the rest of that program.
26601 +
26602  # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26603  
26604  if test -z "$depmode" || test -z "$source" || test -z "$object"; then
26605 @@ -26,7 +31,16 @@
26606  fi
26607  # `libtool' can also be set to `yes' or `no'.
26608  
26609 -depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
26610 +if test -z "$depfile"; then
26611 +   base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
26612 +   dir=`echo "$object" | sed 's,/.*$,/,'`
26613 +   if test "$dir" = "$object"; then
26614 +      dir=
26615 +   fi
26616 +   # FIXME: should be _deps on DOS.
26617 +   depfile="$dir.deps/$base"
26618 +fi
26619 +
26620  tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
26621  
26622  rm -f "$tmpdepfile"
26623 @@ -50,10 +64,12 @@
26624  case "$depmode" in
26625  gcc3)
26626  ## gcc 3 implements dependency tracking that does exactly what
26627 -## we want.  Yay!
26628 -  if "$@" -MT "$object" -MF "$tmpdepfile" -MD -MP; then :
26629 +## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
26630 +## it if -MD -MP comes after the -MF stuff.  Hmm.
26631 +  "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
26632 +  stat=$?
26633 +  if test $stat -eq 0; then :
26634    else
26635 -    stat=$?
26636      rm -f "$tmpdepfile"
26637      exit $stat
26638    fi
26639 @@ -73,9 +89,10 @@
26640    if test -z "$gccflag"; then
26641      gccflag=-MD,
26642    fi
26643 -  if "$@" -Wp,"$gccflag$tmpdepfile"; then :
26644 +  "$@" -Wp,"$gccflag$tmpdepfile"
26645 +  stat=$?
26646 +  if test $stat -eq 0; then :
26647    else
26648 -    stat=$?
26649      rm -f "$tmpdepfile"
26650      exit $stat
26651    fi
26652 @@ -126,19 +143,24 @@
26653    if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
26654      echo "$object : \\" > "$depfile"
26655  
26656 -    # Clip off the initial element (the dependent). Don't try to be
26657 +    # Clip off the initial element (the dependent).  Don't try to be
26658      # clever and replace this with sed code, as IRIX sed won't handle
26659      # lines with more than a fixed number of characters (4096 in
26660 -    # IRIX 6.2 sed, 8192 in IRIX 6.5).
26661 +    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
26662 +    # the IRIX cc adds comments like `#:fec' to the end of the
26663 +    # dependency line.
26664      tr ' ' '
26665 -' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
26666 +' < "$tmpdepfile" \
26667 +    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
26668 +    tr '
26669  ' ' ' >> $depfile
26670 +    echo >> $depfile
26671  
26672 +    # The second pass generates a dummy entry for each header file.
26673      tr ' ' '
26674 -' < "$tmpdepfile" | \
26675 -## Some versions of the HPUX 10.20 sed can't process this invocation
26676 -## correctly.  Breaking it into two sed invocations is a workaround.
26677 -      sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
26678 +' < "$tmpdepfile" \
26679 +   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
26680 +   >> $depfile
26681    else
26682      # The sourcefile does not contain any dependencies, so just
26683      # store a dummy comment line, to avoid errors with the Makefile
26684 @@ -150,8 +172,12 @@
26685  
26686  aix)
26687    # The C for AIX Compiler uses -M and outputs the dependencies
26688 -  # in a .u file.
26689 -  tmpdepfile=`echo "$object" | sed 's/\(.*\)\..*$/\1.u/'`
26690 +  # in a .u file.  This file always lives in the current directory.
26691 +  # Also, the AIX compiler puts `$object:' at the start of each line;
26692 +  # $object doesn't have directory information.
26693 +  stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
26694 +  tmpdepfile="$stripped.u"
26695 +  outname="$stripped.o"
26696    if test "$libtool" = yes; then
26697      "$@" -Wc,-M
26698    else
26699 @@ -166,21 +192,11 @@
26700    fi
26701  
26702    if test -f "$tmpdepfile"; then
26703 -    echo "$object : \\" > "$depfile"
26704 -
26705 -    # Clip off the initial element (the dependent). Don't try to be
26706 -    # clever and replace this with sed code, as IRIX sed won't handle
26707 -    # lines with more than a fixed number of characters (4096 in
26708 -    # IRIX 6.2 sed, 8192 in IRIX 6.5).
26709 -    tr ' ' '
26710 -' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr '
26711 -' ' ' >> $depfile
26712 -
26713 -    tr ' ' '
26714 -' < "$tmpdepfile" | \
26715 -## Some versions of the HPUX 10.20 sed can't process this invocation
26716 -## correctly.  Breaking it into two sed invocations is a workaround.
26717 -      sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
26718 +    # Each line is of the form `foo.o: dependent.h'.
26719 +    # Do two passes, one to just change these to
26720 +    # `$object: dependent.h' and one to simply `dependent.h:'.
26721 +    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
26722 +    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
26723    else
26724      # The sourcefile does not contain any dependencies, so just
26725      # store a dummy comment line, to avoid errors with the Makefile
26726 @@ -190,40 +206,88 @@
26727    rm -f "$tmpdepfile"
26728    ;;
26729  
26730 +tru64)
26731 +   # The Tru64 compiler uses -MD to generate dependencies as a side
26732 +   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
26733 +   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
26734 +   # dependencies in `foo.d' instead, so we check for that too.
26735 +   # Subdirectories are respected.
26736 +   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
26737 +   test "x$dir" = "x$object" && dir=
26738 +   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
26739 +
26740 +   if test "$libtool" = yes; then
26741 +      tmpdepfile1="$dir.libs/$base.lo.d"
26742 +      tmpdepfile2="$dir.libs/$base.d"
26743 +      "$@" -Wc,-MD
26744 +   else
26745 +      tmpdepfile1="$dir$base.o.d"
26746 +      tmpdepfile2="$dir$base.d"
26747 +      "$@" -MD
26748 +   fi
26749 +
26750 +   stat=$?
26751 +   if test $stat -eq 0; then :
26752 +   else
26753 +      rm -f "$tmpdepfile1" "$tmpdepfile2"
26754 +      exit $stat
26755 +   fi
26756 +
26757 +   if test -f "$tmpdepfile1"; then
26758 +      tmpdepfile="$tmpdepfile1"
26759 +   else
26760 +      tmpdepfile="$tmpdepfile2"
26761 +   fi
26762 +   if test -f "$tmpdepfile"; then
26763 +      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
26764 +      # That's a space and a tab in the [].
26765 +      sed -e 's,^.*\.[a-z]*:[  ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
26766 +   else
26767 +      echo "#dummy" > "$depfile"
26768 +   fi
26769 +   rm -f "$tmpdepfile"
26770 +   ;;
26771 +
26772  #nosideeffect)
26773    # This comment above is used by automake to tell side-effect
26774    # dependency tracking mechanisms from slower ones.
26775  
26776  dashmstdout)
26777    # Important note: in order to support this mode, a compiler *must*
26778 -  # always write the proprocessed file to stdout, regardless of -o,
26779 -  # because we must use -o when running libtool.
26780 -  test -z "$dashmflag" && dashmflag=-M
26781 -  ( IFS=" "
26782 -    case " $* " in
26783 -    *" --mode=compile "*) # this is libtool, let us make it quiet
26784 -      for arg
26785 -      do # cycle over the arguments
26786 -        case "$arg" in
26787 -       "--mode=compile")
26788 -         # insert --quiet before "--mode=compile"
26789 -         set fnord "$@" --quiet
26790 -         shift # fnord
26791 -         ;;
26792 -       esac
26793 -       set fnord "$@" "$arg"
26794 -       shift # fnord
26795 -       shift # "$arg"
26796 -      done
26797 +  # always write the proprocessed file to stdout, regardless of -o.
26798 +  "$@" || exit $?
26799 +
26800 +  # Remove the call to Libtool.
26801 +  if test "$libtool" = yes; then
26802 +    while test $1 != '--mode=compile'; do
26803 +      shift
26804 +    done
26805 +    shift
26806 +  fi
26807 +
26808 +  # Remove `-o $object'.  We will use -o /dev/null later,
26809 +  # however we can't do the remplacement now because
26810 +  # `-o $object' might simply not be used
26811 +  IFS=" "
26812 +  for arg
26813 +  do
26814 +    case $arg in
26815 +    -o)
26816 +      shift
26817 +      ;;
26818 +    $object)
26819 +      shift
26820 +      ;;
26821 +    *)
26822 +      set fnord "$@" "$arg"
26823 +      shift # fnord
26824 +      shift # $arg
26825        ;;
26826      esac
26827 -    "$@" $dashmflag | sed 's:^[^:]*\:[         ]*:'"$object"'\: :' > "$tmpdepfile"
26828 -  ) &
26829 -  proc=$!
26830 -  "$@"
26831 -  stat=$?
26832 -  wait "$proc"
26833 -  if test "$stat" != 0; then exit $stat; fi
26834 +  done
26835 +
26836 +  test -z "$dashmflag" && dashmflag=-M
26837 +  "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[      ]*:'"$object"'\: :' > "$tmpdepfile"
26838    rm -f "$depfile"
26839    cat < "$tmpdepfile" > "$depfile"
26840    tr ' ' '
26841 @@ -241,36 +305,31 @@
26842    ;;
26843  
26844  makedepend)
26845 +  "$@" || exit $?
26846    # X makedepend
26847 -  (
26848 -    shift
26849 -    cleared=no
26850 -    for arg in "$@"; do
26851 -      case $cleared in no)
26852 -        set ""; shift
26853 -       cleared=yes
26854 -      esac
26855 -      case "$arg" in
26856 -        -D*|-I*)
26857 -         set fnord "$@" "$arg"; shift;;
26858 -       -*)
26859 -         ;;
26860 -       *)
26861 -         set fnord "$@" "$arg"; shift;;
26862 -      esac
26863 -    done
26864 -    obj_suffix="`echo $object | sed 's/^.*\././'`"
26865 -    touch "$tmpdepfile"
26866 -    ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
26867 -  ) &
26868 -  proc=$!
26869 -  "$@"
26870 -  stat=$?
26871 -  wait "$proc"
26872 -  if test "$stat" != 0; then exit $stat; fi
26873 +  shift
26874 +  cleared=no
26875 +  for arg in "$@"; do
26876 +    case $cleared in
26877 +    no)
26878 +      set ""; shift
26879 +      cleared=yes ;;
26880 +    esac
26881 +    case "$arg" in
26882 +    -D*|-I*)
26883 +      set fnord "$@" "$arg"; shift ;;
26884 +    -*)
26885 +      ;;
26886 +    *)
26887 +      set fnord "$@" "$arg"; shift ;;
26888 +    esac
26889 +  done
26890 +  obj_suffix="`echo $object | sed 's/^.*\././'`"
26891 +  touch "$tmpdepfile"
26892 +  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
26893    rm -f "$depfile"
26894    cat < "$tmpdepfile" > "$depfile"
26895 -  tail +3 "$tmpdepfile" | tr ' ' '
26896 +  sed '1,2d' "$tmpdepfile" | tr ' ' '
26897  ' | \
26898  ## Some versions of the HPUX 10.20 sed can't process this invocation
26899  ## correctly.  Breaking it into two sed invocations is a workaround.
26900 @@ -280,35 +339,39 @@
26901  
26902  cpp)
26903    # Important note: in order to support this mode, a compiler *must*
26904 -  # always write the proprocessed file to stdout, regardless of -o,
26905 -  # because we must use -o when running libtool.
26906 -  ( IFS=" "
26907 -    case " $* " in
26908 -    *" --mode=compile "*)
26909 -      for arg
26910 -      do # cycle over the arguments
26911 -        case $arg in
26912 -       "--mode=compile")
26913 -         # insert --quiet before "--mode=compile"
26914 -         set fnord "$@" --quiet
26915 -         shift # fnord
26916 -         ;;
26917 -       esac
26918 -       set fnord "$@" "$arg"
26919 -       shift # fnord
26920 -       shift # "$arg"
26921 -      done
26922 +  # always write the proprocessed file to stdout.
26923 +  "$@" || exit $?
26924 +
26925 +  # Remove the call to Libtool.
26926 +  if test "$libtool" = yes; then
26927 +    while test $1 != '--mode=compile'; do
26928 +      shift
26929 +    done
26930 +    shift
26931 +  fi
26932 +
26933 +  # Remove `-o $object'.
26934 +  IFS=" "
26935 +  for arg
26936 +  do
26937 +    case $arg in
26938 +    -o)
26939 +      shift
26940 +      ;;
26941 +    $object)
26942 +      shift
26943 +      ;;
26944 +    *)
26945 +      set fnord "$@" "$arg"
26946 +      shift # fnord
26947 +      shift # $arg
26948        ;;
26949      esac
26950 -    "$@" -E |
26951 +  done
26952 +
26953 +  "$@" -E |
26954      sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
26955      sed '$ s: \\$::' > "$tmpdepfile"
26956 -  ) &
26957 -  proc=$!
26958 -  "$@"
26959 -  stat=$?
26960 -  wait "$proc"
26961 -  if test "$stat" != 0; then exit $stat; fi
26962    rm -f "$depfile"
26963    echo "$object : \\" > "$depfile"
26964    cat < "$tmpdepfile" >> "$depfile"
26965 @@ -320,32 +383,25 @@
26966    # Important note: in order to support this mode, a compiler *must*
26967    # always write the proprocessed file to stdout, regardless of -o,
26968    # because we must use -o when running libtool.
26969 -  ( IFS=" "
26970 -    case " $* " in
26971 -    *" --mode=compile "*)
26972 -      for arg
26973 -      do # cycle over the arguments
26974 -        case $arg in
26975 -       "--mode=compile")
26976 -         # insert --quiet before "--mode=compile"
26977 -         set fnord "$@" --quiet
26978 -         shift # fnord
26979 -         ;;
26980 -       esac
26981 +  "$@" || exit $?
26982 +  IFS=" "
26983 +  for arg
26984 +  do
26985 +    case "$arg" in
26986 +    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
26987 +       set fnord "$@"
26988 +       shift
26989 +       shift
26990 +       ;;
26991 +    *)
26992         set fnord "$@" "$arg"
26993 -       shift # fnord
26994 -       shift # "$arg"
26995 -      done
26996 -      ;;
26997 +       shift
26998 +       shift
26999 +       ;;
27000      esac
27001 -    "$@" -E |
27002 -    sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
27003 -  ) &
27004 -  proc=$!
27005 -  "$@"
27006 -  stat=$?
27007 -  wait "$proc"
27008 -  if test "$stat" != 0; then exit $stat; fi
27009 +  done
27010 +  "$@" -E |
27011 +  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
27012    rm -f "$depfile"
27013    echo "$object : \\" > "$depfile"
27014    . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::   \1 \\:p' >> "$depfile"
27015 diff -uNr mutt-1.4.orig/doc/manual-1.html mutt-1.4/doc/manual-1.html
27016 --- mutt-1.4.orig/doc/manual-1.html     Wed May 29 11:29:54 2002
27017 +++ mutt-1.4/doc/manual-1.html  Thu Jan  1 01:00:00 1970
27018 @@ -1,97 +0,0 @@
27019 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
27020 -<HTML>
27021 -<HEAD>
27022 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
27023 - <TITLE>The Mutt E-Mail Client: Introduction</TITLE>
27024 - <LINK HREF="manual-2.html" REL=next>
27025 -
27026 - <LINK HREF="manual.html#toc1" REL=contents>
27027 -</HEAD>
27028 -<BODY>
27029 -<A HREF="manual-2.html">Next</A>
27030 -Previous
27031 -<A HREF="manual.html#toc1">Contents</A>
27032 -<HR>
27033 -<H2><A NAME="s1">1.</A> <A HREF="manual.html#toc1">Introduction</A></H2>
27034 -
27035 -<P><B>Mutt</B> is a small but very powerful text-based MIME mail client.  Mutt is
27036 -highly configurable, and is well suited to the mail power user with advanced
27037 -features like key bindings, keyboard macros, mail threading, regular
27038 -expression searches and a powerful pattern matching language for selecting
27039 -groups of messages.</P>
27040 -
27041 -<H2><A NAME="ss1.1">1.1</A> <A HREF="manual.html#toc1.1">Mutt Home Page</A>
27042 -</H2>
27043 -
27044 -<P>
27045 -<A HREF="http://www.mutt.org/">http://www.mutt.org/</A></P>
27046 -
27047 -<H2><A NAME="ss1.2">1.2</A> <A HREF="manual.html#toc1.2">Mailing Lists</A>
27048 -</H2>
27049 -
27050 -<P>To subscribe to one of the following mailing lists, send a message with the
27051 -word <EM>subscribe</EM> in the body to
27052 -<CODE>list-name</CODE><EM>-request</EM><CODE>@mutt.org</CODE>.</P>
27053 -<P>
27054 -<UL>
27055 -<LI>
27056 -<A HREF="mailto:mutt-announce-request@mutt.org">mutt-announce@mutt.org</A> -- low traffic list for announcements</LI>
27057 -<LI>
27058 -<A HREF="mailto:mutt-users-request@mutt.org">mutt-users@mutt.org</A> -- help, bug reports and feature requests</LI>
27059 -<LI>
27060 -<A HREF="mailto:mutt-dev-request@mutt.org">mutt-dev@mutt.org</A> -- development mailing list</LI>
27061 -</UL>
27062 -</P>
27063 -<P><B>Note:</B> all messages posted to <EM>mutt-announce</EM> are automatically
27064 -forwarded to <EM>mutt-users</EM>, so you do not need to be subscribed to both
27065 -lists.</P>
27066 -
27067 -<H2><A NAME="ss1.3">1.3</A> <A HREF="manual.html#toc1.3">Software Distribution Sites</A>
27068 -</H2>
27069 -
27070 -<P>
27071 -<UL>
27072 -<LI>
27073 -<A HREF="ftp://ftp.mutt.org/pub/mutt/">ftp://ftp.mutt.org/pub/mutt/</A></LI>
27074 -<LI>
27075 -<A HREF="ftp://ftp.guug.de/pub/mutt/">ftp://ftp.guug.de/pub/mutt/</A></LI>
27076 -</UL>
27077 -</P>
27078 -<P>For a list of mirror sites, please refer to 
27079 -<A HREF="http://www.mutt.org/download.html">http://www.mutt.org/download.html</A>.</P>
27080 -
27081 -<H2><A NAME="ss1.4">1.4</A> <A HREF="manual.html#toc1.4">IRC</A>
27082 -</H2>
27083 -
27084 -<P>Visit channel <EM>#mutt</EM> on 
27085 -<A HREF="http://www.openprojects.net">OpenProjects.Net (www.openprojects.net)</A> to chat with other people interested in Mutt.</P>
27086 -
27087 -<H2><A NAME="ss1.5">1.5</A> <A HREF="manual.html#toc1.5">USENET</A>
27088 -</H2>
27089 -
27090 -<P>See the newsgroup 
27091 -<A HREF="news:comp.mail.mutt">comp.mail.mutt</A>.</P>
27092 -
27093 -<H2><A NAME="ss1.6">1.6</A> <A HREF="manual.html#toc1.6">Copyright</A>
27094 -</H2>
27095 -
27096 -<P>Mutt is Copyright (C) 1996-2000 Michael R. Elkins
27097 -&lt;me@cs.hmc.edu&gt; and others</P>
27098 -<P>This program is free software; you can redistribute it and/or modify
27099 -it under the terms of the GNU General Public License as published by
27100 -the Free Software Foundation; either version 2 of the License, or
27101 -(at your option) any later version.</P>
27102 -<P>This program is distributed in the hope that it will be useful,
27103 -but WITHOUT ANY WARRANTY; without even the implied warranty of
27104 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27105 -GNU General Public License for more details.</P>
27106 -<P>You should have received a copy of the GNU General Public License
27107 -along with this program; if not, write to the Free Software
27108 -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.</P>
27109 -
27110 -<HR>
27111 -<A HREF="manual-2.html">Next</A>
27112 -Previous
27113 -<A HREF="manual.html#toc1">Contents</A>
27114 -</BODY>
27115 -</HTML>
27116 diff -uNr mutt-1.4.orig/doc/manual-2.html mutt-1.4/doc/manual-2.html
27117 --- mutt-1.4.orig/doc/manual-2.html     Wed May 29 11:29:54 2002
27118 +++ mutt-1.4/doc/manual-2.html  Thu Jan  1 01:00:00 1970
27119 @@ -1,667 +0,0 @@
27120 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
27121 -<HTML>
27122 -<HEAD>
27123 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
27124 - <TITLE>The Mutt E-Mail Client: Getting Started</TITLE>
27125 - <LINK HREF="manual-3.html" REL=next>
27126 - <LINK HREF="manual-1.html" REL=previous>
27127 - <LINK HREF="manual.html#toc2" REL=contents>
27128 -</HEAD>
27129 -<BODY>
27130 -<A HREF="manual-3.html">Next</A>
27131 -<A HREF="manual-1.html">Previous</A>
27132 -<A HREF="manual.html#toc2">Contents</A>
27133 -<HR>
27134 -<H2><A NAME="s2">2.</A> <A HREF="manual.html#toc2">Getting Started</A></H2>
27135 -
27136 -
27137 -<P>This section is intended as a brief overview of how to use Mutt.  There are
27138 -many other features which are described elsewhere in the manual.  There
27139 -is even more information available in the Mutt FAQ and various web
27140 -pages.  See the 
27141 -<A HREF="http://www.mutt.org/mutt/">Mutt Page</A> for more details.</P>
27142 -<P>The keybindings described in this section are the defaults as distributed.
27143 -Your local system administrator may have altered the defaults for your site.
27144 -You can always type ``?'' in any menu to display the current bindings.</P>
27145 -<P>The first thing you need to do is invoke mutt, simply by typing mutt
27146 -at the command line.  There are various command-line options, see 
27147 -either the mutt man page or the 
27148 -<A HREF="manual-6.html#commandline">reference</A>.</P>
27149 -
27150 -<H2><A NAME="ss2.1">2.1</A> <A HREF="manual.html#toc2.1">Moving Around in Menus</A>
27151 -</H2>
27152 -
27153 -
27154 -<P>Information is presented in menus, very similar to ELM.  Here is a table
27155 -showing the common keys used to navigate menus in Mutt.</P>
27156 -<P>
27157 -<BLOCKQUOTE><CODE>
27158 -<PRE>
27159 -j or Down       next-entry      move to the next entry
27160 -k or Up         previous-entry  move to the previous entry
27161 -z or PageDn     page-down       go to the next page
27162 -Z or PageUp     page-up         go to the previous page
27163 -= or Home       first-entry     jump to the first entry
27164 -* or End        last-entry      jump to the last entry
27165 -q               quit            exit the current menu
27166 -?               help            list all keybindings for the current menu
27167 -</PRE>
27168 -</CODE></BLOCKQUOTE>
27169 -</P>
27170 -
27171 -<H2><A NAME="editing"></A> <A NAME="ss2.2">2.2</A> <A HREF="manual.html#toc2.2">Editing Input Fields</A>
27172 -</H2>
27173 -
27174 -<P>Mutt has a builtin line editor which is used as the primary way to input
27175 -textual data such as email addresses or filenames.  The keys used to move
27176 -around while editing are very similar to those of Emacs.</P>
27177 -<P>
27178 -<BLOCKQUOTE><CODE>
27179 -<PRE>
27180 -^A or &lt;Home>    bol             move to the start of the line
27181 -^B or &lt;Left>    backward-char   move back one char
27182 -Esc B           backward-word   move back one word
27183 -^D or &lt;Delete>  delete-char     delete the char under the cursor
27184 -^E or &lt;End>     eol             move to the end of the line
27185 -^F or &lt;Right>   forward-char    move forward one char
27186 -Esc F           forward-word    move forward one word
27187 -&lt;Tab>           complete        complete filename or alias
27188 -^T              complete-query  complete address with query
27189 -^K              kill-eol        delete to the end of the line
27190 -ESC d           kill-eow        delete to the end ot the word
27191 -^W              kill-word       kill the word in front of the cursor
27192 -^U              kill-line       delete entire line
27193 -^V              quote-char      quote the next typed key
27194 -&lt;Up>            history-up      recall previous string from history
27195 -&lt;Down>          history-down    recall next string from history
27196 -&lt;BackSpace>     backspace       kill the char in front of the cursor
27197 -Esc u           upcase-word     convert word to upper case
27198 -Esc l           downcase-word   convert word to lower case
27199 -Esc c           capitalize-word capitalize the word
27200 -^G              n/a             abort
27201 -&lt;Return>        n/a             finish editing
27202 -</PRE>
27203 -</CODE></BLOCKQUOTE>
27204 -</P>
27205 -<P>You can remap the <EM>editor</EM> functions using the 
27206 -<A HREF="manual-3.html#bind">bind</A>
27207 -command.  For example, to make the <EM>Delete</EM> key delete the character in
27208 -front of the cursor rather than under, you could use</P>
27209 -<P><CODE>bind editor &lt;delete&gt; backspace</CODE></P>
27210 -
27211 -<H2><A NAME="ss2.3">2.3</A> <A HREF="manual.html#toc2.3">Reading Mail - The Index and Pager</A>
27212 -</H2>
27213 -
27214 -
27215 -<P>Similar to many other mail clients, there are two modes in which mail is
27216 -read in Mutt.  The first is the index of messages in the mailbox, which is
27217 -called the ``index'' in Mutt.  The second mode is the display of the
27218 -message contents.  This is called the ``pager.''</P>
27219 -<P>The next few sections describe the functions provided in each of these
27220 -modes.</P>
27221 -
27222 -<H3>The Message Index</H3>
27223 -
27224 -
27225 -<P>
27226 -<BLOCKQUOTE><CODE>
27227 -<PRE>
27228 -c               change to a different mailbox
27229 -ESC c           change to a folder in read-only mode
27230 -C               copy the current message to another mailbox
27231 -ESC C           decode a message and copy it to a folder
27232 -ESC s           decode a message and save it to a folder
27233 -D               delete messages matching a pattern
27234 -d               delete the current message
27235 -F               mark as important
27236 -l               show messages matching a pattern
27237 -N               mark message as new
27238 -o               change the current sort method
27239 -O               reverse sort the mailbox
27240 -q               save changes and exit
27241 -s               save-message
27242 -T               tag messages matching a pattern
27243 -t               toggle the tag on a message
27244 -ESC t           toggle tag on entire message thread
27245 -U               undelete messages matching a pattern
27246 -u               undelete-message
27247 -v               view-attachments
27248 -x               abort changes and exit
27249 -&lt;Return>        display-message
27250 -&lt;Tab>           jump to the next new message
27251 -@               show the author's full e-mail address
27252 -$               save changes to mailbox
27253 -/               search
27254 -ESC /           search-reverse
27255 -^L              clear and redraw the screen
27256 -^T              untag messages matching a pattern
27257 -</PRE>
27258 -</CODE></BLOCKQUOTE>
27259 -</P>
27260 -
27261 -<H3>Status Flags</H3>
27262 -
27263 -
27264 -<P>In addition to who sent the message and the subject, a short summary of
27265 -the disposition of each message is printed beside the message number.
27266 -Zero or more of the following ``flags'' may appear, which mean:</P>
27267 -
27268 -<P>
27269 -<DL>
27270 -<DT><B>D</B><DD><P>message is deleted (is marked for deletion)</P>
27271 -<DT><B>d</B><DD><P>message have attachments marked for deletion</P>
27272 -<DT><B>K</B><DD><P>contains a PGP public key</P>
27273 -<DT><B>N</B><DD><P>message is new</P>
27274 -<DT><B>O</B><DD><P>message is old</P>
27275 -<DT><B>P</B><DD><P>message is PGP encrypted</P>
27276 -<DT><B>r</B><DD><P>message has been replied to</P>
27277 -<DT><B>S</B><DD><P>message is PGP signed, and the signature is succesfully verified</P>
27278 -<DT><B>s</B><DD><P>message is PGP signed</P>
27279 -<DT><B>!</B><DD><P>message is flagged</P>
27280 -<DT><B>*</B><DD><P>message is tagged</P>
27281 -</DL>
27282 -</P>
27283 -<P>Some of the status flags can be turned on or off using
27284 -<UL>
27285 -<LI><B>set-flag</B> (default: w)</LI>
27286 -<LI><B>clear-flag</B> (default: W)</LI>
27287 -</UL>
27288 -</P>
27289 -
27290 -<P>Furthermore, the following flags reflect who the message is addressed
27291 -to.  They can be customized with the
27292 -<A HREF="manual-6.html#to_chars">$to_chars</A> variable.</P>
27293 -
27294 -<P>
27295 -<BLOCKQUOTE><CODE>
27296 -<PRE>
27297 -+       message is to you and you only
27298 -T       message is to you, but also to or cc'ed to others
27299 -C       message is cc'ed to you
27300 -F       message is from you
27301 -L       message is sent to a subscribed mailing list
27302 -</PRE>
27303 -</CODE></BLOCKQUOTE>
27304 -</P>
27305 -
27306 -<H3>The Pager</H3>
27307 -
27308 -
27309 -<P>By default, Mutt uses its builtin pager to display the body of messages.
27310 -The pager is very similar to the Unix program <EM>less</EM> though not nearly as
27311 -featureful.</P>
27312 -<P>
27313 -<BLOCKQUOTE><CODE>
27314 -<PRE>
27315 -&lt;Return>        go down one line
27316 -&lt;Space>         display the next page (or next message if at the end of a message)
27317 --               go back to the previous page
27318 -n               search for next match
27319 -S               skip beyond quoted text
27320 -T               toggle display of quoted text
27321 -?               show keybindings
27322 -/               search for a regular expression (pattern)
27323 -ESC /           search backwards for a regular expression
27324 -\               toggle search pattern coloring
27325 -^               jump to the top of the message
27326 -$               jump to the bottom of the message
27327 -</PRE>
27328 -</CODE></BLOCKQUOTE>
27329 -</P>
27330 -<P>In addition, many of the functions from the <EM>index</EM> are available in
27331 -the pager, such as <EM>delete-message</EM> or <EM>copy-message</EM> (this is one
27332 -advantage over using an external pager to view messages).</P>
27333 -<P>Also, the internal pager supports a couple other advanced features. For
27334 -one, it will accept and translate the ``standard'' nroff sequences for
27335 -bold and underline. These sequences are a series of either the letter,
27336 -backspace (^H), the letter again for bold or the letter, backspace,
27337 -``_'' for denoting underline. Mutt will attempt to display these
27338 -in bold and underline respectively if your terminal supports them. If
27339 -not, you can use the bold and underline 
27340 -<A HREF="manual-3.html#color">color</A>
27341 -objects to specify a color or mono attribute for them.</P>
27342 -<P>Additionally, the internal pager supports the ANSI escape sequences for
27343 -character attributes.  Mutt translates them into the correct color and
27344 -character settings.  The sequences Mutt supports are:</P>
27345 -
27346 -<P>
27347 -<BLOCKQUOTE><CODE>
27348 -<PRE>
27349 -ESC [ Ps;Ps;Ps;...;Ps m
27350 -where Ps =
27351 -0    All Attributes Off
27352 -1    Bold on
27353 -4    Underline on
27354 -5    Blink on
27355 -7    Reverse video on
27356 -3x   Foreground color is x
27357 -4x   Background color is x
27358 -
27359 -Colors are
27360 -0    black
27361 -1    red
27362 -2    green
27363 -3    yellow
27364 -4    blue
27365 -5    magenta
27366 -6    cyan
27367 -7    white
27368 -</PRE>
27369 -</CODE></BLOCKQUOTE>
27370 -</P>
27371 -<P>Mutt uses these attributes for handling text/enriched messages, and they
27372 -can also be used by an external 
27373 -<A HREF="manual-5.html#auto_view">autoview</A>
27374 -script for highlighting purposes.  <B>Note:</B> If you change the colors for your
27375 -display, for example by changing the color associated with color2 for
27376 -your xterm, then that color will be used instead of green.</P>
27377 -
27378 -<H3><A NAME="threads"></A> Threaded Mode</H3>
27379 -
27380 -<P>When the mailbox is 
27381 -<A HREF="manual-6.html#sort">sorted</A> by <EM>threads</EM>, there are
27382 -a few additional functions available in the <EM>index</EM> and <EM>pager</EM> modes.</P>
27383 -<P>
27384 -<BLOCKQUOTE><CODE>
27385 -<PRE>
27386 -^D      delete-thread           delete all messages in the current thread
27387 -^U      undelete-thread         undelete all messages in the current thread
27388 -^N      next-thread             jump to the start of the next thread
27389 -^P      previous-thread         jump to the start of the previous thread
27390 -^R      read-thread             mark the current thread as read
27391 -ESC d   delete-subthread        delete all messages in the current subthread
27392 -ESC u   undelete-subthread      undelete all messages in the current subthread
27393 -ESC n   next-subthread          jump to the start of the next subthread
27394 -ESC p   previous-subthread      jump to the start of the previous subthread
27395 -ESC r   read-subthread          mark the current subthread as read
27396 -ESC t   tag-thread              toggle the tag on the current thread
27397 -ESC v   collapse-thread         toggle collapse for the current thread
27398 -ESC V   collapse-all            toggle collapse for all threads
27399 -P       parent-message          jump to parent message in thread
27400 -</PRE>
27401 -</CODE></BLOCKQUOTE>
27402 -</P>
27403 -<P><B>Note:</B> Collapsing a thread displays only the first message
27404 -in the thread and hides the others. This is useful when threads
27405 -contain so many messages that you can only see a handful of threads on
27406 -the screen. See %M in 
27407 -<A HREF="manual-6.html#index_format">$index_format</A>.
27408 -For example, you could use "%?M?(#%03M)&amp;(%4l)?" in 
27409 -<A HREF="manual-6.html#index_format">$index_format</A> to optionally
27410 -display the number of hidden messages if the thread is collapsed.</P>
27411 -<P>See also: 
27412 -<A HREF="manual-6.html#strict_threads">$strict_threads</A>.</P>
27413 -
27414 -<H3>Miscellaneous Functions</H3>
27415 -
27416 -<P><B>create-alias</B>
27417 -<A NAME="create-alias"></A>  (default: a)<BR></P>
27418 -<P>Creates a new alias based upon the current message (or prompts for a
27419 -new one).  Once editing is complete, an 
27420 -<A HREF="manual-3.html#alias">alias</A>
27421 -command is added to the file specified by the 
27422 -<A HREF="manual-6.html#alias_file">$alias_file</A> variable for future use. <B>Note:</B>
27423 -Specifying an 
27424 -<A HREF="manual-6.html#alias_file">$alias_file</A>
27425 -does not add the aliases specified there-in, you must also 
27426 -<A HREF="manual-3.html#source">source</A> the file.</P>
27427 -
27428 -<P><B>check-traditional-pgp</B>
27429 -<A NAME="check-traditional-pgp"></A>  (default: ESC P)<BR></P>
27430 -<P>This function will search the current message for content signed or
27431 -encrypted with PGP the "traditional" way, that is, without proper
27432 -MIME tagging.  Technically, this function will temporarily change
27433 -the MIME content types of the body parts containing PGP data; this
27434 -is similar to the 
27435 -<A HREF="#edit-type">edit-type</A> function's
27436 -effect.</P>
27437 -
27438 -
27439 -<P><B>display-toggle-weed</B>
27440 -<A NAME="display-toggle-weed"></A>  (default: h)<BR></P>
27441 -<P>Toggles the weeding of message header fields specified by 
27442 -<A HREF="manual-3.html#ignore">ignore</A> commands.</P>
27443 -
27444 -<P><B>edit</B>
27445 -<A NAME="edit"></A>  (default: e)<BR></P>
27446 -<P>This command (available in the ``index'' and ``pager'') allows you to
27447 -edit the raw current message as it's present in the mail folder.
27448 -After you have finished editing, the changed message will be
27449 -appended to the current folder, and the original message will be
27450 -marked for deletion.</P>
27451 -
27452 -<P><B>edit-type</B>
27453 -<A NAME="edit-type"></A> <BR>
27454 -(default: ^E on the attachment menu, and in the pager and index menus; ^T on the
27455 -compose menu)</P>
27456 -<P>This command is used to temporarily edit an attachment's content
27457 -type to fix, for instance, bogus character set parameters.  When
27458 -invoked from the index or from the pager, you'll have the
27459 -opportunity to edit the top-level attachment's content type.  On the
27460 -<A HREF="manual-5.html#attach_menu">attachment menu</A>, you can change any
27461 -attachment's content type. These changes are not persistent, and get
27462 -lost upon changing folders.</P>
27463 -<P>Note that this command is also available on the 
27464 -<A HREF="manual-5.html#compose_menu">compose menu</A>.  There, it's used to
27465 -fine-tune the properties of attachments you are going to send.</P>
27466 -
27467 -<P><B>enter-command</B>
27468 -<A NAME="enter-command"></A>  (default: ``:'')<BR></P>
27469 -<P>This command is used to execute any command you would normally put in a
27470 -configuration file.  A common use is to check the settings of variables, or
27471 -in conjunction with 
27472 -<A HREF="manual-3.html#macro">macros</A> to change settings on the
27473 -fly.</P>
27474 -
27475 -<P><B>extract-keys</B>
27476 -<A NAME="extract-keys"></A>  (default: ^K)<BR></P>
27477 -<P>This command extracts PGP public keys from the current or tagged
27478 -message(s) and adds them to your PGP public key ring.</P>
27479 -
27480 -<P><B>forget-passphrase</B>
27481 -<A NAME="forget-passphrase"></A>  (default:
27482 -^F)<BR> </P>
27483 -<P>This command wipes the PGP passphrase from memory. It is useful, if
27484 -you misspelled the passphrase.</P>
27485 -
27486 -<P><B>list-reply</B>
27487 -<A NAME="list-reply"></A>  (default: L)<BR></P>
27488 -<P>Reply to the current or tagged message(s) by extracting any addresses which
27489 -match the addresses given by the 
27490 -<A HREF="manual-3.html#lists">lists or subscribe</A>
27491 -commands, but also honor any <CODE>Mail-Followup-To</CODE> header(s) if the
27492 -<A HREF="manual-6.html#honor_followup_to">$honor_followup_to</A>
27493 -configuration variable is set.  Using this when replying to messages posted
27494 -to mailing lists helps avoid duplicate copies being sent to the author of
27495 -the message you are replying to.</P>
27496 -<P><B>pipe-message</B>
27497 -<A NAME="pipe-message"></A>  (default: |)<BR></P>
27498 -<P>Asks for an external Unix command and pipes the current or
27499 -tagged message(s) to it.  The variables 
27500 -<A HREF="manual-6.html#pipe_decode">$pipe_decode</A>, 
27501 -<A HREF="manual-6.html#pipe_split">$pipe_split</A>, 
27502 -<A HREF="manual-6.html#pipe_sep">$pipe_sep</A> and 
27503 -<A HREF="manual-6.html#wait_key">$wait_key</A> control the exact behaviour of this
27504 -function.</P>
27505 -<P><B>resend-message</B>
27506 -<A NAME="resend-message"></A>  (default: ESC e)<BR></P>
27507 -<P>With resend-message, mutt takes the current message as a template for a
27508 -new message.  This function is best described as "recall from arbitrary
27509 -folders".  It can conveniently be used to forward MIME messages while
27510 -preserving the original mail structure. Note that the amount of headers
27511 -included here depends on the value of the 
27512 -<A HREF="manual-6.html#weed">$weed</A>
27513 -variable.</P>
27514 -<P>This function is also available from the attachment menu. You can use this
27515 -to easily resend a message which was included with a bounce message
27516 -as a message/rfc822 body part.</P>
27517 -<P><B>shell-escape</B>
27518 -<A NAME="shell-escape"></A>  (default: !)<BR></P>
27519 -<P>Asks for an external Unix command and executes it.  The 
27520 -<A HREF="manual-6.html#wait_key">$wait_key</A> can be used to control
27521 -whether Mutt will wait for a key to be pressed when the command returns
27522 -(presumably to let the user read the output of the command), based on
27523 -the return status of the named command.</P>
27524 -<P><B>toggle-quoted</B>
27525 -<A NAME="toggle-quoted"></A>  (default: T)<BR></P>
27526 -<P>The <EM>pager</EM> uses the 
27527 -<A HREF="manual-6.html#quote_regexp">$quote_regexp</A> variable to detect quoted text when
27528 -displaying the body of the message.  This function toggles the display
27529 -of the quoted material in the message.  It is particularly useful when
27530 -are interested in just the response and there is a large amount of
27531 -quoted text in the way.</P>
27532 -<P><B>skip-quoted</B>
27533 -<A NAME="skip-quoted"></A>  (default: S)<BR></P>
27534 -<P>This function will go to the next line of non-quoted text which come
27535 -after a line of quoted text in the internal pager.</P>
27536 -
27537 -<H2><A NAME="ss2.4">2.4</A> <A HREF="manual.html#toc2.4">Sending Mail</A>
27538 -</H2>
27539 -
27540 -
27541 -<P>The following bindings are available in the <EM>index</EM> for sending
27542 -messages.</P>
27543 -<P>
27544 -<BLOCKQUOTE><CODE>
27545 -<PRE>
27546 -m       compose         compose a new message
27547 -r       reply           reply to sender
27548 -g       group-reply     reply to all recipients
27549 -L       list-reply      reply to mailing list address
27550 -f       forward         forward message
27551 -b       bounce          bounce (remail) message
27552 -ESC k   mail-key        mail a PGP public key to someone
27553 -</PRE>
27554 -</CODE></BLOCKQUOTE>
27555 -</P>
27556 -<P>Bouncing a message sends the message as is to the recipient you
27557 -specify.  Forwarding a message allows you to add comments or
27558 -modify the message you are forwarding.  These items are discussed
27559 -in greater detail in the next chapter 
27560 -<A HREF="#forwarding_mail">``Forwarding and Bouncing Mail''</A>.</P>
27561 -<P>Mutt will then enter the <EM>compose</EM> menu and prompt you for the
27562 -recipients to place on the ``To:'' header field.  Next, it will ask
27563 -you for the ``Subject:'' field for the message, providing a default if
27564 -you are replying to or forwarding a message.  See also 
27565 -<A HREF="manual-6.html#askcc">$askcc</A>, 
27566 -<A HREF="manual-6.html#askbcc">$askbcc</A>, 
27567 -<A HREF="manual-6.html#autoedit">$autoedit</A>, and 
27568 -<A HREF="manual-6.html#fast_reply">$fast_reply</A> for changing how Mutt asks these
27569 -questions.</P>
27570 -<P>Mutt will then automatically start your 
27571 -<A HREF="manual-6.html#editor">$editor</A> on the message body.  If the 
27572 -<A HREF="manual-6.html#edit_headers">$edit_headers</A> variable is set, the headers will be at
27573 -the top of the message in your editor.  Any messages you are replying
27574 -to will be added in sort order to the message, with appropriate 
27575 -<A HREF="manual-6.html#attribution">$attribution</A>, 
27576 -<A HREF="manual-6.html#indent_string">$indent_string</A> and 
27577 -<A HREF="manual-6.html#post_indent_string">$post_indent_string</A>.  When forwarding a
27578 -message, if the 
27579 -<A HREF="manual-6.html#mime_forward">$mime_forward</A>
27580 -variable is unset, a copy of the forwarded message will be included.  If
27581 -you have specified a 
27582 -<A HREF="manual-6.html#signature">$signature</A>, it
27583 -will be appended to the message.</P>
27584 -<P>Once you have finished editing the body of your mail message, you are
27585 -returned to the <EM>compose</EM> menu.  The following options are available:</P>
27586 -<P>
27587 -<BLOCKQUOTE><CODE>
27588 -<PRE>
27589 -a       attach-file             attach a file
27590 -A       attach-message          attach message(s) to the message
27591 -ESC k   attach-key              attach a PGP public key
27592 -d       edit-description        edit description on attachment
27593 -D       detach-file             detach a file
27594 -t       edit-to                 edit the To field
27595 -ESC f   edit-from               edit the From field
27596 -r       edit-reply-to           edit the Reply-To field
27597 -c       edit-cc                 edit the Cc field
27598 -b       edit-bcc                edit the Bcc field
27599 -y       send-message            send the message
27600 -s       edit-subject            edit the Subject
27601 -f       edit-fcc                specify an ``Fcc'' mailbox
27602 -p       pgp-menu                select PGP options (``i'' version only)
27603 -P       postpone-message        postpone this message until later
27604 -q       quit                    quit (abort) sending the message
27605 -w       write-fcc               write the message to a folder
27606 -i       ispell                  check spelling (if available on your system)
27607 -^F      forget-passphrase       whipe PGP passphrase from memory
27608 -</PRE>
27609 -</CODE></BLOCKQUOTE>
27610 -</P>
27611 -<P><B>Note:</B> The attach-message function will prompt you for a folder to
27612 -attach messages from. You can now tag messages in that folder and they
27613 -will be attached to the message you are sending. Note that certain
27614 -operations like composing a new mail, replying, forwarding, etc. are
27615 -not permitted when you are in that folder. The %r in 
27616 -<A HREF="manual-6.html#status_format">$status_format</A> will change to
27617 -a 'A' to indicate that you are in attach-message mode.</P>
27618 -
27619 -<H3>Editing the message header</H3>
27620 -
27621 -<P>When editing the header of your outgoing message, there are a couple of
27622 -special features available.</P>
27623 -<P>If you specify<BR>
27624 -<CODE>Fcc:</CODE> <EM>filename</EM><BR>
27625 -Mutt will pick up <EM>filename</EM>
27626 -just as if you had used the <EM>edit-fcc</EM> function in the <EM>compose</EM> menu.</P>
27627 -<P>You can also attach files to your message by specifying<BR>
27628 -<CODE>Attach:</CODE> <EM>filename</EM>  [ <EM>description</EM> ]<BR>
27629 -where <EM>filename</EM> is the file to attach and <EM>description</EM> is an
27630 -optional string to use as the description of the attached file.</P>
27631 -<P>When replying to messages, if you remove the <EM>In-Reply-To:</EM> field from
27632 -the header field, Mutt will not generate a <EM>References:</EM> field, which
27633 -allows you to create a new message thread.</P>
27634 -<P>Also see 
27635 -<A HREF="manual-6.html#edit_headers">edit_headers</A>.</P>
27636 -
27637 -<H3>Using Mutt with PGP</H3>
27638 -
27639 -<P>If you want to use PGP, you can specify </P>
27640 -<P><CODE>Pgp:</CODE> [ <CODE>E</CODE> | <CODE>S</CODE> | <CODE>S&lt;id</CODE>&gt; ] <BR></P>
27641 -<P>``E'' encrypts, ``S'' signs and
27642 -``S&lt;id&gt;'' signs with the given key, setting 
27643 -<A HREF="manual-6.html#pgp_sign_as">$pgp_sign_as</A> permanently.</P>
27644 -<P>If you have told mutt to PGP encrypt a message, it will guide you
27645 -through a key selection process when you try to send the message.
27646 -Mutt will not ask you any questions about keys which have a
27647 -certified user ID matching one of the message recipients' mail
27648 -addresses.  However, there may be situations in which there are
27649 -several keys, weakly certified user ID fields, or where no matching
27650 -keys can be found.</P>
27651 -<P>In these cases, you are dropped into a menu with a list of keys from
27652 -which you can select one.  When you quit this menu, or mutt can't
27653 -find any matching keys, you are prompted for a user ID.  You can, as
27654 -usually, abort this prompt using <CODE>^G</CODE>.  When you do so, mutt will
27655 -return to the compose screen.</P>
27656 -<P>Once you have successfully finished the key selection, the message
27657 -will be encrypted using the selected public keys, and sent out.</P>
27658 -<P>Most fields of the entries in the key selection menu (see also 
27659 -<A HREF="manual-6.html#pgp_entry_format">$pgp_entry_format</A>) 
27660 -have obvious meanings.  But some explanations on the capabilities, flags, 
27661 -and validity fields are in order.</P>
27662 -<P>The flags sequence (%f) will expand to one of the following flags:
27663 -<BLOCKQUOTE><CODE>
27664 -<PRE>
27665 -R            The key has been revoked and can't be used.
27666 -X            The key is expired and can't be used.
27667 -d            You have marked the key as disabled.
27668 -c            There are unknown critical self-signature 
27669 -             packets.
27670 -</PRE>
27671 -</CODE></BLOCKQUOTE>
27672 -</P>
27673 -<P>The capabilities field (%c) expands to a two-character sequence
27674 -representing a key's capabilities.  The first character gives
27675 -the key's encryption capabilities: A minus sign (<B>-</B>) means 
27676 -that the key cannot be used for encryption.  A dot (<B>.</B>) means that
27677 -it's marked as a signature key in one of the user IDs, but may 
27678 -also be used for encryption.  The letter <B>e</B> indicates that 
27679 -this key can be used for encryption.</P>
27680 -<P>The second character indicates the key's signing capabilities.  Once 
27681 -again, a ``<B>-</B>'' implies ``not for signing'', ``<B>.</B>'' implies
27682 -that the key is marked as an encryption key in one of the user-ids, and
27683 -``<B>s</B>'' denotes a key which can be used for signing.</P>
27684 -<P>Finally, the validity field (%t) indicates how well-certified a user-id
27685 -is.  A question mark (<B>?</B>) indicates undefined validity, a minus 
27686 -character (<B>-</B>) marks an untrusted association, a space character 
27687 -means a partially trusted association, and a plus character (<B>+</B>) 
27688 -indicates complete validity.</P>
27689 -
27690 -<H3>Sending anonymous messages via mixmaster.</H3>
27691 -
27692 -<P>You may also have configured mutt to co-operate with Mixmaster, an
27693 -anonymous remailer.  Mixmaster permits you to send your messages
27694 -anonymously using a chain of remailers. Mixmaster support in mutt is for 
27695 -mixmaster version 2.04 (beta 45 appears to be the latest) and 2.03. 
27696 -It does not support earlier versions or the later so-called version 3 betas, 
27697 -of which the latest appears to be called 2.9b23.</P>
27698 -<P>To use it, you'll have to obey certain restrictions.  Most
27699 -important, you cannot use the <CODE>Cc</CODE> and <CODE>Bcc</CODE> headers.  To tell
27700 -Mutt to use mixmaster, you have to select a remailer chain, using
27701 -the mix function on the compose menu.  </P>
27702 -<P>The chain selection screen is divided into two parts.  In the
27703 -(larger) upper part, you get a list of remailers you may use.  In
27704 -the lower part, you see the currently selected chain of remailers.</P>
27705 -<P>You can navigate in the chain using the <CODE>chain-prev</CODE> and
27706 -<CODE>chain-next</CODE> functions, which are by default bound to the left
27707 -and right arrows and to the <CODE>h</CODE> and <CODE>l</CODE> keys (think vi
27708 -keyboard bindings).  To insert a remailer at the current chain
27709 -position, use the <CODE>insert</CODE> function.  To append a remailer behind
27710 -the current chain position, use <CODE>select-entry</CODE> or <CODE>append</CODE>.
27711 -You can also delete entries from the chain, using the corresponding
27712 -function.  Finally, to abandon your changes, leave the menu, or
27713 -<CODE>accept</CODE> them pressing (by default) the <CODE>Return</CODE> key.</P>
27714 -<P>Note that different remailers do have different capabilities,
27715 -indicated in the %c entry of the remailer menu lines (see
27716 -<A HREF="manual-6.html#mix_entry_format">$mix_entry_format</A>).  Most important is
27717 -the ``middleman'' capability, indicated by a capital ``M'': This
27718 -means that the remailer in question cannot be used as the final
27719 -element of a chain, but will only forward messages to other
27720 -mixmaster remailers.  For details on the other capabilities, please
27721 -have a look at the mixmaster documentation.</P>
27722 -
27723 -<H2><A NAME="forwarding_mail"></A> <A NAME="ss2.5">2.5</A> <A HREF="manual.html#toc2.5">Forwarding and Bouncing Mail</A>
27724 -</H2>
27725 -
27726 -
27727 -<P>Bouncing and forwarding let you send an existing message to recipients
27728 -that you specify.  Bouncing a message uses the 
27729 -<A HREF="manual-6.html#sendmail">sendmail</A> command to send a copy to alternative addresses as if
27730 -they were the message's original recipients.  Forwarding a message, on
27731 -the other hand, allows you to modify the message before it is resent
27732 -(for example, by adding your own comments).</P>
27733 -<P>The following keys are bound by default:</P>
27734 -<P>
27735 -<BLOCKQUOTE><CODE>
27736 -<PRE>
27737 -f       forward         forward message
27738 -b       bounce          bounce (remail) message
27739 -</PRE>
27740 -</CODE></BLOCKQUOTE>
27741 -</P>
27742 -<P>Forwarding can be done by including the original message in the new
27743 -message's body (surrounded by indicating lines) or including it as a MIME
27744 -attachment, depending on the value of the 
27745 -<A HREF="manual-6.html#mime_forward">$mime_forward</A> variable.  Decoding of attachments,
27746 -like in the pager, can be controlled by the 
27747 -<A HREF="manual-6.html#forward_decode">$forward_decode</A> and 
27748 -<A HREF="manual-6.html#mime_forward_decode">$mime_forward_decode</A> variables,
27749 -respectively.  The desired forwarding format may depend on the content,
27750 -therefore <EM>$mime_forward</EM> is a quadoption which, for
27751 -example, can be set to ``ask-no''.</P>
27752 -<P>The inclusion of headers is controlled by the current setting of the
27753 -<A HREF="manual-6.html#weed">$weed</A> variable, unless 
27754 -<A HREF="manual-6.html#mime_forward">mime_forward</A> is set.</P>
27755 -<P>Editing the message to forward follows the same procedure as sending or
27756 -replying to a message does.</P>
27757 -
27758 -<H2><A NAME="postponing_mail"></A> <A NAME="ss2.6">2.6</A> <A HREF="manual.html#toc2.6">Postponing Mail</A>
27759 -</H2>
27760 -
27761 -
27762 -<P>At times it is desirable to delay sending a message that you have
27763 -already begun to compose.  When the <EM>postpone-message</EM> function is
27764 -used in the <EM>compose</EM> menu, the body of your message and attachments
27765 -are stored in the mailbox specified by the 
27766 -<A HREF="manual-6.html#postponed">$postponed</A> variable.  This means that you can recall the
27767 -message even if you exit Mutt and then restart it at a later time.</P>
27768 -<P>Once a message is postponed, there are several ways to resume it.  From the
27769 -command line you can use the ``-p'' option, or if you <EM>compose</EM> a new
27770 -message from the <EM>index</EM> or <EM>pager</EM> you will be prompted if postponed
27771 -messages exist.  If multiple messages are currently postponed, the
27772 -<EM>postponed</EM> menu will pop up and you can select which message you would
27773 -like to resume.</P>
27774 -<P><B>Note:</B> If you postpone a reply to a message, the reply setting of
27775 -the message is only updated when you actually finish the message and
27776 -send it.  Also, you must be in the same folder with the message you
27777 -replied to for the status of the message to be updated.</P>
27778 -<P>See also the 
27779 -<A HREF="manual-6.html#postpone">$postpone</A> quad-option.</P>
27780 -
27781 -<HR>
27782 -<A HREF="manual-3.html">Next</A>
27783 -<A HREF="manual-1.html">Previous</A>
27784 -<A HREF="manual.html#toc2">Contents</A>
27785 -</BODY>
27786 -</HTML>
27787 diff -uNr mutt-1.4.orig/doc/manual-3.html mutt-1.4/doc/manual-3.html
27788 --- mutt-1.4.orig/doc/manual-3.html     Wed May 29 11:29:55 2002
27789 +++ mutt-1.4/doc/manual-3.html  Thu Jan  1 01:00:00 1970
27790 @@ -1,793 +0,0 @@
27791 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
27792 -<HTML>
27793 -<HEAD>
27794 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
27795 - <TITLE>The Mutt E-Mail Client: Configuration</TITLE>
27796 - <LINK HREF="manual-4.html" REL=next>
27797 - <LINK HREF="manual-2.html" REL=previous>
27798 - <LINK HREF="manual.html#toc3" REL=contents>
27799 -</HEAD>
27800 -<BODY>
27801 -<A HREF="manual-4.html">Next</A>
27802 -<A HREF="manual-2.html">Previous</A>
27803 -<A HREF="manual.html#toc3">Contents</A>
27804 -<HR>
27805 -<H2><A NAME="s3">3.</A> <A HREF="manual.html#toc3">Configuration</A></H2>
27806 -
27807 -
27808 -<P>While the default configuration (or ``preferences'') make Mutt
27809 -usable right out of the box, it is often desirable to tailor Mutt to
27810 -suit your own tastes. When Mutt is first invoked, it will attempt to
27811 -read the ``system'' configuration file (defaults set by your local
27812 -system administrator), unless the ``-n'' 
27813 -<A HREF="manual-6.html#commandline">command line</A> option is specified.  This file is typically
27814 -<CODE>/usr/local/share/mutt/Muttrc</CODE> or <CODE>/etc/Muttrc</CODE>. Mutt
27815 -will next look for a file named <CODE>.muttrc</CODE> in your home
27816 -directory.  If this file does not exist and your home directory has
27817 -a subdirectory named <CODE>.mutt</CODE>, mutt try to load a file named
27818 -<CODE>.mutt/muttrc</CODE>. </P>
27819 -<P><CODE>.muttrc</CODE> is the file where you will usually place your 
27820 -<A HREF="manual-6.html#commands">commands</A> to configure Mutt.</P>
27821 -<P>In addition, mutt supports version specific configuration files that are
27822 -parsed instead of the default files as explained above.  For instance, if
27823 -your system has a <CODE>Muttrc-0.88</CODE> file in the system configuration
27824 -directory, and you are running version 0.88 of mutt, this file will be
27825 -sourced instead of the <CODE>Muttrc</CODE> file.  The same is true of the user
27826 -configuration file, if you have a file <CODE>.muttrc-0.88.6</CODE> in your home
27827 -directory, when you run mutt version 0.88.6, it will source this file
27828 -instead of the default <CODE>.muttrc</CODE> file.  The version number is the
27829 -same which is visible using the ``-v'' 
27830 -<A HREF="manual-6.html#commandline">command line</A> switch or using the <CODE>show-version</CODE> key (default:
27831 -V) from the index menu.</P>
27832 -
27833 -<H2><A NAME="muttrc-syntax"></A> <A NAME="ss3.1">3.1</A> <A HREF="manual.html#toc3.1">Syntax of Initialization Files</A>
27834 -</H2>
27835 -
27836 -
27837 -<P>An initialization file consists of a series of 
27838 -<A HREF="manual-6.html#commands">commands</A>.  Each line of the file may contain one or more commands.
27839 -When multiple commands are used, they must be separated by a semicolon (;).
27840 -<BLOCKQUOTE><CODE>
27841 -<PRE>
27842 -set realname='Mutt user' ; ignore x-
27843 -</PRE>
27844 -</CODE></BLOCKQUOTE>
27845 -
27846 -The hash mark, or pound sign
27847 -(``#''), is used as a ``comment'' character. You can use it to
27848 -annotate your initialization file. All text after the comment character
27849 -to the end of the line is ignored. For example,</P>
27850 -<P>
27851 -<BLOCKQUOTE><CODE>
27852 -<PRE>
27853 -my_hdr X-Disclaimer: Why are you listening to me? # This is a comment
27854 -</PRE>
27855 -</CODE></BLOCKQUOTE>
27856 -</P>
27857 -<P>Single quotes (') and double quotes (&quot;) can be used to quote strings
27858 -which contain spaces or other special characters.  The difference between
27859 -the two types of quotes is similar to that of many popular shell programs,
27860 -namely that a single quote is used to specify a literal string (one that is
27861 -not interpreted for shell variables or quoting with a backslash [see
27862 -next paragraph]), while double quotes indicate a string for which
27863 -should be evaluated.  For example, backtics are evaluated inside of double
27864 -quotes, but <B>not</B> for single quotes.</P>
27865 -<P>\ quotes the next character, just as in shells such as bash and zsh.
27866 -For example, if want to put quotes ``&quot;'' inside of a string, you can use
27867 -``\'' to force the next character to be a literal instead of interpreted
27868 -character.
27869 -<BLOCKQUOTE><CODE>
27870 -<PRE>
27871 -set realname="Michael \"MuttDude\" Elkins"
27872 -</PRE>
27873 -</CODE></BLOCKQUOTE>
27874 -</P>
27875 -<P>``\\'' means to insert a literal ``\'' into the line.
27876 -``\n'' and ``\r'' have their usual C meanings of linefeed and
27877 -carriage-return, respectively.</P>
27878 -<P>A \ at the end of a line can be used to split commands over
27879 -multiple lines, provided that the split points don't appear in the
27880 -middle of command names.</P>
27881 -<P>It is also possible to substitute the output of a Unix command in an
27882 -initialization file.  This is accomplished by enclosing the command in
27883 -backquotes (``).  For example,
27884 -<BLOCKQUOTE><CODE>
27885 -<PRE>
27886 -my_hdr X-Operating-System: `uname -a`
27887 -</PRE>
27888 -</CODE></BLOCKQUOTE>
27889 -
27890 -The output of the Unix command ``uname -a'' will be substituted before the
27891 -line is parsed.  Note that since initialization files are line oriented, only
27892 -the first line of output from the Unix command will be substituted.</P>
27893 -<P>UNIX environments can be accessed like the way it is done in shells like
27894 -sh and bash: Prepend the name of the environment by a ``$''.  For
27895 -example,
27896 -<BLOCKQUOTE><CODE>
27897 -<PRE>
27898 -set record=+sent_on_$HOSTNAME
27899 -</PRE>
27900 -</CODE></BLOCKQUOTE>
27901 -</P>
27902 -<P>The commands understood by mutt are explained in the next paragraphs.
27903 -For a complete list, see the 
27904 -<A HREF="manual-6.html#commands">command reference</A>.</P>
27905 -
27906 -<H2><A NAME="alias"></A> <A NAME="ss3.2">3.2</A> <A HREF="manual.html#toc3.2">Defining/Using aliases</A>
27907 -</H2>
27908 -
27909 -
27910 -<P>Usage: <CODE>alias</CODE> <EM>key</EM> <EM>address</EM> [ , <EM>address</EM>, ... ]</P>
27911 -<P>It's usually very cumbersome to remember or type out the address of someone
27912 -you are communicating with.  Mutt allows you to create ``aliases'' which map
27913 -a short string to a full address.</P>
27914 -<P><B>Note:</B> if you want to create an alias for a group (by specifying more than
27915 -one address), you <B>must</B> separate the addresses with a comma (``,'').</P>
27916 -<P>To remove an alias or aliases (``*'' means all aliases):</P>
27917 -<P><CODE>unalias</CODE> [ * | <EM>key</EM> <EM>...</EM> ]</P>
27918 -<P>
27919 -<BLOCKQUOTE><CODE>
27920 -<PRE>
27921 -alias muttdude me@cs.hmc.edu (Michael Elkins)
27922 -alias theguys manny, moe, jack
27923 -</PRE>
27924 -</CODE></BLOCKQUOTE>
27925 -</P>
27926 -<P>Unlike other mailers, Mutt doesn't require aliases to be defined
27927 -in a special file.  The <CODE>alias</CODE> command can appear anywhere in
27928 -a configuration file, as long as this file is 
27929 -<A HREF="#source">sourced</A>.  Consequently, you can have multiple alias files, or
27930 -you can have all aliases defined in your muttrc.</P>
27931 -<P>On the other hand, the 
27932 -<A HREF="manual-2.html#create-alias">create-alias</A>
27933 -function can use only one file, the one pointed to by the 
27934 -<A HREF="manual-6.html#alias_file">$alias_file</A> variable (which is
27935 -<CODE>~/.muttrc</CODE> by default). This file is not special either,
27936 -in the sense that Mutt will happily append aliases to any file, but in
27937 -order for the new aliases to take effect you need to explicitly 
27938 -<A HREF="#source">source</A> this file too.</P>
27939 -<P>For example:</P>
27940 -<P>
27941 -<BLOCKQUOTE><CODE>
27942 -<PRE>
27943 -source /usr/local/share/Mutt.aliases
27944 -source ~/.mail_aliases
27945 -set alias_file=~/.mail_aliases
27946 -</PRE>
27947 -</CODE></BLOCKQUOTE>
27948 -</P>
27949 -<P>To use aliases, you merely use the alias at any place in mutt where mutt
27950 -prompts for addresses, such as the <EM>To:</EM> or <EM>Cc:</EM> prompt.  You can
27951 -also enter aliases in your editor at the appropriate headers if you have the
27952 -<A HREF="manual-6.html#edit_headers">$edit_headers</A> variable set.</P>
27953 -<P>In addition, at the various address prompts, you can use the tab character
27954 -to expand a partial alias to the full alias.  If there are multiple matches,
27955 -mutt will bring up a menu with the matching aliases.  In order to be
27956 -presented with the full list of aliases, you must hit tab with out a partial
27957 -alias, such as at the beginning of the prompt or after a comma denoting
27958 -multiple addresses.</P>
27959 -<P>In the alias menu, you can select as many aliases as you want with the
27960 -<EM>select-entry</EM> key (default: RET), and use the <EM>exit</EM> key
27961 -(default: q) to return to the address prompt.</P>
27962 -
27963 -<H2><A NAME="bind"></A> <A NAME="ss3.3">3.3</A> <A HREF="manual.html#toc3.3">Changing the default key bindings</A>
27964 -</H2>
27965 -
27966 -<P>Usage: <CODE>bind</CODE> <EM>map</EM> <EM>key</EM> <EM>function</EM></P>
27967 -<P>This command allows you to change the default key bindings (operation
27968 -invoked when pressing a key).</P>
27969 -<P><EM>map</EM> specifies in which menu the binding belongs.  The currently
27970 -defined maps are:</P>
27971 -<P>
27972 -<UL>
27973 -<LI>generic</LI>
27974 -<LI>alias</LI>
27975 -<LI>attach</LI>
27976 -<LI>browser</LI>
27977 -<LI>editor</LI>
27978 -<LI>index</LI>
27979 -<LI>compose</LI>
27980 -<LI>pager</LI>
27981 -<LI>pgp</LI>
27982 -<LI>postpone</LI>
27983 -</UL>
27984 -</P>
27985 -<P><EM>key</EM> is the key (or key sequence) you wish to bind.  To specify a
27986 -control character, use the sequence <EM>\Cx</EM>, where <EM>x</EM> is the
27987 -letter of the control character (for example, to specify control-A use
27988 -``\Ca'').  Note that the case of <EM>x</EM> as well as <EM>\C</EM> is
27989 -ignored, so that <EM>\CA, \Ca, \cA</EM> and <EM>\ca</EM> are all
27990 -equivalent.  An alternative form is to specify the key as a three digit
27991 -octal number prefixed with a ``\'' (for example <EM>\177</EM> is
27992 -equivalent to <EM>\c?</EM>).</P>
27993 -<P>In addition, <EM>key</EM> may consist of:</P>
27994 -<P>
27995 -<BLOCKQUOTE><CODE>
27996 -<PRE>
27997 -\t              tab
27998 -&lt;tab>           tab
27999 -\r              carriage return
28000 -\n              newline
28001 -\e              escape
28002 -&lt;esc>           escape
28003 -&lt;up>            up arrow
28004 -&lt;down>          down arrow
28005 -&lt;left>          left arrow
28006 -&lt;right>         right arrow
28007 -&lt;pageup>        Page Up
28008 -&lt;pagedown>      Page Down
28009 -&lt;backspace>     Backspace
28010 -&lt;delete>        Delete
28011 -&lt;insert>        Insert
28012 -&lt;enter>         Enter
28013 -&lt;return>        Return
28014 -&lt;home>          Home
28015 -&lt;end>           End
28016 -&lt;space>         Space bar
28017 -&lt;f1>            function key 1
28018 -&lt;f10>           function key 10
28019 -</PRE>
28020 -</CODE></BLOCKQUOTE>
28021 -</P>
28022 -<P><EM>key</EM> does not need to be enclosed in quotes unless it contains a
28023 -space (`` '').</P>
28024 -<P><EM>function</EM> specifies which action to take when <EM>key</EM> is pressed.
28025 -For a complete list of functions, see the 
28026 -<A HREF="manual-6.html#functions">reference</A>.  The special function <CODE>noop</CODE> unbinds the specify key
28027 -sequence.</P>
28028 -
28029 -<H2><A NAME="charset-hook"></A> <A NAME="ss3.4">3.4</A> <A HREF="manual.html#toc3.4">Defining aliases for character sets </A>
28030 -</H2>
28031 -
28032 -<P>Usage: <CODE>charset-hook</CODE> <EM>alias</EM> <EM>charset</EM><BR>
28033 -Usage: <CODE>iconv-hook</CODE> <EM>charset</EM> <EM>local-charset</EM></P>
28034 -<P>The <CODE>charset-hook</CODE> command defines an alias for a character set.
28035 -This is useful to properly display messages which are tagged with a
28036 -character set name not known to mutt.</P>
28037 -<P>The <CODE>iconv-hook</CODE> command defines a system-specific name for a
28038 -character set.  This is helpful when your systems character
28039 -conversion library insists on using strange, system-specific names
28040 -for character sets.</P>
28041 -
28042 -
28043 -<H2><A NAME="folder-hook"></A> <A NAME="ss3.5">3.5</A> <A HREF="manual.html#toc3.5">Setting variables based upon mailbox</A>
28044 -</H2>
28045 -
28046 -<P>Usage: <CODE>folder-hook</CODE> [!]<EM>regexp</EM> <EM>command</EM></P>
28047 -<P>It is often desirable to change settings based on which mailbox you are
28048 -reading.  The folder-hook command provides a method by which you can execute
28049 -any configuration command.  <EM>pattern</EM> is a regular expression specifying
28050 -in which mailboxes to execute <EM>command</EM> before loading.  If a mailbox
28051 -matches multiple folder-hook's, they are executed in the order given in the
28052 -muttrc.</P>
28053 -<P><B>Note:</B> if you use the ``!'' shortcut for 
28054 -<A HREF="manual-6.html#spoolfile">$spoolfile</A> at the beginning of the pattern, you must place it
28055 -inside of double or single quotes in order to distinguish it from the
28056 -logical <EM>not</EM> operator for the expression.</P>
28057 -<P>Note that the settings are <EM>not</EM> restored when you leave the mailbox.
28058 -For example, a command action to perform is to change the sorting method
28059 -based upon the mailbox being read:</P>
28060 -<P>
28061 -<BLOCKQUOTE><CODE>
28062 -<PRE>
28063 -folder-hook mutt set sort=threads
28064 -</PRE>
28065 -</CODE></BLOCKQUOTE>
28066 -</P>
28067 -<P>However, the sorting method is not restored to its previous value when
28068 -reading a different mailbox.  To specify a <EM>default</EM> command, use the
28069 -pattern ``.'':</P>
28070 -
28071 -<P>
28072 -<BLOCKQUOTE><CODE>
28073 -<PRE>
28074 -folder-hook . set sort=date-sent
28075 -</PRE>
28076 -</CODE></BLOCKQUOTE>
28077 -</P>
28078 -
28079 -<H2><A NAME="macro"></A> <A NAME="ss3.6">3.6</A> <A HREF="manual.html#toc3.6">Keyboard macros</A>
28080 -</H2>
28081 -
28082 -<P>Usage: <CODE>macro</CODE> <EM>menu</EM> <EM>key</EM> <EM>sequence</EM> [ <EM>description</EM> ]</P>
28083 -<P>Macros are useful when you would like a single key to perform a series of
28084 -actions.  When you press <EM>key</EM> in menu <EM>menu</EM>, Mutt will behave as if
28085 -you had typed <EM>sequence</EM>.  So if you have a common sequence of commands
28086 -you type, you can create a macro to execute those commands with a single
28087 -key.</P>
28088 -<P><EM>key</EM> and <EM>sequence</EM> are expanded by the same rules as the 
28089 -<A HREF="#bind">key bindings</A>.  There are some additions however.  The
28090 -first is that control characters in <EM>sequence</EM> can also be specified
28091 -as <EM>^x</EM>.  In order to get a caret (`^'') you need to use
28092 -<EM>^^</EM>.  Secondly, to specify a certain key such as <EM>up</EM>
28093 -or to invoke a function directly, you can use the format
28094 -<EM>&lt;key name&gt;</EM> and <EM>&lt;function name&gt;</EM>.  For a listing of key
28095 -names see the section on 
28096 -<A HREF="#bind">key bindings</A>.  Functions
28097 -are listed in the 
28098 -<A HREF="manual-6.html#functions">function reference</A>.</P>
28099 -<P>The advantage with using function names directly is that the macros will
28100 -work regardless of the current key bindings, so they are not dependent on
28101 -the user having particular key definitions.  This makes them more robust
28102 -and portable, and also facilitates defining of macros in files used by more
28103 -than one user (eg. the system Muttrc).</P>
28104 -<P>Optionally you can specify a descriptive text after <EM>sequence</EM>,
28105 -which is shown in the help screens.</P>
28106 -<P><B>Note:</B> Macro definitions (if any) listed in the help screen(s), are
28107 -silently truncated at the screen width, and are not wrapped.   </P>
28108 -
28109 -<H2><A NAME="color"></A> <A NAME="ss3.7">3.7</A> <A HREF="manual.html#toc3.7">Using color and mono video attributes</A>
28110 -</H2>
28111 -
28112 -<P>Usage: <CODE>color</CODE> <EM>object</EM> <EM>foreground</EM> <EM>background</EM> [ <EM>regexp</EM> ]<BR>
28113 -Usage: <CODE>color</CODE> index <EM>foreground</EM> <EM>background</EM> <EM>pattern</EM><BR>
28114 -Usage: <CODE>uncolor</CODE> index <EM>pattern</EM> [ <EM>pattern</EM> ...  ]<BR></P>
28115 -<P>If your terminal supports color, you can spice up Mutt by creating your own
28116 -color scheme.  To define the color of an object (type of information), you
28117 -must specify both a foreground color <B>and</B> a background color (it is not
28118 -possible to only specify one or the other).</P>
28119 -<P><EM>object</EM> can be one of:</P>
28120 -<P>
28121 -<UL>
28122 -<LI>attachment</LI>
28123 -<LI>body (match <EM>regexp</EM> in the body of messages)</LI>
28124 -<LI>bold (hiliting bold patterns in the body of messages)</LI>
28125 -<LI>error (error messages printed by Mutt)</LI>
28126 -<LI>header (match <EM>regexp</EM> in the message header)</LI>
28127 -<LI>hdrdefault (default color of the message header in the pager)</LI>
28128 -<LI>index (match <EM>pattern</EM> in the message index)</LI>
28129 -<LI>indicator (arrow or bar used to indicate the current item in a menu)</LI>
28130 -<LI>markers (the ``+'' markers at the beginning of wrapped lines in the pager)</LI>
28131 -<LI>message (informational messages)</LI>
28132 -<LI>normal</LI>
28133 -<LI>quoted (text matching 
28134 -<A HREF="manual-6.html#quote_regexp">$quote_regexp</A> in the body of a message)</LI>
28135 -<LI>quoted1, quoted2, ..., quoted<B>N</B> (higher levels of quoting)</LI>
28136 -<LI>search (hiliting of words in the pager)</LI>
28137 -<LI>signature</LI>
28138 -<LI>status (mode lines used to display info about the mailbox or message)</LI>
28139 -<LI>tilde (the ``~'' used to pad blank lines in the pager)</LI>
28140 -<LI>tree (thread tree drawn in the message index and attachment menu)</LI>
28141 -<LI>underline (hiliting underlined patterns in the body of messages)</LI>
28142 -</UL>
28143 -</P>
28144 -<P><EM>foreground</EM> and <EM>background</EM> can be one of the following:</P>
28145 -<P>
28146 -<UL>
28147 -<LI>white</LI>
28148 -<LI>black</LI>
28149 -<LI>green</LI>
28150 -<LI>magenta</LI>
28151 -<LI>blue</LI>
28152 -<LI>cyan</LI>
28153 -<LI>yellow</LI>
28154 -<LI>red</LI>
28155 -<LI>default</LI>
28156 -<LI>color<EM>x</EM></LI>
28157 -</UL>
28158 -</P>
28159 -<P><EM>foreground</EM> can optionally be prefixed with the keyword <CODE>bright</CODE> to make
28160 -the foreground color boldfaced (e.g., <CODE>brightred</CODE>).</P>
28161 -<P>If your terminal supports it, the special keyword <EM>default</EM> can be
28162 -used as a transparent color.  The value <EM>brightdefault</EM> is also valid.
28163 -If Mutt is linked against the <EM>S-Lang</EM> library, you also need to set
28164 -the <EM>COLORFGBG</EM> environment variable to the default colors of your
28165 -terminal for this to work; for example (for Bourne-like shells):</P>
28166 -<P>
28167 -<BLOCKQUOTE><CODE>
28168 -<PRE>
28169 -set COLORFGBG="green;black"
28170 -export COLORFGBG
28171 -</PRE>
28172 -</CODE></BLOCKQUOTE>
28173 -</P>
28174 -<P><B>Note:</B> The <EM>S-Lang</EM> library requires you to use the <EM>lightgray</EM>
28175 -and <EM>brown</EM> keywords instead of <EM>white</EM> and <EM>yellow</EM> when
28176 -setting this variable.</P>
28177 -<P><B>Note:</B> The uncolor command can be applied to the index object only.  It
28178 -removes entries from the list. You <B>must</B> specify the same pattern
28179 -specified in the color command for it to be removed.  The pattern ``*'' is
28180 -a special token which means to clear the color index list of all entries.</P>
28181 -<P>Mutt also recognizes the keywords <EM>color0</EM>, <EM>color1</EM>, ...,
28182 -<EM>color</EM><B>N-1</B> (<B>N</B> being the number of colors supported
28183 -by your terminal).  This is useful when you remap the colors for your
28184 -display (for example by changing the color associated with <EM>color2</EM>
28185 -for your xterm), since color names may then lose their normal meaning.</P>
28186 -<P>If your terminal does not support color, it is still possible change the video
28187 -attributes through the use of the ``mono'' command:</P>
28188 -<P>Usage: <CODE>mono</CODE> <EM>&lt;object&gt; &lt;attribute&gt;</EM> [ <EM>regexp</EM> ]<BR>
28189 -Usage: <CODE>mono</CODE> index <EM>attribute</EM> <EM>pattern</EM><BR>
28190 -Usage: <CODE>unmono</CODE> index <EM>pattern</EM> [ <EM>pattern</EM> ...  ]<BR></P>
28191 -<P>where <EM>attribute</EM> is one of the following:</P>
28192 -<P>
28193 -<UL>
28194 -<LI>none</LI>
28195 -<LI>bold</LI>
28196 -<LI>underline</LI>
28197 -<LI>reverse</LI>
28198 -<LI>standout</LI>
28199 -</UL>
28200 -</P>
28201 -
28202 -<H2><A NAME="ignore"></A> <A NAME="ss3.8">3.8</A> <A HREF="manual.html#toc3.8">Ignoring (weeding) unwanted message headers</A>
28203 -</H2>
28204 -
28205 -<P>Usage: <CODE>[un]ignore</CODE> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</P>
28206 -<P>Messages often have many header fields added by automatic processing systems,
28207 -or which may not seem useful to display on the screen.  This command allows
28208 -you to specify header fields which you don't normally want to see.</P>
28209 -<P>You do not need to specify the full header field name.  For example,
28210 -``ignore content-'' will ignore all header fields that begin with the pattern
28211 -``content-''.</P>
28212 -<P>To remove a previously added token from the list, use the ``unignore'' command.
28213 -Note that if you do ``ignore x-'' it is not possible to ``unignore x-mailer,''
28214 -for example.  The ``unignore'' command does <B>not</B> make Mutt display headers
28215 -with the given pattern.</P>
28216 -<P>``unignore *'' will remove all tokens from the ignore list.</P>
28217 -<P>For example:
28218 -<BLOCKQUOTE><CODE>
28219 -<PRE>
28220 -# Sven's draconian header weeding
28221 -ignore *
28222 -unignore from date subject to cc
28223 -unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
28224 -unignore posted-to:
28225 -</PRE>
28226 -</CODE></BLOCKQUOTE>
28227 -</P>
28228 -
28229 -<H2><A NAME="lists"></A> <A NAME="ss3.9">3.9</A> <A HREF="manual.html#toc3.9">Mailing lists</A>
28230 -</H2>
28231 -
28232 -<P>Usage: <CODE>[un]lists</CODE> <EM>address</EM> [ <EM>address</EM> ... ]<BR>
28233 -Usage: <CODE>[un]subscribe</CODE> <EM>address</EM> [ <EM>address</EM> ... ]</P>
28234 -<P>Mutt has a few nice features for 
28235 -<A HREF="manual-4.html#using_lists">handling mailing lists</A>.  In order to take advantage of them, you must
28236 -specify which addresses belong to mailing lists, and which mailing
28237 -lists you are subscribed to.  Once you have done this, the 
28238 -<A HREF="manual-2.html#list-reply">list-reply</A> function will work for all known lists.
28239 -Additionally, when you send a message to a subscribed list, mutt will
28240 -add a Mail-Followup-To header to tell other users' mail user agents
28241 -not to send copies of replies to your personal address.   Note that
28242 -the Mail-Followup-To header is a non-standard extension which is not
28243 -supported by all mail user agents.  Adding it is not bullet-proof against
28244 -receiving personal CCs of list messages.  Also note that the generation
28245 -of the Mail-Followup-To header is controlled by the 
28246 -<A HREF="manual-6.html#followup_to">followup_to</A> configuration variable.</P>
28247 -<P>More precisely, Mutt maintains lists of known and subscribed mailing
28248 -lists.  Every subscribed mailing list is known.  To mark
28249 -a mailing list as known, use the ``lists'' command.  To mark it as
28250 -subscribed, use ``subscribe''.</P>
28251 -<P>Specify as much of the address as you need to to remove ambiguity.  For
28252 -example, if you've subscribed to the Mutt mailing list, you will receive mail
28253 -addresssed to <EM>mutt-users@mutt.org</EM>.  So, to tell Mutt that this is a
28254 -mailing list, you could add ``lists mutt-users'' to your
28255 -initialization file.  To tell mutt that you are subscribed to it,
28256 -add ``subscribe mutt-users'' to your initialization file instead.
28257 -If you also happen to get mail from someone whose address is
28258 -<EM>mutt-users@example.com</EM>, you could use ``lists mutt-users@mutt.org'' 
28259 -or ``subscribe mutt-users@mutt.org'' to
28260 -match only mail from the actual list.</P>
28261 -<P>The ``unlists'' command is used to remove a token from the list of
28262 -known and subscribed mailing-lists. Use ``unlists *'' to remove all
28263 -tokens.</P>
28264 -<P>To remove a mailing list from the list of subscribed mailing lists,
28265 -but keep it on the list of known mailing lists, use ``unsubscribe''.</P>
28266 -
28267 -
28268 -<H2><A NAME="mbox-hook"></A> <A NAME="ss3.10">3.10</A> <A HREF="manual.html#toc3.10">Using Multiple spool mailboxes</A>
28269 -</H2>
28270 -
28271 -<P>Usage: <CODE>mbox-hook</CODE> [!]<EM>pattern</EM> <EM>mailbox</EM></P>
28272 -<P>This command is used to move read messages from a specified mailbox to a
28273 -different mailbox automatically when you quit or change folders.
28274 -<EM>pattern</EM> is a regular expression specifying the mailbox to treat as a
28275 -``spool'' mailbox and <EM>mailbox</EM> specifies where mail should be saved when
28276 -read.</P>
28277 -<P>Unlike some of the other <EM>hook</EM> commands, only the <EM>first</EM> matching
28278 -pattern is used (it is not possible to save read mail in more than a single
28279 -mailbox).</P>
28280 -
28281 -<H2><A NAME="mailboxes"></A> <A NAME="ss3.11">3.11</A> <A HREF="manual.html#toc3.11">Defining mailboxes which receive mail</A>
28282 -</H2>
28283 -
28284 -<P>Usage: <CODE>mailboxes</CODE> [!]<EM>filename</EM> [ <EM>filename</EM> ... ]</P>
28285 -<P>This command specifies folders which can receive mail and
28286 -which will be checked for new messages.  By default, the
28287 -main menu status bar displays how many of these folders have
28288 -new messages.</P>
28289 -<P>When changing folders, pressing <EM>space</EM> will cycle
28290 -through folders with new mail.</P>
28291 -<P>Pressing TAB in the directory browser will bring up a menu showing the files
28292 -specified by the <CODE>mailboxes</CODE> command, and indicate which contain new
28293 -messages.  Mutt will automatically enter this mode when invoked from the
28294 -command line with the <CODE>-y</CODE> option.</P>
28295 -<P><B>Note:</B> new mail is detected by comparing the last modification time to
28296 -the last access time.  Utilities like <CODE>biff</CODE> or <CODE>frm</CODE> or any other
28297 -program which accesses the mailbox might cause Mutt to never detect new mail
28298 -for that mailbox if they do not properly reset the access time.  Backup
28299 -tools are another common reason for updated access times.</P>
28300 -
28301 -<P><B>Note:</B> the filenames in the <CODE>mailboxes</CODE> command are resolved when
28302 -the command is executed, so if these names contain 
28303 -<A HREF="manual-4.html#shortcuts">shortcut characters</A> (such as ``='' and ``!''), any variable
28304 -definition that affect these characters (like 
28305 -<A HREF="manual-6.html#folder">$folder</A> and 
28306 -<A HREF="manual-6.html#spoolfile">$spoolfile</A>)
28307 -should be executed before the <CODE>mailboxes</CODE> command.</P>
28308 -
28309 -<H2><A NAME="my_hdr"></A> <A NAME="ss3.12">3.12</A> <A HREF="manual.html#toc3.12">User defined headers</A>
28310 -</H2>
28311 -
28312 -<P>Usage:<BR>
28313 -<CODE>my_hdr</CODE> <EM>string</EM><BR>
28314 -<CODE>unmy_hdr</CODE> <EM>field</EM> [ <EM>field</EM> ... ]</P>
28315 -<P>The ``my_hdr'' command allows you to create your own header
28316 -fields which will be added to every message you send.</P>
28317 -<P>For example, if you would like to add an ``Organization:'' header field to
28318 -all of your outgoing messages, you can put the command</P>
28319 -<P>
28320 -<BLOCKQUOTE>
28321 -my_hdr Organization: A Really Big Company, Anytown, USA
28322 -</BLOCKQUOTE>
28323 -</P>
28324 -<P>in your <CODE>.muttrc</CODE>.</P>
28325 -<P><B>Note:</B>  space characters are <EM>not</EM> allowed between the keyword and
28326 -the colon (``:'').  The standard for electronic mail (RFC822) says that
28327 -space is illegal there, so Mutt enforces the rule.</P>
28328 -<P>If you would like to add a header field to a single message, you should
28329 -either set the 
28330 -<A HREF="manual-6.html#edit_headers">edit_headers</A> variable,
28331 -or use the <EM>edit-headers</EM> function (default: ``E'') in the send-menu so
28332 -that you can edit the header of your message along with the body.</P>
28333 -<P>To remove user defined header fields, use the ``unmy_hdr''
28334 -command.  You may specify an asterisk (``*'') to remove all header
28335 -fields, or the fields to remove.  For example, to remove all ``To'' and
28336 -``Cc'' header fields, you could use:</P>
28337 -<P>
28338 -<BLOCKQUOTE>
28339 -unmy_hdr to cc
28340 -</BLOCKQUOTE>
28341 -</P>
28342 -
28343 -<H2><A NAME="hdr_order"></A> <A NAME="ss3.13">3.13</A> <A HREF="manual.html#toc3.13">Defining the order of headers when viewing messages</A>
28344 -</H2>
28345 -
28346 -<P>Usage: <CODE>hdr_order</CODE> <EM>header1</EM> <EM>header2</EM> <EM>header3</EM></P>
28347 -<P>With this command, you can specify an order in which mutt will attempt
28348 -to present headers to you when viewing messages.</P>
28349 -<P>``unhdr_order *'' will clear all previous headers from the order list,
28350 -thus removing the header order effects set by the system-wide startup
28351 -file.</P>
28352 -<P>
28353 -<BLOCKQUOTE><CODE>
28354 -<PRE>
28355 -hdr_order From Date: From: To: Cc: Subject:
28356 -</PRE>
28357 -</CODE></BLOCKQUOTE>
28358 -</P>
28359 -
28360 -<H2><A NAME="save-hook"></A> <A NAME="ss3.14">3.14</A> <A HREF="manual.html#toc3.14">Specify default save filename</A>
28361 -</H2>
28362 -
28363 -<P>Usage: <CODE>save-hook</CODE> [!]<EM>pattern</EM> <EM>filename</EM></P>
28364 -<P>This command is used to override the default filename used when saving
28365 -messages.  <EM>filename</EM> will be used as the default filename if the message is
28366 -<EM>From:</EM> an address matching <EM>regexp</EM> or if you are the author and the
28367 -message is addressed <EM>to:</EM> something matching <EM>regexp</EM>.</P>
28368 -<P>See 
28369 -<A HREF="manual-4.html#pattern_hook">Message Matching in Hooks</A> for information on the exact format of <EM>pattern</EM>.</P>
28370 -<P>Examples:</P>
28371 -<P>
28372 -<BLOCKQUOTE><CODE>
28373 -<PRE>
28374 -save-hook me@(turing\\.)?cs\\.hmc\\.edu$ +elkins
28375 -save-hook aol\\.com$ +spam
28376 -</PRE>
28377 -</CODE></BLOCKQUOTE>
28378 -</P>
28379 -<P>Also see the 
28380 -<A HREF="#fcc-save-hook">fcc-save-hook</A> command.</P>
28381 -
28382 -<H2><A NAME="fcc-hook"></A> <A NAME="ss3.15">3.15</A> <A HREF="manual.html#toc3.15">Specify default Fcc: mailbox when composing</A>
28383 -</H2>
28384 -
28385 -<P>Usage: <CODE>fcc-hook</CODE> [!]<EM>pattern</EM> <EM>mailbox</EM></P>
28386 -<P>This command is used to save outgoing mail in a mailbox other than
28387 -<A HREF="manual-6.html#record">$record</A>.  Mutt searches the initial list of
28388 -message recipients for the first matching <EM>regexp</EM> and uses <EM>mailbox</EM>
28389 -as the default Fcc: mailbox.  If no match is found the message will be saved
28390 -to 
28391 -<A HREF="manual-6.html#record">$record</A> mailbox.</P>
28392 -<P>See 
28393 -<A HREF="manual-4.html#pattern_hook">Message Matching in Hooks</A> for information on the exact format of <EM>pattern</EM>.</P>
28394 -<P>Example: <CODE>fcc-hook aol.com$ +spammers</CODE></P>
28395 -<P>The above will save a copy of all messages going to the aol.com domain to
28396 -the `+spammers' mailbox by default.  Also see the 
28397 -<A HREF="#fcc-save-hook">fcc-save-hook</A> command.</P>
28398 -
28399 -<H2><A NAME="fcc-save-hook"></A> <A NAME="ss3.16">3.16</A> <A HREF="manual.html#toc3.16">Specify default save filename and default Fcc: mailbox at once</A>
28400 -</H2>
28401 -
28402 -<P>Usage: <CODE>fcc-save-hook</CODE> [!]<EM>pattern</EM> <EM>mailbox</EM></P>
28403 -<P>This command is a shortcut, equivalent to doing both a 
28404 -<A HREF="#fcc-hook">fcc-hook</A>
28405 -and a 
28406 -<A HREF="#save-hook">save-hook</A> with its arguments.</P>
28407 -
28408 -<H2><A NAME="send-hook"></A> <A NAME="ss3.17">3.17</A> <A HREF="manual.html#toc3.17">Change settings based upon message recipients</A>
28409 -</H2>
28410 -
28411 -<P>Usage: <CODE>send-hook</CODE> [!]<EM>pattern</EM> <EM>command</EM></P>
28412 -<P>This command can be used to execute arbitrary configuration commands based
28413 -upon recipients of the message.  <EM>pattern</EM> is a regular expression
28414 -matching the desired address.  <EM>command</EM> is executed when <EM>regexp</EM>
28415 -matches recipients of the message.  When multiple matches occur, commands are
28416 -executed in the order they are specified in the muttrc.</P>
28417 -<P>See 
28418 -<A HREF="manual-4.html#pattern_hook">Message Matching in Hooks</A> for information on the exact format of <EM>pattern</EM>.</P>
28419 -<P>Example: <CODE>send-hook mutt &quot;set mime_forward signature=''&quot;</CODE></P>
28420 -<P>Another typical use for this command is to change the values of the
28421 -<A HREF="manual-6.html#attribution">$attribution</A>, 
28422 -<A HREF="manual-6.html#signature">$signature</A> and 
28423 -<A HREF="manual-6.html#locale">$locale</A>
28424 -variables in order to change the language of the attributions and
28425 -signatures based upon the recipients.</P>
28426 -<P><B>Note:</B> the send-hook's are only executed ONCE after getting the initial
28427 -list of recipients.  Adding a recipient after replying or editing the
28428 -message will NOT cause any send-hook to be executed.  Also note that
28429 -my_hdr commands which modify recipient headers, or the message's
28430 -subject, don't have any effect on the current message when executed
28431 -from a send-hook.</P>
28432 -
28433 -<H2><A NAME="message-hook"></A> <A NAME="ss3.18">3.18</A> <A HREF="manual.html#toc3.18">Change settings before formatting a message</A>
28434 -</H2>
28435 -
28436 -<P>Usage: <CODE>message-hook</CODE> [!]<EM>pattern</EM> <EM>command</EM></P>
28437 -<P>This command can be used to execute arbitrary configuration commands
28438 -before viewing or formatting a message based upon information about the message.
28439 -<EM>command</EM> is executed if the <EM>pattern</EM> matches the message to be
28440 -displayed. When multiple matches occur, commands are executed in the order
28441 -they are specified in the muttrc.</P>
28442 -<P>See 
28443 -<A HREF="manual-4.html#pattern_hook">Message Matching in Hooks</A> for
28444 -information on the exact format of <EM>pattern</EM>.</P>
28445 -<P>Example:
28446 -<BLOCKQUOTE><CODE>
28447 -<PRE>
28448 -message-hook ~A 'set pager=builtin'
28449 -message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
28450 -</PRE>
28451 -</CODE></BLOCKQUOTE>
28452 -</P>
28453 -
28454 -<H2><A NAME="pgp-hook"></A> <A NAME="ss3.19">3.19</A> <A HREF="manual.html#toc3.19">Choosing the PGP key of the recipient</A>
28455 -</H2>
28456 -
28457 -<P>Usage: <CODE>pgp-hook</CODE> <EM>pattern</EM> <EM>keyid</EM></P>
28458 -<P>When encrypting messages with PGP, you may want to associate a certain
28459 -PGP key with a given e-mail address automatically, either because the
28460 -recipient's public key can't be deduced from the destination address,
28461 -or because, for some reasons, you need to override the key Mutt would
28462 -normally use.  The pgp-hook command provides a method by which you can
28463 -specify the ID of the public key to be used when encrypting messages to
28464 -a certain recipient.</P>
28465 -
28466 -<H2><A NAME="push"></A> <A NAME="ss3.20">3.20</A> <A HREF="manual.html#toc3.20">Adding key sequences to the keyboard buffer</A>
28467 -</H2>
28468 -
28469 -<P>Usage: <CODE>push</CODE> <EM>string</EM></P>
28470 -<P>This command adds the named string to the keyboard buffer. The string may
28471 -contain control characters, key names and function names like the sequence
28472 -string in the 
28473 -<A HREF="#macro">macro</A> command. You may use it to
28474 -automatically run a sequence of commands at startup, or when entering
28475 -certain folders.</P>
28476 -
28477 -<H2><A NAME="exec"></A> <A NAME="ss3.21">3.21</A> <A HREF="manual.html#toc3.21">Executing functions</A>
28478 -</H2>
28479 -
28480 -<P>Usage: <CODE>exec</CODE> <EM>function</EM> [ <EM>function</EM> ... ]</P>
28481 -<P>This command can be used to execute any function. Functions are
28482 -listed in the 
28483 -<A HREF="manual-6.html#functions">function reference</A>.
28484 -``exec function'' is equivalent to ``push &lt;function&gt;''.</P>
28485 -
28486 -<H2><A NAME="score-command"></A> <A NAME="ss3.22">3.22</A> <A HREF="manual.html#toc3.22">Message Scoring</A>
28487 -</H2>
28488 -
28489 -<P>Usage: <CODE>score</CODE> <EM>pattern</EM> <EM>value</EM><BR>
28490 -Usage: <CODE>unscore</CODE> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</P>
28491 -<P>The <CODE>score</CODE> commands adds <EM>value</EM> to a message's score if <EM>pattern</EM>
28492 -matches it.  <EM>pattern</EM> is a string in the format described in the 
28493 -<A HREF="manual-4.html#patterns">patterns</A> section (note: For efficiency reasons, patterns
28494 -which scan information not available in the index, such as <CODE>~b</CODE>,
28495 -<CODE>~B</CODE> or <CODE>~h</CODE>, may not be used).  <EM>value</EM> is a
28496 -positive or negative integer.  A message's final score is the sum total of all
28497 -matching <CODE>score</CODE> entries.  However, you may optionally prefix <EM>value</EM> with
28498 -an equal sign (=) to cause evaluation to stop at a particular entry if there is
28499 -a match.  Negative final scores are rounded up to 0.</P>
28500 -<P>The <CODE>unscore</CODE> command removes score entries from the list.  You <B>must</B>
28501 -specify the same pattern specified in the <CODE>score</CODE> command for it to be
28502 -removed.  The pattern ``*'' is a special token which means to clear the list
28503 -of all score entries.</P>
28504 -
28505 -<H2><A NAME="set"></A> <A NAME="ss3.23">3.23</A> <A HREF="manual.html#toc3.23">Setting variables</A>
28506 -</H2>
28507 -
28508 -<P>Usage: <CODE>set</CODE> [no|inv]<EM>variable</EM>[=<EM>value</EM>] [ <EM>variable</EM> ... ]<BR>
28509 -Usage: <CODE>toggle</CODE> <EM>variable</EM> [<EM>variable</EM> ... ]<BR>
28510 -Usage: <CODE>unset</CODE> <EM>variable</EM> [<EM>variable</EM> ... ]<BR>
28511 -Usage: <CODE>reset</CODE> <EM>variable</EM> [<EM>variable</EM> ... ]</P>
28512 -<P>This command is used to set (and unset) 
28513 -<A HREF="manual-6.html#variables">configuration variables</A>.  There are four basic types of variables:
28514 -boolean, number, string and quadoption.  <EM>boolean</EM> variables can be
28515 -<EM>set</EM> (true) or <EM>unset</EM> (false).  <EM>number</EM> variables can be
28516 -assigned a positive integer value.</P>
28517 -<P><EM>string</EM> variables consist of any number of printable characters.
28518 -<EM>strings</EM> must be enclosed in quotes if they contain spaces or tabs.  You
28519 -may also use the ``C'' escape sequences <B>\n</B> and <B>\t</B> for
28520 -newline and tab, respectively.</P>
28521 -<P><EM>quadoption</EM> variables are used to control whether or not to be prompted
28522 -for certain actions, or to specify a default action.  A value of <EM>yes</EM>
28523 -will cause the action to be carried out automatically as if you had answered
28524 -yes to the question.  Similarly, a value of <EM>no</EM> will cause the the
28525 -action to be carried out as if you had answered ``no.''  A value of
28526 -<EM>ask-yes</EM> will cause a prompt with a default answer of ``yes'' and
28527 -<EM>ask-no</EM> will provide a default answer of ``no.''</P>
28528 -<P>Prefixing a variable with ``no'' will unset it.  Example: <CODE>set noaskbcc</CODE>.</P>
28529 -<P>For <EM>boolean</EM> variables, you may optionally prefix the variable name with
28530 -<CODE>inv</CODE> to toggle the value (on or off).  This is useful when writing
28531 -macros.  Example: <CODE>set invsmart_wrap</CODE>.</P>
28532 -<P>The <CODE>toggle</CODE> command automatically prepends the <CODE>inv</CODE> prefix to all
28533 -specified variables.</P>
28534 -<P>The <CODE>unset</CODE> command automatically prepends the <CODE>no</CODE> prefix to all
28535 -specified variables.</P>
28536 -<P>Using the enter-command function in the <EM>index</EM> menu, you can query the
28537 -value of a variable by prefixing the name of the variable with a question
28538 -mark:</P>
28539 -<P>
28540 -<BLOCKQUOTE><CODE>
28541 -<PRE>
28542 -set ?allow_8bit
28543 -</PRE>
28544 -</CODE></BLOCKQUOTE>
28545 -</P>
28546 -<P>The question mark is actually only required for boolean and quadoption 
28547 -variables.</P>
28548 -<P>The <CODE>reset</CODE> command resets all given variables to the compile time
28549 -defaults (hopefully mentioned in this manual). If you use the command
28550 -<CODE>set</CODE> and prefix the variable with ``&amp;'' this has the same
28551 -behavior as the reset command.</P>
28552 -<P>With the <CODE>reset</CODE> command there exists the special variable ``all'',
28553 -which allows you to reset all variables to their system defaults.</P>
28554 -
28555 -<H2><A NAME="source"></A> <A NAME="ss3.24">3.24</A> <A HREF="manual.html#toc3.24">Reading initialization commands from another file</A>
28556 -</H2>
28557 -
28558 -<P>Usage: <CODE>source</CODE> <EM>filename</EM></P>
28559 -<P>This command allows the inclusion of initialization commands
28560 -from other files.  For example, I place all of my aliases in
28561 -<CODE>~/.mail_aliases</CODE> so that I can make my
28562 -<CODE>~/.muttrc</CODE> readable and keep my aliases private.</P>
28563 -<P>If the filename begins with a tilde (``~''), it will be expanded to the
28564 -path of your home directory.</P>
28565 -<P>If the filename ends with a vertical bar (|), then <EM>filename</EM> is
28566 -considered to be an executable program from which to read input (eg.
28567 -<CODE>source ~</CODE>bin/myscript|/).</P>
28568 -
28569 -<H2><A NAME="unhook"></A> <A NAME="ss3.25">3.25</A> <A HREF="manual.html#toc3.25">Removing hooks</A>
28570 -</H2>
28571 -
28572 -<P>Usage: <CODE>unhook</CODE> [ * | <EM>hook-type</EM> ]</P>
28573 -<P>This command permits you to flush hooks you have previously defined.
28574 -You can either remove all hooks by giving the ``*'' character as an
28575 -argument, or you can remove all hooks of a specific type by saying
28576 -something like <CODE>unhook send-hook</CODE>.</P>
28577 -
28578 -<HR>
28579 -<A HREF="manual-4.html">Next</A>
28580 -<A HREF="manual-2.html">Previous</A>
28581 -<A HREF="manual.html#toc3">Contents</A>
28582 -</BODY>
28583 -</HTML>
28584 diff -uNr mutt-1.4.orig/doc/manual-4.html mutt-1.4/doc/manual-4.html
28585 --- mutt-1.4.orig/doc/manual-4.html     Sun Nov  3 21:42:51 2002
28586 +++ mutt-1.4/doc/manual-4.html  Thu Jan  1 01:00:00 1970
28587 @@ -1,873 +0,0 @@
28588 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
28589 -<HTML>
28590 -<HEAD>
28591 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
28592 - <TITLE>The Mutt E-Mail Client: Advanced Usage</TITLE>
28593 - <LINK HREF="manual-5.html" REL=next>
28594 - <LINK HREF="manual-3.html" REL=previous>
28595 - <LINK HREF="manual.html#toc4" REL=contents>
28596 -</HEAD>
28597 -<BODY>
28598 -<A HREF="manual-5.html">Next</A>
28599 -<A HREF="manual-3.html">Previous</A>
28600 -<A HREF="manual.html#toc4">Contents</A>
28601 -<HR>
28602 -<H2><A NAME="s4">4.</A> <A HREF="manual.html#toc4">Advanced Usage</A></H2>
28603 -
28604 -<H2><A NAME="regexp"></A> <A NAME="ss4.1">4.1</A> <A HREF="manual.html#toc4.1">Regular Expressions</A>
28605 -</H2>
28606 -
28607 -<P>All string patterns in Mutt including those in more complex
28608 -<A HREF="#patterns">patterns</A> must be specified
28609 -using regular expressions (regexp) in the ``POSIX extended'' syntax (which
28610 -is more or less the syntax used by egrep and GNU awk).  For your
28611 -convenience, we have included below a brief description of this syntax.</P>
28612 -<P>The search is case sensitive if the pattern contains at least one upper
28613 -case letter, and case insensitive otherwise. Note that ``\''
28614 -must be quoted if used for a regular expression in an initialization
28615 -command: ``\\''.</P>
28616 -<P>A regular expression is a pattern that describes a set of strings.
28617 -Regular expressions are constructed analogously to arithmetic
28618 -expressions, by using various operators to combine smaller expressions.</P>
28619 -<P>Note that the regular expression can be enclosed/delimited by either &quot;
28620 -or ' which is useful if the regular expression includes a white-space
28621 -character.  See 
28622 -<A HREF="manual-3.html#muttrc-syntax">Syntax of Initialization Files</A>
28623 -for more information on &quot; and ' delimiter processing.  To match a
28624 -literal &quot; or ' you must preface it with \ (backslash).</P>
28625 -<P>The fundamental building blocks are the regular expressions that match
28626 -a single character.  Most characters, including all letters and digits,
28627 -are regular expressions that match themselves.  Any metacharacter with
28628 -special meaning may be quoted by preceding it with a backslash.</P>
28629 -<P>The period ``.'' matches any single character.  The caret ``^'' and
28630 -the dollar sign ``$'' are metacharacters that respectively match
28631 -the empty string at the beginning and end of a line.</P>
28632 -<P>A list of characters enclosed by ``['' and ``]'' matches any
28633 -single character in that list; if the first character of the list
28634 -is a caret ``^'' then it matches any character <B>not</B> in the
28635 -list.  For example, the regular expression <B>[0123456789]</B>
28636 -matches any single digit.  A range of ASCII characters may be specified
28637 -by giving the first and last characters, separated by a hyphen
28638 -``&hyphen;''.  Most metacharacters lose their special meaning inside
28639 -lists.  To include a literal ``]'' place it first in the list.
28640 -Similarly, to include a literal ``^'' place it anywhere but first.
28641 -Finally, to include a literal hyphen ``&hyphen;'' place it last.</P>
28642 -<P>Certain named classes of characters are predefined.  Character classes
28643 -consist of ``[:'', a keyword denoting the class, and ``:]''.
28644 -The following classes are defined by the POSIX standard:</P>
28645 -<P>
28646 -<DL>
28647 -<DT><B>[:alnum:]</B><DD><P>Alphanumeric characters.</P>
28648 -<DT><B>[:alpha:]</B><DD><P>Alphabetic characters.</P>
28649 -<DT><B>[:blank:]</B><DD><P>Space or tab characters.</P>
28650 -<DT><B>[:cntrl:]</B><DD><P>Control characters.</P>
28651 -<DT><B>[:digit:]</B><DD><P>Numeric characters.</P>
28652 -<DT><B>[:graph:]</B><DD><P>Characters that are both printable and visible.  (A space is printable,
28653 -but not visible, while an ``a'' is both.)</P>
28654 -<DT><B>[:lower:]</B><DD><P>Lower-case alphabetic characters.</P>
28655 -<DT><B>[:print:]</B><DD><P>Printable characters (characters that are not control characters.)</P>
28656 -<DT><B>[:punct:]</B><DD><P>Punctuation characters (characters that are not letter, digits, control
28657 -characters, or space characters).</P>
28658 -<DT><B>[:space:]</B><DD><P>Space characters (such as space, tab and formfeed, to name a few).</P>
28659 -<DT><B>[:upper:]</B><DD><P>Upper-case alphabetic characters.</P>
28660 -<DT><B>[:xdigit:]</B><DD><P>Characters that are hexadecimal digits.</P>
28661 -</DL>
28662 -</P>
28663 -<P>A character class is only valid in a regular expression inside the
28664 -brackets of a character list.  Note that the brackets in these
28665 -class names are part of the symbolic names, and must be included
28666 -in addition to the brackets delimiting the bracket list.  For
28667 -example, <B>[[:digit:]]</B> is equivalent to
28668 -<B>[0-9]</B>.</P>
28669 -<P>Two additional special sequences can appear in character lists.  These
28670 -apply to non-ASCII character sets, which can have single symbols (called
28671 -collating elements) that are represented with more than one character,
28672 -as well as several characters that are equivalent for collating or
28673 -sorting purposes:</P>
28674 -<P>
28675 -<DL>
28676 -<DT><B>Collating Symbols</B><DD><P>A collating symbols is a multi-character collating element enclosed in
28677 -``[.'' and ``.]''.  For example, if ``ch'' is a collating
28678 -element, then <B>[[.ch.]]</B> is a regexp that matches
28679 -this collating element, while <B>[ch]</B> is a regexp that
28680 -matches either ``c'' or ``h''.</P>
28681 -<DT><B>Equivalence Classes</B><DD><P>An equivalence class is a locale-specific name for a list of
28682 -characters that are equivalent. The name is enclosed in ``[=''
28683 -and ``=]''.  For example, the name ``e'' might be used to
28684 -represent all of ``&egrave;'' ``&eacute;'' and ``e''.  In this case,
28685 -<B>[[=e=]]</B> is a regexp that matches any of
28686 -``&egrave;'', ``&eacute;'' and ``e''.</P>
28687 -</DL>
28688 -</P>
28689 -<P>A regular expression matching a single character may be followed by one
28690 -of several repetition operators:</P>
28691 -<P>
28692 -<DL>
28693 -<DT><B>?</B><DD><P>The preceding item is optional and matched at most once.</P>
28694 -<DT><B>*</B><DD><P>The preceding item will be matched zero or more times.</P>
28695 -<DT><B>+</B><DD><P>The preceding item will be matched one or more times.</P>
28696 -<DT><B>{n}</B><DD><P>The preceding item is matched exactly <EM>n</EM> times.</P>
28697 -<DT><B>{n,}</B><DD><P>The preceding item is matched <EM>n</EM> or more times.</P>
28698 -<DT><B>{,m}</B><DD><P>The preceding item is matched at most <EM>m</EM> times.</P>
28699 -<DT><B>{n,m}</B><DD><P>The preceding item is matched at least <EM>n</EM> times, but no more than
28700 -<EM>m</EM> times.</P>
28701 -</DL>
28702 -</P>
28703 -<P>Two regular expressions may be concatenated; the resulting regular
28704 -expression matches any string formed by concatenating two substrings
28705 -that respectively match the concatenated subexpressions.</P>
28706 -<P>Two regular expressions may be joined by the infix operator ``|'';
28707 -the resulting regular expression matches any string matching either
28708 -subexpression.</P>
28709 -<P>Repetition takes precedence over concatenation, which in turn takes
28710 -precedence over alternation.  A whole subexpression may be enclosed in
28711 -parentheses to override these precedence rules.</P>
28712 -<P><B>Note:</B> If you compile Mutt with the GNU <EM>rx</EM> package, the
28713 -following operators may also be used in regular expressions:</P>
28714 -<P>
28715 -<DL>
28716 -<DT><B>\\y</B><DD><P>Matches the empty string at either the beginning or the end of a word.</P>
28717 -<DT><B>\\B</B><DD><P>Matches the empty string within a word.</P>
28718 -<DT><B>\\&lt;</B><DD><P>Matches the empty string at the beginning of a word.</P>
28719 -<DT><B>\\&gt;</B><DD><P>Matches the empty string at the end of a word.</P>
28720 -<DT><B>\\w</B><DD><P>Matches any word-constituent character (letter, digit, or underscore).</P>
28721 -<DT><B>\\W</B><DD><P>Matches any character that is not word-constituent.</P>
28722 -<DT><B>\\`</B><DD><P>Matches the empty string at the beginning of a buffer (string).</P>
28723 -<DT><B>\\'</B><DD><P>Matches the empty string at the end of a buffer.</P>
28724 -</DL>
28725 -</P>
28726 -<P>Please note however that these operators are not defined by POSIX, so
28727 -they may or may not be available in stock libraries on various systems.</P>
28728 -
28729 -<H2><A NAME="patterns"></A> <A NAME="ss4.2">4.2</A> <A HREF="manual.html#toc4.2">Patterns</A>
28730 -</H2>
28731 -
28732 -<P>Many of Mutt's commands allow you to specify a pattern to match
28733 -(limit, tag-pattern, delete-pattern, etc.).  There are several ways to select
28734 -messages:</P>
28735 -<P>
28736 -<BLOCKQUOTE><CODE>
28737 -<PRE>
28738 -~A              all messages
28739 -~b EXPR         messages which contain EXPR in the message body
28740 -~B EXPR         messages which contain EXPR in the whole message
28741 -~c USER         messages carbon-copied to USER
28742 -~C EXPR         message is either to: or cc: EXPR
28743 -~D              deleted messages
28744 -~d [MIN]-[MAX]  messages with ``date-sent'' in a Date range
28745 -~E              expired messages
28746 -~e EXPR         message which contains EXPR in the ``Sender'' field
28747 -~F              flagged messages
28748 -~f USER         messages originating from USER
28749 -~g              PGP signed messages
28750 -~G              PGP encrypted messages
28751 -~h EXPR         messages which contain EXPR in the message header
28752 -~k              message contains PGP key material
28753 -~i ID           message which match ID in the ``Message-ID'' field
28754 -~L EXPR         message is either originated or received by EXPR
28755 -~l              message is addressed to a known mailing list
28756 -~m [MIN]-[MAX]  message in the range MIN to MAX *)
28757 -~n [MIN]-[MAX]  messages with a score in the range MIN to MAX *)
28758 -~N              new messages
28759 -~O              old messages
28760 -~p              message is addressed to you (consults $alternates)
28761 -~P              message is from you (consults $alternates)
28762 -~Q              messages which have been replied to
28763 -~R              read messages
28764 -~r [MIN]-[MAX]  messages with ``date-received'' in a Date range
28765 -~S              superseded messages
28766 -~s SUBJECT      messages having SUBJECT in the ``Subject'' field.
28767 -~T              tagged messages
28768 -~t USER         messages addressed to USER
28769 -~U              unread messages
28770 -~v              message is part of a collapsed thread.
28771 -~x EXPR         messages which contain EXPR in the `References' field
28772 -~y EXPR         messages which contain EXPR in the `X-Label' field
28773 -~z [MIN]-[MAX]  messages with a size in the range MIN to MAX *)
28774 -~=              duplicated messages (see $duplicate_threads)
28775 -</PRE>
28776 -</CODE></BLOCKQUOTE>
28777 -</P>
28778 -<P>Where EXPR, USER, ID, and SUBJECT are 
28779 -<A HREF="#regexp">regular expressions</A>.</P>
28780 -<P>*) The forms <CODE>&lt;[MAX]</CODE>, <CODE>&gt;[MIN]</CODE>,
28781 -<CODE>[MIN]-</CODE> and <CODE>-[MAX]</CODE>
28782 -are allowed, too.</P>
28783 -
28784 -<H3>Pattern Modifier</H3>
28785 -
28786 -
28787 -<P>Note that patterns matching 'lists' of addresses (notably c,C,p,P and t)
28788 -match if there is at least one match in the whole list. If you want to
28789 -make sure that all elements of that list match, you need to prefix your
28790 -pattern with ^.
28791 -This example matches all mails which only has recipients from Germany.</P>
28792 -<P>
28793 -<BLOCKQUOTE><CODE>
28794 -<PRE>
28795 -^~C \.de$
28796 -</PRE>
28797 -</CODE></BLOCKQUOTE>
28798 -</P>
28799 -
28800 -<H3>Complex Patterns</H3>
28801 -
28802 -
28803 -<P>Logical AND is performed by specifying more than one criterion.  For
28804 -example:</P>
28805 -<P>
28806 -<BLOCKQUOTE><CODE>
28807 -<PRE>
28808 -~t mutt ~f elkins
28809 -</PRE>
28810 -</CODE></BLOCKQUOTE>
28811 -</P>
28812 -<P>would select messages which contain the word ``mutt'' in the list of
28813 -recipients <B>and</B> that have the word ``elkins'' in the ``From'' header
28814 -field.</P>
28815 -<P>Mutt also recognizes the following operators to create more complex search
28816 -patterns:</P>
28817 -<P>
28818 -<UL>
28819 -<LI>! -- logical NOT operator</LI>
28820 -<LI>| -- logical OR operator</LI>
28821 -<LI>() -- logical grouping operator</LI>
28822 -</UL>
28823 -</P>
28824 -<P>Here is an example illustrating a complex search pattern.  This pattern will
28825 -select all messages which do not contain ``mutt'' in the ``To'' or ``Cc''
28826 -field and which are from ``elkins''.</P>
28827 -<P>
28828 -<BLOCKQUOTE><CODE>
28829 -<PRE>
28830 -!(~t mutt|~c mutt) ~f elkins
28831 -</PRE>
28832 -</CODE></BLOCKQUOTE>
28833 -</P>
28834 -<P>Here is an example using white space in the regular expression (note
28835 -the ' and &quot; delimiters).  For this to match, the mail's subject must
28836 -match the ``^Junk +From +Me$'' and it must be from either ``Jim +Somebody''
28837 -or ``Ed +SomeoneElse'':</P>
28838 -<P>
28839 -<BLOCKQUOTE><CODE>
28840 -<PRE>
28841 - '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
28842 -</PRE>
28843 -</CODE></BLOCKQUOTE>
28844 -</P>
28845 -
28846 -<H3>Searching by Date</H3>
28847 -
28848 -<P>Mutt supports two types of dates, <EM>absolute</EM> and <EM>relative</EM>.</P>
28849 -<P><B>Absolute</B>.  Dates <B>must</B> be in DD/MM/YY format (month and year are
28850 -optional, defaulting to the current month and year).  An example of a valid
28851 -range of dates is:</P>
28852 -<P>
28853 -<BLOCKQUOTE><CODE>
28854 -<PRE>
28855 -Limit to messages matching: ~d 20/1/95-31/10
28856 -</PRE>
28857 -</CODE></BLOCKQUOTE>
28858 -</P>
28859 -<P>If you omit the minimum (first) date, and just specify ``-DD/MM/YY'', all
28860 -messages <EM>before</EM> the given date will be selected.  If you omit the maximum
28861 -(second) date, and specify ``DD/MM/YY-'', all messages <EM>after</EM> the given
28862 -date will be selected.  If you specify a single date with no dash (``-''),
28863 -only messages sent on the given date will be selected. </P>
28864 -<P><B>Error Margins</B>.  You can add error margins to absolute dates.
28865 -An error margin is a sign (+ or -), followed by a digit, followed by
28866 -one of the following units:
28867 -<PRE>
28868 -y       years
28869 -m       months
28870 -w       weeks
28871 -d       days
28872 -</PRE>
28873 -
28874 -As a special case, you can replace the sign by a ``*'' character,
28875 -which is equivalent to giving identical plus and minus error margins.</P>
28876 -<P>Example: To select any messages two weeks around January 15, 2001,
28877 -you'd use the following pattern: 
28878 -<BLOCKQUOTE><CODE>
28879 -<PRE>
28880
28881 -Limit to messages matching: ~d 15/1/2001*2w
28882 -</PRE>
28883 -</CODE></BLOCKQUOTE>
28884 -</P>
28885 -
28886 -<P><B>Relative</B>.  This type of date is relative to the current date, and may
28887 -be specified as:
28888 -<UL>
28889 -<LI>&gt;<EM>offset</EM> (messages older than <EM>offset</EM> units)</LI>
28890 -<LI>&lt;<EM>offset</EM> (messages newer than <EM>offset</EM> units)</LI>
28891 -<LI>=<EM>offset</EM> (messages exactly <EM>offset</EM> units old)</LI>
28892 -</UL>
28893 -</P>
28894 -<P><EM>offset</EM> is specified as a positive number with one of the following
28895 -units:
28896 -<PRE>
28897 -y       years
28898 -m       months
28899 -w       weeks
28900 -d       days
28901 -</PRE>
28902 -</P>
28903 -<P>Example: to select messages less than 1 month old, you would use
28904 -<BLOCKQUOTE><CODE>
28905 -<PRE>
28906 -Limit to messages matching: ~d &lt;1m
28907 -</PRE>
28908 -</CODE></BLOCKQUOTE>
28909 -</P>
28910 -
28911 -
28912 -<P><B>Note:</B> all dates used when searching are relative to the
28913 -<B>local</B> time zone, so unless you change the setting of your 
28914 -<A HREF="manual-6.html#index_format">$index_format</A> to include a
28915 -<CODE>%[...]</CODE> format, these are <B>not</B> the dates shown
28916 -in the main index.</P>
28917 -
28918 -<H2><A NAME="ss4.3">4.3</A> <A HREF="manual.html#toc4.3">Using Tags</A>
28919 -</H2>
28920 -
28921 -
28922 -<P>Sometimes it is desirable to perform an operation on a group of
28923 -messages all at once rather than one at a time.  An example might be
28924 -to save messages to a mailing list to a separate folder, or to
28925 -delete all messages with a given subject.  To tag all messages
28926 -matching a pattern, use the tag-pattern function, which is bound to
28927 -``shift-T'' by default.  Or you can select individual messages by
28928 -hand using the ``tag-message'' function, which is bound to ``t'' by
28929 -default.  See 
28930 -<A HREF="#patterns">patterns</A> for Mutt's pattern
28931 -matching syntax.</P>
28932 -<P>Once you have tagged the desired messages, you can use the
28933 -``tag-prefix'' operator, which is the ``;'' (semicolon) key by default.
28934 -When the ``tag-prefix'' operator is used, the <B>next</B> operation will
28935 -be applied to all tagged messages if that operation can be used in that
28936 -manner.  If the 
28937 -<A HREF="manual-6.html#auto_tag">$auto_tag</A>
28938 -variable is set, the next operation applies to the tagged messages
28939 -automatically, without requiring the ``tag-prefix''.</P>
28940 -
28941 -<H2><A NAME="hooks"></A> <A NAME="ss4.4">4.4</A> <A HREF="manual.html#toc4.4">Using Hooks</A>
28942 -</H2>
28943 -
28944 -<P>A <EM>hook</EM> is a concept borrowed from the EMACS editor which allows you to
28945 -execute arbitrary commands before performing some operation.  For example,
28946 -you may wish to tailor your configuration based upon which mailbox you are
28947 -reading, or to whom you are sending mail.  In the Mutt world, a <EM>hook</EM>
28948 -consists of a 
28949 -<A HREF="#regexp">regular expression</A> or
28950 -<A HREF="#patterns">pattern</A> along with a
28951 -configuration option/command.  See
28952 -<UL>
28953 -<LI>
28954 -<A HREF="manual-3.html#folder-hook">folder-hook</A></LI>
28955 -<LI>
28956 -<A HREF="manual-3.html#send-hook">send-hook</A></LI>
28957 -<LI>
28958 -<A HREF="manual-3.html#message-hook">message-hook</A></LI>
28959 -<LI>
28960 -<A HREF="manual-3.html#save-hook">save-hook</A></LI>
28961 -<LI>
28962 -<A HREF="manual-3.html#mbox-hook">mbox-hook</A></LI>
28963 -<LI>
28964 -<A HREF="manual-3.html#fcc-hook">fcc-hook</A></LI>
28965 -<LI>
28966 -<A HREF="manual-3.html#fcc-save-hook">fcc-save-hook</A></LI>
28967 -</UL>
28968 -
28969 -for specific details on each type of <EM>hook</EM> available.</P>
28970 -<P><B>Note:</B> if a hook changes configuration settings, these changes remain
28971 -effective until the end of the current mutt session. As this is generally
28972 -not desired, a default hook needs to be added before all other hooks to
28973 -restore configuration defaults. Here is an example with send-hook and the
28974 -my_hdr directive:</P>
28975 -<P>
28976 -<BLOCKQUOTE><CODE>
28977 -<PRE>
28978 -send-hook . 'unmy_hdr From:'
28979 -send-hook ~Cb@b.b my_hdr from: c@c.c
28980 -</PRE>
28981 -</CODE></BLOCKQUOTE>
28982 -</P>
28983 -
28984 -<H3><A NAME="pattern_hook"></A> Message Matching in Hooks</H3>
28985 -
28986 -<P>Hooks that act upon messages (<CODE>send-hook, save-hook, fcc-hook,
28987 -message-hook</CODE>) are evaluated in a slightly different manner.  For the other
28988 -types of hooks, a 
28989 -<A HREF="#regexp">regular expression</A> is
28990 -sufficient.  But in dealing with messages a finer grain of control is
28991 -needed for matching since for different purposes you want to match
28992 -different criteria.</P>
28993 -<P>Mutt allows the use of the 
28994 -<A HREF="#patterns">search pattern</A>
28995 -language for matching messages in hook commands.  This works in
28996 -exactly the same way as it would when <EM>limiting</EM> or
28997 -<EM>searching</EM> the mailbox, except that you are restricted to those
28998 -operators which match information mutt extracts from the header of
28999 -the message (i.e.  from, to, cc, date, subject, etc.).</P>
29000 -<P>For example, if you wanted to set your return address based upon sending
29001 -mail to a specific address, you could do something like:
29002 -<BLOCKQUOTE><CODE>
29003 -<PRE>
29004 -send-hook '~t ^me@cs\.hmc\.edu$' 'my_hdr From: Mutt User &lt;user@host>'
29005 -</PRE>
29006 -</CODE></BLOCKQUOTE>
29007 -
29008 -which would execute the given command when sending mail to
29009 -<EM>me@cs.hmc.edu</EM>.</P>
29010 -<P>However, it is not required that you write the pattern to match using the
29011 -full searching language.  You can still specify a simple <EM>regular
29012 -expression</EM> like the other hooks, in which case Mutt will translate your
29013 -pattern into the full language, using the translation specified by the 
29014 -<A HREF="manual-6.html#default_hook">$default_hook</A> variable.  The
29015 -pattern is translated at the time the hook is declared, so the value of 
29016 -<A HREF="manual-6.html#default_hook">$default_hook</A> that is in effect
29017 -at that time will be used.</P>
29018 -
29019 -<H2><A NAME="query"></A> <A NAME="ss4.5">4.5</A> <A HREF="manual.html#toc4.5">External Address Queries</A>
29020 -</H2>
29021 -
29022 -<P>Mutt supports connecting to external directory databases such as LDAP,
29023 -ph/qi, bbdb, or NIS through a wrapper script which connects to mutt
29024 -using a simple interface.  Using the 
29025 -<A HREF="manual-6.html#query_command">$query_command</A> variable, you specify the wrapper
29026 -command to use.  For example:</P>
29027 -<P>
29028 -<BLOCKQUOTE><CODE>
29029 -<PRE>
29030 -set query_command = "mutt_ldap_query.pl '%s'"
29031 -</PRE>
29032 -</CODE></BLOCKQUOTE>
29033 -</P>
29034 -<P>The wrapper script should accept the query on the command-line.  It
29035 -should return a one line message, then each matching response on a
29036 -single line, each line containing a tab separated address then name then
29037 -some other optional information.  On error, or if there are no matching
29038 -addresses, return a non-zero exit code and a one line error message.</P>
29039 -<P>An example multiple response output:
29040 -<BLOCKQUOTE><CODE>
29041 -<PRE>
29042 -Searching database ... 20 entries ... 3 matching:
29043 -me@cs.hmc.edu           Michael Elkins  mutt dude
29044 -blong@fiction.net       Brandon Long    mutt and more
29045 -roessler@guug.de        Thomas Roessler mutt pgp
29046 -</PRE>
29047 -</CODE></BLOCKQUOTE>
29048 -</P>
29049 -<P>There are two mechanisms for accessing the query function of mutt.  One
29050 -is to do a query from the index menu using the query function (default: Q).
29051 -This will prompt for a query, then bring up the query menu which will
29052 -list the matching responses.  From the query menu, you can select
29053 -addresses to create aliases, or to mail.  You can tag multiple messages
29054 -to mail, start a new query, or have a new query appended to the current
29055 -responses.</P>
29056 -<P>The other mechanism for accessing the query function is for address
29057 -completion, similar to the alias completion.  In any prompt for address
29058 -entry, you can use the complete-query function (default: ^T) to run a
29059 -query based on the current address you have typed.  Like aliases, mutt
29060 -will look for what you have typed back to the last space or comma.  If
29061 -there is a single response for that query, mutt will expand the address
29062 -in place.  If there are multiple responses, mutt will activate the query
29063 -menu.  At the query menu, you can select one or more addresses to be
29064 -added to the prompt.</P>
29065 -
29066 -<H2><A NAME="ss4.6">4.6</A> <A HREF="manual.html#toc4.6">Mailbox Formats</A>
29067 -</H2>
29068 -
29069 -<P>Mutt supports reading and writing of four different mailbox formats:
29070 -mbox, MMDF, MH and Maildir.  The mailbox type is autodetected, so there
29071 -is no need to use a flag for different mailbox types.  When creating new
29072 -mailboxes, Mutt uses the default specified with the 
29073 -<A HREF="manual-6.html#mbox_type">$mbox_type</A> variable.</P>
29074 -<P><B>mbox</B>.  This is the most widely used mailbox format for UNIX.  All
29075 -messages are stored in a single file.  Each message has a line of the form:</P>
29076 -<P>
29077 -<BLOCKQUOTE><CODE>
29078 -<PRE>
29079 -From me@cs.hmc.edu Fri, 11 Apr 1997 11:44:56 PST
29080 -</PRE>
29081 -</CODE></BLOCKQUOTE>
29082 -</P>
29083 -<P>to denote the start of a new message (this is often referred to as the
29084 -``From_'' line).</P>
29085 -<P><B>MMDF</B>.  This is a variant of the <EM>mbox</EM> format.  Each message is
29086 -surrounded by lines containing ``^A^A^A^A'' (four control-A's).</P>
29087 -<P><B>MH</B>. A radical departure from <EM>mbox</EM> and <EM>MMDF</EM>, a mailbox
29088 -consists of a directory and each message is stored in a separate file.
29089 -The filename indicates the message number (however, this is may not
29090 -correspond to the message number Mutt displays). Deleted messages are
29091 -renamed with a comma (,) prepended to the filename. <B>Note:</B> Mutt
29092 -detects this type of mailbox by looking for either <CODE>.mh_sequences</CODE>
29093 -or <CODE>.xmhcache</CODE> (needed to distinguish normal directories from MH
29094 -mailboxes).</P>
29095 -<P><B>Maildir</B>.  The newest of the mailbox formats, used by the Qmail MTA (a
29096 -replacement for sendmail).  Similar to <EM>MH</EM>, except that it adds three
29097 -subdirectories of the mailbox: <EM>tmp</EM>, <EM>new</EM> and <EM>cur</EM>.  Filenames
29098 -for the messages are chosen in such a way they are unique, even when two
29099 -programs are writing the mailbox over NFS, which means that no file locking
29100 -is needed.</P>
29101 -
29102 -<H2><A NAME="shortcuts"></A> <A NAME="ss4.7">4.7</A> <A HREF="manual.html#toc4.7">Mailbox Shortcuts</A>
29103 -</H2>
29104 -
29105 -<P>There are a number of built in shortcuts which refer to specific mailboxes.
29106 -These shortcuts can be used anywhere you are prompted for a file or mailbox
29107 -path.</P>
29108 -<P>
29109 -<UL>
29110 -<LI>! -- refers to your 
29111 -<A HREF="manual-6.html#spoolfile">$spoolfile</A> (incoming) mailbox</LI>
29112 -<LI>&gt; -- refers to your 
29113 -<A HREF="manual-6.html#mbox">$mbox</A> file</LI>
29114 -<LI>&lt; -- refers to your 
29115 -<A HREF="manual-6.html#record">$record</A> file</LI>
29116 -<LI>- or !! -- refers to the file you've last visited</LI>
29117 -<LI>~ -- refers to your home directory</LI>
29118 -<LI>= or + -- refers to your 
29119 -<A HREF="manual-6.html#folder">$folder</A> directory</LI>
29120 -<LI>@<EM>alias</EM> -- refers to the 
29121 -<A HREF="manual-3.html#save-hook">default save folder</A> as determined by the address of the alias</LI>
29122 -</UL>
29123 -</P>
29124 -
29125 -<H2><A NAME="using_lists"></A> <A NAME="ss4.8">4.8</A> <A HREF="manual.html#toc4.8">Handling Mailing Lists</A>
29126 -</H2>
29127 -
29128 -
29129 -<P>Mutt has a few configuration options that make dealing with large
29130 -amounts of mail easier.  The first thing you must do is to let Mutt
29131 -know what addresses you consider to be mailing lists (technically
29132 -this does not have to be a mailing list, but that is what it is most
29133 -often used for), and what lists you are subscribed to.  This is
29134 -accomplished through the use of the 
29135 -<A HREF="manual-3.html#lists">lists and subscribe</A> commands in your muttrc.</P>
29136 -<P>Now that Mutt knows what your mailing lists are, it can do several
29137 -things, the first of which is the ability to show the name of a list
29138 -through which you received a message (i.e., of a subscribed list) in
29139 -the <EM>index</EM> menu display.  This is useful to distinguish between
29140 -personal and list mail in the same mailbox.  In the 
29141 -<A HREF="manual-6.html#index_format">$index_format</A> variable, the escape ``%L''
29142 -will return the string ``To &lt;list&gt;'' when ``list'' appears in the
29143 -``To'' field, and ``Cc &lt;list&gt;'' when it appears in the ``Cc''
29144 -field (otherwise it returns the name of the author).</P>
29145 -<P>Often times the ``To'' and ``Cc'' fields in mailing list messages
29146 -tend to get quite large. Most people do not bother to remove the
29147 -author of the message they are reply to from the list, resulting in
29148 -two or more copies being sent to that person.  The ``list-reply''
29149 -function, which by default is bound to ``L'' in the <EM>index</EM> menu
29150 -and <EM>pager</EM>, helps reduce the clutter by only replying to the
29151 -known mailing list addresses instead of all recipients (except as
29152 -specified by <CODE>Mail-Followup-To</CODE>, see below).</P>
29153 -<P>Mutt also supports the <CODE>Mail-Followup-To</CODE> header.  When you send
29154 -a message to a list of recipients which includes one or several
29155 -subscribed mailing lists, and if the 
29156 -<A HREF="manual-6.html#followup_to">$followup_to</A> option is set, mutt will generate
29157 -a Mail-Followup-To header which contains all the recipients to whom
29158 -you send this message, but not your address. This indicates that
29159 -group-replies or list-replies (also known as ``followups'') to this
29160 -message should only be sent to the original recipients of the
29161 -message, and not separately to you - you'll receive your copy through
29162 -one of the mailing lists you are subscribed to.</P>
29163 -<P>Conversely, when group-replying or list-replying to a message which
29164 -has a <CODE>Mail-Followup-To</CODE> header, mutt will respect this header if
29165 -the 
29166 -<A HREF="manual-6.html#honor_followup_to">$honor_followup_to</A> configuration
29167 -variable is set.  Using list-reply will in this case also make sure
29168 -that the reply goes to the mailing list, even if it's not specified
29169 -in the list of recipients in the <CODE>Mail-Followup-To</CODE>.</P>
29170 -<P>Note that, when header editing is enabled, you can create a
29171 -<CODE>Mail-Followup-To</CODE> header manually.  Mutt will only auto-generate
29172 -this header if it doesn't exist when you send the message.</P>
29173 -
29174 -<P>The other method some mailing list admins use is to generate a
29175 -``Reply-To'' field which points back to the mailing list address rather
29176 -than the author of the message.  This can create problems when trying
29177 -to reply directly to the author in private, since most mail clients
29178 -will automatically reply to the address given in the ``Reply-To''
29179 -field.  Mutt uses the 
29180 -<A HREF="manual-6.html#reply_to">$reply_to</A>
29181 -variable to help decide which address to use.  If set, you will be
29182 -prompted as to whether or not you would like to use the address given in
29183 -the ``Reply-To'' field, or reply directly to the address given in the
29184 -``From'' field.  When unset, the ``Reply-To'' field will be used when
29185 -present.</P>
29186 -<P>The ``X-Label:'' header field can be used to further identify mailing
29187 -lists or list subject matter (or just to annotate messages
29188 -individually).  The 
29189 -<A HREF="manual-6.html#index_format">$index_format</A> variable's ``%y'' and
29190 -``%Y'' escapes can be used to expand ``X-Label:'' fields in the
29191 -index, and Mutt's pattern-matcher can match regular expressions to
29192 -``X-Label:'' fields with the ``&nbsp;y'' selector.  ``X-Label:'' is not a
29193 -standard message header field, but it can easily be inserted by procmail
29194 -and other mail filtering agents.</P>
29195 -<P>Lastly, Mutt has the ability to 
29196 -<A HREF="manual-6.html#sort">sort</A> the mailbox into
29197 -<A HREF="manual-2.html#threads">threads</A>.  A thread is a group of messages which all relate to the same
29198 -subject.  This is usually organized into a tree-like structure where a
29199 -message and all of its replies are represented graphically.  If you've ever
29200 -used a threaded news client, this is the same concept.  It makes dealing
29201 -with large volume mailing lists easier because you can easily delete
29202 -uninteresting threads and quickly find topics of value.</P>
29203 -
29204 -<H2><A NAME="ss4.9">4.9</A> <A HREF="manual.html#toc4.9">Delivery Status Notification (DSN) Support</A>
29205 -</H2>
29206 -
29207 -<P>RFC1894 defines a set of MIME content types for relaying information
29208 -about the status of electronic mail messages.  These can be thought of as
29209 -``return receipts.'' Berkeley sendmail 8.8.x currently has some command
29210 -line options in which the mail client can make requests as to what type
29211 -of status messages should be returned.</P>
29212 -<P>To support this, there are two variables. 
29213 -<A HREF="manual-6.html#dsn_notify">$dsn_notify</A> is used to request receipts for
29214 -different results (such as failed message, message delivered, etc.).
29215 -<A HREF="manual-6.html#dsn_return">$dsn_return</A> requests how much
29216 -of your message should be returned with the receipt (headers or full
29217 -message).  Refer to the man page on sendmail for more details on DSN.</P>
29218 -
29219 -<H2><A NAME="ss4.10">4.10</A> <A HREF="manual.html#toc4.10">POP3 Support (OPTIONAL)</A>
29220 -</H2>
29221 -
29222 -
29223 -<P>If Mutt was compiled with POP3 support (by running the <EM>configure</EM>
29224 -script with the <EM>--enable-pop</EM> flag), it has the ability to work
29225 -with mailboxes located on a remote POP3 server and fetch mail for local
29226 -browsing.</P>
29227 -<P>You can access the remote POP3 mailbox by selecting the folder
29228 -<CODE>pop://popserver/</CODE>.</P>
29229 -<P>You can select an alternative port by specifying it with the server, ie:
29230 -<CODE>pop://popserver:port/</CODE>.</P>
29231 -<P>You can also specify different username for each folder, ie:
29232 -<CODE>pop://username@popserver[:port]/</CODE>.</P>
29233 -<P>Polling for new mail is more expensive over POP3 than locally. For this
29234 -reason the frequency at which Mutt will check for mail remotely can be
29235 -controlled by the
29236 -<A HREF="manual-6.html#pop_checkinterval">$pop_checkinterval</A>
29237 -variable, which defaults to every 60 seconds.</P>
29238 -<P>If Mutt was compiled with SSL support (by running the <EM>configure</EM>
29239 -script with the <EM>--with-ssl</EM> flag), connections to POP3 servers
29240 -can be encrypted. This naturally requires that the server supports
29241 -SSL encrypted connections. To access a folder with POP3/SSL, you should
29242 -use pops: prefix, ie:
29243 -<CODE>pops://[username@]popserver[:port]/</CODE>.</P>
29244 -<P>Another way to access your POP3 mail is the <EM>fetch-mail</EM> function
29245 -(default: G).  It allows to connect to 
29246 -<A HREF="manual-6.html#pop_host">pop_host</A>, fetch all your new mail and place it in the
29247 -local 
29248 -<A HREF="manual-6.html#spoolfile">spoolfile</A>.  After this
29249 -point, Mutt runs exactly as if the mail had always been local.</P>
29250 -<P><B>Note:</B> If you only need to fetch all messages to local mailbox
29251 -you should consider using a specialized program, such as 
29252 -<A HREF="http://www.ccil.org/~esr/fetchmail">fetchmail</A></P>
29253 -
29254 -<H2><A NAME="ss4.11">4.11</A> <A HREF="manual.html#toc4.11">IMAP Support (OPTIONAL)</A>
29255 -</H2>
29256 -
29257 -
29258 -<P>If Mutt was compiled with IMAP support (by running the <EM>configure</EM>
29259 -script with the <EM>--enable-imap</EM> flag), it has the ability to work
29260 -with folders located on a remote IMAP server.</P>
29261 -<P>You can access the remote inbox by selecting the folder
29262 -<CODE>imap://imapserver/INBOX</CODE>, where <CODE>imapserver</CODE> is the name of the
29263 -IMAP server and <CODE>INBOX</CODE> is the special name for your spool mailbox on
29264 -the IMAP server. If you want to access another mail folder at the IMAP
29265 -server, you should use <CODE>imap://imapserver/path/to/folder</CODE> where
29266 -<CODE>path/to/folder</CODE> is the path of the folder you want to access.</P>
29267 -<P>You can select an alternative port by specifying it with the server, ie:
29268 -<CODE>imap://imapserver:port/INBOX</CODE>.</P>
29269 -<P>You can also specify different username for each folder, ie:
29270 -<CODE>imap://username@imapserver[:port]/INBOX</CODE>.</P>
29271 -<P>If Mutt was compiled with SSL support (by running the <EM>configure</EM>
29272 -script with the <EM>--with-ssl</EM> flag), connections to IMAP servers
29273 -can be encrypted. This naturally requires that the server supports
29274 -SSL encrypted connections. To access a folder with IMAP/SSL, you should
29275 -use <CODE>imaps://[username@]imapserver[:port]/path/to/folder</CODE> as your 
29276 -folder path.</P>
29277 -<P>Pine-compatible notation is also supported, ie
29278 -<CODE>{[username@]imapserver[:port][/ssl]}path/to/folder</CODE></P>
29279 -<P>Note that not all servers use / as the hierarchy separator.  Mutt should
29280 -correctly notice which separator is being used by the server and convert
29281 -paths accordingly.</P>
29282 -<P>When browsing folders on an IMAP server, you can toggle whether to look
29283 -at only the folders you are subscribed to, or all folders with the
29284 -<EM>toggle-subscribed</EM> command.  See also the 
29285 -<A HREF="manual-6.html#imap_list_subscribed">$imap_list_subscribed</A> variable.</P>
29286 -<P>Polling for new mail on an IMAP server can cause noticeable delays. So, you'll
29287 -want to carefully tune the
29288 -<A HREF="manual-6.html#mail_check">$mail_check</A>
29289 -and
29290 -<A HREF="manual-6.html#timeout">$timeout</A>
29291 -variables. Personally I use
29292 -<BLOCKQUOTE><CODE>
29293 -<PRE>
29294 -set mail_check=90
29295 -set timeout=15
29296 -</PRE>
29297 -</CODE></BLOCKQUOTE>
29298 -
29299 -with relatively good results over my slow modem line.</P>
29300 -<P>Note that if you are using mbox as the mail store on UW servers prior to
29301 -v12.250, the server has been reported to disconnect a client if another client
29302 -selects the same folder.</P>
29303 -
29304 -<H3>The Folder Browser</H3>
29305 -
29306 -
29307 -<P>As of version 1.2, mutt supports browsing mailboxes on an IMAP
29308 -server. This is mostly the same as the local file browser, with the
29309 -following differences:
29310 -<UL>
29311 -<LI>In lieu of file permissions, mutt displays the string "IMAP",
29312 -possibly followed by the symbol "+", indicating
29313 -that the entry contains both messages and subfolders. On
29314 -Cyrus-like servers folders will often contain both messages and
29315 -subfolders. </LI>
29316 -<LI>For the case where an entry can contain both messages and
29317 -subfolders, the selection key (bound to <CODE>enter</CODE> by default)
29318 -will choose to descend into the subfolder view. If you wish to view
29319 -the messages in that folder, you must use <CODE>view-file</CODE> instead
29320 -(bound to <CODE>space</CODE> by default).</LI>
29321 -<LI>You can delete mailboxes with the <CODE>delete-mailbox</CODE>
29322 -command (bound to <CODE>d</CODE> by default. You may also
29323 -<CODE>subscribe</CODE> and <CODE>unsubscribe</CODE> to mailboxes (normally
29324 -these are bound to <CODE>s</CODE> and <CODE>u</CODE>, respectively).</LI>
29325 -</UL>
29326 -</P>
29327 -
29328 -<H3>Authentication</H3>
29329 -
29330 -
29331 -<P>Mutt supports four authentication methods with IMAP servers: SASL,
29332 -GSSAPI, CRAM-MD5, and LOGIN (there is a patch by Grant Edwards to add
29333 -NTLM authentication for you poor exchange users out there, but it has
29334 -yet to be integrated into the main tree). There is also support for
29335 -the pseudo-protocol ANONYMOUS, which allows you to log in to a public
29336 -IMAP server without having an account. To use ANONYMOUS, simply make
29337 -your username blank or "anonymous".</P>
29338 -<P>SASL is a special super-authenticator, which selects among several protocols
29339 -(including GSSAPI, CRAM-MD5, ANONYMOUS, and DIGEST-MD5) the most secure
29340 -method available on your host and the server. Using some of these methods
29341 -(including DIGEST-MD5 and possibly GSSAPI), your entire session will be
29342 -encrypted and invisible to those teeming network snoops. It is the best
29343 -option if you have it. To use it, you must have the Cyrus SASL library
29344 -installed on your system and compile mutt with the <EM>--with-sasl</EM> flag.</P>
29345 -<P>Mutt will try whichever methods are compiled in and available on the server,
29346 -in the following order: SASL, ANONYMOUS, GSSAPI, CRAM-MD5, LOGIN.</P>
29347 -<P>There are a few variables which control authentication: 
29348 -<UL>
29349 -<LI>
29350 -<A HREF="manual-6.html#imap_user">$imap_user</A> - controls
29351 -the username under which you request authentication on the IMAP server,
29352 -for all authenticators. This is overridden by an explicit username in
29353 -the mailbox path (ie by using a mailbox name of the form
29354 -<CODE>{user@host}</CODE>).</LI>
29355 -<LI>
29356 -<A HREF="manual-6.html#imap_pass">$imap_pass</A> - a
29357 -password which you may preset, used by all authentication methods where
29358 -a password is needed.</LI>
29359 -<LI>
29360 -<A HREF="manual-6.html#imap_authenticators">$imap_authenticators</A> - a colon-delimited list of IMAP
29361 -authentication methods to try, in the order you wish to try them. If
29362 -specified, this overrides mutt's default (attempt everything, in the order
29363 -listed above).</LI>
29364 -</UL>
29365 -</P>
29366 -
29367 -<H2><A NAME="account-hook"></A> <A NAME="ss4.12">4.12</A> <A HREF="manual.html#toc4.12">Managing multiple IMAP/POP accounts (OPTIONAL)</A>
29368 -</H2>
29369 -
29370 -
29371 -<P>If you happen to have accounts on multiple IMAP and/or POP servers,
29372 -you may find managing all the authentication settings inconvenient and
29373 -error-prone.  The account-hook command may help. This hook works like
29374 -folder-hook but is invoked whenever you access a remote mailbox
29375 -(including inside the folder browser), not just when you open the
29376 -mailbox.</P>
29377 -<P>Some examples:</P>
29378 -<P>
29379 -<BLOCKQUOTE><CODE>
29380 -<PRE>
29381 -account-hook . 'unset imap_user; unset imap_pass; unset tunnel'
29382 -account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo'
29383 -account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"'
29384 -</PRE>
29385 -</CODE></BLOCKQUOTE>
29386 -</P>
29387 -
29388 -<H2><A NAME="urlview"></A> <A NAME="ss4.13">4.13</A> <A HREF="manual.html#toc4.13">Start a WWW Browser on URLs (EXTERNAL)</A>
29389 -</H2>
29390 -
29391 -<P>If a message contains URLs (<EM>unified ressource locator</EM> = address in the
29392 -WWW space like <EM>http://www.mutt.org/</EM>), it is efficient to get
29393 -a menu with all the URLs and start a WWW browser on one of them.  This
29394 -functionality is provided by the external urlview program which can be
29395 -retrieved at 
29396 -<A HREF="ftp://ftp.guug.de/pub/mutt/contrib/">ftp://ftp.guug.de/pub/mutt/contrib/</A> and the configuration commands:
29397 -<BLOCKQUOTE><CODE>
29398 -<PRE>
29399 -macro index \cb |urlview\n
29400 -macro pager \cb |urlview\n
29401 -</PRE>
29402 -</CODE></BLOCKQUOTE>
29403 -</P>
29404 -
29405 -<H2><A NAME="ss4.14">4.14 Compressed folders Support (OPTIONAL)</A>
29406 -</H2>
29407 -
29408 -
29409 -<P>If Mutt was compiled with compressed folders support (by running the
29410 -<EM>configure</EM> script with the <EM>--enable-compressed</EM> flag), Mutt
29411 -can open folders stored in an arbitrary format, provided that the user
29412 -has a script to convert from/to this format to one of the accepted.</P>
29413 -<P>The most common use is to open compressed archived folders e.g. with
29414 -gzip.</P>
29415 -<P>In addition, the user can provide a script that gets a folder in an
29416 -accepted format and appends its context to the folder in the
29417 -user-defined format, which may be faster than converting the entire
29418 -folder to the accepted format, appending to it and converting back to
29419 -the user-defined format.</P>
29420 -<P>There are three hooks defined (
29421 -<A HREF="#open-hook">open-hook</A>,
29422 -<A HREF="#close-hook">close-hook</A> and 
29423 -<A HREF="#append-hook">append-hook</A>) which define commands to uncompress and compress
29424 -a folder and to append messages to an existing compressed folder 
29425 -respectively.</P>
29426 -<P>For example:</P>
29427 -<P>
29428 -<BLOCKQUOTE><CODE>
29429 -<PRE>
29430 -open-hook \\.gz$ "gzip -cd %f &gt; %t" 
29431 -close-hook \\.gz$ "gzip -c %t &gt; %f"
29432 -append-hook \\.gz$ "gzip -c %t &gt;&gt; %f" 
29433 -</PRE>
29434 -</CODE></BLOCKQUOTE>
29435 -</P>
29436 -<P>You do not have to specify all of the commands. If you omit 
29437 -<A HREF="#append-hook">append-hook</A>, the folder will be open and
29438 -closed again each time you will add to it. If you omit 
29439 -<A HREF="#close-hook">close-hook</A> (or give empty command) , the
29440 -folder will be open in the  mode. If you specify 
29441 -<A HREF="#append-hook">append-hook</A> though you'll be able to append
29442 -to the folder.</P>
29443 -<P>Note that Mutt will only try to use hooks if the file is not in one of
29444 -the accepted formats. In particular, if the file is empty, mutt
29445 -supposes it is not compressed. This is important because it allows the
29446 -use of programs that do not have well defined extensions. Just use
29447 -&quot;.&quot; as a regexp. But this may be surprising if your
29448 -compressing script produces empty files. In this situation, unset 
29449 -<A HREF="manual-6.html#save_empty">$save_empty</A>, so that the compressed file
29450 -will be removed if you delete all of the messages.</P>
29451 -
29452 -<H3><A NAME="open-hook"></A> Open a compressed mailbox for reading</H3>
29453 -
29454 -<P>Usage: <CODE>open-hook</CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</P><HR>
29455 -
29456 -<A HREF="manual-5.html">Next</A>
29457 -<A HREF="manual-3.html">Previous</A>
29458 -<A HREF="manual.html#toc4">Contents</A>
29459 -</BODY>
29460 -</HTML>
29461 diff -uNr mutt-1.4.orig/doc/manual-5.html mutt-1.4/doc/manual-5.html
29462 --- mutt-1.4.orig/doc/manual-5.html     Wed May 29 11:29:56 2002
29463 +++ mutt-1.4/doc/manual-5.html  Thu Jan  1 01:00:00 1970
29464 @@ -1,545 +0,0 @@
29465 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
29466 -<HTML>
29467 -<HEAD>
29468 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
29469 - <TITLE>The Mutt E-Mail Client: Mutt's MIME Support</TITLE>
29470 - <LINK HREF="manual-6.html" REL=next>
29471 - <LINK HREF="manual-4.html" REL=previous>
29472 - <LINK HREF="manual.html#toc5" REL=contents>
29473 -</HEAD>
29474 -<BODY>
29475 -<A HREF="manual-6.html">Next</A>
29476 -<A HREF="manual-4.html">Previous</A>
29477 -<A HREF="manual.html#toc5">Contents</A>
29478 -<HR>
29479 -<H2><A NAME="s5">5.</A> <A HREF="manual.html#toc5">Mutt's MIME Support</A></H2>
29480 -
29481 -<P>Quite a bit of effort has been made to make Mutt the premier text-mode
29482 -MIME MUA.  Every effort has been made to provide the functionality that
29483 -the discerning MIME user requires, and the conformance to the standards
29484 -wherever possible.  When configuring Mutt for MIME, there are two extra
29485 -types of configuration files which Mutt uses.  One is the
29486 -<CODE>mime.types</CODE> file, which contains the mapping of file extensions to 
29487 -IANA MIME types.  The other is the <CODE>mailcap</CODE> file, which specifies
29488 -the external commands to use for handling specific MIME types.</P>
29489 -
29490 -<H2><A NAME="ss5.1">5.1</A> <A HREF="manual.html#toc5.1">Using MIME in Mutt</A>
29491 -</H2>
29492 -
29493 -<P>There are three areas/menus in Mutt which deal with MIME, they are the
29494 -pager (while viewing a message), the attachment menu and the compose
29495 -menu.</P>
29496 -
29497 -<H3>Viewing MIME messages in the pager</H3>
29498 -
29499 -<P>When you select a message from the index and view it in the pager, Mutt
29500 -decodes the message to a text representation.  Mutt internally supports
29501 -a number of MIME types, including <CODE>text/plain, text/enriched,
29502 -message/rfc822, and message/news</CODE>.  In addition, the export
29503 -controlled version of Mutt recognizes a variety of PGP MIME types,
29504 -including PGP/MIME and application/pgp.</P>
29505 -<P>Mutt will denote attachments with a couple lines describing them.
29506 -These lines are of the form:
29507 -<BLOCKQUOTE><CODE>
29508 -<PRE>
29509 -[-- Attachment #1: Description --]
29510 -[-- Type: text/plain, Encoding: 7bit, Size: 10000 --]
29511 -</PRE>
29512 -</CODE></BLOCKQUOTE>
29513 -
29514 -Where the <CODE>Description</CODE> is the description or filename given for the
29515 -attachment, and the <CODE>Encoding</CODE> is one of
29516 -<CODE>7bit/8bit/quoted-printable/base64/binary</CODE>.</P>
29517 -<P>If Mutt cannot deal with a MIME type, it will display a message like:
29518 -<BLOCKQUOTE><CODE>
29519 -<PRE>
29520 -[-- image/gif is unsupported (use 'v' to view this part) --]
29521 -</PRE>
29522 -</CODE></BLOCKQUOTE>
29523 -</P>
29524 -
29525 -<H3><A NAME="attach_menu"></A> The Attachment Menu</H3>
29526 -
29527 -<P>The default binding for <CODE>view-attachments</CODE> is `v', which displays the
29528 -attachment menu for a message.  The attachment menu displays a list of
29529 -the attachments in a message.  From the attachment menu, you can save,
29530 -print, pipe, delete, and view attachments.  You can apply these
29531 -operations to a group of attachments at once, by tagging the attachments
29532 -and by using the ``tag-prefix'' operator.  You can also reply to the
29533 -current message from this menu, and only the current attachment (or the
29534 -attachments tagged) will be quoted in your reply.  You can view
29535 -attachments as text, or view them using the mailcap viewer definition.</P>
29536 -<P>Finally, you can apply the usual message-related functions (like 
29537 -<A HREF="manual-2.html#resend-message">resend-message</A>, and the reply
29538 -and forward functions) to attachments of type <CODE>message/rfc822</CODE>.</P>
29539 -<P>See the help on the attachment menu for more information.</P>
29540 -
29541 -<H3><A NAME="compose_menu"></A> The Compose Menu</H3>
29542 -
29543 -<P>The compose menu is the menu you see before you send a message.  It
29544 -allows you to edit the recipient list, the subject, and other aspects
29545 -of your message.  It also contains a list of the attachments of your
29546 -message, including the main body.  From this menu, you can print, copy,
29547 -filter, pipe, edit, compose, review, and rename an attachment or a
29548 -list of tagged attachments.  You can also modifying the attachment
29549 -information, notably the type, encoding and description.</P>
29550 -<P>Attachments appear as follows:
29551 -<PRE>
29552 --   1 [text/plain, 7bit, 1K]             /tmp/mutt-euler-8082-0 &lt;no description>
29553 -    2 [applica/x-gunzip, base64, 422K]   ~/src/mutt-0.85.tar.gz &lt;no description>
29554 -</PRE>
29555 -</P>
29556 -<P>The '-' denotes that Mutt will delete the file after sending (or
29557 -postponing, or cancelling) the message.  It can be toggled with the
29558 -<CODE>toggle-unlink</CODE> command (default: u).  The next field is the MIME
29559 -content-type, and can be changed with the <CODE>edit-type</CODE> command
29560 -(default: ^T).  The next field is the encoding for the attachment,
29561 -which allows a binary message to be encoded for transmission on 7bit
29562 -links.  It can be changed with the <CODE>edit-encoding</CODE> command
29563 -(default: ^E).  The next field is the size of the attachment,
29564 -rounded to kilobytes or megabytes.  The next field is the filename,
29565 -which can be changed with the <CODE>rename-file</CODE> command (default: R).
29566 -The final field is the description of the attachment, and can be
29567 -changed with the <CODE>edit-description</CODE> command (default: d).</P>
29568 -
29569 -<H2><A NAME="ss5.2">5.2</A> <A HREF="manual.html#toc5.2">MIME Type configuration with <CODE>mime.types</CODE></A>
29570 -</H2>
29571 -
29572 -<P>When you add an attachment to your mail message, Mutt searches your
29573 -personal mime.types file at <CODE>${HOME}/.mime.types</CODE>, and then
29574 -the system mime.types file at <CODE>/usr/local/share/mutt/mime.types</CODE> or
29575 -<CODE>/etc/mime.types</CODE></P>
29576 -<P>The mime.types file consist of lines containing a MIME type and a space
29577 -separated list of extensions.  For example:
29578 -<BLOCKQUOTE><CODE>
29579 -<PRE>
29580 -application/postscript          ps eps
29581 -application/pgp                 pgp
29582 -audio/x-aiff                    aif aifc aiff
29583 -</PRE>
29584 -</CODE></BLOCKQUOTE>
29585 -
29586 -A sample <CODE>mime.types</CODE> file comes with the Mutt distribution, and
29587 -should contain most of the MIME types you are likely to use.  </P>
29588 -<P>If Mutt can not determine the mime type by the extension of the file you
29589 -attach, it will look at the file.  If the file is free of binary
29590 -information, Mutt will assume that the file is plain text, and mark it
29591 -as <CODE>text/plain</CODE>.  If the file contains binary information, then Mutt will
29592 -mark it as <CODE>application/octet-stream</CODE>.  You can change the MIME
29593 -type that Mutt assigns to an attachment by using the <CODE>edit-type</CODE>
29594 -command from the compose menu (default: ^T). The MIME type is actually a
29595 -major mime type followed by the sub-type, separated by a '/'. 6 major
29596 -types: application, text, image, video, audio, and model have been approved
29597 -after various internet discussions. Mutt recognises all of these if the 
29598 -appropriate entry is found in the mime.types file. It also recognises other
29599 -major mime types, such as the chemical type that is widely used in the 
29600 -molecular modelling community to pass molecular data in various forms to 
29601 -various molecular viewers. Non-recognised mime types should only be used 
29602 -if the recipient of the message is likely to be expecting such attachments.</P>
29603 -
29604 -<H2><A NAME="ss5.3">5.3</A> <A HREF="manual.html#toc5.3">MIME Viewer configuration with <CODE>mailcap</CODE></A>
29605 -</H2>
29606 -
29607 -<P>Mutt supports RFC 1524 MIME Configuration, in particular the Unix
29608 -specific format specified in Appendix A of RFC 1524.  This file format
29609 -is commonly referred to as the mailcap format.  Many MIME compliant
29610 -programs utilize the mailcap format, allowing you to specify handling
29611 -for all MIME types in one place for all programs.  Programs known to
29612 -use this format include Netscape, XMosaic, lynx and metamail.</P>
29613 -<P>In order to handle various MIME types that Mutt can not handle
29614 -internally, Mutt parses a series of external configuration files to
29615 -find an external handler.  The default search string for these files
29616 -is a colon delimited list set to
29617 -<BLOCKQUOTE><CODE>
29618 -<PRE>
29619 -${HOME}/.mailcap:/usr/local/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
29620 -</PRE>
29621 -</CODE></BLOCKQUOTE>
29622 -
29623 -where <CODE>$HOME</CODE> is your home directory.</P>
29624 -<P>In particular, the metamail distribution will install a mailcap file,
29625 -usually as <CODE>/usr/local/etc/mailcap</CODE>, which contains some baseline
29626 -entries.</P>
29627 -
29628 -<H3>The Basics of the mailcap file</H3>
29629 -
29630 -<P>A mailcap file consists of a series of lines which are comments, blank,
29631 -or definitions.</P>
29632 -<P>A comment line consists of a # character followed by anything you want.</P>
29633 -<P>A blank line is blank.</P>
29634 -<P>A definition line consists of a content type, a view command, and any
29635 -number of optional fields.  Each field of a definition line is divided
29636 -by a semicolon ';' character.</P>
29637 -<P>The content type is specified in the MIME standard type/subtype method.
29638 -For example,
29639 -<CODE>text/plain, text/html, image/gif, </CODE>
29640 -etc.  In addition, the mailcap format includes two formats for
29641 -wildcards, one using the special '*' subtype, the other is the implicit
29642 -wild, where you only include the major type.  For example, <CODE>image/*</CODE>, or
29643 -<CODE>video,</CODE> will match all image types and video types,
29644 -respectively.</P>
29645 -<P>The view command is a Unix command for viewing the type specified. There
29646 -are two different types of commands supported. The default is to send
29647 -the body of the MIME message to the command on stdin. You can change
29648 -this behaviour by using %s as a parameter to your view command.
29649 -This will cause Mutt to save the body of the MIME message to a temporary
29650 -file, and then call the view command with the %s replaced by
29651 -the name of the temporary file. In both cases, Mutt will turn over the
29652 -terminal to the view program until the program quits, at which time Mutt
29653 -will remove the temporary file if it exists.</P>
29654 -<P>So, in the simplest form, you can send a text/plain message to the
29655 -external pager more on stdin:
29656 -<BLOCKQUOTE><CODE>
29657 -<PRE>
29658 -text/plain; more
29659 -</PRE>
29660 -</CODE></BLOCKQUOTE>
29661 -
29662 -Or, you could send the message as a file:
29663 -<BLOCKQUOTE><CODE>
29664 -<PRE>
29665 -text/plain; more %s
29666 -</PRE>
29667 -</CODE></BLOCKQUOTE>
29668 -
29669 -Perhaps you would like to use lynx to interactively view a text/html 
29670 -message:
29671 -<BLOCKQUOTE><CODE>
29672 -<PRE>
29673 -text/html; lynx %s
29674 -</PRE>
29675 -</CODE></BLOCKQUOTE>
29676 -
29677 -In this case, lynx does not support viewing a file from stdin, so you
29678 -must use the %s syntax.
29679 -<B>Note:</B> <EM>Some older versions of lynx contain a bug where they
29680 -will check the mailcap file for a viewer for text/html.  They will find
29681 -the line which calls lynx, and run it.  This causes lynx to continuously
29682 -spawn itself to view the object.</EM></P>
29683 -<P>On the other hand, maybe you don't want to use lynx interactively, you
29684 -just want to have it convert the text/html to text/plain, then you can
29685 -use:
29686 -<BLOCKQUOTE><CODE>
29687 -<PRE>
29688 -text/html; lynx -dump %s | more
29689 -</PRE>
29690 -</CODE></BLOCKQUOTE>
29691 -</P>
29692 -<P>Perhaps you wish to use lynx to view text/html files, and a pager on
29693 -all other text formats, then you would use the following:
29694 -<BLOCKQUOTE><CODE>
29695 -<PRE>
29696 -text/html; lynx %s
29697 -text/*; more
29698 -</PRE>
29699 -</CODE></BLOCKQUOTE>
29700 -
29701 -This is the simplest form of a mailcap file.</P>
29702 -
29703 -<H3>Secure use of mailcap</H3>
29704 -
29705 -<P>The interpretion of shell meta-characters embedded in MIME parameters
29706 -can lead to security problems in general.  Mutt tries to quote parameters
29707 -in expansion of %s syntaxes properly, and avoids risky characters by
29708 -substituting them, see the 
29709 -<A HREF="manual-6.html#mailcap_sanitize">mailcap_sanitize</A> variable.</P>
29710 -<P>Although mutt's procedures to invoke programs with mailcap seem to be
29711 -safe, there are other applications parsing mailcap, maybe taking less care
29712 -of it.  Therefore you should pay attention to the following rules:</P>
29713 -<P><EM>Keep the %-expandos away from shell quoting.</EM>
29714 -Don't quote them with single or double quotes.  Mutt does this for
29715 -you, the right way, as should any other program which interprets
29716 -mailcap.  Don't put them into backtick expansions.  Be highly careful
29717 -with eval statements, and avoid them if possible at all.  Trying to fix
29718 -broken behaviour with quotes introduces new leaks - there is no
29719 -alternative to correct quoting in the first place.</P>
29720 -<P>If you have to use the %-expandos' values in context where you need
29721 -quoting or backtick expansions, put that value into a shell variable
29722 -and reference the shell variable where necessary, as in the following
29723 -example (using <CODE>$charset</CODE> inside the backtick expansion is safe,
29724 -since it is not itself subject to any further expansion):</P>
29725 -<P>
29726 -<BLOCKQUOTE><CODE>
29727 -<PRE>
29728 -text/test-mailcap-bug; cat %s; copiousoutput; test=charset=%{charset} \
29729 -        &amp;&amp; test "`echo $charset | tr '[A-Z]' '[a-z]'`" != iso-8859-1
29730 -</PRE>
29731 -</CODE></BLOCKQUOTE>
29732 -</P>
29733 -
29734 -<H3>Advanced mailcap Usage</H3>
29735 -
29736 -
29737 -
29738 -<H3>Optional Fields</H3>
29739 -
29740 -<P>In addition to the required content-type and view command fields, you
29741 -can add semi-colon ';' separated fields to set flags and other options.
29742 -Mutt recognizes the following optional fields:
29743 -<DL>
29744 -<DT><B>copiousoutput</B><DD><P>This flag tells Mutt that the command passes possibly large amounts of
29745 -text on stdout.  This causes Mutt to invoke a pager (either the internal
29746 -pager or the external pager defined by the pager variable) on the output
29747 -of the view command.  Without this flag, Mutt assumes that the command
29748 -is interactive.  One could use this to replace the pipe to <CODE>more</CODE>
29749 -in the <CODE>lynx -dump</CODE> example in the Basic section:
29750 -<BLOCKQUOTE><CODE>
29751 -<PRE>
29752 -text/html; lynx -dump %s ; copiousoutput
29753 -</PRE>
29754 -</CODE></BLOCKQUOTE>
29755 -
29756 -This will cause lynx to format the text/html output as text/plain
29757 -and Mutt will use your standard pager to display the results.</P>
29758 -<DT><B>needsterminal</B><DD><P>Mutt uses this flag when viewing attachments with 
29759 -<A HREF="#auto_view">autoview</A>, in order to decide whether it should honor the setting
29760 -of the 
29761 -<A HREF="manual-6.html#wait_key">$wait_key</A> variable or
29762 -not.  When an attachment is viewed using an interactive program, and the
29763 -corresponding mailcap entry has a <EM>needsterminal</EM> flag, Mutt will use
29764 -<A HREF="manual-6.html#wait_key">$wait_key</A> and the exit status
29765 -of the program to decide if it will ask you to press a key after the
29766 -external program has exited.  In all other situations it will not prompt
29767 -you for a key.</P>
29768 -<DT><B>compose=&lt;command&gt;</B><DD><P>This flag specifies the command to use to create a new attachment of a
29769 -specific MIME type.  Mutt supports this from the compose menu.</P>
29770 -<DT><B>composetyped=&lt;command&gt;</B><DD><P>This flag specifies the command to use to create a new attachment of a
29771 -specific MIME type.  This command differs from the compose command in
29772 -that mutt will expect standard MIME headers on the data.  This can be
29773 -used to specify parameters, filename, description, etc. for a new
29774 -attachment.   Mutt supports this from the compose menu.</P>
29775 -<DT><B>print=&lt;command&gt;</B><DD><P>This flag specifies the command to use to print a specific MIME type.
29776 -Mutt supports this from the attachment and compose menus.</P>
29777 -<DT><B>edit=&lt;command&gt;</B><DD><P>This flag specifies the command to use to edit a specific MIME type.  
29778 -Mutt supports this from the compose menu, and also uses it to compose
29779 -new attachments.  Mutt will default to the defined editor for text
29780 -attachments.</P>
29781 -<DT><B>nametemplate=&lt;template&gt;</B><DD><P>This field specifies the format for the file denoted by %s in the
29782 -command fields.  Certain programs will require a certain file extension,
29783 -for instance, to correctly view a file.  For instance, lynx will only
29784 -interpret a file as <CODE>text/html</CODE> if the file ends in <CODE>.html</CODE>.
29785 -So, you would specify lynx as a <CODE>text/html</CODE> viewer with a line in
29786 -the mailcap file like:
29787 -<BLOCKQUOTE><CODE>
29788 -<PRE>
29789 -text/html; lynx %s; nametemplate=%s.html
29790 -</PRE>
29791 -</CODE></BLOCKQUOTE>
29792 -</P>
29793 -<DT><B>test=&lt;command&gt;</B><DD><P>This field specifies a command to run to test whether this mailcap
29794 -entry should be used.  The command is defined with the command expansion
29795 -rules defined in the next section.  If the command returns 0, then the
29796 -test passed, and Mutt uses this entry.  If the command returns non-zero,
29797 -then the test failed, and Mutt continues searching for the right entry.
29798 -<B>Note:</B> <EM>the content-type must match before Mutt performs the test.</EM>
29799 -For example:
29800 -<BLOCKQUOTE><CODE>
29801 -<PRE>
29802 -text/html; netscape -remote 'openURL(%s)' ; test=RunningX
29803 -text/html; lynx %s
29804 -</PRE>
29805 -</CODE></BLOCKQUOTE>
29806 -
29807 -In this example, Mutt will run the program RunningX which will return 0
29808 -if the X Window manager is running, and non-zero if it isn't.  If
29809 -RunningX returns 0, then Mutt will call netscape to display the
29810 -text/html object.  If RunningX doesn't return 0, then Mutt will go on
29811 -to the next entry and use lynx to display the text/html object.</P>
29812 -</DL>
29813 -</P>
29814 -
29815 -<H3>Search Order</H3>
29816 -
29817 -<P>When searching for an entry in the mailcap file, Mutt will search for
29818 -the most useful entry for its purpose.  For instance, if you are
29819 -attempting to print an <CODE>image/gif</CODE>, and you have the following
29820 -entries in your mailcap file, Mutt will search for an entry with the
29821 -print command:
29822 -<BLOCKQUOTE><CODE>
29823 -<PRE>
29824 -image/*;        xv %s
29825 -image/gif;      ; print= anytopnm %s | pnmtops | lpr; \
29826 -                nametemplate=%s.gif
29827 -</PRE>
29828 -</CODE></BLOCKQUOTE>
29829 -
29830 -Mutt will skip the <CODE>image/*</CODE> entry and use the <CODE>image/gif</CODE>
29831 -entry with the print command.</P>
29832 -<P>In addition, you can use this with 
29833 -<A HREF="#auto_view">Autoview</A> 
29834 -to denote two commands for viewing an attachment, one to be viewed
29835 -automatically, the other to be viewed interactively from the attachment
29836 -menu.  In addition, you can then use the test feature to determine which
29837 -viewer to use interactively depending on your environment.
29838 -<BLOCKQUOTE><CODE>
29839 -<PRE>
29840 -text/html;      netscape -remote 'openURL(%s)' ; test=RunningX
29841 -text/html;      lynx %s; nametemplate=%s.html
29842 -text/html;      lynx -dump %s; nametemplate=%s.html; copiousoutput
29843 -</PRE>
29844 -</CODE></BLOCKQUOTE>
29845 -
29846 -For 
29847 -<A HREF="#auto_view">Autoview</A>, Mutt will choose the third
29848 -entry because of the copiousoutput tag.  For interactive viewing, Mutt
29849 -will run the program RunningX to determine if it should use the first
29850 -entry.  If the program returns non-zero, Mutt will use the second entry
29851 -for interactive viewing.</P>
29852 -
29853 -<H3>Command Expansion</H3>
29854 -
29855 -<P>The various commands defined in the mailcap files are passed to the
29856 -<CODE>/bin/sh</CODE> shell using the system() function.  Before the
29857 -command is passed to <CODE>/bin/sh -c</CODE>, it is parsed to expand
29858 -various special parameters with information from Mutt.  The keywords
29859 -Mutt expands are:
29860 -<DL>
29861 -<DT><B>%s</B><DD><P>As seen in the basic mailcap section, this variable is expanded
29862 -to a filename specified by the calling program.  This file contains
29863 -the body of the message to view/print/edit or where the composing
29864 -program should place the results of composition.  In addition, the
29865 -use of this keyword causes Mutt to not pass the body of the message
29866 -to the view/print/edit program on stdin.</P>
29867 -<DT><B>%t</B><DD><P>Mutt will expand %t to the text representation of the content
29868 -type of the message in the same form as the first parameter of the
29869 -mailcap definition line, ie <CODE>text/html</CODE> or
29870 -<CODE>image/gif</CODE>.</P>
29871 -<DT><B>%{&lt;parameter&gt;}</B><DD><P>Mutt will expand this to the value of the specified parameter
29872 -from the Content-Type: line of the mail message.  For instance, if
29873 -Your mail message contains:
29874 -<BLOCKQUOTE><CODE>
29875 -<PRE>
29876 -Content-Type: text/plain; charset=iso-8859-1
29877 -</PRE>
29878 -</CODE></BLOCKQUOTE>
29879 -
29880 -then Mutt will expand %{charset} to iso-8859-1.  The default metamail
29881 -mailcap file uses this feature to test the charset to spawn an xterm
29882 -using the right charset to view the message.</P>
29883 -<DT><B>\%</B><DD><P>This will be replaced by a %</P>
29884 -</DL>
29885 -
29886 -Mutt does not currently support the %F and %n keywords
29887 -specified in RFC 1524.  The main purpose of these parameters is for
29888 -multipart messages, which is handled internally by Mutt.</P>
29889 -
29890 -<H3>Example mailcap files</H3>
29891 -
29892 -<P>This mailcap file is fairly simple and standard:
29893 -<HR>
29894 -<PRE>
29895 -# I'm always running X :)
29896 -video/*;        xanim %s > /dev/null
29897 -image/*;        xv %s > /dev/null
29898 -
29899 -# I'm always running netscape (if my computer had more memory, maybe)
29900 -text/html;      netscape -remote 'openURL(%s)'
29901 -</PRE>
29902 -<HR>
29903 -</P>
29904 -<P>This mailcap file shows quite a number of examples:</P>
29905 -<P>
29906 -<HR>
29907 -<PRE>
29908 -# Use xanim to view all videos   Xanim produces a header on startup,
29909 -# send that to /dev/null so I don't see it
29910 -video/*;        xanim %s > /dev/null
29911 -
29912 -# Send html to a running netscape by remote
29913 -text/html;      netscape -remote 'openURL(%s)'; test=RunningNetscape
29914 -
29915 -# If I'm not running netscape but I am running X, start netscape on the
29916 -# object
29917 -text/html;      netscape %s; test=RunningX
29918 -
29919 -# Else use lynx to view it as text
29920 -text/html;      lynx %s
29921 -
29922 -# This version would convert the text/html to text/plain
29923 -text/html;      lynx -dump %s; copiousoutput
29924 -
29925 -# enriched.sh converts text/enriched to text/html and then uses 
29926 -# lynx -dump to convert it to text/plain
29927 -text/enriched;  enriched.sh ; copiousoutput
29928 -
29929 -# I use enscript to print text in two columns to a page
29930 -text/*;         more %s; print=enscript -2Gr %s
29931 -
29932 -# Netscape adds a flag to tell itself to view jpegs internally
29933 -image/jpeg;xv %s; x-mozilla-flags=internal
29934 -
29935 -# Use xv to view images if I'm running X
29936 -# In addition, this uses the \ to extend the line and set my editor
29937 -# for images
29938 -image/*;xv %s; test=RunningX; \
29939 -        edit=xpaint %s
29940 -
29941 -# Convert images to text using the netpbm tools
29942 -image/*;  (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm |
29943 -pbmtoascii -1x2 ) 2>&amp;1 ; copiousoutput
29944 -
29945 -# Send excel spreadsheets to my NT box
29946 -application/ms-excel; open.pl %s
29947 -</PRE>
29948 -<HR>
29949 -</P>
29950 -
29951 -<H2><A NAME="auto_view"></A> <A NAME="ss5.4">5.4</A> <A HREF="manual.html#toc5.4">MIME Autoview</A>
29952 -</H2>
29953 -
29954 -<P>In addition to explicitly telling Mutt to view an attachment with the
29955 -MIME viewer defined in the mailcap file, Mutt has support for
29956 -automatically viewing MIME attachments while in the pager.</P>
29957 -<P>To work, you must define a viewer in the mailcap file which uses the 
29958 -<CODE>copiousoutput</CODE> option to denote that it is non-interactive.
29959 -Usually, you also use the entry to convert the attachment to a text
29960 -representation which you can view in the pager.</P>
29961 -<P>You then use the <CODE>auto_view</CODE> muttrc command to list the
29962 -content-types that you wish to view automatically.</P>
29963 -<P>For instance, if you set auto_view to:
29964 -<BLOCKQUOTE><CODE>
29965 -<PRE>
29966 -auto_view text/html text/enriched application/x-gunzip application/postscript image/gif application/x-tar-gz
29967 -</PRE>
29968 -</CODE></BLOCKQUOTE>
29969 -</P>
29970 -<P>Mutt could use the following mailcap entries to automatically view
29971 -attachments of these types.
29972 -<BLOCKQUOTE><CODE>
29973 -<PRE>
29974 -text/html;      lynx -dump %s; copiousoutput; nametemplate=%s.html
29975 -text/enriched;  enriched.sh  ; copiousoutput
29976 -image/*;        anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbmtoascii ; copiousoutput
29977 -application/x-gunzip;   gzcat; copiousoutput
29978 -application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
29979 -application/postscript; ps2ascii %s; copiousoutput
29980 -</PRE>
29981 -</CODE></BLOCKQUOTE>
29982 -</P>
29983 -
29984 -<H2><A NAME="alternative_order"></A> <A NAME="ss5.5">5.5</A> <A HREF="manual.html#toc5.5">MIME Multipart/Alternative</A>
29985 -</H2>
29986 -
29987 -<P>Mutt has some heuristics for determining which attachment of a
29988 -multipart/alternative type to display.  First, mutt will check the 
29989 -alternative_order list to determine if one of the available types
29990 -is preferred.  The alternative_order list consists of a number of
29991 -mimetypes in order, including support for implicit and explicit
29992 -wildcards, for example:
29993 -<BLOCKQUOTE><CODE>
29994 -<PRE>
29995 -alternative_order text/enriched text/plain text application/postscript image/*
29996 -</PRE>
29997 -</CODE></BLOCKQUOTE>
29998 -</P>
29999 -<P>Next, mutt will check if any of the types have a defined 
30000 -<A HREF="#auto_view">auto_view</A>, and use that.  Failing
30001 -that, Mutt will look for any text type.  As a last attempt, mutt will
30002 -look for any type it knows how to handle.</P>
30003 -
30004 -<HR>
30005 -<A HREF="manual-6.html">Next</A>
30006 -<A HREF="manual-4.html">Previous</A>
30007 -<A HREF="manual.html#toc5">Contents</A>
30008 -</BODY>
30009 -</HTML>
30010 diff -uNr mutt-1.4.orig/doc/manual-6.html mutt-1.4/doc/manual-6.html
30011 --- mutt-1.4.orig/doc/manual-6.html     Sun Nov  3 21:42:51 2002
30012 +++ mutt-1.4/doc/manual-6.html  Thu Jan  1 01:00:00 1970
30013 @@ -1,3500 +0,0 @@
30014 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
30015 -<HTML>
30016 -<HEAD>
30017 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
30018 - <TITLE>The Mutt E-Mail Client: Reference</TITLE>
30019 - <LINK HREF="manual-7.html" REL=next>
30020 - <LINK HREF="manual-5.html" REL=previous>
30021 - <LINK HREF="manual.html#toc6" REL=contents>
30022 -</HEAD>
30023 -<BODY>
30024 -<A HREF="manual-7.html">Next</A>
30025 -<A HREF="manual-5.html">Previous</A>
30026 -<A HREF="manual.html#toc6">Contents</A>
30027 -<HR>
30028 -<H2><A NAME="s6">6.</A> <A HREF="manual.html#toc6">Reference</A></H2>
30029 -
30030 -<H2><A NAME="commandline"></A> <A NAME="ss6.1">6.1</A> <A HREF="manual.html#toc6.1">Command line options</A>
30031 -</H2>
30032 -
30033 -<P>Running <CODE>mutt</CODE> with no arguments will make Mutt attempt to read your spool
30034 -mailbox.  However, it is possible to read other mailboxes and
30035 -to send messages from the command line as well.</P>
30036 -<P>
30037 -<BLOCKQUOTE><CODE>
30038 -<PRE>
30039 --a      attach a file to a message
30040 --b      specify a blind carbon-copy (BCC) address
30041 --c      specify a carbon-copy (Cc) address
30042 --e      specify a config command to be run after initilization files are read
30043 --f      specify a mailbox to load
30044 --F      specify an alternate file to read initialization commands
30045 --h      print help on command line options
30046 --H      specify a draft file from which to read a header and body
30047 --i      specify a file to include in a message composition
30048 --m      specify a default mailbox type
30049 --n      do not read the system Muttrc
30050 --p      recall a postponed message
30051 --R      open mailbox in read-only mode
30052 --s      specify a subject (enclose in quotes if it contains spaces)
30053 --v      show version number and compile-time definitions
30054 --x      simulate the mailx(1) compose mode
30055 --y      show a menu containing the files specified by the mailboxes command
30056 --z      exit immediately if there are no messages in the mailbox
30057 --Z      open the first folder with new message,exit immediately if none
30058 -</PRE>
30059 -</CODE></BLOCKQUOTE>
30060 -</P>
30061 -<P>To read messages in a mailbox</P>
30062 -<P><CODE>mutt</CODE> [ -nz ] [ -F <EM>muttrc</EM> ] [ -m <EM>type</EM> ] [ -f <EM>mailbox</EM> ] </P>
30063 -<P>To compose a new message</P>
30064 -<P><CODE>mutt</CODE> [ -n ] [ -F <EM>muttrc</EM> ] [ -a <EM>file</EM> ] [ -c <EM>address</EM> ] [ -i <EM>filename</EM> ] [ -s <EM>subject</EM> ] <EM>address</EM> [ <EM>address</EM> ... ] </P>
30065 -<P>Mutt also supports a ``batch'' mode to send prepared messages.  Simply redirect
30066 -input from the file you wish to send.  For example,</P>
30067 -<P><CODE>mutt -s &quot;data set for run #2&quot; professor@bigschool.edu
30068 -&lt; ~/run2.dat</CODE></P>
30069 -<P>This command will send a message to ``professor@bigschool.edu'' with a subject
30070 -of ``data set for run #2''.  In the body of the message will be the contents
30071 -of the file ``~/run2.dat''.</P>
30072 -
30073 -<H2><A NAME="commands"></A> <A NAME="ss6.2">6.2</A> <A HREF="manual.html#toc6.2">Configuration Commands</A>
30074 -</H2>
30075 -
30076 -<P>The following are the commands understood by mutt.</P>
30077 -<P>
30078 -<UL>
30079 -<LI><CODE>
30080 -<A HREF="manual-4.html#account-hook">account-hook</A></CODE> <EM>pattern</EM> <EM>command</EM></LI>
30081 -<LI><CODE>
30082 -<A HREF="manual-3.html#alias">alias</A></CODE> <EM>key</EM> <EM>address</EM> [ , <EM>address</EM>, ... ]</LI>
30083 -<LI><CODE>
30084 -<A HREF="manual-3.html#alias">unalias</A></CODE> [ * | <EM>key</EM> ... ]</LI>
30085 -<LI><CODE>
30086 -<A HREF="manual-5.html#alternative_order">alternative_order</A></CODE> <EM>mimetype</EM> [ <EM>mimetype</EM> ... ]</LI>
30087 -<LI><CODE>
30088 -<A HREF="manual-4.html#append-hook">append-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
30089 -<LI><CODE>
30090 -<A HREF="manual-5.html#auto_view">auto_view</A></CODE> <EM>mimetype</EM> [ <EM>mimetype</EM> ... ]</LI>
30091 -<LI><CODE>
30092 -<A HREF="manual-3.html#bind">bind</A></CODE> <EM>map</EM> <EM>key</EM> <EM>function</EM></LI>
30093 -<LI><CODE>
30094 -<A HREF="manual-3.html#charset-hook">charset-hook</A></CODE> <EM>alias</EM> <EM>charset</EM></LI>
30095 -<LI><CODE>
30096 -<A HREF="manual-4.html#close-hook">close-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
30097 -<LI><CODE>
30098 -<A HREF="manual-3.html#color">color</A></CODE> <EM>object</EM> <EM>foreground</EM> <EM>background</EM> [ <EM>regexp</EM> ]</LI>
30099 -<LI><CODE>
30100 -<A HREF="manual-3.html#color">uncolor</A></CODE> <EM>index</EM> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
30101 -<LI><CODE>
30102 -<A HREF="manual-3.html#exec">exec</A></CODE> <EM>function</EM> [ <EM>function</EM> ... ]</LI>
30103 -<LI><CODE>
30104 -<A HREF="manual-3.html#fcc-hook">fcc-hook</A></CODE> <EM>pattern</EM> <EM>mailbox</EM></LI>
30105 -<LI><CODE>
30106 -<A HREF="manual-3.html#fcc-save-hook">fcc-save-hook</A></CODE> <EM>pattern</EM> <EM>mailbox</EM></LI>
30107 -<LI><CODE>
30108 -<A HREF="manual-3.html#folder-hook">folder-hook</A></CODE> <EM>pattern</EM> <EM>command</EM></LI>
30109 -<LI><CODE>
30110 -<A HREF="manual-3.html#hdr_order">hdr_order</A></CODE> <EM>header</EM> [ <EM>header</EM> ... ]</LI>
30111 -<LI><CODE>
30112 -<A HREF="manual-3.html#hdr_order">unhdr_order</A></CODE> <EM>header</EM> [ <EM>header</EM> ... ]</LI>
30113 -<LI><CODE>
30114 -<A HREF="manual-3.html#charset-hook">iconv-hook</A></CODE> <EM>charset</EM> <EM>local-charset</EM></LI>
30115 -<LI><CODE>
30116 -<A HREF="manual-3.html#ignore">ignore</A></CODE> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
30117 -<LI><CODE>
30118 -<A HREF="manual-3.html#ignore">unignore</A></CODE> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
30119 -<LI><CODE>
30120 -<A HREF="manual-3.html#lists">lists</A></CODE> <EM>address</EM> [ <EM>address</EM> ... ] </LI>
30121 -<LI><CODE>
30122 -<A HREF="manual-3.html#lists">unlists</A></CODE> <EM>address</EM> [ <EM>address</EM> ... ] </LI>
30123 -<LI><CODE>
30124 -<A HREF="manual-3.html#macro">macro</A></CODE> <EM>menu</EM> <EM>key</EM> <EM>sequence</EM> [ <EM>description</EM> ] </LI>
30125 -<LI><CODE>
30126 -<A HREF="manual-3.html#mailboxes">mailboxes</A></CODE> <EM>filename</EM> [ <EM>filename</EM> ... ]</LI>
30127 -<LI><CODE>
30128 -<A HREF="manual-3.html#mbox-hook">mbox-hook</A></CODE> <EM>pattern</EM> <EM>mailbox</EM></LI>
30129 -<LI><CODE>
30130 -<A HREF="manual-3.html#message-hook">message-hook</A></CODE> <EM>pattern</EM> <EM>command</EM></LI>
30131 -<LI><CODE>
30132 -<A HREF="manual-3.html#color">mono</A></CODE> <EM>object attribute</EM> [ <EM>regexp</EM> ]</LI>
30133 -<LI><CODE>
30134 -<A HREF="manual-3.html#color">unmono</A></CODE> <EM>index</EM> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
30135 -<LI><CODE>
30136 -<A HREF="manual-3.html#my_hdr">my_hdr</A></CODE> <EM>string</EM></LI>
30137 -<LI><CODE>
30138 -<A HREF="manual-3.html#my_hdr">unmy_hdr</A></CODE> <EM>field</EM> [ <EM>field</EM> ... ]</LI>
30139 -<LI><CODE>
30140 -<A HREF="manual-4.html#open-hook">open-hook</A></CODE> <EM>regexp</EM> &quot;<EM>command</EM>&quot;</LI>
30141 -<LI><CODE>
30142 -<A HREF="manual-3.html#pgp-hook">pgp-hook</A></CODE> <EM>pattern</EM> <EM>key-id</EM></LI>
30143 -<LI><CODE>
30144 -<A HREF="manual-3.html#push">push</A></CODE> <EM>string</EM></LI>
30145 -<LI><CODE>
30146 -<A HREF="manual-3.html#set">reset</A></CODE> <EM>variable</EM> [<EM>variable</EM> ... ]</LI>
30147 -<LI><CODE>
30148 -<A HREF="manual-3.html#save-hook">save-hook</A></CODE> <EM>regexp</EM> <EM>filename</EM></LI>
30149 -<LI><CODE>
30150 -<A HREF="manual-3.html#score-command">score</A></CODE> <EM>pattern</EM> <EM>value</EM></LI>
30151 -<LI><CODE>
30152 -<A HREF="manual-3.html#score-command">unscore</A></CODE> <EM>pattern</EM> [ <EM>pattern</EM> ... ]</LI>
30153 -<LI><CODE>
30154 -<A HREF="manual-3.html#send-hook">send-hook</A></CODE> <EM>regexp</EM> <EM>command</EM></LI>
30155 -<LI><CODE>
30156 -<A HREF="manual-3.html#set">set</A></CODE> [no|inv]<EM>variable</EM>[=<EM>value</EM>] [ <EM>variable</EM> ... ]</LI>
30157 -<LI><CODE>
30158 -<A HREF="manual-3.html#set">unset</A></CODE> <EM>variable</EM> [<EM>variable</EM> ... ]</LI>
30159 -<LI><CODE>
30160 -<A HREF="manual-3.html#source">source</A></CODE> <EM>filename</EM></LI>
30161 -<LI><CODE>
30162 -<A HREF="manual-3.html#lists">subscribe</A></CODE> <EM>address</EM> [ <EM>address</EM> ... ] </LI>
30163 -<LI><CODE>
30164 -<A HREF="manual-3.html#lists">unsubscribe</A></CODE> <EM>address</EM> [ <EM>address</EM> ... ] </LI>
30165 -<LI><CODE>
30166 -<A HREF="manual-3.html#set">toggle</A></CODE> <EM>variable</EM> [<EM>variable</EM> ... ]</LI>
30167 -<LI><CODE>
30168 -<A HREF="manual-3.html#unhook">unhook</A></CODE> <EM>hook-type</EM></LI>
30169 -</UL>
30170 -</P>
30171 -
30172 -<H2><A NAME="variables"></A> <A NAME="ss6.3">6.3</A> <A HREF="manual.html#toc6.3">Configuration variables</A>
30173 -</H2>
30174 -
30175 -
30176 -
30177 -
30178 -<H3><A NAME="abort_nosubject"></A> abort_nosubject</H3>
30179 -
30180 -<P>Type: quadoption<BR>
30181 -Default: ask-yes</P>
30182 -
30183 -<P>If set to <EM>yes</EM>, when composing messages and no subject is given
30184 -at the subject prompt, composition will be aborted.  If set to
30185 -<EM>no</EM>, composing messages with no subject given at the subject
30186 -prompt will never be aborted.</P>
30187 -
30188 -
30189 -<H3><A NAME="abort_unmodified"></A> abort_unmodified</H3>
30190 -
30191 -<P>Type: quadoption<BR>
30192 -Default: yes</P>
30193 -
30194 -<P>If set to <EM>yes</EM>, composition will automatically abort after
30195 -editing the message body if no changes are made to the file (this
30196 -check only happens after the <EM>first</EM> edit of the file).  When set
30197 -to <EM>no</EM>, composition will never be aborted.</P>
30198 -
30199 -
30200 -<H3><A NAME="alias_file"></A> alias_file</H3>
30201 -
30202 -<P>Type: path<BR>
30203 -Default: &quot;~/.muttrc&quot;</P>
30204 -
30205 -<P>The default file in which to save aliases created by the 
30206 -``
30207 -<A HREF="manual-2.html#create-alias">create-alias</A>'' function.</P>
30208 -<P><B>Note:</B> Mutt will not automatically source this file; you must
30209 -explicitly use the ``
30210 -<A HREF="manual-3.html#source">source</A>'' command for it to be executed.</P>
30211 -
30212 -
30213 -<H3><A NAME="alias_format"></A> alias_format</H3>
30214 -
30215 -<P>Type: string<BR>
30216 -Default: &quot;%4n %2f %t %-10a   %r&quot;</P>
30217 -
30218 -<P>Specifies the format of the data displayed for the `alias' menu.  The
30219 -following printf(3)-style sequences are available:</P>
30220 -
30221 -<P>
30222 -<DL>
30223 -<DT><B>%a </B><DD><P>alias name</P>
30224 -<DT><B>%f </B><DD><P>flags - currently, a &quot;d&quot; for an alias marked for deletion</P>
30225 -<DT><B>%n </B><DD><P>index number</P>
30226 -<DT><B>%r </B><DD><P>address which alias expands to</P>
30227 -<DT><B>%t </B><DD><P>character which indicates if the alias is tagged for inclusion</P>
30228 -</DL>
30229 -</P>
30230 -
30231 -
30232 -<H3><A NAME="allow_8bit"></A> allow_8bit</H3>
30233 -
30234 -<P>Type: boolean<BR>
30235 -Default: yes</P>
30236 -
30237 -<P>Controls whether 8-bit data is converted to 7-bit using either Quoted-
30238 -Printable or Base64 encoding when sending mail.</P>
30239 -
30240 -
30241 -<H3><A NAME="allow_ansi"></A> allow_ansi</H3>
30242 -
30243 -<P>Type: boolean<BR>
30244 -Default: no</P>
30245 -
30246 -<P>Controls whether ANSI color codes in messages (and color tags in 
30247 -rich text messages) are to be interpreted.
30248 -Messages containing these codes are rare, but if this option is set,
30249 -their text will be colored accordingly. Note that this may override
30250 -your color choices, and even present a security problem, since a
30251 -message could include a line like &quot;[-- PGP output follows ...&quot; and
30252 -give it the same color as your attachment color.</P>
30253 -
30254 -
30255 -<H3><A NAME="alternates"></A> alternates</H3>
30256 -
30257 -<P>Type: regular expression<BR>
30258 -Default: &quot;&quot;</P>
30259 -
30260 -<P>A regexp that allows you to specify <EM>alternate</EM> addresses where
30261 -you receive mail.  This affects Mutt's idea about messages from you
30262 -and addressed to you.</P>
30263 -
30264 -
30265 -<H3><A NAME="arrow_cursor"></A> arrow_cursor</H3>
30266 -
30267 -<P>Type: boolean<BR>
30268 -Default: no</P>
30269 -
30270 -<P>When set, an arrow (``-&gt;'') will be used to indicate the current entry
30271 -in menus instead of hiliting the whole line.  On slow network or modem
30272 -links this will make response faster because there is less that has to
30273 -be redrawn on the screen when moving to the next or previous entries
30274 -in the menu.</P>
30275 -
30276 -
30277 -<H3><A NAME="ascii_chars"></A> ascii_chars</H3>
30278 -
30279 -<P>Type: boolean<BR>
30280 -Default: no</P>
30281 -
30282 -<P>If set, Mutt will use plain ASCII characters when displaying thread
30283 -and attachment trees, instead of the default <EM>ACS</EM> characters.</P>
30284 -
30285 -
30286 -<H3><A NAME="askbcc"></A> askbcc</H3>
30287 -
30288 -<P>Type: boolean<BR>
30289 -Default: no</P>
30290 -
30291 -<P>If set, Mutt will prompt you for blind-carbon-copy (Bcc) recipients
30292 -before editing an outgoing message.</P>
30293 -
30294 -
30295 -<H3><A NAME="askcc"></A> askcc</H3>
30296 -
30297 -<P>Type: boolean<BR>
30298 -Default: no</P>
30299 -
30300 -<P>If set, Mutt will prompt you for carbon-copy (Cc) recipients before
30301 -editing the body of an outgoing message.</P>
30302 -
30303 -
30304 -<H3><A NAME="attach_format"></A> attach_format</H3>
30305 -
30306 -<P>Type: string<BR>
30307 -Default: &quot;%u%D%I %t%4n %T%.40d%&gt; [%.7m/%.10M, %.6e%?C?, %C?, %s] &quot;</P>
30308 -
30309 -<P>This variable describes the format of the `attachment' menu.  The
30310 -following printf-style sequences are understood:</P>
30311 -
30312 -<P>
30313 -<DL>
30314 -<DT><B>%D  </B><DD><P>deleted flag</P>
30315 -<DT><B>%d  </B><DD><P>description</P>
30316 -<DT><B>%e  </B><DD><P>MIME content-transfer-encoding</P>
30317 -<DT><B>%f  </B><DD><P>filename</P>
30318 -<DT><B>%I  </B><DD><P>disposition (I=inline, A=attachment)</P>
30319 -<DT><B>%m  </B><DD><P>major MIME type</P>
30320 -<DT><B>%M  </B><DD><P>MIME subtype</P>
30321 -<DT><B>%n  </B><DD><P>attachment number</P>
30322 -<DT><B>%s  </B><DD><P>size</P>
30323 -<DT><B>%t  </B><DD><P>tagged flag</P>
30324 -<DT><B>%u  </B><DD><P>unlink (=to delete) flag</P>
30325 -<DT><B>%&gt;X </B><DD><P>right justify the rest of the string and pad with character &quot;X&quot;</P>
30326 -<DT><B>%|X </B><DD><P>pad to the end of the line with character &quot;X&quot;</P>
30327 -</DL>
30328 -</P>
30329 -
30330 -
30331 -<H3><A NAME="attach_sep"></A> attach_sep</H3>
30332 -
30333 -<P>Type: string<BR>
30334 -Default: &quot;\n&quot;</P>
30335 -
30336 -<P>The separator to add between attachments when operating (saving,
30337 -printing, piping, etc) on a list of tagged attachments.</P>
30338 -
30339 -
30340 -<H3><A NAME="attach_split"></A> attach_split</H3>
30341 -
30342 -<P>Type: boolean<BR>
30343 -Default: yes</P>
30344 -
30345 -<P>If this variable is unset, when operating (saving, printing, piping,
30346 -etc) on a list of tagged attachments, Mutt will concatenate the
30347 -attachments and will operate on them as a single attachment. The
30348 -``
30349 -<A HREF="#attach_sep">$attach_sep</A>'' separator is added after each attachment. When set,
30350 -Mutt will operate on the attachments one by one.</P>
30351 -
30352 -
30353 -<H3><A NAME="attribution"></A> attribution</H3>
30354 -
30355 -<P>Type: string<BR>
30356 -Default: &quot;On %d, %n wrote:&quot;</P>
30357 -
30358 -<P>This is the string that will precede a message which has been included
30359 -in a reply.  For a full listing of defined printf()-like sequences see
30360 -the section on ``
30361 -<A HREF="#index_format">$index_format</A>''.</P>
30362 -
30363 -
30364 -<H3><A NAME="autoedit"></A> autoedit</H3>
30365 -
30366 -<P>Type: boolean<BR>
30367 -Default: no</P>
30368 -
30369 -<P>When set along with ``
30370 -<A HREF="#edit_headers">$edit_headers</A>'', Mutt will skip the initial
30371 -send-menu and allow you to immediately begin editing the body of your
30372 -message.  The send-menu may still be accessed once you have finished
30373 -editing the body of your message.</P>
30374 -<P>Also see ``
30375 -<A HREF="#fast_reply">$fast_reply</A>''.</P>
30376 -
30377 -
30378 -<H3><A NAME="auto_tag"></A> auto_tag</H3>
30379 -
30380 -<P>Type: boolean<BR>
30381 -Default: no</P>
30382 -
30383 -<P>When set, functions in the <EM>index</EM> menu which affect a message
30384 -will be applied to all tagged messages (if there are any).  When
30385 -unset, you must first use the tag-prefix function (default: &quot;;&quot;) to
30386 -make the next function apply to all tagged messages.</P>
30387 -
30388 -
30389 -<H3><A NAME="beep"></A> beep</H3>
30390 -
30391 -<P>Type: boolean<BR>
30392 -Default: yes</P>
30393 -
30394 -<P>When this variable is set, mutt will beep when an error occurs.</P>
30395 -
30396 -
30397 -<H3><A NAME="beep_new"></A> beep_new</H3>
30398 -
30399 -<P>Type: boolean<BR>
30400 -Default: no</P>
30401 -
30402 -<P>When this variable is set, mutt will beep whenever it prints a message
30403 -notifying you of new mail.  This is independent of the setting of the
30404 -``
30405 -<A HREF="#beep">$beep</A>'' variable.</P>
30406 -
30407 -
30408 -<H3><A NAME="bounce_delivered"></A> bounce_delivered</H3>
30409 -
30410 -<P>Type: boolean<BR>
30411 -Default: yes</P>
30412 -
30413 -<P>When this variable is set, mutt will include Delivered-To headers when
30414 -bouncing messages.  Postfix users may wish to unset this variable.</P>
30415 -
30416 -
30417 -<H3><A NAME="charset"></A> charset</H3>
30418 -
30419 -<P>Type: string<BR>
30420 -Default: &quot;&quot;</P>
30421 -
30422 -<P>Character set your terminal uses to display and enter textual data.</P>
30423 -
30424 -
30425 -<H3><A NAME="check_new"></A> check_new</H3>
30426 -
30427 -<P>Type: boolean<BR>
30428 -Default: yes</P>
30429 -
30430 -<P><B>Note:</B> this option only affects <EM>maildir</EM> and <EM>MH</EM> style
30431 -mailboxes.</P>
30432 -<P>When <EM>set</EM>, Mutt will check for new mail delivered while the
30433 -mailbox is open.  Especially with MH mailboxes, this operation can
30434 -take quite some time since it involves scanning the directory and
30435 -checking each file to see if it has already been looked at.  If
30436 -<EM>check_new</EM> is <EM>unset</EM>, no check for new mail is performed
30437 -while the mailbox is open.</P>
30438 -
30439 -
30440 -<H3><A NAME="collapse_unread"></A> collapse_unread</H3>
30441 -
30442 -<P>Type: boolean<BR>
30443 -Default: yes</P>
30444 -
30445 -<P>When <EM>unset</EM>, Mutt will not collapse a thread if it contains any
30446 -unread messages.</P>
30447 -
30448 -
30449 -<H3><A NAME="uncollapse_jump"></A> uncollapse_jump</H3>
30450 -
30451 -<P>Type: boolean<BR>
30452 -Default: no</P>
30453 -
30454 -<P>When <EM>set</EM>, Mutt will jump to the next unread message, if any,
30455 -when the current thread is <EM>un</EM>collapsed.</P>
30456 -
30457 -
30458 -<H3><A NAME="compose_format"></A> compose_format</H3>
30459 -
30460 -<P>Type: string<BR>
30461 -Default: &quot;-- Mutt: Compose  [Approx. msg size: %l   Atts: %a]%&gt;-&quot;</P>
30462 -
30463 -<P>Controls the format of the status line displayed in the \fCompose
30464 -menu.  This string is similar to ``
30465 -<A HREF="#status_format">$status_format</A>'', but has its own
30466 -set of printf()-like sequences:</P>
30467 -
30468 -<P>
30469 -<DL>
30470 -<DT><B>%a </B><DD><P>total number of attachments </P>
30471 -<DT><B>%h </B><DD><P>local hostname</P>
30472 -<DT><B>%l </B><DD><P>approximate size (in bytes) of the current message</P>
30473 -<DT><B>%v </B><DD><P>Mutt version string</P>
30474 -</DL>
30475 -</P>
30476 -
30477 -<P>See the text describing the ``
30478 -<A HREF="#status_format">$status_format</A>'' option for more 
30479 -information on how to set ``
30480 -<A HREF="#compose_format">$compose_format</A>''.</P>
30481 -
30482 -
30483 -<H3><A NAME="confirmappend"></A> confirmappend</H3>
30484 -
30485 -<P>Type: boolean<BR>
30486 -Default: yes</P>
30487 -
30488 -<P>When set, Mutt will prompt for confirmation when appending messages to
30489 -an existing mailbox.</P>
30490 -
30491 -
30492 -<H3><A NAME="confirmcreate"></A> confirmcreate</H3>
30493 -
30494 -<P>Type: boolean<BR>
30495 -Default: yes</P>
30496 -
30497 -<P>When set, Mutt will prompt for confirmation when saving messages to a
30498 -mailbox which does not yet exist before creating it.</P>
30499 -
30500 -
30501 -<H3><A NAME="connect_timeout"></A> connect_timeout</H3>
30502 -
30503 -<P>Type: number<BR>
30504 -Default: 30</P>
30505 -
30506 -<P>Causes Mutt to timeout a network connection (for IMAP or POP) after this
30507 -many seconds if the connection is not able to be established.  A negative
30508 -value causes Mutt to wait indefinitely for the connection to succeed.</P>
30509 -
30510 -
30511 -<H3><A NAME="copy"></A> copy</H3>
30512 -
30513 -<P>Type: quadoption<BR>
30514 -Default: yes</P>
30515 -
30516 -<P>This variable controls whether or not copies of your outgoing messages
30517 -will be saved for later references.  Also see ``
30518 -<A HREF="#record">$record</A>'',
30519 -``
30520 -<A HREF="#save_name">$save_name</A>'', ``
30521 -<A HREF="#force_name">$force_name</A>'' and ``
30522 -<A HREF="manual-3.html#fcc-hook">fcc-hook</A>''.</P>
30523 -
30524 -
30525 -<H3><A NAME="date_format"></A> date_format</H3>
30526 -
30527 -<P>Type: string<BR>
30528 -Default: &quot;!%a, %b %d, %Y at %I:%M:%S%p %Z&quot;</P>
30529 -
30530 -<P>This variable controls the format of the date printed by the ``%d''
30531 -sequence in ``
30532 -<A HREF="#index_format">$index_format</A>''.  This is passed to the <EM>strftime</EM>
30533 -call to process the date. See the man page for <EM>strftime(3)</EM> for
30534 -the proper syntax.</P>
30535 -<P>Unless the first character in the string is a bang (``!''), the month
30536 -and week day names are expanded according to the locale specified in
30537 -the variable ``
30538 -<A HREF="#locale">$locale</A>''. If the first character in the string is a
30539 -bang, the bang is discarded, and the month and week day names in the
30540 -rest of the string are expanded in the <EM>C</EM> locale (that is in US
30541 -English).</P>
30542 -
30543 -
30544 -<H3><A NAME="default_hook"></A> default_hook</H3>
30545 -
30546 -<P>Type: string<BR>
30547 -Default: &quot;~f %s !~P | (~P ~C %s)&quot;</P>
30548 -
30549 -<P>This variable controls how send-hooks, message-hooks, save-hooks,
30550 -and fcc-hooks will
30551 -be interpreted if they are specified with only a simple regexp,
30552 -instead of a matching pattern.  The hooks are expanded when they are
30553 -declared, so a hook will be interpreted according to the value of this
30554 -variable at the time the hook is declared.  The default value matches
30555 -if the message is either from a user matching the regular expression
30556 -given, or if it is from you (if the from address matches
30557 -``
30558 -<A HREF="#alternates">$alternates</A>'') and is to or cc'ed to a user matching the given
30559 -regular expression.</P>
30560 -
30561 -
30562 -<H3><A NAME="delete"></A> delete</H3>
30563 -
30564 -<P>Type: quadoption<BR>
30565 -Default: ask-yes</P>
30566 -
30567 -<P>Controls whether or not messages are really deleted when closing or
30568 -synchronizing a mailbox.  If set to <EM>yes</EM>, messages marked for
30569 -deleting will automatically be purged without prompting.  If set to
30570 -<EM>no</EM>, messages marked for deletion will be kept in the mailbox.</P>
30571 -
30572 -
30573 -<H3><A NAME="delete_untag"></A> delete_untag</H3>
30574 -
30575 -<P>Type: boolean<BR>
30576 -Default: yes</P>
30577 -
30578 -<P>If this option is <EM>set</EM>, mutt will untag messages when marking them
30579 -for deletion.  This applies when you either explicitly delete a message,
30580 -or when you save it to another folder.</P>
30581 -
30582 -
30583 -<H3><A NAME="digest_collapse"></A> digest_collapse</H3>
30584 -
30585 -<P>Type: boolean<BR>
30586 -Default: yes</P>
30587 -
30588 -<P>If this option is <EM>set</EM>, mutt's revattach menu will not show the subparts of
30589 -individual messages in a digest.  To see these subparts, press 'v' on that menu.</P>
30590 -
30591 -
30592 -<H3><A NAME="display_filter"></A> display_filter</H3>
30593 -
30594 -<P>Type: path<BR>
30595 -Default: &quot;&quot;</P>
30596 -
30597 -<P>When set, specifies a command used to filter messages.  When a message
30598 -is viewed it is passed as standard input to 
30599 -<A HREF="#display_filter">$display_filter</A>, and the
30600 -filtered message is read from the standard output.</P>
30601 -
30602 -
30603 -<H3><A NAME="dotlock_program"></A> dotlock_program</H3>
30604 -
30605 -<P>Type: path<BR>
30606 -Default: &quot;/usr/local/bin/mutt_dotlock&quot;</P>
30607 -
30608 -<P>Contains the path of the mutt_dotlock (8) binary to be used by
30609 -mutt.</P>
30610 -
30611 -
30612 -<H3><A NAME="dsn_notify"></A> dsn_notify</H3>
30613 -
30614 -<P>Type: string<BR>
30615 -Default: &quot;&quot;</P>
30616 -
30617 -<P><B>Note:</B> you should not enable this unless you are using Sendmail
30618 -8.8.x or greater.</P>
30619 -<P>This variable sets the request for when notification is returned.  The
30620 -string consists of a comma separated list (no spaces!) of one or more
30621 -of the following: <EM>never</EM>, to never request notification,
30622 -<EM>failure</EM>, to request notification on transmission failure,
30623 -<EM>delay</EM>, to be notified of message delays, <EM>success</EM>, to be
30624 -notified of successful transmission.</P>
30625 -<P>Example: set dsn_notify=&quot;failure,delay&quot;</P>
30626 -
30627 -
30628 -<H3><A NAME="dsn_return"></A> dsn_return</H3>
30629 -
30630 -<P>Type: string<BR>
30631 -Default: &quot;&quot;</P>
30632 -
30633 -<P><B>Note:</B> you should not enable this unless you are using Sendmail
30634 -8.8.x or greater.</P>
30635 -<P>This variable controls how much of your message is returned in DSN
30636 -messages.  It may be set to either <EM>hdrs</EM> to return just the
30637 -message header, or <EM>full</EM> to return the full message.</P>
30638 -<P>Example: set dsn_return=hdrs</P>
30639 -
30640 -
30641 -<H3><A NAME="duplicate_threads"></A> duplicate_threads</H3>
30642 -
30643 -<P>Type: boolean<BR>
30644 -Default: yes</P>
30645 -
30646 -<P>This variable controls whether mutt, when sorting by threads, threads
30647 -messages with the same message-id together.  If it is set, it will indicate
30648 -that it thinks they are duplicates of each other with an equals sign
30649 -in the thread diagram.</P>
30650 -
30651 -
30652 -<H3><A NAME="edit_headers"></A> edit_headers</H3>
30653 -
30654 -<P>Type: boolean<BR>
30655 -Default: no</P>
30656 -
30657 -<P>This option allows you to edit the header of your outgoing messages
30658 -along with the body of your message.</P>
30659 -
30660 -
30661 -<H3><A NAME="editor"></A> editor</H3>
30662 -
30663 -<P>Type: path<BR>
30664 -Default: &quot;&quot;</P>
30665 -
30666 -<P>This variable specifies which editor is used by mutt.
30667 -It defaults to the value of the EDITOR or VISUAL environment
30668 -variable, or to the string &quot;vi&quot;.</P>
30669 -
30670 -
30671 -<H3><A NAME="encode_from"></A> encode_from</H3>
30672 -
30673 -<P>Type: boolean<BR>
30674 -Default: no</P>
30675 -
30676 -<P>When <EM>set</EM>, mutt will quoted-printable encode messages when
30677 -they contain the string &quot;From &quot; in the beginning of a line.
30678 -Useful to avoid the tampering certain mail delivery and transport
30679 -agents tend to do with messages.</P>
30680 -
30681 -
30682 -<H3><A NAME="envelope_from"></A> envelope_from</H3>
30683 -
30684 -<P>Type: boolean<BR>
30685 -Default: no</P>
30686 -
30687 -<P>When <EM>set</EM>, mutt will try to derive the message's <EM>envelope</EM>
30688 -sender from the &quot;From:&quot; header.  Note that this information is passed 
30689 -to sendmail command using the &quot;-f&quot; command line switch, so don't set this
30690 -option if you are using that switch in 
30691 -<A HREF="#sendmail">$sendmail</A> yourself,
30692 -or if the sendmail on your machine doesn't support that command
30693 -line switch.</P>
30694 -
30695 -
30696 -<H3><A NAME="escape"></A> escape</H3>
30697 -
30698 -<P>Type: string<BR>
30699 -Default: &quot;~&quot;</P>
30700 -
30701 -<P>Escape character to use for functions in the builtin editor.</P>
30702 -
30703 -
30704 -<H3><A NAME="fast_reply"></A> fast_reply</H3>
30705 -
30706 -<P>Type: boolean<BR>
30707 -Default: no</P>
30708 -
30709 -<P>When set, the initial prompt for recipients and subject are skipped
30710 -when replying to messages, and the initial prompt for subject is
30711 -skipped when forwarding messages.</P>
30712 -<P><B>Note:</B> this variable has no effect when the ``
30713 -<A HREF="#autoedit">$autoedit</A>''
30714 -variable is set.</P>
30715 -
30716 -
30717 -<H3><A NAME="fcc_attach"></A> fcc_attach</H3>
30718 -
30719 -<P>Type: boolean<BR>
30720 -Default: yes</P>
30721 -
30722 -<P>This variable controls whether or not attachments on outgoing messages
30723 -are saved along with the main body of your message.</P>
30724 -
30725 -
30726 -<H3><A NAME="fcc_clear"></A> fcc_clear</H3>
30727 -
30728 -<P>Type: boolean<BR>
30729 -Default: no</P>
30730 -
30731 -<P>When this variable is <EM>set</EM>, FCCs will be stored unencrypted and
30732 -unsigned, even when the actual message is encrypted and/or signed.</P>
30733 -
30734 -
30735 -<H3><A NAME="folder"></A> folder</H3>
30736 -
30737 -<P>Type: path<BR>
30738 -Default: &quot;~/Mail&quot;</P>
30739 -
30740 -<P>Specifies the default location of your mailboxes.  A `+' or `=' at the
30741 -beginning of a pathname will be expanded to the value of this
30742 -variable.  Note that if you change this variable from the default
30743 -value you need to make sure that the assignment occurs <EM>before</EM>
30744 -you use `+' or `=' for any other variables since expansion takes place
30745 -during the `set' command.</P>
30746 -
30747 -
30748 -<H3><A NAME="folder_format"></A> folder_format</H3>
30749 -
30750 -<P>Type: string<BR>
30751 -Default: &quot;%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f&quot;</P>
30752 -
30753 -<P>This variable allows you to customize the file browser display to your
30754 -personal taste.  This string is similar to ``
30755 -<A HREF="#index_format">$index_format</A>'', but has
30756 -its own set of printf()-like sequences:</P>
30757 -
30758 -<P>
30759 -<DL>
30760 -<DT><B>%C  </B><DD><P>current file number</P>
30761 -<DT><B>%d  </B><DD><P>date/time folder was last modified</P>
30762 -<DT><B>%f  </B><DD><P>filename</P>
30763 -<DT><B>%F  </B><DD><P>file permissions</P>
30764 -<DT><B>%g  </B><DD><P>group name (or numeric gid, if missing)</P>
30765 -<DT><B>%l  </B><DD><P>number of hard links</P>
30766 -<DT><B>%N  </B><DD><P>N if folder has new mail, blank otherwise</P>
30767 -<DT><B>%s  </B><DD><P>size in bytes</P>
30768 -<DT><B>%t  </B><DD><P>* if the file is tagged, blank otherwise</P>
30769 -<DT><B>%u  </B><DD><P>owner name (or numeric uid, if missing)</P>
30770 -<DT><B>%&gt;X </B><DD><P>right justify the rest of the string and pad with character &quot;X&quot;</P>
30771 -<DT><B>%|X </B><DD><P>pad to the end of the line with character &quot;X&quot;</P>
30772 -</DL>
30773 -</P>
30774 -
30775 -
30776 -<H3><A NAME="followup_to"></A> followup_to</H3>
30777 -
30778 -<P>Type: boolean<BR>
30779 -Default: yes</P>
30780 -
30781 -<P>Controls whether or not the <EM>Mail-Followup-To</EM> header field is
30782 -generated when sending mail.  When <EM>set</EM>, Mutt will generate this
30783 -field when you are replying to a known mailing list, specified with
30784 -the ``subscribe'' or ``
30785 -<A HREF="manual-3.html#lists">lists</A>'' commands.</P>
30786 -<P>This field has two purposes.  First, preventing you from receiving
30787 -duplicate copies of replies to messages which you send to mailing
30788 -lists.  Second, ensuring that you do get a reply separately for any
30789 -messages sent to known lists to which you are not subscribed.  The
30790 -header will contain only the list's address for subscribed lists,
30791 -and both the list address and your own email address for unsubscribed
30792 -lists.  Without this header, a group reply to your message sent to a
30793 -subscribed list will be sent to both the list and your address,
30794 -resulting in two copies of the same email for you.</P>
30795 -
30796 -
30797 -<H3><A NAME="force_name"></A> force_name</H3>
30798 -
30799 -<P>Type: boolean<BR>
30800 -Default: no</P>
30801 -
30802 -<P>This variable is similar to ``
30803 -<A HREF="#save_name">$save_name</A>'', except that Mutt will
30804 -store a copy of your outgoing message by the username of the address
30805 -you are sending to even if that mailbox does not exist.</P>
30806 -<P>Also see the ``
30807 -<A HREF="#record">$record</A>'' variable.</P>
30808 -
30809 -
30810 -<H3><A NAME="forward_decode"></A> forward_decode</H3>
30811 -
30812 -<P>Type: boolean<BR>
30813 -Default: yes</P>
30814 -
30815 -<P>Controls the decoding of complex MIME messages into text/plain when
30816 -forwarding a message.  The message header is also RFC2047 decoded.
30817 -This variable is only used, if ``
30818 -<A HREF="#mime_forward">$mime_forward</A>'' is <EM>unset</EM>,
30819 -otherwise ``
30820 -<A HREF="#mime_forward_decode">$mime_forward_decode</A>'' is used instead.</P>
30821 -
30822 -
30823 -<H3><A NAME="forward_format"></A> forward_format</H3>
30824 -
30825 -<P>Type: string<BR>
30826 -Default: &quot;[%a: %s]&quot;</P>
30827 -
30828 -<P>This variable controls the default subject when forwarding a message.
30829 -It uses the same format sequences as the ``
30830 -<A HREF="#index_format">$index_format</A>'' variable.</P>
30831 -
30832 -
30833 -<H3><A NAME="forward_quote"></A> forward_quote</H3>
30834 -
30835 -<P>Type: boolean<BR>
30836 -Default: no</P>
30837 -
30838 -<P>When <EM>set</EM> forwarded messages included in the main body of the
30839 -message (when ``
30840 -<A HREF="#mime_forward">$mime_forward</A>'' is <EM>unset</EM>) will be quoted using
30841 -``
30842 -<A HREF="#indent_string">$indent_string</A>''.</P>
30843 -
30844 -
30845 -<H3><A NAME="from"></A> from</H3>
30846 -
30847 -<P>Type: e-mail address<BR>
30848 -Default: &quot;&quot;</P>
30849 -
30850 -<P>When set, this variable contains a default from address.  It
30851 -can be overridden using my_hdr (including from send-hooks) and
30852 -``
30853 -<A HREF="#reverse_name">$reverse_name</A>''.</P>
30854 -<P>Defaults to the EMAIL environment variable's content.</P>
30855 -
30856 -
30857 -<H3><A NAME="gecos_mask"></A> gecos_mask</H3>
30858 -
30859 -<P>Type: regular expression<BR>
30860 -Default: &quot;^[^,]*&quot;</P>
30861 -
30862 -<P>A regular expression used by mutt to parse the GECOS field of a password
30863 -entry when expanding the alias.  By default the regular expression is set
30864 -to &quot;^[^,]*&quot; which will return the string up to the first &quot;,&quot; encountered.
30865 -If the GECOS field contains a string like &quot;lastname, firstname&quot; then you
30866 -should set the gecos_mask=&quot;.*&quot;.</P>
30867 -<P>This can be useful if you see the following behavior: you address a e-mail
30868 -to user ID stevef whose full name is Steve Franklin.  If mutt expands 
30869 -stevef to &quot;Franklin&quot; stevef@foo.bar then you should set the gecos_mask to
30870 -a regular expression that will match the whole name so mutt will expand
30871 -&quot;Franklin&quot; to &quot;Franklin, Steve&quot;.</P>
30872 -
30873 -
30874 -<H3><A NAME="hdrs"></A> hdrs</H3>
30875 -
30876 -<P>Type: boolean<BR>
30877 -Default: yes</P>
30878 -
30879 -<P>When unset, the header fields normally added by the ``
30880 -<A HREF="manual-3.html#my_hdr">my_hdr</A>''
30881 -command are not created.  This variable <EM>must</EM> be unset before
30882 -composing a new message or replying in order to take effect.  If set,
30883 -the user defined header fields are added to every new message.</P>
30884 -
30885 -
30886 -<H3><A NAME="header"></A> header</H3>
30887 -
30888 -<P>Type: boolean<BR>
30889 -Default: no</P>
30890 -
30891 -<P>When set, this variable causes Mutt to include the header
30892 -of the message you are replying to into the edit buffer.
30893 -The ``
30894 -<A HREF="#weed">$weed</A>'' setting applies.</P>
30895 -
30896 -
30897 -<H3><A NAME="help"></A> help</H3>
30898 -
30899 -<P>Type: boolean<BR>
30900 -Default: yes</P>
30901 -
30902 -<P>When set, help lines describing the bindings for the major functions
30903 -provided by each menu are displayed on the first line of the screen.</P>
30904 -<P><B>Note:</B> The binding will not be displayed correctly if the
30905 -function is bound to a sequence rather than a single keystroke.  Also,
30906 -the help line may not be updated if a binding is changed while Mutt is
30907 -running.  Since this variable is primarily aimed at new users, neither
30908 -of these should present a major problem.</P>
30909 -
30910 -
30911 -<H3><A NAME="hidden_host"></A> hidden_host</H3>
30912 -
30913 -<P>Type: boolean<BR>
30914 -Default: no</P>
30915 -
30916 -<P>When set, mutt will skip the host name part of ``
30917 -<A HREF="#hostname">$hostname</A>'' variable
30918 -when adding the domain part to addresses.  This variable does not
30919 -affect the generation of Message-IDs, and it will not lead to the 
30920 -cut-off of first-level domains.</P>
30921 -
30922 -
30923 -<H3><A NAME="hide_limited"></A> hide_limited</H3>
30924 -
30925 -<P>Type: boolean<BR>
30926 -Default: no</P>
30927 -
30928 -<P>When set, mutt will not show the presence of missing messages in the
30929 -thread tree.</P>
30930 -
30931 -
30932 -<H3><A NAME="hide_missing"></A> hide_missing</H3>
30933 -
30934 -<P>Type: boolean<BR>
30935 -Default: yes</P>
30936 -
30937 -<P>When set, mutt will not show the presence of messages that are hidden
30938 -by limiting, in the thread tree.</P>
30939 -
30940 -
30941 -<H3><A NAME="hide_top_limited"></A> hide_top_limited</H3>
30942 -
30943 -<P>Type: boolean<BR>
30944 -Default: no</P>
30945 -
30946 -<P>When set, mutt will not show the presence of missing messages at the
30947 -top of threads in the thread tree.  Note that when 
30948 -<A HREF="#hide_limited">$hide_limited</A> is
30949 -set, this option will have no effect.</P>
30950 -
30951 -
30952 -<H3><A NAME="hide_top_missing"></A> hide_top_missing</H3>
30953 -
30954 -<P>Type: boolean<BR>
30955 -Default: yes</P>
30956 -
30957 -<P>When set, mutt will not show the presence of messages that are hidden
30958 -by limiting, at the top of threads in the thread tree.Note that when
30959 -<A HREF="#hide_missing">$hide_missing</A> is set, this option will have no effect.</P>
30960 -
30961 -
30962 -<H3><A NAME="history"></A> history</H3>
30963 -
30964 -<P>Type: number<BR>
30965 -Default: 10</P>
30966 -
30967 -<P>This variable controls the size (in number of strings remembered) of
30968 -the string history buffer. The buffer is cleared each time the
30969 -variable is set.</P>
30970 -
30971 -
30972 -<H3><A NAME="honor_followup_to"></A> honor_followup_to</H3>
30973 -
30974 -<P>Type: quadoption<BR>
30975 -Default: yes</P>
30976 -
30977 -<P>This variable controls whether or not a Mail-Followup-To header is
30978 -honored when group-replying to a message.</P>
30979 -
30980 -
30981 -<H3><A NAME="hostname"></A> hostname</H3>
30982 -
30983 -<P>Type: string<BR>
30984 -Default: &quot;&quot;</P>
30985 -
30986 -<P>Specifies the hostname to use after the ``@'' in local e-mail
30987 -addresses.  This overrides the compile time definition obtained from
30988 -/etc/resolv.conf.</P>
30989 -
30990 -
30991 -<H3><A NAME="ignore_list_reply_to"></A> ignore_list_reply_to</H3>
30992 -
30993 -<P>Type: boolean<BR>
30994 -Default: no</P>
30995 -
30996 -<P>Affects the behaviour of the <EM>reply</EM> function when replying to
30997 -messages from mailing lists.  When set, if the ``Reply-To:'' field is
30998 -set to the same value as the ``To:'' field, Mutt assumes that the
30999 -``Reply-To:'' field was set by the mailing list to automate responses
31000 -to the list, and will ignore this field.  To direct a response to the
31001 -mailing list when this option is set, use the <EM>list-reply</EM>
31002 -function; <EM>group-reply</EM> will reply to both the sender and the
31003 -list.</P>
31004 -
31005 -
31006 -<H3><A NAME="imap_authenticators"></A> imap_authenticators</H3>
31007 -
31008 -<P>Type: string<BR>
31009 -Default: &quot;&quot;</P>
31010 -
31011 -<P>This is a colon-delimited list of authentication methods mutt may
31012 -attempt to use to log in to an IMAP server, in the order mutt should
31013 -try them.  Authentication methods are either 'login' or the right
31014 -side of an IMAP 'AUTH=xxx' capability string, eg 'digest-md5',
31015 -'gssapi' or 'cram-md5'. This parameter is case-insensitive. If this
31016 -parameter is unset (the default) mutt will try all available methods,
31017 -in order from most-secure to least-secure.</P>
31018 -<P>Example: set imap_authenticators=&quot;gssapi:cram-md5:login&quot;</P>
31019 -<P><B>Note:</B> Mutt will only fall back to other authentication methods if
31020 -the previous methods are unavailable. If a method is available but
31021 -authentication fails, mutt will not connect to the IMAP server.</P>
31022 -
31023 -
31024 -<H3><A NAME="imap_delim_chars"></A> imap_delim_chars</H3>
31025 -
31026 -<P>Type: string<BR>
31027 -Default: &quot;/.&quot;</P>
31028 -
31029 -<P>This contains the list of characters which you would like to treat
31030 -as folder separators for displaying IMAP paths. In particular it
31031 -helps in using the '=' shortcut for your <EM>folder</EM> variable.</P>
31032 -
31033 -
31034 -<H3><A NAME="imap_force_ssl"></A> imap_force_ssl</H3>
31035 -
31036 -<P>Type: boolean<BR>
31037 -Default: no</P>
31038 -
31039 -<P>If this variable is set, Mutt will always use SSL when
31040 -connecting to IMAP servers.</P>
31041 -
31042 -
31043 -<H3><A NAME="imap_home_namespace"></A> imap_home_namespace</H3>
31044 -
31045 -<P>Type: string<BR>
31046 -Default: &quot;&quot;</P>
31047 -
31048 -<P>You normally want to see your personal folders alongside
31049 -your INBOX in the IMAP browser. If you see something else, you may set
31050 -this variable to the IMAP path to your folders.</P>
31051 -
31052 -
31053 -<H3><A NAME="imap_keepalive"></A> imap_keepalive</H3>
31054 -
31055 -<P>Type: number<BR>
31056 -Default: 900</P>
31057 -
31058 -<P>This variable specifies the maximum amount of time in seconds that mutt
31059 -will wait before polling open IMAP connections, to prevent the server
31060 -from closing them before mutt has finished with them. The default is
31061 -well within the RFC-specified minimum amount of time (30 minutes) before
31062 -a server is allowed to do this, but in practice the RFC does get
31063 -violated every now and then. Reduce this number if you find yourself
31064 -getting disconnected from your IMAP server due to inactivity.</P>
31065 -
31066 -
31067 -<H3><A NAME="imap_list_subscribed"></A> imap_list_subscribed</H3>
31068 -
31069 -<P>Type: boolean<BR>
31070 -Default: no</P>
31071 -
31072 -<P>This variable configures whether IMAP folder browsing will look for
31073 -only subscribed folders or all folders.  This can be toggled in the
31074 -IMAP browser with the <EM>toggle-subscribed</EM> command.</P>
31075 -
31076 -
31077 -<H3><A NAME="imap_pass"></A> imap_pass</H3>
31078 -
31079 -<P>Type: string<BR>
31080 -Default: &quot;&quot;</P>
31081 -
31082 -<P>Specifies the password for your IMAP account.  If unset, Mutt will
31083 -prompt you for your password when you invoke the fetch-mail function.
31084 -<B>Warning</B>: you should only use this option when you are on a
31085 -fairly secure machine, because the superuser can read your muttrc even
31086 -if you are the only one who can read the file.</P>
31087 -
31088 -
31089 -<H3><A NAME="imap_passive"></A> imap_passive</H3>
31090 -
31091 -<P>Type: boolean<BR>
31092 -Default: yes</P>
31093 -
31094 -<P>When set, mutt will not open new IMAP connections to check for new
31095 -mail.  Mutt will only check for new mail over existing IMAP
31096 -connections.  This is useful if you don't want to be prompted to
31097 -user/password pairs on mutt invocation, or if opening the connection
31098 -is slow.</P>
31099 -
31100 -
31101 -<H3><A NAME="imap_peek"></A> imap_peek</H3>
31102 -
31103 -<P>Type: boolean<BR>
31104 -Default: yes</P>
31105 -
31106 -<P>If set, mutt will avoid implicitly marking your mail as read whenever
31107 -you fetch a message from the server. This is generally a good thing,
31108 -but can make closing an IMAP folder somewhat slower. This option
31109 -exists to appease spead freaks.</P>
31110 -
31111 -
31112 -<H3><A NAME="imap_servernoise"></A> imap_servernoise</H3>
31113 -
31114 -<P>Type: boolean<BR>
31115 -Default: yes</P>
31116 -
31117 -<P>When set, mutt will display warning messages from the IMAP
31118 -server as error messages. Since these messages are often
31119 -harmless, or generated due to configuration problems on the
31120 -server which are out of the users' hands, you may wish to suppress
31121 -them at some point.</P>
31122 -
31123 -
31124 -<H3><A NAME="imap_user"></A> imap_user</H3>
31125 -
31126 -<P>Type: string<BR>
31127 -Default: &quot;&quot;</P>
31128 -
31129 -<P>Your login name on the IMAP server.</P>
31130 -<P>This variable defaults to your user name on the local machine.</P>
31131 -
31132 -
31133 -<H3><A NAME="implicit_autoview"></A> implicit_autoview</H3>
31134 -
31135 -<P>Type: boolean<BR>
31136 -Default: no</P>
31137 -
31138 -<P>If set to ``yes'', mutt will look for a mailcap entry with the
31139 -copiousoutput flag set for <EM>every</EM> MIME attachment it doesn't have
31140 -an internal viewer defined for.  If such an entry is found, mutt will
31141 -use the viewer defined in that entry to convert the body part to text
31142 -form.</P>
31143 -
31144 -
31145 -<H3><A NAME="include"></A> include</H3>
31146 -
31147 -<P>Type: quadoption<BR>
31148 -Default: ask-yes</P>
31149 -
31150 -<P>Controls whether or not a copy of the message(s) you are replying to
31151 -is included in your reply.</P>
31152 -
31153 -
31154 -<H3><A NAME="indent_string"></A> indent_string</H3>
31155 -
31156 -<P>Type: string<BR>
31157 -Default: &quot;&gt; &quot;</P>
31158 -
31159 -<P>Specifies the string to prepend to each line of text quoted in a
31160 -message to which you are replying.  You are strongly encouraged not to
31161 -change this value, as it tends to agitate the more fanatical netizens.</P>
31162 -
31163 -
31164 -<H3><A NAME="index_format"></A> index_format</H3>
31165 -
31166 -<P>Type: string<BR>
31167 -Default: &quot;%4C %Z %{%b %d} %-15.15L (%4l) %s&quot;</P>
31168 -
31169 -<P>This variable allows you to customize the message index display to
31170 -your personal taste.</P>
31171 -<P>``Format strings'' are similar to the strings used in the ``C''
31172 -function printf to format output (see the man page for more detail).
31173 -The following sequences are defined in Mutt:</P>
31174 -
31175 -<P>
31176 -<DL>
31177 -<DT><B>%a </B><DD><P>address of the author</P>
31178 -<DT><B>%b </B><DD><P>filename of the original message folder (think mailBox)</P>
31179 -<DT><B>%B </B><DD><P>the list to which the letter was sent, or else the folder name (%b).</P>
31180 -<DT><B>%c </B><DD><P>number of characters (bytes) in the message</P>
31181 -<DT><B>%C </B><DD><P>current message number</P>
31182 -<DT><B>%d </B><DD><P>date and time of the message in the format specified by
31183 -``date_format'' converted to sender's time zone</P>
31184 -<DT><B>%D </B><DD><P>date and time of the message in the format specified by
31185 -``date_format'' converted to the local time zone</P>
31186 -<DT><B>%e </B><DD><P>current message number in thread</P>
31187 -<DT><B>%E </B><DD><P>number of messages in current thread</P>
31188 -<DT><B>%f </B><DD><P>entire From: line (address + real name)</P>
31189 -<DT><B>%F </B><DD><P>author name, or recipient name if the message is from you</P>
31190 -<DT><B>%i </B><DD><P>message-id of the current message</P>
31191 -<DT><B>%l </B><DD><P>number of lines in the message</P>
31192 -<DT><B>%L </B><DD><P>If an address in the To or CC header field matches an address
31193 -defined by the users ``lists'' command, this displays
31194 -&quot;To &lt;list-name&gt;&quot;, otherwise the same as %F.</P>
31195 -<DT><B>%m </B><DD><P>total number of message in the mailbox</P>
31196 -<DT><B>%M </B><DD><P>number of hidden messages if the thread is collapsed.</P>
31197 -<DT><B>%N </B><DD><P>message score</P>
31198 -<DT><B>%n </B><DD><P>author's real name (or address if missing)</P>
31199 -<DT><B>%O </B><DD><P>(_O_riginal save folder)  Where mutt would formerly have
31200 -stashed the message: list name or recipient name if no list</P>
31201 -<DT><B>%s </B><DD><P>subject of the message</P>
31202 -<DT><B>%S </B><DD><P>status of the message (N/D/d/!/r/*)</P>
31203 -<DT><B>%t </B><DD><P>`to:' field (recipients)</P>
31204 -<DT><B>%T </B><DD><P>the appropriate character from the 
31205 -<A HREF="#to_chars">$to_chars</A> string</P>
31206 -<DT><B>%u </B><DD><P>user (login) name of the author</P>
31207 -<DT><B>%v </B><DD><P>first name of the author, or the recipient if the message is from you</P>
31208 -<DT><B>%y </B><DD><P>`x-label:' field, if present</P>
31209 -<DT><B>%Y </B><DD><P>`x-label' field, if present, and (1) not at part of a thread tree,
31210 -(2) at the top of a thread, or (3) `x-label' is different from
31211 -preceding message's `x-label'.</P>
31212 -<DT><B>%Z </B><DD><P>message status flags</P>
31213 -<DT><B>%{fmt} </B><DD><P>the date and time of the message is converted to sender's
31214 -time zone, and ``fmt'' is expanded by the library function
31215 -``strftime''; a leading bang disables locales</P>
31216 -<DT><B>%[fmt] </B><DD><P>the date and time of the message is converted to the local
31217 -time zone, and ``fmt'' is expanded by the library function
31218 -``strftime''; a leading bang disables locales</P>
31219 -<DT><B>%(fmt) </B><DD><P>the local date and time when the message was received.
31220 -``fmt'' is expanded by the library function ``strftime'';
31221 -a leading bang disables locales</P>
31222 -<DT><B>%&lt;fmt&gt; </B><DD><P>the current local time. ``fmt'' is expanded by the library
31223 -function ``strftime''; a leading bang disables locales.</P>
31224 -<DT><B>%&gt;X    </B><DD><P>right justify the rest of the string and pad with character &quot;X&quot;</P>
31225 -<DT><B>%|X    </B><DD><P>pad to the end of the line with character &quot;X&quot;</P>
31226 -</DL>
31227 -</P>
31228 -
31229 -<P>See also: ``
31230 -<A HREF="#to_chars">$to_chars</A>''.</P>
31231 -
31232 -
31233 -<H3><A NAME="ispell"></A> ispell</H3>
31234 -
31235 -<P>Type: path<BR>
31236 -Default: &quot;/usr/bin/ispell&quot;</P>
31237 -
31238 -<P>How to invoke ispell (GNU's spell-checking software).</P>
31239 -
31240 -
31241 -<H3><A NAME="keep_flagged"></A> keep_flagged</H3>
31242 -
31243 -<P>Type: boolean<BR>
31244 -Default: no</P>
31245 -
31246 -<P>If set, read messages marked as flagged will not be moved
31247 -from your spool mailbox to your ``
31248 -<A HREF="#mbox">$mbox</A>'' mailbox, or as a result of
31249 -a ``
31250 -<A HREF="manual-3.html#mbox-hook">mbox-hook</A>'' command.</P>
31251 -
31252 -
31253 -<H3><A NAME="locale"></A> locale</H3>
31254 -
31255 -<P>Type: string<BR>
31256 -Default: &quot;C&quot;</P>
31257 -
31258 -<P>The locale used by <EM>strftime(3)</EM> to format dates. Legal values are
31259 -the strings your system accepts for the locale variable <EM>LC_TIME</EM>.</P>
31260 -
31261 -
31262 -<H3><A NAME="mail_check"></A> mail_check</H3>
31263 -
31264 -<P>Type: number<BR>
31265 -Default: 5</P>
31266 -
31267 -<P>This variable configures how often (in seconds) mutt should look for
31268 -new mail.</P>
31269 -
31270 -
31271 -<H3><A NAME="mailcap_path"></A> mailcap_path</H3>
31272 -
31273 -<P>Type: string<BR>
31274 -Default: &quot;&quot;</P>
31275 -
31276 -<P>This variable specifies which files to consult when attempting to
31277 -display MIME bodies not directly supported by Mutt.</P>
31278 -
31279 -
31280 -<H3><A NAME="mailcap_sanitize"></A> mailcap_sanitize</H3>
31281 -
31282 -<P>Type: boolean<BR>
31283 -Default: yes</P>
31284 -
31285 -<P>If set, mutt will restrict possible characters in mailcap % expandos
31286 -to a well-defined set of safe characters.  This is the safe setting,
31287 -but we are not sure it doesn't break some more advanced MIME stuff.</P>
31288 -<P><B>DON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
31289 -DOING!</B></P>
31290 -
31291 -
31292 -<H3><A NAME="maildir_trash"></A> maildir_trash</H3>
31293 -
31294 -<P>Type: boolean<BR>
31295 -Default: no</P>
31296 -
31297 -<P>If set, messages marked as deleted will be saved with the maildir
31298 -(T)rashed flag instead of unlinked.  <B>NOTE:</B> this only applies
31299 -to maildir-style mailboxes.  Setting it will have no effect on other
31300 -mailbox types.</P>
31301 -
31302 -
31303 -<H3><A NAME="mark_old"></A> mark_old</H3>
31304 -
31305 -<P>Type: boolean<BR>
31306 -Default: yes</P>
31307 -
31308 -<P>Controls whether or not Mutt makes the distinction between <EM>new</EM>
31309 -messages and <EM>old</EM> <B>unread</B> messages.  By default, Mutt will
31310 -mark new messages as old if you exit a mailbox without reading them.
31311 -The next time you start Mutt, the messages will show up with an &quot;O&quot;
31312 -next to them in the index menu, indicating that they are old.  In
31313 -order to make Mutt treat all unread messages as new only, you can
31314 -unset this variable.</P>
31315 -
31316 -
31317 -<H3><A NAME="markers"></A> markers</H3>
31318 -
31319 -<P>Type: boolean<BR>
31320 -Default: yes</P>
31321 -
31322 -<P>Controls the display of wrapped lines in the internal pager. If set, a
31323 -``+'' marker is displayed at the beginning of wrapped lines. Also see
31324 -the ``
31325 -<A HREF="#smart_wrap">$smart_wrap</A>'' variable.</P>
31326 -
31327 -
31328 -<H3><A NAME="mask"></A> mask</H3>
31329 -
31330 -<P>Type: regular expression<BR>
31331 -Default: &quot;!^\.[^.]&quot;</P>
31332 -
31333 -<P>A regular expression used in the file browser, optionally preceded by
31334 -the <EM>not</EM> operator ``!''.  Only files whose names match this mask
31335 -will be shown. The match is always case-sensitive.</P>
31336 -
31337 -
31338 -<H3><A NAME="mbox"></A> mbox</H3>
31339 -
31340 -<P>Type: path<BR>
31341 -Default: &quot;~/mbox&quot;</P>
31342 -
31343 -<P>This specifies the folder into which read mail in your ``
31344 -<A HREF="#spoolfile">$spoolfile</A>''
31345 -folder will be appended.</P>
31346 -
31347 -
31348 -<H3><A NAME="mbox_type"></A> mbox_type</H3>
31349 -
31350 -<P>Type: folder magic<BR>
31351 -Default: mbox</P>
31352 -
31353 -<P>The default mailbox type used when creating new folders. May be any of
31354 -mbox, MMDF, MH and Maildir.</P>
31355 -
31356 -
31357 -<H3><A NAME="metoo"></A> metoo</H3>
31358 -
31359 -<P>Type: boolean<BR>
31360 -Default: no</P>
31361 -
31362 -<P>If unset, Mutt will remove your address from the list of recipients
31363 -when replying to a message.</P>
31364 -
31365 -
31366 -<H3><A NAME="menu_scroll"></A> menu_scroll</H3>
31367 -
31368 -<P>Type: boolean<BR>
31369 -Default: no</P>
31370 -
31371 -<P>When <EM>set</EM>, menus will be scrolled up or down one line when you
31372 -attempt to move across a screen boundary.  If <EM>unset</EM>, the screen
31373 -is cleared and the next or previous page of the menu is displayed
31374 -(useful for slow links to avoid many redraws).</P>
31375 -
31376 -
31377 -<H3><A NAME="meta_key"></A> meta_key</H3>
31378 -
31379 -<P>Type: boolean<BR>
31380 -Default: no</P>
31381 -
31382 -<P>If set, forces Mutt to interpret keystrokes with the high bit (bit 8)
31383 -set as if the user had pressed the ESC key and whatever key remains
31384 -after having the high bit removed.  For example, if the key pressed
31385 -has an ASCII value of 0xf4, then this is treated as if the user had
31386 -pressed ESC then ``x''.  This is because the result of removing the
31387 -high bit from ``0xf4'' is ``0x74'', which is the ASCII character
31388 -``x''.</P>
31389 -
31390 -
31391 -<H3><A NAME="mh_purge"></A> mh_purge</H3>
31392 -
31393 -<P>Type: boolean<BR>
31394 -Default: no</P>
31395 -
31396 -<P>When unset, mutt will mimic mh's behaviour and rename deleted messages
31397 -to <EM>,&lt;old file name&gt;</EM> in mh folders instead of really deleting
31398 -them.  If the variable is set, the message files will simply be
31399 -deleted.</P>
31400 -
31401 -
31402 -<H3><A NAME="mh_seq_flagged"></A> mh_seq_flagged</H3>
31403 -
31404 -<P>Type: string<BR>
31405 -Default: &quot;flagged&quot;</P>
31406 -
31407 -<P>The name of the MH sequence used for flagged messages.</P>
31408 -
31409 -
31410 -<H3><A NAME="mh_seq_replied"></A> mh_seq_replied</H3>
31411 -
31412 -<P>Type: string<BR>
31413 -Default: &quot;replied&quot;</P>
31414 -
31415 -<P>The name of the MH sequence used to tag replied messages.</P>
31416 -
31417 -
31418 -<H3><A NAME="mh_seq_unseen"></A> mh_seq_unseen</H3>
31419 -
31420 -<P>Type: string<BR>
31421 -Default: &quot;unseen&quot;</P>
31422 -
31423 -<P>The name of the MH sequence used for unseen messages.</P>
31424 -
31425 -
31426 -<H3><A NAME="mime_forward"></A> mime_forward</H3>
31427 -
31428 -<P>Type: quadoption<BR>
31429 -Default: no</P>
31430 -
31431 -<P>When set, the message you are forwarding will be attached as a
31432 -separate MIME part instead of included in the main body of the
31433 -message.  This is useful for forwarding MIME messages so the receiver
31434 -can properly view the message as it was delivered to you. If you like
31435 -to switch between MIME and not MIME from mail to mail, set this
31436 -variable to ask-no or ask-yes.</P>
31437 -<P>Also see ``
31438 -<A HREF="#forward_decode">$forward_decode</A>'' and ``
31439 -<A HREF="#mime_forward_decode">$mime_forward_decode</A>''.</P>
31440 -
31441 -
31442 -<H3><A NAME="mime_forward_decode"></A> mime_forward_decode</H3>
31443 -
31444 -<P>Type: boolean<BR>
31445 -Default: no</P>
31446 -
31447 -<P>Controls the decoding of complex MIME messages into text/plain when
31448 -forwarding a message while ``
31449 -<A HREF="#mime_forward">$mime_forward</A>'' is <EM>set</EM>. Otherwise
31450 -``
31451 -<A HREF="#forward_decode">$forward_decode</A>'' is used instead.</P>
31452 -
31453 -
31454 -<H3><A NAME="mime_forward_rest"></A> mime_forward_rest</H3>
31455 -
31456 -<P>Type: quadoption<BR>
31457 -Default: yes</P>
31458 -
31459 -<P>When forwarding multiple attachments of a MIME message from the recvattach
31460 -menu, attachments which cannot be decoded in a reasonable manner will
31461 -be attached to the newly composed message if this option is set.</P>
31462 -
31463 -
31464 -<H3><A NAME="mix_entry_format"></A> mix_entry_format</H3>
31465 -
31466 -<P>Type: string<BR>
31467 -Default: &quot;%4n %c %-16s %a&quot;</P>
31468 -
31469 -<P>This variable describes the format of a remailer line on the mixmaster
31470 -chain selection screen.  The following printf-like sequences are 
31471 -supported:</P>
31472 -
31473 -<P>
31474 -<DL>
31475 -<DT><B>%n </B><DD><P>The running number on the menu.</P>
31476 -<DT><B>%c </B><DD><P>Remailer capabilities.</P>
31477 -<DT><B>%s </B><DD><P>The remailer's short name.</P>
31478 -<DT><B>%a </B><DD><P>The remailer's e-mail address.</P>
31479 -</DL>
31480 -</P>
31481 -
31482 -
31483 -<H3><A NAME="mixmaster"></A> mixmaster</H3>
31484 -
31485 -<P>Type: path<BR>
31486 -Default: &quot;mixmaster&quot;</P>
31487 -
31488 -<P>This variable contains the path to the Mixmaster binary on your
31489 -system.  It is used with various sets of parameters to gather the
31490 -list of known remailers, and to finally send a message through the
31491 -mixmaster chain.</P>
31492 -
31493 -
31494 -<H3><A NAME="move"></A> move</H3>
31495 -
31496 -<P>Type: quadoption<BR>
31497 -Default: ask-no</P>
31498 -
31499 -<P>Controls whether you will be asked to confirm moving read messages
31500 -from your spool mailbox to your ``
31501 -<A HREF="#mbox">$mbox</A>'' mailbox, or as a result of
31502 -a ``
31503 -<A HREF="manual-3.html#mbox-hook">mbox-hook</A>'' command.</P>
31504 -
31505 -
31506 -<H3><A NAME="message_format"></A> message_format</H3>
31507 -
31508 -<P>Type: string<BR>
31509 -Default: &quot;%s&quot;</P>
31510 -
31511 -<P>This is the string displayed in the ``attachment'' menu for
31512 -attachments of type message/rfc822.  For a full listing of defined
31513 -escape sequences see the section on ``
31514 -<A HREF="#index_format">$index_format</A>''.</P>
31515 -
31516 -
31517 -<H3><A NAME="pager"></A> pager</H3>
31518 -
31519 -<P>Type: path<BR>
31520 -Default: &quot;builtin&quot;</P>
31521 -
31522 -<P>This variable specifies which pager you would like to use to view
31523 -messages.  builtin means to use the builtin pager, otherwise this
31524 -variable should specify the pathname of the external pager you would
31525 -like to use.</P>
31526 -<P>Using an external pager may have some disadvantages: Additional
31527 -keystrokes are necessary because you can't call mutt functions
31528 -directly from the pager, and screen resizes cause lines longer than
31529 -the screen width to be badly formatted in the help menu.</P>
31530 -
31531 -
31532 -<H3><A NAME="pager_context"></A> pager_context</H3>
31533 -
31534 -<P>Type: number<BR>
31535 -Default: 0</P>
31536 -
31537 -<P>This variable controls the number of lines of context that are given
31538 -when displaying the next or previous page in the internal pager.  By
31539 -default, Mutt will display the line after the last one on the screen
31540 -at the top of the next page (0 lines of context).</P>
31541 -
31542 -
31543 -<H3><A NAME="pager_format"></A> pager_format</H3>
31544 -
31545 -<P>Type: string<BR>
31546 -Default: &quot;-%Z- %C/%m: %-20.20n   %s&quot;</P>
31547 -
31548 -<P>This variable controls the format of the one-line message ``status''
31549 -displayed before each message in either the internal or an external
31550 -pager.  The valid sequences are listed in the ``
31551 -<A HREF="#index_format">$index_format</A>''
31552 -section.</P>
31553 -
31554 -
31555 -<H3><A NAME="pager_index_lines"></A> pager_index_lines</H3>
31556 -
31557 -<P>Type: number<BR>
31558 -Default: 0</P>
31559 -
31560 -<P>Determines the number of lines of a mini-index which is shown when in
31561 -the pager.  The current message, unless near the top or bottom of the
31562 -folder, will be roughly one third of the way down this mini-index,
31563 -giving the reader the context of a few messages before and after the
31564 -message.  This is useful, for example, to determine how many messages
31565 -remain to be read in the current thread.  One of the lines is reserved
31566 -for the status bar from the index, so a <EM>pager_index_lines</EM> of 6
31567 -will only show 5 lines of the actual index.  A value of 0 results in
31568 -no index being shown.  If the number of messages in the current folder
31569 -is less than <EM>pager_index_lines</EM>, then the index will only use as
31570 -many lines as it needs.</P>
31571 -
31572 -
31573 -<H3><A NAME="pager_stop"></A> pager_stop</H3>
31574 -
31575 -<P>Type: boolean<BR>
31576 -Default: no</P>
31577 -
31578 -<P>When set, the internal-pager will <B>not</B> move to the next message
31579 -when you are at the end of a message and invoke the <EM>next-page</EM>
31580 -function.</P>
31581 -
31582 -
31583 -<H3><A NAME="pgp_autosign"></A> pgp_autosign</H3>
31584 -
31585 -<P>Type: boolean<BR>
31586 -Default: no</P>
31587 -
31588 -<P>Setting this variable will cause Mutt to always attempt to PGP/MIME
31589 -sign outgoing messages.  This can be overridden by use of the <EM>pgp-
31590 -menu</EM>, when signing is not required or encryption is requested as
31591 -well.</P>
31592 -
31593 -
31594 -<H3><A NAME="pgp_autoencrypt"></A> pgp_autoencrypt</H3>
31595 -
31596 -<P>Type: boolean<BR>
31597 -Default: no</P>
31598 -
31599 -<P>Setting this variable will cause Mutt to always attempt to PGP/MIME
31600 -encrypt outgoing messages.  This is probably only useful in connection
31601 -to the <EM>send-hook</EM> command.  It can be overridden by use of the
31602 -<EM>pgp-menu</EM>, when encryption is not required or signing is
31603 -requested as well.</P>
31604 -
31605 -
31606 -<H3><A NAME="pgp_ignore_subkeys"></A> pgp_ignore_subkeys</H3>
31607 -
31608 -<P>Type: boolean<BR>
31609 -Default: yes</P>
31610 -
31611 -<P>Setting this variable will cause Mutt to ignore OpenPGP subkeys. Instead,
31612 -the principal key will inherit the subkeys' capabilities.  Unset this
31613 -if you want to play interesting key selection games.</P>
31614 -
31615 -
31616 -<H3><A NAME="pgp_entry_format"></A> pgp_entry_format</H3>
31617 -
31618 -<P>Type: string<BR>
31619 -Default: &quot;%4n %t%f %4l/0x%k %-4a %2c %u&quot;</P>
31620 -
31621 -<P>This variable allows you to customize the PGP key selection menu to
31622 -your personal taste. This string is similar to ``
31623 -<A HREF="#index_format">$index_format</A>'', but
31624 -has its own set of printf()-like sequences:</P>
31625 -
31626 -<P>
31627 -<DL>
31628 -<DT><B>%n     </B><DD><P>number</P>
31629 -<DT><B>%k     </B><DD><P>key id</P>
31630 -<DT><B>%u     </B><DD><P>user id</P>
31631 -<DT><B>%a     </B><DD><P>algorithm</P>
31632 -<DT><B>%l     </B><DD><P>key length</P>
31633 -<DT><B>%f     </B><DD><P>flags</P>
31634 -<DT><B>%c     </B><DD><P>capabilities</P>
31635 -<DT><B>%t     </B><DD><P>trust/validity of the key-uid association</P>
31636 -<DT><B>%[&lt;s&gt;] </B><DD><P>date of the key where &lt;s&gt; is an strftime(3) expression</P>
31637 -</DL>
31638 -</P>
31639 -
31640 -
31641 -<H3><A NAME="pgp_good_sign"></A> pgp_good_sign</H3>
31642 -
31643 -<P>Type: regular expression<BR>
31644 -Default: &quot;&quot;</P>
31645 -
31646 -<P>If you assign a text to this variable, then a PGP signature is only
31647 -considered verified if the output from 
31648 -<A HREF="#pgp_verify_command">$pgp_verify_command</A> contains
31649 -the text. Use this variable if the exit code from the command is 0
31650 -even for bad signatures.</P>
31651 -
31652 -
31653 -<H3><A NAME="pgp_long_ids"></A> pgp_long_ids</H3>
31654 -
31655 -<P>Type: boolean<BR>
31656 -Default: no</P>
31657 -
31658 -<P>If set, use 64 bit PGP key IDs. Unset uses the normal 32 bit Key IDs.</P>
31659 -
31660 -
31661 -<H3><A NAME="pgp_replyencrypt"></A> pgp_replyencrypt</H3>
31662 -
31663 -<P>Type: boolean<BR>
31664 -Default: yes</P>
31665 -
31666 -<P>If set, automatically PGP encrypt replies to messages which are
31667 -encrypted.</P>
31668 -
31669 -
31670 -<H3><A NAME="pgp_replysign"></A> pgp_replysign</H3>
31671 -
31672 -<P>Type: boolean<BR>
31673 -Default: no</P>
31674 -
31675 -<P>If set, automatically PGP sign replies to messages which are signed.</P>
31676 -<P><B>Note:</B> this does not work on messages that are encrypted
31677 -<B>and</B> signed!</P>
31678 -
31679 -
31680 -<H3><A NAME="pgp_replysignencrypted"></A> pgp_replysignencrypted</H3>
31681 -
31682 -<P>Type: boolean<BR>
31683 -Default: no</P>
31684 -
31685 -<P>If set, automatically PGP sign replies to messages which are
31686 -encrypted. This makes sense in combination with
31687 -``
31688 -<A HREF="#pgp_replyencrypt">$pgp_replyencrypt</A>'', because it allows you to sign all messages
31689 -which are automatically encrypted.  This works around the problem
31690 -noted in ``
31691 -<A HREF="#pgp_replysign">$pgp_replysign</A>'', that mutt is not able to find out
31692 -whether an encrypted message is also signed.</P>
31693 -
31694 -
31695 -<H3><A NAME="pgp_retainable_sigs"></A> pgp_retainable_sigs</H3>
31696 -
31697 -<P>Type: boolean<BR>
31698 -Default: no</P>
31699 -
31700 -<P>If set, signed and encrypted messages will consist of nested
31701 -multipart/signed and multipart/encrypted body parts.</P>
31702 -<P>This is useful for applications like encrypted and signed mailing
31703 -lists, where the outer layer (multipart/encrypted) can be easily
31704 -removed, while the inner multipart/signed part is retained.</P>
31705 -
31706 -
31707 -<H3><A NAME="pgp_show_unusable"></A> pgp_show_unusable</H3>
31708 -
31709 -<P>Type: boolean<BR>
31710 -Default: yes</P>
31711 -
31712 -<P>If set, mutt will display non-usable keys on the PGP key selection
31713 -menu.  This includes keys which have been revoked, have expired, or
31714 -have been marked as ``disabled'' by the user.</P>
31715 -
31716 -
31717 -<H3><A NAME="pgp_sign_as"></A> pgp_sign_as</H3>
31718 -
31719 -<P>Type: string<BR>
31720 -Default: &quot;&quot;</P>
31721 -
31722 -<P>If you have more than one key pair, this option allows you to specify
31723 -which of your private keys to use.  It is recommended that you use the
31724 -keyid form to specify your key (e.g., ``0x00112233'').</P>
31725 -
31726 -
31727 -<H3><A NAME="pgp_strict_enc"></A> pgp_strict_enc</H3>
31728 -
31729 -<P>Type: boolean<BR>
31730 -Default: yes</P>
31731 -
31732 -<P>If set, Mutt will automatically encode PGP/MIME signed messages as
31733 -<EM>quoted-printable</EM>.  Please note that unsetting this variable may
31734 -lead to problems with non-verifyable PGP signatures, so only change
31735 -this if you know what you are doing.</P>
31736 -
31737 -
31738 -<H3><A NAME="pgp_timeout"></A> pgp_timeout</H3>
31739 -
31740 -<P>Type: number<BR>
31741 -Default: 300</P>
31742 -
31743 -<P>The number of seconds after which a cached passphrase will expire if
31744 -not used.</P>
31745 -
31746 -
31747 -<H3><A NAME="pgp_verify_sig"></A> pgp_verify_sig</H3>
31748 -
31749 -<P>Type: quadoption<BR>
31750 -Default: yes</P>
31751 -
31752 -<P>If ``yes'', always attempt to verify PGP/MIME signatures.  If ``ask-yes''
31753 -or ``ask-no'',
31754 -ask whether or not to verify the signature.  If ``no'', never attempt
31755 -to verify PGP/MIME signatures.</P>
31756 -
31757 -
31758 -<H3><A NAME="pgp_sort_keys"></A> pgp_sort_keys</H3>
31759 -
31760 -<P>Type: sort order<BR>
31761 -Default: address</P>
31762 -
31763 -<P>Specifies how the entries in the `pgp keys' menu are sorted. The
31764 -following are legal values:</P>
31765 -
31766 -<P>
31767 -<DL>
31768 -<DT><B>address </B><DD><P>sort alphabetically by user id</P>
31769 -<DT><B>keyid   </B><DD><P>sort alphabetically by key id</P>
31770 -<DT><B>date    </B><DD><P>sort by key creation date</P>
31771 -<DT><B>trust   </B><DD><P>sort by the trust of the key</P>
31772 -</DL>
31773 -</P>
31774 -
31775 -<P>If you prefer reverse order of the above values, prefix it with
31776 -`reverse-'.</P>
31777 -
31778 -
31779 -<H3><A NAME="pgp_create_traditional"></A> pgp_create_traditional</H3>
31780 -
31781 -<P>Type: quadoption<BR>
31782 -Default: no</P>
31783 -
31784 -<P>This option controls whether Mutt generates old-style PGP encrypted
31785 -or signed messages under certain circumstances.</P>
31786 -<P>Note that PGP/MIME will be used automatically for messages which have
31787 -a character set different from us-ascii, or which consist of more than
31788 -a single MIME part.</P>
31789 -<P>Also note that using the old-style PGP message format is <B>strongly</B>
31790 -<B>deprecated</B>.</P>
31791 -
31792 -
31793 -<H3><A NAME="pgp_decode_command"></A> pgp_decode_command</H3>
31794 -
31795 -<P>Type: string<BR>
31796 -Default: &quot;&quot;</P>
31797 -
31798 -<P>This format strings specifies a command which is used to decode 
31799 -application/pgp attachments.</P>
31800 -<P>The PGP command formats have their own set of printf-like sequences:</P>
31801 -
31802 -<P>
31803 -<DL>
31804 -<DT><B>%p </B><DD><P>Expands to PGPPASSFD=0 when a pass phrase is needed, to an empty
31805 -string otherwise. Note: This may be used with a %? construct.</P>
31806 -<DT><B>%f </B><DD><P>Expands to the name of a file containing a message.</P>
31807 -<DT><B>%s </B><DD><P>Expands to the name of a file containing the signature part
31808 -of a multipart/signed attachment when verifying it.</P>
31809 -<DT><B>%a </B><DD><P>The value of 
31810 -<A HREF="#pgp_sign_as">$pgp_sign_as</A>.</P>
31811 -<DT><B>%r </B><DD><P>One or more key IDs.</P>
31812 -</DL>
31813 -</P>
31814 -
31815 -<P>For examples on how to configure these formats for the various versions
31816 -of PGP which are floating around, see the pgp*.rc and gpg.rc files in
31817 -the samples/ subdirectory which has been installed on your system
31818 -alongside the documentation.</P>
31819 -
31820 -
31821 -<H3><A NAME="pgp_getkeys_command"></A> pgp_getkeys_command</H3>
31822 -
31823 -<P>Type: string<BR>
31824 -Default: &quot;&quot;</P>
31825 -
31826 -<P>This command is invoked whenever mutt will need public key information.
31827 -%r is the only printf-like sequence used with this format.</P>
31828 -
31829 -
31830 -<H3><A NAME="pgp_verify_command"></A> pgp_verify_command</H3>
31831 -
31832 -<P>Type: string<BR>
31833 -Default: &quot;&quot;</P>
31834 -
31835 -<P>This command is used to verify PGP/MIME signatures.</P>
31836 -
31837 -
31838 -<H3><A NAME="pgp_decrypt_command"></A> pgp_decrypt_command</H3>
31839 -
31840 -<P>Type: string<BR>
31841 -Default: &quot;&quot;</P>
31842 -
31843 -<P>This command is used to decrypt a PGP/MIME encrypted message.</P>
31844 -
31845 -
31846 -<H3><A NAME="pgp_clearsign_command"></A> pgp_clearsign_command</H3>
31847 -
31848 -<P>Type: string<BR>
31849 -Default: &quot;&quot;</P>
31850 -
31851 -<P>This format is used to create a &quot;clearsigned&quot; old-style PGP attachment.
31852 -Note that the use of this format is <B>strongly</B> <B>deprecated</B>.</P>
31853 -
31854 -
31855 -<H3><A NAME="pgp_sign_command"></A> pgp_sign_command</H3>
31856 -
31857 -<P>Type: string<BR>
31858 -Default: &quot;&quot;</P>
31859 -
31860 -<P>This command is used to create the detached PGP signature for a 
31861 -multipart/signed PGP/MIME body part.</P>
31862 -
31863 -
31864 -<H3><A NAME="pgp_encrypt_sign_command"></A> pgp_encrypt_sign_command</H3>
31865 -
31866 -<P>Type: string<BR>
31867 -Default: &quot;&quot;</P>
31868 -
31869 -<P>This command is used to combinedly sign/encrypt a body part.</P>
31870 -
31871 -
31872 -<H3><A NAME="pgp_encrypt_only_command"></A> pgp_encrypt_only_command</H3>
31873 -
31874 -<P>Type: string<BR>
31875 -Default: &quot;&quot;</P>
31876 -
31877 -<P>This command is used to encrypt a body part without signing it.</P>
31878 -
31879 -
31880 -<H3><A NAME="pgp_import_command"></A> pgp_import_command</H3>
31881 -
31882 -<P>Type: string<BR>
31883 -Default: &quot;&quot;</P>
31884 -
31885 -<P>This command is used to import a key from a message into 
31886 -the user's public key ring.</P>
31887 -
31888 -
31889 -<H3><A NAME="pgp_export_command"></A> pgp_export_command</H3>
31890 -
31891 -<P>Type: string<BR>
31892 -Default: &quot;&quot;</P>
31893 -
31894 -<P>This command is used to export a public key from the user's
31895 -key ring.</P>
31896 -
31897 -
31898 -<H3><A NAME="pgp_verify_key_command"></A> pgp_verify_key_command</H3>
31899 -
31900 -<P>Type: string<BR>
31901 -Default: &quot;&quot;</P>
31902 -
31903 -<P>This command is used to verify key information from the key selection
31904 -menu.</P>
31905 -
31906 -
31907 -<H3><A NAME="pgp_list_secring_command"></A> pgp_list_secring_command</H3>
31908 -
31909 -<P>Type: string<BR>
31910 -Default: &quot;&quot;</P>
31911 -
31912 -<P>This command is used to list the secret key ring's contents.  The
31913 -output format must be analogous to the one used by 
31914 -gpg --list-keys --with-colons.</P>
31915 -<P>This format is also generated by the pgpring utility which comes 
31916 -with mutt.</P>
31917 -
31918 -
31919 -<H3><A NAME="pgp_list_pubring_command"></A> pgp_list_pubring_command</H3>
31920 -
31921 -<P>Type: string<BR>
31922 -Default: &quot;&quot;</P>
31923 -
31924 -<P>This command is used to list the public key ring's contents.  The
31925 -output format must be analogous to the one used by 
31926 -gpg --list-keys --with-colons.</P>
31927 -<P>This format is also generated by the pgpring utility which comes 
31928 -with mutt.</P>
31929 -
31930 -
31931 -<H3><A NAME="forward_decrypt"></A> forward_decrypt</H3>
31932 -
31933 -<P>Type: boolean<BR>
31934 -Default: yes</P>
31935 -
31936 -<P>Controls the handling of encrypted messages when forwarding a message.
31937 -When set, the outer layer of encryption is stripped off.  This
31938 -variable is only used if ``
31939 -<A HREF="#mime_forward">$mime_forward</A>'' is <EM>set</EM> and
31940 -``
31941 -<A HREF="#mime_forward_decode">$mime_forward_decode</A>'' is <EM>unset</EM>.</P>
31942 -
31943 -
31944 -<H3><A NAME="ssl_starttls"></A> ssl_starttls</H3>
31945 -
31946 -<P>Type: quadoption<BR>
31947 -Default: yes</P>
31948 -
31949 -<P>If set (the default), mutt will attempt to use STARTTLS on servers
31950 -advertising the capability. When unset, mutt will not attempt to
31951 -use STARTTLS regardless of the server's capabilities.</P>
31952 -
31953 -
31954 -<H3><A NAME="certificate_file"></A> certificate_file</H3>
31955 -
31956 -<P>Type: path<BR>
31957 -Default: &quot;&quot;</P>
31958 -
31959 -<P>This variable specifies the file where the certificates you trust
31960 -are saved. When an unknown certificate is encountered, you are asked
31961 -if you accept it or not. If you accept it, the certificate can also 
31962 -be saved in this file and further connections are automatically 
31963 -accepted.</P>
31964 -<P>You can also manually add CA certificates in this file. Any server
31965 -certificate that is signed with one of these CA certificates are 
31966 -also automatically accepted.</P>
31967 -<P>Example: set certificate_file=~/.mutt/certificates</P>
31968 -
31969 -
31970 -<H3><A NAME="ssl_usesystemcerts"></A> ssl_usesystemcerts</H3>
31971 -
31972 -<P>Type: boolean<BR>
31973 -Default: yes</P>
31974 -
31975 -<P>If set to <EM>yes</EM>, mutt will use CA certificates in the
31976 -system-wide certificate store when checking if server certificate 
31977 -is signed by a trusted CA.</P>
31978 -
31979 -
31980 -<H3><A NAME="entropy_file"></A> entropy_file</H3>
31981 -
31982 -<P>Type: path<BR>
31983 -Default: &quot;&quot;</P>
31984 -
31985 -<P>The file which includes random data that is used to initalize SSL
31986 -library functions.</P>
31987 -
31988 -
31989 -<H3><A NAME="ssl_use_sslv2"></A> ssl_use_sslv2</H3>
31990 -
31991 -<P>Type: boolean<BR>
31992 -Default: yes</P>
31993 -
31994 -<P>This variables specifies whether to attempt to use SSLv2 in the
31995 -SSL authentication process.</P>
31996 -
31997 -
31998 -<H3><A NAME="ssl_use_sslv3"></A> ssl_use_sslv3</H3>
31999 -
32000 -<P>Type: boolean<BR>
32001 -Default: yes</P>
32002 -
32003 -<P>This variables specifies whether to attempt to use SSLv3 in the
32004 -SSL authentication process.</P>
32005 -
32006 -
32007 -<H3><A NAME="ssl_use_tlsv1"></A> ssl_use_tlsv1</H3>
32008 -
32009 -<P>Type: boolean<BR>
32010 -Default: yes</P>
32011 -
32012 -<P>This variables specifies whether to attempt to use TLSv1 in the
32013 -SSL authentication process.</P>
32014 -
32015 -
32016 -<H3><A NAME="pipe_split"></A> pipe_split</H3>
32017 -
32018 -<P>Type: boolean<BR>
32019 -Default: no</P>
32020 -
32021 -<P>Used in connection with the <EM>pipe-message</EM> command and the ``tag-
32022 -prefix'' operator.  If this variable is unset, when piping a list of
32023 -tagged messages Mutt will concatenate the messages and will pipe them
32024 -as a single folder.  When set, Mutt will pipe the messages one by one.
32025 -In both cases the messages are piped in the current sorted order,
32026 -and the ``
32027 -<A HREF="#pipe_sep">$pipe_sep</A>'' separator is added after each message.</P>
32028 -
32029 -
32030 -<H3><A NAME="pipe_decode"></A> pipe_decode</H3>
32031 -
32032 -<P>Type: boolean<BR>
32033 -Default: no</P>
32034 -
32035 -<P>Used in connection with the <EM>pipe-message</EM> command.  When unset,
32036 -Mutt will pipe the messages without any preprocessing. When set, Mutt
32037 -will weed headers and will attempt to PGP/MIME decode the messages
32038 -first.</P>
32039 -
32040 -
32041 -<H3><A NAME="pipe_sep"></A> pipe_sep</H3>
32042 -
32043 -<P>Type: string<BR>
32044 -Default: &quot;\n&quot;</P>
32045 -
32046 -<P>The separator to add between messages when piping a list of tagged
32047 -messages to an external Unix command.</P>
32048 -
32049 -
32050 -<H3><A NAME="pop_authenticators"></A> pop_authenticators</H3>
32051 -
32052 -<P>Type: string<BR>
32053 -Default: &quot;&quot;</P>
32054 -
32055 -<P>This is a colon-delimited list of authentication methods mutt may
32056 -attempt to use to log in to an POP server, in the order mutt should
32057 -try them.  Authentication methods are either 'user', 'apop' or any
32058 -SASL mechanism, eg 'digest-md5', 'gssapi' or 'cram-md5'.
32059 -This parameter is case-insensitive. If this parameter is unset
32060 -(the default) mutt will try all available methods, in order from
32061 -most-secure to least-secure.</P>
32062 -<P>Example: set pop_authenticators=&quot;digest-md5:apop:user&quot;</P>
32063 -
32064 -
32065 -<H3><A NAME="pop_auth_try_all"></A> pop_auth_try_all</H3>
32066 -
32067 -<P>Type: boolean<BR>
32068 -Default: yes</P>
32069 -
32070 -<P>If set, Mutt will try all available methods. When unset, Mutt will
32071 -only fall back to other authentication methods if the previous
32072 -methods are unavailable. If a method is available but authentication
32073 -fails, Mutt will not connect to the POP server.</P>
32074 -
32075 -
32076 -<H3><A NAME="pop_checkinterval"></A> pop_checkinterval</H3>
32077 -
32078 -<P>Type: number<BR>
32079 -Default: 60</P>
32080 -
32081 -<P>This variable configures how often (in seconds) POP should look for
32082 -new mail.</P>
32083 -
32084 -
32085 -<H3><A NAME="pop_delete"></A> pop_delete</H3>
32086 -
32087 -<P>Type: quadoption<BR>
32088 -Default: ask-no</P>
32089 -
32090 -<P>If set, Mutt will delete successfully downloaded messages from the POP
32091 -server when using the fetch-mail function.  When unset, Mutt will
32092 -download messages but also leave them on the POP server.</P>
32093 -
32094 -
32095 -<H3><A NAME="pop_host"></A> pop_host</H3>
32096 -
32097 -<P>Type: string<BR>
32098 -Default: &quot;&quot;</P>
32099 -
32100 -<P>The name of your POP server for the fetch-mail function.  You
32101 -can also specify an alternative port, username and password, ie:</P>
32102 -<P>[pop[s]://][username[:password]@]popserver[:port]</P>
32103 -
32104 -
32105 -<H3><A NAME="pop_last"></A> pop_last</H3>
32106 -
32107 -<P>Type: boolean<BR>
32108 -Default: no</P>
32109 -
32110 -<P>If this variable is set, mutt will try to use the &quot;LAST&quot; POP command
32111 -for retrieving only unread messages from the POP server when using
32112 -the fetch-mail function.</P>
32113 -
32114 -
32115 -<H3><A NAME="pop_reconnect"></A> pop_reconnect</H3>
32116 -
32117 -<P>Type: quadoption<BR>
32118 -Default: ask-yes</P>
32119 -
32120 -<P>Controls whether or not Mutt will try to reconnect to POP server when
32121 -connection lost.</P>
32122 -
32123 -
32124 -<H3><A NAME="pop_user"></A> pop_user</H3>
32125 -
32126 -<P>Type: string<BR>
32127 -Default: &quot;&quot;</P>
32128 -
32129 -<P>Your login name on the POP server.</P>
32130 -<P>This variable defaults to your user name on the local machine.</P>
32131 -
32132 -
32133 -<H3><A NAME="pop_pass"></A> pop_pass</H3>
32134 -
32135 -<P>Type: string<BR>
32136 -Default: &quot;&quot;</P>
32137 -
32138 -<P>Specifies the password for your POP account.  If unset, Mutt will
32139 -prompt you for your password when you open POP mailbox.
32140 -<B>Warning</B>: you should only use this option when you are on a
32141 -fairly secure machine, because the superuser can read your muttrc
32142 -even if you are the only one who can read the file.</P>
32143 -
32144 -
32145 -<H3><A NAME="post_indent_string"></A> post_indent_string</H3>
32146 -
32147 -<P>Type: string<BR>
32148 -Default: &quot;&quot;</P>
32149 -
32150 -<P>Similar to the ``
32151 -<A HREF="#attribution">$attribution</A>'' variable, Mutt will append this
32152 -string after the inclusion of a message which is being replied to.</P>
32153 -
32154 -
32155 -<H3><A NAME="postpone"></A> postpone</H3>
32156 -
32157 -<P>Type: quadoption<BR>
32158 -Default: ask-yes</P>
32159 -
32160 -<P>Controls whether or not messages are saved in the ``
32161 -<A HREF="#postponed">$postponed</A>''
32162 -mailbox when you elect not to send immediately.</P>
32163 -
32164 -
32165 -<H3><A NAME="postponed"></A> postponed</H3>
32166 -
32167 -<P>Type: path<BR>
32168 -Default: &quot;~/postponed&quot;</P>
32169 -
32170 -<P>Mutt allows you to indefinitely ``
32171 -<A HREF="#postpone">postpone</A> sending a message'' which
32172 -you are editing.  When you choose to postpone a message, Mutt saves it
32173 -in the mailbox specified by this variable.  Also see the ``
32174 -<A HREF="#postpone">$postpone</A>''
32175 -variable.</P>
32176 -
32177 -
32178 -<H3><A NAME="preconnect"></A> preconnect</H3>
32179 -
32180 -<P>Type: string<BR>
32181 -Default: &quot;&quot;</P>
32182 -
32183 -<P>If set, a shell command to be executed if mutt fails to establish
32184 -a connection to the server. This is useful for setting up secure
32185 -connections, e.g. with ssh(1). If the command returns a  nonzero
32186 -status, mutt gives up opening the server. Example:</P>
32187 -<P>preconnect=&quot;ssh -f -q -L 1234:mailhost.net:143 mailhost.net
32188 -sleep 20 &lt; /dev/null &gt; /dev/null&quot;</P>
32189 -<P>Mailbox 'foo' on mailhost.net can now be reached
32190 -as '{localhost:1234}foo'.</P>
32191 -<P>NOTE: For this example to work, you must be able to log in to the
32192 -remote machine without having to enter a password.</P>
32193 -
32194 -
32195 -<H3><A NAME="print"></A> print</H3>
32196 -
32197 -<P>Type: quadoption<BR>
32198 -Default: ask-no</P>
32199 -
32200 -<P>Controls whether or not Mutt asks for confirmation before printing.
32201 -This is useful for people (like me) who accidentally hit ``p'' often.</P>
32202 -
32203 -
32204 -<H3><A NAME="print_command"></A> print_command</H3>
32205 -
32206 -<P>Type: path<BR>
32207 -Default: &quot;lpr&quot;</P>
32208 -
32209 -<P>This specifies the command pipe that should be used to print messages.</P>
32210 -
32211 -
32212 -<H3><A NAME="print_decode"></A> print_decode</H3>
32213 -
32214 -<P>Type: boolean<BR>
32215 -Default: yes</P>
32216 -
32217 -<P>Used in connection with the print-message command.  If this
32218 -option is set, the message is decoded before it is passed to the
32219 -external command specified by 
32220 -<A HREF="#print_command">$print_command</A>.  If this option
32221 -is unset, no processing will be applied to the message when
32222 -printing it.  The latter setting may be useful if you are using
32223 -some advanced printer filter which is able to properly format
32224 -e-mail messages for printing.</P>
32225 -
32226 -
32227 -<H3><A NAME="print_split"></A> print_split</H3>
32228 -
32229 -<P>Type: boolean<BR>
32230 -Default: no</P>
32231 -
32232 -<P>Used in connection with the print-message command.  If this option
32233 -is set, the command sepcified by 
32234 -<A HREF="#print_command">$print_command</A> is executed once for
32235 -each message which is to be printed.  If this option is unset, 
32236 -the command specified by 
32237 -<A HREF="#print_command">$print_command</A> is executed only once, and
32238 -all the messages are concatenated, with a form feed as the message
32239 -separator.</P>
32240 -<P>Those who use the <B>enscript</B>(1) program's mail-printing mode will
32241 -most likely want to set this option.</P>
32242 -
32243 -
32244 -<H3><A NAME="prompt_after"></A> prompt_after</H3>
32245 -
32246 -<P>Type: boolean<BR>
32247 -Default: yes</P>
32248 -
32249 -<P>If you use an <EM>external</EM> ``
32250 -<A HREF="#pager">$pager</A>'', setting this variable will
32251 -cause Mutt to prompt you for a command when the pager exits rather
32252 -than returning to the index menu.  If unset, Mutt will return to the
32253 -index menu when the external pager exits.</P>
32254 -
32255 -
32256 -<H3><A NAME="query_command"></A> query_command</H3>
32257 -
32258 -<P>Type: path<BR>
32259 -Default: &quot;&quot;</P>
32260 -
32261 -<P>This specifies the command that mutt will use to make external address
32262 -queries.  The string should contain a %s, which will be substituted
32263 -with the query string the user types.  See ``
32264 -<A HREF="manual-4.html#query">query</A>'' for more
32265 -information.</P>
32266 -
32267 -
32268 -<H3><A NAME="quit"></A> quit</H3>
32269 -
32270 -<P>Type: quadoption<BR>
32271 -Default: yes</P>
32272 -
32273 -<P>This variable controls whether ``quit'' and ``exit'' actually quit
32274 -from mutt.  If it set to yes, they do quit, if it is set to no, they
32275 -have no effect, and if it is set to ask-yes or ask-no, you are
32276 -prompted for confirmation when you try to quit.</P>
32277 -
32278 -
32279 -<H3><A NAME="quote_regexp"></A> quote_regexp</H3>
32280 -
32281 -<P>Type: regular expression<BR>
32282 -Default: &quot;^([ \t]*[|&gt;:}#])+&quot;</P>
32283 -
32284 -<P>A regular expression used in the internal-pager to determine quoted
32285 -sections of text in the body of a message.</P>
32286 -<P><B>Note:</B> In order to use the <EM>quoted</EM><B>x</B> patterns in the
32287 -internal pager, you need to set this to a regular expression that
32288 -matches <EM>exactly</EM> the quote characters at the beginning of quoted
32289 -lines.</P>
32290 -
32291 -
32292 -<H3><A NAME="read_inc"></A> read_inc</H3>
32293 -
32294 -<P>Type: number<BR>
32295 -Default: 10</P>
32296 -
32297 -<P>If set to a value greater than 0, Mutt will display which message it
32298 -is currently on when reading a mailbox.  The message is printed after
32299 -<EM>read_inc</EM> messages have been read (e.g., if set to 25, Mutt will
32300 -print a message when it reads message 25, and then again when it gets
32301 -to message 50).  This variable is meant to indicate progress when
32302 -reading large mailboxes which may take some time.
32303 -When set to 0, only a single message will appear before the reading
32304 -the mailbox.</P>
32305 -<P>Also see the ``
32306 -<A HREF="#write_inc">$write_inc</A>'' variable.</P>
32307 -
32308 -
32309 -<H3><A NAME="read_only"></A> read_only</H3>
32310 -
32311 -<P>Type: boolean<BR>
32312 -Default: no</P>
32313 -
32314 -<P>If set, all folders are opened in read-only mode.</P>
32315 -
32316 -
32317 -<H3><A NAME="realname"></A> realname</H3>
32318 -
32319 -<P>Type: string<BR>
32320 -Default: &quot;&quot;</P>
32321 -
32322 -<P>This variable specifies what &quot;real&quot; or &quot;personal&quot; name should be used
32323 -when sending messages.</P>
32324 -<P>By default, this is the GCOS field from /etc/passwd.  Note that this
32325 -variable will <EM>not</EM> be used when the user has set a real name
32326 -in the 
32327 -<A HREF="#from">$from</A> variable.</P>
32328 -
32329 -
32330 -<H3><A NAME="recall"></A> recall</H3>
32331 -
32332 -<P>Type: quadoption<BR>
32333 -Default: ask-yes</P>
32334 -
32335 -<P>Controls whether or not you are prompted to recall postponed messages
32336 -when composing a new message.  Also see ``
32337 -<A HREF="#postponed">$postponed</A>''.</P>
32338 -<P>Setting this variable to ``yes'' is not generally useful, and thus not
32339 -recommended.</P>
32340 -
32341 -
32342 -<H3><A NAME="record"></A> record</H3>
32343 -
32344 -<P>Type: path<BR>
32345 -Default: &quot;&quot;</P>
32346 -
32347 -<P>This specifies the file into which your outgoing messages should be
32348 -appended.  (This is meant as the primary method for saving a copy of
32349 -your messages, but another way to do this is using the ``
32350 -<A HREF="manual-3.html#my_hdr">my_hdr</A>''
32351 -command to create a <EM>Bcc:</EM> field with your email address in it.)</P>
32352 -<P>The value of <EM>
32353 -<A HREF="#record">$record</A></EM> is overridden by the ``
32354 -<A HREF="#force_name">$force_name</A>'' and
32355 -``
32356 -<A HREF="#save_name">$save_name</A>'' variables, and the ``
32357 -<A HREF="manual-3.html#fcc-hook">fcc-hook</A>'' command.</P>
32358 -
32359 -
32360 -<H3><A NAME="reply_regexp"></A> reply_regexp</H3>
32361 -
32362 -<P>Type: regular expression<BR>
32363 -Default: &quot;^(re([\[0-9\]+])*|aw):[ \t]*&quot;</P>
32364 -
32365 -<P>A regular expression used to recognize reply messages when threading
32366 -and replying. The default value corresponds to the English &quot;Re:&quot; and
32367 -the German &quot;Aw:&quot;.</P>
32368 -
32369 -
32370 -<H3><A NAME="reply_self"></A> reply_self</H3>
32371 -
32372 -<P>Type: boolean<BR>
32373 -Default: no</P>
32374 -
32375 -<P>If unset and you are replying to a message sent by you, Mutt will
32376 -assume that you want to reply to the recipients of that message rather
32377 -than to yourself.</P>
32378 -
32379 -
32380 -<H3><A NAME="reply_to"></A> reply_to</H3>
32381 -
32382 -<P>Type: quadoption<BR>
32383 -Default: ask-yes</P>
32384 -
32385 -<P>If set, Mutt will ask you if you want to use the address listed in the
32386 -Reply-To: header field when replying to a message.  If you answer no,
32387 -it will use the address in the From: header field instead.  This
32388 -option is useful for reading a mailing list that sets the Reply-To:
32389 -header field to the list address and you want to send a private
32390 -message to the author of a message.</P>
32391 -
32392 -
32393 -<H3><A NAME="resolve"></A> resolve</H3>
32394 -
32395 -<P>Type: boolean<BR>
32396 -Default: yes</P>
32397 -
32398 -<P>When set, the cursor will be automatically advanced to the next
32399 -(possibly undeleted) message whenever a command that modifies the
32400 -current message is executed.</P>
32401 -
32402 -
32403 -<H3><A NAME="reverse_alias"></A> reverse_alias</H3>
32404 -
32405 -<P>Type: boolean<BR>
32406 -Default: no</P>
32407 -
32408 -<P>This variable controls whether or not Mutt will display the &quot;personal&quot;
32409 -name from your aliases in the index menu if it finds an alias that
32410 -matches the message's sender.  For example, if you have the following
32411 -alias:</P>
32412 -
32413 -<P>
32414 -<BLOCKQUOTE><CODE>
32415 -<PRE>
32416 -alias juser abd30425@somewhere.net (Joe User)
32417 -</PRE>
32418 -</CODE></BLOCKQUOTE>
32419 -</P>
32420 -<P>and then you receive mail which contains the following header:</P>
32421 -
32422 -<P>
32423 -<BLOCKQUOTE><CODE>
32424 -<PRE>
32425 -From: abd30425@somewhere.net
32426 -</PRE>
32427 -</CODE></BLOCKQUOTE>
32428 -</P>
32429 -<P>It would be displayed in the index menu as ``Joe User'' instead of
32430 -``abd30425@somewhere.net.''  This is useful when the person's e-mail
32431 -address is not human friendly (like CompuServe addresses).</P>
32432 -
32433 -
32434 -<H3><A NAME="reverse_name"></A> reverse_name</H3>
32435 -
32436 -<P>Type: boolean<BR>
32437 -Default: no</P>
32438 -
32439 -<P>It may sometimes arrive that you receive mail to a certain machine,
32440 -move the messages to another machine, and reply to some the messages
32441 -from there.  If this variable is set, the default <EM>From:</EM> line of
32442 -the reply messages is built using the address where you received the
32443 -messages you are replying to.  If the variable is unset, the
32444 -<EM>From:</EM> line will use your address on the current machine.</P>
32445 -
32446 -
32447 -<H3><A NAME="reverse_realname"></A> reverse_realname</H3>
32448 -
32449 -<P>Type: boolean<BR>
32450 -Default: yes</P>
32451 -
32452 -<P>This variable fine-tunes the behaviour of the 
32453 -<A HREF="#reverse_name">reverse_name</A> feature.
32454 -When it is set, mutt will use the address from incoming messages as-is,
32455 -possibly including eventual real names.  When it is unset, mutt will
32456 -override any such realnames with the setting of the 
32457 -<A HREF="#realname">realname</A> variable.</P>
32458 -
32459 -
32460 -<H3><A NAME="rfc2047_parameters"></A> rfc2047_parameters</H3>
32461 -
32462 -<P>Type: boolean<BR>
32463 -Default: no</P>
32464 -
32465 -<P>When this variable is set, Mutt will decode RFC-2047-encoded MIME 
32466 -parameters. You want to set this variable when mutt suggests you
32467 -to save attachments to files named like this: 
32468 -=?iso-8859-1?Q?file=5F=E4=5F991116=2Ezip?=</P>
32469 -<P>When this variable is set interactively, the change doesn't have
32470 -the desired effect before you have changed folders.</P>
32471 -<P>Note that this use of RFC 2047's encoding is explicitly,
32472 -prohibited by the standard, but nevertheless encountered in the
32473 -wild.
32474 -Also note that setting this parameter will <EM>not</EM> have the effect 
32475 -that mutt <EM>generates</EM> this kind of encoding.  Instead, mutt will
32476 -unconditionally use the encoding specified in RFC 2231.</P>
32477 -
32478 -
32479 -<H3><A NAME="save_address"></A> save_address</H3>
32480 -
32481 -<P>Type: boolean<BR>
32482 -Default: no</P>
32483 -
32484 -<P>If set, mutt will take the sender's full address when choosing a
32485 -default folder for saving a mail. If ``
32486 -<A HREF="#save_name">$save_name</A>'' or ``
32487 -<A HREF="#force_name">$force_name</A>''
32488 -is set too, the selection of the fcc folder will be changed as well.</P>
32489 -
32490 -
32491 -<H3><A NAME="save_empty"></A> save_empty</H3>
32492 -
32493 -<P>Type: boolean<BR>
32494 -Default: yes</P>
32495 -
32496 -<P>When unset, mailboxes which contain no saved messages will be removed
32497 -when closed (the exception is ``
32498 -<A HREF="#spoolfile">$spoolfile</A>'' which is never removed).
32499 -If set, mailboxes are never removed.</P>
32500 -<P><B>Note:</B> This only applies to mbox and MMDF folders, Mutt does not
32501 -delete MH and Maildir directories.</P>
32502 -
32503 -
32504 -<H3><A NAME="save_name"></A> save_name</H3>
32505 -
32506 -<P>Type: boolean<BR>
32507 -Default: no</P>
32508 -
32509 -<P>This variable controls how copies of outgoing messages are saved.
32510 -When set, a check is made to see if a mailbox specified by the
32511 -recipient address exists (this is done by searching for a mailbox in
32512 -the ``
32513 -<A HREF="#folder">$folder</A>'' directory with the <EM>username</EM> part of the
32514 -recipient address).  If the mailbox exists, the outgoing message will
32515 -be saved to that mailbox, otherwise the message is saved to the
32516 -``
32517 -<A HREF="#record">$record</A>'' mailbox.</P>
32518 -<P>Also see the ``
32519 -<A HREF="#force_name">$force_name</A>'' variable.</P>
32520 -
32521 -
32522 -<H3><A NAME="score"></A> score</H3>
32523 -
32524 -<P>Type: boolean<BR>
32525 -Default: yes</P>
32526 -
32527 -<P>When this variable is <EM>unset</EM>, scoring is turned off.  This can
32528 -be useful to selectively disable scoring for certain folders when the
32529 -``
32530 -<A HREF="#score_threshold_delete">$score_threshold_delete</A>'' variable and friends are used.</P>
32531 -
32532 -
32533 -<H3><A NAME="score_threshold_delete"></A> score_threshold_delete</H3>
32534 -
32535 -<P>Type: number<BR>
32536 -Default: -1</P>
32537 -
32538 -<P>Messages which have been assigned a score equal to or lower than the value
32539 -of this variable are automatically marked for deletion by mutt.  Since
32540 -mutt scores are always greater than or equal to zero, the default setting
32541 -of this variable will never mark a message for deletion.</P>
32542 -
32543 -
32544 -<H3><A NAME="score_threshold_flag"></A> score_threshold_flag</H3>
32545 -
32546 -<P>Type: number<BR>
32547 -Default: 9999</P>
32548 -
32549 -<P>Messages wich have been assigned a score greater than or equal to this 
32550 -variable's value are automatically marked &quot;flagged&quot;.</P>
32551 -
32552 -
32553 -<H3><A NAME="score_threshold_read"></A> score_threshold_read</H3>
32554 -
32555 -<P>Type: number<BR>
32556 -Default: -1</P>
32557 -
32558 -<P>Messages which have been assigned a score equal to or lower than the value
32559 -of this variable are automatically marked as read by mutt.  Since
32560 -mutt scores are always greater than or equal to zero, the default setting
32561 -of this variable will never mark a message read.</P>
32562 -
32563 -
32564 -<H3><A NAME="send_charset"></A> send_charset</H3>
32565 -
32566 -<P>Type: string<BR>
32567 -Default: &quot;us-ascii:iso-8859-1:utf-8&quot;</P>
32568 -
32569 -<P>A list of character sets for outgoing messages. Mutt will use the
32570 -first character set into which the text can be converted exactly.
32571 -If your ``
32572 -<A HREF="#charset">$charset</A>'' is not iso-8859-1 and recipients may not
32573 -understand UTF-8, it is advisable to include in the list an
32574 -appropriate widely used standard character set (such as
32575 -iso-8859-2, koi8-r or iso-2022-jp) either instead of or after
32576 -&quot;iso-8859-1&quot;.</P>
32577 -
32578 -
32579 -<H3><A NAME="sendmail"></A> sendmail</H3>
32580 -
32581 -<P>Type: path<BR>
32582 -Default: &quot;/usr/sbin/sendmail -oem -oi&quot;</P>
32583 -
32584 -<P>Specifies the program and arguments used to deliver mail sent by Mutt.
32585 -Mutt expects that the specified program interprets additional
32586 -arguments as recipient addresses.</P>
32587 -
32588 -
32589 -<H3><A NAME="sendmail_wait"></A> sendmail_wait</H3>
32590 -
32591 -<P>Type: number<BR>
32592 -Default: 0</P>
32593 -
32594 -<P>Specifies the number of seconds to wait for the ``
32595 -<A HREF="#sendmail">$sendmail</A>'' process
32596 -to finish before giving up and putting delivery in the background.</P>
32597 -<P>Mutt interprets the value of this variable as follows:</P>
32598 -<P>
32599 -<DL>
32600 -<DT><B>&gt;0 </B><DD><P>number of seconds to wait for sendmail to finish before continuing</P>
32601 -<DT><B>0  </B><DD><P>wait forever for sendmail to finish</P>
32602 -<DT><B>&lt;0 </B><DD><P>always put sendmail in the background without waiting</P>
32603 -</DL>
32604 -</P>
32605 -
32606 -<P>Note that if you specify a value other than 0, the output of the child
32607 -process will be put in a temporary file.  If there is some error, you
32608 -will be informed as to where to find the output.</P>
32609 -
32610 -
32611 -<H3><A NAME="shell"></A> shell</H3>
32612 -
32613 -<P>Type: path<BR>
32614 -Default: &quot;&quot;</P>
32615 -
32616 -<P>Command to use when spawning a subshell.  By default, the user's login
32617 -shell from /etc/passwd is used.</P>
32618 -
32619 -
32620 -<H3><A NAME="sig_dashes"></A> sig_dashes</H3>
32621 -
32622 -<P>Type: boolean<BR>
32623 -Default: yes</P>
32624 -
32625 -<P>If set, a line containing ``-- '' will be inserted before your
32626 -``
32627 -<A HREF="#signature">$signature</A>''.  It is <B>strongly</B> recommended that you not unset
32628 -this variable unless your ``signature'' contains just your name.  The
32629 -reason for this is because many software packages use ``-- \n'' to
32630 -detect your signature.  For example, Mutt has the ability to highlight
32631 -the signature in a different color in the builtin pager.</P>
32632 -
32633 -
32634 -<H3><A NAME="sig_on_top"></A> sig_on_top</H3>
32635 -
32636 -<P>Type: boolean<BR>
32637 -Default: no</P>
32638 -
32639 -<P>If set, the signature will be included before any quoted or forwarded
32640 -text.  It is <B>strongly</B> recommended that you do not set this variable
32641 -unless you really know what you are doing, and are prepared to take
32642 -some heat from netiquette guardians.</P>
32643 -
32644 -
32645 -<H3><A NAME="signature"></A> signature</H3>
32646 -
32647 -<P>Type: path<BR>
32648 -Default: &quot;~/.signature&quot;</P>
32649 -
32650 -<P>Specifies the filename of your signature, which is appended to all
32651 -outgoing messages.   If the filename ends with a pipe (``|''), it is
32652 -assumed that filename is a shell command and input should be read from
32653 -its stdout.</P>
32654 -
32655 -
32656 -<H3><A NAME="simple_search"></A> simple_search</H3>
32657 -
32658 -<P>Type: string<BR>
32659 -Default: &quot;~f %s | ~s %s&quot;</P>
32660 -
32661 -<P>Specifies how Mutt should expand a simple search into a real search
32662 -pattern.  A simple search is one that does not contain any of the ~
32663 -operators.  See ``
32664 -<A HREF="manual-4.html#patterns">patterns</A>'' for more information on search patterns.</P>
32665 -<P>For example, if you simply type joe at a search or limit prompt, Mutt
32666 -will automatically expand it to the value specified by this variable.
32667 -For the default value it would be:</P>
32668 -<P>~f joe | ~s joe</P>
32669 -
32670 -
32671 -<H3><A NAME="smart_wrap"></A> smart_wrap</H3>
32672 -
32673 -<P>Type: boolean<BR>
32674 -Default: yes</P>
32675 -
32676 -<P>Controls the display of lines longer then the screen width in the
32677 -internal pager. If set, long lines are wrapped at a word boundary.  If
32678 -unset, lines are simply wrapped at the screen edge. Also see the
32679 -``
32680 -<A HREF="#markers">$markers</A>'' variable.</P>
32681 -
32682 -
32683 -<H3><A NAME="smileys"></A> smileys</H3>
32684 -
32685 -<P>Type: regular expression<BR>
32686 -Default: &quot;(&gt;From )|(:[-^]?[][)(&gt;&lt;}{|/DP])&quot;</P>
32687 -
32688 -<P>The <EM>pager</EM> uses this variable to catch some common false
32689 -positives of ``
32690 -<A HREF="#quote_regexp">$quote_regexp</A>'', most notably smileys in the beginning
32691 -of a line</P>
32692 -
32693 -
32694 -<H3><A NAME="sleep_time"></A> sleep_time</H3>
32695 -
32696 -<P>Type: number<BR>
32697 -Default: 1</P>
32698 -
32699 -<P>Specifies time, in seconds, to pause while displaying certain informational
32700 -messages, while moving from folder to folder and after expunging
32701 -messages from the current folder.  The default is to pause one second, so 
32702 -a value of zero for this option suppresses the pause.</P>
32703 -
32704 -
32705 -<H3><A NAME="sort"></A> sort</H3>
32706 -
32707 -<P>Type: sort order<BR>
32708 -Default: date</P>
32709 -
32710 -<P>Specifies how to sort messages in the <EM>index</EM> menu.  Valid values
32711 -are:</P>
32712 -
32713 -<P>
32714 -<BLOCKQUOTE><CODE>
32715 -<PRE>
32716 -   date or date-sent
32717 -   date-received
32718 -   from
32719 -   mailbox-order (unsorted)
32720 -   score
32721 -   size
32722 -   subject
32723 -   threads
32724 -   to
32725 -</PRE>
32726 -</CODE></BLOCKQUOTE>
32727 -</P>
32728 -<P>You may optionally use the reverse- prefix to specify reverse sorting
32729 -order (example: set sort=reverse-date-sent).</P>
32730 -
32731 -
32732 -<H3><A NAME="sort_alias"></A> sort_alias</H3>
32733 -
32734 -<P>Type: sort order<BR>
32735 -Default: alias</P>
32736 -
32737 -<P>Specifies how the entries in the `alias' menu are sorted.  The
32738 -following are legal values:</P>
32739 -
32740 -<P>
32741 -<BLOCKQUOTE><CODE>
32742 -<PRE>
32743 -   address (sort alphabetically by email address)
32744 -   alias (sort alphabetically by alias name)
32745 -   unsorted (leave in order specified in .muttrc)
32746 -</PRE>
32747 -</CODE></BLOCKQUOTE>
32748 -</P>
32749 -
32750 -<H3><A NAME="sort_aux"></A> sort_aux</H3>
32751 -
32752 -<P>Type: sort order<BR>
32753 -Default: date</P>
32754 -
32755 -<P>When sorting by threads, this variable controls how threads are sorted
32756 -in relation to other threads, and how the branches of the thread trees
32757 -are sorted.  This can be set to any value that ``
32758 -<A HREF="#sort">$sort</A>'' can, except
32759 -threads (in that case, mutt will just use date-sent).  You can also
32760 -specify the last- prefix in addition to the reverse- prefix, but last-
32761 -must come after reverse-.  The last- prefix causes messages to be
32762 -sorted against its siblings by which has the last descendant, using
32763 -the rest of sort_aux as an ordering.  For instance, set sort_aux=last-
32764 -date-received would mean that if a new message is received in a
32765 -thread, that thread becomes the last one displayed (or the first, if
32766 -you have set sort=reverse-threads.) Note: For reversed ``
32767 -<A HREF="#sort">$sort</A>''
32768 -order 
32769 -<A HREF="#sort_aux">$sort_aux</A> is reversed again (which is not the right thing to do,
32770 -but kept to not break any existing configuration setting).</P>
32771 -
32772 -
32773 -<H3><A NAME="sort_browser"></A> sort_browser</H3>
32774 -
32775 -<P>Type: sort order<BR>
32776 -Default: subject</P>
32777 -
32778 -<P>Specifies how to sort entries in the file browser.  By default, the
32779 -entries are sorted alphabetically.  Valid values:</P>
32780 -
32781 -<P>
32782 -<BLOCKQUOTE><CODE>
32783 -<PRE>
32784 -   alpha (alphabetically)
32785 -   date
32786 -   size
32787 -   unsorted
32788 -</PRE>
32789 -</CODE></BLOCKQUOTE>
32790 -</P>
32791 -<P>You may optionally use the reverse- prefix to specify reverse sorting
32792 -order (example: set sort_browser=reverse-date).</P>
32793 -
32794 -
32795 -<H3><A NAME="sort_re"></A> sort_re</H3>
32796 -
32797 -<P>Type: boolean<BR>
32798 -Default: yes</P>
32799 -
32800 -<P>This variable is only useful when sorting by threads with
32801 -``
32802 -<A HREF="#strict_threads">$strict_threads</A>'' unset.  In that case, it changes the heuristic
32803 -mutt uses to thread messages by subject.  With sort_re set, mutt will
32804 -only attach a message as the child of another message by subject if
32805 -the subject of the child message starts with a substring matching the
32806 -setting of ``
32807 -<A HREF="#reply_regexp">$reply_regexp</A>''.  With sort_re unset, mutt will attach
32808 -the message whether or not this is the case, as long as the
32809 -non-``
32810 -<A HREF="#reply_regexp">$reply_regexp</A>'' parts of both messages are identical.</P>
32811 -
32812 -
32813 -<H3><A NAME="spoolfile"></A> spoolfile</H3>
32814 -
32815 -<P>Type: path<BR>
32816 -Default: &quot;&quot;</P>
32817 -
32818 -<P>If your spool mailbox is in a non-default place where Mutt cannot find
32819 -it, you can specify its location with this variable.  Mutt will
32820 -automatically set this variable to the value of the environment
32821 -variable $MAIL if it is not set.</P>
32822 -
32823 -
32824 -<H3><A NAME="status_chars"></A> status_chars</H3>
32825 -
32826 -<P>Type: string<BR>
32827 -Default: &quot;-*%A&quot;</P>
32828 -
32829 -<P>Controls the characters used by the &quot;%r&quot; indicator in
32830 -``
32831 -<A HREF="#status_format">$status_format</A>''. The first character is used when the mailbox is
32832 -unchanged. The second is used when the mailbox has been changed, and
32833 -it needs to be resynchronized. The third is used if the mailbox is in
32834 -read-only mode, or if the mailbox will not be written when exiting
32835 -that mailbox (You can toggle whether to write changes to a mailbox
32836 -with the toggle-write operation, bound by default to &quot;%&quot;). The fourth
32837 -is used to indicate that the current folder has been opened in attach-
32838 -message mode (Certain operations like composing a new mail, replying,
32839 -forwarding, etc. are not permitted in this mode).</P>
32840 -
32841 -
32842 -<H3><A NAME="status_format"></A> status_format</H3>
32843 -
32844 -<P>Type: string<BR>
32845 -Default: &quot;-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%&gt;-(%P)---&quot;</P>
32846 -
32847 -<P>Controls the format of the status line displayed in the <EM>index</EM>
32848 -menu.  This string is similar to ``
32849 -<A HREF="#index_format">$index_format</A>'', but has its own
32850 -set of printf()-like sequences:</P>
32851 -
32852 -<P>
32853 -<DL>
32854 -<DT><B>%b  </B><DD><P>number of mailboxes with new mail *</P>
32855 -<DT><B>%d  </B><DD><P>number of deleted messages *</P>
32856 -<DT><B>%h  </B><DD><P>local hostname</P>
32857 -<DT><B>%f  </B><DD><P>the full pathname of the current mailbox</P>
32858 -<DT><B>%F  </B><DD><P>number of flagged messages *</P>
32859 -<DT><B>%l  </B><DD><P>size (in bytes) of the current mailbox *</P>
32860 -<DT><B>%L  </B><DD><P>size (in bytes) of the messages shown 
32861 -(i.e., which match the current limit) *</P>
32862 -<DT><B>%m  </B><DD><P>the number of messages in the mailbox *</P>
32863 -<DT><B>%M  </B><DD><P>the number of messages shown (i.e., which match the current limit) *</P>
32864 -<DT><B>%n  </B><DD><P>number of new messages in the mailbox *</P>
32865 -<DT><B>%o  </B><DD><P>number of old unread messages</P>
32866 -<DT><B>%p  </B><DD><P>number of postponed messages *</P>
32867 -<DT><B>%P  </B><DD><P>percentage of the way through the index</P>
32868 -<DT><B>%r  </B><DD><P>modified/read-only/won't-write/attach-message indicator,
32869 -according to 
32870 -<A HREF="#status_chars">$status_chars</A></P>
32871 -<DT><B>%s  </B><DD><P>current sorting mode (
32872 -<A HREF="#sort">$sort</A>)</P>
32873 -<DT><B>%S  </B><DD><P>current aux sorting method (
32874 -<A HREF="#sort_aux">$sort_aux</A>)</P>
32875 -<DT><B>%t  </B><DD><P>number of tagged messages *</P>
32876 -<DT><B>%u  </B><DD><P>number of unread messages *</P>
32877 -<DT><B>%v  </B><DD><P>Mutt version string</P>
32878 -<DT><B>%V  </B><DD><P>currently active limit pattern, if any *</P>
32879 -<DT><B>%&gt;X </B><DD><P>right justify the rest of the string and pad with &quot;X&quot;</P>
32880 -<DT><B>%|X </B><DD><P>pad to the end of the line with &quot;X&quot;</P>
32881 -</DL>
32882 -</P>
32883 -
32884 -<P>* = can be optionally printed if nonzero</P>
32885 -<P>Some of the above sequences can be used to optionally print a string
32886 -if their value is nonzero.  For example, you may only want to see the
32887 -number of flagged messages if such messages exist, since zero is not
32888 -particularly meaningful.  To optionally print a string based upon one
32889 -of the above sequences, the following construct is used</P>
32890 -<P>%?&lt;sequence_char&gt;?&lt;optional_string&gt;?</P>
32891 -<P>where <EM>sequence_char</EM> is a character from the table above, and
32892 -<EM>optional_string</EM> is the string you would like printed if
32893 -<EM>status_char</EM> is nonzero.  <EM>optional_string</EM> <B>may</B> contain
32894 -other sequence as well as normal text, but you may <B>not</B> nest
32895 -optional strings.</P>
32896 -<P>Here is an example illustrating how to optionally print the number of
32897 -new messages in a mailbox:
32898 -%?n?%n new messages.?</P>
32899 -<P>Additionally you can switch between two strings, the first one, if a
32900 -value is zero, the second one, if the value is nonzero, by using the
32901 -following construct:
32902 -%?&lt;sequence_char&gt;?&lt;if_string&gt;&amp;&lt;else_string&gt;?</P>
32903 -<P>You can additionally force the result of any printf-like sequence to
32904 -be lowercase by prefixing the sequence character with an underscore
32905 -(_) sign.  For example, if you want to display the local hostname in
32906 -lowercase, you would use:
32907 -%_h</P>
32908 -
32909 -
32910 -<H3><A NAME="status_on_top"></A> status_on_top</H3>
32911 -
32912 -<P>Type: boolean<BR>
32913 -Default: no</P>
32914 -
32915 -<P>Setting this variable causes the ``status bar'' to be displayed on
32916 -the first line of the screen rather than near the bottom.</P>
32917 -
32918 -
32919 -<H3><A NAME="strict_threads"></A> strict_threads</H3>
32920 -
32921 -<P>Type: boolean<BR>
32922 -Default: no</P>
32923 -
32924 -<P>If set, threading will only make use of the ``In-Reply-To'' and
32925 -``References'' fields when you ``
32926 -<A HREF="#sort">$sort</A>'' by message threads.  By
32927 -default, messages with the same subject are grouped together in
32928 -``pseudo threads.''  This may not always be desirable, such as in a
32929 -personal mailbox where you might have several unrelated messages with
32930 -the subject ``hi'' which will get grouped together.</P>
32931 -
32932 -
32933 -<H3><A NAME="suspend"></A> suspend</H3>
32934 -
32935 -<P>Type: boolean<BR>
32936 -Default: yes</P>
32937 -
32938 -<P>When <EM>unset</EM>, mutt won't stop when the user presses the terminal's
32939 -<EM>susp</EM> key, usually ``control-Z''. This is useful if you run mutt
32940 -inside an xterm using a command like xterm -e mutt.</P>
32941 -
32942 -
32943 -<H3><A NAME="text_flowed"></A> text_flowed</H3>
32944 -
32945 -<P>Type: boolean<BR>
32946 -Default: no</P>
32947 -
32948 -<P>When set, mutt will generate text/plain; format=flowed attachments.
32949 -This format is easier to handle for some mailing software, and generally
32950 -just looks like ordinary text.  To actually make use of this format's 
32951 -features, you'll need support in your editor.</P>
32952 -<P>Note that 
32953 -<A HREF="#indent_string">$indent_string</A> is ignored when this option is set.</P>
32954 -
32955 -
32956 -<H3><A NAME="thread_received"></A> thread_received</H3>
32957 -
32958 -<P>Type: boolean<BR>
32959 -Default: no</P>
32960 -
32961 -<P>When set, mutt uses the date received rather than the date sent
32962 -to thread messages by subject.</P>
32963 -
32964 -
32965 -<H3><A NAME="thorough_search"></A> thorough_search</H3>
32966 -
32967 -<P>Type: boolean<BR>
32968 -Default: no</P>
32969 -
32970 -<P>Affects the <EM>~b</EM> and <EM>~h</EM> search operations described in
32971 -section ``
32972 -<A HREF="manual-4.html#patterns">patterns</A>'' above.  If set, the headers and attachments of
32973 -messages to be searched are decoded before searching.  If unset,
32974 -messages are searched as they appear in the folder.</P>
32975 -
32976 -
32977 -<H3><A NAME="tilde"></A> tilde</H3>
32978 -
32979 -<P>Type: boolean<BR>
32980 -Default: no</P>
32981 -
32982 -<P>When set, the internal-pager will pad blank lines to the bottom of the
32983 -screen with a tilde (~).</P>
32984 -
32985 -
32986 -<H3><A NAME="timeout"></A> timeout</H3>
32987 -
32988 -<P>Type: number<BR>
32989 -Default: 600</P>
32990 -
32991 -<P>This variable controls the <EM>number of seconds</EM> Mutt will wait for
32992 -a key to be pressed in the main menu before timing out and checking
32993 -for new mail.  A value of zero or less will cause Mutt not to ever
32994 -time out.</P>
32995 -
32996 -
32997 -<H3><A NAME="tmpdir"></A> tmpdir</H3>
32998 -
32999 -<P>Type: path<BR>
33000 -Default: &quot;&quot;</P>
33001 -
33002 -<P>This variable allows you to specify where Mutt will place its
33003 -temporary files needed for displaying and composing messages.</P>
33004 -
33005 -
33006 -<H3><A NAME="to_chars"></A> to_chars</H3>
33007 -
33008 -<P>Type: string<BR>
33009 -Default: &quot; +TCFL&quot;</P>
33010 -
33011 -<P>Controls the character used to indicate mail addressed to you.  The
33012 -first character is the one used when the mail is NOT addressed to your
33013 -address (default: space).  The second is used when you are the only
33014 -recipient of the message (default: +).  The third is when your address
33015 -appears in the TO header field, but you are not the only recipient of
33016 -the message (default: T).  The fourth character is used when your
33017 -address is specified in the CC header field, but you are not the only
33018 -recipient.  The fifth character is used to indicate mail that was sent
33019 -by <EM>you</EM>.  The sixth character is used to indicate when a mail
33020 -was sent to a mailing-list you subscribe to (default: L).</P>
33021 -
33022 -
33023 -<H3><A NAME="tunnel"></A> tunnel</H3>
33024 -
33025 -<P>Type: string<BR>
33026 -Default: &quot;&quot;</P>
33027 -
33028 -<P>Setting this variable will cause mutt to open a pipe to a command
33029 -instead of a raw socket. You may be able to use this to set up
33030 -preauthenticated connections to your IMAP/POP3 server. Example:</P>
33031 -<P>tunnel=&quot;ssh -q mailhost.net /usr/local/libexec/imapd&quot;</P>
33032 -<P>NOTE: For this example to work you must be able to log in to the remote
33033 -machine without having to enter a password.</P>
33034 -
33035 -
33036 -<H3><A NAME="use_8bitmime"></A> use_8bitmime</H3>
33037 -
33038 -<P>Type: boolean<BR>
33039 -Default: no</P>
33040 -
33041 -<P><B>Warning:</B> do not set this variable unless you are using a version
33042 -of sendmail which supports the -B8BITMIME flag (such as sendmail
33043 -8.8.x) or you may not be able to send mail.</P>
33044 -<P>When <EM>set</EM>, Mutt will invoke ``
33045 -<A HREF="#sendmail">$sendmail</A>'' with the -B8BITMIME
33046 -flag when sending 8-bit messages to enable ESMTP negotiation.</P>
33047 -
33048 -
33049 -<H3><A NAME="use_domain"></A> use_domain</H3>
33050 -
33051 -<P>Type: boolean<BR>
33052 -Default: yes</P>
33053 -
33054 -<P>When set, Mutt will qualify all local addresses (ones without the
33055 -@host portion) with the value of ``
33056 -<A HREF="#hostname">$hostname</A>''.  If <EM>unset</EM>, no
33057 -addresses will be qualified.</P>
33058 -
33059 -
33060 -<H3><A NAME="use_from"></A> use_from</H3>
33061 -
33062 -<P>Type: boolean<BR>
33063 -Default: yes</P>
33064 -
33065 -<P>When <EM>set</EM>, Mutt will generate the `From:' header field when
33066 -sending messages.  If <EM>unset</EM>, no `From:' header field will be
33067 -generated unless the user explicitly sets one using the ``
33068 -<A HREF="manual-3.html#my_hdr">my_hdr</A>''
33069 -command.</P>
33070 -
33071 -
33072 -<H3><A NAME="user_agent"></A> user_agent</H3>
33073 -
33074 -<P>Type: boolean<BR>
33075 -Default: yes</P>
33076 -
33077 -<P>When <EM>set</EM>, mutt will add a &quot;User-Agent&quot; header to outgoing
33078 -messages, indicating which version of mutt was used for composing
33079 -them.</P>
33080 -
33081 -
33082 -<H3><A NAME="visual"></A> visual</H3>
33083 -
33084 -<P>Type: path<BR>
33085 -Default: &quot;&quot;</P>
33086 -
33087 -<P>Specifies the visual editor to invoke when the <EM>~v</EM> command is
33088 -given in the builtin editor.</P>
33089 -
33090 -
33091 -<H3><A NAME="wait_key"></A> wait_key</H3>
33092 -
33093 -<P>Type: boolean<BR>
33094 -Default: yes</P>
33095 -
33096 -<P>Controls whether Mutt will ask you to press a key after <EM>shell-
33097 -escape</EM>, <EM>pipe-message</EM>, <EM>pipe-entry</EM>, <EM>print-message</EM>,
33098 -and <EM>print-entry</EM> commands.</P>
33099 -<P>It is also used when viewing attachments with ``
33100 -<A HREF="manual-5.html#auto_view">auto_view</A>'', provided
33101 -that the corresponding mailcap entry has a <EM>needsterminal</EM> flag,
33102 -and the external program is interactive.</P>
33103 -<P>When set, Mutt will always ask for a key. When unset, Mutt will wait
33104 -for a key only if the external command returned a non-zero status.</P>
33105 -
33106 -
33107 -<H3><A NAME="weed"></A> weed</H3>
33108 -
33109 -<P>Type: boolean<BR>
33110 -Default: yes</P>
33111 -
33112 -<P>When set, mutt will weed headers when when displaying, forwarding,
33113 -printing, or replying to messages.</P>
33114 -
33115 -
33116 -<H3><A NAME="wrap_search"></A> wrap_search</H3>
33117 -
33118 -<P>Type: boolean<BR>
33119 -Default: yes</P>
33120 -
33121 -<P>Controls whether searches wrap around the end of the mailbox.</P>
33122 -<P>When set, searches will wrap around the first (or last) message. When
33123 -unset, searches will not wrap.</P>
33124 -
33125 -
33126 -<H3><A NAME="wrapmargin"></A> wrapmargin</H3>
33127 -
33128 -<P>Type: number<BR>
33129 -Default: 0</P>
33130 -
33131 -<P>Controls the margin left at the right side of the terminal when mutt's
33132 -pager does smart wrapping.</P>
33133 -
33134 -
33135 -<H3><A NAME="write_inc"></A> write_inc</H3>
33136 -
33137 -<P>Type: number<BR>
33138 -Default: 10</P>
33139 -
33140 -<P>When writing a mailbox, a message will be printed every
33141 -<EM>write_inc</EM> messages to indicate progress.  If set to 0, only a
33142 -single message will be displayed before writing a mailbox.</P>
33143 -<P>Also see the ``
33144 -<A HREF="#read_inc">$read_inc</A>'' variable.</P>
33145 -
33146 -
33147 -<H3><A NAME="write_bcc"></A> write_bcc</H3>
33148 -
33149 -<P>Type: boolean<BR>
33150 -Default: yes</P>
33151 -
33152 -<P>Controls whether mutt writes out the Bcc header when preparing
33153 -messages to be sent.  Exim users may wish to use this.</P>
33154 -
33155 -
33156 -<H2><A NAME="functions"></A> <A NAME="ss6.4">6.4</A> <A HREF="manual.html#toc6.4">Functions</A>
33157 -</H2>
33158 -
33159 -<P>The following is the list of available functions listed by the mapping
33160 -in which they are available.  The default key setting is given, and an
33161 -explanation of what the function does.  The key bindings of these
33162 -functions can be changed with the 
33163 -<A HREF="manual-3.html#bind">bind</A>
33164 -command.</P>
33165 -
33166 -<H3>generic</H3>
33167 -
33168 -
33169 -<P>The <EM>generic</EM> menu is not a real menu, but specifies common functions
33170 -(such as movement) available in all menus except for <EM>pager</EM> and
33171 -<EM>editor</EM>.  Changing settings for this menu will affect the default
33172 -bindings for all menus (except as noted).</P>
33173 -<P>
33174 -<PRE>
33175 -bottom-page                L   move to the bottom of the page
33176 -current-bottom     not bound   move current entry to bottom of page
33177 -current-middle     not bound   move current entry to middle of page
33178 -current-top        not bound   move current entry to top of page
33179 -enter-command              :   enter a muttrc command
33180 -exit                       q   exit this menu
33181 -first-entry                =   move to the first entry
33182 -half-down                  ]   scroll down 1/2 page
33183 -half-up                    [   scroll up 1/2 page
33184 -help                       ?   this screen
33185 -jump                  number   jump to an index number
33186 -last-entry                 *   move to the last entry
33187 -middle-page                M   move to the middle of the page
33188 -next-entry                 j   move to the next entry
33189 -next-line                  >   scroll down one line
33190 -next-page                  z   move to the next page
33191 -previous-entry             k   move to the previous entry
33192 -previous-line              &lt;   scroll up one line
33193 -previous-page              Z   move to the previous page
33194 -refresh                   ^L   clear and redraw the screen
33195 -search                     /   search for a regular expression
33196 -search-next                n   search for next match
33197 -search-opposite    not bound   search for next match in opposite direction
33198 -search-reverse         ESC /   search backwards for a regular expression
33199 -select-entry             RET   select the current entry
33200 -shell-escape               !   run a program in a subshell
33201 -tag-entry                  t   toggle the tag on the current entry
33202 -tag-prefix                 ;   apply next command to tagged entries
33203 -top-page                   H   move to the top of the page
33204 -</PRE>
33205 -</P>
33206 -<H3>index</H3>
33207 -
33208 -<P>
33209 -<PRE>
33210 -bounce-message             b   remail a message to another user
33211 -change-folder              c   open a different folder
33212 -change-folder-readonly ESC c   open a different folder in read only mode
33213 -check-traditional-pgp  ESC P   check for classic pgp
33214 -clear-flag                 W   clear a status flag from a message
33215 -copy-message               C   copy a message to a file/mailbox
33216 -create-alias               a   create an alias from a message sender
33217 -decode-copy            ESC C   decode a message and copy it to a file/mailbox
33218 -decode-save            ESC s   decode a message and save it to a file/mailbox
33219 -delete-message             d   delete the current entry
33220 -delete-pattern             D   delete messages matching a pattern
33221 -delete-subthread       ESC d   delete all messages in subthread
33222 -delete-thread             ^D   delete all messages in thread
33223 -display-address            @   display full address of sender
33224 -display-toggle-weed        h   display message and toggle header weeding
33225 -display-message          RET   display a message
33226 -edit                       e   edit the current message
33227 -edit-type                 ^E   edit the current message's Content-Type
33228 -exit                       x   exit without saving changes
33229 -extract-keys              ^K   extract PGP public keys
33230 -fetch-mail                 G   retrieve mail from POP server
33231 -flag-message               F   toggle a message's 'important' flag
33232 -forget-passphrase         ^F   wipe PGP passphrase from memory
33233 -forward-message            f   forward a message with comments
33234 -group-reply                g   reply to all recipients
33235 -limit                      l   show only messages matching a pattern
33236 -list-reply                 L   reply to specified mailing list
33237 -mail                       m   compose a new mail message
33238 -mail-key               ESC k   mail a PGP public key
33239 -next-new                 TAB   jump to the next new message
33240 -next-subthread         ESC n   jump to the next subthread
33241 -next-thread               ^N   jump to the next thread
33242 -next-undeleted             j   move to the next undeleted message
33243 -next-unread        not bound   jump to the next unread message
33244 -parent-message             P   jump to parent message in thread
33245 -pipe-message               |   pipe message/attachment to a shell command
33246 -previous-new         ESC TAB   jump to the previous new message
33247 -previous-page              Z   move to the previous page
33248 -previous-subthread     ESC p   jump to previous subthread
33249 -previous-thread           ^P   jump to previous thread
33250 -previous-undeleted         k   move to the last undelete message
33251 -previous-unread    not bound   jump to the previous unread message
33252 -print-message              p   print the current entry
33253 -query                      Q   query external program for addresses
33254 -quit                       q   save changes to mailbox and quit
33255 -read-subthread         ESC r   mark the current subthread as read
33256 -read-thread               ^R   mark the current thread as read
33257 -recall-message             R   recall a postponed message
33258 -reply                      r   reply to a message
33259 -resend-message         ESC e   resend message and preserve MIME structure
33260 -save-message               s   save message/attachment to a file
33261 -set-flag                   w   set a status flag on a message
33262 -show-version               V   show the Mutt version number and date
33263 -show-limit             ESC l   show currently active limit pattern, if any
33264 -sort-mailbox               o   sort messages
33265 -sort-reverse               O   sort messages in reverse order
33266 -sync-mailbox               $   save changes to mailbox
33267 -tag-pattern                T   tag messages matching a pattern
33268 -tag-thread             ESC t   tag/untag all messages in the current thread
33269 -toggle-new                 N   toggle a message's 'new' flag
33270 -toggle-write               %   toggle whether the mailbox will be rewritten
33271 -undelete-message           u   undelete the current entry
33272 -undelete-pattern           U   undelete messages matching a pattern
33273 -undelete-subthread     ESC u   undelete all messages in subthread
33274 -undelete-thread           ^U   undelete all messages in thread
33275 -untag-pattern             ^T   untag messages matching a pattern
33276 -view-attachments           v   show MIME attachments
33277 -</PRE>
33278 -</P>
33279 -<H3>pager</H3>
33280 -
33281 -<P>
33282 -<PRE>
33283 -bottom             not bound   jump to the bottom of the message
33284 -bounce-message             b   remail a message to another user
33285 -change-folder              c   open a different folder
33286 -change-folder-readonly ESC c   open a different folder in read only mode
33287 -check-traditional-pgp  ESC P   check for classic pgp
33288 -copy-message               C   copy a message to a file/mailbox
33289 -create-alias               a   create an alias from a message sender
33290 -decode-copy            ESC C   decode a message and copy it to a file/mailbox
33291 -decode-save            ESC s   decode a message and save it to a file/mailbox
33292 -delete-message             d   delete the current entry
33293 -delete-subthread       ESC d   delete all messages in subthread
33294 -delete-thread             ^D   delete all messages in thread
33295 -display-address            @   display full address of sender
33296 -display-toggle-weed        h   display message and toggle header weeding
33297 -edit                       e   edit the current message
33298 -edit-type                 ^E   edit the current message's Content-Type
33299 -enter-command              :   enter a muttrc command
33300 -exit                       i   return to the main-menu
33301 -extract-keys              ^K   extract PGP public keys
33302 -flag-message               F   toggle a message's 'important' flag
33303 -forget-passphrase         ^F   wipe PGP passphrase from memory
33304 -forward-message            f   forward a message with comments
33305 -group-reply                g   reply to all recipients
33306 -half-up            not bound   move up one-half page
33307 -half-down          not bound   move down one-half page
33308 -help                       ?   this screen
33309 -list-reply                 L   reply to specified mailing list
33310 -mail                       m   compose a new mail message
33311 -mail-key               ESC k   mail a PGP public key
33312 -mark-as-new                N   toggle a message's 'new' flag
33313 -next-line                RET   scroll down one line
33314 -next-entry                 J   move to the next entry
33315 -next-new                 TAB   jump to the next new message
33316 -next-page                      move to the next page
33317 -next-subthread         ESC n   jump to the next subthread
33318 -next-thread               ^N   jump to the next thread
33319 -next-undeleted             j   move to the next undeleted message
33320 -next-unread        not bound   jump to the next unread message
33321 -parent-message             P   jump to parent message in thread
33322 -pipe-message               |   pipe message/attachment to a shell command
33323 -previous-line      BackSpace   scroll up one line
33324 -previous-entry             K   move to the previous entry
33325 -previous-new       not bound   jump to the previous new message
33326 -previous-page              -   move to the previous page
33327 -previous-subthread     ESC p   jump to previous subthread
33328 -previous-thread           ^P   jump to previous thread
33329 -previous-undeleted         k   move to the last undelete message
33330 -previous-unread    not bound   jump to the previous unread message
33331 -print-message              p   print the current entry
33332 -quit                       Q   save changes to mailbox and quit
33333 -read-subthread         ESC r   mark the current subthread as read
33334 -read-thread               ^R   mark the current thread as read
33335 -recall-message             R   recall a postponed message
33336 -redraw-screen             ^L   clear and redraw the screen
33337 -reply                      r   reply to a message
33338 -save-message               s   save message/attachment to a file
33339 -search                     /   search for a regular expression
33340 -search-next                n   search for next match
33341 -search-opposite    not bound   search for next match in opposite direction
33342 -search-reverse         ESC /   search backwards for a regular expression
33343 -search-toggle              \   toggle search pattern coloring
33344 -shell-escape               !   invoke a command in a subshell
33345 -show-version               V   show the Mutt version number and date
33346 -skip-quoted                S   skip beyond quoted text
33347 -sync-mailbox               $   save changes to mailbox
33348 -tag-message                t   tag a message
33349 -toggle-quoted              T   toggle display of quoted text
33350 -top                        ^   jump to the top of the message
33351 -undelete-message           u   undelete the current entry
33352 -undelete-subthread     ESC u   undelete all messages in subthread
33353 -undelete-thread           ^U   undelete all messages in thread
33354 -view-attachments           v   show MIME attachments
33355 -</PRE>
33356 -</P>
33357 -<H3>alias</H3>
33358 -
33359 -<P>
33360 -<PRE>
33361 -search                     /   search for a regular expression
33362 -search-next                n   search for next match
33363 -search-reverse         ESC /   search backwards for a regular expression
33364 -</PRE>
33365 -</P>
33366 -<H3>query</H3>
33367 -
33368 -<P>
33369 -<PRE>
33370 -create-alias               a   create an alias from a message sender
33371 -mail                       m   compose a new mail message
33372 -query                      Q   query external program for addresses
33373 -query-append               A   append new query results to current results
33374 -search                     /   search for a regular expression
33375 -search-next                n   search for next match
33376 -search-opposite    not bound   search for next match in opposite direction
33377 -search-reverse         ESC /   search backwards for a regular expression
33378 -</PRE>
33379 -</P>
33380 -<H3>attach</H3>
33381 -
33382 -<P>
33383 -<PRE>
33384 -bounce-message             b   remail a message to another user
33385 -collapse-parts             v   toggle display of subparts
33386 -delete-entry               d   delete the current entry
33387 -display-toggle-weed        h   display message and toggle header weeding
33388 -edit-type                 ^E   edit the current entry's Content-Type
33389 -extract-keys              ^K   extract PGP public keys
33390 -forward-message            f   forward a message with comments
33391 -group-reply                g   reply to all recipients
33392 -list-reply                 L   reply to specified mailing list
33393 -pipe-entry                 |   pipe message/attachment to a shell command
33394 -print-entry                p   print the current entry
33395 -reply                      r   reply to a message
33396 -resend-message         ESC e   resend message and preserve MIME structure
33397 -save-entry                 s   save message/attachment to a file
33398 -undelete-entry             u   undelete the current entry
33399 -view-attach              RET   view attachment using mailcap entry if necessary
33400 -view-mailcap               m   force viewing of attachment using mailcap
33401 -view-text                  T   view attachment as text
33402 -</PRE>
33403 -</P>
33404 -<H3>compose</H3>
33405 -
33406 -<P>
33407 -<PRE>
33408 -attach-file                a   attach a file(s) to this message
33409 -attach-message             A   attach message(s) to this message
33410 -attach-key             ESC k   attach a PGP public key
33411 -copy-file                  C   save message/attachment to a file
33412 -detach-file                D   delete the current entry
33413 -display-toggle-weed        h   display message and toggle header weeding
33414 -edit-bcc                   b   edit the BCC list
33415 -edit-cc                    c   edit the CC list
33416 -edit-description           d   edit attachment description
33417 -edit-encoding             ^E   edit attachment transfer-encoding
33418 -edit-fcc                   f   enter a file to save a copy of this message in
33419 -edit-from              ESC f   edit the from: field
33420 -edit-file               ^X e   edit the file to be attached
33421 -edit-headers               E   edit the message with headers
33422 -edit                       e   edit the message
33423 -edit-mime                  m   edit attachment using mailcap entry
33424 -edit-reply-to              r   edit the Reply-To field
33425 -edit-subject               s   edit the subject of this message
33426 -edit-to                    t   edit the TO list
33427 -edit-type                 ^T   edit attachment type
33428 -filter-entry               F   filter attachment through a shell command
33429 -forget-passphrase         ^F   wipe PGP passphrase from memory
33430 -ispell                     i   run ispell on the message
33431 -new-mime                   n   compose new attachment using mailcap entry
33432 -pgp-menu                   p   show PGP options
33433 -pipe-entry                 |   pipe message/attachment to a shell command
33434 -postpone-message           P   save this message to send later
33435 -print-entry                l   print the current entry
33436 -rename-file                R   rename/move an attached file
33437 -send-message               y   send the message
33438 -toggle-unlink              u   toggle whether to delete file after sending it
33439 -view-attach              RET   view attachment using mailcap entry if necessary
33440 -write-fcc                  w   write the message to a folder
33441 -</PRE>
33442 -</P>
33443 -<H3>postpone</H3>
33444 -
33445 -<P>
33446 -<PRE>
33447 -delete-entry               d   delete the current entry
33448 -undelete-entry             u   undelete the current entry
33449 -</PRE>
33450 -</P>
33451 -<H3>browser</H3>
33452 -
33453 -<P>
33454 -<PRE>
33455 -change-dir                 c   change directories
33456 -check-new                TAB   check mailboxes for new mail
33457 -enter-mask                 m   enter a file mask
33458 -search                     /   search for a regular expression
33459 -search-next                n   search for next match
33460 -search-reverse         ESC /   search backwards for a regular expression
33461 -select-new                 N   select a new file in this directory
33462 -sort                       o   sort messages
33463 -sort-reverse               O   sort messages in reverse order
33464 -toggle-mailboxes         TAB   toggle whether to browse mailboxes or all files
33465 -view-file              SPACE   view file
33466 -subscribe                  s   subscribe to current mailbox (IMAP Only)
33467 -unsubscribe                u   unsubscribe to current mailbox (IMAP Only)
33468 -toggle-subscribed          T   toggle view all/subscribed mailboxes (IMAP Only)
33469 -</PRE>
33470 -</P>
33471 -<H3>pgp</H3>
33472 -
33473 -<P>
33474 -<PRE>
33475 -view-name                  %   view the key's user id
33476 -verify-key                 c   verify a PGP public key
33477 -</PRE>
33478 -</P>
33479 -<H3>editor</H3>
33480 -
33481 -<P>
33482 -<PRE>
33483 -backspace          BackSpace   delete the char in front of the cursor
33484 -backward-char             ^B   move the cursor one character to the left
33485 -backward-word          ESC b   move the cursor to the previous word
33486 -bol                       ^A   jump to the beginning of the line
33487 -buffy-cycle            Space   cycle among incoming mailboxes
33488 -capitalize-word        ESC c   uppercase the first character in the word
33489 -complete                 TAB   complete filename or alias
33490 -complete-query            ^T   complete address with query
33491 -delete-char               ^D   delete the char under the cursor
33492 -downcase-word          ESC l   lowercase all characters in current word
33493 -eol                       ^E   jump to the end of the line
33494 -forward-char              ^F   move the cursor one character to the right
33495 -forward-word           ESC f   move the cursor to the next word
33496 -history-down       not bound   scroll down through the history list
33497 -history-up         not bound   scroll up through the history list
33498 -kill-eol                  ^K   delete chars from cursor to end of line
33499 -kill-eow               ESC d   delete chars from cursor to end of word
33500 -kill-line                 ^U   delete all chars on the line
33501 -kill-word                 ^W   delete the word in front of the cursor
33502 -quote-char                ^V   quote the next typed key
33503 -transpose-chars    not bound   transpose character under cursor with previous
33504 -upcase-word            ESC u   uppercase all characters in current word
33505 -</PRE>
33506 -</P>
33507 -
33508 -<HR>
33509 -<A HREF="manual-7.html">Next</A>
33510 -<A HREF="manual-5.html">Previous</A>
33511 -<A HREF="manual.html#toc6">Contents</A>
33512 -</BODY>
33513 -</HTML>
33514 diff -uNr mutt-1.4.orig/doc/manual-7.html mutt-1.4/doc/manual-7.html
33515 --- mutt-1.4.orig/doc/manual-7.html     Wed May 29 11:29:58 2002
33516 +++ mutt-1.4/doc/manual-7.html  Thu Jan  1 01:00:00 1970
33517 @@ -1,119 +0,0 @@
33518 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
33519 -<HTML>
33520 -<HEAD>
33521 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
33522 - <TITLE>The Mutt E-Mail Client: Miscellany</TITLE>
33523 - <LINK HREF="manual-6.html" REL=previous>
33524 - <LINK HREF="manual.html#toc7" REL=contents>
33525 -</HEAD>
33526 -<BODY>
33527 -Next
33528 -<A HREF="manual-6.html">Previous</A>
33529 -<A HREF="manual.html#toc7">Contents</A>
33530 -<HR>
33531 -<H2><A NAME="s7">7.</A> <A HREF="manual.html#toc7">Miscellany</A></H2>
33532 -
33533 -
33534 -
33535 -<H2><A NAME="ss7.1">7.1</A> <A HREF="manual.html#toc7.1">Acknowledgements</A>
33536 -</H2>
33537 -
33538 -<P>Kari Hurtta
33539 -<A HREF="mailto:kari.hurtta@fmi.fi">&lt;kari.hurtta@fmi.fi&gt;</A>
33540 -co-developed the original MIME parsing code back in the ELM-ME days.</P>
33541 -<P>The following people have been very helpful to the development of Mutt:</P>
33542 -<P>Vikas Agnihotri 
33543 -<A HREF="mailto:vikasa@writeme.com">&lt;vikasa@writeme.com&gt;</A>,<BR>
33544 -Francois Berjon 
33545 -<A HREF="mailto:Francois.Berjon@aar.alcatel-alsthom.fr">&lt;Francois.Berjon@aar.alcatel-alsthom.fr&gt;</A>,<BR>
33546 -Aric Blumer 
33547 -<A HREF="mailto:aric@fore.com">&lt;aric@fore.com&gt;</A>,<BR>
33548 -John Capo 
33549 -<A HREF="mailto:jc@irbs.com">&lt;jc@irbs.com&gt;</A>,<BR>
33550 -David Champion 
33551 -<A HREF="mailto:dgc@uchicago.edu">&lt;dgc@uchicago.edu</A>,<BR>
33552 -Brendan Cully 
33553 -<A HREF="mailto:brendan@kublai.com">&lt;brendan@kublai.com&gt;</A>,<BR>
33554 -Liviu Daia 
33555 -<A HREF="mailto:daia@stoilow.imar.ro">&lt;daia@stoilow.imar.ro&gt;</A>,<BR>
33556 -Thomas E. Dickey 
33557 -<A HREF="mailto:dickey@herndon4.his.com">&lt;dickey@herndon4.his.com&gt;</A>,<BR>
33558 -David DeSimone 
33559 -<A HREF="mailto:fox@convex.hp.com">&lt;fox@convex.hp.com&gt;</A>,<BR>
33560 -Nickolay N. Dudorov 
33561 -<A HREF="mailto:nnd@wint.itfs.nsk.su">&lt;nnd@wint.itfs.nsk.su&gt;</A>,<BR>
33562 -Ruslan Ermilov 
33563 -<A HREF="mailto:ru@freebsd.org">&lt;ru@freebsd.org&gt;</A>,<BR>
33564 -Edmund Grimley Evans 
33565 -<A HREF="mailto:edmundo@rano.org">&lt;edmundo@rano.org</A>,<BR>
33566 -Michael Finken 
33567 -<A HREF="mailto:finken@conware.de">&lt;finken@conware.de&gt;</A>,<BR>
33568 -Sven Guckes 
33569 -<A HREF="mailto:guckes@math.fu-berlin.de">&lt;guckes@math.fu-berlin.de&gt;</A>,<BR>
33570 -Lars Hecking 
33571 -<A HREF="mailto:lhecking@nmrc.ie">&lt;lhecking@nmrc.ie&gt;</A>,<BR>
33572 -Mark Holloman 
33573 -<A HREF="mailto:holloman@nando.net">&lt;holloman@nando.net&gt;</A>,<BR>
33574 -Andreas Holzmann 
33575 -<A HREF="mailto:holzmann@fmi.uni-passau.de">&lt;holzmann@fmi.uni-passau.de&gt;</A>,<BR>
33576 -Marco d'Itri 
33577 -<A HREF="mailto:md@linux.it">&lt;md@linux.it&gt;</A>,<BR>
33578 -Björn Jacke 
33579 -<A HREF="mailto:bjacke@suse.com">&lt;bjacke@suse.com&gt;</A>,<BR>
33580 -Byrial Jensen 
33581 -<A HREF="mailto:byrial@image.dk">&lt;byrial@image.dk&gt;</A>,<BR>
33582 -David Jeske 
33583 -<A HREF="mailto:jeske@igcom.net">&lt;jeske@igcom.net&gt;</A>,<BR>
33584 -Christophe Kalt 
33585 -<A HREF="mailto:kalt@hugo.int-evry.fr">&lt;kalt@hugo.int-evry.fr&gt;</A>,<BR>
33586 -Tommi Komulainen 
33587 -<A HREF="mailto:Tommi.Komulainen@iki.fi">&lt;Tommi.Komulainen@iki.fi&gt;</A>,<BR>
33588 -Felix von Leitner (a.k.a ``Fefe'') 
33589 -<A HREF="mailto:leitner@math.fu-berlin.de">&lt;leitner@math.fu-berlin.de&gt;</A>,<BR>
33590 -Brandon Long 
33591 -<A HREF="mailto:blong@fiction.net">&lt;blong@fiction.net&gt;</A>,<BR>
33592 -Jimmy Mäkelä 
33593 -<A HREF="mailto:jmy@flashback.net">&lt;jmy@flashback.net&gt;</A>,<BR>
33594 -Lars Marowsky-Bree 
33595 -<A HREF="mailto:lmb@pointer.in-minden.de">&lt;lmb@pointer.in-minden.de&gt;</A>,<BR>
33596 -Thomas ``Mike'' Michlmayr 
33597 -<A HREF="mailto:mike@cosy.sbg.ac.at">&lt;mike@cosy.sbg.ac.at&gt;</A>,<BR>
33598 -Andrew W. Nosenko 
33599 -<A HREF="mailto:awn@bcs.zp.ua">&lt;awn@bcs.zp.ua&gt;</A>,<BR>
33600 -David O'Brien 
33601 -<A HREF="mailto:obrien@Nuxi.cs.ucdavis.edu">&lt;obrien@Nuxi.cs.ucdavis.edu&gt;</A>,<BR>
33602 -Clint Olsen 
33603 -<A HREF="mailto:olsenc@ichips.intel.com">&lt;olsenc@ichips.intel.com&gt;</A>,<BR>
33604 -Park Myeong Seok 
33605 -<A HREF="mailto:pms@romance.kaist.ac.kr">&lt;pms@romance.kaist.ac.kr&gt;</A>,<BR>
33606 -Thomas Parmelan 
33607 -<A HREF="mailto:tom@ankh.fr.eu.org">&lt;tom@ankh.fr.eu.org&gt;</A>,<BR>
33608 -Ollivier Robert 
33609 -<A HREF="mailto:roberto@keltia.freenix.fr">&lt;roberto@keltia.freenix.fr&gt;</A>,<BR>
33610 -Thomas Roessler 
33611 -<A HREF="mailto:roessler@does-not-exist.org">&lt;roessler@does-not-exist.org&gt;</A>,<BR>
33612 -Roland Rosenfeld 
33613 -<A HREF="roland@spinnaker.de">&lt;roland@spinnaker.de&gt;</A>,<BR>
33614 -TAKIZAWA Takashi 
33615 -<A HREF="taki@luna.email.ne.jp">&lt;taki@luna.email.ne.jp&gt;</A>,<BR>
33616 -Allain Thivillon 
33617 -<A HREF="mailto:Allain.Thivillon@alma.fr">&lt;Allain.Thivillon@alma.fr&gt;</A>,<BR>
33618 -Gero Treuner 
33619 -<A HREF="mailto:gero@faveve.uni-stuttgart.de">&lt;gero@faveve.uni-stuttgart.de&gt;</A>,<BR>
33620 -Vsevolod Volkov 
33621 -<A HREF="mailto:vvv@lucky.net">&lt;vvv@lucky.net&gt;</A>,<BR>
33622 -Ken Weinert 
33623 -<A HREF="mailto:kenw@ihs.com">&lt;kenw@ihs.com&gt;</A></P>
33624 -
33625 -<H2><A NAME="ss7.2">7.2</A> <A HREF="manual.html#toc7.2">About this document</A>
33626 -</H2>
33627 -
33628 -<P>This document was written in SGML, and then rendered using the
33629 -<A HREF="http://www.sgmltools.org/">sgml-tools</A> package.</P>
33630 -
33631 -<HR>
33632 -Next
33633 -<A HREF="manual-6.html">Previous</A>
33634 -<A HREF="manual.html#toc7">Contents</A>
33635 -</BODY>
33636 -</HTML>
33637 diff -uNr mutt-1.4.orig/doc/manual.html mutt-1.4/doc/manual.html
33638 --- mutt-1.4.orig/doc/manual.html       Wed May 29 11:29:58 2002
33639 +++ mutt-1.4/doc/manual.html    Thu Jan  1 01:00:00 1970
33640 @@ -1,123 +0,0 @@
33641 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
33642 -<HTML>
33643 -<HEAD>
33644 - <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
33645 - <TITLE>The Mutt E-Mail Client</TITLE>
33646 - <LINK HREF="manual-1.html" REL=next>
33647 -
33648 -
33649 -</HEAD>
33650 -<BODY>
33651 -<A HREF="manual-1.html">Next</A>
33652 -Previous
33653 -Contents
33654 -<HR>
33655 -<H1>The Mutt E-Mail Client</H1>
33656 -
33657 -<H2>by Michael Elkins 
33658 -<A HREF="mailto:me@cs.hmc.edu">&lt;me@cs.hmc.edu&gt;</A></H2>version 1.4
33659 -<HR>
33660 -<EM>``All mail clients suck.  This one just sucks less.'' -me, circa 1995</EM>
33661 -<HR>
33662 -<P>
33663 -<H2><A NAME="toc1">1.</A> <A HREF="manual-1.html">Introduction</A></H2>
33664 -
33665 -<UL>
33666 -<LI><A NAME="toc1.1">1.1</A> <A HREF="manual-1.html#ss1.1">Mutt Home Page</A>
33667 -<LI><A NAME="toc1.2">1.2</A> <A HREF="manual-1.html#ss1.2">Mailing Lists</A>
33668 -<LI><A NAME="toc1.3">1.3</A> <A HREF="manual-1.html#ss1.3">Software Distribution Sites</A>
33669 -<LI><A NAME="toc1.4">1.4</A> <A HREF="manual-1.html#ss1.4">IRC</A>
33670 -<LI><A NAME="toc1.5">1.5</A> <A HREF="manual-1.html#ss1.5">USENET</A>
33671 -<LI><A NAME="toc1.6">1.6</A> <A HREF="manual-1.html#ss1.6">Copyright</A>
33672 -</UL>
33673 -<P>
33674 -<H2><A NAME="toc2">2.</A> <A HREF="manual-2.html">Getting Started</A></H2>
33675 -
33676 -<UL>
33677 -<LI><A NAME="toc2.1">2.1</A> <A HREF="manual-2.html#ss2.1">Moving Around in Menus</A>
33678 -<LI><A NAME="toc2.2">2.2</A> <A HREF="manual-2.html#ss2.2">Editing Input Fields</A>
33679 -<LI><A NAME="toc2.3">2.3</A> <A HREF="manual-2.html#ss2.3">Reading Mail - The Index and Pager</A>
33680 -<LI><A NAME="toc2.4">2.4</A> <A HREF="manual-2.html#ss2.4">Sending Mail</A>
33681 -<LI><A NAME="toc2.5">2.5</A> <A HREF="manual-2.html#ss2.5">Forwarding and Bouncing Mail</A>
33682 -<LI><A NAME="toc2.6">2.6</A> <A HREF="manual-2.html#ss2.6">Postponing Mail</A>
33683 -</UL>
33684 -<P>
33685 -<H2><A NAME="toc3">3.</A> <A HREF="manual-3.html">Configuration</A></H2>
33686 -
33687 -<UL>
33688 -<LI><A NAME="toc3.1">3.1</A> <A HREF="manual-3.html#ss3.1">Syntax of Initialization Files</A>
33689 -<LI><A NAME="toc3.2">3.2</A> <A HREF="manual-3.html#ss3.2">Defining/Using aliases</A>
33690 -<LI><A NAME="toc3.3">3.3</A> <A HREF="manual-3.html#ss3.3">Changing the default key bindings</A>
33691 -<LI><A NAME="toc3.4">3.4</A> <A HREF="manual-3.html#ss3.4">Defining aliases for character sets </A>
33692 -<LI><A NAME="toc3.5">3.5</A> <A HREF="manual-3.html#ss3.5">Setting variables based upon mailbox</A>
33693 -<LI><A NAME="toc3.6">3.6</A> <A HREF="manual-3.html#ss3.6">Keyboard macros</A>
33694 -<LI><A NAME="toc3.7">3.7</A> <A HREF="manual-3.html#ss3.7">Using color and mono video attributes</A>
33695 -<LI><A NAME="toc3.8">3.8</A> <A HREF="manual-3.html#ss3.8">Ignoring (weeding) unwanted message headers</A>
33696 -<LI><A NAME="toc3.9">3.9</A> <A HREF="manual-3.html#ss3.9">Mailing lists</A>
33697 -<LI><A NAME="toc3.10">3.10</A> <A HREF="manual-3.html#ss3.10">Using Multiple spool mailboxes</A>
33698 -<LI><A NAME="toc3.11">3.11</A> <A HREF="manual-3.html#ss3.11">Defining mailboxes which receive mail</A>
33699 -<LI><A NAME="toc3.12">3.12</A> <A HREF="manual-3.html#ss3.12">User defined headers</A>
33700 -<LI><A NAME="toc3.13">3.13</A> <A HREF="manual-3.html#ss3.13">Defining the order of headers when viewing messages</A>
33701 -<LI><A NAME="toc3.14">3.14</A> <A HREF="manual-3.html#ss3.14">Specify default save filename</A>
33702 -<LI><A NAME="toc3.15">3.15</A> <A HREF="manual-3.html#ss3.15">Specify default Fcc: mailbox when composing</A>
33703 -<LI><A NAME="toc3.16">3.16</A> <A HREF="manual-3.html#ss3.16">Specify default save filename and default Fcc: mailbox at once</A>
33704 -<LI><A NAME="toc3.17">3.17</A> <A HREF="manual-3.html#ss3.17">Change settings based upon message recipients</A>
33705 -<LI><A NAME="toc3.18">3.18</A> <A HREF="manual-3.html#ss3.18">Change settings before formatting a message</A>
33706 -<LI><A NAME="toc3.19">3.19</A> <A HREF="manual-3.html#ss3.19">Choosing the PGP key of the recipient</A>
33707 -<LI><A NAME="toc3.20">3.20</A> <A HREF="manual-3.html#ss3.20">Adding key sequences to the keyboard buffer</A>
33708 -<LI><A NAME="toc3.21">3.21</A> <A HREF="manual-3.html#ss3.21">Executing functions</A>
33709 -<LI><A NAME="toc3.22">3.22</A> <A HREF="manual-3.html#ss3.22">Message Scoring</A>
33710 -<LI><A NAME="toc3.23">3.23</A> <A HREF="manual-3.html#ss3.23">Setting variables</A>
33711 -<LI><A NAME="toc3.24">3.24</A> <A HREF="manual-3.html#ss3.24">Reading initialization commands from another file</A>
33712 -<LI><A NAME="toc3.25">3.25</A> <A HREF="manual-3.html#ss3.25">Removing hooks</A>
33713 -</UL>
33714 -<P>
33715 -<H2><A NAME="toc4">4.</A> <A HREF="manual-4.html">Advanced Usage</A></H2>
33716 -
33717 -<UL>
33718 -<LI><A NAME="toc4.1">4.1</A> <A HREF="manual-4.html#ss4.1">Regular Expressions</A>
33719 -<LI><A NAME="toc4.2">4.2</A> <A HREF="manual-4.html#ss4.2">Patterns</A>
33720 -<LI><A NAME="toc4.3">4.3</A> <A HREF="manual-4.html#ss4.3">Using Tags</A>
33721 -<LI><A NAME="toc4.4">4.4</A> <A HREF="manual-4.html#ss4.4">Using Hooks</A>
33722 -<LI><A NAME="toc4.5">4.5</A> <A HREF="manual-4.html#ss4.5">External Address Queries</A>
33723 -<LI><A NAME="toc4.6">4.6</A> <A HREF="manual-4.html#ss4.6">Mailbox Formats</A>
33724 -<LI><A NAME="toc4.7">4.7</A> <A HREF="manual-4.html#ss4.7">Mailbox Shortcuts</A>
33725 -<LI><A NAME="toc4.8">4.8</A> <A HREF="manual-4.html#ss4.8">Handling Mailing Lists</A>
33726 -<LI><A NAME="toc4.9">4.9</A> <A HREF="manual-4.html#ss4.9">Delivery Status Notification (DSN) Support</A>
33727 -<LI><A NAME="toc4.10">4.10</A> <A HREF="manual-4.html#ss4.10">POP3 Support (OPTIONAL)</A>
33728 -<LI><A NAME="toc4.11">4.11</A> <A HREF="manual-4.html#ss4.11">IMAP Support (OPTIONAL)</A>
33729 -<LI><A NAME="toc4.12">4.12</A> <A HREF="manual-4.html#ss4.12">Managing multiple IMAP/POP accounts (OPTIONAL)</A>
33730 -<LI><A NAME="toc4.13">4.13</A> <A HREF="manual-4.html#ss4.13">Start a WWW Browser on URLs (EXTERNAL)</A>
33731 -</UL>
33732 -<P>
33733 -<H2><A NAME="toc5">5.</A> <A HREF="manual-5.html">Mutt's MIME Support</A></H2>
33734 -
33735 -<UL>
33736 -<LI><A NAME="toc5.1">5.1</A> <A HREF="manual-5.html#ss5.1">Using MIME in Mutt</A>
33737 -<LI><A NAME="toc5.2">5.2</A> <A HREF="manual-5.html#ss5.2">MIME Type configuration with <CODE>mime.types</CODE></A>
33738 -<LI><A NAME="toc5.3">5.3</A> <A HREF="manual-5.html#ss5.3">MIME Viewer configuration with <CODE>mailcap</CODE></A>
33739 -<LI><A NAME="toc5.4">5.4</A> <A HREF="manual-5.html#ss5.4">MIME Autoview</A>
33740 -<LI><A NAME="toc5.5">5.5</A> <A HREF="manual-5.html#ss5.5">MIME Multipart/Alternative</A>
33741 -</UL>
33742 -<P>
33743 -<H2><A NAME="toc6">6.</A> <A HREF="manual-6.html">Reference</A></H2>
33744 -
33745 -<UL>
33746 -<LI><A NAME="toc6.1">6.1</A> <A HREF="manual-6.html#ss6.1">Command line options</A>
33747 -<LI><A NAME="toc6.2">6.2</A> <A HREF="manual-6.html#ss6.2">Configuration Commands</A>
33748 -<LI><A NAME="toc6.3">6.3</A> <A HREF="manual-6.html#ss6.3">Configuration variables</A>
33749 -<LI><A NAME="toc6.4">6.4</A> <A HREF="manual-6.html#ss6.4">Functions</A>
33750 -</UL>
33751 -<P>
33752 -<H2><A NAME="toc7">7.</A> <A HREF="manual-7.html">Miscellany</A></H2>
33753 -
33754 -<UL>
33755 -<LI><A NAME="toc7.1">7.1</A> <A HREF="manual-7.html#ss7.1">Acknowledgements</A>
33756 -<LI><A NAME="toc7.2">7.2</A> <A HREF="manual-7.html#ss7.2">About this document</A>
33757 -</UL>
33758 -<HR>
33759 -<A HREF="manual-1.html">Next</A>
33760 -Previous
33761 -Contents
33762 -</BODY>
33763 -</HTML>
33764 diff -uNr mutt-1.4.orig/doc/manual.sgml mutt-1.4/doc/manual.sgml
33765 --- mutt-1.4.orig/doc/manual.sgml       Sun Nov  3 21:42:51 2002
33766 +++ mutt-1.4/doc/manual.sgml    Sun Nov  3 21:57:20 2002
33767 @@ -723,6 +723,17 @@
33768  
33769  See also the <ref id="postpone" name="&dollar;postpone"> quad-option.
33770  
33771 +<sect1>Reading news via NNTP<label id="reading_news">
33772 +<p>
33773 +
33774 +If compiled with ``--enable-nntp'' option, Mutt can read news from newsserver
33775 +via NNTP.  You can open a newsgroup with function ``change-newsgroup''
33776 +(default: i).  Default newsserver can be obtained from <em/NNTPSERVER/
33777 +environment variable.  Like other news readers, info about subscribed
33778 +newsgroups is saved in file by <ref id="newsrc" name="&dollar;newsrc">
33779 +variable.  Article headers are cached and can be loaded from file when
33780 +newsgroup entered instead loading from newsserver.
33781 +
33782  <sect>Configuration
33783  <p>
33784  
33785 @@ -3262,6 +3273,26 @@
33786  editing the body of an outgoing message.
33787  
33788  
33789 +<sect2>ask&lowbar;follow&lowbar;up<label id="ask_follow_up">
33790 +<p>
33791 +Type: boolean<newline>
33792 +Default: no
33793 +
33794 +<p>
33795 +If set, Mutt will prompt you for follow-up groups before editing
33796 +the body of an outgoing message.
33797 +
33798 +
33799 +<sect2>ask&lowbar;x&lowbar;comment&lowbar;to<label id="ask_x_comment_to">
33800 +<p>
33801 +Type: boolean<newline>
33802 +Default: no
33803 +
33804 +<p>
33805 +If set, Mutt will prompt you for x-comment-to field before editing
33806 +the body of an outgoing message.
33807 +
33808 +
33809  <sect2>attach&lowbar;format<label id="attach_format">
33810  <p>
33811  Type: string<newline>
33812 @@ -3379,6 +3410,16 @@
33813  bouncing messages.  Postfix users may wish to unset this variable.
33814  
33815  
33816 +<sect2>catchup&lowbar;newsgroup<label id="catchup_newsgroup">
33817 +<p>
33818 +Type: quadoption<newline>
33819 +Default: ask-yes
33820 +
33821 +<p>
33822 +If this variable is <em>set</em>, Mutt will mark all articles in newsgroup
33823 +as read when you quit the newsgroup (catchup newsgroup).
33824 +
33825 +
33826  <sect2>charset<label id="charset">
33827  <p>
33828  Type: string<newline>
33829 @@ -3781,6 +3822,18 @@
33830  resulting in two copies of the same email for you.
33831  
33832  
33833 +<sect2>followup&lowbar;to&lowbar;poster<label id="followup_to_poster">
33834 +<p>
33835 +Type: quadoption<newline>
33836 +Default: ask-yes
33837 +
33838 +<p>
33839 +If this variable is <em>set</em> and the keyword &dquot;poster&dquot; is present in
33840 +<em>Followup-To</em> header, follow-up to newsgroup function is not
33841 +permitted.  The message will be mailed to the submitter of the
33842 +message via mail.
33843 +
33844 +
33845  <sect2>force&lowbar;name<label id="force_name">
33846  <p>
33847  Type: boolean<newline>
33848 @@ -3859,6 +3912,30 @@
33849  &dquot;Franklin&dquot; to &dquot;Franklin, Steve&dquot;.
33850  
33851  
33852 +<sect2>group&lowbar;index&lowbar;format<label id="group_index_format">
33853 +<p>
33854 +Type: string<newline>
33855 +Default: &dquot;&percnt;4C &percnt;M&percnt;N &percnt;5s  &percnt;-45.45f &percnt;d&dquot;
33856 +
33857 +<p>
33858 +This variable allows you to customize the newsgroup browser display to
33859 +your personal taste.  This string is similar to ``<ref id="index_format" name="index&lowbar;format">'', but
33860 +has its own set of printf()-like sequences:
33861 +<p>
33862 +
33863 +<tscreen><verb>
33864 +%C      current newsgroup number
33865 +%d      description of newsgroup (becomes from server)
33866 +%f      newsgroup name
33867 +%M      - if newsgroup not allowed for direct post (moderated for example)
33868 +%N      N if newsgroup is new, u if unsubscribed, blank otherwise
33869 +%n      number of new articles in newsgroup
33870 +%s      number of unread articles in newsgroup
33871 +%>X     right justify the rest of the string and pad with character "X"
33872 +%|X     pad to the end of the line with character "X"
33873 +
33874 +</verb></tscreen>
33875 +
33876  <sect2>hdrs<label id="hdrs">
33877  <p>
33878  Type: boolean<newline>
33879 @@ -4203,6 +4280,7 @@
33880  <tag>&percnt;E </tag>number of messages in current thread
33881  <tag>&percnt;f </tag>entire From: line (address + real name)
33882  <tag>&percnt;F </tag>author name, or recipient name if the message is from you
33883 +<tag>&percnt;g </tag>newsgroup name (if compiled with nntp support)
33884  <tag>&percnt;i </tag>message-id of the current message
33885  <tag>&percnt;l </tag>number of lines in the message
33886  <tag>&percnt;L </tag>If an address in the To or CC header field matches an address
33887 @@ -4220,6 +4298,7 @@
33888  <tag>&percnt;T </tag>the appropriate character from the <ref id="to_chars" name="&dollar;to&lowbar;chars"> string
33889  <tag>&percnt;u </tag>user (login) name of the author
33890  <tag>&percnt;v </tag>first name of the author, or the recipient if the message is from you
33891 +<tag>&percnt;W </tag>name of organization of author (`organization:' field)
33892  <tag>&percnt;y </tag>`x-label:' field, if present
33893  <tag>&percnt;Y </tag>`x-label' field, if present, and (1) not at part of a thread tree,
33894  (2) at the top of a thread, or (3) `x-label' is different from
33895 @@ -4244,6 +4323,24 @@
33896  See also: ``<ref id="to_chars" name="&dollar;to&lowbar;chars">''.
33897  
33898  
33899 +<sect2>inews<label id="inews">
33900 +<p>
33901 +Type: path<newline>
33902 +Default: &dquot;&dquot;
33903 +
33904 +<p>
33905 +If set, specifies the program and arguments used to deliver news posted
33906 +by Mutt.  Otherwise, mutt posts article using current connection to
33907 +news server.  The following printf-style sequence is understood:
33908 +<p>
33909 +
33910 +<tscreen><verb>
33911 +%s      newsserver name
33912 +
33913 +</verb></tscreen><p>
33914 +Example: set inews=&dquot;/usr/local/bin/inews -hS&dquot;
33915 +
33916 +
33917  <sect2>ispell<label id="ispell">
33918  <p>
33919  Type: path<newline>
33920 @@ -4491,6 +4588,17 @@
33921  be attached to the newly composed message if this option is set.
33922  
33923  
33924 +<sect2>mime&lowbar;subject<label id="mime_subject">
33925 +<p>
33926 +Type: boolean<newline>
33927 +Default: yes
33928 +
33929 +<p>
33930 +If <em>unset</em>, 8-bit ``subject:'' line in article header will not be
33931 +encoded according to RFC2047 to base64.  This is useful when message
33932 +is Usenet article, because MIME for news is nonstandard feature.
33933 +
33934 +
33935  <sect2>mix&lowbar;entry&lowbar;format<label id="mix_entry_format">
33936  <p>
33937  Type: string<newline>
33938 @@ -4544,6 +4652,112 @@
33939  escape sequences see the section on ``<ref id="index_format" name="&dollar;index&lowbar;format">''.
33940  
33941  
33942 +<sect2>news&lowbar;cache&lowbar;dir<label id="news_cache_dir">
33943 +<p>
33944 +Type: path<newline>
33945 +Default: &dquot;&tilde;/.mutt&dquot;
33946 +
33947 +<p>
33948 +This variable pointing to directory where Mutt will save cached news
33949 +articles headers in. If <em>unset</em>, headers will not be saved at all
33950 +and will be reloaded each time when you enter to newsgroup.
33951 +
33952 +
33953 +<sect2>news&lowbar;server<label id="news_server">
33954 +<p>
33955 +Type: string<newline>
33956 +Default: &dquot;&dquot;
33957 +
33958 +<p>
33959 +This variable specifies domain name or address of NNTP server. It
33960 +defaults to the newsserver specified in the environment variable
33961 +&dollar;NNTPSERVER or contained in the file /etc/nntpserver.  You can also
33962 +specify username and an alternative port for each newsserver, ie:
33963 +<p>
33964 +&lsqb;nntp&lsqb;s&rsqb;://&rsqb;&lsqb;username&lsqb;:password&rsqb;@&rsqb;newsserver&lsqb;:port&rsqb;
33965 +
33966 +
33967 +<sect2>newsrc<label id="newsrc">
33968 +<p>
33969 +Type: path<newline>
33970 +Default: &dquot;&tilde;/.newsrc&dquot;
33971 +
33972 +<p>
33973 +The file, containing info about subscribed newsgroups - names and
33974 +indexes of read articles.  The following printf-style sequence
33975 +is understood:
33976 +<p>
33977 +
33978 +<tscreen><verb>
33979 +%s      newsserver name
33980 +
33981 +</verb></tscreen>
33982 +
33983 +<sect2>nntp&lowbar;context<label id="nntp_context">
33984 +<p>
33985 +Type: number<newline>
33986 +Default: 1000
33987 +
33988 +<p>
33989 +This variable defines number of articles which will be in index when
33990 +newsgroup entered.  If active newsgroup have more articles than this
33991 +number, oldest articles will be ignored.  Also controls how many
33992 +articles headers will be saved in cache when you quit newsgroup.
33993 +
33994 +
33995 +<sect2>nntp&lowbar;load&lowbar;description<label id="nntp_load_description">
33996 +<p>
33997 +Type: boolean<newline>
33998 +Default: yes
33999 +
34000 +<p>
34001 +This variable controls whether or not descriptions for each newsgroup
34002 +must be loaded when newsgroup is added to list (first time list
34003 +loading or new newsgroup adding).
34004 +
34005 +
34006 +<sect2>nntp&lowbar;user<label id="nntp_user">
34007 +<p>
34008 +Type: string<newline>
34009 +Default: &dquot;&dquot;
34010 +
34011 +<p>
34012 +Your login name on the NNTP server.  If <em>unset</em> and NNTP server requires
34013 +authentification, Mutt will prompt you for your account name when you
34014 +connect to newsserver.
34015 +
34016 +
34017 +<sect2>nntp&lowbar;pass<label id="nntp_pass">
34018 +<p>
34019 +Type: string<newline>
34020 +Default: &dquot;&dquot;
34021 +
34022 +<p>
34023 +Your password for NNTP account.
34024 +
34025 +
34026 +<sect2>nntp&lowbar;poll<label id="nntp_poll">
34027 +<p>
34028 +Type: number<newline>
34029 +Default: 60
34030 +
34031 +<p>
34032 +The time in seconds until any operations on newsgroup except post new
34033 +article will cause recheck for new news.  If set to 0, Mutt will
34034 +recheck newsgroup on each operation in index (stepping, read article,
34035 +etc.).
34036 +
34037 +
34038 +<sect2>nntp&lowbar;reconnect<label id="nntp_reconnect">
34039 +<p>
34040 +Type: quadoption<newline>
34041 +Default: ask-yes
34042 +
34043 +<p>
34044 +Controls whether or not Mutt will try to reconnect to newsserver when
34045 +connection lost.
34046 +
34047 +
34048  <sect2>pager<label id="pager">
34049  <p>
34050  Type: path<newline>
34051 @@ -5240,6 +5454,18 @@
34052  string after the inclusion of a message which is being replied to.
34053  
34054  
34055 +<sect2>post&lowbar;moderated<label id="post_moderated">
34056 +<p>
34057 +Type: quadoption<newline>
34058 +Default: ask-yes
34059 +
34060 +<p>
34061 +If set to <em>yes</em>, Mutt will post article to newsgroup that have
34062 +not permissions to posting (e.g. moderated).  <bf>Note:</bf> if newsserver
34063 +does not support posting to that newsgroup or totally read-only, that
34064 +posting will not have an effect.
34065 +
34066 +
34067  <sect2>postpone<label id="postpone">
34068  <p>
34069  Type: quadoption<newline>
34070 @@ -5723,6 +5949,38 @@
34071  shell from /etc/passwd is used.
34072  
34073  
34074 +<sect2>save&lowbar;unsubscribed<label id="save_unsubscribed">
34075 +<p>
34076 +Type: boolean<newline>
34077 +Default: no
34078 +
34079 +<p>
34080 +When <em>set</em>, info about unsubscribed newsgroups will be saved into
34081 +``newsrc'' file and into cache.
34082 +
34083 +
34084 +<sect2>show&lowbar;new&lowbar;news<label id="show_new_news">
34085 +<p>
34086 +Type: boolean<newline>
34087 +Default: yes
34088 +
34089 +<p>
34090 +If <em>set</em>, newsserver will be asked for new newsgroups on entering
34091 +the browser.  Otherwise, it will be done only once for a newsserver.
34092 +Also controls whether or not number of new articles of subscribed
34093 +newsgroups will be then checked.
34094 +
34095 +
34096 +<sect2>show&lowbar;only&lowbar;unread<label id="show_only_unread">
34097 +<p>
34098 +Type: boolean<newline>
34099 +Default: no
34100 +
34101 +<p>
34102 +If <em>set</em>, only subscribed newsgroups that contain unread articles
34103 +will be displayed in browser.
34104 +
34105 +
34106  <sect2>sig&lowbar;dashes<label id="sig_dashes">
34107  <p>
34108  Type: boolean<newline>
34109 @@ -6189,6 +6447,17 @@
34110  command.
34111  
34112  
34113 +<sect2>use&lowbar;ipv6<label id="use_ipv6">
34114 +<p>
34115 +Type: boolean<newline>
34116 +Default: yes
34117 +
34118 +<p>
34119 +When <em>set</em>, Mutt will look for IPv6 addresses of hosts it tries to
34120 +contact.  If this option is unset, Mutt will restrict itself to IPv4 addresses.
34121 +Normally, the default should work.
34122 +
34123 +
34124  <sect2>user&lowbar;agent<label id="user_agent">
34125  <p>
34126  Type: boolean<newline>
34127 @@ -6283,6 +6552,16 @@
34128  messages to be sent.  Exim users may wish to use this.
34129  
34130  
34131 +<sect2>x&lowbar;comment&lowbar;to<label id="x_comment_to">
34132 +<p>
34133 +Type: boolean<newline>
34134 +Default: no
34135 +
34136 +<p>
34137 +If <em>set</em>, Mutt will add ``X-Comment-To:'' field (that contains full
34138 +name of original article author) to article that followuped to newsgroup.
34139 +
34140 +
34141  <sect1>Functions<label id="functions">
34142  <p>
34143  The following is the list of available functions listed by the mapping
34144 diff -uNr mutt-1.4.orig/doc/manual.sgml.head mutt-1.4/doc/manual.sgml.head
34145 --- mutt-1.4.orig/doc/manual.sgml.head  Sun Nov  3 21:42:52 2002
34146 +++ mutt-1.4/doc/manual.sgml.head       Sun Nov  3 21:57:20 2002
34147 @@ -724,6 +724,17 @@
34148  
34149  See also the <ref id="postpone" name="&dollar;postpone"> quad-option.
34150  
34151 +<sect1>Reading news via NNTP<label id="reading_news">
34152 +<p>
34153 +
34154 +If compiled with ``--enable-nntp'' option, Mutt can read news from newsserver
34155 +via NNTP.  You can open a newsgroup with function ``change-newsgroup''
34156 +(default: i).  Default newsserver can be obtained from <em/NNTPSERVER/
34157 +environment variable.  Like other news readers, info about subscribed
34158 +newsgroups is saved in file by <ref id="newsrc" name="&dollar;newsrc">
34159 +variable.  Article headers are cached and can be loaded from file when
34160 +newsgroup entered instead loading from newsserver.
34161 +
34162  <sect>Configuration
34163  <p>
34164  
34165 diff -uNr mutt-1.4.orig/doc/manual.txt mutt-1.4/doc/manual.txt
34166 --- mutt-1.4.orig/doc/manual.txt        Sun Nov  3 21:42:51 2002
34167 +++ mutt-1.4/doc/manual.txt     Sun Nov  3 21:57:20 2002
34168 @@ -8,6 +8,7 @@
34169    Table of Contents
34170  
34171    1. Introduction
34172 +
34173       1.1 Mutt Home Page
34174       1.2 Mailing Lists
34175       1.3 Software Distribution Sites
34176 @@ -16,6 +17,7 @@
34177       1.6 Copyright
34178  
34179    2. Getting Started
34180 +
34181       2.1 Moving Around in Menus
34182       2.2 Editing Input Fields
34183       2.3 Reading Mail - The Index and Pager
34184 @@ -30,8 +32,10 @@
34185          2.4.3 Sending anonymous messages via mixmaster.
34186       2.5 Forwarding and Bouncing Mail
34187       2.6 Postponing Mail
34188 +     2.7 Reading news via NNTP
34189  
34190    3. Configuration
34191 +
34192       3.1 Syntax of Initialization Files
34193       3.2 Defining/Using aliases
34194       3.3 Changing the default key bindings
34195 @@ -59,6 +63,7 @@
34196       3.25 Removing hooks
34197  
34198    4. Advanced Usage
34199 +
34200       4.1 Regular Expressions
34201       4.2 Patterns
34202          4.2.1 Pattern Modifier
34203 @@ -85,12 +90,13 @@
34204          4.14.4 Encrypted folders
34205  
34206    5. Mutt's MIME Support
34207 +
34208       5.1 Using MIME in Mutt
34209          5.1.1 Viewing MIME messages in the pager
34210          5.1.2 The Attachment Menu
34211          5.1.3 The Compose Menu
34212 -     5.2 MIME Type configuration with mime.types
34213 -     5.3 MIME Viewer configuration with mailcap
34214 +     5.2 MIME Type configuration with
34215 +     5.3 MIME Viewer configuration with
34216          5.3.1 The Basics of the mailcap file
34217          5.3.2 Secure use of mailcap
34218          5.3.3 Advanced mailcap Usage
34219 @@ -102,6 +108,7 @@
34220       5.5 MIME Multipart/Alternative
34221  
34222    6. Reference
34223 +
34224       6.1 Command line options
34225       6.2 Configuration Commands
34226       6.3 Configuration variables
34227 @@ -116,232 +123,254 @@
34228          6.3.9 ascii_chars
34229          6.3.10 askbcc
34230          6.3.11 askcc
34231 -        6.3.12 attach_format
34232 -        6.3.13 attach_sep
34233 -        6.3.14 attach_split
34234 -        6.3.15 attribution
34235 -        6.3.16 autoedit
34236 -        6.3.17 auto_tag
34237 -        6.3.18 beep
34238 -        6.3.19 beep_new
34239 -        6.3.20 bounce_delivered
34240 -        6.3.21 charset
34241 -        6.3.22 check_new
34242 -        6.3.23 collapse_unread
34243 -        6.3.24 uncollapse_jump
34244 -        6.3.25 compose_format
34245 -        6.3.26 confirmappend
34246 -        6.3.27 confirmcreate
34247 -        6.3.28 connect_timeout
34248 -        6.3.29 copy
34249 -        6.3.30 date_format
34250 -        6.3.31 default_hook
34251 -        6.3.32 delete
34252 -        6.3.33 delete_untag
34253 -        6.3.34 digest_collapse
34254 -        6.3.35 display_filter
34255 -        6.3.36 dotlock_program
34256 -        6.3.37 dsn_notify
34257 -        6.3.38 dsn_return
34258 -        6.3.39 duplicate_threads
34259 -        6.3.40 edit_headers
34260 -        6.3.41 editor
34261 -        6.3.42 encode_from
34262 -        6.3.43 envelope_from
34263 -        6.3.44 escape
34264 -        6.3.45 fast_reply
34265 -        6.3.46 fcc_attach
34266 -        6.3.47 fcc_clear
34267 -        6.3.48 folder
34268 -        6.3.49 folder_format
34269 -        6.3.50 followup_to
34270 -        6.3.51 force_name
34271 -        6.3.52 forward_decode
34272 -        6.3.53 forward_format
34273 -        6.3.54 forward_quote
34274 -        6.3.55 from
34275 -        6.3.56 gecos_mask
34276 -        6.3.57 hdrs
34277 -        6.3.58 header
34278 -        6.3.59 help
34279 -        6.3.60 hidden_host
34280 -        6.3.61 hide_limited
34281 -        6.3.62 hide_missing
34282 -        6.3.63 hide_top_limited
34283 -        6.3.64 hide_top_missing
34284 -        6.3.65 history
34285 -        6.3.66 honor_followup_to
34286 -        6.3.67 hostname
34287 -        6.3.68 ignore_list_reply_to
34288 -        6.3.69 imap_authenticators
34289 -        6.3.70 imap_delim_chars
34290 -        6.3.71 imap_force_ssl
34291 -        6.3.72 imap_home_namespace
34292 -        6.3.73 imap_keepalive
34293 -        6.3.74 imap_list_subscribed
34294 -        6.3.75 imap_pass
34295 -        6.3.76 imap_passive
34296 -        6.3.77 imap_peek
34297 -        6.3.78 imap_servernoise
34298 -        6.3.79 imap_user
34299 -        6.3.80 implicit_autoview
34300 -        6.3.81 include
34301 -        6.3.82 indent_string
34302 -        6.3.83 index_format
34303 -        6.3.84 ispell
34304 -        6.3.85 keep_flagged
34305 -        6.3.86 locale
34306 -        6.3.87 mail_check
34307 -        6.3.88 mailcap_path
34308 -        6.3.89 mailcap_sanitize
34309 -        6.3.90 maildir_trash
34310 -        6.3.91 mark_old
34311 -        6.3.92 markers
34312 -        6.3.93 mask
34313 -        6.3.94 mbox
34314 -        6.3.95 mbox_type
34315 -        6.3.96 metoo
34316 -        6.3.97 menu_scroll
34317 -        6.3.98 meta_key
34318 -        6.3.99 mh_purge
34319 -        6.3.100 mh_seq_flagged
34320 -        6.3.101 mh_seq_replied
34321 -        6.3.102 mh_seq_unseen
34322 -        6.3.103 mime_forward
34323 -        6.3.104 mime_forward_decode
34324 -        6.3.105 mime_forward_rest
34325 -        6.3.106 mix_entry_format
34326 -        6.3.107 mixmaster
34327 -        6.3.108 move
34328 -        6.3.109 message_format
34329 -        6.3.110 pager
34330 -        6.3.111 pager_context
34331 -        6.3.112 pager_format
34332 -        6.3.113 pager_index_lines
34333 -        6.3.114 pager_stop
34334 -        6.3.115 pgp_autosign
34335 -        6.3.116 pgp_autoencrypt
34336 -        6.3.117 pgp_ignore_subkeys
34337 -        6.3.118 pgp_entry_format
34338 -        6.3.119 pgp_good_sign
34339 -        6.3.120 pgp_long_ids
34340 -        6.3.121 pgp_replyencrypt
34341 -        6.3.122 pgp_replysign
34342 -        6.3.123 pgp_replysignencrypted
34343 -        6.3.124 pgp_retainable_sigs
34344 -        6.3.125 pgp_show_unusable
34345 -        6.3.126 pgp_sign_as
34346 -        6.3.127 pgp_strict_enc
34347 -        6.3.128 pgp_timeout
34348 -        6.3.129 pgp_verify_sig
34349 -        6.3.130 pgp_sort_keys
34350 -        6.3.131 pgp_create_traditional
34351 -        6.3.132 pgp_decode_command
34352 -        6.3.133 pgp_getkeys_command
34353 -        6.3.134 pgp_verify_command
34354 -        6.3.135 pgp_decrypt_command
34355 -        6.3.136 pgp_clearsign_command
34356 -        6.3.137 pgp_sign_command
34357 -        6.3.138 pgp_encrypt_sign_command
34358 -        6.3.139 pgp_encrypt_only_command
34359 -        6.3.140 pgp_import_command
34360 -        6.3.141 pgp_export_command
34361 -        6.3.142 pgp_verify_key_command
34362 -        6.3.143 pgp_list_secring_command
34363 -        6.3.144 pgp_list_pubring_command
34364 -        6.3.145 forward_decrypt
34365 -        6.3.146 ssl_starttls
34366 -        6.3.147 certificate_file
34367 -        6.3.148 ssl_usesystemcerts
34368 -        6.3.149 entropy_file
34369 -        6.3.150 ssl_use_sslv2
34370 -        6.3.151 ssl_use_sslv3
34371 -        6.3.152 ssl_use_tlsv1
34372 -        6.3.153 pipe_split
34373 -        6.3.154 pipe_decode
34374 -        6.3.155 pipe_sep
34375 -        6.3.156 pop_authenticators
34376 -        6.3.157 pop_auth_try_all
34377 -        6.3.158 pop_checkinterval
34378 -        6.3.159 pop_delete
34379 -        6.3.160 pop_host
34380 -        6.3.161 pop_last
34381 -        6.3.162 pop_reconnect
34382 -        6.3.163 pop_user
34383 -        6.3.164 pop_pass
34384 -        6.3.165 post_indent_string
34385 -        6.3.166 postpone
34386 -        6.3.167 postponed
34387 -        6.3.168 preconnect
34388 -        6.3.169 print
34389 -        6.3.170 print_command
34390 -        6.3.171 print_decode
34391 -        6.3.172 print_split
34392 -        6.3.173 prompt_after
34393 -        6.3.174 query_command
34394 -        6.3.175 quit
34395 -        6.3.176 quote_regexp
34396 -        6.3.177 read_inc
34397 -        6.3.178 read_only
34398 -        6.3.179 realname
34399 -        6.3.180 recall
34400 -        6.3.181 record
34401 -        6.3.182 reply_regexp
34402 -        6.3.183 reply_self
34403 -        6.3.184 reply_to
34404 -        6.3.185 resolve
34405 -        6.3.186 reverse_alias
34406 -        6.3.187 reverse_name
34407 -        6.3.188 reverse_realname
34408 -        6.3.189 rfc2047_parameters
34409 -        6.3.190 save_address
34410 -        6.3.191 save_empty
34411 -        6.3.192 save_name
34412 -        6.3.193 score
34413 -        6.3.194 score_threshold_delete
34414 -        6.3.195 score_threshold_flag
34415 -        6.3.196 score_threshold_read
34416 -        6.3.197 send_charset
34417 -        6.3.198 sendmail
34418 -        6.3.199 sendmail_wait
34419 -        6.3.200 shell
34420 -        6.3.201 sig_dashes
34421 -        6.3.202 sig_on_top
34422 -        6.3.203 signature
34423 -        6.3.204 simple_search
34424 -        6.3.205 smart_wrap
34425 -        6.3.206 smileys
34426 -        6.3.207 sleep_time
34427 -        6.3.208 sort
34428 -        6.3.209 sort_alias
34429 -        6.3.210 sort_aux
34430 -        6.3.211 sort_browser
34431 -        6.3.212 sort_re
34432 -        6.3.213 spoolfile
34433 -        6.3.214 status_chars
34434 -        6.3.215 status_format
34435 -        6.3.216 status_on_top
34436 -        6.3.217 strict_threads
34437 -        6.3.218 suspend
34438 -        6.3.219 text_flowed
34439 -        6.3.220 thread_received
34440 -        6.3.221 thorough_search
34441 -        6.3.222 tilde
34442 -        6.3.223 timeout
34443 -        6.3.224 tmpdir
34444 -        6.3.225 to_chars
34445 -        6.3.226 tunnel
34446 -        6.3.227 use_8bitmime
34447 -        6.3.228 use_domain
34448 -        6.3.229 use_from
34449 -        6.3.230 user_agent
34450 -        6.3.231 visual
34451 -        6.3.232 wait_key
34452 -        6.3.233 weed
34453 -        6.3.234 wrap_search
34454 -        6.3.235 wrapmargin
34455 -        6.3.236 write_inc
34456 -        6.3.237 write_bcc
34457 +        6.3.12 ask_follow_up
34458 +        6.3.13 ask_x_comment_to
34459 +        6.3.14 attach_format
34460 +        6.3.15 attach_sep
34461 +        6.3.16 attach_split
34462 +        6.3.17 attribution
34463 +        6.3.18 autoedit
34464 +        6.3.19 auto_tag
34465 +        6.3.20 beep
34466 +        6.3.21 beep_new
34467 +        6.3.22 bounce_delivered
34468 +        6.3.23 catchup_newsgroup
34469 +        6.3.24 charset
34470 +        6.3.25 check_new
34471 +        6.3.26 collapse_unread
34472 +        6.3.27 uncollapse_jump
34473 +        6.3.28 compose_format
34474 +        6.3.29 confirmappend
34475 +        6.3.30 confirmcreate
34476 +        6.3.31 connect_timeout
34477 +        6.3.32 copy
34478 +        6.3.33 date_format
34479 +        6.3.34 default_hook
34480 +        6.3.35 delete
34481 +        6.3.36 delete_untag
34482 +        6.3.37 digest_collapse
34483 +        6.3.38 display_filter
34484 +        6.3.39 dotlock_program
34485 +        6.3.40 dsn_notify
34486 +        6.3.41 dsn_return
34487 +        6.3.42 duplicate_threads
34488 +        6.3.43 edit_headers
34489 +        6.3.44 editor
34490 +        6.3.45 encode_from
34491 +        6.3.46 envelope_from
34492 +        6.3.47 escape
34493 +        6.3.48 fast_reply
34494 +        6.3.49 fcc_attach
34495 +        6.3.50 fcc_clear
34496 +        6.3.51 folder
34497 +        6.3.52 folder_format
34498 +        6.3.53 followup_to
34499 +        6.3.54 followup_to_poster
34500 +        6.3.55 force_name
34501 +        6.3.56 forward_decode
34502 +        6.3.57 forward_format
34503 +        6.3.58 forward_quote
34504 +        6.3.59 from
34505 +        6.3.60 gecos_mask
34506 +        6.3.61 group_index_format
34507 +        6.3.62 hdrs
34508 +        6.3.63 header
34509 +        6.3.64 help
34510 +        6.3.65 hidden_host
34511 +        6.3.66 hide_limited
34512 +        6.3.67 hide_missing
34513 +        6.3.68 hide_top_limited
34514 +        6.3.69 hide_top_missing
34515 +        6.3.70 history
34516 +        6.3.71 honor_followup_to
34517 +        6.3.72 hostname
34518 +        6.3.73 ignore_list_reply_to
34519 +        6.3.74 imap_authenticators
34520 +        6.3.75 imap_delim_chars
34521 +        6.3.76 imap_force_ssl
34522 +        6.3.77 imap_home_namespace
34523 +        6.3.78 imap_keepalive
34524 +        6.3.79 imap_list_subscribed
34525 +        6.3.80 imap_pass
34526 +        6.3.81 imap_passive
34527 +        6.3.82 imap_peek
34528 +        6.3.83 imap_servernoise
34529 +        6.3.84 imap_user
34530 +        6.3.85 implicit_autoview
34531 +        6.3.86 include
34532 +        6.3.87 indent_string
34533 +        6.3.88 index_format
34534 +        6.3.89 inews
34535 +        6.3.90 ispell
34536 +        6.3.91 keep_flagged
34537 +        6.3.92 locale
34538 +        6.3.93 mail_check
34539 +        6.3.94 mailcap_path
34540 +        6.3.95 mailcap_sanitize
34541 +        6.3.96 maildir_trash
34542 +        6.3.97 mark_old
34543 +        6.3.98 markers
34544 +        6.3.99 mask
34545 +        6.3.100 mbox
34546 +        6.3.101 mbox_type
34547 +        6.3.102 metoo
34548 +        6.3.103 menu_scroll
34549 +        6.3.104 meta_key
34550 +        6.3.105 mh_purge
34551 +        6.3.106 mh_seq_flagged
34552 +        6.3.107 mh_seq_replied
34553 +        6.3.108 mh_seq_unseen
34554 +        6.3.109 mime_forward
34555 +        6.3.110 mime_forward_decode
34556 +        6.3.111 mime_forward_rest
34557 +        6.3.112 mime_subject
34558 +        6.3.113 mix_entry_format
34559 +        6.3.114 mixmaster
34560 +        6.3.115 move
34561 +        6.3.116 message_format
34562 +        6.3.117 news_cache_dir
34563 +        6.3.118 news_server
34564 +        6.3.119 newsrc
34565 +        6.3.120 nntp_context
34566 +        6.3.121 nntp_load_description
34567 +        6.3.122 nntp_user
34568 +        6.3.123 nntp_pass
34569 +        6.3.124 nntp_poll
34570 +        6.3.125 nntp_reconnect
34571 +        6.3.126 pager
34572 +        6.3.127 pager_context
34573 +        6.3.128 pager_format
34574 +        6.3.129 pager_index_lines
34575 +        6.3.130 pager_stop
34576 +        6.3.131 pgp_autosign
34577 +        6.3.132 pgp_autoencrypt
34578 +        6.3.133 pgp_ignore_subkeys
34579 +        6.3.134 pgp_entry_format
34580 +        6.3.135 pgp_good_sign
34581 +        6.3.136 pgp_long_ids
34582 +        6.3.137 pgp_replyencrypt
34583 +        6.3.138 pgp_replysign
34584 +        6.3.139 pgp_replysignencrypted
34585 +        6.3.140 pgp_retainable_sigs
34586 +        6.3.141 pgp_show_unusable
34587 +        6.3.142 pgp_sign_as
34588 +        6.3.143 pgp_strict_enc
34589 +        6.3.144 pgp_timeout
34590 +        6.3.145 pgp_verify_sig
34591 +        6.3.146 pgp_sort_keys
34592 +        6.3.147 pgp_create_traditional
34593 +        6.3.148 pgp_decode_command
34594 +        6.3.149 pgp_getkeys_command
34595 +        6.3.150 pgp_verify_command
34596 +        6.3.151 pgp_decrypt_command
34597 +        6.3.152 pgp_clearsign_command
34598 +        6.3.153 pgp_sign_command
34599 +        6.3.154 pgp_encrypt_sign_command
34600 +        6.3.155 pgp_encrypt_only_command
34601 +        6.3.156 pgp_import_command
34602 +        6.3.157 pgp_export_command
34603 +        6.3.158 pgp_verify_key_command
34604 +        6.3.159 pgp_list_secring_command
34605 +        6.3.160 pgp_list_pubring_command
34606 +        6.3.161 forward_decrypt
34607 +        6.3.162 ssl_starttls
34608 +        6.3.163 certificate_file
34609 +        6.3.164 ssl_usesystemcerts
34610 +        6.3.165 entropy_file
34611 +        6.3.166 ssl_use_sslv2
34612 +        6.3.167 ssl_use_sslv3
34613 +        6.3.168 ssl_use_tlsv1
34614 +        6.3.169 pipe_split
34615 +        6.3.170 pipe_decode
34616 +        6.3.171 pipe_sep
34617 +        6.3.172 pop_authenticators
34618 +        6.3.173 pop_auth_try_all
34619 +        6.3.174 pop_checkinterval
34620 +        6.3.175 pop_delete
34621 +        6.3.176 pop_host
34622 +        6.3.177 pop_last
34623 +        6.3.178 pop_reconnect
34624 +        6.3.179 pop_user
34625 +        6.3.180 pop_pass
34626 +        6.3.181 post_indent_string
34627 +        6.3.182 post_moderated
34628 +        6.3.183 postpone
34629 +        6.3.184 postponed
34630 +        6.3.185 preconnect
34631 +        6.3.186 print
34632 +        6.3.187 print_command
34633 +        6.3.188 print_decode
34634 +        6.3.189 print_split
34635 +        6.3.190 prompt_after
34636 +        6.3.191 query_command
34637 +        6.3.192 quit
34638 +        6.3.193 quote_regexp
34639 +        6.3.194 read_inc
34640 +        6.3.195 read_only
34641 +        6.3.196 realname
34642 +        6.3.197 recall
34643 +        6.3.198 record
34644 +        6.3.199 reply_regexp
34645 +        6.3.200 reply_self
34646 +        6.3.201 reply_to
34647 +        6.3.202 resolve
34648 +        6.3.203 reverse_alias
34649 +        6.3.204 reverse_name
34650 +        6.3.205 reverse_realname
34651 +        6.3.206 rfc2047_parameters
34652 +        6.3.207 save_address
34653 +        6.3.208 save_empty
34654 +        6.3.209 save_name
34655 +        6.3.210 score
34656 +        6.3.211 score_threshold_delete
34657 +        6.3.212 score_threshold_flag
34658 +        6.3.213 score_threshold_read
34659 +        6.3.214 send_charset
34660 +        6.3.215 sendmail
34661 +        6.3.216 sendmail_wait
34662 +        6.3.217 shell
34663 +        6.3.218 save_unsubscribed
34664 +        6.3.219 show_new_news
34665 +        6.3.220 show_only_unread
34666 +        6.3.221 sig_dashes
34667 +        6.3.222 sig_on_top
34668 +        6.3.223 signature
34669 +        6.3.224 simple_search
34670 +        6.3.225 smart_wrap
34671 +        6.3.226 smileys
34672 +        6.3.227 sleep_time
34673 +        6.3.228 sort
34674 +        6.3.229 sort_alias
34675 +        6.3.230 sort_aux
34676 +        6.3.231 sort_browser
34677 +        6.3.232 sort_re
34678 +        6.3.233 spoolfile
34679 +        6.3.234 status_chars
34680 +        6.3.235 status_format
34681 +        6.3.236 status_on_top
34682 +        6.3.237 strict_threads
34683 +        6.3.238 suspend
34684 +        6.3.239 text_flowed
34685 +        6.3.240 thread_received
34686 +        6.3.241 thorough_search
34687 +        6.3.242 tilde
34688 +        6.3.243 timeout
34689 +        6.3.244 tmpdir
34690 +        6.3.245 to_chars
34691 +        6.3.246 tunnel
34692 +        6.3.247 use_8bitmime
34693 +        6.3.248 use_domain
34694 +        6.3.249 use_from
34695 +        6.3.250 use_ipv6
34696 +        6.3.251 user_agent
34697 +        6.3.252 visual
34698 +        6.3.253 wait_key
34699 +        6.3.254 weed
34700 +        6.3.255 wrap_search
34701 +        6.3.256 wrapmargin
34702 +        6.3.257 write_inc
34703 +        6.3.258 write_bcc
34704 +        6.3.259 x_comment_to
34705       6.4 Functions
34706          6.4.1 generic
34707          6.4.2 index
34708 @@ -356,6 +385,7 @@
34709          6.4.11 editor
34710  
34711    7. Miscellany
34712 +
34713       7.1 Acknowledgements
34714       7.2 About this document
34715  
34716 @@ -501,35 +531,35 @@
34717  
34718    2\b2.\b.3\b3.\b.1\b1.\b.  T\bTh\bhe\be M\bMe\bes\bss\bsa\bag\bge\be I\bIn\bnd\bde\bex\bx
34719  
34720 -  c               change to a different mailbox
34721 -  ESC c           change to a folder in read-only mode
34722 -  C               copy the current message to another mailbox
34723 -  ESC C           decode a message and copy it to a folder
34724 -  ESC s           decode a message and save it to a folder
34725 -  D               delete messages matching a pattern
34726 -  d               delete the current message
34727 -  F               mark as important
34728 -  l               show messages matching a pattern
34729 -  N               mark message as new
34730 -  o               change the current sort method
34731 -  O               reverse sort the mailbox
34732 -  q               save changes and exit
34733 -  s               save-message
34734 -  T               tag messages matching a pattern
34735 -  t               toggle the tag on a message
34736 -  ESC t           toggle tag on entire message thread
34737 -  U               undelete messages matching a pattern
34738 -  u               undelete-message
34739 -  v               view-attachments
34740 -  x               abort changes and exit
34741 -  <Return>        display-message
34742 -  <Tab>           jump to the next new message
34743 -  @               show the author's full e-mail address
34744 -  $               save changes to mailbox
34745 -  /               search
34746 -  ESC /           search-reverse
34747 -  ^L              clear and redraw the screen
34748 -  ^T              untag messages matching a pattern
34749 +       c               change to a different mailbox
34750 +       ESC c           change to a folder in read-only mode
34751 +       C               copy the current message to another mailbox
34752 +       ESC C           decode a message and copy it to a folder
34753 +       ESC s           decode a message and save it to a folder
34754 +       D               delete messages matching a pattern
34755 +       d               delete the current message
34756 +       F               mark as important
34757 +       l               show messages matching a pattern
34758 +       N               mark message as new
34759 +       o               change the current sort method
34760 +       O               reverse sort the mailbox
34761 +       q               save changes and exit
34762 +       s               save-message
34763 +       T               tag messages matching a pattern
34764 +       t               toggle the tag on a message
34765 +       ESC t           toggle tag on entire message thread
34766 +       U               undelete messages matching a pattern
34767 +       u               undelete-message
34768 +       v               view-attachments
34769 +       x               abort changes and exit
34770 +       <Return>        display-message
34771 +       <Tab>           jump to the next new message
34772 +       @               show the author's full e-mail address
34773 +       $               save changes to mailbox
34774 +       /               search
34775 +       ESC /           search-reverse
34776 +       ^L              clear and redraw the screen
34777 +       ^T              untag messages matching a pattern
34778  
34779    2\b2.\b.3\b3.\b.1\b1.\b.1\b1.\b.  S\bSt\bta\bat\btu\bus\bs F\bFl\bla\bag\bgs\bs
34780  
34781 @@ -581,18 +611,18 @@
34782    messages.  The pager is very similar to the Unix program _\bl_\be_\bs_\bs though
34783    not nearly as featureful.
34784  
34785 -       <Return>        go down one line
34786 -       <Space>         display the next page (or next message if at the end of a message)
34787 -       -               go back to the previous page
34788 -       n               search for next match
34789 -       S               skip beyond quoted text
34790 -       T               toggle display of quoted text
34791 -       ?               show keybindings
34792 -       /               search for a regular expression (pattern)
34793 -       ESC /           search backwards for a regular expression
34794 -       \               toggle search pattern coloring
34795 -       ^               jump to the top of the message
34796 -       $               jump to the bottom of the message
34797 +  <Return>        go down one line
34798 +  <Space>         display the next page (or next message if at the end of a message)
34799 +  -               go back to the previous page
34800 +  n               search for next match
34801 +  S               skip beyond quoted text
34802 +  T               toggle display of quoted text
34803 +  ?               show keybindings
34804 +  /               search for a regular expression (pattern)
34805 +  ESC /           search backwards for a regular expression
34806 +  \               toggle search pattern coloring
34807 +  ^               jump to the top of the message
34808 +  $               jump to the bottom of the message
34809  
34810    In addition, many of the functions from the _\bi_\bn_\bd_\be_\bx are available in the
34811    pager, such as _\bd_\be_\bl_\be_\bt_\be_\b-_\bm_\be_\bs_\bs_\ba_\bg_\be or _\bc_\bo_\bp_\by_\b-_\bm_\be_\bs_\bs_\ba_\bg_\be (this is one advantage
34812 @@ -783,13 +813,13 @@
34813    The following bindings are available in the _\bi_\bn_\bd_\be_\bx for sending
34814    messages.
34815  
34816 -  m       compose         compose a new message
34817 -  r       reply           reply to sender
34818 -  g       group-reply     reply to all recipients
34819 -  L       list-reply      reply to mailing list address
34820 -  f       forward         forward message
34821 -  b       bounce          bounce (remail) message
34822 -  ESC k   mail-key        mail a PGP public key to someone
34823 +       m       compose         compose a new message
34824 +       r       reply           reply to sender
34825 +       g       group-reply     reply to all recipients
34826 +       L       list-reply      reply to mailing list address
34827 +       f       forward         forward message
34828 +       b       bounce          bounce (remail) message
34829 +       ESC k   mail-key        mail a PGP public key to someone
34830  
34831    Bouncing a message sends the message as is to the recipient you
34832    specify.  Forwarding a message allows you to add comments or modify
34833 @@ -966,6 +996,7 @@
34834    original recipients.  Forwarding a message, on the other hand, allows
34835    you to modify the message before it is resent (for example, by adding
34836    your own comments).
34837 +
34838    The following keys are bound by default:
34839  
34840         f       forward         forward message
34841 @@ -1009,6 +1040,16 @@
34842  
34843    See also the ``$postpone'' quad-option.
34844  
34845 +  2\b2.\b.7\b7.\b.  R\bRe\bea\bad\bdi\bin\bng\bg n\bne\bew\bws\bs v\bvi\bia\ba N\bNN\bNT\bTP\bP
34846 +
34847 +  If compiled with ``--enable-nntp'' option, Mutt can read news from
34848 +  newsserver via NNTP.  You can open a newsgroup with function ``change-
34849 +  newsgroup'' (default: i).  Default newsserver can be obtained from
34850 +  _\bN_\bN_\bT_\bP_\bS_\bE_\bR_\bV_\bE_\bR environment variable.  Like other news readers, info about
34851 +  subscribed newsgroups is saved in file by ``$newsrc'' variable.
34852 +  Article headers are cached and can be loaded from file when newsgroup
34853 +  entered instead loading from newsserver.
34854 +
34855    3\b3.\b.  C\bCo\bon\bnf\bfi\big\bgu\bur\bra\bat\bti\bio\bon\bn
34856  
34857    While the default configuration (or ``preferences'') make Mutt usable
34858 @@ -1023,6 +1064,7 @@
34859  
34860    .muttrc is the file where you will usually place your ``commands'' to
34861    configure Mutt.
34862 +
34863    In addition, mutt supports version specific configuration files that
34864    are parsed instead of the default files as explained above.  For
34865    instance, if your system has a Muttrc-0.88 file in the system
34866 @@ -1125,6 +1167,7 @@
34867    that Mutt will happily append aliases to any file, but in order for
34868    the new aliases to take effect you need to explicitly ``source'' this
34869    file too.
34870 +
34871    For example:
34872  
34873         source /usr/local/share/Mutt.aliases
34874 @@ -1184,30 +1227,31 @@
34875    _\b\_\bc_\bA and _\b\_\bc_\ba are all equivalent.  An alternative form is to specify the
34876    key as a three digit octal number prefixed with a ``\'' (for example
34877    _\b\_\b1_\b7_\b7 is equivalent to _\b\_\bc_\b?).
34878 +
34879    In addition, _\bk_\be_\by may consist of:
34880  
34881 -       \t              tab
34882 -       <tab>           tab
34883 -       \r              carriage return
34884 -       \n              newline
34885 -       \e              escape
34886 -       <esc>           escape
34887 -       <up>            up arrow
34888 -       <down>          down arrow
34889 -       <left>          left arrow
34890 -       <right>         right arrow
34891 -       <pageup>        Page Up
34892 -       <pagedown>      Page Down
34893 -       <backspace>     Backspace
34894 -       <delete>        Delete
34895 -       <insert>        Insert
34896 -       <enter>         Enter
34897 -       <return>        Return
34898 -       <home>          Home
34899 -       <end>           End
34900 -       <space>         Space bar
34901 -       <f1>            function key 1
34902 -       <f10>           function key 10
34903 +  \t              tab
34904 +  <tab>           tab
34905 +  \r              carriage return
34906 +  \n              newline
34907 +  \e              escape
34908 +  <esc>           escape
34909 +  <up>            up arrow
34910 +  <down>          down arrow
34911 +  <left>          left arrow
34912 +  <right>         right arrow
34913 +  <pageup>        Page Up
34914 +  <pagedown>      Page Down
34915 +  <backspace>     Backspace
34916 +  <delete>        Delete
34917 +  <insert>        Insert
34918 +  <enter>         Enter
34919 +  <return>        Return
34920 +  <home>          Home
34921 +  <end>           End
34922 +  <space>         Space bar
34923 +  <f1>            function key 1
34924 +  <f10>           function key 10
34925  
34926    _\bk_\be_\by does not need to be enclosed in quotes unless it contains a space
34927    (`` '').
34928 @@ -1476,6 +1520,7 @@
34929    The ``unlists'' command is used to remove a token from the list of
34930    known and subscribed mailing-lists. Use ``unlists *'' to remove all
34931    tokens.
34932 +
34933    To remove a mailing list from the list of subscribed mailing lists,
34934    but keep it on the list of known mailing lists, use ``unsubscribe''.
34935  
34936 @@ -1540,7 +1585,6 @@
34937    N\bNo\bot\bte\be:\b:  space characters are _\bn_\bo_\bt allowed between the keyword and the
34938    colon (``:'').  The standard for electronic mail (RFC822) says that
34939    space is illegal there, so Mutt enforces the rule.
34940 -
34941    If you would like to add a header field to a single message, you
34942    should either set the ``edit_headers'' variable, or use the _\be_\bd_\bi_\bt_\b-
34943    _\bh_\be_\ba_\bd_\be_\br_\bs function (default: ``E'') in the send-menu so that you can
34944 @@ -1653,8 +1697,8 @@
34945  
34946    Example:
34947  
34948 -       message-hook ~A 'set pager=builtin'
34949 -       message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
34950 +  message-hook ~A 'set pager=builtin'
34951 +  message-hook '~f freshmeat-news' 'set pager="less \"+/^  subject: .*\""'
34952  
34953    3\b3.\b.1\b19\b9.\b.  C\bCh\bho\boo\bos\bsi\bin\bng\bg t\bth\bhe\be P\bPG\bGP\bP k\bke\bey\by o\bof\bf t\bth\bhe\be r\bre\bec\bci\bip\bpi\bie\ben\bnt\bt
34954  
34955 @@ -2059,7 +2103,7 @@
34956    match the ``^Junk +From +Me$'' and it must be from either ``Jim
34957    +Somebody'' or ``Ed +SomeoneElse'':
34958  
34959 -   '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
34960 +        '~s "^Junk +From +Me$" ~f ("Jim +Somebody"|"Ed +SomeoneElse")'
34961  
34962    4\b4.\b.2\b2.\b.3\b3.\b.  S\bSe\bea\bar\brc\bch\bhi\bin\bng\bg b\bby\by D\bDa\bat\bte\be
34963  
34964 @@ -2113,7 +2157,7 @@
34965  
34966    Example: to select messages less than 1 month old, you would use
34967  
34968 -       Limit to messages matching: ~d <1m
34969 +  Limit to messages matching: ~d <1m
34970  
34971    N\bNo\bot\bte\be:\b: all dates used when searching are relative to the l\blo\boc\bca\bal\bl time
34972    zone, so unless you change the setting of your ``$index_format'' to
34973 @@ -2222,10 +2266,10 @@
34974  
34975    An example multiple response output:
34976  
34977 -       Searching database ... 20 entries ... 3 matching:
34978 -       me@cs.hmc.edu           Michael Elkins  mutt dude
34979 -       blong@fiction.net       Brandon Long    mutt and more
34980 -       roessler@guug.de        Thomas Roessler mutt pgp
34981 +  Searching database ... 20 entries ... 3 matching:
34982 +  me@cs.hmc.edu           Michael Elkins  mutt dude
34983 +  blong@fiction.net       Brandon Long    mutt and more
34984 +  roessler@guug.de        Thomas Roessler mutt pgp
34985  
34986    There are two mechanisms for accessing the query function of mutt.
34987    One is to do a query from the index menu using the query function
34988 @@ -2279,7 +2323,6 @@
34989    messages are chosen in such a way they are unique, even when two
34990    programs are writing the mailbox over NFS, which means that no file
34991    locking is needed.
34992 -
34993    4\b4.\b.7\b7.\b.  M\bMa\bai\bil\blb\bbo\box\bx S\bSh\bho\bor\brt\btc\bcu\but\bts\bs
34994  
34995    There are a number of built in shortcuts which refer to specific
34996 @@ -2405,7 +2448,6 @@
34997  
34998    You can select an alternative port by specifying it with the server,
34999    ie: pop://popserver:port/.
35000 -
35001    You can also specify different username for each folder, ie:
35002    pop://username@popserver[:port]/.
35003  
35004 @@ -2456,6 +2498,7 @@
35005  
35006    Pine-compatible notation is also supported, ie
35007    {[username@]imapserver[:port][/ssl]}path/to/folder
35008 +
35009    Note that not all servers use / as the hierarchy separator.  Mutt
35010    should correctly notice which separator is being used by the server
35011    and convert paths accordingly.
35012 @@ -2469,8 +2512,8 @@
35013    So, you'll want to carefully tune the ``$mail_check'' and ``$timeout''
35014    variables. Personally I use
35015  
35016 -       set mail_check=90
35017 -       set timeout=15
35018 +  set mail_check=90
35019 +  set timeout=15
35020  
35021    with relatively good results over my slow modem line.
35022  
35023 @@ -2528,7 +2571,6 @@
35024       authentication on the IMAP server, for all authenticators. This is
35025       overridden by an explicit username in the mailbox path (ie by using
35026       a mailbox name of the form {user@host}).
35027 -
35028    Â·  ``$imap_pass'' - a password which you may preset, used by all
35029       authentication methods where a password is needed.
35030  
35031 @@ -3043,6 +3085,7 @@
35032    attempting to print an image/gif, and you have the following entries
35033    in your mailcap file, Mutt will search for an entry with the print
35034    command:
35035 +
35036         image/*;        xv %s
35037         image/gif;      ; print= anytopnm %s | pnmtops | lpr; \
35038                         nametemplate=%s.gif
35039 @@ -3056,9 +3099,9 @@
35040    can then use the test feature to determine which viewer to use
35041    interactively depending on your environment.
35042  
35043 -       text/html;      netscape -remote 'openURL(%s)' ; test=RunningX
35044 -       text/html;      lynx %s; nametemplate=%s.html
35045 -       text/html;      lynx -dump %s; nametemplate=%s.html; copiousoutput
35046 +  text/html;      netscape -remote 'openURL(%s)' ; test=RunningX
35047 +  text/html;      lynx %s; nametemplate=%s.html
35048 +  text/html;      lynx -dump %s; nametemplate=%s.html; copiousoutput
35049  
35050    For ``Autoview'', Mutt will choose the third entry because of the
35051    copiousoutput tag.  For interactive viewing, Mutt will run the program
35052 @@ -3210,25 +3253,25 @@
35053    spool mailbox.  However, it is possible to read other mailboxes and to
35054    send messages from the command line as well.
35055  
35056 -       -a      attach a file to a message
35057 -       -b      specify a blind carbon-copy (BCC) address
35058 -       -c      specify a carbon-copy (Cc) address
35059 -       -e      specify a config command to be run after initilization files are read
35060 -       -f      specify a mailbox to load
35061 -       -F      specify an alternate file to read initialization commands
35062 -       -h      print help on command line options
35063 -       -H      specify a draft file from which to read a header and body
35064 -       -i      specify a file to include in a message composition
35065 -       -m      specify a default mailbox type
35066 -       -n      do not read the system Muttrc
35067 -       -p      recall a postponed message
35068 -       -R      open mailbox in read-only mode
35069 -       -s      specify a subject (enclose in quotes if it contains spaces)
35070 -       -v      show version number and compile-time definitions
35071 -       -x      simulate the mailx(1) compose mode
35072 -       -y      show a menu containing the files specified by the mailboxes command
35073 -       -z      exit immediately if there are no messages in the mailbox
35074 -       -Z      open the first folder with new message,exit immediately if none
35075 +  -a      attach a file to a message
35076 +  -b      specify a blind carbon-copy (BCC) address
35077 +  -c      specify a carbon-copy (Cc) address
35078 +  -e      specify a config command to be run after initilization files are read
35079 +  -f      specify a mailbox to load
35080 +  -F      specify an alternate file to read initialization commands
35081 +  -h      print help on command line options
35082 +  -H      specify a draft file from which to read a header and body
35083 +  -i      specify a file to include in a message composition
35084 +  -m      specify a default mailbox type
35085 +  -n      do not read the system Muttrc
35086 +  -p      recall a postponed message
35087 +  -R      open mailbox in read-only mode
35088 +  -s      specify a subject (enclose in quotes if it contains spaces)
35089 +  -v      show version number and compile-time definitions
35090 +  -x      simulate the mailx(1) compose mode
35091 +  -y      show a menu containing the files specified by the mailboxes command
35092 +  -z      exit immediately if there are no messages in the mailbox
35093 +  -Z      open the first folder with new message,exit immediately if none
35094  
35095    To read messages in a mailbox
35096  
35097 @@ -3454,7 +3497,23 @@
35098    If set, Mutt will prompt you for carbon-copy (Cc) recipients before
35099    editing the body of an outgoing message.
35100  
35101 -  6\b6.\b.3\b3.\b.1\b12\b2.\b.  a\bat\btt\bta\bac\bch\bh_\b_f\bfo\bor\brm\bma\bat\bt
35102 +  6\b6.\b.3\b3.\b.1\b12\b2.\b.  a\bas\bsk\bk_\b_f\bfo\bol\bll\blo\bow\bw_\b_u\bup\bp
35103 +
35104 +  Type: boolean
35105 +  Default: no
35106 +
35107 +  If set, Mutt will prompt you for follow-up groups before editing the
35108 +  body of an outgoing message.
35109 +
35110 +  6\b6.\b.3\b3.\b.1\b13\b3.\b.  a\bas\bsk\bk_\b_x\bx_\b_c\bco\bom\bmm\bme\ben\bnt\bt_\b_t\bto\bo
35111 +
35112 +  Type: boolean
35113 +  Default: no
35114 +
35115 +  If set, Mutt will prompt you for x-comment-to field before editing the
35116 +  body of an outgoing message.
35117 +
35118 +  6\b6.\b.3\b3.\b.1\b14\b4.\b.  a\bat\btt\bta\bac\bch\bh_\b_f\bfo\bor\brm\bma\bat\bt
35119  
35120    Type: string
35121    Default: "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
35122 @@ -3490,7 +3549,7 @@
35123       %\b%|\b|X\bX
35124          pad to the end of the line with character "X"
35125  
35126 -  6\b6.\b.3\b3.\b.1\b13\b3.\b.  a\bat\btt\bta\bac\bch\bh_\b_s\bse\bep\bp
35127 +  6\b6.\b.3\b3.\b.1\b15\b5.\b.  a\bat\btt\bta\bac\bch\bh_\b_s\bse\bep\bp
35128  
35129    Type: string
35130    Default: "\n"
35131 @@ -3498,7 +3557,7 @@
35132    The separator to add between attachments when operating (saving,
35133    printing, piping, etc) on a list of tagged attachments.
35134  
35135 -  6\b6.\b.3\b3.\b.1\b14\b4.\b.  a\bat\btt\bta\bac\bch\bh_\b_s\bsp\bpl\bli\bit\bt
35136 +  6\b6.\b.3\b3.\b.1\b16\b6.\b.  a\bat\btt\bta\bac\bch\bh_\b_s\bsp\bpl\bli\bit\bt
35137  
35138    Type: boolean
35139    Default: yes
35140 @@ -3509,7 +3568,7 @@
35141    ````$attach_sep'''' separator is added after each attachment. When
35142    set, Mutt will operate on the attachments one by one.
35143  
35144 -  6\b6.\b.3\b3.\b.1\b15\b5.\b.  a\bat\btt\btr\bri\bib\bbu\but\bti\bio\bon\bn
35145 +  6\b6.\b.3\b3.\b.1\b17\b7.\b.  a\bat\btt\btr\bri\bib\bbu\but\bti\bio\bon\bn
35146  
35147    Type: string
35148    Default: "On %d, %n wrote:"
35149 @@ -3518,7 +3577,7 @@
35150    in a reply.  For a full listing of defined printf()-like sequences see
35151    the section on ````$index_format''''.
35152  
35153 -  6\b6.\b.3\b3.\b.1\b16\b6.\b.  a\bau\but\bto\boe\bed\bdi\bit\bt
35154 +  6\b6.\b.3\b3.\b.1\b18\b8.\b.  a\bau\but\bto\boe\bed\bdi\bit\bt
35155  
35156    Type: boolean
35157    Default: no
35158 @@ -3530,7 +3589,7 @@
35159  
35160    Also see ````$fast_reply''''.
35161  
35162 -  6\b6.\b.3\b3.\b.1\b17\b7.\b.  a\bau\but\bto\bo_\b_t\bta\bag\bg
35163 +  6\b6.\b.3\b3.\b.1\b19\b9.\b.  a\bau\but\bto\bo_\b_t\bta\bag\bg
35164  
35165    Type: boolean
35166    Default: no
35167 @@ -3540,14 +3599,14 @@
35168    must first use the tag-prefix function (default: ";") to make the next
35169    function apply to all tagged messages.
35170  
35171 -  6\b6.\b.3\b3.\b.1\b18\b8.\b.  b\bbe\bee\bep\bp
35172 +  6\b6.\b.3\b3.\b.2\b20\b0.\b.  b\bbe\bee\bep\bp
35173  
35174    Type: boolean
35175    Default: yes
35176  
35177    When this variable is set, mutt will beep when an error occurs.
35178  
35179 -  6\b6.\b.3\b3.\b.1\b19\b9.\b.  b\bbe\bee\bep\bp_\b_n\bne\bew\bw
35180 +  6\b6.\b.3\b3.\b.2\b21\b1.\b.  b\bbe\bee\bep\bp_\b_n\bne\bew\bw
35181  
35182    Type: boolean
35183    Default: no
35184 @@ -3556,7 +3615,7 @@
35185    notifying you of new mail.  This is independent of the setting of the
35186    ````$beep'''' variable.
35187  
35188 -  6\b6.\b.3\b3.\b.2\b20\b0.\b.  b\bbo\bou\bun\bnc\bce\be_\b_d\bde\bel\bli\biv\bve\ber\bre\bed\bd
35189 +  6\b6.\b.3\b3.\b.2\b22\b2.\b.  b\bbo\bou\bun\bnc\bce\be_\b_d\bde\bel\bli\biv\bve\ber\bre\bed\bd
35190  
35191    Type: boolean
35192    Default: yes
35193 @@ -3564,14 +3623,22 @@
35194    When this variable is set, mutt will include Delivered-To headers when
35195    bouncing messages.  Postfix users may wish to unset this variable.
35196  
35197 -  6\b6.\b.3\b3.\b.2\b21\b1.\b.  c\bch\bha\bar\brs\bse\bet\bt
35198 +  6\b6.\b.3\b3.\b.2\b23\b3.\b.  c\bca\bat\btc\bch\bhu\bup\bp_\b_n\bne\bew\bws\bsg\bgr\bro\bou\bup\bp
35199 +
35200 +  Type: quadoption
35201 +  Default: ask-yes
35202 +
35203 +  If this variable is _\bs_\be_\bt, Mutt will mark all articles in newsgroup as
35204 +  read when you quit the newsgroup (catchup newsgroup).
35205 +
35206 +  6\b6.\b.3\b3.\b.2\b24\b4.\b.  c\bch\bha\bar\brs\bse\bet\bt
35207  
35208    Type: string
35209    Default: ""
35210  
35211    Character set your terminal uses to display and enter textual data.
35212  
35213 -  6\b6.\b.3\b3.\b.2\b22\b2.\b.  c\bch\bhe\bec\bck\bk_\b_n\bne\bew\bw
35214 +  6\b6.\b.3\b3.\b.2\b25\b5.\b.  c\bch\bhe\bec\bck\bk_\b_n\bne\bew\bw
35215  
35216    Type: boolean
35217    Default: yes
35218 @@ -3584,7 +3651,7 @@
35219    file to see if it has already been looked at.  If _\bc_\bh_\be_\bc_\bk_\b__\bn_\be_\bw is _\bu_\bn_\bs_\be_\bt,
35220    no check for new mail is performed while the mailbox is open.
35221  
35222 -  6\b6.\b.3\b3.\b.2\b23\b3.\b.  c\bco\bol\bll\bla\bap\bps\bse\be_\b_u\bun\bnr\bre\bea\bad\bd
35223 +  6\b6.\b.3\b3.\b.2\b26\b6.\b.  c\bco\bol\bll\bla\bap\bps\bse\be_\b_u\bun\bnr\bre\bea\bad\bd
35224  
35225    Type: boolean
35226    Default: yes
35227 @@ -3592,7 +3659,7 @@
35228    When _\bu_\bn_\bs_\be_\bt, Mutt will not collapse a thread if it contains any unread
35229    messages.
35230  
35231 -  6\b6.\b.3\b3.\b.2\b24\b4.\b.  u\bun\bnc\bco\bol\bll\bla\bap\bps\bse\be_\b_j\bju\bum\bmp\bp
35232 +  6\b6.\b.3\b3.\b.2\b27\b7.\b.  u\bun\bnc\bco\bol\bll\bla\bap\bps\bse\be_\b_j\bju\bum\bmp\bp
35233  
35234    Type: boolean
35235    Default: no
35236 @@ -3600,7 +3667,7 @@
35237    When _\bs_\be_\bt, Mutt will jump to the next unread message, if any, when the
35238    current thread is _\bu_\bncollapsed.
35239  
35240 -  6\b6.\b.3\b3.\b.2\b25\b5.\b.  c\bco\bom\bmp\bpo\bos\bse\be_\b_f\bfo\bor\brm\bma\bat\bt
35241 +  6\b6.\b.3\b3.\b.2\b28\b8.\b.  c\bco\bom\bmp\bpo\bos\bse\be_\b_f\bfo\bor\brm\bma\bat\bt
35242  
35243    Type: string
35244    Default: "-- Mutt: Compose  [Approx. msg size: %l   Atts: %a]%>-"
35245 @@ -3620,7 +3687,7 @@
35246    See the text describing the ````$status_format'''' option for more
35247    information on how to set ````$compose_format''''.
35248  
35249 -  6\b6.\b.3\b3.\b.2\b26\b6.\b.  c\bco\bon\bnf\bfi\bir\brm\bma\bap\bpp\bpe\ben\bnd\bd
35250 +  6\b6.\b.3\b3.\b.2\b29\b9.\b.  c\bco\bon\bnf\bfi\bir\brm\bma\bap\bpp\bpe\ben\bnd\bd
35251  
35252    Type: boolean
35253    Default: yes
35254 @@ -3628,7 +3695,7 @@
35255    When set, Mutt will prompt for confirmation when appending messages to
35256    an existing mailbox.
35257  
35258 -  6\b6.\b.3\b3.\b.2\b27\b7.\b.  c\bco\bon\bnf\bfi\bir\brm\bmc\bcr\bre\bea\bat\bte\be
35259 +  6\b6.\b.3\b3.\b.3\b30\b0.\b.  c\bco\bon\bnf\bfi\bir\brm\bmc\bcr\bre\bea\bat\bte\be
35260  
35261    Type: boolean
35262    Default: yes
35263 @@ -3636,7 +3703,7 @@
35264    When set, Mutt will prompt for confirmation when saving messages to a
35265    mailbox which does not yet exist before creating it.
35266  
35267 -  6\b6.\b.3\b3.\b.2\b28\b8.\b.  c\bco\bon\bnn\bne\bec\bct\bt_\b_t\bti\bim\bme\beo\bou\but\bt
35268 +  6\b6.\b.3\b3.\b.3\b31\b1.\b.  c\bco\bon\bnn\bne\bec\bct\bt_\b_t\bti\bim\bme\beo\bou\but\bt
35269  
35270    Type: number
35271    Default: 30
35272 @@ -3646,7 +3713,7 @@
35273    negative value causes Mutt to wait indefinitely for the connection to
35274    succeed.
35275  
35276 -  6\b6.\b.3\b3.\b.2\b29\b9.\b.  c\bco\bop\bpy\by
35277 +  6\b6.\b.3\b3.\b.3\b32\b2.\b.  c\bco\bop\bpy\by
35278  
35279    Type: quadoption
35280    Default: yes
35281 @@ -3655,7 +3722,7 @@
35282    will be saved for later references.  Also see ````$record'''',
35283    ````$save_name'''', ````$force_name'''' and ````fcc-hook''''.
35284  
35285 -  6\b6.\b.3\b3.\b.3\b30\b0.\b.  d\bda\bat\bte\be_\b_f\bfo\bor\brm\bma\bat\bt
35286 +  6\b6.\b.3\b3.\b.3\b33\b3.\b.  d\bda\bat\bte\be_\b_f\bfo\bor\brm\bma\bat\bt
35287  
35288    Type: string
35289    Default: "!%a, %b %d, %Y at %I:%M:%S%p %Z"
35290 @@ -3672,7 +3739,7 @@
35291    rest of the string are expanded in the _\bC locale (that is in US
35292    English).
35293  
35294 -  6\b6.\b.3\b3.\b.3\b31\b1.\b.  d\bde\bef\bfa\bau\bul\blt\bt_\b_h\bho\boo\bok\bk
35295 +  6\b6.\b.3\b3.\b.3\b34\b4.\b.  d\bde\bef\bfa\bau\bul\blt\bt_\b_h\bho\boo\bok\bk
35296  
35297    Type: string
35298    Default: "~f %s !~P | (~P ~C %s)"
35299 @@ -3687,7 +3754,7 @@
35300    matches ````$alternates'''') and is to or cc'ed to a user matching the
35301    given regular expression.
35302  
35303 -  6\b6.\b.3\b3.\b.3\b32\b2.\b.  d\bde\bel\ble\bet\bte\be
35304 +  6\b6.\b.3\b3.\b.3\b35\b5.\b.  d\bde\bel\ble\bet\bte\be
35305  
35306    Type: quadoption
35307    Default: ask-yes
35308 @@ -3697,7 +3764,7 @@
35309    will automatically be purged without prompting.  If set to _\bn_\bo,
35310    messages marked for deletion will be kept in the mailbox.
35311  
35312 -  6\b6.\b.3\b3.\b.3\b33\b3.\b.  d\bde\bel\ble\bet\bte\be_\b_u\bun\bnt\bta\bag\bg
35313 +  6\b6.\b.3\b3.\b.3\b36\b6.\b.  d\bde\bel\ble\bet\bte\be_\b_u\bun\bnt\bta\bag\bg
35314  
35315    Type: boolean
35316    Default: yes
35317 @@ -3706,7 +3773,7 @@
35318    deletion.  This applies when you either explicitly delete a message,
35319    or when you save it to another folder.
35320  
35321 -  6\b6.\b.3\b3.\b.3\b34\b4.\b.  d\bdi\big\bge\bes\bst\bt_\b_c\bco\bol\bll\bla\bap\bps\bse\be
35322 +  6\b6.\b.3\b3.\b.3\b37\b7.\b.  d\bdi\big\bge\bes\bst\bt_\b_c\bco\bol\bll\bla\bap\bps\bse\be
35323  
35324    Type: boolean
35325    Default: yes
35326 @@ -3715,7 +3782,7 @@
35327    subparts of individual messages in a digest.  To see these subparts,
35328    press 'v' on that menu.
35329  
35330 -  6\b6.\b.3\b3.\b.3\b35\b5.\b.  d\bdi\bis\bsp\bpl\bla\bay\by_\b_f\bfi\bil\blt\bte\ber\br
35331 +  6\b6.\b.3\b3.\b.3\b38\b8.\b.  d\bdi\bis\bsp\bpl\bla\bay\by_\b_f\bfi\bil\blt\bte\ber\br
35332  
35333    Type: path
35334    Default: ""
35335 @@ -3724,14 +3791,14 @@
35336    is viewed it is passed as standard input to ``$display_filter'', and
35337    the filtered message is read from the standard output.
35338  
35339 -  6\b6.\b.3\b3.\b.3\b36\b6.\b.  d\bdo\bot\btl\blo\boc\bck\bk_\b_p\bpr\bro\bog\bgr\bra\bam\bm
35340 +  6\b6.\b.3\b3.\b.3\b39\b9.\b.  d\bdo\bot\btl\blo\boc\bck\bk_\b_p\bpr\bro\bog\bgr\bra\bam\bm
35341  
35342    Type: path
35343    Default: "/usr/local/bin/mutt_dotlock"
35344  
35345    Contains the path of the mutt_dotlock (8) binary to be used by mutt.
35346  
35347 -  6\b6.\b.3\b3.\b.3\b37\b7.\b.  d\bds\bsn\bn_\b_n\bno\bot\bti\bif\bfy\by
35348 +  6\b6.\b.3\b3.\b.4\b40\b0.\b.  d\bds\bsn\bn_\b_n\bno\bot\bti\bif\bfy\by
35349  
35350    Type: string
35351    Default: ""
35352 @@ -3747,7 +3814,7 @@
35353  
35354    Example: set dsn_notify="failure,delay"
35355  
35356 -  6\b6.\b.3\b3.\b.3\b38\b8.\b.  d\bds\bsn\bn_\b_r\bre\bet\btu\bur\brn\bn
35357 +  6\b6.\b.3\b3.\b.4\b41\b1.\b.  d\bds\bsn\bn_\b_r\bre\bet\btu\bur\brn\bn
35358  
35359    Type: string
35360    Default: ""
35361 @@ -3761,7 +3828,7 @@
35362  
35363    Example: set dsn_return=hdrs
35364  
35365 -  6\b6.\b.3\b3.\b.3\b39\b9.\b.  d\bdu\bup\bpl\bli\bic\bca\bat\bte\be_\b_t\bth\bhr\bre\bea\bad\bds\bs
35366 +  6\b6.\b.3\b3.\b.4\b42\b2.\b.  d\bdu\bup\bpl\bli\bic\bca\bat\bte\be_\b_t\bth\bhr\bre\bea\bad\bds\bs
35367  
35368    Type: boolean
35369    Default: yes
35370 @@ -3771,7 +3838,7 @@
35371    indicate that it thinks they are duplicates of each other with an
35372    equals sign in the thread diagram.
35373  
35374 -  6\b6.\b.3\b3.\b.4\b40\b0.\b.  e\bed\bdi\bit\bt_\b_h\bhe\bea\bad\bde\ber\brs\bs
35375 +  6\b6.\b.3\b3.\b.4\b43\b3.\b.  e\bed\bdi\bit\bt_\b_h\bhe\bea\bad\bde\ber\brs\bs
35376  
35377    Type: boolean
35378    Default: no
35379 @@ -3779,7 +3846,7 @@
35380    This option allows you to edit the header of your outgoing messages
35381    along with the body of your message.
35382  
35383 -  6\b6.\b.3\b3.\b.4\b41\b1.\b.  e\bed\bdi\bit\bto\bor\br
35384 +  6\b6.\b.3\b3.\b.4\b44\b4.\b.  e\bed\bdi\bit\bto\bor\br
35385  
35386    Type: path
35387    Default: ""
35388 @@ -3788,7 +3855,7 @@
35389    the value of the EDITOR or VISUAL environment variable, or to the
35390    string "vi".
35391  
35392 -  6\b6.\b.3\b3.\b.4\b42\b2.\b.  e\ben\bnc\bco\bod\bde\be_\b_f\bfr\bro\bom\bm
35393 +  6\b6.\b.3\b3.\b.4\b45\b5.\b.  e\ben\bnc\bco\bod\bde\be_\b_f\bfr\bro\bom\bm
35394  
35395    Type: boolean
35396    Default: no
35397 @@ -3798,7 +3865,7 @@
35398    tampering certain mail delivery and transport agents tend to do with
35399    messages.
35400  
35401 -  6\b6.\b.3\b3.\b.4\b43\b3.\b.  e\ben\bnv\bve\bel\blo\bop\bpe\be_\b_f\bfr\bro\bom\bm
35402 +  6\b6.\b.3\b3.\b.4\b46\b6.\b.  e\ben\bnv\bve\bel\blo\bop\bpe\be_\b_f\bfr\bro\bom\bm
35403  
35404    Type: boolean
35405    Default: no
35406 @@ -3809,14 +3876,14 @@
35407    if you are using that switch in ``$sendmail'' yourself, or if the
35408    sendmail on your machine doesn't support that command line switch.
35409  
35410 -  6\b6.\b.3\b3.\b.4\b44\b4.\b.  e\bes\bsc\bca\bap\bpe\be
35411 +  6\b6.\b.3\b3.\b.4\b47\b7.\b.  e\bes\bsc\bca\bap\bpe\be
35412  
35413    Type: string
35414    Default: "~"
35415  
35416    Escape character to use for functions in the builtin editor.
35417  
35418 -  6\b6.\b.3\b3.\b.4\b45\b5.\b.  f\bfa\bas\bst\bt_\b_r\bre\bep\bpl\bly\by
35419 +  6\b6.\b.3\b3.\b.4\b48\b8.\b.  f\bfa\bas\bst\bt_\b_r\bre\bep\bpl\bly\by
35420  
35421    Type: boolean
35422    Default: no
35423 @@ -3828,7 +3895,7 @@
35424    N\bNo\bot\bte\be:\b: this variable has no effect when the ````$autoedit'''' variable
35425    is set.
35426  
35427 -  6\b6.\b.3\b3.\b.4\b46\b6.\b.  f\bfc\bcc\bc_\b_a\bat\btt\bta\bac\bch\bh
35428 +  6\b6.\b.3\b3.\b.4\b49\b9.\b.  f\bfc\bcc\bc_\b_a\bat\btt\bta\bac\bch\bh
35429  
35430    Type: boolean
35431    Default: yes
35432 @@ -3836,7 +3903,7 @@
35433    This variable controls whether or not attachments on outgoing messages
35434    are saved along with the main body of your message.
35435  
35436 -  6\b6.\b.3\b3.\b.4\b47\b7.\b.  f\bfc\bcc\bc_\b_c\bcl\ble\bea\bar\br
35437 +  6\b6.\b.3\b3.\b.5\b50\b0.\b.  f\bfc\bcc\bc_\b_c\bcl\ble\bea\bar\br
35438  
35439    Type: boolean
35440    Default: no
35441 @@ -3844,7 +3911,7 @@
35442    When this variable is _\bs_\be_\bt, FCCs will be stored unencrypted and
35443    unsigned, even when the actual message is encrypted and/or signed.
35444  
35445 -  6\b6.\b.3\b3.\b.4\b48\b8.\b.  f\bfo\bol\bld\bde\ber\br
35446 +  6\b6.\b.3\b3.\b.5\b51\b1.\b.  f\bfo\bol\bld\bde\ber\br
35447  
35448    Type: path
35449    Default: "~/Mail"
35450 @@ -3856,7 +3923,7 @@
35451    `+' or `=' for any other variables since expansion takes place during
35452    the `set' command.
35453  
35454 -  6\b6.\b.3\b3.\b.4\b49\b9.\b.  f\bfo\bol\bld\bde\ber\br_\b_f\bfo\bor\brm\bma\bat\bt
35455 +  6\b6.\b.3\b3.\b.5\b52\b2.\b.  f\bfo\bol\bld\bde\ber\br_\b_f\bfo\bor\brm\bma\bat\bt
35456  
35457    Type: string
35458    Default: "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f"
35459 @@ -3891,7 +3958,7 @@
35460       %\b%|\b|X\bX
35461          pad to the end of the line with character "X"
35462  
35463 -  6\b6.\b.3\b3.\b.5\b50\b0.\b.  f\bfo\bol\bll\blo\bow\bwu\bup\bp_\b_t\bto\bo
35464 +  6\b6.\b.3\b3.\b.5\b53\b3.\b.  f\bfo\bol\bll\blo\bow\bwu\bup\bp_\b_t\bto\bo
35465  
35466    Type: boolean
35467    Default: yes
35468 @@ -3911,7 +3978,16 @@
35469    subscribed list will be sent to both the list and your address,
35470    resulting in two copies of the same email for you.
35471  
35472 -  6\b6.\b.3\b3.\b.5\b51\b1.\b.  f\bfo\bor\brc\bce\be_\b_n\bna\bam\bme\be
35473 +  6\b6.\b.3\b3.\b.5\b54\b4.\b.  f\bfo\bol\bll\blo\bow\bwu\bup\bp_\b_t\bto\bo_\b_p\bpo\bos\bst\bte\ber\br
35474 +
35475 +  Type: quadoption
35476 +  Default: ask-yes
35477 +
35478 +  If this variable is _\bs_\be_\bt and the keyword "poster" is present in
35479 +  _\bF_\bo_\bl_\bl_\bo_\bw_\bu_\bp_\b-_\bT_\bo header, follow-up to newsgroup function is not permitted.
35480 +  The message will be mailed to the submitter of the message via mail.
35481 +
35482 +  6\b6.\b.3\b3.\b.5\b55\b5.\b.  f\bfo\bor\brc\bce\be_\b_n\bna\bam\bme\be
35483  
35484    Type: boolean
35485    Default: no
35486 @@ -3922,7 +3998,7 @@
35487  
35488    Also see the ````$record'''' variable.
35489  
35490 -  6\b6.\b.3\b3.\b.5\b52\b2.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bco\bod\bde\be
35491 +  6\b6.\b.3\b3.\b.5\b56\b6.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bco\bod\bde\be
35492  
35493    Type: boolean
35494    Default: yes
35495 @@ -3932,7 +4008,7 @@
35496    This variable is only used, if ````$mime_forward'''' is _\bu_\bn_\bs_\be_\bt,
35497    otherwise ````$mime_forward_decode'''' is used instead.
35498  
35499 -  6\b6.\b.3\b3.\b.5\b53\b3.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_f\bfo\bor\brm\bma\bat\bt
35500 +  6\b6.\b.3\b3.\b.5\b57\b7.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_f\bfo\bor\brm\bma\bat\bt
35501  
35502    Type: string
35503    Default: "[%a: %s]"
35504 @@ -3941,15 +4017,16 @@
35505    It uses the same format sequences as the ````$index_format''''
35506    variable.
35507  
35508 -  6\b6.\b.3\b3.\b.5\b54\b4.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_q\bqu\buo\bot\bte\be
35509 +  6\b6.\b.3\b3.\b.5\b58\b8.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_q\bqu\buo\bot\bte\be
35510  
35511    Type: boolean
35512    Default: no
35513 +
35514    When _\bs_\be_\bt forwarded messages included in the main body of the message
35515    (when ````$mime_forward'''' is _\bu_\bn_\bs_\be_\bt) will be quoted using
35516    ````$indent_string''''.
35517  
35518 -  6\b6.\b.3\b3.\b.5\b55\b5.\b.  f\bfr\bro\bom\bm
35519 +  6\b6.\b.3\b3.\b.5\b59\b9.\b.  f\bfr\bro\bom\bm
35520  
35521    Type: e-mail address
35522    Default: ""
35523 @@ -3960,7 +4037,7 @@
35524  
35525    Defaults to the EMAIL environment variable's content.
35526  
35527 -  6\b6.\b.3\b3.\b.5\b56\b6.\b.  g\bge\bec\bco\bos\bs_\b_m\bma\bas\bsk\bk
35528 +  6\b6.\b.3\b3.\b.6\b60\b0.\b.  g\bge\bec\bco\bos\bs_\b_m\bma\bas\bsk\bk
35529  
35530    Type: regular expression
35531    Default: "^[^,]*"
35532 @@ -3977,7 +4054,26 @@
35533    gecos_mask to a regular expression that will match the whole name so
35534    mutt will expand "Franklin" to "Franklin, Steve".
35535  
35536 -  6\b6.\b.3\b3.\b.5\b57\b7.\b.  h\bhd\bdr\brs\bs
35537 +  6\b6.\b.3\b3.\b.6\b61\b1.\b.  g\bgr\bro\bou\bup\bp_\b_i\bin\bnd\bde\bex\bx_\b_f\bfo\bor\brm\bma\bat\bt
35538 +
35539 +  Type: string
35540 +  Default: "%4C %M%N %5s  %-45.45f %d"
35541 +
35542 +  This variable allows you to customize the newsgroup browser display to
35543 +  your personal taste.  This string is similar to ````index_format'''',
35544 +  but has its own set of printf()-like sequences:
35545 +
35546 +       %C      current newsgroup number
35547 +       %d      description of newsgroup (becomes from server)
35548 +       %f      newsgroup name
35549 +       %M      - if newsgroup not allowed for direct post (moderated for example)
35550 +       %N      N if newsgroup is new, u if unsubscribed, blank otherwise
35551 +       %n      number of new articles in newsgroup
35552 +       %s      number of unread articles in newsgroup
35553 +       %>X     right justify the rest of the string and pad with character "X"
35554 +       %|X     pad to the end of the line with character "X"
35555 +
35556 +  6\b6.\b.3\b3.\b.6\b62\b2.\b.  h\bhd\bdr\brs\bs
35557  
35558    Type: boolean
35559    Default: yes
35560 @@ -3987,7 +4083,7 @@
35561    a new message or replying in order to take effect.  If set, the user
35562    defined header fields are added to every new message.
35563  
35564 -  6\b6.\b.3\b3.\b.5\b58\b8.\b.  h\bhe\bea\bad\bde\ber\br
35565 +  6\b6.\b.3\b3.\b.6\b63\b3.\b.  h\bhe\bea\bad\bde\ber\br
35566  
35567    Type: boolean
35568    Default: no
35569 @@ -3996,7 +4092,7 @@
35570    message you are replying to into the edit buffer.  The ````$weed''''
35571    setting applies.
35572  
35573 -  6\b6.\b.3\b3.\b.5\b59\b9.\b.  h\bhe\bel\blp\bp
35574 +  6\b6.\b.3\b3.\b.6\b64\b4.\b.  h\bhe\bel\blp\bp
35575  
35576    Type: boolean
35577    Default: yes
35578 @@ -4010,7 +4106,7 @@
35579    Since this variable is primarily aimed at new users, neither of these
35580    should present a major problem.
35581  
35582 -  6\b6.\b.3\b3.\b.6\b60\b0.\b.  h\bhi\bid\bdd\bde\ben\bn_\b_h\bho\bos\bst\bt
35583 +  6\b6.\b.3\b3.\b.6\b65\b5.\b.  h\bhi\bid\bdd\bde\ben\bn_\b_h\bho\bos\bst\bt
35584  
35585    Type: boolean
35586    Default: no
35587 @@ -4020,7 +4116,7 @@
35588    not affect the generation of Message-IDs, and it will not lead to the
35589    cut-off of first-level domains.
35590  
35591 -  6\b6.\b.3\b3.\b.6\b61\b1.\b.  h\bhi\bid\bde\be_\b_l\bli\bim\bmi\bit\bte\bed\bd
35592 +  6\b6.\b.3\b3.\b.6\b66\b6.\b.  h\bhi\bid\bde\be_\b_l\bli\bim\bmi\bit\bte\bed\bd
35593  
35594    Type: boolean
35595    Default: no
35596 @@ -4028,7 +4124,7 @@
35597    When set, mutt will not show the presence of missing messages in the
35598    thread tree.
35599  
35600 -  6\b6.\b.3\b3.\b.6\b62\b2.\b.  h\bhi\bid\bde\be_\b_m\bmi\bis\bss\bsi\bin\bng\bg
35601 +  6\b6.\b.3\b3.\b.6\b67\b7.\b.  h\bhi\bid\bde\be_\b_m\bmi\bis\bss\bsi\bin\bng\bg
35602  
35603    Type: boolean
35604    Default: yes
35605 @@ -4036,7 +4132,7 @@
35606    When set, mutt will not show the presence of messages that are hidden
35607    by limiting, in the thread tree.
35608  
35609 -  6\b6.\b.3\b3.\b.6\b63\b3.\b.  h\bhi\bid\bde\be_\b_t\bto\bop\bp_\b_l\bli\bim\bmi\bit\bte\bed\bd
35610 +  6\b6.\b.3\b3.\b.6\b68\b8.\b.  h\bhi\bid\bde\be_\b_t\bto\bop\bp_\b_l\bli\bim\bmi\bit\bte\bed\bd
35611  
35612    Type: boolean
35613    Default: no
35614 @@ -4045,7 +4141,7 @@
35615    top of threads in the thread tree.  Note that when ``$hide_limited''
35616    is set, this option will have no effect.
35617  
35618 -  6\b6.\b.3\b3.\b.6\b64\b4.\b.  h\bhi\bid\bde\be_\b_t\bto\bop\bp_\b_m\bmi\bis\bss\bsi\bin\bng\bg
35619 +  6\b6.\b.3\b3.\b.6\b69\b9.\b.  h\bhi\bid\bde\be_\b_t\bto\bop\bp_\b_m\bmi\bis\bss\bsi\bin\bng\bg
35620  
35621    Type: boolean
35622    Default: yes
35623 @@ -4054,7 +4150,7 @@
35624    by limiting, at the top of threads in the thread tree.Note that when
35625    ``$hide_missing'' is set, this option will have no effect.
35626  
35627 -  6\b6.\b.3\b3.\b.6\b65\b5.\b.  h\bhi\bis\bst\bto\bor\bry\by
35628 +  6\b6.\b.3\b3.\b.7\b70\b0.\b.  h\bhi\bis\bst\bto\bor\bry\by
35629  
35630    Type: number
35631    Default: 10
35632 @@ -4063,7 +4159,7 @@
35633    the string history buffer. The buffer is cleared each time the
35634    variable is set.
35635  
35636 -  6\b6.\b.3\b3.\b.6\b66\b6.\b.  h\bho\bon\bno\bor\br_\b_f\bfo\bol\bll\blo\bow\bwu\bup\bp_\b_t\bto\bo
35637 +  6\b6.\b.3\b3.\b.7\b71\b1.\b.  h\bho\bon\bno\bor\br_\b_f\bfo\bol\bll\blo\bow\bwu\bup\bp_\b_t\bto\bo
35638  
35639    Type: quadoption
35640    Default: yes
35641 @@ -4071,7 +4167,7 @@
35642    This variable controls whether or not a Mail-Followup-To header is
35643    honored when group-replying to a message.
35644  
35645 -  6\b6.\b.3\b3.\b.6\b67\b7.\b.  h\bho\bos\bst\btn\bna\bam\bme\be
35646 +  6\b6.\b.3\b3.\b.7\b72\b2.\b.  h\bho\bos\bst\btn\bna\bam\bme\be
35647  
35648    Type: string
35649    Default: ""
35650 @@ -4080,7 +4176,7 @@
35651    addresses.  This overrides the compile time definition obtained from
35652    /etc/resolv.conf.
35653  
35654 -  6\b6.\b.3\b3.\b.6\b68\b8.\b.  i\big\bgn\bno\bor\bre\be_\b_l\bli\bis\bst\bt_\b_r\bre\bep\bpl\bly\by_\b_t\bto\bo
35655 +  6\b6.\b.3\b3.\b.7\b73\b3.\b.  i\big\bgn\bno\bor\bre\be_\b_l\bli\bis\bst\bt_\b_r\bre\bep\bpl\bly\by_\b_t\bto\bo
35656  
35657    Type: boolean
35658    Default: no
35659 @@ -4093,7 +4189,7 @@
35660    list when this option is set, use the _\bl_\bi_\bs_\bt_\b-_\br_\be_\bp_\bl_\by function; _\bg_\br_\bo_\bu_\bp_\b-_\br_\be_\bp_\bl_\by
35661    will reply to both the sender and the list.
35662  
35663 -  6\b6.\b.3\b3.\b.6\b69\b9.\b.  i\bim\bma\bap\bp_\b_a\bau\but\bth\bhe\ben\bnt\bti\bic\bca\bat\bto\bor\brs\bs
35664 +  6\b6.\b.3\b3.\b.7\b74\b4.\b.  i\bim\bma\bap\bp_\b_a\bau\but\bth\bhe\ben\bnt\bti\bic\bca\bat\bto\bor\brs\bs
35665  
35666    Type: string
35667    Default: ""
35668 @@ -4111,7 +4207,7 @@
35669    previous methods are unavailable. If a method is available but
35670    authentication fails, mutt will not connect to the IMAP server.
35671  
35672 -  6\b6.\b.3\b3.\b.7\b70\b0.\b.  i\bim\bma\bap\bp_\b_d\bde\bel\bli\bim\bm_\b_c\bch\bha\bar\brs\bs
35673 +  6\b6.\b.3\b3.\b.7\b75\b5.\b.  i\bim\bma\bap\bp_\b_d\bde\bel\bli\bim\bm_\b_c\bch\bha\bar\brs\bs
35674  
35675    Type: string
35676    Default: "/."
35677 @@ -4120,7 +4216,7 @@
35678    folder separators for displaying IMAP paths. In particular it helps in
35679    using the '=' shortcut for your _\bf_\bo_\bl_\bd_\be_\br variable.
35680  
35681 -  6\b6.\b.3\b3.\b.7\b71\b1.\b.  i\bim\bma\bap\bp_\b_f\bfo\bor\brc\bce\be_\b_s\bss\bsl\bl
35682 +  6\b6.\b.3\b3.\b.7\b76\b6.\b.  i\bim\bma\bap\bp_\b_f\bfo\bor\brc\bce\be_\b_s\bss\bsl\bl
35683  
35684    Type: boolean
35685    Default: no
35686 @@ -4128,7 +4224,7 @@
35687    If this variable is set, Mutt will always use SSL when connecting to
35688    IMAP servers.
35689  
35690 -  6\b6.\b.3\b3.\b.7\b72\b2.\b.  i\bim\bma\bap\bp_\b_h\bho\bom\bme\be_\b_n\bna\bam\bme\bes\bsp\bpa\bac\bce\be
35691 +  6\b6.\b.3\b3.\b.7\b77\b7.\b.  i\bim\bma\bap\bp_\b_h\bho\bom\bme\be_\b_n\bna\bam\bme\bes\bsp\bpa\bac\bce\be
35692  
35693    Type: string
35694    Default: ""
35695 @@ -4137,7 +4233,7 @@
35696    the IMAP browser. If you see something else, you may set this variable
35697    to the IMAP path to your folders.
35698  
35699 -  6\b6.\b.3\b3.\b.7\b73\b3.\b.  i\bim\bma\bap\bp_\b_k\bke\bee\bep\bpa\bal\bli\biv\bve\be
35700 +  6\b6.\b.3\b3.\b.7\b78\b8.\b.  i\bim\bma\bap\bp_\b_k\bke\bee\bep\bpa\bal\bli\biv\bve\be
35701  
35702    Type: number
35703    Default: 900
35704 @@ -4151,7 +4247,7 @@
35705    find yourself getting disconnected from your IMAP server due to
35706    inactivity.
35707  
35708 -  6\b6.\b.3\b3.\b.7\b74\b4.\b.  i\bim\bma\bap\bp_\b_l\bli\bis\bst\bt_\b_s\bsu\bub\bbs\bsc\bcr\bri\bib\bbe\bed\bd
35709 +  6\b6.\b.3\b3.\b.7\b79\b9.\b.  i\bim\bma\bap\bp_\b_l\bli\bis\bst\bt_\b_s\bsu\bub\bbs\bsc\bcr\bri\bib\bbe\bed\bd
35710  
35711    Type: boolean
35712    Default: no
35713 @@ -4160,7 +4256,7 @@
35714    only subscribed folders or all folders.  This can be toggled in the
35715    IMAP browser with the _\bt_\bo_\bg_\bg_\bl_\be_\b-_\bs_\bu_\bb_\bs_\bc_\br_\bi_\bb_\be_\bd command.
35716  
35717 -  6\b6.\b.3\b3.\b.7\b75\b5.\b.  i\bim\bma\bap\bp_\b_p\bpa\bas\bss\bs
35718 +  6\b6.\b.3\b3.\b.8\b80\b0.\b.  i\bim\bma\bap\bp_\b_p\bpa\bas\bss\bs
35719  
35720    Type: string
35721    Default: ""
35722 @@ -4171,7 +4267,7 @@
35723    secure machine, because the superuser can read your muttrc even if you
35724    are the only one who can read the file.
35725  
35726 -  6\b6.\b.3\b3.\b.7\b76\b6.\b.  i\bim\bma\bap\bp_\b_p\bpa\bas\bss\bsi\biv\bve\be
35727 +  6\b6.\b.3\b3.\b.8\b81\b1.\b.  i\bim\bma\bap\bp_\b_p\bpa\bas\bss\bsi\biv\bve\be
35728  
35729    Type: boolean
35730    Default: yes
35731 @@ -4182,7 +4278,7 @@
35732    user/password pairs on mutt invocation, or if opening the connection
35733    is slow.
35734  
35735 -  6\b6.\b.3\b3.\b.7\b77\b7.\b.  i\bim\bma\bap\bp_\b_p\bpe\bee\bek\bk
35736 +  6\b6.\b.3\b3.\b.8\b82\b2.\b.  i\bim\bma\bap\bp_\b_p\bpe\bee\bek\bk
35737  
35738    Type: boolean
35739    Default: yes
35740 @@ -4192,7 +4288,7 @@
35741    but can make closing an IMAP folder somewhat slower. This option
35742    exists to appease spead freaks.
35743  
35744 -  6\b6.\b.3\b3.\b.7\b78\b8.\b.  i\bim\bma\bap\bp_\b_s\bse\ber\brv\bve\ber\brn\bno\boi\bis\bse\be
35745 +  6\b6.\b.3\b3.\b.8\b83\b3.\b.  i\bim\bma\bap\bp_\b_s\bse\ber\brv\bve\ber\brn\bno\boi\bis\bse\be
35746  
35747    Type: boolean
35748    Default: yes
35749 @@ -4202,7 +4298,7 @@
35750    due to configuration problems on the server which are out of the
35751    users' hands, you may wish to suppress them at some point.
35752  
35753 -  6\b6.\b.3\b3.\b.7\b79\b9.\b.  i\bim\bma\bap\bp_\b_u\bus\bse\ber\br
35754 +  6\b6.\b.3\b3.\b.8\b84\b4.\b.  i\bim\bma\bap\bp_\b_u\bus\bse\ber\br
35755  
35756    Type: string
35757    Default: ""
35758 @@ -4211,7 +4307,7 @@
35759  
35760    This variable defaults to your user name on the local machine.
35761  
35762 -  6\b6.\b.3\b3.\b.8\b80\b0.\b.  i\bim\bmp\bpl\bli\bic\bci\bit\bt_\b_a\bau\but\bto\bov\bvi\bie\bew\bw
35763 +  6\b6.\b.3\b3.\b.8\b85\b5.\b.  i\bim\bmp\bpl\bli\bic\bci\bit\bt_\b_a\bau\but\bto\bov\bvi\bie\bew\bw
35764  
35765    Type: boolean
35766    Default: no
35767 @@ -4222,7 +4318,7 @@
35768    the viewer defined in that entry to convert the body part to text
35769    form.
35770  
35771 -  6\b6.\b.3\b3.\b.8\b81\b1.\b.  i\bin\bnc\bcl\blu\bud\bde\be
35772 +  6\b6.\b.3\b3.\b.8\b86\b6.\b.  i\bin\bnc\bcl\blu\bud\bde\be
35773  
35774    Type: quadoption
35775    Default: ask-yes
35776 @@ -4230,7 +4326,7 @@
35777    Controls whether or not a copy of the message(s) you are replying to
35778    is included in your reply.
35779  
35780 -  6\b6.\b.3\b3.\b.8\b82\b2.\b.  i\bin\bnd\bde\ben\bnt\bt_\b_s\bst\btr\bri\bin\bng\bg
35781 +  6\b6.\b.3\b3.\b.8\b87\b7.\b.  i\bin\bnd\bde\ben\bnt\bt_\b_s\bst\btr\bri\bin\bng\bg
35782  
35783    Type: string
35784    Default: "> "
35785 @@ -4239,7 +4335,7 @@
35786    message to which you are replying.  You are strongly encouraged not to
35787    change this value, as it tends to agitate the more fanatical netizens.
35788  
35789 -  6\b6.\b.3\b3.\b.8\b83\b3.\b.  i\bin\bnd\bde\bex\bx_\b_f\bfo\bor\brm\bma\bat\bt
35790 +  6\b6.\b.3\b3.\b.8\b88\b8.\b.  i\bin\bnd\bde\bex\bx_\b_f\bfo\bor\brm\bma\bat\bt
35791  
35792    Type: string
35793    Default: "%4C %Z %{%b %d} %-15.15L (%4l) %s"
35794 @@ -4276,6 +4372,8 @@
35795  
35796       %\b%F\bF author name, or recipient name if the message is from you
35797  
35798 +     %\b%g\bg newsgroup name (if compiled with nntp support)
35799 +
35800       %\b%i\bi message-id of the current message
35801  
35802       %\b%l\bl number of lines in the message
35803 @@ -4308,6 +4406,8 @@
35804       %\b%v\bv first name of the author, or the recipient if the message is
35805          from you
35806  
35807 +     %\b%W\bW name of organization of author (`organization:' field)
35808 +
35809       %\b%y\by `x-label:' field, if present
35810  
35811       %\b%Y\bY `x-label' field, if present, and (1) not at part of a thread
35812 @@ -4343,14 +4443,28 @@
35813  
35814    See also: ````$to_chars''''.
35815  
35816 -  6\b6.\b.3\b3.\b.8\b84\b4.\b.  i\bis\bsp\bpe\bel\bll\bl
35817 +  6\b6.\b.3\b3.\b.8\b89\b9.\b.  i\bin\bne\bew\bws\bs
35818 +
35819 +  Type: path
35820 +  Default: ""
35821 +
35822 +  If set, specifies the program and arguments used to deliver news
35823 +  posted by Mutt.  Otherwise, mutt posts article using current
35824 +  connection to news server.  The following printf-style sequence is
35825 +  understood:
35826 +
35827 +       %s      newsserver name
35828 +
35829 +  Example: set inews="/usr/local/bin/inews -hS"
35830 +
35831 +  6\b6.\b.3\b3.\b.9\b90\b0.\b.  i\bis\bsp\bpe\bel\bll\bl
35832  
35833    Type: path
35834    Default: "/usr/bin/ispell"
35835  
35836    How to invoke ispell (GNU's spell-checking software).
35837  
35838 -  6\b6.\b.3\b3.\b.8\b85\b5.\b.  k\bke\bee\bep\bp_\b_f\bfl\bla\bag\bgg\bge\bed\bd
35839 +  6\b6.\b.3\b3.\b.9\b91\b1.\b.  k\bke\bee\bep\bp_\b_f\bfl\bla\bag\bgg\bge\bed\bd
35840  
35841    Type: boolean
35842    Default: no
35843 @@ -4359,14 +4473,15 @@
35844    spool mailbox to your ````$mbox'''' mailbox, or as a result of a
35845    ````mbox-hook'''' command.
35846  
35847 -  6\b6.\b.3\b3.\b.8\b86\b6.\b.  l\blo\boc\bca\bal\ble\be
35848 +  6\b6.\b.3\b3.\b.9\b92\b2.\b.  l\blo\boc\bca\bal\ble\be
35849  
35850    Type: string
35851    Default: "C"
35852  
35853    The locale used by _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be_\b(_\b3_\b) to format dates. Legal values are the
35854    strings your system accepts for the locale variable _\bL_\bC_\b__\bT_\bI_\bM_\bE.
35855 -  6\b6.\b.3\b3.\b.8\b87\b7.\b.  m\bma\bai\bil\bl_\b_c\bch\bhe\bec\bck\bk
35856 +
35857 +  6\b6.\b.3\b3.\b.9\b93\b3.\b.  m\bma\bai\bil\bl_\b_c\bch\bhe\bec\bck\bk
35858  
35859    Type: number
35860    Default: 5
35861 @@ -4374,7 +4489,7 @@
35862    This variable configures how often (in seconds) mutt should look for
35863    new mail.
35864  
35865 -  6\b6.\b.3\b3.\b.8\b88\b8.\b.  m\bma\bai\bil\blc\bca\bap\bp_\b_p\bpa\bat\bth\bh
35866 +  6\b6.\b.3\b3.\b.9\b94\b4.\b.  m\bma\bai\bil\blc\bca\bap\bp_\b_p\bpa\bat\bth\bh
35867  
35868    Type: string
35869    Default: ""
35870 @@ -4382,7 +4497,7 @@
35871    This variable specifies which files to consult when attempting to
35872    display MIME bodies not directly supported by Mutt.
35873  
35874 -  6\b6.\b.3\b3.\b.8\b89\b9.\b.  m\bma\bai\bil\blc\bca\bap\bp_\b_s\bsa\ban\bni\bit\bti\biz\bze\be
35875 +  6\b6.\b.3\b3.\b.9\b95\b5.\b.  m\bma\bai\bil\blc\bca\bap\bp_\b_s\bsa\ban\bni\bit\bti\biz\bze\be
35876  
35877    Type: boolean
35878    Default: yes
35879 @@ -4394,7 +4509,7 @@
35880    D\bDO\bON\bN'\b'T\bT C\bCH\bHA\bAN\bNG\bGE\bE T\bTH\bHI\bIS\bS S\bSE\bET\bTT\bTI\bIN\bNG\bG U\bUN\bNL\bLE\bES\bSS\bS Y\bYO\bOU\bU A\bAR\bRE\bE R\bRE\bEA\bAL\bLL\bLY\bY S\bSU\bUR\bRE\bE W\bWH\bHA\bAT\bT Y\bYO\bOU\bU A\bAR\bRE\bE
35881    D\bDO\bOI\bIN\bNG\bG!\b!
35882  
35883 -  6\b6.\b.3\b3.\b.9\b90\b0.\b.  m\bma\bai\bil\bld\bdi\bir\br_\b_t\btr\bra\bas\bsh\bh
35884 +  6\b6.\b.3\b3.\b.9\b96\b6.\b.  m\bma\bai\bil\bld\bdi\bir\br_\b_t\btr\bra\bas\bsh\bh
35885  
35886    Type: boolean
35887    Default: no
35888 @@ -4404,7 +4519,7 @@
35889    maildir-style mailboxes.  Setting it will have no effect on other
35890    mailbox types.
35891  
35892 -  6\b6.\b.3\b3.\b.9\b91\b1.\b.  m\bma\bar\brk\bk_\b_o\bol\bld\bd
35893 +  6\b6.\b.3\b3.\b.9\b97\b7.\b.  m\bma\bar\brk\bk_\b_o\bol\bld\bd
35894  
35895    Type: boolean
35896    Default: yes
35897 @@ -4417,7 +4532,7 @@
35898    make Mutt treat all unread messages as new only, you can unset this
35899    variable.
35900  
35901 -  6\b6.\b.3\b3.\b.9\b92\b2.\b.  m\bma\bar\brk\bke\ber\brs\bs
35902 +  6\b6.\b.3\b3.\b.9\b98\b8.\b.  m\bma\bar\brk\bke\ber\brs\bs
35903  
35904    Type: boolean
35905    Default: yes
35906 @@ -4426,7 +4541,7 @@
35907    ``+'' marker is displayed at the beginning of wrapped lines. Also see
35908    the ````$smart_wrap'''' variable.
35909  
35910 -  6\b6.\b.3\b3.\b.9\b93\b3.\b.  m\bma\bas\bsk\bk
35911 +  6\b6.\b.3\b3.\b.9\b99\b9.\b.  m\bma\bas\bsk\bk
35912  
35913    Type: regular expression
35914    Default: "!^\.[^.]"
35915 @@ -4435,15 +4550,14 @@
35916    the _\bn_\bo_\bt operator ``!''.  Only files whose names match this mask will
35917    be shown. The match is always case-sensitive.
35918  
35919 -  6\b6.\b.3\b3.\b.9\b94\b4.\b.  m\bmb\bbo\box\bx
35920 +  6\b6.\b.3\b3.\b.1\b10\b00\b0.\b.  m\bmb\bbo\box\bx
35921  
35922    Type: path
35923    Default: "~/mbox"
35924  
35925    This specifies the folder into which read mail in your
35926    ````$spoolfile'''' folder will be appended.
35927 -
35928 -  6\b6.\b.3\b3.\b.9\b95\b5.\b.  m\bmb\bbo\box\bx_\b_t\bty\byp\bpe\be
35929 +  6\b6.\b.3\b3.\b.1\b10\b01\b1.\b.  m\bmb\bbo\box\bx_\b_t\bty\byp\bpe\be
35930  
35931    Type: folder magic
35932    Default: mbox
35933 @@ -4451,7 +4565,7 @@
35934    The default mailbox type used when creating new folders. May be any of
35935    mbox, MMDF, MH and Maildir.
35936  
35937 -  6\b6.\b.3\b3.\b.9\b96\b6.\b.  m\bme\bet\bto\boo\bo
35938 +  6\b6.\b.3\b3.\b.1\b10\b02\b2.\b.  m\bme\bet\bto\boo\bo
35939  
35940    Type: boolean
35941    Default: no
35942 @@ -4459,7 +4573,7 @@
35943    If unset, Mutt will remove your address from the list of recipients
35944    when replying to a message.
35945  
35946 -  6\b6.\b.3\b3.\b.9\b97\b7.\b.  m\bme\ben\bnu\bu_\b_s\bsc\bcr\bro\bol\bll\bl
35947 +  6\b6.\b.3\b3.\b.1\b10\b03\b3.\b.  m\bme\ben\bnu\bu_\b_s\bsc\bcr\bro\bol\bll\bl
35948  
35949    Type: boolean
35950    Default: no
35951 @@ -4469,7 +4583,7 @@
35952    the next or previous page of the menu is displayed (useful for slow
35953    links to avoid many redraws).
35954  
35955 -  6\b6.\b.3\b3.\b.9\b98\b8.\b.  m\bme\bet\bta\ba_\b_k\bke\bey\by
35956 +  6\b6.\b.3\b3.\b.1\b10\b04\b4.\b.  m\bme\bet\bta\ba_\b_k\bke\bey\by
35957  
35958    Type: boolean
35959    Default: no
35960 @@ -4482,7 +4596,7 @@
35961    high bit from ``0xf4'' is ``0x74'', which is the ASCII character
35962    ``x''.
35963  
35964 -  6\b6.\b.3\b3.\b.9\b99\b9.\b.  m\bmh\bh_\b_p\bpu\bur\brg\bge\be
35965 +  6\b6.\b.3\b3.\b.1\b10\b05\b5.\b.  m\bmh\bh_\b_p\bpu\bur\brg\bge\be
35966  
35967    Type: boolean
35968    Default: no
35969 @@ -4491,31 +4605,32 @@
35970    to _\b,_\b<_\bo_\bl_\bd _\bf_\bi_\bl_\be _\bn_\ba_\bm_\be_\b> in mh folders instead of really deleting them.  If
35971    the variable is set, the message files will simply be deleted.
35972  
35973 -  6\b6.\b.3\b3.\b.1\b10\b00\b0.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_f\bfl\bla\bag\bgg\bge\bed\bd
35974 +  6\b6.\b.3\b3.\b.1\b10\b06\b6.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_f\bfl\bla\bag\bgg\bge\bed\bd
35975  
35976    Type: string
35977    Default: "flagged"
35978  
35979    The name of the MH sequence used for flagged messages.
35980  
35981 -  6\b6.\b.3\b3.\b.1\b10\b01\b1.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_r\bre\bep\bpl\bli\bie\bed\bd
35982 +  6\b6.\b.3\b3.\b.1\b10\b07\b7.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_r\bre\bep\bpl\bli\bie\bed\bd
35983  
35984    Type: string
35985    Default: "replied"
35986  
35987    The name of the MH sequence used to tag replied messages.
35988  
35989 -  6\b6.\b.3\b3.\b.1\b10\b02\b2.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_u\bun\bns\bse\bee\ben\bn
35990 +  6\b6.\b.3\b3.\b.1\b10\b08\b8.\b.  m\bmh\bh_\b_s\bse\beq\bq_\b_u\bun\bns\bse\bee\ben\bn
35991  
35992    Type: string
35993    Default: "unseen"
35994  
35995    The name of the MH sequence used for unseen messages.
35996  
35997 -  6\b6.\b.3\b3.\b.1\b10\b03\b3.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd
35998 +  6\b6.\b.3\b3.\b.1\b10\b09\b9.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd
35999  
36000    Type: quadoption
36001    Default: no
36002 +
36003    When set, the message you are forwarding will be attached as a
36004    separate MIME part instead of included in the main body of the
36005    message.  This is useful for forwarding MIME messages so the receiver
36006 @@ -4525,7 +4640,7 @@
36007  
36008    Also see ````$forward_decode'''' and ````$mime_forward_decode''''.
36009  
36010 -  6\b6.\b.3\b3.\b.1\b10\b04\b4.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bco\bod\bde\be
36011 +  6\b6.\b.3\b3.\b.1\b11\b10\b0.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bco\bod\bde\be
36012  
36013    Type: boolean
36014    Default: no
36015 @@ -4534,7 +4649,7 @@
36016    forwarding a message while ````$mime_forward'''' is _\bs_\be_\bt. Otherwise
36017    ````$forward_decode'''' is used instead.
36018  
36019 -  6\b6.\b.3\b3.\b.1\b10\b05\b5.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd_\b_r\bre\bes\bst\bt
36020 +  6\b6.\b.3\b3.\b.1\b11\b11\b1.\b.  m\bmi\bim\bme\be_\b_f\bfo\bor\brw\bwa\bar\brd\bd_\b_r\bre\bes\bst\bt
36021  
36022    Type: quadoption
36023    Default: yes
36024 @@ -4544,7 +4659,16 @@
36025    manner will be attached to the newly composed message if this option
36026    is set.
36027  
36028 -  6\b6.\b.3\b3.\b.1\b10\b06\b6.\b.  m\bmi\bix\bx_\b_e\ben\bnt\btr\bry\by_\b_f\bfo\bor\brm\bma\bat\bt
36029 +  6\b6.\b.3\b3.\b.1\b11\b12\b2.\b.  m\bmi\bim\bme\be_\b_s\bsu\bub\bbj\bje\bec\bct\bt
36030 +
36031 +  Type: boolean
36032 +  Default: yes
36033 +
36034 +  If _\bu_\bn_\bs_\be_\bt, 8-bit ``subject:'' line in article header will not be
36035 +  encoded according to RFC2047 to base64.  This is useful when message
36036 +  is Usenet article, because MIME for news is nonstandard feature.
36037 +
36038 +  6\b6.\b.3\b3.\b.1\b11\b13\b3.\b.  m\bmi\bix\bx_\b_e\ben\bnt\btr\bry\by_\b_f\bfo\bor\brm\bma\bat\bt
36039  
36040    Type: string
36041    Default: "%4n %c %-16s %a"
36042 @@ -4561,7 +4685,7 @@
36043  
36044       %\b%a\ba The remailer's e-mail address.
36045  
36046 -  6\b6.\b.3\b3.\b.1\b10\b07\b7.\b.  m\bmi\bix\bxm\bma\bas\bst\bte\ber\br
36047 +  6\b6.\b.3\b3.\b.1\b11\b14\b4.\b.  m\bmi\bix\bxm\bma\bas\bst\bte\ber\br
36048  
36049    Type: path
36050    Default: "mixmaster"
36051 @@ -4571,7 +4695,7 @@
36052    of known remailers, and to finally send a message through the
36053    mixmaster chain.
36054  
36055 -  6\b6.\b.3\b3.\b.1\b10\b08\b8.\b.  m\bmo\bov\bve\be
36056 +  6\b6.\b.3\b3.\b.1\b11\b15\b5.\b.  m\bmo\bov\bve\be
36057  
36058    Type: quadoption
36059    Default: ask-no
36060 @@ -4580,7 +4704,7 @@
36061    from your spool mailbox to your ````$mbox'''' mailbox, or as a result
36062    of a ````mbox-hook'''' command.
36063  
36064 -  6\b6.\b.3\b3.\b.1\b10\b09\b9.\b.  m\bme\bes\bss\bsa\bag\bge\be_\b_f\bfo\bor\brm\bma\bat\bt
36065 +  6\b6.\b.3\b3.\b.1\b11\b16\b6.\b.  m\bme\bes\bss\bsa\bag\bge\be_\b_f\bfo\bor\brm\bma\bat\bt
36066  
36067    Type: string
36068    Default: "%s"
36069 @@ -4589,7 +4713,92 @@
36070    attachments of type message/rfc822.  For a full listing of defined
36071    escape sequences see the section on ````$index_format''''.
36072  
36073 -  6\b6.\b.3\b3.\b.1\b11\b10\b0.\b.  p\bpa\bag\bge\ber\br
36074 +  6\b6.\b.3\b3.\b.1\b11\b17\b7.\b.  n\bne\bew\bws\bs_\b_c\bca\bac\bch\bhe\be_\b_d\bdi\bir\br
36075 +
36076 +  Type: path
36077 +  Default: "~/.mutt"
36078 +
36079 +  This variable pointing to directory where Mutt will save cached news
36080 +  articles headers in. If _\bu_\bn_\bs_\be_\bt, headers will not be saved at all and
36081 +  will be reloaded each time when you enter to newsgroup.
36082 +
36083 +  6\b6.\b.3\b3.\b.1\b11\b18\b8.\b.  n\bne\bew\bws\bs_\b_s\bse\ber\brv\bve\ber\br
36084 +
36085 +  Type: string
36086 +  Default: ""
36087 +
36088 +  This variable specifies domain name or address of NNTP server. It
36089 +  defaults to the newsserver specified in the environment variable
36090 +  $NNTPSERVER or contained in the file /etc/nntpserver.  You can also
36091 +  specify username and an alternative port for each newsserver, ie:
36092 +
36093 +  [nntp[s]://][username[:password]@]newsserver[:port]
36094 +
36095 +  6\b6.\b.3\b3.\b.1\b11\b19\b9.\b.  n\bne\bew\bws\bsr\brc\bc
36096 +
36097 +  Type: path
36098 +  Default: "~/.newsrc"
36099 +
36100 +  The file, containing info about subscribed newsgroups - names and
36101 +  indexes of read articles.  The following printf-style sequence is
36102 +  understood:
36103 +
36104 +       %s      newsserver name
36105 +
36106 +  6\b6.\b.3\b3.\b.1\b12\b20\b0.\b.  n\bnn\bnt\btp\bp_\b_c\bco\bon\bnt\bte\bex\bxt\bt
36107 +
36108 +  Type: number
36109 +  Default: 1000
36110 +
36111 +  This variable defines number of articles which will be in index when
36112 +  newsgroup entered.  If active newsgroup have more articles than this
36113 +  number, oldest articles will be ignored.  Also controls how many
36114 +  articles headers will be saved in cache when you quit newsgroup.
36115 +
36116 +  6\b6.\b.3\b3.\b.1\b12\b21\b1.\b.  n\bnn\bnt\btp\bp_\b_l\blo\boa\bad\bd_\b_d\bde\bes\bsc\bcr\bri\bip\bpt\bti\bio\bon\bn
36117 +
36118 +  Type: boolean
36119 +  Default: yes
36120 +
36121 +  This variable controls whether or not descriptions for each newsgroup
36122 +  must be loaded when newsgroup is added to list (first time list
36123 +  loading or new newsgroup adding).
36124 +
36125 +  6\b6.\b.3\b3.\b.1\b12\b22\b2.\b.  n\bnn\bnt\btp\bp_\b_u\bus\bse\ber\br
36126 +
36127 +  Type: string
36128 +  Default: ""
36129 +
36130 +  Your login name on the NNTP server.  If _\bu_\bn_\bs_\be_\bt and NNTP server requires
36131 +  authentification, Mutt will prompt you for your account name when you
36132 +  connect to newsserver.
36133 +
36134 +  6\b6.\b.3\b3.\b.1\b12\b23\b3.\b.  n\bnn\bnt\btp\bp_\b_p\bpa\bas\bss\bs
36135 +
36136 +  Type: string
36137 +  Default: ""
36138 +
36139 +  Your password for NNTP account.
36140 +
36141 +  6\b6.\b.3\b3.\b.1\b12\b24\b4.\b.  n\bnn\bnt\btp\bp_\b_p\bpo\bol\bll\bl
36142 +
36143 +  Type: number
36144 +  Default: 60
36145 +
36146 +  The time in seconds until any operations on newsgroup except post new
36147 +  article will cause recheck for new news.  If set to 0, Mutt will
36148 +  recheck newsgroup on each operation in index (stepping, read article,
36149 +  etc.).
36150 +
36151 +  6\b6.\b.3\b3.\b.1\b12\b25\b5.\b.  n\bnn\bnt\btp\bp_\b_r\bre\bec\bco\bon\bnn\bne\bec\bct\bt
36152 +
36153 +  Type: quadoption
36154 +  Default: ask-yes
36155 +
36156 +  Controls whether or not Mutt will try to reconnect to newsserver when
36157 +  connection lost.
36158 +
36159 +  6\b6.\b.3\b3.\b.1\b12\b26\b6.\b.  p\bpa\bag\bge\ber\br
36160  
36161    Type: path
36162    Default: "builtin"
36163 @@ -4604,7 +4813,7 @@
36164    directly from the pager, and screen resizes cause lines longer than
36165    the screen width to be badly formatted in the help menu.
36166  
36167 -  6\b6.\b.3\b3.\b.1\b11\b11\b1.\b.  p\bpa\bag\bge\ber\br_\b_c\bco\bon\bnt\bte\bex\bxt\bt
36168 +  6\b6.\b.3\b3.\b.1\b12\b27\b7.\b.  p\bpa\bag\bge\ber\br_\b_c\bco\bon\bnt\bte\bex\bxt\bt
36169  
36170    Type: number
36171    Default: 0
36172 @@ -4614,7 +4823,7 @@
36173    default, Mutt will display the line after the last one on the screen
36174    at the top of the next page (0 lines of context).
36175  
36176 -  6\b6.\b.3\b3.\b.1\b11\b12\b2.\b.  p\bpa\bag\bge\ber\br_\b_f\bfo\bor\brm\bma\bat\bt
36177 +  6\b6.\b.3\b3.\b.1\b12\b28\b8.\b.  p\bpa\bag\bge\ber\br_\b_f\bfo\bor\brm\bma\bat\bt
36178  
36179    Type: string
36180    Default: "-%Z- %C/%m: %-20.20n   %s"
36181 @@ -4624,7 +4833,7 @@
36182    pager.  The valid sequences are listed in the ````$index_format''''
36183    section.
36184  
36185 -  6\b6.\b.3\b3.\b.1\b11\b13\b3.\b.  p\bpa\bag\bge\ber\br_\b_i\bin\bnd\bde\bex\bx_\b_l\bli\bin\bne\bes\bs
36186 +  6\b6.\b.3\b3.\b.1\b12\b29\b9.\b.  p\bpa\bag\bge\ber\br_\b_i\bin\bnd\bde\bex\bx_\b_l\bli\bin\bne\bes\bs
36187  
36188    Type: number
36189    Default: 0
36190 @@ -4641,7 +4850,7 @@
36191    less than _\bp_\ba_\bg_\be_\br_\b__\bi_\bn_\bd_\be_\bx_\b__\bl_\bi_\bn_\be_\bs, then the index will only use as many
36192    lines as it needs.
36193  
36194 -  6\b6.\b.3\b3.\b.1\b11\b14\b4.\b.  p\bpa\bag\bge\ber\br_\b_s\bst\bto\bop\bp
36195 +  6\b6.\b.3\b3.\b.1\b13\b30\b0.\b.  p\bpa\bag\bge\ber\br_\b_s\bst\bto\bop\bp
36196  
36197    Type: boolean
36198    Default: no
36199 @@ -4649,7 +4858,7 @@
36200    When set, the internal-pager will n\bno\bot\bt move to the next message when
36201    you are at the end of a message and invoke the _\bn_\be_\bx_\bt_\b-_\bp_\ba_\bg_\be function.
36202  
36203 -  6\b6.\b.3\b3.\b.1\b11\b15\b5.\b.  p\bpg\bgp\bp_\b_a\bau\but\bto\bos\bsi\big\bgn\bn
36204 +  6\b6.\b.3\b3.\b.1\b13\b31\b1.\b.  p\bpg\bgp\bp_\b_a\bau\but\bto\bos\bsi\big\bgn\bn
36205  
36206    Type: boolean
36207    Default: no
36208 @@ -4658,7 +4867,7 @@
36209    sign outgoing messages.  This can be overridden by use of the _\bp_\bg_\bp_\b-
36210    _\bm_\be_\bn_\bu, when signing is not required or encryption is requested as well.
36211  
36212 -  6\b6.\b.3\b3.\b.1\b11\b16\b6.\b.  p\bpg\bgp\bp_\b_a\bau\but\bto\boe\ben\bnc\bcr\bry\byp\bpt\bt
36213 +  6\b6.\b.3\b3.\b.1\b13\b32\b2.\b.  p\bpg\bgp\bp_\b_a\bau\but\bto\boe\ben\bnc\bcr\bry\byp\bpt\bt
36214  
36215    Type: boolean
36216    Default: no
36217 @@ -4668,7 +4877,7 @@
36218    to the _\bs_\be_\bn_\bd_\b-_\bh_\bo_\bo_\bk command.  It can be overridden by use of the _\bp_\bg_\bp_\b-
36219    _\bm_\be_\bn_\bu, when encryption is not required or signing is requested as well.
36220  
36221 -  6\b6.\b.3\b3.\b.1\b11\b17\b7.\b.  p\bpg\bgp\bp_\b_i\big\bgn\bno\bor\bre\be_\b_s\bsu\bub\bbk\bke\bey\bys\bs
36222 +  6\b6.\b.3\b3.\b.1\b13\b33\b3.\b.  p\bpg\bgp\bp_\b_i\big\bgn\bno\bor\bre\be_\b_s\bsu\bub\bbk\bke\bey\bys\bs
36223  
36224    Type: boolean
36225    Default: yes
36226 @@ -4677,7 +4886,7 @@
36227    Instead, the principal key will inherit the subkeys' capabilities.
36228    Unset this if you want to play interesting key selection games.
36229  
36230 -  6\b6.\b.3\b3.\b.1\b11\b18\b8.\b.  p\bpg\bgp\bp_\b_e\ben\bnt\btr\bry\by_\b_f\bfo\bor\brm\bma\bat\bt
36231 +  6\b6.\b.3\b3.\b.1\b13\b34\b4.\b.  p\bpg\bgp\bp_\b_e\ben\bnt\btr\bry\by_\b_f\bfo\bor\brm\bma\bat\bt
36232  
36233    Type: string
36234    Default: "%4n %t%f %4l/0x%k %-4a %2c %u"
36235 @@ -4705,7 +4914,7 @@
36236       %\b%[\b[<\b<s\bs>\b>]\b]
36237          date of the key where <s> is an strftime(3) expression
36238  
36239 -  6\b6.\b.3\b3.\b.1\b11\b19\b9.\b.  p\bpg\bgp\bp_\b_g\bgo\boo\bod\bd_\b_s\bsi\big\bgn\bn
36240 +  6\b6.\b.3\b3.\b.1\b13\b35\b5.\b.  p\bpg\bgp\bp_\b_g\bgo\boo\bod\bd_\b_s\bsi\big\bgn\bn
36241  
36242    Type: regular expression
36243    Default: ""
36244 @@ -4715,14 +4924,14 @@
36245    contains the text. Use this variable if the exit code from the command
36246    is 0 even for bad signatures.
36247  
36248 -  6\b6.\b.3\b3.\b.1\b12\b20\b0.\b.  p\bpg\bgp\bp_\b_l\blo\bon\bng\bg_\b_i\bid\bds\bs
36249 +  6\b6.\b.3\b3.\b.1\b13\b36\b6.\b.  p\bpg\bgp\bp_\b_l\blo\bon\bng\bg_\b_i\bid\bds\bs
36250  
36251    Type: boolean
36252    Default: no
36253  
36254    If set, use 64 bit PGP key IDs. Unset uses the normal 32 bit Key IDs.
36255  
36256 -  6\b6.\b.3\b3.\b.1\b12\b21\b1.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bye\ben\bnc\bcr\bry\byp\bpt\bt
36257 +  6\b6.\b.3\b3.\b.1\b13\b37\b7.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bye\ben\bnc\bcr\bry\byp\bpt\bt
36258  
36259    Type: boolean
36260    Default: yes
36261 @@ -4730,7 +4939,7 @@
36262    If set, automatically PGP encrypt replies to messages which are
36263    encrypted.
36264  
36265 -  6\b6.\b.3\b3.\b.1\b12\b22\b2.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bys\bsi\big\bgn\bn
36266 +  6\b6.\b.3\b3.\b.1\b13\b38\b8.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bys\bsi\big\bgn\bn
36267  
36268    Type: boolean
36269    Default: no
36270 @@ -4739,7 +4948,7 @@
36271  
36272    N\bNo\bot\bte\be:\b: this does not work on messages that are encrypted a\ban\bnd\bd signed!
36273  
36274 -  6\b6.\b.3\b3.\b.1\b12\b23\b3.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bys\bsi\big\bgn\bne\ben\bnc\bcr\bry\byp\bpt\bte\bed\bd
36275 +  6\b6.\b.3\b3.\b.1\b13\b39\b9.\b.  p\bpg\bgp\bp_\b_r\bre\bep\bpl\bly\bys\bsi\big\bgn\bne\ben\bnc\bcr\bry\byp\bpt\bte\bed\bd
36276  
36277    Type: boolean
36278    Default: no
36279 @@ -4751,7 +4960,7 @@
36280    noted in ````$pgp_replysign'''', that mutt is not able to find out
36281    whether an encrypted message is also signed.
36282  
36283 -  6\b6.\b.3\b3.\b.1\b12\b24\b4.\b.  p\bpg\bgp\bp_\b_r\bre\bet\bta\bai\bin\bna\bab\bbl\ble\be_\b_s\bsi\big\bgs\bs
36284 +  6\b6.\b.3\b3.\b.1\b14\b40\b0.\b.  p\bpg\bgp\bp_\b_r\bre\bet\bta\bai\bin\bna\bab\bbl\ble\be_\b_s\bsi\big\bgs\bs
36285  
36286    Type: boolean
36287    Default: no
36288 @@ -4763,7 +4972,7 @@
36289    lists, where the outer layer (multipart/encrypted) can be easily
36290    removed, while the inner multipart/signed part is retained.
36291  
36292 -  6\b6.\b.3\b3.\b.1\b12\b25\b5.\b.  p\bpg\bgp\bp_\b_s\bsh\bho\bow\bw_\b_u\bun\bnu\bus\bsa\bab\bbl\ble\be
36293 +  6\b6.\b.3\b3.\b.1\b14\b41\b1.\b.  p\bpg\bgp\bp_\b_s\bsh\bho\bow\bw_\b_u\bun\bnu\bus\bsa\bab\bbl\ble\be
36294  
36295    Type: boolean
36296    Default: yes
36297 @@ -4772,7 +4981,7 @@
36298    menu.  This includes keys which have been revoked, have expired, or
36299    have been marked as ``disabled'' by the user.
36300  
36301 -  6\b6.\b.3\b3.\b.1\b12\b26\b6.\b.  p\bpg\bgp\bp_\b_s\bsi\big\bgn\bn_\b_a\bas\bs
36302 +  6\b6.\b.3\b3.\b.1\b14\b42\b2.\b.  p\bpg\bgp\bp_\b_s\bsi\big\bgn\bn_\b_a\bas\bs
36303  
36304    Type: string
36305    Default: ""
36306 @@ -4781,7 +4990,7 @@
36307    which of your private keys to use.  It is recommended that you use the
36308    keyid form to specify your key (e.g., ``0x00112233'').
36309  
36310 -  6\b6.\b.3\b3.\b.1\b12\b27\b7.\b.  p\bpg\bgp\bp_\b_s\bst\btr\bri\bic\bct\bt_\b_e\ben\bnc\bc
36311 +  6\b6.\b.3\b3.\b.1\b14\b43\b3.\b.  p\bpg\bgp\bp_\b_s\bst\btr\bri\bic\bct\bt_\b_e\ben\bnc\bc
36312  
36313    Type: boolean
36314    Default: yes
36315 @@ -4791,7 +5000,7 @@
36316    to problems with non-verifyable PGP signatures, so only change this if
36317    you know what you are doing.
36318  
36319 -  6\b6.\b.3\b3.\b.1\b12\b28\b8.\b.  p\bpg\bgp\bp_\b_t\bti\bim\bme\beo\bou\but\bt
36320 +  6\b6.\b.3\b3.\b.1\b14\b44\b4.\b.  p\bpg\bgp\bp_\b_t\bti\bim\bme\beo\bou\but\bt
36321  
36322    Type: number
36323    Default: 300
36324 @@ -4799,7 +5008,7 @@
36325    The number of seconds after which a cached passphrase will expire if
36326    not used.
36327  
36328 -  6\b6.\b.3\b3.\b.1\b12\b29\b9.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_s\bsi\big\bg
36329 +  6\b6.\b.3\b3.\b.1\b14\b45\b5.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_s\bsi\big\bg
36330  
36331    Type: quadoption
36332    Default: yes
36333 @@ -4808,7 +5017,7 @@
36334    yes'' or ``ask-no'', ask whether or not to verify the signature.  If
36335    ``no'', never attempt to verify PGP/MIME signatures.
36336  
36337 -  6\b6.\b.3\b3.\b.1\b13\b30\b0.\b.  p\bpg\bgp\bp_\b_s\bso\bor\brt\bt_\b_k\bke\bey\bys\bs
36338 +  6\b6.\b.3\b3.\b.1\b14\b46\b6.\b.  p\bpg\bgp\bp_\b_s\bso\bor\brt\bt_\b_k\bke\bey\bys\bs
36339  
36340    Type: sort order
36341    Default: address
36342 @@ -4831,7 +5040,7 @@
36343    If you prefer reverse order of the above values, prefix it with
36344    `reverse-'.
36345  
36346 -  6\b6.\b.3\b3.\b.1\b13\b31\b1.\b.  p\bpg\bgp\bp_\b_c\bcr\bre\bea\bat\bte\be_\b_t\btr\bra\bad\bdi\bit\bti\bio\bon\bna\bal\bl
36347 +  6\b6.\b.3\b3.\b.1\b14\b47\b7.\b.  p\bpg\bgp\bp_\b_c\bcr\bre\bea\bat\bte\be_\b_t\btr\bra\bad\bdi\bit\bti\bio\bon\bna\bal\bl
36348  
36349    Type: quadoption
36350    Default: no
36351 @@ -4846,7 +5055,7 @@
36352    Also note that using the old-style PGP message format is s\bst\btr\bro\bon\bng\bgl\bly\by
36353    d\bde\bep\bpr\bre\bec\bca\bat\bte\bed\bd.
36354  
36355 -  6\b6.\b.3\b3.\b.1\b13\b32\b2.\b.  p\bpg\bgp\bp_\b_d\bde\bec\bco\bod\bde\be_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36356 +  6\b6.\b.3\b3.\b.1\b14\b48\b8.\b.  p\bpg\bgp\bp_\b_d\bde\bec\bco\bod\bde\be_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36357  
36358    Type: string
36359    Default: ""
36360 @@ -4873,7 +5082,7 @@
36361    files in the samples/ subdirectory which has been installed on your
36362    system alongside the documentation.
36363  
36364 -  6\b6.\b.3\b3.\b.1\b13\b33\b3.\b.  p\bpg\bgp\bp_\b_g\bge\bet\btk\bke\bey\bys\bs_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36365 +  6\b6.\b.3\b3.\b.1\b14\b49\b9.\b.  p\bpg\bgp\bp_\b_g\bge\bet\btk\bke\bey\bys\bs_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36366  
36367    Type: string
36368    Default: ""
36369 @@ -4882,21 +5091,21 @@
36370    information.  %r is the only printf-like sequence used with this
36371    format.
36372  
36373 -  6\b6.\b.3\b3.\b.1\b13\b34\b4.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36374 +  6\b6.\b.3\b3.\b.1\b15\b50\b0.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36375  
36376    Type: string
36377    Default: ""
36378  
36379    This command is used to verify PGP/MIME signatures.
36380  
36381 -  6\b6.\b.3\b3.\b.1\b13\b35\b5.\b.  p\bpg\bgp\bp_\b_d\bde\bec\bcr\bry\byp\bpt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36382 +  6\b6.\b.3\b3.\b.1\b15\b51\b1.\b.  p\bpg\bgp\bp_\b_d\bde\bec\bcr\bry\byp\bpt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36383  
36384    Type: string
36385    Default: ""
36386  
36387    This command is used to decrypt a PGP/MIME encrypted message.
36388  
36389 -  6\b6.\b.3\b3.\b.1\b13\b36\b6.\b.  p\bpg\bgp\bp_\b_c\bcl\ble\bea\bar\brs\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36390 +  6\b6.\b.3\b3.\b.1\b15\b52\b2.\b.  p\bpg\bgp\bp_\b_c\bcl\ble\bea\bar\brs\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36391  
36392    Type: string
36393    Default: ""
36394 @@ -4904,7 +5113,7 @@
36395    This format is used to create a "clearsigned" old-style PGP
36396    attachment.  Note that the use of this format is s\bst\btr\bro\bon\bng\bgl\bly\by d\bde\bep\bpr\bre\bec\bca\bat\bte\bed\bd.
36397  
36398 -  6\b6.\b.3\b3.\b.1\b13\b37\b7.\b.  p\bpg\bgp\bp_\b_s\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36399 +  6\b6.\b.3\b3.\b.1\b15\b53\b3.\b.  p\bpg\bgp\bp_\b_s\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36400  
36401    Type: string
36402    Default: ""
36403 @@ -4912,21 +5121,21 @@
36404    This command is used to create the detached PGP signature for a
36405    multipart/signed PGP/MIME body part.
36406  
36407 -  6\b6.\b.3\b3.\b.1\b13\b38\b8.\b.  p\bpg\bgp\bp_\b_e\ben\bnc\bcr\bry\byp\bpt\bt_\b_s\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36408 +  6\b6.\b.3\b3.\b.1\b15\b54\b4.\b.  p\bpg\bgp\bp_\b_e\ben\bnc\bcr\bry\byp\bpt\bt_\b_s\bsi\big\bgn\bn_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36409  
36410    Type: string
36411    Default: ""
36412  
36413    This command is used to combinedly sign/encrypt a body part.
36414  
36415 -  6\b6.\b.3\b3.\b.1\b13\b39\b9.\b.  p\bpg\bgp\bp_\b_e\ben\bnc\bcr\bry\byp\bpt\bt_\b_o\bon\bnl\bly\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36416 +  6\b6.\b.3\b3.\b.1\b15\b55\b5.\b.  p\bpg\bgp\bp_\b_e\ben\bnc\bcr\bry\byp\bpt\bt_\b_o\bon\bnl\bly\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36417  
36418    Type: string
36419    Default: ""
36420  
36421    This command is used to encrypt a body part without signing it.
36422  
36423 -  6\b6.\b.3\b3.\b.1\b14\b40\b0.\b.  p\bpg\bgp\bp_\b_i\bim\bmp\bpo\bor\brt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36424 +  6\b6.\b.3\b3.\b.1\b15\b56\b6.\b.  p\bpg\bgp\bp_\b_i\bim\bmp\bpo\bor\brt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36425  
36426    Type: string
36427    Default: ""
36428 @@ -4934,14 +5143,14 @@
36429    This command is used to import a key from a message into the user's
36430    public key ring.
36431  
36432 -  6\b6.\b.3\b3.\b.1\b14\b41\b1.\b.  p\bpg\bgp\bp_\b_e\bex\bxp\bpo\bor\brt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36433 +  6\b6.\b.3\b3.\b.1\b15\b57\b7.\b.  p\bpg\bgp\bp_\b_e\bex\bxp\bpo\bor\brt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36434  
36435    Type: string
36436    Default: ""
36437  
36438    This command is used to export a public key from the user's key ring.
36439  
36440 -  6\b6.\b.3\b3.\b.1\b14\b42\b2.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_k\bke\bey\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36441 +  6\b6.\b.3\b3.\b.1\b15\b58\b8.\b.  p\bpg\bgp\bp_\b_v\bve\ber\bri\bif\bfy\by_\b_k\bke\bey\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36442  
36443    Type: string
36444    Default: ""
36445 @@ -4949,7 +5158,7 @@
36446    This command is used to verify key information from the key selection
36447    menu.
36448  
36449 -  6\b6.\b.3\b3.\b.1\b14\b43\b3.\b.  p\bpg\bgp\bp_\b_l\bli\bis\bst\bt_\b_s\bse\bec\bcr\bri\bin\bng\bg_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36450 +  6\b6.\b.3\b3.\b.1\b15\b59\b9.\b.  p\bpg\bgp\bp_\b_l\bli\bis\bst\bt_\b_s\bse\bec\bcr\bri\bin\bng\bg_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36451  
36452    Type: string
36453    Default: ""
36454 @@ -4961,7 +5170,7 @@
36455    This format is also generated by the pgpring utility which comes with
36456    mutt.
36457  
36458 -  6\b6.\b.3\b3.\b.1\b14\b44\b4.\b.  p\bpg\bgp\bp_\b_l\bli\bis\bst\bt_\b_p\bpu\bub\bbr\bri\bin\bng\bg_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36459 +  6\b6.\b.3\b3.\b.1\b16\b60\b0.\b.  p\bpg\bgp\bp_\b_l\bli\bis\bst\bt_\b_p\bpu\bub\bbr\bri\bin\bng\bg_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36460  
36461    Type: string
36462    Default: ""
36463 @@ -4969,10 +5178,11 @@
36464    This command is used to list the public key ring's contents.  The
36465    output format must be analogous to the one used by gpg --list-keys
36466    --with-colons.
36467 +
36468    This format is also generated by the pgpring utility which comes with
36469    mutt.
36470  
36471 -  6\b6.\b.3\b3.\b.1\b14\b45\b5.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bcr\bry\byp\bpt\bt
36472 +  6\b6.\b.3\b3.\b.1\b16\b61\b1.\b.  f\bfo\bor\brw\bwa\bar\brd\bd_\b_d\bde\bec\bcr\bry\byp\bpt\bt
36473  
36474    Type: boolean
36475    Default: yes
36476 @@ -4982,7 +5192,7 @@
36477    variable is only used if ````$mime_forward'''' is _\bs_\be_\bt and
36478    ````$mime_forward_decode'''' is _\bu_\bn_\bs_\be_\bt.
36479  
36480 -  6\b6.\b.3\b3.\b.1\b14\b46\b6.\b.  s\bss\bsl\bl_\b_s\bst\bta\bar\brt\btt\btl\bls\bs
36481 +  6\b6.\b.3\b3.\b.1\b16\b62\b2.\b.  s\bss\bsl\bl_\b_s\bst\bta\bar\brt\btt\btl\bls\bs
36482  
36483    Type: quadoption
36484    Default: yes
36485 @@ -4991,7 +5201,7 @@
36486    advertising the capability. When unset, mutt will not attempt to use
36487    STARTTLS regardless of the server's capabilities.
36488  
36489 -  6\b6.\b.3\b3.\b.1\b14\b47\b7.\b.  c\bce\ber\brt\bti\bif\bfi\bic\bca\bat\bte\be_\b_f\bfi\bil\ble\be
36490 +  6\b6.\b.3\b3.\b.1\b16\b63\b3.\b.  c\bce\ber\brt\bti\bif\bfi\bic\bca\bat\bte\be_\b_f\bfi\bil\ble\be
36491  
36492    Type: path
36493    Default: ""
36494 @@ -5007,7 +5217,7 @@
36495  
36496    Example: set certificate_file=~/.mutt/certificates
36497  
36498 -  6\b6.\b.3\b3.\b.1\b14\b48\b8.\b.  s\bss\bsl\bl_\b_u\bus\bse\bes\bsy\bys\bst\bte\bem\bmc\bce\ber\brt\bts\bs
36499 +  6\b6.\b.3\b3.\b.1\b16\b64\b4.\b.  s\bss\bsl\bl_\b_u\bus\bse\bes\bsy\bys\bst\bte\bem\bmc\bce\ber\brt\bts\bs
36500  
36501    Type: boolean
36502    Default: yes
36503 @@ -5016,7 +5226,7 @@
36504    certificate store when checking if server certificate is signed by a
36505    trusted CA.
36506  
36507 -  6\b6.\b.3\b3.\b.1\b14\b49\b9.\b.  e\ben\bnt\btr\bro\bop\bpy\by_\b_f\bfi\bil\ble\be
36508 +  6\b6.\b.3\b3.\b.1\b16\b65\b5.\b.  e\ben\bnt\btr\bro\bop\bpy\by_\b_f\bfi\bil\ble\be
36509  
36510    Type: path
36511    Default: ""
36512 @@ -5024,7 +5234,7 @@
36513    The file which includes random data that is used to initalize SSL
36514    library functions.
36515  
36516 -  6\b6.\b.3\b3.\b.1\b15\b50\b0.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_s\bss\bsl\blv\bv2\b2
36517 +  6\b6.\b.3\b3.\b.1\b16\b66\b6.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_s\bss\bsl\blv\bv2\b2
36518  
36519    Type: boolean
36520    Default: yes
36521 @@ -5032,7 +5242,7 @@
36522    This variables specifies whether to attempt to use SSLv2 in the SSL
36523    authentication process.
36524  
36525 -  6\b6.\b.3\b3.\b.1\b15\b51\b1.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_s\bss\bsl\blv\bv3\b3
36526 +  6\b6.\b.3\b3.\b.1\b16\b67\b7.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_s\bss\bsl\blv\bv3\b3
36527  
36528    Type: boolean
36529    Default: yes
36530 @@ -5040,7 +5250,7 @@
36531    This variables specifies whether to attempt to use SSLv3 in the SSL
36532    authentication process.
36533  
36534 -  6\b6.\b.3\b3.\b.1\b15\b52\b2.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_t\btl\bls\bsv\bv1\b1
36535 +  6\b6.\b.3\b3.\b.1\b16\b68\b8.\b.  s\bss\bsl\bl_\b_u\bus\bse\be_\b_t\btl\bls\bsv\bv1\b1
36536  
36537    Type: boolean
36538    Default: yes
36539 @@ -5048,7 +5258,7 @@
36540    This variables specifies whether to attempt to use TLSv1 in the SSL
36541    authentication process.
36542  
36543 -  6\b6.\b.3\b3.\b.1\b15\b53\b3.\b.  p\bpi\bip\bpe\be_\b_s\bsp\bpl\bli\bit\bt
36544 +  6\b6.\b.3\b3.\b.1\b16\b69\b9.\b.  p\bpi\bip\bpe\be_\b_s\bsp\bpl\bli\bit\bt
36545  
36546    Type: boolean
36547    Default: no
36548 @@ -5060,7 +5270,7 @@
36549    In both cases the messages are piped in the current sorted order, and
36550    the ````$pipe_sep'''' separator is added after each message.
36551  
36552 -  6\b6.\b.3\b3.\b.1\b15\b54\b4.\b.  p\bpi\bip\bpe\be_\b_d\bde\bec\bco\bod\bde\be
36553 +  6\b6.\b.3\b3.\b.1\b17\b70\b0.\b.  p\bpi\bip\bpe\be_\b_d\bde\bec\bco\bod\bde\be
36554  
36555    Type: boolean
36556    Default: no
36557 @@ -5069,7 +5279,7 @@
36558    will pipe the messages without any preprocessing. When set, Mutt will
36559    weed headers and will attempt to PGP/MIME decode the messages first.
36560  
36561 -  6\b6.\b.3\b3.\b.1\b15\b55\b5.\b.  p\bpi\bip\bpe\be_\b_s\bse\bep\bp
36562 +  6\b6.\b.3\b3.\b.1\b17\b71\b1.\b.  p\bpi\bip\bpe\be_\b_s\bse\bep\bp
36563  
36564    Type: string
36565    Default: "\n"
36566 @@ -5077,7 +5287,7 @@
36567    The separator to add between messages when piping a list of tagged
36568    messages to an external Unix command.
36569  
36570 -  6\b6.\b.3\b3.\b.1\b15\b56\b6.\b.  p\bpo\bop\bp_\b_a\bau\but\bth\bhe\ben\bnt\bti\bic\bca\bat\bto\bor\brs\bs
36571 +  6\b6.\b.3\b3.\b.1\b17\b72\b2.\b.  p\bpo\bop\bp_\b_a\bau\but\bth\bhe\ben\bnt\bti\bic\bca\bat\bto\bor\brs\bs
36572  
36573    Type: string
36574    Default: ""
36575 @@ -5092,7 +5302,7 @@
36576  
36577    Example: set pop_authenticators="digest-md5:apop:user"
36578  
36579 -  6\b6.\b.3\b3.\b.1\b15\b57\b7.\b.  p\bpo\bop\bp_\b_a\bau\but\bth\bh_\b_t\btr\bry\by_\b_a\bal\bll\bl
36580 +  6\b6.\b.3\b3.\b.1\b17\b73\b3.\b.  p\bpo\bop\bp_\b_a\bau\but\bth\bh_\b_t\btr\bry\by_\b_a\bal\bll\bl
36581  
36582    Type: boolean
36583    Default: yes
36584 @@ -5102,7 +5312,7 @@
36585    are unavailable. If a method is available but authentication fails,
36586    Mutt will not connect to the POP server.
36587  
36588 -  6\b6.\b.3\b3.\b.1\b15\b58\b8.\b.  p\bpo\bop\bp_\b_c\bch\bhe\bec\bck\bki\bin\bnt\bte\ber\brv\bva\bal\bl
36589 +  6\b6.\b.3\b3.\b.1\b17\b74\b4.\b.  p\bpo\bop\bp_\b_c\bch\bhe\bec\bck\bki\bin\bnt\bte\ber\brv\bva\bal\bl
36590  
36591    Type: number
36592    Default: 60
36593 @@ -5110,7 +5320,7 @@
36594    This variable configures how often (in seconds) POP should look for
36595    new mail.
36596  
36597 -  6\b6.\b.3\b3.\b.1\b15\b59\b9.\b.  p\bpo\bop\bp_\b_d\bde\bel\ble\bet\bte\be
36598 +  6\b6.\b.3\b3.\b.1\b17\b75\b5.\b.  p\bpo\bop\bp_\b_d\bde\bel\ble\bet\bte\be
36599  
36600    Type: quadoption
36601    Default: ask-no
36602 @@ -5119,7 +5329,7 @@
36603    server when using the fetch-mail function.  When unset, Mutt will
36604    download messages but also leave them on the POP server.
36605  
36606 -  6\b6.\b.3\b3.\b.1\b16\b60\b0.\b.  p\bpo\bop\bp_\b_h\bho\bos\bst\bt
36607 +  6\b6.\b.3\b3.\b.1\b17\b76\b6.\b.  p\bpo\bop\bp_\b_h\bho\bos\bst\bt
36608  
36609    Type: string
36610    Default: ""
36611 @@ -5129,7 +5339,7 @@
36612  
36613    [pop[s]://][username[:password]@]popserver[:port]
36614  
36615 -  6\b6.\b.3\b3.\b.1\b16\b61\b1.\b.  p\bpo\bop\bp_\b_l\bla\bas\bst\bt
36616 +  6\b6.\b.3\b3.\b.1\b17\b77\b7.\b.  p\bpo\bop\bp_\b_l\bla\bas\bst\bt
36617  
36618    Type: boolean
36619    Default: no
36620 @@ -5138,7 +5348,7 @@
36621    for retrieving only unread messages from the POP server when using the
36622    fetch-mail function.
36623  
36624 -  6\b6.\b.3\b3.\b.1\b16\b62\b2.\b.  p\bpo\bop\bp_\b_r\bre\bec\bco\bon\bnn\bne\bec\bct\bt
36625 +  6\b6.\b.3\b3.\b.1\b17\b78\b8.\b.  p\bpo\bop\bp_\b_r\bre\bec\bco\bon\bnn\bne\bec\bct\bt
36626  
36627    Type: quadoption
36628    Default: ask-yes
36629 @@ -5146,7 +5356,7 @@
36630    Controls whether or not Mutt will try to reconnect to POP server when
36631    connection lost.
36632  
36633 -  6\b6.\b.3\b3.\b.1\b16\b63\b3.\b.  p\bpo\bop\bp_\b_u\bus\bse\ber\br
36634 +  6\b6.\b.3\b3.\b.1\b17\b79\b9.\b.  p\bpo\bop\bp_\b_u\bus\bse\ber\br
36635  
36636    Type: string
36637    Default: ""
36638 @@ -5155,7 +5365,7 @@
36639  
36640    This variable defaults to your user name on the local machine.
36641  
36642 -  6\b6.\b.3\b3.\b.1\b16\b64\b4.\b.  p\bpo\bop\bp_\b_p\bpa\bas\bss\bs
36643 +  6\b6.\b.3\b3.\b.1\b18\b80\b0.\b.  p\bpo\bop\bp_\b_p\bpa\bas\bss\bs
36644  
36645    Type: string
36646    Default: ""
36647 @@ -5166,14 +5376,25 @@
36648    because the superuser can read your muttrc even if you are the only
36649    one who can read the file.
36650  
36651 -  6\b6.\b.3\b3.\b.1\b16\b65\b5.\b.  p\bpo\bos\bst\bt_\b_i\bin\bnd\bde\ben\bnt\bt_\b_s\bst\btr\bri\bin\bng\bg
36652 +  6\b6.\b.3\b3.\b.1\b18\b81\b1.\b.  p\bpo\bos\bst\bt_\b_i\bin\bnd\bde\ben\bnt\bt_\b_s\bst\btr\bri\bin\bng\bg
36653  
36654    Type: string
36655    Default: ""
36656 +
36657    Similar to the ````$attribution'''' variable, Mutt will append this
36658    string after the inclusion of a message which is being replied to.
36659  
36660 -  6\b6.\b.3\b3.\b.1\b16\b66\b6.\b.  p\bpo\bos\bst\btp\bpo\bon\bne\be
36661 +  6\b6.\b.3\b3.\b.1\b18\b82\b2.\b.  p\bpo\bos\bst\bt_\b_m\bmo\bod\bde\ber\bra\bat\bte\bed\bd
36662 +
36663 +  Type: quadoption
36664 +  Default: ask-yes
36665 +
36666 +  If set to _\by_\be_\bs, Mutt will post article to newsgroup that have not
36667 +  permissions to posting (e.g. moderated).  N\bNo\bot\bte\be:\b: if newsserver does not
36668 +  support posting to that newsgroup or totally read-only, that posting
36669 +  will not have an effect.
36670 +
36671 +  6\b6.\b.3\b3.\b.1\b18\b83\b3.\b.  p\bpo\bos\bst\btp\bpo\bon\bne\be
36672  
36673    Type: quadoption
36674    Default: ask-yes
36675 @@ -5181,7 +5402,7 @@
36676    Controls whether or not messages are saved in the ````$postponed''''
36677    mailbox when you elect not to send immediately.
36678  
36679 -  6\b6.\b.3\b3.\b.1\b16\b67\b7.\b.  p\bpo\bos\bst\btp\bpo\bon\bne\bed\bd
36680 +  6\b6.\b.3\b3.\b.1\b18\b84\b4.\b.  p\bpo\bos\bst\btp\bpo\bon\bne\bed\bd
36681  
36682    Type: path
36683    Default: "~/postponed"
36684 @@ -5191,7 +5412,7 @@
36685    saves it in the mailbox specified by this variable.  Also see the
36686    ````$postpone'''' variable.
36687  
36688 -  6\b6.\b.3\b3.\b.1\b16\b68\b8.\b.  p\bpr\bre\bec\bco\bon\bnn\bne\bec\bct\bt
36689 +  6\b6.\b.3\b3.\b.1\b18\b85\b5.\b.  p\bpr\bre\bec\bco\bon\bnn\bne\bec\bct\bt
36690  
36691    Type: string
36692    Default: ""
36693 @@ -5210,7 +5431,7 @@
36694    NOTE: For this example to work, you must be able to log in to the
36695    remote machine without having to enter a password.
36696  
36697 -  6\b6.\b.3\b3.\b.1\b16\b69\b9.\b.  p\bpr\bri\bin\bnt\bt
36698 +  6\b6.\b.3\b3.\b.1\b18\b86\b6.\b.  p\bpr\bri\bin\bnt\bt
36699  
36700    Type: quadoption
36701    Default: ask-no
36702 @@ -5218,13 +5439,14 @@
36703    Controls whether or not Mutt asks for confirmation before printing.
36704    This is useful for people (like me) who accidentally hit ``p'' often.
36705  
36706 -  6\b6.\b.3\b3.\b.1\b17\b70\b0.\b.  p\bpr\bri\bin\bnt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36707 +  6\b6.\b.3\b3.\b.1\b18\b87\b7.\b.  p\bpr\bri\bin\bnt\bt_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36708  
36709    Type: path
36710    Default: "lpr"
36711 +
36712    This specifies the command pipe that should be used to print messages.
36713  
36714 -  6\b6.\b.3\b3.\b.1\b17\b71\b1.\b.  p\bpr\bri\bin\bnt\bt_\b_d\bde\bec\bco\bod\bde\be
36715 +  6\b6.\b.3\b3.\b.1\b18\b88\b8.\b.  p\bpr\bri\bin\bnt\bt_\b_d\bde\bec\bco\bod\bde\be
36716  
36717    Type: boolean
36718    Default: yes
36719 @@ -5236,7 +5458,7 @@
36720    latter setting may be useful if you are using some advanced printer
36721    filter which is able to properly format e-mail messages for printing.
36722  
36723 -  6\b6.\b.3\b3.\b.1\b17\b72\b2.\b.  p\bpr\bri\bin\bnt\bt_\b_s\bsp\bpl\bli\bit\bt
36724 +  6\b6.\b.3\b3.\b.1\b18\b89\b9.\b.  p\bpr\bri\bin\bnt\bt_\b_s\bsp\bpl\bli\bit\bt
36725  
36726    Type: boolean
36727    Default: no
36728 @@ -5251,7 +5473,7 @@
36729    Those who use the e\ben\bns\bsc\bcr\bri\bip\bpt\bt(1) program's mail-printing mode will most
36730    likely want to set this option.
36731  
36732 -  6\b6.\b.3\b3.\b.1\b17\b73\b3.\b.  p\bpr\bro\bom\bmp\bpt\bt_\b_a\baf\bft\bte\ber\br
36733 +  6\b6.\b.3\b3.\b.1\b19\b90\b0.\b.  p\bpr\bro\bom\bmp\bpt\bt_\b_a\baf\bft\bte\ber\br
36734  
36735    Type: boolean
36736    Default: yes
36737 @@ -5261,7 +5483,7 @@
36738    than returning to the index menu.  If unset, Mutt will return to the
36739    index menu when the external pager exits.
36740  
36741 -  6\b6.\b.3\b3.\b.1\b17\b74\b4.\b.  q\bqu\bue\ber\bry\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36742 +  6\b6.\b.3\b3.\b.1\b19\b91\b1.\b.  q\bqu\bue\ber\bry\by_\b_c\bco\bom\bmm\bma\ban\bnd\bd
36743  
36744    Type: path
36745    Default: ""
36746 @@ -5271,7 +5493,7 @@
36747    with the query string the user types.  See ````query'''' for more
36748    information.
36749  
36750 -  6\b6.\b.3\b3.\b.1\b17\b75\b5.\b.  q\bqu\bui\bit\bt
36751 +  6\b6.\b.3\b3.\b.1\b19\b92\b2.\b.  q\bqu\bui\bit\bt
36752  
36753    Type: quadoption
36754    Default: yes
36755 @@ -5281,11 +5503,10 @@
36756    have no effect, and if it is set to ask-yes or ask-no, you are
36757    prompted for confirmation when you try to quit.
36758  
36759 -  6\b6.\b.3\b3.\b.1\b17\b76\b6.\b.  q\bqu\buo\bot\bte\be_\b_r\bre\beg\bge\bex\bxp\bp
36760 +  6\b6.\b.3\b3.\b.1\b19\b93\b3.\b.  q\bqu\buo\bot\bte\be_\b_r\bre\beg\bge\bex\bxp\bp
36761  
36762    Type: regular expression
36763    Default: "^([ \t]*[|>:}#])+"
36764 -
36765    A regular expression used in the internal-pager to determine quoted
36766    sections of text in the body of a message.
36767  
36768 @@ -5293,7 +5514,7 @@
36769    need to set this to a regular expression that matches _\be_\bx_\ba_\bc_\bt_\bl_\by the
36770    quote characters at the beginning of quoted lines.
36771  
36772 -  6\b6.\b.3\b3.\b.1\b17\b77\b7.\b.  r\bre\bea\bad\bd_\b_i\bin\bnc\bc
36773 +  6\b6.\b.3\b3.\b.1\b19\b94\b4.\b.  r\bre\bea\bad\bd_\b_i\bin\bnc\bc
36774  
36775    Type: number
36776    Default: 10
36777 @@ -5308,14 +5529,14 @@
36778  
36779    Also see the ````$write_inc'''' variable.
36780  
36781 -  6\b6.\b.3\b3.\b.1\b17\b78\b8.\b.  r\bre\bea\bad\bd_\b_o\bon\bnl\bly\by
36782 +  6\b6.\b.3\b3.\b.1\b19\b95\b5.\b.  r\bre\bea\bad\bd_\b_o\bon\bnl\bly\by
36783  
36784    Type: boolean
36785    Default: no
36786  
36787    If set, all folders are opened in read-only mode.
36788  
36789 -  6\b6.\b.3\b3.\b.1\b17\b79\b9.\b.  r\bre\bea\bal\bln\bna\bam\bme\be
36790 +  6\b6.\b.3\b3.\b.1\b19\b96\b6.\b.  r\bre\bea\bal\bln\bna\bam\bme\be
36791  
36792    Type: string
36793    Default: ""
36794 @@ -5327,7 +5548,7 @@
36795    variable will _\bn_\bo_\bt be used when the user has set a real name in the
36796    ``$from'' variable.
36797  
36798 -  6\b6.\b.3\b3.\b.1\b18\b80\b0.\b.  r\bre\bec\bca\bal\bll\bl
36799 +  6\b6.\b.3\b3.\b.1\b19\b97\b7.\b.  r\bre\bec\bca\bal\bll\bl
36800  
36801    Type: quadoption
36802    Default: ask-yes
36803 @@ -5338,7 +5559,7 @@
36804    Setting this variable to ``yes'' is not generally useful, and thus not
36805    recommended.
36806  
36807 -  6\b6.\b.3\b3.\b.1\b18\b81\b1.\b.  r\bre\bec\bco\bor\brd\bd
36808 +  6\b6.\b.3\b3.\b.1\b19\b98\b8.\b.  r\bre\bec\bco\bor\brd\bd
36809  
36810    Type: path
36811    Default: ""
36812 @@ -5351,7 +5572,7 @@
36813    The value of _\b`_\b`_\b$_\br_\be_\bc_\bo_\br_\bd_\b'_\b' is overridden by the ````$force_name'''' and
36814    ````$save_name'''' variables, and the ````fcc-hook'''' command.
36815  
36816 -  6\b6.\b.3\b3.\b.1\b18\b82\b2.\b.  r\bre\bep\bpl\bly\by_\b_r\bre\beg\bge\bex\bxp\bp
36817 +  6\b6.\b.3\b3.\b.1\b19\b99\b9.\b.  r\bre\bep\bpl\bly\by_\b_r\bre\beg\bge\bex\bxp\bp
36818  
36819    Type: regular expression
36820    Default: "^(re([\[0-9\]+])*|aw):[ \t]*"
36821 @@ -5360,7 +5581,7 @@
36822    and replying. The default value corresponds to the English "Re:" and
36823    the German "Aw:".
36824  
36825 -  6\b6.\b.3\b3.\b.1\b18\b83\b3.\b.  r\bre\bep\bpl\bly\by_\b_s\bse\bel\blf\bf
36826 +  6\b6.\b.3\b3.\b.2\b20\b00\b0.\b.  r\bre\bep\bpl\bly\by_\b_s\bse\bel\blf\bf
36827  
36828    Type: boolean
36829    Default: no
36830 @@ -5369,7 +5590,7 @@
36831    assume that you want to reply to the recipients of that message rather
36832    than to yourself.
36833  
36834 -  6\b6.\b.3\b3.\b.1\b18\b84\b4.\b.  r\bre\bep\bpl\bly\by_\b_t\bto\bo
36835 +  6\b6.\b.3\b3.\b.2\b20\b01\b1.\b.  r\bre\bep\bpl\bly\by_\b_t\bto\bo
36836  
36837    Type: quadoption
36838    Default: ask-yes
36839 @@ -5381,7 +5602,7 @@
36840    header field to the list address and you want to send a private
36841    message to the author of a message.
36842  
36843 -  6\b6.\b.3\b3.\b.1\b18\b85\b5.\b.  r\bre\bes\bso\bol\blv\bve\be
36844 +  6\b6.\b.3\b3.\b.2\b20\b02\b2.\b.  r\bre\bes\bso\bol\blv\bve\be
36845  
36846    Type: boolean
36847    Default: yes
36848 @@ -5390,7 +5611,7 @@
36849    (possibly undeleted) message whenever a command that modifies the
36850    current message is executed.
36851  
36852 -  6\b6.\b.3\b3.\b.1\b18\b86\b6.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_a\bal\bli\bia\bas\bs
36853 +  6\b6.\b.3\b3.\b.2\b20\b03\b3.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_a\bal\bli\bia\bas\bs
36854  
36855    Type: boolean
36856    Default: no
36857 @@ -5410,7 +5631,7 @@
36858    ``abd30425@somewhere.net.''  This is useful when the person's e-mail
36859    address is not human friendly (like CompuServe addresses).
36860  
36861 -  6\b6.\b.3\b3.\b.1\b18\b87\b7.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_n\bna\bam\bme\be
36862 +  6\b6.\b.3\b3.\b.2\b20\b04\b4.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_n\bna\bam\bme\be
36863  
36864    Type: boolean
36865    Default: no
36866 @@ -5422,7 +5643,7 @@
36867    messages you are replying to.  If the variable is unset, the _\bF_\br_\bo_\bm_\b:
36868    line will use your address on the current machine.
36869  
36870 -  6\b6.\b.3\b3.\b.1\b18\b88\b8.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_r\bre\bea\bal\bln\bna\bam\bme\be
36871 +  6\b6.\b.3\b3.\b.2\b20\b05\b5.\b.  r\bre\bev\bve\ber\brs\bse\be_\b_r\bre\bea\bal\bln\bna\bam\bme\be
36872  
36873    Type: boolean
36874    Default: yes
36875 @@ -5433,7 +5654,7 @@
36876    unset, mutt will override any such realnames with the setting of the
36877    ``realname'' variable.
36878  
36879 -  6\b6.\b.3\b3.\b.1\b18\b89\b9.\b.  r\brf\bfc\bc2\b20\b04\b47\b7_\b_p\bpa\bar\bra\bam\bme\bet\bte\ber\brs\bs
36880 +  6\b6.\b.3\b3.\b.2\b20\b06\b6.\b.  r\brf\bfc\bc2\b20\b04\b47\b7_\b_p\bpa\bar\bra\bam\bme\bet\bte\ber\brs\bs
36881  
36882    Type: boolean
36883    Default: no
36884 @@ -5452,7 +5673,7 @@
36885    _\bg_\be_\bn_\be_\br_\ba_\bt_\be_\bs this kind of encoding.  Instead, mutt will unconditionally
36886    use the encoding specified in RFC 2231.
36887  
36888 -  6\b6.\b.3\b3.\b.1\b19\b90\b0.\b.  s\bsa\bav\bve\be_\b_a\bad\bdd\bdr\bre\bes\bss\bs
36889 +  6\b6.\b.3\b3.\b.2\b20\b07\b7.\b.  s\bsa\bav\bve\be_\b_a\bad\bdd\bdr\bre\bes\bss\bs
36890  
36891    Type: boolean
36892    Default: no
36893 @@ -5462,7 +5683,7 @@
36894    ````$force_name'''' is set too, the selection of the fcc folder will
36895    be changed as well.
36896  
36897 -  6\b6.\b.3\b3.\b.1\b19\b91\b1.\b.  s\bsa\bav\bve\be_\b_e\bem\bmp\bpt\bty\by
36898 +  6\b6.\b.3\b3.\b.2\b20\b08\b8.\b.  s\bsa\bav\bve\be_\b_e\bem\bmp\bpt\bty\by
36899  
36900    Type: boolean
36901    Default: yes
36902 @@ -5473,7 +5694,8 @@
36903  
36904    N\bNo\bot\bte\be:\b: This only applies to mbox and MMDF folders, Mutt does not delete
36905    MH and Maildir directories.
36906 -  6\b6.\b.3\b3.\b.1\b19\b92\b2.\b.  s\bsa\bav\bve\be_\b_n\bna\bam\bme\be
36907 +
36908 +  6\b6.\b.3\b3.\b.2\b20\b09\b9.\b.  s\bsa\bav\bve\be_\b_n\bna\bam\bme\be
36909  
36910    Type: boolean
36911    Default: no
36912 @@ -5488,7 +5710,7 @@
36913  
36914    Also see the ````$force_name'''' variable.
36915  
36916 -  6\b6.\b.3\b3.\b.1\b19\b93\b3.\b.  s\bsc\bco\bor\bre\be
36917 +  6\b6.\b.3\b3.\b.2\b21\b10\b0.\b.  s\bsc\bco\bor\bre\be
36918  
36919    Type: boolean
36920    Default: yes
36921 @@ -5497,7 +5719,7 @@
36922    useful to selectively disable scoring for certain folders when the
36923    ````$score_threshold_delete'''' variable and friends are used.
36924  
36925 -  6\b6.\b.3\b3.\b.1\b19\b94\b4.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_d\bde\bel\ble\bet\bte\be
36926 +  6\b6.\b.3\b3.\b.2\b21\b11\b1.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_d\bde\bel\ble\bet\bte\be
36927  
36928    Type: number
36929    Default: -1
36930 @@ -5508,7 +5730,7 @@
36931    default setting of this variable will never mark a message for
36932    deletion.
36933  
36934 -  6\b6.\b.3\b3.\b.1\b19\b95\b5.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_f\bfl\bla\bag\bg
36935 +  6\b6.\b.3\b3.\b.2\b21\b12\b2.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_f\bfl\bla\bag\bg
36936  
36937    Type: number
36938    Default: 9999
36939 @@ -5516,7 +5738,7 @@
36940    Messages wich have been assigned a score greater than or equal to this
36941    variable's value are automatically marked "flagged".
36942  
36943 -  6\b6.\b.3\b3.\b.1\b19\b96\b6.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_r\bre\bea\bad\bd
36944 +  6\b6.\b.3\b3.\b.2\b21\b13\b3.\b.  s\bsc\bco\bor\bre\be_\b_t\bth\bhr\bre\bes\bsh\bho\bol\bld\bd_\b_r\bre\bea\bad\bd
36945  
36946    Type: number
36947    Default: -1
36948 @@ -5526,7 +5748,7 @@
36949    Since mutt scores are always greater than or equal to zero, the
36950    default setting of this variable will never mark a message read.
36951  
36952 -  6\b6.\b.3\b3.\b.1\b19\b97\b7.\b.  s\bse\ben\bnd\bd_\b_c\bch\bha\bar\brs\bse\bet\bt
36953 +  6\b6.\b.3\b3.\b.2\b21\b14\b4.\b.  s\bse\ben\bnd\bd_\b_c\bch\bha\bar\brs\bse\bet\bt
36954  
36955    Type: string
36956    Default: "us-ascii:iso-8859-1:utf-8"
36957 @@ -5538,7 +5760,7 @@
36958    appropriate widely used standard character set (such as iso-8859-2,
36959    koi8-r or iso-2022-jp) either instead of or after "iso-8859-1".
36960  
36961 -  6\b6.\b.3\b3.\b.1\b19\b98\b8.\b.  s\bse\ben\bnd\bdm\bma\bai\bil\bl
36962 +  6\b6.\b.3\b3.\b.2\b21\b15\b5.\b.  s\bse\ben\bnd\bdm\bma\bai\bil\bl
36963  
36964    Type: path
36965    Default: "/usr/sbin/sendmail -oem -oi"
36966 @@ -5547,7 +5769,7 @@
36967    Mutt expects that the specified program interprets additional
36968    arguments as recipient addresses.
36969  
36970 -  6\b6.\b.3\b3.\b.1\b19\b99\b9.\b.  s\bse\ben\bnd\bdm\bma\bai\bil\bl_\b_w\bwa\bai\bit\bt
36971 +  6\b6.\b.3\b3.\b.2\b21\b16\b6.\b.  s\bse\ben\bnd\bdm\bma\bai\bil\bl_\b_w\bwa\bai\bit\bt
36972  
36973    Type: number
36974    Default: 0
36975 @@ -5569,7 +5791,7 @@
36976    process will be put in a temporary file.  If there is some error, you
36977    will be informed as to where to find the output.
36978  
36979 -  6\b6.\b.3\b3.\b.2\b20\b00\b0.\b.  s\bsh\bhe\bel\bll\bl
36980 +  6\b6.\b.3\b3.\b.2\b21\b17\b7.\b.  s\bsh\bhe\bel\bll\bl
36981  
36982    Type: path
36983    Default: ""
36984 @@ -5577,7 +5799,33 @@
36985    Command to use when spawning a subshell.  By default, the user's login
36986    shell from /etc/passwd is used.
36987  
36988 -  6\b6.\b.3\b3.\b.2\b20\b01\b1.\b.  s\bsi\big\bg_\b_d\bda\bas\bsh\bhe\bes\bs
36989 +  6\b6.\b.3\b3.\b.2\b21\b18\b8.\b.  s\bsa\bav\bve\be_\b_u\bun\bns\bsu\bub\bbs\bsc\bcr\bri\bib\bbe\bed\bd
36990 +
36991 +  Type: boolean
36992 +  Default: no
36993 +
36994 +  When _\bs_\be_\bt, info about unsubscribed newsgroups will be saved into
36995 +  ``newsrc'' file and into cache.
36996 +
36997 +  6\b6.\b.3\b3.\b.2\b21\b19\b9.\b.  s\bsh\bho\bow\bw_\b_n\bne\bew\bw_\b_n\bne\bew\bws\bs
36998 +
36999 +  Type: boolean
37000 +  Default: yes
37001 +
37002 +  If _\bs_\be_\bt, newsserver will be asked for new newsgroups on entering the
37003 +  browser.  Otherwise, it will be done only once for a newsserver.  Also
37004 +  controls whether or not number of new articles of subscribed
37005 +  newsgroups will be then checked.
37006 +
37007 +  6\b6.\b.3\b3.\b.2\b22\b20\b0.\b.  s\bsh\bho\bow\bw_\b_o\bon\bnl\bly\by_\b_u\bun\bnr\bre\bea\bad\bd
37008 +
37009 +  Type: boolean
37010 +  Default: no
37011 +
37012 +  If _\bs_\be_\bt, only subscribed newsgroups that contain unread articles will
37013 +  be displayed in browser.
37014 +
37015 +  6\b6.\b.3\b3.\b.2\b22\b21\b1.\b.  s\bsi\big\bg_\b_d\bda\bas\bsh\bhe\bes\bs
37016  
37017    Type: boolean
37018    Default: yes
37019 @@ -5589,7 +5837,7 @@
37020    detect your signature.  For example, Mutt has the ability to highlight
37021    the signature in a different color in the builtin pager.
37022  
37023 -  6\b6.\b.3\b3.\b.2\b20\b02\b2.\b.  s\bsi\big\bg_\b_o\bon\bn_\b_t\bto\bop\bp
37024 +  6\b6.\b.3\b3.\b.2\b22\b22\b2.\b.  s\bsi\big\bg_\b_o\bon\bn_\b_t\bto\bop\bp
37025  
37026    Type: boolean
37027    Default: no
37028 @@ -5599,7 +5847,7 @@
37029    unless you really know what you are doing, and are prepared to take
37030    some heat from netiquette guardians.
37031  
37032 -  6\b6.\b.3\b3.\b.2\b20\b03\b3.\b.  s\bsi\big\bgn\bna\bat\btu\bur\bre\be
37033 +  6\b6.\b.3\b3.\b.2\b22\b23\b3.\b.  s\bsi\big\bgn\bna\bat\btu\bur\bre\be
37034  
37035    Type: path
37036    Default: "~/.signature"
37037 @@ -5609,7 +5857,7 @@
37038    assumed that filename is a shell command and input should be read from
37039    its stdout.
37040  
37041 -  6\b6.\b.3\b3.\b.2\b20\b04\b4.\b.  s\bsi\bim\bmp\bpl\ble\be_\b_s\bse\bea\bar\brc\bch\bh
37042 +  6\b6.\b.3\b3.\b.2\b22\b24\b4.\b.  s\bsi\bim\bmp\bpl\ble\be_\b_s\bse\bea\bar\brc\bch\bh
37043  
37044    Type: string
37045    Default: "~f %s | ~s %s"
37046 @@ -5625,7 +5873,7 @@
37047  
37048    ~f joe | ~s joe
37049  
37050 -  6\b6.\b.3\b3.\b.2\b20\b05\b5.\b.  s\bsm\bma\bar\brt\bt_\b_w\bwr\bra\bap\bp
37051 +  6\b6.\b.3\b3.\b.2\b22\b25\b5.\b.  s\bsm\bma\bar\brt\bt_\b_w\bwr\bra\bap\bp
37052  
37053    Type: boolean
37054    Default: yes
37055 @@ -5635,7 +5883,7 @@
37056    unset, lines are simply wrapped at the screen edge. Also see the
37057    ````$markers'''' variable.
37058  
37059 -  6\b6.\b.3\b3.\b.2\b20\b06\b6.\b.  s\bsm\bmi\bil\ble\bey\bys\bs
37060 +  6\b6.\b.3\b3.\b.2\b22\b26\b6.\b.  s\bsm\bmi\bil\ble\bey\bys\bs
37061  
37062    Type: regular expression
37063    Default: "(>From )|(:[-^]?[][)(><}{|/DP])"
37064 @@ -5643,7 +5891,7 @@
37065    The _\bp_\ba_\bg_\be_\br uses this variable to catch some common false positives of
37066    ````$quote_regexp'''', most notably smileys in the beginning of a line
37067  
37068 -  6\b6.\b.3\b3.\b.2\b20\b07\b7.\b.  s\bsl\ble\bee\bep\bp_\b_t\bti\bim\bme\be
37069 +  6\b6.\b.3\b3.\b.2\b22\b27\b7.\b.  s\bsl\ble\bee\bep\bp_\b_t\bti\bim\bme\be
37070  
37071    Type: number
37072    Default: 1
37073 @@ -5653,27 +5901,27 @@
37074    expunging messages from the current folder.  The default is to pause
37075    one second, so a value of zero for this option suppresses the pause.
37076  
37077 -  6\b6.\b.3\b3.\b.2\b20\b08\b8.\b.  s\bso\bor\brt\bt
37078 +  6\b6.\b.3\b3.\b.2\b22\b28\b8.\b.  s\bso\bor\brt\bt
37079  
37080    Type: sort order
37081    Default: date
37082  
37083    Specifies how to sort messages in the _\bi_\bn_\bd_\be_\bx menu.  Valid values are:
37084  
37085 -          date or date-sent
37086 -          date-received
37087 -          from
37088 -          mailbox-order (unsorted)
37089 -          score
37090 -          size
37091 -          subject
37092 -          threads
37093 -          to
37094 +     date or date-sent
37095 +     date-received
37096 +     from
37097 +     mailbox-order (unsorted)
37098 +     score
37099 +     size
37100 +     subject
37101 +     threads
37102 +     to
37103  
37104    You may optionally use the reverse- prefix to specify reverse sorting
37105    order (example: set sort=reverse-date-sent).
37106  
37107 -  6\b6.\b.3\b3.\b.2\b20\b09\b9.\b.  s\bso\bor\brt\bt_\b_a\bal\bli\bia\bas\bs
37108 +  6\b6.\b.3\b3.\b.2\b22\b29\b9.\b.  s\bso\bor\brt\bt_\b_a\bal\bli\bia\bas\bs
37109  
37110    Type: sort order
37111    Default: alias
37112 @@ -5685,7 +5933,7 @@
37113            alias (sort alphabetically by alias name)
37114            unsorted (leave in order specified in .muttrc)
37115  
37116 -  6\b6.\b.3\b3.\b.2\b21\b10\b0.\b.  s\bso\bor\brt\bt_\b_a\bau\bux\bx
37117 +  6\b6.\b.3\b3.\b.2\b23\b30\b0.\b.  s\bso\bor\brt\bt_\b_a\bau\bux\bx
37118  
37119    Type: sort order
37120    Default: date
37121 @@ -5704,7 +5952,7 @@
37122    order ``$sort_aux'' is reversed again (which is not the right thing to
37123    do, but kept to not break any existing configuration setting).
37124  
37125 -  6\b6.\b.3\b3.\b.2\b21\b11\b1.\b.  s\bso\bor\brt\bt_\b_b\bbr\bro\bow\bws\bse\ber\br
37126 +  6\b6.\b.3\b3.\b.2\b23\b31\b1.\b.  s\bso\bor\brt\bt_\b_b\bbr\bro\bow\bws\bse\ber\br
37127  
37128    Type: sort order
37129    Default: subject
37130 @@ -5720,7 +5968,7 @@
37131    You may optionally use the reverse- prefix to specify reverse sorting
37132    order (example: set sort_browser=reverse-date).
37133  
37134 -  6\b6.\b.3\b3.\b.2\b21\b12\b2.\b.  s\bso\bor\brt\bt_\b_r\bre\be
37135 +  6\b6.\b.3\b3.\b.2\b23\b32\b2.\b.  s\bso\bor\brt\bt_\b_r\bre\be
37136  
37137    Type: boolean
37138    Default: yes
37139 @@ -5734,7 +5982,7 @@
37140    attach the message whether or not this is the case, as long as the
37141    non-````$reply_regexp'''' parts of both messages are identical.
37142  
37143 -  6\b6.\b.3\b3.\b.2\b21\b13\b3.\b.  s\bsp\bpo\boo\bol\blf\bfi\bil\ble\be
37144 +  6\b6.\b.3\b3.\b.2\b23\b33\b3.\b.  s\bsp\bpo\boo\bol\blf\bfi\bil\ble\be
37145  
37146    Type: path
37147    Default: ""
37148 @@ -5744,7 +5992,7 @@
37149    automatically set this variable to the value of the environment
37150    variable $MAIL if it is not set.
37151  
37152 -  6\b6.\b.3\b3.\b.2\b21\b14\b4.\b.  s\bst\bta\bat\btu\bus\bs_\b_c\bch\bha\bar\brs\bs
37153 +  6\b6.\b.3\b3.\b.2\b23\b34\b4.\b.  s\bst\bta\bat\btu\bus\bs_\b_c\bch\bha\bar\brs\bs
37154  
37155    Type: string
37156    Default: "-*%A"
37157 @@ -5760,7 +6008,7 @@
37158    message mode (Certain operations like composing a new mail, replying,
37159    forwarding, etc. are not permitted in this mode).
37160  
37161 -  6\b6.\b.3\b3.\b.2\b21\b15\b5.\b.  s\bst\bta\bat\btu\bus\bs_\b_f\bfo\bor\brm\bma\bat\bt
37162 +  6\b6.\b.3\b3.\b.2\b23\b35\b5.\b.  s\bst\bta\bat\btu\bus\bs_\b_f\bfo\bor\brm\bma\bat\bt
37163  
37164    Type: string
37165    Default: "-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d?
37166 @@ -5847,7 +6095,7 @@
37167    (_) sign.  For example, if you want to display the local hostname in
37168    lowercase, you would use: %_h
37169  
37170 -  6\b6.\b.3\b3.\b.2\b21\b16\b6.\b.  s\bst\bta\bat\btu\bus\bs_\b_o\bon\bn_\b_t\bto\bop\bp
37171 +  6\b6.\b.3\b3.\b.2\b23\b36\b6.\b.  s\bst\bta\bat\btu\bus\bs_\b_o\bon\bn_\b_t\bto\bop\bp
37172  
37173    Type: boolean
37174    Default: no
37175 @@ -5855,7 +6103,7 @@
37176    Setting this variable causes the ``status bar'' to be displayed on the
37177    first line of the screen rather than near the bottom.
37178  
37179 -  6\b6.\b.3\b3.\b.2\b21\b17\b7.\b.  s\bst\btr\bri\bic\bct\bt_\b_t\bth\bhr\bre\bea\bad\bds\bs
37180 +  6\b6.\b.3\b3.\b.2\b23\b37\b7.\b.  s\bst\btr\bri\bic\bct\bt_\b_t\bth\bhr\bre\bea\bad\bds\bs
37181  
37182    Type: boolean
37183    Default: no
37184 @@ -5867,7 +6115,7 @@
37185    personal mailbox where you might have several unrelated messages with
37186    the subject ``hi'' which will get grouped together.
37187  
37188 -  6\b6.\b.3\b3.\b.2\b21\b18\b8.\b.  s\bsu\bus\bsp\bpe\ben\bnd\bd
37189 +  6\b6.\b.3\b3.\b.2\b23\b38\b8.\b.  s\bsu\bus\bsp\bpe\ben\bnd\bd
37190  
37191    Type: boolean
37192    Default: yes
37193 @@ -5876,7 +6124,7 @@
37194    key, usually ``control-Z''. This is useful if you run mutt inside an
37195    xterm using a command like xterm -e mutt.
37196  
37197 -  6\b6.\b.3\b3.\b.2\b21\b19\b9.\b.  t\bte\bex\bxt\bt_\b_f\bfl\blo\bow\bwe\bed\bd
37198 +  6\b6.\b.3\b3.\b.2\b23\b39\b9.\b.  t\bte\bex\bxt\bt_\b_f\bfl\blo\bow\bwe\bed\bd
37199  
37200    Type: boolean
37201    Default: no
37202 @@ -5888,14 +6136,15 @@
37203  
37204    Note that ``$indent_string'' is ignored when this option is set.
37205  
37206 -  6\b6.\b.3\b3.\b.2\b22\b20\b0.\b.  t\bth\bhr\bre\bea\bad\bd_\b_r\bre\bec\bce\bei\biv\bve\bed\bd
37207 +  6\b6.\b.3\b3.\b.2\b24\b40\b0.\b.  t\bth\bhr\bre\bea\bad\bd_\b_r\bre\bec\bce\bei\biv\bve\bed\bd
37208  
37209    Type: boolean
37210    Default: no
37211  
37212    When set, mutt uses the date received rather than the date sent to
37213    thread messages by subject.
37214 -  6\b6.\b.3\b3.\b.2\b22\b21\b1.\b.  t\bth\bho\bor\bro\bou\bug\bgh\bh_\b_s\bse\bea\bar\brc\bch\bh
37215 +
37216 +  6\b6.\b.3\b3.\b.2\b24\b41\b1.\b.  t\bth\bho\bor\bro\bou\bug\bgh\bh_\b_s\bse\bea\bar\brc\bch\bh
37217  
37218    Type: boolean
37219    Default: no
37220 @@ -5905,7 +6154,7 @@
37221    messages to be searched are decoded before searching.  If unset,
37222    messages are searched as they appear in the folder.
37223  
37224 -  6\b6.\b.3\b3.\b.2\b22\b22\b2.\b.  t\bti\bil\bld\bde\be
37225 +  6\b6.\b.3\b3.\b.2\b24\b42\b2.\b.  t\bti\bil\bld\bde\be
37226  
37227    Type: boolean
37228    Default: no
37229 @@ -5913,7 +6162,7 @@
37230    When set, the internal-pager will pad blank lines to the bottom of the
37231    screen with a tilde (~).
37232  
37233 -  6\b6.\b.3\b3.\b.2\b22\b23\b3.\b.  t\bti\bim\bme\beo\bou\but\bt
37234 +  6\b6.\b.3\b3.\b.2\b24\b43\b3.\b.  t\bti\bim\bme\beo\bou\but\bt
37235  
37236    Type: number
37237    Default: 600
37238 @@ -5922,15 +6171,14 @@
37239    to be pressed in the main menu before timing out and checking for new
37240    mail.  A value of zero or less will cause Mutt not to ever time out.
37241  
37242 -  6\b6.\b.3\b3.\b.2\b22\b24\b4.\b.  t\btm\bmp\bpd\bdi\bir\br
37243 +  6\b6.\b.3\b3.\b.2\b24\b44\b4.\b.  t\btm\bmp\bpd\bdi\bir\br
37244  
37245    Type: path
37246    Default: ""
37247 -
37248    This variable allows you to specify where Mutt will place its
37249    temporary files needed for displaying and composing messages.
37250  
37251 -  6\b6.\b.3\b3.\b.2\b22\b25\b5.\b.  t\bto\bo_\b_c\bch\bha\bar\brs\bs
37252 +  6\b6.\b.3\b3.\b.2\b24\b45\b5.\b.  t\bto\bo_\b_c\bch\bha\bar\brs\bs
37253  
37254    Type: string
37255    Default: " +TCFL"
37256 @@ -5946,7 +6194,7 @@
37257    by _\by_\bo_\bu.  The sixth character is used to indicate when a mail was sent
37258    to a mailing-list you subscribe to (default: L).
37259  
37260 -  6\b6.\b.3\b3.\b.2\b22\b26\b6.\b.  t\btu\bun\bnn\bne\bel\bl
37261 +  6\b6.\b.3\b3.\b.2\b24\b46\b6.\b.  t\btu\bun\bnn\bne\bel\bl
37262  
37263    Type: string
37264    Default: ""
37265 @@ -5960,7 +6208,7 @@
37266    NOTE: For this example to work you must be able to log in to the
37267    remote machine without having to enter a password.
37268  
37269 -  6\b6.\b.3\b3.\b.2\b22\b27\b7.\b.  u\bus\bse\be_\b_8\b8b\bbi\bit\btm\bmi\bim\bme\be
37270 +  6\b6.\b.3\b3.\b.2\b24\b47\b7.\b.  u\bus\bse\be_\b_8\b8b\bbi\bit\btm\bmi\bim\bme\be
37271  
37272    Type: boolean
37273    Default: no
37274 @@ -5972,7 +6220,7 @@
37275    When _\bs_\be_\bt, Mutt will invoke ````$sendmail'''' with the -B8BITMIME flag
37276    when sending 8-bit messages to enable ESMTP negotiation.
37277  
37278 -  6\b6.\b.3\b3.\b.2\b22\b28\b8.\b.  u\bus\bse\be_\b_d\bdo\bom\bma\bai\bin\bn
37279 +  6\b6.\b.3\b3.\b.2\b24\b48\b8.\b.  u\bus\bse\be_\b_d\bdo\bom\bma\bai\bin\bn
37280  
37281    Type: boolean
37282    Default: yes
37283 @@ -5981,7 +6229,7 @@
37284    @host portion) with the value of ````$hostname''''.  If _\bu_\bn_\bs_\be_\bt, no
37285    addresses will be qualified.
37286  
37287 -  6\b6.\b.3\b3.\b.2\b22\b29\b9.\b.  u\bus\bse\be_\b_f\bfr\bro\bom\bm
37288 +  6\b6.\b.3\b3.\b.2\b24\b49\b9.\b.  u\bus\bse\be_\b_f\bfr\bro\bom\bm
37289  
37290    Type: boolean
37291    Default: yes
37292 @@ -5990,7 +6238,16 @@
37293    messages.  If _\bu_\bn_\bs_\be_\bt, no `From:' header field will be generated unless
37294    the user explicitly sets one using the ````my_hdr'''' command.
37295  
37296 -  6\b6.\b.3\b3.\b.2\b23\b30\b0.\b.  u\bus\bse\ber\br_\b_a\bag\bge\ben\bnt\bt
37297 +  6\b6.\b.3\b3.\b.2\b25\b50\b0.\b.  u\bus\bse\be_\b_i\bip\bpv\bv6\b6
37298 +
37299 +  Type: boolean
37300 +  Default: yes
37301 +
37302 +  When _\bs_\be_\bt, Mutt will look for IPv6 addresses of hosts it tries to
37303 +  contact.  If this option is unset, Mutt will restrict itself to IPv4
37304 +  addresses.  Normally, the default should work.
37305 +
37306 +  6\b6.\b.3\b3.\b.2\b25\b51\b1.\b.  u\bus\bse\ber\br_\b_a\bag\bge\ben\bnt\bt
37307  
37308    Type: boolean
37309    Default: yes
37310 @@ -5998,7 +6255,7 @@
37311    When _\bs_\be_\bt, mutt will add a "User-Agent" header to outgoing messages,
37312    indicating which version of mutt was used for composing them.
37313  
37314 -  6\b6.\b.3\b3.\b.2\b23\b31\b1.\b.  v\bvi\bis\bsu\bua\bal\bl
37315 +  6\b6.\b.3\b3.\b.2\b25\b52\b2.\b.  v\bvi\bis\bsu\bua\bal\bl
37316  
37317    Type: path
37318    Default: ""
37319 @@ -6006,7 +6263,7 @@
37320    Specifies the visual editor to invoke when the _\b~_\bv command is given in
37321    the builtin editor.
37322  
37323 -  6\b6.\b.3\b3.\b.2\b23\b32\b2.\b.  w\bwa\bai\bit\bt_\b_k\bke\bey\by
37324 +  6\b6.\b.3\b3.\b.2\b25\b53\b3.\b.  w\bwa\bai\bit\bt_\b_k\bke\bey\by
37325  
37326    Type: boolean
37327    Default: yes
37328 @@ -6021,7 +6278,7 @@
37329    When set, Mutt will always ask for a key. When unset, Mutt will wait
37330    for a key only if the external command returned a non-zero status.
37331  
37332 -  6\b6.\b.3\b3.\b.2\b23\b33\b3.\b.  w\bwe\bee\bed\bd
37333 +  6\b6.\b.3\b3.\b.2\b25\b54\b4.\b.  w\bwe\bee\bed\bd
37334  
37335    Type: boolean
37336    Default: yes
37337 @@ -6029,7 +6286,7 @@
37338    When set, mutt will weed headers when when displaying, forwarding,
37339    printing, or replying to messages.
37340  
37341 -  6\b6.\b.3\b3.\b.2\b23\b34\b4.\b.  w\bwr\bra\bap\bp_\b_s\bse\bea\bar\brc\bch\bh
37342 +  6\b6.\b.3\b3.\b.2\b25\b55\b5.\b.  w\bwr\bra\bap\bp_\b_s\bse\bea\bar\brc\bch\bh
37343  
37344    Type: boolean
37345    Default: yes
37346 @@ -6039,7 +6296,7 @@
37347    When set, searches will wrap around the first (or last) message. When
37348    unset, searches will not wrap.
37349  
37350 -  6\b6.\b.3\b3.\b.2\b23\b35\b5.\b.  w\bwr\bra\bap\bpm\bma\bar\brg\bgi\bin\bn
37351 +  6\b6.\b.3\b3.\b.2\b25\b56\b6.\b.  w\bwr\bra\bap\bpm\bma\bar\brg\bgi\bin\bn
37352  
37353    Type: number
37354    Default: 0
37355 @@ -6047,7 +6304,7 @@
37356    Controls the margin left at the right side of the terminal when mutt's
37357    pager does smart wrapping.
37358  
37359 -  6\b6.\b.3\b3.\b.2\b23\b36\b6.\b.  w\bwr\bri\bit\bte\be_\b_i\bin\bnc\bc
37360 +  6\b6.\b.3\b3.\b.2\b25\b57\b7.\b.  w\bwr\bri\bit\bte\be_\b_i\bin\bnc\bc
37361  
37362    Type: number
37363    Default: 10
37364 @@ -6058,7 +6315,7 @@
37365  
37366    Also see the ````$read_inc'''' variable.
37367  
37368 -  6\b6.\b.3\b3.\b.2\b23\b37\b7.\b.  w\bwr\bri\bit\bte\be_\b_b\bbc\bcc\bc
37369 +  6\b6.\b.3\b3.\b.2\b25\b58\b8.\b.  w\bwr\bri\bit\bte\be_\b_b\bbc\bcc\bc
37370  
37371    Type: boolean
37372    Default: yes
37373 @@ -6066,6 +6323,14 @@
37374    Controls whether mutt writes out the Bcc header when preparing
37375    messages to be sent.  Exim users may wish to use this.
37376  
37377 +  6\b6.\b.3\b3.\b.2\b25\b59\b9.\b.  x\bx_\b_c\bco\bom\bmm\bme\ben\bnt\bt_\b_t\bto\bo
37378 +
37379 +  Type: boolean
37380 +  Default: no
37381 +
37382 +  If _\bs_\be_\bt, Mutt will add ``X-Comment-To:'' field (that contains full name
37383 +  of original article author) to article that followuped to newsgroup.
37384 +
37385    6\b6.\b.4\b4.\b.  F\bFu\bun\bnc\bct\bti\bio\bon\bns\bs
37386  
37387    The following is the list of available functions listed by the mapping
37388 diff -uNr mutt-1.4.orig/doc/mutt.man mutt-1.4/doc/mutt.man
37389 --- mutt-1.4.orig/doc/mutt.man  Thu Aug 30 14:55:37 2001
37390 +++ mutt-1.4/doc/mutt.man       Sun Nov  3 21:57:20 2002
37391 @@ -24,8 +24,8 @@
37392  .SH SYNOPSIS
37393  .PP
37394  .B mutt
37395 -[-nRyzZ] 
37396 -[-e \fIcmd\fP] [-F \fIfile\fP] [-m \fItype\fP] [-f \fIfile\fP]
37397 +[-GnRyzZ] 
37398 +[-e \fIcmd\fP] [-F \fIfile\fP] [-g \fIserver\fP] [-m \fItype\fP] [-f \fIfile\fP]
37399  .PP
37400  .B mutt 
37401  [-nx] 
37402 @@ -63,6 +63,10 @@
37403  Specify which mailbox to load.
37404  .IP "-F \fImuttrc\fP"
37405  Specify an initialization file to read instead of ~/.muttrc
37406 +.IP "-g \fIserver\fP"
37407 +Start Mutt with a listing of subscribed newsgroups at specified newsserver.
37408 +.IP "-G"
37409 +Start Mutt with a listing of subscribed newsgroups.
37410  .IP "-h"
37411  Display help.
37412  .IP "-H \fIdraft\fP"
37413 diff -uNr mutt-1.4.orig/doc/muttrc.man mutt-1.4/doc/muttrc.man
37414 --- mutt-1.4.orig/doc/muttrc.man        Sun Nov  3 21:42:51 2002
37415 +++ mutt-1.4/doc/muttrc.man     Sun Nov  3 21:57:47 2002
37416 @@ -257,7 +257,9 @@
37417  \fBpgp-hook\fP \fIpattern\fP \fIkey-id\fP
37418  The pgp-hook command provides a method by which you can
37419  specify the ID of the public key to be used when encrypting messages
37420 -to a certain recipient.
37421 +to a certain recipient.  You may use multiple \fBpgp-hook\fPs with the
37422 +same \fIpattern\fP; multiple matching \fBpgp-hook\fPs result in the use
37423 +of multiple \fIkey-id\fPs for recipient.
37424  .PP
37425  .nf
37426  \fBopen-hook\fP \fIregexp\fP "\fIcommand\fP"
37427 @@ -622,6 +624,28 @@
37428  
37429  
37430  .TP
37431 +.B ask_follow_up
37432 +.nf
37433 +Type: boolean
37434 +Default: no
37435 +.fi
37436 +.IP
37437 +If set, Mutt will prompt you for follow-up groups before editing
37438 +the body of an outgoing message.
37439 +
37440 +
37441 +.TP
37442 +.B ask_x_comment_to
37443 +.nf
37444 +Type: boolean
37445 +Default: no
37446 +.fi
37447 +.IP
37448 +If set, Mutt will prompt you for x-comment-to field before editing
37449 +the body of an outgoing message.
37450 +
37451 +
37452 +.TP
37453  .B attach_format
37454  .nf
37455  Type: string
37456 @@ -773,6 +797,17 @@
37457  
37458  
37459  .TP
37460 +.B catchup_newsgroup
37461 +.nf
37462 +Type: quadoption
37463 +Default: ask-yes
37464 +.fi
37465 +.IP
37466 +If this variable is \fIset\fP, Mutt will mark all articles in newsgroup
37467 +as read when you quit the newsgroup (catchup newsgroup).
37468 +
37469 +
37470 +.TP
37471  .B charset
37472  .nf
37473  Type: string
37474 @@ -990,7 +1025,7 @@
37475  .B dotlock_program
37476  .nf
37477  Type: path
37478 -Default: \(lq/usr/local/bin/mutt_dotlock\(rq
37479 +Default: \(lq/usr/bin/mutt_dotlock\(rq
37480  .fi
37481  .IP
37482  Contains the path of the mutt_dotlock (8) binary to be used by
37483 @@ -1161,6 +1196,16 @@
37484  
37485  
37486  .TP
37487 +.B folder_columns
37488 +.nf
37489 +Type: number
37490 +Default: 1
37491 +.fi
37492 +.IP
37493 +Specifies the number of folder columns in folder browser.
37494 +
37495 +
37496 +.TP
37497  .B folder_format
37498  .nf
37499  Type: string
37500 @@ -1235,6 +1280,19 @@
37501  
37502  
37503  .TP
37504 +.B followup_to_poster
37505 +.nf
37506 +Type: quadoption
37507 +Default: ask-yes
37508 +.fi
37509 +.IP
37510 +If this variable is \fIset\fP and the keyword \(rqposter\(rq is present in
37511 +\fIFollowup-To\fP header, follow-up to newsgroup function is not
37512 +permitted.  The message will be mailed to the submitter of the
37513 +message via mail.
37514 +
37515 +
37516 +.TP
37517  .B force_name
37518  .nf
37519  Type: boolean
37520 @@ -1319,6 +1377,39 @@
37521  
37522  
37523  .TP
37524 +.B group_index_format
37525 +.nf
37526 +Type: string
37527 +Default: \(lq%4C %M%N %5s  %-45.45f %d\(rq
37528 +.fi
37529 +.IP
37530 +This variable allows you to customize the newsgroup browser display to
37531 +your personal taste.  This string is similar to \(lqindex_format\(rq, but
37532 +has its own set of printf()-like sequences:
37533 +.IP
37534 +
37535 +.IP
37536 +.DS
37537 +.sp
37538 +.ft CR
37539 +.nf
37540 +%C      current newsgroup number
37541 +%d      description of newsgroup (becomes from server)
37542 +%f      newsgroup name
37543 +%M      - if newsgroup not allowed for direct post (moderated for example)
37544 +%N      N if newsgroup is new, u if unsubscribed, blank otherwise
37545 +%n      number of new articles in newsgroup
37546 +%s      number of unread articles in newsgroup
37547 +%>X     right justify the rest of the string and pad with character \(rqX\(rq
37548 +%|X     pad to the end of the line with character \(rqX\(rq
37549 +
37550 +.fi
37551 +.ec
37552 +.ft P
37553 +.sp
37554 +
37555 +
37556 +.TP
37557  .B hdrs
37558  .nf
37559  Type: boolean
37560 @@ -1711,6 +1802,9 @@
37561  .IP %F 
37562  author name, or recipient name if the message is from you
37563  
37564 +.IP %g 
37565 +newsgroup name (if compiled with nntp support)
37566 +
37567  .IP %i 
37568  message-id of the current message
37569  
37570 @@ -1756,6 +1850,9 @@
37571  .IP %v 
37572  first name of the author, or the recipient if the message is from you
37573  
37574 +.IP %W 
37575 +name of organization of author (`organization:' field)
37576 +
37577  .IP %y 
37578  `x-label:' field, if present
37579  
37580 @@ -1798,10 +1895,37 @@
37581  
37582  
37583  .TP
37584 +.B inews
37585 +.nf
37586 +Type: path
37587 +Default: \(lq\(rq
37588 +.fi
37589 +.IP
37590 +If set, specifies the program and arguments used to deliver news posted
37591 +by Mutt.  Otherwise, mutt posts article using current connection to
37592 +news server.  The following printf-style sequence is understood:
37593 +.IP
37594 +
37595 +.IP
37596 +.DS
37597 +.sp
37598 +.ft CR
37599 +.nf
37600 +%s      newsserver name
37601 +
37602 +.fi
37603 +.ec
37604 +.ft P
37605 +.sp
37606 +.IP
37607 +Example: set inews=\(rq/usr/local/bin/inews -hS\(rq
37608 +
37609 +
37610 +.TP
37611  .B ispell
37612  .nf
37613  Type: path
37614 -Default: \(lq/usr/bin/ispell\(rq
37615 +Default: \(lqispell\(rq
37616  .fi
37617  .IP
37618  How to invoke ispell (GNU's spell-checking software).
37619 @@ -2067,6 +2191,18 @@
37620  
37621  
37622  .TP
37623 +.B mime_subject
37624 +.nf
37625 +Type: boolean
37626 +Default: yes
37627 +.fi
37628 +.IP
37629 +If \fIunset\fP, 8-bit \(lqsubject:\(rq line in article header will not be
37630 +encoded according to RFC2047 to base64.  This is useful when message
37631 +is Usenet article, because MIME for news is nonstandard feature.
37632 +
37633 +
37634 +.TP
37635  .B mix_entry_format
37636  .nf
37637  Type: string
37638 @@ -2131,6 +2267,142 @@
37639  
37640  
37641  .TP
37642 +.B narrow_tree
37643 +.nf
37644 +Type: boolean
37645 +Default: no
37646 +.fi
37647 +.IP
37648 +This variable controls the width of the thread tree when sorting by
37649 +threads.  When set, it makes the tree approximately twice as narrow,
37650 +to allow more room the tree and message subjects.  This is useful on
37651 +narrow screens.
37652 +
37653 +
37654 +.TP
37655 +.B news_cache_dir
37656 +.nf
37657 +Type: path
37658 +Default: \(lq~/.mutt\(rq
37659 +.fi
37660 +.IP
37661 +This variable pointing to directory where Mutt will save cached news
37662 +articles headers in. If \fIunset\fP, headers will not be saved at all
37663 +and will be reloaded each time when you enter to newsgroup.
37664 +
37665 +
37666 +.TP
37667 +.B news_server
37668 +.nf
37669 +Type: string
37670 +Default: \(lq\(rq
37671 +.fi
37672 +.IP
37673 +This variable specifies domain name or address of NNTP server. It
37674 +defaults to the newsserver specified in the environment variable
37675 +$NNTPSERVER or contained in the file /etc/nntpserver.  You can also
37676 +specify username and an alternative port for each newsserver, ie:
37677 +.IP
37678 +[nntp[s]://][username[:password]@]newsserver[:port]
37679 +
37680 +
37681 +.TP
37682 +.B newsrc
37683 +.nf
37684 +Type: path
37685 +Default: \(lq~/.newsrc\(rq
37686 +.fi
37687 +.IP
37688 +The file, containing info about subscribed newsgroups - names and
37689 +indexes of read articles.  The following printf-style sequence
37690 +is understood:
37691 +.IP
37692 +
37693 +.IP
37694 +.DS
37695 +.sp
37696 +.ft CR
37697 +.nf
37698 +%s      newsserver name
37699 +
37700 +.fi
37701 +.ec
37702 +.ft P
37703 +.sp
37704 +
37705 +
37706 +.TP
37707 +.B nntp_context
37708 +.nf
37709 +Type: number
37710 +Default: 1000
37711 +.fi
37712 +.IP
37713 +This variable defines number of articles which will be in index when
37714 +newsgroup entered.  If active newsgroup have more articles than this
37715 +number, oldest articles will be ignored.  Also controls how many
37716 +articles headers will be saved in cache when you quit newsgroup.
37717 +
37718 +
37719 +.TP
37720 +.B nntp_load_description
37721 +.nf
37722 +Type: boolean
37723 +Default: yes
37724 +.fi
37725 +.IP
37726 +This variable controls whether or not descriptions for each newsgroup
37727 +must be loaded when newsgroup is added to list (first time list
37728 +loading or new newsgroup adding).
37729 +
37730 +
37731 +.TP
37732 +.B nntp_user
37733 +.nf
37734 +Type: string
37735 +Default: \(lq\(rq
37736 +.fi
37737 +.IP
37738 +Your login name on the NNTP server.  If \fIunset\fP and NNTP server requires
37739 +authentification, Mutt will prompt you for your account name when you
37740 +connect to newsserver.
37741 +
37742 +
37743 +.TP
37744 +.B nntp_pass
37745 +.nf
37746 +Type: string
37747 +Default: \(lq\(rq
37748 +.fi
37749 +.IP
37750 +Your password for NNTP account.
37751 +
37752 +
37753 +.TP
37754 +.B nntp_poll
37755 +.nf
37756 +Type: number
37757 +Default: 60
37758 +.fi
37759 +.IP
37760 +The time in seconds until any operations on newsgroup except post new
37761 +article will cause recheck for new news.  If set to 0, Mutt will
37762 +recheck newsgroup on each operation in index (stepping, read article,
37763 +etc.).
37764 +
37765 +
37766 +.TP
37767 +.B nntp_reconnect
37768 +.nf
37769 +Type: quadoption
37770 +Default: ask-yes
37771 +.fi
37772 +.IP
37773 +Controls whether or not Mutt will try to reconnect to newsserver when
37774 +connection lost.
37775 +
37776 +
37777 +.TP
37778  .B pager
37779  .nf
37780  Type: path
37781 @@ -2207,6 +2479,19 @@
37782  
37783  
37784  .TP
37785 +.B pgp_autoselectkey
37786 +.nf
37787 +Type: boolean
37788 +Default: no
37789 +.fi
37790 +.IP
37791 +If set, then a list of keys is not presented for selection when only
37792 +one matching key is available.  This may be useful in conjunction with
37793 +the \fIpgp-hook\fP command (with \(lq$pgp_confirmhook\(rq set) and the
37794 +\(lq$pgp_ignore_subkeys\(rq variable.
37795 +
37796 +
37797 +.TP
37798  .B pgp_autosign
37799  .nf
37800  Type: boolean
37801 @@ -2234,6 +2519,19 @@
37802  
37803  
37804  .TP
37805 +.B pgp_confirmhook
37806 +.nf
37807 +Type: boolean
37808 +Default: yes
37809 +.fi
37810 +.IP
37811 +If set, then you will be prompted for confirmation of keys when using
37812 +the \fIpgp-hook\fP command.  If unset, no such confirmation prompt will
37813 +be presented.  This is generally considered unsafe, especially where
37814 +typos are concerned.
37815 +
37816 +
37817 +.TP
37818  .B pgp_ignore_subkeys
37819  .nf
37820  Type: boolean
37821 @@ -2916,6 +3214,19 @@
37822  
37823  
37824  .TP
37825 +.B post_moderated
37826 +.nf
37827 +Type: quadoption
37828 +Default: ask-yes
37829 +.fi
37830 +.IP
37831 +If set to \fIyes\fP, Mutt will post article to newsgroup that have
37832 +not permissions to posting (e.g. moderated).  \fBNote:\fP if newsserver
37833 +does not support posting to that newsgroup or totally read-only, that
37834 +posting will not have an effect.
37835 +
37836 +
37837 +.TP
37838  .B postpone
37839  .nf
37840  Type: quadoption
37841 @@ -3056,6 +3367,29 @@
37842  
37843  
37844  .TP
37845 +.B quote_empty
37846 +.nf
37847 +Type: boolean
37848 +Default: yes
37849 +.fi
37850 +.IP
37851 +Controls whether or not empty lines will be quoted using
37852 +\(lqindent_string\(rq.
37853 +
37854 +
37855 +.TP
37856 +.B quote_quoted
37857 +.nf
37858 +Type: boolean
37859 +Default: no
37860 +.fi
37861 +.IP
37862 +Controls how quoted lines will be quoted. If set, one quote
37863 +character will be added to the end of existing prefix.  Otherwise,
37864 +quoted lines will be prepended by \(lqindent_string\(rq.
37865 +
37866 +
37867 +.TP
37868  .B quote_regexp
37869  .nf
37870  Type: regular expression
37871 @@ -3455,6 +3789,41 @@
37872  
37873  
37874  .TP
37875 +.B save_unsubscribed
37876 +.nf
37877 +Type: boolean
37878 +Default: no
37879 +.fi
37880 +.IP
37881 +When \fIset\fP, info about unsubscribed newsgroups will be saved into
37882 +\(lqnewsrc\(rq file and into cache.
37883 +
37884 +
37885 +.TP
37886 +.B show_new_news
37887 +.nf
37888 +Type: boolean
37889 +Default: yes
37890 +.fi
37891 +.IP
37892 +If \fIset\fP, newsserver will be asked for new newsgroups on entering
37893 +the browser.  Otherwise, it will be done only once for a newsserver.
37894 +Also controls whether or not number of new articles of subscribed
37895 +newsgroups will be then checked.
37896 +
37897 +
37898 +.TP
37899 +.B show_only_unread
37900 +.nf
37901 +Type: boolean
37902 +Default: no
37903 +.fi
37904 +.IP
37905 +If \fIset\fP, only subscribed newsgroups that contain unread articles
37906 +will be displayed in browser.
37907 +
37908 +
37909 +.TP
37910  .B sig_dashes
37911  .nf
37912  Type: boolean
37913 @@ -3496,6 +3865,19 @@
37914  
37915  
37916  .TP
37917 +.B signatures_directory
37918 +.nf
37919 +Type: path
37920 +Default: \(lq\(rq
37921 +.fi
37922 +.IP
37923 +Specifies the path where your signatures are located. In the files of
37924 +this directory, the signatures are separated by blank lines and/or
37925 +sig_dashes (\(lq-- \(rq).
37926 +You can choose between these signatures from the compose menu.
37927 +
37928 +
37929 +.TP
37930  .B simple_search
37931  .nf
37932  Type: string
37933 @@ -3788,6 +4170,11 @@
37934  .IP %V  
37935  currently active limit pattern, if any *
37936  
37937 +.IP %[fmt] 
37938 +the current date and time. \(lqfmt\(rq is
37939 +expanded by the system call \(lqstrftime\(rq;
37940 +a leading bang disables locales 
37941 +
37942  .IP %>X 
37943  right justify the rest of the string and pad with \(rqX\(rq
37944  
37945 @@ -3840,6 +4227,21 @@
37946  
37947  
37948  .TP
37949 +.B status_update
37950 +.nf
37951 +Type: number
37952 +Default: -1
37953 +.fi
37954 +.IP
37955 +This variable controls, if positive, the maximum interval in seconds
37956 +before the time in the status line is updated. It is checked at
37957 +every key press and after a keyboard $timeout.
37958 +If the value is zero, the status line will be updated at every check.
37959 +If it is negative, the status time will only be updated
37960 +if it necessary to update to the status line for some other reason.
37961 +
37962 +
37963 +.TP
37964  .B strict_threads
37965  .nf
37966  Type: boolean
37967 @@ -3960,6 +4362,18 @@
37968  
37969  
37970  .TP
37971 +.B trash
37972 +.nf
37973 +Type: path
37974 +Default: \(lq\(rq
37975 +.fi
37976 +.IP
37977 +If set, this variable specifies the path of the trash folder where the
37978 +mails marked for deletion will be moved, instead of being irremediably
37979 +purged.
37980 +
37981 +
37982 +.TP
37983  .B tunnel
37984  .nf
37985  Type: string
37986 @@ -4017,6 +4431,18 @@
37987  
37988  
37989  .TP
37990 +.B use_ipv6
37991 +.nf
37992 +Type: boolean
37993 +Default: yes
37994 +.fi
37995 +.IP
37996 +When \fIset\fP, Mutt will look for IPv6 addresses of hosts it tries to
37997 +contact.  If this option is unset, Mutt will restrict itself to IPv4 addresses.
37998 +Normally, the default should work.
37999 +
38000 +
38001 +.TP
38002  .B user_agent
38003  .nf
38004  Type: boolean
38005 @@ -4118,6 +4544,17 @@
38006  messages to be sent.  Exim users may wish to use this.
38007  
38008  
38009 +.TP
38010 +.B x_comment_to
38011 +.nf
38012 +Type: boolean
38013 +Default: no
38014 +.fi
38015 +.IP
38016 +If \fIset\fP, Mutt will add \(lqX-Comment-To:\(rq field (that contains full
38017 +name of original article author) to article that followuped to newsgroup.
38018 +
38019 +
38020  .\" -*-nroff-*-
38021  .SH SEE ALSO
38022  .PP
38023 diff -uNr mutt-1.4.orig/functions.h mutt-1.4/functions.h
38024 --- mutt-1.4.orig/functions.h   Sun Nov  3 21:42:52 2002
38025 +++ mutt-1.4/functions.h        Sun Nov  3 21:57:20 2002
38026 @@ -69,6 +69,10 @@
38027    { "break-thread",            OP_MAIN_BREAK_THREAD,           "#" },
38028    { "change-folder",           OP_MAIN_CHANGE_FOLDER,          "c" },
38029    { "change-folder-readonly",  OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
38030 +#ifdef USE_NNTP
38031 +  { "change-newsgroup",                OP_MAIN_CHANGE_GROUP,           NULL },
38032 +  { "change-newsgroup-readonly",OP_MAIN_CHANGE_GROUP_READONLY, NULL },
38033 +#endif
38034    { "collapse-thread",         OP_MAIN_COLLAPSE_THREAD,        "\033v" },
38035    { "collapse-all",            OP_MAIN_COLLAPSE_ALL,           "\033V" },
38036    { "copy-message",            OP_COPY_MESSAGE,                "C" },
38037 @@ -81,7 +85,15 @@
38038    { "edit",                    OP_EDIT_MESSAGE,                "e" },
38039    { "edit-type",               OP_EDIT_TYPE,                   "\005" },
38040    { "forward-message",         OP_FORWARD_MESSAGE,             "f" },
38041 -  { "flag-message",            OP_FLAG_MESSAGE,                "F" },
38042 +#ifdef USE_NNTP
38043 +  { "forward-to-group",                OP_FORWARD_TO_GROUP,            NULL },
38044 +  { "followup-message",                OP_FOLLOWUP,                    NULL },
38045 +  { "get-children",            OP_GET_CHILDREN,                NULL },
38046 +  { "get-message",             OP_GET_MESSAGE,                 NULL },
38047 +  { "get-parent",              OP_GET_PARENT,                  NULL },
38048 +  { "reconstruct-thread",      OP_RECONSTRUCT_THREAD,          NULL },
38049 +#endif
38050 +  { "flag-message",            OP_FLAG_MESSAGE,                "F" },
38051    { "group-reply",             OP_GROUP_REPLY,                 "g" },
38052  #ifdef USE_POP
38053    { "fetch-mail",              OP_MAIN_FETCH_MAIL,             "G" },
38054 @@ -108,6 +120,9 @@
38055    { "sort-mailbox",            OP_SORT,                        "o" },
38056    { "sort-reverse",            OP_SORT_REVERSE,                "O" },
38057    { "print-message",           OP_PRINT,                       "p" },
38058 +#ifdef USE_NNTP
38059 +  { "post-message",            OP_POST,                        NULL },
38060 +#endif
38061    { "previous-thread",         OP_MAIN_PREV_THREAD,            "\020" },
38062    { "previous-subthread",      OP_MAIN_PREV_SUBTHREAD,         "\033p" },
38063    { "recall-message",          OP_RECALL_MESSAGE,              "R" },
38064 @@ -127,6 +142,10 @@
38065    { "show-version",            OP_VERSION,                     "V" },
38066    { "set-flag",                        OP_MAIN_SET_FLAG,               "w" },
38067    { "clear-flag",              OP_MAIN_CLEAR_FLAG,             "W" },
38068 +  { "toggle-read",             OP_TOGGLE_READ,                 NULL },
38069 +#ifdef USE_NNTP
38070 +  { "catchup",                 OP_CATCHUP,                     NULL },
38071 +#endif
38072    { "display-message",         OP_DISPLAY_MESSAGE,             M_ENTER_S },
38073    { "sync-mailbox",            OP_MAIN_SYNC_FOLDER,            "$" },
38074    { "display-address",         OP_DISPLAY_ADDRESS,             "@" },
38075 @@ -158,6 +177,10 @@
38076    { "bounce-message",  OP_BOUNCE_MESSAGE,              "b" },
38077    { "change-folder",   OP_MAIN_CHANGE_FOLDER,          "c" },
38078    { "change-folder-readonly",  OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
38079 +#ifdef USE_NNTP
38080 +  { "change-newsgroup",                OP_MAIN_CHANGE_GROUP,           NULL },
38081 +  { "change-newsgroup-readonly",OP_MAIN_CHANGE_GROUP_READONLY, NULL },
38082 +#endif
38083    { "copy-message",    OP_COPY_MESSAGE,                "C" },
38084    { "decode-copy",     OP_DECODE_COPY,                 "\033C" },
38085    { "delete-message",  OP_DELETE,                      "d" },
38086 @@ -165,8 +188,12 @@
38087    { "delete-subthread",        OP_DELETE_SUBTHREAD,            "\033d" },
38088    { "edit",            OP_EDIT_MESSAGE,                "e" },
38089    { "edit-type",       OP_EDIT_TYPE,                   "\005" },
38090 +#ifdef USE_NNTP
38091 +  { "followup-message",        OP_FOLLOWUP,                    NULL },
38092 +  { "forward-to-group",        OP_FORWARD_TO_GROUP,            NULL },
38093 +#endif
38094    { "forward-message", OP_FORWARD_MESSAGE,             "f" },
38095 -  { "flag-message",    OP_FLAG_MESSAGE,                "F" },
38096 +  { "flag-message",    OP_FLAG_MESSAGE,                "F" },
38097    { "group-reply",     OP_GROUP_REPLY,                 "g" },
38098  #ifdef USE_IMAP
38099    { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,            NULL },
38100 @@ -185,6 +212,9 @@
38101    { "next-thread",     OP_MAIN_NEXT_THREAD,            "\016" },
38102    { "next-subthread",  OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
38103    { "print-message",   OP_PRINT,                       "p" },
38104 +#ifdef USE_NNTP
38105 +  { "post-message",    OP_POST,                        NULL },
38106 +#endif
38107    { "previous-thread", OP_MAIN_PREV_THREAD,            "\020" },
38108    { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,       "\033p" },
38109    { "purge-message",   OP_PURGE_MESSAGE,               NULL },
38110 @@ -252,6 +282,10 @@
38111    { "bounce-message",  OP_BOUNCE_MESSAGE,              "b" },
38112    { "display-toggle-weed",     OP_DISPLAY_HEADERS,     "h" },
38113    { "edit-type",       OP_EDIT_TYPE,                   "\005" },
38114 +#ifdef USE_NNTP
38115 +  { "followup-message",        OP_FOLLOWUP,                    NULL },
38116 +  { "forward-to-group",        OP_FORWARD_TO_GROUP,            NULL },
38117 +#endif
38118    { "print-entry",     OP_PRINT,                       "p" },
38119    { "save-entry",      OP_SAVE,                        "s" },
38120    { "pipe-entry",      OP_PIPE,                        "|" },
38121 @@ -282,6 +316,7 @@
38122  struct binding_t OpCompose[] = {
38123    { "attach-file",     OP_COMPOSE_ATTACH_FILE,         "a" },
38124    { "attach-message",  OP_COMPOSE_ATTACH_MESSAGE,      "A" },
38125 +  { "attach-news-message",OP_COMPOSE_ATTACH_NEWS_MESSAGE,NULL },
38126    { "edit-bcc",                OP_COMPOSE_EDIT_BCC,            "b" },
38127    { "edit-cc",         OP_COMPOSE_EDIT_CC,             "c" },
38128    { "copy-file",       OP_SAVE,                        "C" },
38129 @@ -301,6 +336,11 @@
38130    { "print-entry",     OP_PRINT,                       "l" },
38131    { "edit-mime",       OP_COMPOSE_EDIT_MIME,           "m" },
38132    { "new-mime",                OP_COMPOSE_NEW_MIME,            "n" },
38133 +#ifdef USE_NNTP
38134 +  { "edit-newsgroups", OP_COMPOSE_EDIT_NEWSGROUPS,     NULL },
38135 +  { "edit-followup-to",        OP_COMPOSE_EDIT_FOLLOWUP_TO,    NULL },
38136 +  { "edit-x-comment-to",OP_COMPOSE_EDIT_X_COMMENT_TO,  NULL },
38137 +#endif
38138    { "postpone-message",        OP_COMPOSE_POSTPONE_MESSAGE,    "P" },
38139    { "edit-reply-to",   OP_COMPOSE_EDIT_REPLY_TO,       "r" },
38140    { "rename-file",     OP_COMPOSE_RENAME_FILE,         "R" },
38141 @@ -352,12 +392,23 @@
38142    { "select-new",      OP_BROWSER_NEW_FILE,    "N" },
38143    { "check-new",       OP_CHECK_NEW,           NULL },
38144    { "toggle-mailboxes", OP_TOGGLE_MAILBOXES,   "\t" },
38145 +#ifdef USE_NNTP
38146 +  { "reload-active",   OP_LOAD_ACTIVE,         NULL},
38147 +  { "subscribe-pattern", OP_SUBSCRIBE_PATTERN, NULL },
38148 +  { "unsubscribe-pattern", OP_UNSUBSCRIBE_PATTERN, NULL },
38149 +  { "catchup",         OP_CATCHUP,             NULL },
38150 +  { "uncatchup",       OP_UNCATCHUP,           NULL },
38151 +#endif
38152    { "view-file",       OP_BROWSER_VIEW_FILE,   " " },
38153  #ifdef USE_IMAP
38154    { "create-mailbox",   OP_CREATE_MAILBOX,      "C" },
38155    { "delete-mailbox",   OP_DELETE_MAILBOX,      "d" },
38156 +#endif
38157 +#if defined USE_IMAP || defined USE_NNTP
38158    { "subscribe",       OP_BROWSER_SUBSCRIBE,   "s" },
38159    { "unsubscribe",     OP_BROWSER_UNSUBSCRIBE, "u" },
38160 +#endif
38161 +#ifdef USE_IMAP
38162    { "toggle-subscribed", OP_BROWSER_TOGGLE_LSUB, "T" },
38163  #endif
38164    { NULL,              0,                      NULL }
38165 diff -uNr mutt-1.4.orig/globals.h mutt-1.4/globals.h
38166 --- mutt-1.4.orig/globals.h     Sun Nov  3 21:42:52 2002
38167 +++ mutt-1.4/globals.h  Sun Nov  3 21:57:20 2002
38168 @@ -80,6 +80,15 @@
38169  #endif
38170  
38171  WHERE char *Muttrc INITVAL (NULL);
38172 +#ifdef USE_NNTP
38173 +WHERE char *NewsCacheDir;
38174 +WHERE char *GroupFormat;
38175 +WHERE char *Inews;
38176 +WHERE char *NewsServer;
38177 +WHERE char *NntpUser;
38178 +WHERE char *NntpPass;
38179 +WHERE char *NewsRc;
38180 +#endif
38181  WHERE char *Outbox;
38182  WHERE char *Pager;
38183  WHERE char *PagerFmt;
38184 @@ -146,6 +155,11 @@
38185  
38186  WHERE unsigned short Counter INITVAL (0);
38187  
38188 +#ifdef USE_NNTP
38189 +WHERE short NewsPollTimeout;
38190 +WHERE short NntpContext;
38191 +#endif
38192 +
38193  WHERE short ConnectTimeout;
38194  WHERE short FolderColumns;
38195  WHERE short HistSize;
38196 diff -uNr mutt-1.4.orig/hash.c mutt-1.4/hash.c
38197 --- mutt-1.4.orig/hash.c        Mon Nov 19 11:41:32 2001
38198 +++ mutt-1.4/hash.c     Sun Nov  3 21:57:20 2002
38199 @@ -47,10 +47,35 @@
38200    if (nelem == 0)
38201      nelem = 2;
38202    table->nelem = nelem;
38203 +  table->curnelem = 0;
38204    table->table = safe_calloc (nelem, sizeof (struct hash_elem *));
38205    return table;
38206  }
38207  
38208 +HASH *hash_resize (HASH *ptr, int nelem)
38209 +{
38210 +  HASH *table;
38211 +  struct hash_elem *elem, *tmp;
38212 +  int i;
38213 +
38214 +  table = hash_create (nelem);
38215 +
38216 +  for (i = 0; i < ptr->nelem; i++)
38217 +  {
38218 +    for (elem = ptr->table[i]; elem; )
38219 +    {
38220 +      tmp = elem;
38221 +      elem = elem->next;
38222 +      hash_insert (table, tmp->key, tmp->data, 1);
38223 +      safe_free ((void **) &tmp);
38224 +    }
38225 +  }
38226 +  safe_free ((void **) &ptr->table);
38227 +  safe_free ((void **) &ptr);
38228 +
38229 +  return table;
38230 +}
38231 +
38232  /* table        hash table to update
38233   * key          key to hash on
38234   * data         data to associate with `key'
38235 @@ -70,6 +95,7 @@
38236    {
38237      ptr->next = table->table[h];
38238      table->table[h] = ptr;
38239 +    table->curnelem++;
38240    }
38241    else
38242    {
38243 @@ -92,6 +118,7 @@
38244      else
38245        table->table[h] = ptr;
38246      ptr->next = tmp;
38247 +    table->curnelem++;
38248    }
38249    return h;
38250  }
38251 @@ -124,6 +151,7 @@
38252        *last = ptr->next;
38253        if (destroy) destroy (ptr->data);
38254        FREE (&ptr);
38255 +      table->curnelem--;
38256        return;
38257      }
38258    }
38259 diff -uNr mutt-1.4.orig/hash.h mutt-1.4/hash.h
38260 --- mutt-1.4.orig/hash.h        Fri Mar  3 11:10:08 2000
38261 +++ mutt-1.4/hash.h     Sun Nov  3 21:57:20 2002
38262 @@ -28,7 +28,7 @@
38263  
38264  typedef struct
38265  {
38266 -  int nelem;
38267 +  int nelem, curnelem;
38268    struct hash_elem **table;
38269  }
38270  HASH;
38271 @@ -40,6 +40,7 @@
38272  HASH *hash_create (int nelem);
38273  int hash_string (const unsigned char *s, int n);
38274  int hash_insert (HASH * table, const char *key, void *data, int allow_dup);
38275 +HASH *hash_resize (HASH * table, int nelem);
38276  void *hash_find_hash (const HASH * table, int hash, const char *key);
38277  void hash_delete_hash (HASH * table, int hash, const char *key, const void *data,
38278                        void (*destroy) (void *));
38279 diff -uNr mutt-1.4.orig/hdrline.c mutt-1.4/hdrline.c
38280 --- mutt-1.4.orig/hdrline.c     Sun Nov  3 21:42:52 2002
38281 +++ mutt-1.4/hdrline.c  Sun Nov  3 21:57:20 2002
38282 @@ -255,6 +255,7 @@
38283   * %E = number of messages in current thread
38284   * %f = entire from line
38285   * %F = like %n, unless from self
38286 + * %g = newsgroup name (if compiled with nntp support)
38287   * %i = message-id
38288   * %l = number of lines in the message
38289   * %L = like %F, except `lists' are displayed first
38290 @@ -268,6 +269,7 @@
38291   * %T = $to_chars
38292   * %u = user (login) name of author
38293   * %v = first name of author, unless from self
38294 + * %W = where user is (organization)
38295   * %y = `x-label:' field (if present)
38296   * %Y = `x-label:' field (if present, tree unfolded, and != parent's x-label)
38297   * %Z = status flags   */
38298 @@ -484,6 +486,12 @@
38299          optional = 0;
38300        break;
38301  
38302 +#ifdef USE_NNTP
38303 +    case 'g':
38304 +      mutt_format_s (dest, destlen, prefix, hdr->env->newsgroups ? hdr->env->newsgroups : "");
38305 +      break;
38306 +#endif
38307 +
38308      case 'i':
38309        mutt_format_s (dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : "<no.id>");
38310        break;
38311 @@ -655,6 +663,13 @@
38312        mutt_format_s (dest, destlen, prefix, buf2);
38313        break;
38314  
38315 +    case 'W':
38316 +      if (!optional)
38317 +       mutt_format_s (dest, destlen, prefix, hdr->env->organization ? hdr->env->organization : "");
38318 +      else if (!hdr->env->organization)
38319 +       optional = 0;
38320 +      break;
38321 +
38322      case 'Z':
38323      
38324        ch = ' ';
38325 diff -uNr mutt-1.4.orig/headers.c mutt-1.4/headers.c
38326 --- mutt-1.4.orig/headers.c     Mon Nov  5 22:19:33 2001
38327 +++ mutt-1.4/headers.c  Sun Nov  3 21:57:20 2002
38328 @@ -115,6 +115,9 @@
38329    msg->env = n; n = NULL;
38330  
38331    if (!msg->env->in_reply_to)
38332 +#ifdef USE_NNTP
38333 +  if (!option (OPTNEWSSEND))
38334 +#endif
38335      mutt_free_list (&msg->env->references);
38336  
38337    mutt_expand_aliases_env (msg->env);
38338 diff -uNr mutt-1.4.orig/imap/Makefile.in mutt-1.4/imap/Makefile.in
38339 --- mutt-1.4.orig/imap/Makefile.in      Wed May 29 11:31:24 2002
38340 +++ mutt-1.4/imap/Makefile.in   Sun Nov  3 21:57:30 2002
38341 @@ -1,6 +1,8 @@
38342 -# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
38343 +# Makefile.in generated by automake 1.6.3 from Makefile.am.
38344 +# @configure_input@
38345  
38346 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
38347 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
38348 +# Free Software Foundation, Inc.
38349  # This Makefile.in is free software; the Free Software Foundation
38350  # gives unlimited permission to copy and/or distribute it,
38351  # with or without modifications, as long as this notice is preserved.
38352 @@ -10,7 +12,7 @@
38353  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
38354  # PARTICULAR PURPOSE.
38355  
38356 -
38357 +@SET_MAKE@
38358  SHELL = @SHELL@
38359  
38360  srcdir = @srcdir@
38361 @@ -31,13 +33,9 @@
38362  mandir = @mandir@
38363  includedir = @includedir@
38364  oldincludedir = /usr/include
38365 -
38366 -DESTDIR =
38367 -
38368  pkgdatadir = $(datadir)/@PACKAGE@
38369  pkglibdir = $(libdir)/@PACKAGE@
38370  pkgincludedir = $(includedir)/@PACKAGE@
38371 -
38372  top_builddir = ..
38373  
38374  ACLOCAL = @ACLOCAL@
38375 @@ -45,12 +43,16 @@
38376  AUTOMAKE = @AUTOMAKE@
38377  AUTOHEADER = @AUTOHEADER@
38378  
38379 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38380  INSTALL = @INSTALL@
38381 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
38382 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
38383  INSTALL_DATA = @INSTALL_DATA@
38384 +install_sh_DATA = $(install_sh) -c -m 644
38385 +install_sh_PROGRAM = $(install_sh) -c
38386 +install_sh_SCRIPT = $(install_sh) -c
38387  INSTALL_SCRIPT = @INSTALL_SCRIPT@
38388 +INSTALL_HEADER = $(INSTALL_DATA)
38389  transform = @program_transform_name@
38390 -
38391  NORMAL_INSTALL = :
38392  PRE_INSTALL = :
38393  POST_INSTALL = :
38394 @@ -59,6 +61,14 @@
38395  POST_UNINSTALL = :
38396  host_alias = @host_alias@
38397  host_triplet = @host@
38398 +
38399 +EXEEXT = @EXEEXT@
38400 +OBJEXT = @OBJEXT@
38401 +PATH_SEPARATOR = @PATH_SEPARATOR@
38402 +AMTAR = @AMTAR@
38403 +
38404 +AR = @AR@
38405 +AWK = @AWK@
38406  BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
38407  CATALOGS = @CATALOGS@
38408  CATOBJEXT = @CATOBJEXT@
38409 @@ -67,6 +77,7 @@
38410  DATADIRNAME = @DATADIRNAME@
38411  DBX = @DBX@
38412  DEBUGGER = @DEBUGGER@
38413 +DEPDIR = @DEPDIR@
38414  DOTLOCK_GROUP = @DOTLOCK_GROUP@
38415  DOTLOCK_PERMISSION = @DOTLOCK_PERMISSION@
38416  DOTLOCK_TARGET = @DOTLOCK_TARGET@
38417 @@ -75,6 +86,7 @@
38418  GLIBC21 = @GLIBC21@
38419  GMOFILES = @GMOFILES@
38420  GMSGFMT = @GMSGFMT@
38421 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38422  INSTOBJEXT = @INSTOBJEXT@
38423  INTLBISON = @INTLBISON@
38424  INTLLIBS = @INTLLIBS@
38425 @@ -85,7 +97,6 @@
38426  LIBICONV = @LIBICONV@
38427  LIBIMAP = @LIBIMAP@
38428  LIBIMAPDEPS = @LIBIMAPDEPS@
38429 -MAKEINFO = @MAKEINFO@
38430  MKINSTALLDIRS = @MKINSTALLDIRS@
38431  MSGFMT = @MSGFMT@
38432  MUTTLIBS = @MUTTLIBS@
38433 @@ -98,18 +109,21 @@
38434  RANLIB = @RANLIB@
38435  SDB = @SDB@
38436  SENDMAIL = @SENDMAIL@
38437 +STRIP = @STRIP@
38438  SUBVERSION = @SUBVERSION@
38439  U = @U@
38440  USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
38441  USE_NLS = @USE_NLS@
38442  VERSION = @VERSION@
38443 +am__include = @am__include@
38444 +am__quote = @am__quote@
38445  docdir = @docdir@
38446 -
38447 -AR = @AR@
38448 +install_sh = @install_sh@
38449  
38450  AUTOMAKE_OPTIONS = foreign
38451  
38452  @USE_GSS_TRUE@GSSSOURCES = auth_gss.c
38453 +
38454  @USE_SASL_TRUE@AUTHENTICATORS = auth_sasl.c
38455  @USE_SASL_FALSE@AUTHENTICATORS = auth_anon.c auth_cram.c
38456  
38457 @@ -120,206 +134,241 @@
38458  noinst_LIBRARIES = libimap.a
38459  noinst_HEADERS = auth.h imap_private.h message.h
38460  
38461 -libimap_a_SOURCES = auth.c auth_login.c browse.c command.c imap.c imap.h       message.c utf7.c util.c $(AUTHENTICATORS) $(GSSSOURCES)
38462 +libimap_a_SOURCES = auth.c auth_login.c browse.c command.c imap.c imap.h \
38463 +       message.c utf7.c util.c $(AUTHENTICATORS) $(GSSSOURCES)
38464  
38465 +subdir = imap
38466  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38467 -CONFIG_HEADER = ../config.h
38468 -CONFIG_CLEAN_FILES = 
38469 -LIBRARIES =  $(noinst_LIBRARIES)
38470 +CONFIG_HEADER = $(top_builddir)/config.h
38471 +CONFIG_CLEAN_FILES =
38472 +LIBRARIES = $(noinst_LIBRARIES)
38473 +
38474 +libimap_a_AR = $(AR) cru
38475 +libimap_a_LIBADD =
38476 +@USE_SASL_TRUE@am__objects_1 = auth_sasl.$(OBJEXT)
38477 +@USE_SASL_FALSE@am__objects_1 = auth_anon.$(OBJEXT) auth_cram.$(OBJEXT)
38478 +@USE_GSS_TRUE@am__objects_2 = auth_gss.$(OBJEXT)
38479 +am_libimap_a_OBJECTS = auth.$(OBJEXT) auth_login.$(OBJEXT) \
38480 +       browse.$(OBJEXT) command.$(OBJEXT) imap.$(OBJEXT) \
38481 +       message.$(OBJEXT) utf7.$(OBJEXT) util.$(OBJEXT) \
38482 +       $(am__objects_1) $(am__objects_2)
38483 +libimap_a_OBJECTS = $(am_libimap_a_OBJECTS)
38484  
38485 -
38486 -DEFS = @DEFS@ -I. -I$(srcdir) -I..
38487 +DEFS = @DEFS@
38488 +DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
38489  CPPFLAGS = @CPPFLAGS@
38490  LDFLAGS = @LDFLAGS@
38491  LIBS = @LIBS@
38492 -libimap_a_LIBADD = 
38493 -@USE_SASL_TRUE@@USE_GSS_TRUE@libimap_a_OBJECTS =  auth.o auth_login.o \
38494 -@USE_SASL_TRUE@@USE_GSS_TRUE@browse.o command.o imap.o message.o utf7.o \
38495 -@USE_SASL_TRUE@@USE_GSS_TRUE@util.o auth_sasl.o auth_gss.o
38496 -@USE_SASL_FALSE@@USE_GSS_TRUE@libimap_a_OBJECTS =  auth.o auth_login.o \
38497 -@USE_SASL_FALSE@@USE_GSS_TRUE@browse.o command.o imap.o message.o \
38498 -@USE_SASL_FALSE@@USE_GSS_TRUE@utf7.o util.o auth_anon.o auth_cram.o \
38499 -@USE_SASL_FALSE@@USE_GSS_TRUE@auth_gss.o
38500 -@USE_SASL_FALSE@@USE_GSS_FALSE@libimap_a_OBJECTS =  auth.o auth_login.o \
38501 -@USE_SASL_FALSE@@USE_GSS_FALSE@browse.o command.o imap.o message.o \
38502 -@USE_SASL_FALSE@@USE_GSS_FALSE@utf7.o util.o auth_anon.o auth_cram.o
38503 -@USE_SASL_TRUE@@USE_GSS_FALSE@libimap_a_OBJECTS =  auth.o auth_login.o \
38504 -@USE_SASL_TRUE@@USE_GSS_FALSE@browse.o command.o imap.o message.o \
38505 -@USE_SASL_TRUE@@USE_GSS_FALSE@utf7.o util.o auth_sasl.o
38506 -CFLAGS = @CFLAGS@
38507 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
38508 +depcomp = $(SHELL) $(top_srcdir)/depcomp
38509 +am__depfiles_maybe = depfiles
38510 +@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/auth.Po ./$(DEPDIR)/auth_anon.Po \
38511 +@AMDEP_TRUE@   ./$(DEPDIR)/auth_cram.Po ./$(DEPDIR)/auth_gss.Po \
38512 +@AMDEP_TRUE@   ./$(DEPDIR)/auth_login.Po ./$(DEPDIR)/auth_sasl.Po \
38513 +@AMDEP_TRUE@   ./$(DEPDIR)/browse.Po ./$(DEPDIR)/command.Po \
38514 +@AMDEP_TRUE@   ./$(DEPDIR)/imap.Po ./$(DEPDIR)/message.Po \
38515 +@AMDEP_TRUE@   ./$(DEPDIR)/utf7.Po ./$(DEPDIR)/util.Po
38516 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
38517 +       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
38518  CCLD = $(CC)
38519 -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
38520 -HEADERS =  $(noinst_HEADERS)
38521 -
38522 -DIST_COMMON =  README Makefile.am Makefile.in TODO
38523 -
38524 -
38525 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
38526 +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
38527 +CFLAGS = @CFLAGS@
38528 +DIST_SOURCES = $(libimap_a_SOURCES)
38529 +HEADERS = $(noinst_HEADERS)
38530  
38531 -TAR = tar
38532 -GZIP_ENV = --best
38533 +DIST_COMMON = README $(noinst_HEADERS) Makefile.am Makefile.in TODO
38534  SOURCES = $(libimap_a_SOURCES)
38535 -OBJECTS = $(libimap_a_OBJECTS)
38536 -
38537 -all: all-redirect
38538 -.SUFFIXES:
38539 -.SUFFIXES: .S .c .o .s
38540 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
38541 -       cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps imap/Makefile
38542 -
38543 -Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
38544 -       cd $(top_builddir) \
38545 -         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
38546  
38547 +all: all-am
38548  
38549 -mostlyclean-noinstLIBRARIES:
38550 +.SUFFIXES:
38551 +.SUFFIXES: .c .o .obj
38552 +$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
38553 +       cd $(top_srcdir) && \
38554 +         $(AUTOMAKE) --foreign  imap/Makefile
38555 +Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
38556 +       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
38557  
38558  clean-noinstLIBRARIES:
38559         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
38560 -
38561 -distclean-noinstLIBRARIES:
38562 -
38563 -maintainer-clean-noinstLIBRARIES:
38564 -
38565 -.c.o:
38566 -       $(COMPILE) -c $<
38567 -
38568 -.s.o:
38569 -       $(COMPILE) -c $<
38570 -
38571 -.S.o:
38572 -       $(COMPILE) -c $<
38573 +libimap.a: $(libimap_a_OBJECTS) $(libimap_a_DEPENDENCIES) 
38574 +       -rm -f libimap.a
38575 +       $(libimap_a_AR) libimap.a $(libimap_a_OBJECTS) $(libimap_a_LIBADD)
38576 +       $(RANLIB) libimap.a
38577  
38578  mostlyclean-compile:
38579 -       -rm -f *.o core *.core
38580 -
38581 -clean-compile:
38582 +       -rm -f *.$(OBJEXT) core *.core
38583  
38584  distclean-compile:
38585         -rm -f *.tab.c
38586  
38587 -maintainer-clean-compile:
38588 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth.Po@am__quote@
38589 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth_anon.Po@am__quote@
38590 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth_cram.Po@am__quote@
38591 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth_gss.Po@am__quote@
38592 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth_login.Po@am__quote@
38593 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth_sasl.Po@am__quote@
38594 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browse.Po@am__quote@
38595 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/command.Po@am__quote@
38596 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imap.Po@am__quote@
38597 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/message.Po@am__quote@
38598 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf7.Po@am__quote@
38599 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@
38600  
38601 -libimap.a: $(libimap_a_OBJECTS) $(libimap_a_DEPENDENCIES)
38602 -       -rm -f libimap.a
38603 -       $(AR) cru libimap.a $(libimap_a_OBJECTS) $(libimap_a_LIBADD)
38604 -       $(RANLIB) libimap.a
38605 +distclean-depend:
38606 +       -rm -rf ./$(DEPDIR)
38607 +
38608 +.c.o:
38609 +@AMDEP_TRUE@   source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
38610 +@AMDEP_TRUE@   depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
38611 +@AMDEP_TRUE@   $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
38612 +       $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
38613 +
38614 +.c.obj:
38615 +@AMDEP_TRUE@   source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
38616 +@AMDEP_TRUE@   depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
38617 +@AMDEP_TRUE@   $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
38618 +       $(COMPILE) -c `cygpath -w $<`
38619 +CCDEPMODE = @CCDEPMODE@
38620 +uninstall-info-am:
38621 +
38622 +ETAGS = etags
38623 +ETAGSFLAGS =
38624  
38625  tags: TAGS
38626  
38627 -ID: $(HEADERS) $(SOURCES) $(LISP)
38628 -       list='$(SOURCES) $(HEADERS)'; \
38629 -       unique=`for i in $$list; do echo $$i; done | \
38630 -         awk '    { files[$$0] = 1; } \
38631 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
38632 +       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
38633 +       unique=`for i in $$list; do \
38634 +           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38635 +         done | \
38636 +         $(AWK) '    { files[$$0] = 1; } \
38637                END { for (i in files) print i; }'`; \
38638 -       here=`pwd` && cd $(srcdir) \
38639 -         && mkid -f$$here/ID $$unique $(LISP)
38640 +       mkid -fID $$unique
38641  
38642 -TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
38643 +TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
38644 +               $(TAGS_FILES) $(LISP)
38645         tags=; \
38646         here=`pwd`; \
38647 -       list='$(SOURCES) $(HEADERS)'; \
38648 -       unique=`for i in $$list; do echo $$i; done | \
38649 -         awk '    { files[$$0] = 1; } \
38650 +       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
38651 +       unique=`for i in $$list; do \
38652 +           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
38653 +         done | \
38654 +         $(AWK) '    { files[$$0] = 1; } \
38655                END { for (i in files) print i; }'`; \
38656 -       test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
38657 -         || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
38658 -
38659 -mostlyclean-tags:
38660 -
38661 -clean-tags:
38662 +       test -z "$(ETAGS_ARGS)$$tags$$unique" \
38663 +         || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
38664 +            $$tags $$unique
38665 +
38666 +GTAGS:
38667 +       here=`$(am__cd) $(top_builddir) && pwd` \
38668 +         && cd $(top_srcdir) \
38669 +         && gtags -i $(GTAGS_ARGS) $$here
38670  
38671  distclean-tags:
38672 -       -rm -f TAGS ID
38673 +       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
38674 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38675  
38676 -maintainer-clean-tags:
38677 -
38678 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
38679 -
38680 -subdir = imap
38681 +top_distdir = ..
38682 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
38683  
38684  distdir: $(DISTFILES)
38685 -       @for file in $(DISTFILES); do \
38686 -         d=$(srcdir); \
38687 +       @list='$(DISTFILES)'; for file in $$list; do \
38688 +         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38689 +         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38690 +         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38691 +           dir="/$$dir"; \
38692 +           $(mkinstalldirs) "$(distdir)$$dir"; \
38693 +         else \
38694 +           dir=''; \
38695 +         fi; \
38696           if test -d $$d/$$file; then \
38697 -           cp -pr $$d/$$file $(distdir)/$$file; \
38698 +           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38699 +             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38700 +           fi; \
38701 +           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38702           else \
38703             test -f $(distdir)/$$file \
38704 -           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38705 -           || cp -p $$d/$$file $(distdir)/$$file || :; \
38706 +           || cp -p $$d/$$file $(distdir)/$$file \
38707 +           || exit 1; \
38708           fi; \
38709         done
38710 -
38711 -info-am:
38712 -info: info-am
38713 -dvi-am:
38714 -dvi: dvi-am
38715  check-am: all-am
38716  check: check-am
38717 -installcheck-am:
38718 -installcheck: installcheck-am
38719 -install-exec-am:
38720 -install-exec: install-exec-am
38721 +all-am: Makefile $(LIBRARIES) $(HEADERS)
38722  
38723 -install-data-am:
38724 -install-data: install-data-am
38725 +installdirs:
38726  
38727 -install-am: all-am
38728 -       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38729  install: install-am
38730 -uninstall-am:
38731 +install-exec: install-exec-am
38732 +install-data: install-data-am
38733  uninstall: uninstall-am
38734 -all-am: Makefile $(LIBRARIES) $(HEADERS)
38735 -all-redirect: all-am
38736 -install-strip:
38737 -       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38738 -installdirs:
38739  
38740 +install-am: all-am
38741 +       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38742  
38743 +installcheck: installcheck-am
38744 +install-strip:
38745 +       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38746 +         INSTALL_STRIP_FLAG=-s \
38747 +         `test -z '$(STRIP)' || \
38748 +           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38749  mostlyclean-generic:
38750  
38751  clean-generic:
38752  
38753  distclean-generic:
38754         -rm -f Makefile $(CONFIG_CLEAN_FILES)
38755 -       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38756  
38757  maintainer-clean-generic:
38758 -mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
38759 -               mostlyclean-tags mostlyclean-generic
38760 +       @echo "This command is intended for maintainers to use"
38761 +       @echo "it deletes files that may require special tools to rebuild."
38762 +clean: clean-am
38763  
38764 -mostlyclean: mostlyclean-am
38765 +clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
38766  
38767 -clean-am:  clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
38768 -               mostlyclean-am
38769 +distclean: distclean-am
38770  
38771 -clean: clean-am
38772 +distclean-am: clean-am distclean-compile distclean-depend \
38773 +       distclean-generic distclean-tags
38774  
38775 -distclean-am:  distclean-noinstLIBRARIES distclean-compile \
38776 -               distclean-tags distclean-generic clean-am
38777 +dvi: dvi-am
38778  
38779 -distclean: distclean-am
38780 +dvi-am:
38781  
38782 -maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
38783 -               maintainer-clean-compile maintainer-clean-tags \
38784 -               maintainer-clean-generic distclean-am
38785 -       @echo "This command is intended for maintainers to use;"
38786 -       @echo "it deletes files that may require special tools to rebuild."
38787 +info: info-am
38788 +
38789 +info-am:
38790 +
38791 +install-data-am:
38792 +
38793 +install-exec-am:
38794 +
38795 +install-info: install-info-am
38796 +
38797 +install-man:
38798 +
38799 +installcheck-am:
38800  
38801  maintainer-clean: maintainer-clean-am
38802  
38803 -.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
38804 -clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
38805 -mostlyclean-compile distclean-compile clean-compile \
38806 -maintainer-clean-compile tags mostlyclean-tags distclean-tags \
38807 -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
38808 -check-am installcheck-am installcheck install-exec-am install-exec \
38809 -install-data-am install-data install-am install uninstall-am uninstall \
38810 -all-redirect all-am all installdirs mostlyclean-generic \
38811 -distclean-generic clean-generic maintainer-clean-generic clean \
38812 -mostlyclean distclean maintainer-clean
38813 +maintainer-clean-am: distclean-am maintainer-clean-generic
38814 +
38815 +mostlyclean: mostlyclean-am
38816 +
38817 +mostlyclean-am: mostlyclean-compile mostlyclean-generic
38818 +
38819 +uninstall-am: uninstall-info-am
38820  
38821 +.PHONY: GTAGS all all-am check check-am clean clean-generic \
38822 +       clean-noinstLIBRARIES distclean distclean-compile \
38823 +       distclean-depend distclean-generic distclean-tags distdir dvi \
38824 +       dvi-am info info-am install install-am install-data \
38825 +       install-data-am install-exec install-exec-am install-info \
38826 +       install-info-am install-man install-strip installcheck \
38827 +       installcheck-am installdirs maintainer-clean \
38828 +       maintainer-clean-generic mostlyclean mostlyclean-compile \
38829 +       mostlyclean-generic tags uninstall uninstall-am \
38830 +       uninstall-info-am
38831  
38832  # Tell versions [3.59,3.63) of GNU make to not export all variables.
38833  # Otherwise a system limit (for SysV at least) may be exceeded.
38834 diff -uNr mutt-1.4.orig/init.c mutt-1.4/init.c
38835 --- mutt-1.4.orig/init.c        Sun Nov  3 21:42:51 2002
38836 +++ mutt-1.4/init.c     Sun Nov  3 21:57:20 2002
38837 @@ -1789,6 +1789,28 @@
38838    else
38839      Fqdn = safe_strdup(NONULL(Hostname));
38840  
38841 +#ifdef USE_NNTP
38842 +  {
38843 +    FILE *f;
38844 +    char *i;
38845 +
38846 +    if ((f = safe_fopen (SYSCONFDIR "/nntpserver", "r")))
38847 +    {
38848 +      buffer[0] = '\0';
38849 +      fgets (buffer, sizeof (buffer), f);
38850 +      p = &buffer;
38851 +      SKIPWS (p);
38852 +      i = p;
38853 +      while (*i && (*i != ' ') && (*i != '\t') && (*i != '\r') && (*i != '\n')) i++;
38854 +      *i = '\0';
38855 +      NewsServer = safe_strdup (p);
38856 +      fclose (f);
38857 +    }
38858 +  }
38859 +  if ((p = getenv ("NNTPSERVER")))
38860 +    NewsServer = safe_strdup (p);
38861 +#endif
38862 +
38863    if ((p = getenv ("MAIL")))
38864      Spoolfile = safe_strdup (p);
38865    else if ((p = getenv ("MAILDIR")))
38866 diff -uNr mutt-1.4.orig/init.h mutt-1.4/init.h
38867 --- mutt-1.4.orig/init.h        Sun Nov  3 21:42:52 2002
38868 +++ mutt-1.4/init.h     Sun Nov  3 21:57:20 2002
38869 @@ -193,6 +193,20 @@
38870    ** If set, Mutt will prompt you for carbon-copy (Cc) recipients before
38871    ** editing the body of an outgoing message.
38872    */  
38873 +#ifdef USE_NNTP
38874 +  { "ask_follow_up",   DT_BOOL, R_NONE, OPTASKFOLLOWUP, 0 },
38875 +  /*
38876 +  ** .pp
38877 +  ** If set, Mutt will prompt you for follow-up groups before editing
38878 +  ** the body of an outgoing message.
38879 +  */  
38880 +  { "ask_x_comment_to",        DT_BOOL, R_NONE, OPTASKXCOMMENTTO, 0 },
38881 +  /*
38882 +  ** .pp
38883 +  ** If set, Mutt will prompt you for x-comment-to field before editing
38884 +  ** the body of an outgoing message.
38885 +  */  
38886 +#endif
38887    { "attach_format",   DT_STR,  R_NONE, UL &AttachFormat, UL "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " },
38888    /*
38889    ** .pp
38890 @@ -273,6 +287,14 @@
38891    ** When this variable is set, mutt will include Delivered-To headers when
38892    ** bouncing messages.  Postfix users may wish to unset this variable.
38893    */
38894 +#ifdef USE_NNTP
38895 +  { "catchup_newsgroup", DT_QUAD, R_NONE, OPT_CATCHUP, M_ASKYES },
38896 +  /*
38897 +  ** .pp
38898 +  ** If this variable is \fIset\fP, Mutt will mark all articles in newsgroup
38899 +  ** as read when you quit the newsgroup (catchup newsgroup).
38900 +  */
38901 +#endif
38902    { "charset",         DT_STR,  R_NONE, UL &Charset, UL 0 },
38903    /*
38904    ** .pp
38905 @@ -565,6 +587,16 @@
38906    ** subscribed list will be sent to both the list and your address,
38907    ** resulting in two copies of the same email for you.
38908    */
38909 +#ifdef USE_NNTP
38910 +  { "followup_to_poster", DT_QUAD, R_NONE, OPT_FOLLOWUPTOPOSTER, M_ASKYES },
38911 +  /*
38912 +  ** .pp
38913 +  ** If this variable is \fIset\fP and the keyword "poster" is present in
38914 +  ** \fIFollowup-To\fP header, follow-up to newsgroup function is not
38915 +  ** permitted.  The message will be mailed to the submitter of the
38916 +  ** message via mail.
38917 +  */
38918 +#endif
38919    { "force_name",      DT_BOOL, R_NONE, OPTFORCENAME, 0 },
38920    /*
38921    ** .pp
38922 @@ -628,6 +660,27 @@
38923    ** a regular expression that will match the whole name so mutt will expand
38924    ** "Franklin" to "Franklin, Steve".
38925    */
38926 +#ifdef USE_NNTP
38927 +  { "group_index_format", DT_STR, R_BOTH, UL &GroupFormat, UL "%4C %M%N %5s  %-45.45f %d" },
38928 +  /*
38929 +  ** .pp
38930 +  ** This variable allows you to customize the newsgroup browser display to
38931 +  ** your personal taste.  This string is similar to ``$index_format'', but
38932 +  ** has its own set of printf()-like sequences:
38933 +  ** .pp
38934 +  ** .ts
38935 +  ** %C      current newsgroup number
38936 +  ** %d      description of newsgroup (becomes from server)
38937 +  ** %f      newsgroup name
38938 +  ** %M      - if newsgroup not allowed for direct post (moderated for example)
38939 +  ** %N      N if newsgroup is new, u if unsubscribed, blank otherwise
38940 +  ** %n      number of new articles in newsgroup
38941 +  ** %s      number of unread articles in newsgroup
38942 +  ** %>X     right justify the rest of the string and pad with character "X"
38943 +  ** %|X     pad to the end of the line with character "X"
38944 +  ** .te
38945 +  */
38946 +#endif
38947    { "hdr_format",      DT_SYN,  R_NONE, UL "index_format", 0 },
38948    /*
38949    */
38950 @@ -874,6 +927,7 @@
38951    ** .dt %E .dd number of messages in current thread
38952    ** .dt %f .dd entire From: line (address + real name)
38953    ** .dt %F .dd author name, or recipient name if the message is from you
38954 +  ** .dt %g .dd newsgroup name (if compiled with nntp support)
38955    ** .dt %i .dd message-id of the current message
38956    ** .dt %l .dd number of lines in the message
38957    ** .dt %L .dd If an address in the To or CC header field matches an address
38958 @@ -891,6 +945,7 @@
38959    ** .dt %T .dd the appropriate character from the $$to_chars string
38960    ** .dt %u .dd user (login) name of the author
38961    ** .dt %v .dd first name of the author, or the recipient if the message is from you
38962 +  ** .dt %W .dd name of organization of author (`organization:' field)
38963    ** .dt %y .dd `x-label:' field, if present
38964    ** .dt %Y .dd `x-label' field, if present, and (1) not at part of a thread tree,
38965    **            (2) at the top of a thread, or (3) `x-label' is different from
38966 @@ -913,6 +968,21 @@
38967    ** .pp
38968    ** See also: ``$$to_chars''.
38969    */
38970 +#ifdef USE_NNTP
38971 +  { "inews",          DT_PATH, R_NONE, UL &Inews, UL "" },
38972 +  /*
38973 +  ** .pp
38974 +  ** If set, specifies the program and arguments used to deliver news posted
38975 +  ** by Mutt.  Otherwise, mutt posts article using current connection to
38976 +  ** news server.  The following printf-style sequence is understood:
38977 +  ** .pp
38978 +  ** .ts
38979 +  ** %s      newsserver name
38980 +  ** .te
38981 +  ** .pp
38982 +  ** Example: set inews="/usr/local/bin/inews -hS"
38983 +  */
38984 +#endif
38985    { "ispell",          DT_PATH, R_NONE, UL &Ispell, UL ISPELL },
38986    /*
38987    ** .pp
38988 @@ -1077,6 +1147,16 @@
38989    ** be attached to the newly composed message if this option is set.
38990    */
38991  
38992 +#ifdef USE_NNTP
38993 +  { "mime_subject",   DT_BOOL, R_NONE, OPTMIMESUBJECT, 1 },
38994 +  /*
38995 +  ** .pp
38996 +  ** If \fIunset\fP, 8-bit ``subject:'' line in article header will not be
38997 +  ** encoded according to RFC2047 to base64.  This is useful when message
38998 +  ** is Usenet article, because MIME for news is nonstandard feature.
38999 +  */
39000 +#endif
39001 +
39002  #ifdef MIXMASTER
39003    { "mix_entry_format", DT_STR,  R_NONE, UL &MixEntryFormat, UL "%4n %c %-16s %a" },
39004    /*
39005 @@ -1128,6 +1208,77 @@
39006    ** to allow more room the tree and message subjects.  This is useful on
39007    ** narrow screens.
39008    */
39009 +#ifdef USE_NNTP
39010 +  { "news_cache_dir", DT_PATH, R_NONE, UL &NewsCacheDir, UL "~/.mutt" },
39011 +  /*
39012 +  ** .pp
39013 +  ** This variable pointing to directory where Mutt will save cached news
39014 +  ** articles headers in. If \fIunset\fP, headers will not be saved at all
39015 +  ** and will be reloaded each time when you enter to newsgroup.
39016 +  */
39017 +  { "news_server",    DT_STR,  R_NONE, UL &NewsServer, 0 },
39018 +  /*
39019 +  ** .pp
39020 +  ** This variable specifies domain name or address of NNTP server. It
39021 +  ** defaults to the newsserver specified in the environment variable
39022 +  ** $$$NNTPSERVER or contained in the file /etc/nntpserver.  You can also
39023 +  ** specify username and an alternative port for each newsserver, ie:
39024 +  ** .pp
39025 +  ** [nntp[s]://][username[:password]@]newsserver[:port]
39026 +  */
39027 +  { "newsrc",         DT_PATH, R_NONE, UL &NewsRc, UL "~/.newsrc" },
39028 +  /*
39029 +  ** .pp
39030 +  ** The file, containing info about subscribed newsgroups - names and
39031 +  ** indexes of read articles.  The following printf-style sequence
39032 +  ** is understood:
39033 +  ** .pp
39034 +  ** .ts
39035 +  ** %s      newsserver name
39036 +  ** .te
39037 +  */
39038 +  { "nntp_context",   DT_NUM,  R_NONE, UL &NntpContext, 1000 },
39039 +  /*
39040 +  ** .pp
39041 +  ** This variable defines number of articles which will be in index when
39042 +  ** newsgroup entered.  If active newsgroup have more articles than this
39043 +  ** number, oldest articles will be ignored.  Also controls how many
39044 +  ** articles headers will be saved in cache when you quit newsgroup.
39045 +  */
39046 +  { "nntp_load_description", DT_BOOL, R_NONE, OPTLOADDESC, 1 },
39047 +  /*
39048 +  ** .pp
39049 +  ** This variable controls whether or not descriptions for each newsgroup
39050 +  ** must be loaded when newsgroup is added to list (first time list
39051 +  ** loading or new newsgroup adding).
39052 +  */
39053 +  { "nntp_user",      DT_STR,  R_NONE, UL &NntpUser, UL "" },
39054 +  /*
39055 +  ** .pp
39056 +  ** Your login name on the NNTP server.  If \fIunset\fP and NNTP server requires
39057 +  ** authentification, Mutt will prompt you for your account name when you
39058 +  ** connect to newsserver.
39059 +  */
39060 +  { "nntp_pass",      DT_STR,  R_NONE, UL &NntpPass, UL "" },
39061 +  /*
39062 +  ** .pp
39063 +  ** Your password for NNTP account.
39064 +  */
39065 +  { "nntp_poll",      DT_NUM,  R_NONE, UL &NewsPollTimeout, 60 },
39066 +  /*
39067 +  ** .pp
39068 +  ** The time in seconds until any operations on newsgroup except post new
39069 +  ** article will cause recheck for new news.  If set to 0, Mutt will
39070 +  ** recheck newsgroup on each operation in index (stepping, read article,
39071 +  ** etc.).
39072 +  */
39073 +  { "nntp_reconnect", DT_QUAD, R_NONE, OPT_NNTPRECONNECT, M_ASKYES },
39074 +  /*
39075 +  ** .pp
39076 +  ** Controls whether or not Mutt will try to reconnect to newsserver when
39077 +  ** connection lost.
39078 +  */
39079 +#endif
39080    { "pager",           DT_PATH, R_NONE, UL &Pager, UL "builtin" },
39081    /*
39082    ** .pp
39083 @@ -1633,6 +1784,16 @@
39084    { "post_indent_str",  DT_SYN,  R_NONE, UL "post_indent_string", 0 },
39085    /*
39086    */
39087 +#ifdef USE_NNTP
39088 +  { "post_moderated", DT_QUAD, R_NONE, OPT_TOMODERATED, M_ASKYES },
39089 +  /*
39090 +  ** .pp
39091 +  ** If set to \fIyes\fP, Mutt will post article to newsgroup that have
39092 +  ** not permissions to posting (e.g. moderated).  \fBNote:\fP if newsserver
39093 +  ** does not support posting to that newsgroup or totally read-only, that
39094 +  ** posting will not have an effect.
39095 +  */
39096 +#endif
39097    { "postpone",                DT_QUAD, R_NONE, OPT_POSTPONE, M_ASKYES },
39098    /*
39099    ** .pp
39100 @@ -1991,6 +2152,28 @@
39101    ** Command to use when spawning a subshell.  By default, the user's login
39102    ** shell from /etc/passwd is used.
39103    */
39104 +#ifdef USE_NNTP
39105 +  { "save_unsubscribed",DT_BOOL, R_NONE, OPTSAVEUNSUB, 0 },
39106 +  /*
39107 +  ** .pp
39108 +  ** When \fIset\fP, info about unsubscribed newsgroups will be saved into
39109 +  ** ``newsrc'' file and into cache.
39110 +  */
39111 +  { "show_new_news",  DT_BOOL, R_NONE, OPTSHOWNEWNEWS, 1 },
39112 +  /*
39113 +  ** .pp
39114 +  ** If \fIset\fP, newsserver will be asked for new newsgroups on entering
39115 +  ** the browser.  Otherwise, it will be done only once for a newsserver.
39116 +  ** Also controls whether or not number of new articles of subscribed
39117 +  ** newsgroups will be then checked.
39118 +  */
39119 +  { "show_only_unread",  DT_BOOL, R_NONE, OPTSHOWONLYUNREAD, 0 },
39120 +  /*
39121 +  ** .pp
39122 +  ** If \fIset\fP, only subscribed newsgroups that contain unread articles
39123 +  ** will be displayed in browser.
39124 +  */
39125 +#endif
39126    { "sig_dashes",      DT_BOOL, R_NONE, OPTSIGDASHES, 1 },
39127    /*
39128    ** .pp
39129 @@ -2437,6 +2620,14 @@
39130    ** Controls whether mutt writes out the Bcc header when preparing
39131    ** messages to be sent.  Exim users may wish to use this.
39132    */
39133 +#ifdef USE_NNTP
39134 +  { "x_comment_to",   DT_BOOL, R_NONE, OPTXCOMMENTTO, 0 },
39135 +  /*
39136 +  ** .pp
39137 +  ** If \fIset\fP, Mutt will add ``X-Comment-To:'' field (that contains full
39138 +  ** name of original article author) to article that followuped to newsgroup.
39139 +  */
39140 +#endif
39141    /*--*/
39142    { NULL }
39143  };
39144 diff -uNr mutt-1.4.orig/install-sh mutt-1.4/install-sh
39145 --- mutt-1.4.orig/install-sh    Tue Feb 26 11:37:41 2002
39146 +++ mutt-1.4/install-sh Sun Nov  3 21:57:29 2002
39147 @@ -1,15 +1,27 @@
39148 -#! /bin/sh
39149 +#!/bin/sh
39150  #
39151  # install - install a program, script, or datafile
39152 -# This comes from X11R5.
39153 +# This comes from X11R5 (mit/util/scripts/install.sh).
39154 +#
39155 +# Copyright 1991 by the Massachusetts Institute of Technology
39156 +#
39157 +# Permission to use, copy, modify, distribute, and sell this software and its
39158 +# documentation for any purpose is hereby granted without fee, provided that
39159 +# the above copyright notice appear in all copies and that both that
39160 +# copyright notice and this permission notice appear in supporting
39161 +# documentation, and that the name of M.I.T. not be used in advertising or
39162 +# publicity pertaining to distribution of the software without specific,
39163 +# written prior permission.  M.I.T. makes no representations about the
39164 +# suitability of this software for any purpose.  It is provided "as is"
39165 +# without express or implied warranty.
39166  #
39167  # Calling this script install-sh is preferred over install.sh, to prevent
39168  # `make' implicit rules from creating a file called install from it
39169  # when there is no Makefile.
39170  #
39171  # This script is compatible with the BSD install script, but was written
39172 -# from scratch.
39173 -#
39174 +# from scratch.  It can only install one file at a time, a restriction
39175 +# shared with many OS's install programs.
39176  
39177  
39178  # set DOITPROG to echo to test this script
39179 @@ -97,7 +109,7 @@
39180         echo "install:  no input file specified"
39181         exit 1
39182  else
39183 -       true
39184 +       :
39185  fi
39186  
39187  if [ x"$dir_arg" != x ]; then
39188 @@ -106,8 +118,9 @@
39189         
39190         if [ -d $dst ]; then
39191                 instcmd=:
39192 +               chmodcmd=""
39193         else
39194 -               instcmd=mkdir
39195 +               instcmd=$mkdirprog
39196         fi
39197  else
39198  
39199 @@ -115,9 +128,9 @@
39200  # might cause directories to be created, which would be especially bad 
39201  # if $src (and thus $dsttmp) contains '*'.
39202  
39203 -       if [ -f $src -o -d $src ]
39204 +       if [ -f "$src" ] || [ -d "$src" ]
39205         then
39206 -               true
39207 +               :
39208         else
39209                 echo "install:  $src does not exist"
39210                 exit 1
39211 @@ -128,7 +141,7 @@
39212                 echo "install:  no destination specified"
39213                 exit 1
39214         else
39215 -               true
39216 +               :
39217         fi
39218  
39219  # If destination is a directory, append the input filename; if your system
39220 @@ -138,7 +151,7 @@
39221         then
39222                 dst="$dst"/`basename $src`
39223         else
39224 -               true
39225 +               :
39226         fi
39227  fi
39228  
39229 @@ -150,8 +163,8 @@
39230  
39231  # Skip lots of stat calls in the usual case.
39232  if [ ! -d "$dstdir" ]; then
39233 -defaultIFS='   
39234 -'
39235 +defaultIFS='
39236 +       '
39237  IFS="${IFS-${defaultIFS}}"
39238  
39239  oIFS="${IFS}"
39240 @@ -170,7 +183,7 @@
39241          then
39242                 $mkdirprog "${pathcomp}"
39243         else
39244 -               true
39245 +               :
39246         fi
39247  
39248         pathcomp="${pathcomp}/"
39249 @@ -181,10 +194,10 @@
39250  then
39251         $doit $instcmd $dst &&
39252  
39253 -       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
39254 -       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
39255 -       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
39256 -       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
39257 +       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
39258 +       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
39259 +       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
39260 +       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
39261  else
39262  
39263  # If we're going to rename the final executable, determine the name now.
39264 @@ -203,7 +216,7 @@
39265         then
39266                 dstfile=`basename $dst`
39267         else
39268 -               true
39269 +               :
39270         fi
39271  
39272  # Make a temp file name in the proper directory.
39273 @@ -222,10 +235,10 @@
39274  # ignore errors from any of these, just make sure not to ignore
39275  # errors from the above "$doit $instcmd $src $dsttmp" command.
39276  
39277 -       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
39278 -       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
39279 -       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
39280 -       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
39281 +       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
39282 +       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
39283 +       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
39284 +       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
39285  
39286  # Now rename the file to the real destination.
39287  
39288 diff -uNr mutt-1.4.orig/keymap.c mutt-1.4/keymap.c
39289 --- mutt-1.4.orig/keymap.c      Sun Nov  3 21:42:52 2002
39290 +++ mutt-1.4/keymap.c   Sun Nov  3 21:57:20 2002
39291 @@ -593,7 +593,6 @@
39292    km_bindkey ("<enter>", MENU_MAIN, OP_DISPLAY_MESSAGE);
39293  
39294    km_bindkey ("x", MENU_PAGER, OP_EXIT);
39295 -  km_bindkey ("i", MENU_PAGER, OP_EXIT);
39296    km_bindkey ("<backspace>", MENU_PAGER, OP_PREV_LINE);
39297    km_bindkey ("<pagedown>", MENU_PAGER, OP_NEXT_PAGE);
39298    km_bindkey ("<pageup>", MENU_PAGER, OP_PREV_PAGE);
39299 diff -uNr mutt-1.4.orig/m4/Makefile.in mutt-1.4/m4/Makefile.in
39300 --- mutt-1.4.orig/m4/Makefile.in        Wed May 29 11:31:05 2002
39301 +++ mutt-1.4/m4/Makefile.in     Sun Nov  3 21:57:30 2002
39302 @@ -1,6 +1,8 @@
39303 -# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
39304 +# Makefile.in generated by automake 1.6.3 from Makefile.am.
39305 +# @configure_input@
39306  
39307 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
39308 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
39309 +# Free Software Foundation, Inc.
39310  # This Makefile.in is free software; the Free Software Foundation
39311  # gives unlimited permission to copy and/or distribute it,
39312  # with or without modifications, as long as this notice is preserved.
39313 @@ -10,7 +12,7 @@
39314  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39315  # PARTICULAR PURPOSE.
39316  
39317 -
39318 +@SET_MAKE@
39319  SHELL = @SHELL@
39320  
39321  srcdir = @srcdir@
39322 @@ -31,13 +33,9 @@
39323  mandir = @mandir@
39324  includedir = @includedir@
39325  oldincludedir = /usr/include
39326 -
39327 -DESTDIR =
39328 -
39329  pkgdatadir = $(datadir)/@PACKAGE@
39330  pkglibdir = $(libdir)/@PACKAGE@
39331  pkgincludedir = $(includedir)/@PACKAGE@
39332 -
39333  top_builddir = ..
39334  
39335  ACLOCAL = @ACLOCAL@
39336 @@ -45,12 +43,16 @@
39337  AUTOMAKE = @AUTOMAKE@
39338  AUTOHEADER = @AUTOHEADER@
39339  
39340 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39341  INSTALL = @INSTALL@
39342 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39343 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
39344  INSTALL_DATA = @INSTALL_DATA@
39345 +install_sh_DATA = $(install_sh) -c -m 644
39346 +install_sh_PROGRAM = $(install_sh) -c
39347 +install_sh_SCRIPT = $(install_sh) -c
39348  INSTALL_SCRIPT = @INSTALL_SCRIPT@
39349 +INSTALL_HEADER = $(INSTALL_DATA)
39350  transform = @program_transform_name@
39351 -
39352  NORMAL_INSTALL = :
39353  PRE_INSTALL = :
39354  POST_INSTALL = :
39355 @@ -59,7 +61,13 @@
39356  POST_UNINSTALL = :
39357  host_alias = @host_alias@
39358  host_triplet = @host@
39359 +
39360 +EXEEXT = @EXEEXT@
39361 +OBJEXT = @OBJEXT@
39362 +PATH_SEPARATOR = @PATH_SEPARATOR@
39363 +AMTAR = @AMTAR@
39364  AR = @AR@
39365 +AWK = @AWK@
39366  BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
39367  CATALOGS = @CATALOGS@
39368  CATOBJEXT = @CATOBJEXT@
39369 @@ -68,6 +76,7 @@
39370  DATADIRNAME = @DATADIRNAME@
39371  DBX = @DBX@
39372  DEBUGGER = @DEBUGGER@
39373 +DEPDIR = @DEPDIR@
39374  DOTLOCK_GROUP = @DOTLOCK_GROUP@
39375  DOTLOCK_PERMISSION = @DOTLOCK_PERMISSION@
39376  DOTLOCK_TARGET = @DOTLOCK_TARGET@
39377 @@ -76,6 +85,7 @@
39378  GLIBC21 = @GLIBC21@
39379  GMOFILES = @GMOFILES@
39380  GMSGFMT = @GMSGFMT@
39381 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
39382  INSTOBJEXT = @INSTOBJEXT@
39383  INTLBISON = @INTLBISON@
39384  INTLLIBS = @INTLLIBS@
39385 @@ -86,7 +96,6 @@
39386  LIBICONV = @LIBICONV@
39387  LIBIMAP = @LIBIMAP@
39388  LIBIMAPDEPS = @LIBIMAPDEPS@
39389 -MAKEINFO = @MAKEINFO@
39390  MKINSTALLDIRS = @MKINSTALLDIRS@
39391  MSGFMT = @MSGFMT@
39392  MUTTLIBS = @MUTTLIBS@
39393 @@ -99,112 +108,145 @@
39394  RANLIB = @RANLIB@
39395  SDB = @SDB@
39396  SENDMAIL = @SENDMAIL@
39397 +STRIP = @STRIP@
39398  SUBVERSION = @SUBVERSION@
39399  U = @U@
39400  USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
39401  USE_NLS = @USE_NLS@
39402  VERSION = @VERSION@
39403 +am__include = @am__include@
39404 +am__quote = @am__quote@
39405  docdir = @docdir@
39406 +install_sh = @install_sh@
39407  
39408 -EXTRA_DIST = README Makefile.am.in codeset.m4 curslib.m4 funcdecl.m4 gettext.m4 glibc21.m4 gssapi.m4 iconv.m4 lcmessage.m4 progtest.m4
39409 +EXTRA_DIST = README Makefile.am.in \
39410 +codeset.m4 \
39411 +curslib.m4 \
39412 +funcdecl.m4 \
39413 +gettext.m4 \
39414 +glibc21.m4 \
39415 +gssapi.m4 \
39416 +iconv.m4 \
39417 +lcmessage.m4 \
39418 +progtest.m4
39419  
39420 +subdir = m4
39421  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39422 -CONFIG_HEADER = ../config.h
39423 -CONFIG_CLEAN_FILES = 
39424 -DIST_COMMON =  README Makefile.am Makefile.in
39425 -
39426 +CONFIG_HEADER = $(top_builddir)/config.h
39427 +CONFIG_CLEAN_FILES =
39428 +DIST_SOURCES =
39429 +DIST_COMMON = README Makefile.am Makefile.in
39430 +all: all-am
39431  
39432 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
39433 -
39434 -TAR = tar
39435 -GZIP_ENV = --best
39436 -all: all-redirect
39437  .SUFFIXES:
39438 -$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
39439 -       cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps m4/Makefile
39440 -
39441 -Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
39442 -       cd $(top_builddir) \
39443 -         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
39444 -
39445 +$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
39446 +       cd $(top_srcdir) && \
39447 +         $(AUTOMAKE) --foreign  m4/Makefile
39448 +Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
39449 +       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
39450 +uninstall-info-am:
39451  tags: TAGS
39452  TAGS:
39453  
39454 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39455  
39456 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
39457 -
39458 -subdir = m4
39459 +top_distdir = ..
39460 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
39461  
39462  distdir: $(DISTFILES)
39463 -       @for file in $(DISTFILES); do \
39464 -         d=$(srcdir); \
39465 +       @list='$(DISTFILES)'; for file in $$list; do \
39466 +         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
39467 +         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
39468 +         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
39469 +           dir="/$$dir"; \
39470 +           $(mkinstalldirs) "$(distdir)$$dir"; \
39471 +         else \
39472 +           dir=''; \
39473 +         fi; \
39474           if test -d $$d/$$file; then \
39475 -           cp -pr $$d/$$file $(distdir)/$$file; \
39476 +           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
39477 +             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
39478 +           fi; \
39479 +           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
39480           else \
39481             test -f $(distdir)/$$file \
39482 -           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
39483 -           || cp -p $$d/$$file $(distdir)/$$file || :; \
39484 +           || cp -p $$d/$$file $(distdir)/$$file \
39485 +           || exit 1; \
39486           fi; \
39487         done
39488 -info-am:
39489 -info: info-am
39490 -dvi-am:
39491 -dvi: dvi-am
39492  check-am: all-am
39493  check: check-am
39494 -installcheck-am:
39495 -installcheck: installcheck-am
39496 -install-exec-am:
39497 -install-exec: install-exec-am
39498 +all-am: Makefile
39499  
39500 -install-data-am:
39501 -install-data: install-data-am
39502 +installdirs:
39503  
39504 -install-am: all-am
39505 -       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
39506  install: install-am
39507 -uninstall-am:
39508 +install-exec: install-exec-am
39509 +install-data: install-data-am
39510  uninstall: uninstall-am
39511 -all-am: Makefile
39512 -all-redirect: all-am
39513 -install-strip:
39514 -       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
39515 -installdirs:
39516  
39517 +install-am: all-am
39518 +       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
39519  
39520 +installcheck: installcheck-am
39521 +install-strip:
39522 +       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
39523 +         INSTALL_STRIP_FLAG=-s \
39524 +         `test -z '$(STRIP)' || \
39525 +           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
39526  mostlyclean-generic:
39527  
39528  clean-generic:
39529  
39530  distclean-generic:
39531         -rm -f Makefile $(CONFIG_CLEAN_FILES)
39532 -       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
39533  
39534  maintainer-clean-generic:
39535 -mostlyclean-am:  mostlyclean-generic
39536 +       @echo "This command is intended for maintainers to use"
39537 +       @echo "it deletes files that may require special tools to rebuild."
39538 +clean: clean-am
39539  
39540 -mostlyclean: mostlyclean-am
39541 +clean-am: clean-generic mostlyclean-am
39542  
39543 -clean-am:  clean-generic mostlyclean-am
39544 +distclean: distclean-am
39545  
39546 -clean: clean-am
39547 +distclean-am: clean-am distclean-generic
39548  
39549 -distclean-am:  distclean-generic clean-am
39550 +dvi: dvi-am
39551  
39552 -distclean: distclean-am
39553 +dvi-am:
39554  
39555 -maintainer-clean-am:  maintainer-clean-generic distclean-am
39556 -       @echo "This command is intended for maintainers to use;"
39557 -       @echo "it deletes files that may require special tools to rebuild."
39558 +info: info-am
39559 +
39560 +info-am:
39561 +
39562 +install-data-am:
39563 +
39564 +install-exec-am:
39565 +
39566 +install-info: install-info-am
39567 +
39568 +install-man:
39569 +
39570 +installcheck-am:
39571  
39572  maintainer-clean: maintainer-clean-am
39573  
39574 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
39575 -installcheck-am installcheck install-exec-am install-exec \
39576 -install-data-am install-data install-am install uninstall-am uninstall \
39577 -all-redirect all-am all installdirs mostlyclean-generic \
39578 -distclean-generic clean-generic maintainer-clean-generic clean \
39579 -mostlyclean distclean maintainer-clean
39580 +maintainer-clean-am: distclean-am maintainer-clean-generic
39581 +
39582 +mostlyclean: mostlyclean-am
39583 +
39584 +mostlyclean-am: mostlyclean-generic
39585 +
39586 +uninstall-am: uninstall-info-am
39587 +
39588 +.PHONY: all all-am check check-am clean clean-generic distclean \
39589 +       distclean-generic distdir dvi dvi-am info info-am install \
39590 +       install-am install-data install-data-am install-exec \
39591 +       install-exec-am install-info install-info-am install-man \
39592 +       install-strip installcheck installcheck-am installdirs \
39593 +       maintainer-clean maintainer-clean-generic mostlyclean \
39594 +       mostlyclean-generic uninstall uninstall-am uninstall-info-am
39595  
39596  
39597  Makefile.am: Makefile.am.in
39598 @@ -217,7 +259,6 @@
39599         sed -n '/^##m4-files-end/,$$p' Makefile.am.in >> $@t
39600         chmod a-w $@t
39601         mv $@t $@
39602 -
39603  # Tell versions [3.59,3.63) of GNU make to not export all variables.
39604  # Otherwise a system limit (for SysV at least) may be exceeded.
39605  .NOEXPORT:
39606 diff -uNr mutt-1.4.orig/mailbox.h mutt-1.4/mailbox.h
39607 --- mutt-1.4.orig/mailbox.h     Wed Mar 20 10:53:34 2002
39608 +++ mutt-1.4/mailbox.h  Sun Nov  3 21:57:20 2002
39609 @@ -73,6 +73,9 @@
39610  #ifdef USE_POP
39611  int mx_is_pop (const char *);
39612  #endif
39613 +#ifdef USE_NNTP
39614 +int mx_is_nntp (const char *);
39615 +#endif
39616  
39617  int mx_access (const char*, int);
39618  
39619 diff -uNr mutt-1.4.orig/main.c mutt-1.4/main.c
39620 --- mutt-1.4.orig/main.c        Sun Nov  3 21:42:51 2002
39621 +++ mutt-1.4/main.c     Sun Nov  3 21:57:20 2002
39622 @@ -37,6 +37,10 @@
39623  #include <getopt.h>
39624  #endif
39625  
39626 +#ifdef USE_NNTP
39627 +#include <nntp.h>
39628 +#endif
39629 +
39630  static const char *ReachingUs = N_("\
39631  To contact the developers, please mail to <mutt-dev@mutt.org>.\n\
39632  To report a bug, please use the flea(1) utility.\n");
39633 @@ -97,6 +101,8 @@
39634    -e <command>\tspecify a command to be executed after initialization\n\
39635    -f <file>\tspecify which mailbox to read\n\
39636    -F <file>\tspecify an alternate muttrc file\n\
39637 +  -g <server>\tspecify a newsserver (if compiled with NNTP)\n\
39638 +  -G\t\tselect a newsgroup (if compiled with NNTP)\n\
39639    -H <file>\tspecify a draft file to read header from\n\
39640    -i <file>\tspecify a file which Mutt should include in the reply\n\
39641    -m <type>\tspecify a default mailbox type\n\
39642 @@ -202,6 +208,12 @@
39643         "-USE_POP  "
39644  #endif
39645  
39646 +#ifdef USE_NNTP
39647 +       "+USE_NNTP  "
39648 +#else
39649 +       "-USE_NNTP  "
39650 +#endif
39651 +
39652  #ifdef USE_IMAP
39653          "+USE_IMAP  "
39654  #else
39655 @@ -444,6 +456,9 @@
39656  #define M_NOSYSRC (1<<2)       /* -n */
39657  #define M_RO      (1<<3)       /* -R */
39658  #define M_SELECT  (1<<4)       /* -y */
39659 +#ifdef USE_NNTP
39660 +#define M_NEWS    (1<<5)       /* -g and -G */
39661 +#endif
39662  
39663  int main (int argc, char **argv)
39664  {
39665 @@ -489,7 +504,11 @@
39666    memset (Options, 0, sizeof (Options));
39667    memset (QuadOptions, 0, sizeof (QuadOptions));
39668    
39669 +#ifdef USE_NNTP
39670 +  while ((i = getopt (argc, argv, "a:b:F:f:c:d:e:H:s:i:hm:npRvxyg:GzZ")) != EOF)
39671 +#else
39672    while ((i = getopt (argc, argv, "a:b:F:f:c:d:e:H:s:i:hm:npRvxyzZ")) != EOF)
39673 +#endif
39674      switch (i)
39675      {
39676        case 'a':
39677 @@ -571,6 +590,20 @@
39678         flags |= M_SELECT;
39679         break;
39680  
39681 +#ifdef USE_NNTP
39682 +      case 'g': /* Specify a newsserver */
39683 +       {
39684 +         char buf[LONG_STRING];
39685 +
39686 +         snprintf (buf, sizeof (buf), "set news_server=%s", optarg);
39687 +         commands = mutt_add_list (commands, buf);
39688 +       }
39689 +
39690 +      case 'G': /* List of newsgroups */
39691 +       flags |= M_SELECT | M_NEWS;
39692 +       break;
39693 +#endif
39694 +
39695        case 'z':
39696         flags |= M_IGNORE;
39697         break;
39698 @@ -802,6 +835,18 @@
39699      }
39700      else if (flags & M_SELECT)
39701      {
39702 +#ifdef USE_NNTP
39703 +      if (flags & M_NEWS)
39704 +      {
39705 +       set_option (OPTNEWS);
39706 +       if(!(CurrentNewsSrv = mutt_select_newsserver (NewsServer)))
39707 +       {
39708 +         mutt_endwin (Errorbuf);
39709 +         exit (1);
39710 +       }
39711 +      }
39712 +      else
39713 +#endif
39714        if (!Incoming) {
39715         mutt_endwin _("No incoming mailboxes defined.");
39716         exit (1);
39717 @@ -817,6 +862,15 @@
39718  
39719      if (!folder[0])
39720        strfcpy (folder, NONULL(Spoolfile), sizeof (folder));
39721 +
39722 +#ifdef USE_NNTP
39723 +    if (option (OPTNEWS))
39724 +    {
39725 +      unset_option (OPTNEWS);
39726 +      nntp_expand_path (folder, sizeof (folder), &CurrentNewsSrv->conn->account);
39727 +    }
39728 +    else
39729 +#endif
39730      mutt_expand_path (folder, sizeof (folder));
39731  
39732      mutt_str_replace (&LastFolder, folder);
39733 diff -uNr mutt-1.4.orig/missing mutt-1.4/missing
39734 --- mutt-1.4.orig/missing       Wed Jan 16 21:44:49 2002
39735 +++ mutt-1.4/missing    Sun Nov  3 21:57:29 2002
39736 @@ -1,6 +1,6 @@
39737  #! /bin/sh
39738  # Common stub for a few missing GNU programs while installing.
39739 -# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
39740 +# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
39741  # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
39742  
39743  # This program is free software; you can redistribute it and/or modify
39744 @@ -87,7 +87,7 @@
39745      exit 1
39746      ;;
39747  
39748 -  aclocal)
39749 +  aclocal*)
39750      if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39751         # We have it, but it failed.
39752         exit 1
39753 @@ -293,23 +293,23 @@
39754      # Look for gnutar/gtar before invocation to avoid ugly error
39755      # messages.
39756      if (gnutar --version > /dev/null 2>&1); then
39757 -       gnutar ${1+"$@"} && exit 0
39758 +       gnutar "$@" && exit 0
39759      fi
39760      if (gtar --version > /dev/null 2>&1); then
39761 -       gtar ${1+"$@"} && exit 0
39762 +       gtar "$@" && exit 0
39763      fi
39764      firstarg="$1"
39765      if shift; then
39766         case "$firstarg" in
39767         *o*)
39768             firstarg=`echo "$firstarg" | sed s/o//`
39769 -           tar "$firstarg" ${1+"$@"} && exit 0
39770 +           tar "$firstarg" "$@" && exit 0
39771             ;;
39772         esac
39773         case "$firstarg" in
39774         *h*)
39775             firstarg=`echo "$firstarg" | sed s/h//`
39776 -           tar "$firstarg" ${1+"$@"} && exit 0
39777 +           tar "$firstarg" "$@" && exit 0
39778             ;;
39779         esac
39780      fi
39781 diff -uNr mutt-1.4.orig/mkinstalldirs mutt-1.4/mkinstalldirs
39782 --- mutt-1.4.orig/mkinstalldirs Wed Jan 16 21:44:49 2002
39783 +++ mutt-1.4/mkinstalldirs      Sun Nov  3 21:57:29 2002
39784 @@ -4,8 +4,6 @@
39785  # Created: 1993-05-16
39786  # Public domain
39787  
39788 -# $Id$
39789 -
39790  errstatus=0
39791  dirmode=""
39792  
39793 diff -uNr mutt-1.4.orig/mutt.h mutt-1.4/mutt.h
39794 --- mutt-1.4.orig/mutt.h        Sun Nov  3 21:42:52 2002
39795 +++ mutt-1.4/mutt.h     Sun Nov  3 21:57:20 2002
39796 @@ -231,6 +231,9 @@
39797    M_PGP_KEY,
39798  #endif
39799    M_XLABEL,
39800 +#ifdef USE_NNTP
39801 +  M_NEWSGROUPS,
39802 +#endif
39803    
39804    /* Options for Mailcap lookup */
39805    M_EDIT,
39806 @@ -266,6 +269,12 @@
39807    OPT_VERIFYSIG,      /* verify PGP signatures */
39808    OPT_PGPTRADITIONAL, /* create old-style PGP messages */
39809  #endif
39810 +#ifdef USE_NNTP
39811 +  OPT_TOMODERATED,
39812 +  OPT_NNTPRECONNECT,
39813 +  OPT_CATCHUP,
39814 +  OPT_FOLLOWUPTOPOSTER,
39815 +#endif /* USE_NNTP */
39816  
39817  #ifdef USE_SSL
39818    OPT_SSLSTARTTLS,
39819 @@ -302,6 +311,7 @@
39820  #define SENDMAILX      (1<<6)
39821  #define SENDKEY                (1<<7)
39822  #define SENDRESEND     (1<<8)
39823 +#define SENDNEWS       (1<<9)
39824  
39825  /* flags to _mutt_select_file() */
39826  #define M_SEL_BUFFY    (1<<0)
39827 @@ -318,6 +328,8 @@
39828    OPTASCIICHARS,
39829    OPTASKBCC,
39830    OPTASKCC,
39831 +  OPTASKFOLLOWUP,
39832 +  OPTASKXCOMMENTTO,
39833    OPTATTACHSPLIT,
39834    OPTAUTOEDIT,
39835    OPTAUTOTAG,
39836 @@ -376,6 +388,9 @@
39837    OPTMETOO,
39838    OPTMHPURGE,
39839    OPTMIMEFORWDECODE,
39840 +#ifdef USE_NNTP
39841 +  OPTMIMESUBJECT,      /* encode subject line with RFC2047 */
39842 +#endif
39843    OPTNARROWTREE,
39844    OPTPAGERSTOP,
39845    OPTPIPEDECODE,
39846 @@ -445,6 +460,16 @@
39847    OPTPGPSHOWUNUSABLE,
39848  #endif
39849  
39850 +  /* news options */
39851 +
39852 +#ifdef USE_NNTP
39853 +  OPTSHOWNEWNEWS,
39854 +  OPTSHOWONLYUNREAD,
39855 +  OPTSAVEUNSUB,
39856 +  OPTLOADDESC,
39857 +  OPTXCOMMENTTO,
39858 +#endif /* USE_NNTP */
39859 +
39860    /* pseudo options */
39861  
39862    OPTAUXSORT,          /* (pseudo) using auxillary sort function */
39863 @@ -465,6 +490,7 @@
39864    OPTSORTSUBTHREADS,   /* (pseudo) used when $sort_aux changes */
39865    OPTNEEDRESCORE,      /* (pseudo) set when the `score' command is used */
39866    OPTATTACHMSG,                /* (pseudo) used by attach-message */
39867 +  OPTHIDEREAD,         /* (pseudo) whether or not hide read messages */
39868    OPTKEEPQUIET,                /* (pseudo) shut up the message and refresh
39869                          *          functions while we are executing an
39870                          *          external program.
39871 @@ -475,6 +501,12 @@
39872    OPTDONTHANDLEPGPKEYS,        /* (pseudo) used to extract PGP keys */
39873  #endif
39874  
39875 +#ifdef USE_NNTP
39876 +  OPTNEWS,             /* (pseudo) used to change reader mode */
39877 +  OPTNEWSSEND,         /* (pseudo) used to change behavior when posting */
39878 +  OPTNEWSCACHE,                /* (pseudo) used to indicate if news cache exist */
39879 +#endif
39880 +
39881  
39882  
39883  
39884 @@ -538,6 +570,13 @@
39885    char *supersedes;
39886    char *date;
39887    char *x_label;
39888 +  char *organization;
39889 +#ifdef USE_NNTP
39890 +  char *newsgroups;
39891 +  char *xref;
39892 +  char *followup_to;
39893 +  char *x_comment_to;
39894 +#endif
39895    LIST *references;            /* message references (in reverse order) */
39896    LIST *in_reply_to;           /* in-reply-to header content */
39897    LIST *userhdrs;              /* user defined headers */
39898 @@ -685,6 +724,9 @@
39899    ENVELOPE *env;               /* envelope information */
39900    BODY *content;               /* list of MIME parts */
39901    char *path;
39902 +#ifdef USE_NNTP
39903 +  int article_num;
39904 +#endif
39905    
39906    char *tree;                  /* character string to print thread tree */
39907    struct thread *thread;
39908 @@ -697,7 +739,7 @@
39909    int refno;                   /* message number on server */
39910  #endif
39911  
39912 -#if defined USE_POP || defined USE_IMAP
39913 +#if defined USE_POP || defined USE_IMAP || defined USE_NNTP
39914    void *data;                  /* driver-specific data */
39915  #endif
39916  } HEADER;
39917 @@ -768,7 +810,7 @@
39918    int appended;                 /* how many saved messages? */
39919    int flagged;                 /* how many flagged messages */
39920    int msgnotreadyet;           /* which msg "new" in pager, -1 if none */
39921 -#if defined USE_POP || defined USE_IMAP
39922 +#if defined USE_POP || defined USE_IMAP || defined USE_NNTP
39923    void *data;                  /* driver specific data */
39924  #endif /* USE_IMAP */
39925  
39926 diff -uNr mutt-1.4.orig/mutt_dotlock.c mutt-1.4/mutt_dotlock.c
39927 --- mutt-1.4.orig/mutt_dotlock.c        Wed Mar 13 13:47:27 2002
39928 +++ mutt-1.4/mutt_dotlock.c     Thu Jan  1 01:00:00 1970
39929 @@ -1,755 +0,0 @@
39930 -/*
39931 - * Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
39932 - * Copyright (C) 1998-2000 Thomas Roessler <roessler@guug.de>
39933 - * 
39934 - *     This program is free software; you can redistribute it and/or modify
39935 - *     it under the terms of the GNU General Public License as published by
39936 - *     the Free Software Foundation; either version 2 of the License, or
39937 - *     (at your option) any later version.
39938 - * 
39939 - *     This program is distributed in the hope that it will be useful,
39940 - *     but WITHOUT ANY WARRANTY; without even the implied warranty of
39941 - *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39942 - *     GNU General Public License for more details.
39943 - * 
39944 - *     You should have received a copy of the GNU General Public License
39945 - *     along with this program; if not, write to the Free Software
39946 - *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
39947 - */ 
39948 -
39949 -/*
39950 - * This module either be compiled into Mutt, or it can be
39951 - * built as a separate program. For building it
39952 - * separately, define the DL_STANDALONE preprocessor
39953 - * macro.
39954 - */
39955 -
39956 -#include <stdio.h>
39957 -#include <stdlib.h>
39958 -#include <string.h>
39959 -
39960 -#include <unistd.h>
39961 -#include <dirent.h>
39962 -#include <sys/file.h>
39963 -#include <sys/stat.h>
39964 -#include <sys/utsname.h>
39965 -#include <errno.h>
39966 -#include <time.h>
39967 -#include <fcntl.h>
39968 -#include <limits.h>
39969 -
39970 -#ifndef _POSIX_PATH_MAX
39971 -#include <posix1_lim.h>
39972 -#endif
39973 -
39974 -#include "dotlock.h"
39975 -#include "config.h"
39976 -
39977 -#ifdef HAVE_GETOPT_H
39978 -#include <getopt.h>
39979 -#endif
39980 -
39981 -#ifdef DL_STANDALONE
39982 -# include "reldate.h"
39983 -#endif
39984 -
39985 -#define MAXLINKS 1024 /* maximum link depth */
39986 -
39987 -#ifdef DL_STANDALONE
39988 -
39989 -# define LONG_STRING 1024
39990 -# define MAXLOCKATTEMPT 5
39991 -
39992 -# define strfcpy(A,B,C) strncpy (A,B,C), *(A+(C)-1)=0
39993 -
39994 -# ifdef USE_SETGID
39995 -
39996 -#  ifdef HAVE_SETEGID
39997 -#   define SETEGID setegid
39998 -#  else
39999 -#   define SETEGID setgid
40000 -#  endif
40001 -#  ifndef S_ISLNK
40002 -#   define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK ? 1 : 0)
40003 -#  endif
40004 -
40005 -# endif
40006 -
40007 -# ifndef HAVE_SNPRINTF
40008 -extern int snprintf (char *, size_t, const char *, ...);
40009 -# endif
40010 -
40011 -#else  /* DL_STANDALONE */
40012 -
40013 -# ifdef USE_SETGID
40014 -#   error Do not try to compile dotlock as a mutt module when requiring egid switching!
40015 -# endif
40016 -
40017 -# include "mutt.h"
40018 -# include "mx.h"
40019 -
40020 -#endif /* DL_STANDALONE */
40021 -
40022 -static int DotlockFlags;
40023 -static int Retry = MAXLOCKATTEMPT;
40024 -
40025 -#ifdef DL_STANDALONE
40026 -static char *Hostname;
40027 -#endif
40028 -
40029 -#ifdef USE_SETGID
40030 -static gid_t UserGid;
40031 -static gid_t MailGid;
40032 -#endif
40033 -
40034 -static int dotlock_deference_symlink (char *, size_t, const char *);
40035 -static int dotlock_prepare (char *, size_t, const char *, int fd);
40036 -static int dotlock_check_stats (struct stat *, struct stat *);
40037 -static int dotlock_dispatch (const char *, int fd);
40038 -
40039 -#ifdef DL_STANDALONE
40040 -static int dotlock_init_privs (void);
40041 -static void usage (const char *);
40042 -#endif
40043 -
40044 -static void dotlock_expand_link (char *, const char *, const char *);
40045 -static void BEGIN_PRIVILEGED (void);
40046 -static void END_PRIVILEGED (void);
40047 -
40048 -/* These functions work on the current directory.
40049 - * Invoke dotlock_prepare () before and check their
40050 - * return value.
40051 - */
40052 -
40053 -static int dotlock_try (void);
40054 -static int dotlock_unlock (const char *);
40055 -static int dotlock_unlink (const char *);
40056 -static int dotlock_lock (const char *);
40057 -
40058 -
40059 -#ifdef DL_STANDALONE
40060 -
40061 -#define check_flags(a) if (a & DL_FL_ACTIONS) usage (argv[0])
40062 -
40063 -int main (int argc, char **argv)
40064 -{
40065 -  int i;
40066 -  char *p;
40067 -  struct utsname utsname;
40068 -
40069 -  /* first, drop privileges */
40070 -  
40071 -  if (dotlock_init_privs () == -1)
40072 -    return DL_EX_ERROR;
40073 -
40074 -
40075 -  /* determine the system's host name */
40076 -  
40077 -  uname (&utsname);
40078 -  if (!(Hostname = strdup (utsname.nodename))) /* __MEM_CHECKED__ */
40079 -    return DL_EX_ERROR;
40080 -  if ((p = strchr (Hostname, '.')))
40081 -    *p = '\0';
40082 -
40083 -
40084 -  /* parse the command line options. */
40085 -  DotlockFlags = 0;
40086 -  
40087 -  while ((i = getopt (argc, argv, "dtfupr:")) != EOF)
40088 -  {
40089 -    switch (i)
40090 -    {
40091 -      /* actions, mutually exclusive */
40092 -      case 't': check_flags (DotlockFlags); DotlockFlags |= DL_FL_TRY; break;
40093 -      case 'd': check_flags (DotlockFlags); DotlockFlags |= DL_FL_UNLINK; break;
40094 -      case 'u': check_flags (DotlockFlags); DotlockFlags |= DL_FL_UNLOCK; break;
40095 -
40096 -      /* other flags */
40097 -      case 'f': DotlockFlags |= DL_FL_FORCE; break;
40098 -      case 'p': DotlockFlags |= DL_FL_USEPRIV; break;
40099 -      case 'r': DotlockFlags |= DL_FL_RETRY; Retry = atoi (optarg); break;
40100 -      
40101 -      default: usage (argv[0]);
40102 -    }
40103 -  }
40104 -
40105 -  if (optind == argc || Retry < 0)
40106 -    usage (argv[0]);
40107 -
40108 -  return dotlock_dispatch (argv[optind], -1);
40109 -}
40110 -
40111 -
40112 -/* 
40113 - * Determine our effective group ID, and drop 
40114 - * privileges.
40115 - * 
40116 - * Return value:
40117 - * 
40118 - *  0 - everything went fine
40119 - * -1 - we couldn't drop privileges.
40120 - * 
40121 - */
40122 -
40123 -
40124 -static int
40125 -dotlock_init_privs (void)
40126 -{
40127 -
40128 -# ifdef USE_SETGID
40129 -  
40130 -  UserGid = getgid ();
40131 -  MailGid = getegid ();
40132 -
40133 -  if (SETEGID (UserGid) != 0)
40134 -    return -1;
40135 -
40136 -# endif
40137 -
40138 -  return 0;
40139 -}
40140 -  
40141 -
40142 -#else  /* DL_STANDALONE */
40143 -
40144 -/* 
40145 - * This function is intended to be invoked from within
40146 - * mutt instead of mx.c's invoke_dotlock ().
40147 - */
40148 -
40149 -int dotlock_invoke (const char *path, int fd, int flags, int retry)
40150 -{
40151 -  int currdir;
40152 -  int r;
40153 -
40154 -  DotlockFlags = flags;
40155 -  
40156 -  if ((currdir = open (".", O_RDONLY)) == -1)
40157 -    return DL_EX_ERROR;
40158 -
40159 -  if (!(DotlockFlags & DL_FL_RETRY) || retry)
40160 -    Retry = MAXLOCKATTEMPT;
40161 -  else
40162 -    Retry = 0;
40163 -  
40164 -  r = dotlock_dispatch (path, fd);
40165 -  
40166 -  fchdir (currdir);
40167 -  close (currdir);
40168 -  
40169 -  return r;
40170 -}
40171 -
40172 -#endif  /* DL_STANDALONE */
40173 -
40174 -
40175 -static int dotlock_dispatch (const char *f, int fd)
40176 -{
40177 -  char realpath[_POSIX_PATH_MAX];
40178 -
40179 -  /* If dotlock_prepare () succeeds [return value == 0],
40180 -   * realpath contains the basename of f, and we have
40181 -   * successfully changed our working directory to
40182 -   * `dirname $f`.  Additionally, f has been opened for
40183 -   * reading to verify that the user has at least read
40184 -   * permissions on that file.
40185 -   * 
40186 -   * For a more detailed explanation of all this, see the
40187 -   * lengthy comment below.
40188 -   */
40189 -
40190 -  if (dotlock_prepare (realpath, sizeof (realpath), f, fd) != 0)
40191 -    return DL_EX_ERROR;
40192 -
40193 -  /* Actually perform the locking operation. */
40194 -
40195 -  if (DotlockFlags & DL_FL_TRY)
40196 -    return dotlock_try ();
40197 -  else if (DotlockFlags & DL_FL_UNLOCK)
40198 -    return dotlock_unlock (realpath);
40199 -  else if (DotlockFlags & DL_FL_UNLINK)
40200 -    return dotlock_unlink (realpath);
40201 -  else /* lock */
40202 -    return dotlock_lock (realpath);
40203 -}
40204 -
40205 -  
40206 -/*
40207 - * Get privileges 
40208 - * 
40209 - * This function re-acquires the privileges we may have
40210 - * if the user told us to do so by giving the "-p"
40211 - * command line option.
40212 - * 
40213 - * BEGIN_PRIVILEGES () won't return if an error occurs.
40214 - * 
40215 - */
40216 -
40217 -static void
40218 -BEGIN_PRIVILEGED (void)
40219 -{
40220 -#ifdef USE_SETGID
40221 -  if (DotlockFlags & DL_FL_USEPRIV)
40222 -  {
40223 -    if (SETEGID (MailGid) != 0)
40224 -    {
40225 -      /* perror ("setegid"); */
40226 -      exit (DL_EX_ERROR);
40227 -    }
40228 -  }
40229 -#endif
40230 -}
40231 -
40232 -/*
40233 - * Drop privileges
40234 - * 
40235 - * This function drops the group privileges we may have.
40236 - * 
40237 - * END_PRIVILEGED () won't return if an error occurs.
40238 - *
40239 - */
40240 -
40241 -static void
40242 -END_PRIVILEGED (void)
40243 -{
40244 -#ifdef USE_SETGID
40245 -  if (DotlockFlags & DL_FL_USEPRIV)
40246 -  {
40247 -    if (SETEGID (UserGid) != 0)
40248 -    {
40249 -      /* perror ("setegid"); */
40250 -      exit (DL_EX_ERROR);
40251 -    }
40252 -  }
40253 -#endif
40254 -}
40255 -
40256 -#ifdef DL_STANDALONE
40257 -
40258 -/*
40259 - * Usage information.
40260 - * 
40261 - * This function doesn't return.
40262 - * 
40263 - */
40264 -
40265 -static void 
40266 -usage (const char *av0)
40267 -{
40268 -  fprintf (stderr, "dotlock [Mutt %s (%s)]\n", VERSION, ReleaseDate);
40269 -  fprintf (stderr, "usage: %s [-t|-f|-u|-d] [-p] [-r <retries>] file\n",
40270 -         av0);
40271 -
40272 -  fputs ("\noptions:"
40273 -       "\n  -t\t\ttry"
40274 -       "\n  -f\t\tforce"
40275 -       "\n  -u\t\tunlock"
40276 -       "\n  -d\t\tunlink"
40277 -       "\n  -p\t\tprivileged"
40278 -#ifndef USE_SETGID
40279 -       " (ignored)"
40280 -#endif
40281 -       "\n  -r <retries>\tRetry locking"
40282 -       "\n", stderr);
40283 -  
40284 -  exit (DL_EX_ERROR);
40285 -}
40286 -
40287 -#endif
40288 -
40289 -/*
40290 - * Access checking: Let's avoid to lock other users' mail
40291 - * spool files if we aren't permitted to read them.
40292 - * 
40293 - * Some simple-minded access (2) checking isn't sufficient
40294 - * here: The problem is that the user may give us a
40295 - * deeply nested path to a file which has the same name
40296 - * as the file he wants to lock, but different
40297 - * permissions, say, e.g.
40298 - * /tmp/lots/of/subdirs/var/spool/mail/root.
40299 - * 
40300 - * He may then try to replace /tmp/lots/of/subdirs by a
40301 - * symbolic link to / after we have invoked access () to
40302 - * check the file's permissions.  The lockfile we'd
40303 - * create or remove would then actually be
40304 - * /var/spool/mail/root.
40305 - * 
40306 - * To avoid this attack, we proceed as follows:
40307 - * 
40308 - * - First, follow symbolic links a la
40309 - *   dotlock_deference_symlink ().
40310 - * 
40311 - * - get the result's dirname.
40312 - * 
40313 - * - chdir to this directory.  If you can't, bail out.
40314 - * 
40315 - * - try to open the file in question, only using its
40316 - *   basename.  If you can't, bail out.
40317 - * 
40318 - * - fstat that file and compare the result to a
40319 - *   subsequent lstat (only using the basename).  If
40320 - *   the comparison fails, bail out.
40321 - * 
40322 - * dotlock_prepare () is invoked from main () directly
40323 - * after the command line parsing has been done.
40324 - *
40325 - * Return values:
40326 - * 
40327 - * 0 - Evereything's fine.  The program's new current
40328 - *     directory is the contains the file to be locked.
40329 - *     The string pointed to by bn contains the name of
40330 - *     the file to be locked.
40331 - * 
40332 - * -1 - Something failed. Don't continue.
40333 - * 
40334 - * tlr, Jul 15 1998
40335 - */
40336 -
40337 -static int
40338 -dotlock_check_stats (struct stat *fsb, struct stat *lsb)
40339 -{
40340 -  /* S_ISLNK (fsb->st_mode) should actually be impossible,
40341 -   * but we may have mixed up the parameters somewhere.
40342 -   * play safe.
40343 -   */
40344 -
40345 -  if (S_ISLNK (lsb->st_mode) || S_ISLNK (fsb->st_mode))
40346 -    return -1;
40347 -  
40348 -  if ((lsb->st_dev != fsb->st_dev) ||
40349 -     (lsb->st_ino != fsb->st_ino) ||
40350 -     (lsb->st_mode != fsb->st_mode) ||
40351 -     (lsb->st_nlink != fsb->st_nlink) ||
40352 -     (lsb->st_uid != fsb->st_uid) ||
40353 -     (lsb->st_gid != fsb->st_gid) ||
40354 -     (lsb->st_rdev != fsb->st_rdev) ||
40355 -     (lsb->st_size != fsb->st_size))
40356 -  {
40357 -    /* something's fishy */
40358 -    return -1;
40359 -  }
40360 -  
40361 -  return 0;
40362 -}
40363 -
40364 -static int
40365 -dotlock_prepare (char *bn, size_t l, const char *f, int _fd)
40366 -{
40367 -  struct stat fsb, lsb;
40368 -  char realpath[_POSIX_PATH_MAX];
40369 -  char *basename, *dirname;
40370 -  char *p;
40371 -  int fd;
40372 -  int r;
40373 -  
40374 -  if (dotlock_deference_symlink (realpath, sizeof (realpath), f) == -1)
40375 -    return -1;
40376 -  
40377 -  if ((p = strrchr (realpath, '/')))
40378 -  {
40379 -    *p = '\0';
40380 -    basename = p + 1;
40381 -    dirname = realpath;
40382 -  }
40383 -  else
40384 -  {
40385 -    basename = realpath;
40386 -    dirname = ".";
40387 -  }
40388 -
40389 -  if (strlen (basename) + 1 > l)
40390 -    return -1;
40391 -  
40392 -  strfcpy (bn, basename, l);
40393 -  
40394 -  if (chdir (dirname) == -1)
40395 -    return -1;
40396 -
40397 -  if (_fd != -1)
40398 -    fd = _fd;
40399 -  else if ((fd = open (basename, O_RDONLY)) == -1)
40400 -    return -1;
40401 -  
40402 -  r = fstat (fd, &fsb);
40403 -  
40404 -  if (_fd == -1)
40405 -    close (fd);
40406 -  
40407 -  if (r == -1)
40408 -    return -1;
40409 -  
40410 -  if (lstat (basename, &lsb) == -1)
40411 -    return -1;
40412 -
40413 -  if (dotlock_check_stats (&fsb, &lsb) == -1)
40414 -    return -1;
40415 -
40416 -  return 0;
40417 -}
40418 -
40419 -/*
40420 - * Expand a symbolic link.
40421 - * 
40422 - * This function expects newpath to have space for
40423 - * at least _POSIX_PATH_MAX characters.
40424 - *
40425 - */
40426 -
40427 -static void 
40428 -dotlock_expand_link (char *newpath, const char *path, const char *link)
40429 -{
40430 -  const char *lb = NULL;
40431 -  size_t len;
40432 -
40433 -  /* link is full path */
40434 -  if (*link == '/')
40435 -  {
40436 -    strfcpy (newpath, link, _POSIX_PATH_MAX);
40437 -    return;
40438 -  }
40439 -
40440 -  if ((lb = strrchr (path, '/')) == NULL)
40441 -  {
40442 -    /* no path in link */
40443 -    strfcpy (newpath, link, _POSIX_PATH_MAX);
40444 -    return;
40445 -  }
40446 -
40447 -  len = lb - path + 1;
40448 -  memcpy (newpath, path, len);
40449 -  strfcpy (newpath + len, link, _POSIX_PATH_MAX - len);
40450 -}
40451 -
40452 -
40453 -/*
40454 - * Deference a chain of symbolic links
40455 - * 
40456 - * The final path is written to d.
40457 - *
40458 - */
40459 -
40460 -static int
40461 -dotlock_deference_symlink (char *d, size_t l, const char *path)
40462 -{
40463 -  struct stat sb;
40464 -  char realpath[_POSIX_PATH_MAX];
40465 -  const char *pathptr = path;
40466 -  int count = 0;
40467 -  
40468 -  while (count++ < MAXLINKS)
40469 -  {
40470 -    if (lstat (pathptr, &sb) == -1)
40471 -    {
40472 -      /* perror (pathptr); */
40473 -      return -1;
40474 -    }
40475 -    
40476 -    if (S_ISLNK (sb.st_mode))
40477 -    {
40478 -      char linkfile[_POSIX_PATH_MAX];
40479 -      char linkpath[_POSIX_PATH_MAX];
40480 -      int len;
40481 -
40482 -      if ((len = readlink (pathptr, linkfile, sizeof (linkfile))) == -1)
40483 -      {
40484 -       /* perror (pathptr); */
40485 -       return -1;
40486 -      }
40487 -      
40488 -      linkfile[len] = '\0';
40489 -      dotlock_expand_link (linkpath, pathptr, linkfile);
40490 -      strfcpy (realpath, linkpath, sizeof (realpath));
40491 -      pathptr = realpath;
40492 -    }
40493 -    else
40494 -      break;
40495 -  }
40496 -
40497 -  strfcpy (d, pathptr, l);
40498 -  return 0;
40499 -}
40500 -
40501 -/*
40502 - * Dotlock a file.
40503 - * 
40504 - * realpath is assumed _not_ to be an absolute path to
40505 - * the file we are about to lock.  Invoke
40506 - * dotlock_prepare () before using this function!
40507 - * 
40508 - */
40509 -
40510 -#define HARDMAXATTEMPTS 10
40511 -
40512 -static int
40513 -dotlock_lock (const char *realpath)
40514 -{
40515 -  char lockfile[_POSIX_PATH_MAX + LONG_STRING];
40516 -  char nfslockfile[_POSIX_PATH_MAX + LONG_STRING];
40517 -  size_t prev_size = 0;
40518 -  int fd;
40519 -  int count = 0;
40520 -  int hard_count = 0;
40521 -  struct stat sb;
40522 -  time_t t;
40523 -  
40524 -  snprintf (nfslockfile, sizeof (nfslockfile), "%s.%s.%d",
40525 -          realpath, Hostname, (int) getpid ());
40526 -  snprintf (lockfile, sizeof (lockfile), "%s.lock", realpath);
40527 -
40528 -  
40529 -  BEGIN_PRIVILEGED ();
40530 -
40531 -  unlink (nfslockfile);
40532 -
40533 -  while ((fd = open (nfslockfile, O_WRONLY | O_EXCL | O_CREAT, 0)) < 0)
40534 -  {
40535 -    END_PRIVILEGED ();
40536 -
40537 -  
40538 -    if (errno != EAGAIN)
40539 -    {
40540 -      /* perror ("cannot open NFS lock file"); */
40541 -      return DL_EX_ERROR;
40542 -    }
40543 -
40544 -    
40545 -    BEGIN_PRIVILEGED ();
40546 -  }
40547 -
40548 -  END_PRIVILEGED ();
40549 -
40550 -  
40551 -  close (fd);
40552 -  
40553 -  while (hard_count++ < HARDMAXATTEMPTS)
40554 -  {
40555 -
40556 -    BEGIN_PRIVILEGED ();
40557 -    link (nfslockfile, lockfile);
40558 -    END_PRIVILEGED ();
40559 -
40560 -    if (stat (nfslockfile, &sb) != 0)
40561 -    {
40562 -      /* perror ("stat"); */
40563 -      return DL_EX_ERROR;
40564 -    }
40565 -
40566 -    if (sb.st_nlink == 2)
40567 -      break;
40568 -
40569 -    if (count == 0)
40570 -      prev_size = sb.st_size;
40571 -
40572 -    if (prev_size == sb.st_size && ++count > Retry)
40573 -    {
40574 -      if (DotlockFlags & DL_FL_FORCE)
40575 -      {
40576 -       BEGIN_PRIVILEGED ();
40577 -       unlink (lockfile);
40578 -       END_PRIVILEGED ();
40579 -
40580 -       count = 0;
40581 -       continue;
40582 -      }
40583 -      else
40584 -      {
40585 -       BEGIN_PRIVILEGED ();
40586 -       unlink (nfslockfile);
40587 -       END_PRIVILEGED ();
40588 -       return DL_EX_EXIST;
40589 -      }
40590 -    }
40591 -    
40592 -    prev_size = sb.st_size;
40593 -    
40594 -    /* don't trust sleep (3) as it may be interrupted
40595 -     * by users sending signals. 
40596 -     */
40597 -    
40598 -    t = time (NULL);
40599 -    do {
40600 -      sleep (1);
40601 -    } while (time (NULL) == t);
40602 -  }
40603 -
40604 -  BEGIN_PRIVILEGED ();
40605 -  unlink (nfslockfile);
40606 -  END_PRIVILEGED ();
40607 -
40608 -  return DL_EX_OK;
40609 -}
40610 -
40611 -
40612 -/*
40613 - * Unlock a file. 
40614 - * 
40615 - * The same comment as for dotlock_lock () applies here.
40616 - * 
40617 - */
40618 -
40619 -static int
40620 -dotlock_unlock (const char *realpath)
40621 -{
40622 -  char lockfile[_POSIX_PATH_MAX + LONG_STRING];
40623 -  int i;
40624 -
40625 -  snprintf (lockfile, sizeof (lockfile), "%s.lock",
40626 -          realpath);
40627 -  
40628 -  BEGIN_PRIVILEGED ();
40629 -  i = unlink (lockfile);
40630 -  END_PRIVILEGED ();
40631 -  
40632 -  if (i == -1)
40633 -    return DL_EX_ERROR;
40634 -  
40635 -  return DL_EX_OK;
40636 -}
40637 -
40638 -/* remove an empty file */
40639 -
40640 -static int
40641 -dotlock_unlink (const char *realpath)
40642 -{
40643 -  struct stat lsb;
40644 -  int i = -1;
40645 -
40646 -  if (dotlock_lock (realpath) != DL_EX_OK)
40647 -    return DL_EX_ERROR;
40648 -
40649 -  if ((i = lstat (realpath, &lsb)) == 0 && lsb.st_size == 0)
40650 -    unlink (realpath);
40651 -
40652 -  dotlock_unlock (realpath);
40653 -
40654 -  return (i == 0) ?  DL_EX_OK : DL_EX_ERROR;
40655 -}
40656 -
40657 -
40658 -/*
40659 - * Check if a file can be locked at all.
40660 - * 
40661 - * The same comment as for dotlock_lock () applies here.
40662 - * 
40663 - */
40664 -
40665 -static int
40666 -dotlock_try (void)
40667 -{
40668 -#ifdef USE_SETGID
40669 -  struct stat sb;
40670 -#endif
40671 -
40672 -  if (access (".", W_OK) == 0)
40673 -    return DL_EX_OK;
40674 -
40675 -#ifdef USE_SETGID
40676 -  if (stat (".", &sb) == 0)
40677 -  {
40678 -    if ((sb.st_mode & S_IWGRP) == S_IWGRP && sb.st_gid == MailGid)
40679 -      return DL_EX_NEED_PRIVS;
40680 -  }
40681 -#endif
40682 -
40683 -  return DL_EX_IMPOSSIBLE;
40684 -}
40685 diff -uNr mutt-1.4.orig/muttlib.c mutt-1.4/muttlib.c
40686 --- mutt-1.4.orig/muttlib.c     Sun Nov  3 21:42:52 2002
40687 +++ mutt-1.4/muttlib.c  Sun Nov  3 21:57:20 2002
40688 @@ -270,7 +270,7 @@
40689  #ifdef MIXMASTER
40690    mutt_free_list (&(*h)->chain);
40691  #endif
40692 -#if defined USE_POP || defined USE_IMAP
40693 +#if defined USE_POP || defined USE_IMAP || defined USE_NNTP
40694    safe_free ((void**) &(*h)->data);
40695  #endif
40696    safe_free ((void **) h);
40697 @@ -648,6 +648,13 @@
40698    safe_free ((void **) &(*p)->message_id);
40699    safe_free ((void **) &(*p)->supersedes);
40700    safe_free ((void **) &(*p)->date);
40701 +  safe_free ((void **) &(*p)->organization);
40702 +#ifdef USE_NNTP
40703 +  safe_free ((void **) &(*p)->newsgroups);
40704 +  safe_free ((void **) &(*p)->xref);
40705 +  safe_free ((void **) &(*p)->followup_to);
40706 +  safe_free ((void **) &(*p)->x_comment_to);
40707 +#endif
40708    mutt_free_list (&(*p)->references);
40709    mutt_free_list (&(*p)->in_reply_to);
40710    mutt_free_list (&(*p)->userhdrs);
40711 @@ -1143,6 +1150,14 @@
40712      return 0;
40713    }
40714  #endif
40715 +
40716 +#ifdef USE_NNTP
40717 +  if (magic == M_NNTP)
40718 +  {
40719 +    mutt_error _("Can't save message to newsserver.");
40720 +    return 0;
40721 +  }
40722 +#endif
40723  
40724    if (stat (s, st) != -1)
40725    {
40726 diff -uNr mutt-1.4.orig/mx.c mutt-1.4/mx.c
40727 --- mutt-1.4.orig/mx.c  Sun Nov  3 21:42:52 2002
40728 +++ mutt-1.4/mx.c       Sun Nov  3 21:57:20 2002
40729 @@ -42,6 +42,10 @@
40730  #include "pop.h"
40731  #endif
40732  
40733 +#ifdef USE_NNTP
40734 +#include "nntp.h"
40735 +#endif
40736 +
40737  #ifdef BUFFY_SIZE
40738  #include "buffy.h"
40739  #endif
40740 @@ -354,6 +358,22 @@
40741  }
40742  #endif
40743  
40744 +#ifdef USE_NNTP
40745 +int mx_is_nntp (const char *p)
40746 +{
40747 +  url_scheme_t scheme;
40748 +
40749 +  if (!p)
40750 +    return 0;
40751 +
40752 +  scheme = url_check_scheme (p);
40753 +  if (scheme == U_NNTP || scheme == U_NNTPS)
40754 +    return 1;
40755 +
40756 +  return 0;
40757 +}
40758 +#endif
40759 +
40760  int mx_get_magic (const char *path)
40761  {
40762    struct stat st;
40763 @@ -371,6 +391,11 @@
40764      return M_POP;
40765  #endif /* USE_POP */
40766  
40767 +#ifdef USE_NNTP
40768 +  if (mx_is_nntp (path))
40769 +    return M_NNTP;
40770 +#endif /* USE_NNTP */
40771 +
40772    if (stat (path, &st) == -1)
40773    {
40774      dprint (1, (debugfile, "mx_get_magic(): unable to stat %s: %s (errno %d).\n",
40775 @@ -721,6 +746,12 @@
40776        break;
40777  #endif /* USE_POP */
40778  
40779 +#ifdef USE_NNTP
40780 +    case M_NNTP:
40781 +      rc = nntp_open_mailbox (ctx);
40782 +      break;
40783 +#endif /* USE_NNTP */
40784 +
40785      default:
40786        rc = -1;
40787        break;
40788 @@ -766,6 +797,10 @@
40789    if (ctx->magic == M_POP)
40790      pop_close_mailbox (ctx);
40791  #endif /* USE_POP */
40792 +#ifdef USE_NNTP
40793 +  if (ctx->magic == M_NNTP)
40794 +    nntp_fastclose_mailbox (ctx);
40795 +#endif /* USE_NNTP */
40796    if (ctx->id_hash)
40797      hash_destroy (&ctx->id_hash, NULL);
40798    mutt_clear_threads (ctx);
40799 @@ -823,6 +858,12 @@
40800        rc = pop_sync_mailbox (ctx, index_hint);
40801        break;
40802  #endif /* USE_POP */
40803 +
40804 +#ifdef USE_NNTP
40805 +    case M_NNTP:
40806 +      rc = nntp_sync_mailbox (ctx);
40807 +      break;
40808 +#endif /* USE_NNTP */
40809    }
40810  
40811  #if 0
40812 @@ -899,6 +940,16 @@
40813  
40814    ctx->closing = 1;
40815  
40816 +#ifdef USE_NNTP
40817 +  if (ctx->magic == M_NNTP)
40818 +  {
40819 +    int ret;
40820 +
40821 +    ret = nntp_close_mailbox (ctx);
40822 +    mx_fastclose_mailbox (ctx);
40823 +    return ret;
40824 +  }
40825 +#endif
40826    if (ctx->readonly || ctx->dontwrite)
40827    {
40828      /* mailbox is readonly or we don't want to write */
40829 @@ -1460,6 +1511,11 @@
40830        case M_POP:
40831         return (pop_check_mailbox (ctx, index_hint));
40832  #endif /* USE_POP */
40833 +
40834 +#ifdef USE_NNTP
40835 +      case M_NNTP:
40836 +       return (nntp_check_mailbox (ctx));
40837 +#endif /* USE_NNTP */
40838      }
40839    }
40840  
40841 @@ -1520,6 +1576,15 @@
40842      }
40843  #endif /* USE_POP */
40844  
40845 +#ifdef USE_NNTP
40846 +    case M_NNTP:
40847 +    {
40848 +      if (nntp_fetch_message (msg, ctx, msgno) != 0)
40849 +       FREE (&msg);
40850 +      break;
40851 +    }
40852 +#endif /* USE_NNTP */
40853 +
40854      default:
40855        dprint (1, (debugfile, "mx_open_message(): function not implemented for mailbox type %d.\n", ctx->magic));
40856        FREE (&msg);
40857 @@ -1608,6 +1673,9 @@
40858  #ifdef USE_POP
40859        || (*msg)->magic == M_POP
40860  #endif
40861 +#ifdef USE_NNTP
40862 +      || (*msg)->magic == M_NNTP
40863 +#endif
40864        )
40865    {
40866      r = safe_fclose (&(*msg)->fp);
40867 diff -uNr mutt-1.4.orig/mx.h mutt-1.4/mx.h
40868 --- mutt-1.4.orig/mx.h  Sun Nov  3 21:42:51 2002
40869 +++ mutt-1.4/mx.h       Sun Nov  3 21:57:20 2002
40870 @@ -44,6 +44,9 @@
40871  #ifdef USE_COMPRESSED
40872    , M_COMPRESSED
40873  #endif
40874 +#ifdef USE_NNTP
40875 +  , M_NNTP
40876 +#endif
40877  };
40878  
40879  WHERE short DefaultMagic INITVAL (M_MBOX);
40880 diff -uNr mutt-1.4.orig/newsrc.c mutt-1.4/newsrc.c
40881 --- mutt-1.4.orig/newsrc.c      Thu Jan  1 01:00:00 1970
40882 +++ mutt-1.4/newsrc.c   Sun Nov  3 21:57:20 2002
40883 @@ -0,0 +1,1042 @@
40884 +/*
40885 + * Copyright (C) 1998 Brandon Long <blong@fiction.net>
40886 + * Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
40887 + * Copyright (C) 2000-2001 Vsevolod Volkov <vvv@mutt.org.ua>
40888 + * 
40889 + *     This program is free software; you can redistribute it and/or modify
40890 + *     it under the terms of the GNU General Public License as published by
40891 + *     the Free Software Foundation; either version 2 of the License, or
40892 + *     (at your option) any later version.
40893 + * 
40894 + *     This program is distributed in the hope that it will be useful,
40895 + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
40896 + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40897 + *     GNU General Public License for more details.
40898 + * 
40899 + *     You should have received a copy of the GNU General Public License
40900 + *     along with this program; if not, write to the Free Software
40901 + *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
40902 + */ 
40903 +
40904 +#include "mutt.h"
40905 +#include "mutt_curses.h"
40906 +#include "sort.h"
40907 +#include "mx.h"
40908 +#include "mime.h"
40909 +#include "mailbox.h"
40910 +#include "nntp.h"
40911 +#include "rfc822.h"
40912 +#include "rfc1524.h"
40913 +#include "rfc2047.h"
40914 +
40915 +#include <unistd.h>
40916 +#include <string.h>
40917 +#include <ctype.h>
40918 +#include <stdlib.h>
40919 +#include <sys/stat.h>
40920 +
40921 +void nntp_add_to_list (NNTP_SERVER *s, NNTP_DATA *d)
40922 +{
40923 +  LIST *l;
40924 +
40925 +  if (!s || !d)
40926 +    return;
40927 +
40928 +  l = safe_calloc (1, sizeof (LIST));
40929 +  if (s->list)
40930 +    s->tail->next = l;
40931 +  else
40932 +    s->list = l;
40933 +  s->tail = l;
40934 +  l->data = (void *) d;
40935 +}
40936 +
40937 +static int nntp_parse_newsrc_line (NNTP_SERVER *news, char *line)
40938 +{
40939 +  NNTP_DATA *data;
40940 +  char group[LONG_STRING];
40941 +  int x = 1;
40942 +  char *p = line, *b, *h;
40943 +  size_t len;
40944 +
40945 +  while (*p)
40946 +  {
40947 +    if (*p++ == ',')
40948 +      x++;
40949 +  }
40950 +
40951 +  p = line;
40952 +  while (*p && (*p != ':' && *p != '!')) p++;
40953 +  if (!*p)
40954 +    return -1;
40955 +  len = p + 1 - line;
40956 +  if (len > sizeof (group))
40957 +    len = sizeof (group);
40958 +  strfcpy (group, line, len);
40959 +  if ((data = (NNTP_DATA *)hash_find (news->newsgroups, group)) == NULL)
40960 +  {
40961 +    data = (NNTP_DATA *) safe_calloc (1, sizeof (NNTP_DATA) + strlen (group) + 1);
40962 +    data->group = (char *) data + sizeof (NNTP_DATA);
40963 +    strcpy (data->group, group);
40964 +    data->nserv = news;
40965 +    data->deleted = 1;
40966 +    if (news->newsgroups->nelem < news->newsgroups->curnelem * 2)
40967 +      news->newsgroups = hash_resize (news->newsgroups, news->newsgroups->nelem * 2);
40968 +    hash_insert (news->newsgroups, data->group, data, 0);
40969 +    nntp_add_to_list (news, data);
40970 +  }
40971 +  else
40972 +    FREE ((void **) &data->entries);
40973 +
40974 +  data->rc = 1;
40975 +  data->entries = safe_calloc (x*2, sizeof (NEWSRC_ENTRY));
40976 +  data->max = x*2;
40977 +
40978 +  if (*p == ':')
40979 +    data->subscribed = 1;
40980 +  else
40981 +    data->subscribed = 0;
40982 +
40983 +  p++;
40984 +  b = p;
40985 +  x = 0;
40986 +  while (*b)
40987 +  {
40988 +    while (*p && *p != ',' && *p != '\n') p++;
40989 +    if (*p)
40990 +    {
40991 +      *p = '\0';
40992 +      p++;
40993 +    }
40994 +    if ((h = strchr(b, '-')))
40995 +    {
40996 +      *h = '\0';
40997 +      h++;
40998 +      data->entries[x].first = atoi(b);
40999 +      data->entries[x].last = atoi(h);
41000 +    }
41001 +    else
41002 +    {
41003 +      data->entries[x].first = atoi(b);
41004 +      data->entries[x].last = data->entries[x].first;
41005 +    }
41006 +    b = p;
41007 +    if (data->entries[x].last != 0)
41008 +      x++;
41009 +  }
41010 +  if (x && !data->lastMessage)
41011 +    data->lastMessage = data->entries[x-1].last;
41012 +  data->num = x;
41013 +  mutt_newsgroup_stat (data);
41014 +  dprint (2, (debugfile, "parse_line: Newsgroup %s\n", data->group));
41015 +  
41016 +  return 0;
41017 +}
41018 +
41019 +static int slurp_newsrc (NNTP_SERVER *news)
41020 +{
41021 +  FILE *fp;
41022 +  char *buf;
41023 +  struct stat sb;
41024 +
41025 +  news->stat = stat (news->newsrc, &sb);
41026 +  news->size = sb.st_size;
41027 +  news->mtime = sb.st_mtime;
41028 +
41029 +  if ((fp = safe_fopen (news->newsrc, "r")) == NULL)
41030 +    return -1;
41031 +  /* hmm, should we use dotlock? */
41032 +  if (mx_lock_file (news->newsrc, fileno (fp), 0, 0, 1))
41033 +  {
41034 +    fclose (fp);
41035 +    return -1;
41036 +  }
41037 +
41038 +  buf = safe_malloc (sb.st_size + 1);
41039 +  while (fgets (buf, sb.st_size + 1, fp))
41040 +    nntp_parse_newsrc_line (news, buf);
41041 +  FREE (&buf);
41042 +
41043 +  mx_unlock_file (news->newsrc, fileno (fp), 0);
41044 +  fclose (fp);
41045 +  return 0;
41046 +}
41047 +
41048 +void nntp_cache_expand (char *dst, const char *src)
41049 +{
41050 +  snprintf (dst, _POSIX_PATH_MAX, "%s/%s", NewsCacheDir, src);
41051 +  mutt_expand_path (dst, _POSIX_PATH_MAX);
41052 +}
41053 +
41054 +/* Loads $news_cache_dir/.index into memory, loads newsserver data
41055 + * and newsgroup cache names */
41056 +static int nntp_parse_cacheindex (NNTP_SERVER *news)
41057 +{
41058 +  struct stat st;
41059 +  char buf[HUGE_STRING], *cp;
41060 +  char dir[_POSIX_PATH_MAX], file[_POSIX_PATH_MAX];
41061 +  FILE *index;
41062 +  NNTP_DATA *data;
41063 +  int l, m, t;
41064 +
41065 +  /* check is server name defined or not */
41066 +  if (!news || !news->conn || !news->conn->account.host)
41067 +    return -1;
41068 +  unset_option (OPTNEWSCACHE);
41069 +  if (!NewsCacheDir || !*NewsCacheDir)
41070 +    return 0;
41071 +
41072 +  strfcpy (dir, NewsCacheDir, sizeof (dir));
41073 +  mutt_expand_path (dir, sizeof(dir));
41074 +
41075 +  if (lstat (dir, &st) || (st.st_mode & S_IFDIR) == 0)
41076 +  {
41077 +    snprintf (buf, sizeof(buf), _("Directory %s not exist. Create it?"), dir);
41078 +    if (mutt_yesorno (buf, M_YES) != M_YES || mkdir (dir, (S_IRWXU+S_IRWXG+
41079 +         S_IRWXO)))
41080 +    {
41081 +      mutt_error _("Cache directory not created!");
41082 +      return -1;
41083 +    }
41084 +    mutt_clear_error();
41085 +  }
41086 +
41087 +  set_option (OPTNEWSCACHE);
41088 +
41089 +  FREE (&news->cache);
41090 +  snprintf (buf, sizeof(buf), "%s/.index", dir);
41091 +  if (!(index = safe_fopen (buf, "a+")))
41092 +    return 0;
41093 +  rewind (index);
41094 +  while (fgets (buf, sizeof(buf), index))
41095 +  {
41096 +    buf[strlen(buf) - 1] = 0;  /* strip ending '\n' */
41097 +    if (!mutt_strncmp (buf, "#: ", 3) &&
41098 +       !mutt_strcasecmp (buf+3, news->conn->account.host))
41099 +      break;
41100 +  }
41101 +  while (fgets (buf, sizeof(buf), index))
41102 +  {
41103 +    cp = buf;
41104 +    while (*cp && *cp != ' ') cp++;
41105 +    if (!*cp) continue;
41106 +    cp[0] = 0;
41107 +    if (!mutt_strcmp (buf, "#:"))
41108 +      break;
41109 +    sscanf (cp + 1, "%s %d %d", file, &l, &m);
41110 +    if (!mutt_strcmp (buf, "ALL"))
41111 +    {
41112 +      news->cache = safe_strdup (file);
41113 +      news->newgroups_time = m;
41114 +    }
41115 +    else if (news->newsgroups)
41116 +    {
41117 +      if ((data = (NNTP_DATA *)hash_find (news->newsgroups, buf)) == NULL)
41118 +      {
41119 +       data = (NNTP_DATA *) safe_calloc (1, sizeof (NNTP_DATA) + strlen (buf) + 1);
41120 +       data->group = (char *) data + sizeof (NNTP_DATA);
41121 +       strcpy(data->group, buf);
41122 +       data->nserv = news;
41123 +       data->deleted = 1;
41124 +       if (news->newsgroups->nelem < news->newsgroups->curnelem * 2)
41125 +         news->newsgroups = hash_resize (news->newsgroups, news->newsgroups->nelem * 2);
41126 +       hash_insert (news->newsgroups, data->group, data, 0);
41127 +       nntp_add_to_list (news, data);
41128 +      }
41129 +      data->cache = safe_strdup (file);
41130 +      t = 0;
41131 +      if (!data->firstMessage || data->lastMessage < m)
41132 +       t = 1;
41133 +      if (!data->firstMessage)
41134 +       data->firstMessage = l;
41135 +      if (data->lastMessage < m)
41136 +       data->lastMessage = m;
41137 +      data->lastCached = m;
41138 +      if (t || !data->unread)
41139 +       mutt_newsgroup_stat (data);
41140 +    }
41141 +  }
41142 +  fclose (index);
41143 +  return 0;
41144 +}
41145 +
41146 +const char *
41147 +nntp_format_str (char *dest, size_t destlen, char op, const char *src,
41148 +               const char *fmt, const char *ifstring, const char *elsestring,
41149 +               unsigned long data, format_flag flags)
41150 +{
41151 +  char fn[SHORT_STRING], tmp[SHORT_STRING];
41152 +
41153 +  switch (op)
41154 +  {
41155 +    case 's':
41156 +      strncpy (fn, NewsServer, sizeof(fn) - 1);
41157 +      mutt_strlower (fn);
41158 +      snprintf (tmp, sizeof (tmp), "%%%ss", fmt);
41159 +      snprintf (dest, destlen, tmp, fn);
41160 +      break;
41161 +  }
41162 +  return (src);
41163 +}
41164 +
41165 +/* nntp_parse_url: given an NNPT URL, return host, port,
41166 + * username, password and newsgroup will recognise. */
41167 +int nntp_parse_url (const char *server, ACCOUNT *acct,
41168 +                   char *group, size_t group_len)
41169 +{
41170 +  ciss_url_t url;
41171 +  char *c;
41172 +  int ret = -1;
41173 +
41174 +  /* Defaults */
41175 +  acct->flags = 0;
41176 +  acct->port = NNTP_PORT;
41177 +  acct->type = M_ACCT_TYPE_NNTP;
41178 +
41179 +  c = safe_strdup (server);
41180 +  url_parse_ciss (&url, c);
41181 +
41182 +  if (url.scheme == U_NNTP || url.scheme == U_NNTPS)
41183 +  {
41184 +    if (url.scheme == U_NNTPS)
41185 +    {
41186 +      acct->flags |= M_ACCT_SSL;
41187 +      acct->port = NNTP_SSL_PORT;
41188 +    }
41189 +
41190 +    *group = '\0';
41191 +    if (url.path)
41192 +      strfcpy (group, url.path, group_len);
41193 +
41194 +    ret = mutt_account_fromurl (acct, &url);
41195 +  }
41196 +
41197 +  FREE (&c);
41198 +  return ret;
41199 +}
41200 +
41201 +void nntp_expand_path (char *line, size_t len, ACCOUNT *acct)
41202 +{
41203 +  ciss_url_t url;
41204 +
41205 +  url.path = safe_strdup (line);
41206 +  mutt_account_tourl (acct, &url);
41207 +  url_ciss_tostring (&url, line, len, 0);
41208 +  FREE (&url.path);
41209 +}
41210 +
41211 +/*
41212 + * Automatically loads a newsrc into memory, if necessary.
41213 + * Checks the size/mtime of a newsrc file, if it doesn't match, load
41214 + * again.  Hmm, if a system has broken mtimes, this might mean the file
41215 + * is reloaded every time, which we'd have to fix.
41216 + *
41217 + * a newsrc file is a line per newsgroup, with the newsgroup, then a 
41218 + * ':' denoting subscribed or '!' denoting unsubscribed, then a 
41219 + * comma separated list of article numbers and ranges.
41220 + */
41221 +NNTP_SERVER *mutt_select_newsserver (char *server)
41222 +{
41223 +  char file[_POSIX_PATH_MAX];
41224 +  char *buf, *p;
41225 +  LIST *list;
41226 +  ACCOUNT acct;
41227 +  NNTP_SERVER *serv;
41228 +  CONNECTION *conn;
41229 +
41230 +  if (!server || !*server)
41231 +  {
41232 +    mutt_error _("No newsserver defined!");
41233 +    return NULL;
41234 +  }
41235 +
41236 +  buf = p = safe_calloc (strlen (server) + 10, sizeof (char));
41237 +  if (url_check_scheme (server) == U_UNKNOWN)
41238 +  {
41239 +    strcpy (buf, "nntp://");
41240 +    p = strchr (buf, '\0');
41241 +  }
41242 +  strcpy (p, server);
41243 +
41244 +  if ((nntp_parse_url (buf, &acct, file, sizeof (file))) < 0 || *file)
41245 +  {
41246 +    FREE (&buf);
41247 +    mutt_error (_("%s is an invalid newsserver specification!"), server);
41248 +    return NULL;
41249 +  }
41250 +  FREE (&buf);
41251 +
41252 +  conn = mutt_conn_find (NULL, &acct);
41253 +  if (!conn)
41254 +    return NULL;
41255 +
41256 +  mutt_FormatString (file, sizeof (file), NONULL (NewsRc), nntp_format_str, 0, 0);
41257 +  mutt_expand_path (file, sizeof (file));
41258 +
41259 +  serv = (NNTP_SERVER *)conn->data;
41260 +  if (serv)
41261 +  {
41262 +    struct stat sb;
41263 +
41264 +    /* externally modified? */
41265 +    if (serv->stat != stat (file, &sb) || (!serv->stat &&
41266 +       (serv->size != sb.st_size || serv->mtime != sb.st_mtime)))
41267 +    {
41268 +      for (list = serv->list; list; list = list->next)
41269 +      {
41270 +       NNTP_DATA *data = (NNTP_DATA *) list->data;
41271 +
41272 +       if (data)
41273 +       {
41274 +         data->subscribed = 0;
41275 +         data->rc = 0;
41276 +         data->num = 0;
41277 +       }
41278 +      }
41279 +      slurp_newsrc (serv);
41280 +      nntp_clear_cacheindex (serv);
41281 +    }
41282 +
41283 +    if (serv->status == NNTP_BYE)
41284 +      serv->status = NNTP_NONE;
41285 +    nntp_check_newgroups (serv, 0);
41286 +    return serv;
41287 +  }
41288 +
41289 +  /* New newsserver */
41290 +  serv = safe_calloc (1, sizeof (NNTP_SERVER));
41291 +  serv->conn = conn;
41292 +  serv->newsrc = safe_strdup (file);
41293 +  serv->newsgroups = hash_create (1009);
41294 +  slurp_newsrc (serv);                 /* load .newsrc */
41295 +  nntp_parse_cacheindex (serv);                /* load .index */
41296 +  if (option (OPTNEWSCACHE) && serv->cache && nntp_get_cache_all (serv) >= 0)
41297 +    nntp_check_newgroups (serv, 1);
41298 +  else if (nntp_get_active (serv) < 0)
41299 +  {
41300 +    hash_destroy (&serv->newsgroups, nntp_delete_data);
41301 +    for (list = serv->list; list; list = list->next)
41302 +      list->data = NULL;
41303 +    mutt_free_list (&serv->list);
41304 +    FREE (&serv->newsrc);
41305 +    FREE (&serv->cache);
41306 +    FREE (&serv);
41307 +    return NULL;
41308 +  }
41309 +  nntp_clear_cacheindex (serv);
41310 +  conn->data = (void *)serv;
41311 +
41312 +  return serv;
41313 +}
41314 +
41315 +/* 
41316 + * full status flags are not supported by nntp, but we can fake some
41317 + * of them.  This is how:
41318 + * Read = a read message number is in the .newsrc
41319 + * New = a message is new since we last read this newsgroup
41320 + * Old = anything else
41321 + * So, Read is marked as such in the newsrc, old is anything that is 
41322 + * "skipped" in the newsrc, and new is anything not in the newsrc nor
41323 + * in the cache. By skipped, I mean before the last unread message
41324 + */
41325 +void nntp_get_status (CONTEXT *ctx, HEADER *h, char *group, int article)
41326 +{
41327 +  NNTP_DATA *data = (NNTP_DATA *) ctx->data;
41328 +  int x;
41329 +
41330 +  if (group)
41331 +    data = (NNTP_DATA *) hash_find (data->nserv->newsgroups, group);
41332 +
41333 +  if (!data)
41334 +  {
41335 +#ifdef DEBUG
41336 +    if (group)
41337 +      dprint (3, (debugfile, "newsgroup %s not found\n", group));
41338 +#endif
41339 +    return;
41340 +  }
41341 +
41342 +  for (x = 0; x < data->num; x++)
41343 +  {
41344 +    if ((article >= data->entries[x].first) &&
41345 +       (article <= data->entries[x].last))
41346 +    {
41347 +      /* we cannot use mutt_set_flag() because mx_update_context()
41348 +        didn't called yet */
41349 +      h->read = 1;
41350 +      return;
41351 +    }
41352 +  }
41353 +  /* If article was not cached yet, it is new! :) */
41354 +  if (!data->cache || article > data->lastCached)
41355 +    return;
41356 +  /* Old articles are articles which aren't read but an article after them
41357 +   * has been cached */
41358 +  if (option (OPTMARKOLD))
41359 +    h->old = 1;
41360 +}
41361 +
41362 +void mutt_newsgroup_stat (NNTP_DATA *data)
41363 +{
41364 +  int i;
41365 +  unsigned int first, last;
41366 +
41367 +  data->unread = 0;
41368 +  if (data->lastMessage == 0 || data->firstMessage > data->lastMessage)
41369 +    return;
41370 +
41371 +  data->unread = data->lastMessage - data->firstMessage + 1;
41372 +  for (i = 0; i < data->num; i++)
41373 +  {
41374 +    first = data->entries[i].first;
41375 +    if (first < data->firstMessage)
41376 +      first = data->firstMessage;
41377 +    last = data->entries[i].last;
41378 +    if (last > data->lastMessage)
41379 +      last = data->lastMessage;
41380 +    if (first <= last)
41381 +      data->unread -= last - first + 1;
41382 +  }
41383 +}
41384 +
41385 +static int puti (char *line, int num)
41386 +{
41387 +  char *p, s[32];
41388 +
41389 +  for (p = s; num; )
41390 +  {
41391 +    *p++ = '0' + num % 10;
41392 +    num /= 10;
41393 +  }
41394 +  while (p > s)
41395 +    *line++ = *--p, num++;
41396 +  *line = '\0';
41397 +  return num;
41398 +}
41399 +
41400 +static void nntp_create_newsrc_line (NNTP_DATA *data, char **buf, char **pline, size_t *buflen)
41401 +{
41402 +  char *line = *pline;
41403 +  size_t len = *buflen - (*pline - *buf);
41404 +  int x, i;
41405 +
41406 +  if (len < LONG_STRING * 10)
41407 +  {
41408 +    len += *buflen;
41409 +    *buflen *= 2;
41410 +    line = *buf;
41411 +    safe_realloc ((void **) buf, *buflen);
41412 +    line = *buf + (*pline - line);
41413 +  }
41414 +  strcpy (line, data->group);
41415 +  len -= strlen (line) + 1;
41416 +  line += strlen (line);
41417 +  *line++ = data->subscribed ? ':' : '!';
41418 +  *line = '\0';
41419 +
41420 +  for (x = 0; x < data->num; x++)
41421 +  {
41422 +    if (len < LONG_STRING)
41423 +    {
41424 +      len += *buflen;
41425 +      *buflen *= 2;
41426 +      *pline = line;
41427 +      line = *buf;
41428 +      safe_realloc ((void **) buf, *buflen);
41429 +      line = *buf + (*pline - line);
41430 +    }
41431 +    if (x)
41432 +    {
41433 +      *line++ = ',';
41434 +      len--;
41435 +    }
41436 +
41437 +#if 0
41438 +    if (data->entries[x].first == data->entries[x].last)
41439 +      snprintf (line, len, "%d%n", data->entries[x].first, &i);
41440 +    else
41441 +      snprintf (line, len, "%d-%d%n", 
41442 +           data->entries[x].first, data->entries[x].last, &i);
41443 +    len -= i;
41444 +    line += i;
41445 +#else
41446 +    i = puti (line, data->entries[x].first);
41447 +    line +=i; len -= i;
41448 +    if (data->entries[x].first != data->entries[x].last)
41449 +    {
41450 +      *line++ = '-';
41451 +      len--;
41452 +      i = puti (line, data->entries[x].last);
41453 +      line +=i; len -= i;
41454 +    }
41455 +#endif
41456 +  }
41457 +  *line++ = '\n';
41458 +  *line = '\0';
41459 +  *pline = line;
41460 +}
41461 +
41462 +void newsrc_gen_entries (CONTEXT *ctx)
41463 +{
41464 +  NNTP_DATA *data = (NNTP_DATA *)ctx->data;
41465 +  int series, x;
41466 +  unsigned int last = 0, first = 1;
41467 +  int save_sort = SORT_ORDER;
41468 +
41469 +  if (Sort != SORT_ORDER)
41470 +  {
41471 +    save_sort = Sort;
41472 +    Sort = SORT_ORDER;
41473 +    mutt_sort_headers (ctx, 0);
41474 +  }
41475 +
41476 +  if (!data->max)
41477 +  {
41478 +    data->entries = safe_calloc (5, sizeof (NEWSRC_ENTRY));
41479 +    data->max = 5;
41480 +  }
41481 +
41482 +  /*
41483 +   * Set up to fake initial sequence from 1 to the article before the 
41484 +   * first article in our list
41485 +   */
41486 +  data->num = 0;
41487 +  series = 1;
41488 +
41489 +  for (x = 0; x < ctx->msgcount; x++)
41490 +  {
41491 +    if (series) /* search for first unread */
41492 +    {
41493 +      /*
41494 +       * We don't actually check sequential order, since we mark 
41495 +       * "missing" entries as read/deleted
41496 +       */
41497 +      last = ctx->hdrs[x]->article_num;
41498 +      if (last >= data->firstMessage && !ctx->hdrs[x]->deleted &&
41499 +           !ctx->hdrs[x]->read)
41500 +      {
41501 +       if (data->num >= data->max)
41502 +       {
41503 +         data->max = data->max * 2;
41504 +         safe_realloc ((void **)&data->entries, 
41505 +             data->max * sizeof (NEWSRC_ENTRY));
41506 +       }
41507 +       data->entries[data->num].first = first;
41508 +       data->entries[data->num].last = last - 1;
41509 +       data->num++;
41510 +       series = 0;
41511 +      }
41512 +    }
41513 +    else /* search for first read */
41514 +    {
41515 +      if (ctx->hdrs[x]->deleted || ctx->hdrs[x]->read)
41516 +      {
41517 +       first = last + 1;
41518 +       series = 1;
41519 +      }
41520 +      last = ctx->hdrs[x]->article_num;
41521 +    }
41522 +  }
41523 +  if (series && first <= data->lastLoaded)
41524 +  {
41525 +    if (data->num >= data->max)
41526 +    {
41527 +      data->max = data->max * 2;
41528 +      safe_realloc ((void **)&data->entries, 
41529 +                   data->max * sizeof (NEWSRC_ENTRY));
41530 +    }
41531 +    data->entries[data->num].first = first;
41532 +    data->entries[data->num].last = data->lastLoaded;
41533 +    data->num++;
41534 +  }
41535 +
41536 +  if (save_sort != Sort)
41537 +  {
41538 +    Sort = save_sort;
41539 +    mutt_sort_headers (ctx, 0);
41540 +  }
41541 +}
41542 +
41543 +int mutt_newsrc_update (NNTP_SERVER *news)
41544 +{
41545 +  char *buf, *line;
41546 +  NNTP_DATA *data;
41547 +  LIST *tmp;
41548 +  int r = -1;
41549 +  size_t len, llen;
41550 +
41551 +  if (!news)
41552 +    return -1;
41553 +  llen = len = 10 * LONG_STRING;
41554 +  line = buf = safe_calloc (1, len);
41555 +  /* we will generate full newsrc here */
41556 +  for (tmp = news->list; tmp; tmp = tmp->next)
41557 +  {
41558 +    data = (NNTP_DATA *) tmp->data;
41559 +    if (!data || !data->rc)
41560 +      continue;
41561 +    nntp_create_newsrc_line (data, &buf, &line, &llen);
41562 +    dprint (2, (debugfile, "Added to newsrc: %s", line));
41563 +    line += strlen (line);
41564 +  }
41565 +  /* newrc being fully rewritten */
41566 +  if (news->newsrc &&
41567 +     (r = mutt_update_list_file (news->newsrc, NULL, "", buf)) == 0)
41568 +  {
41569 +    struct stat st;
41570 +
41571 +    stat (news->newsrc, &st);
41572 +    news->size = st.st_size;
41573 +    news->mtime = st.st_mtime;
41574 +  }
41575 +  FREE (&buf);
41576 +  return r;
41577 +}
41578 +
41579 +static FILE *mutt_mkname (char *s)
41580 +{
41581 +  char buf[_POSIX_PATH_MAX], *pc;
41582 +  int fd;
41583 +  FILE *fp;
41584 +
41585 +  nntp_cache_expand (buf, s);
41586 +  if ((fp = safe_fopen (buf, "w")))
41587 +    return fp;
41588 +
41589 +  nntp_cache_expand (buf, "cache-XXXXXX");
41590 +  pc = buf + strlen (buf) - 12;        /* positioning to "cache-XXXXXX" */
41591 +  if ((fd = mkstemp (buf)) == -1)
41592 +    return NULL;
41593 +  strcpy (s, pc);      /* generated name */
41594 +  return fdopen (fd, "w");
41595 +}
41596 +
41597 +/* Updates info into .index file: ALL or about selected newsgroup */
41598 +static int nntp_update_cacheindex (NNTP_SERVER *serv, NNTP_DATA *data)
41599 +{
41600 +  char buf[LONG_STRING], *key = "ALL";
41601 +  char file[_POSIX_PATH_MAX];
41602 +
41603 +  if (!serv || !serv->conn || !serv->conn->account.host)
41604 +    return -1;
41605 +
41606 +  if (data && data->group)
41607 +  {
41608 +    key = data->group;
41609 +    snprintf (buf, sizeof (buf), "%s %s %d %d", key, data->cache,
41610 +         data->firstMessage, data->lastLoaded);
41611 +  }
41612 +  else
41613 +  {
41614 +    strfcpy (file, serv->cache, sizeof (file));
41615 +    snprintf (buf, sizeof (buf), "ALL %s 0 %d", file, (int)serv->newgroups_time);
41616 +  }
41617 +  nntp_cache_expand (file, ".index");
41618 +  return mutt_update_list_file (file, serv->conn->account.host, key, buf);
41619 +}
41620 +
41621 +/* Remove cache files of unsubscribed newsgroups */
41622 +void nntp_clear_cacheindex (NNTP_SERVER *news)
41623 +{
41624 +  NNTP_DATA *data;
41625 +  LIST *tmp;
41626 +
41627 +  if (option (OPTSAVEUNSUB) || !news)
41628 +    return;
41629 +
41630 +  for (tmp = news->list; tmp; tmp = tmp->next)
41631 +  {
41632 +    data = (NNTP_DATA *) tmp->data;
41633 +    if (!data || data->subscribed || !data->cache)
41634 +      continue;
41635 +    nntp_delete_cache (data);
41636 +    dprint (2, (debugfile, "Removed from .index: %s\n", data->group));
41637 +  }
41638 +  return;
41639 +}
41640 +
41641 +int nntp_save_cache_index (NNTP_SERVER *news)
41642 +{
41643 +  char buf[HUGE_STRING];
41644 +  char file[_POSIX_PATH_MAX];
41645 +  NNTP_DATA *d;
41646 +  FILE *f;
41647 +  LIST *l;
41648 +
41649 +  if (!news || !news->newsgroups)
41650 +    return -1;
41651 +  if (!option (OPTNEWSCACHE))
41652 +    return 0;
41653 +
41654 +  if (news->cache)
41655 +  {
41656 +    nntp_cache_expand (file, news->cache);
41657 +    unlink (file);
41658 +    f = safe_fopen (file, "w");
41659 +  }
41660 +  else
41661 +  {
41662 +    strfcpy (buf, news->conn->account.host, sizeof(buf));
41663 +    f = mutt_mkname (buf);
41664 +    news->cache = safe_strdup (buf);
41665 +    nntp_cache_expand (file, buf);
41666 +  }
41667 +  if (!f)
41668 +    return -1;
41669 +
41670 +  for (l = news->list; l; l = l->next)
41671 +  {
41672 +    if ((d = (NNTP_DATA *)l->data) && !d->deleted)
41673 +    {
41674 +      if (d->desc)
41675 +       snprintf (buf, sizeof(buf), "%s %d %d %c %s\n", d->group,
41676 +             d->lastMessage, d->firstMessage, d->allowed ? 'y' : 'n',
41677 +             d->desc);
41678 +      else
41679 +       snprintf (buf, sizeof(buf), "%s %d %d %c\n", d->group,
41680 +             d->lastMessage, d->firstMessage, d->allowed ? 'y' : 'n');
41681 +      if (fputs (buf, f) == EOF)
41682 +      {
41683 +       fclose (f);
41684 +       unlink (file);
41685 +       return -1;
41686 +      }
41687 +    }
41688 +  }
41689 +  fclose (f);
41690 +
41691 +  if (nntp_update_cacheindex (news, NULL))
41692 +  {
41693 +    unlink (file);
41694 +    return -1;
41695 +  }
41696 +  return 0;
41697 +}
41698 +
41699 +int nntp_save_cache_group (CONTEXT *ctx)
41700 +{
41701 +  char buf[HUGE_STRING], addr[STRING];
41702 +  char file[_POSIX_PATH_MAX];
41703 +  FILE *f;
41704 +  HEADER *h;
41705 +  struct tm *tm;
41706 +  int i = 0, save = SORT_ORDER;
41707 +  int prev = 0;
41708 +
41709 +  if (!option (OPTNEWSCACHE))
41710 +    return 0;
41711 +  if (!ctx || !ctx->data || ctx->magic != M_NNTP)
41712 +    return -1;
41713 +
41714 +  if (((NNTP_DATA *)ctx->data)->cache)
41715 +  {
41716 +    nntp_cache_expand (file, ((NNTP_DATA *)ctx->data)->cache);
41717 +    unlink (file);
41718 +    f = safe_fopen (file, "w");
41719 +  }
41720 +  else
41721 +  {
41722 +    snprintf (buf, sizeof(buf), "%s-%s",
41723 +       ((NNTP_DATA *)ctx->data)->nserv->conn->account.host,
41724 +       ((NNTP_DATA *)ctx->data)->group);
41725 +    f = mutt_mkname (buf);
41726 +    ((NNTP_DATA *)ctx->data)->cache = safe_strdup (buf);
41727 +    nntp_cache_expand (file, buf);
41728 +  }
41729 +  if (!f)
41730 +    return -1;
41731 +
41732 +  if (Sort != SORT_ORDER)
41733 +  {
41734 +    save = Sort;
41735 +    Sort = SORT_ORDER;
41736 +    mutt_sort_headers (ctx, 0);
41737 +  }
41738 +
41739 +  /* Save only $nntp_context messages... */
41740 +  ((NNTP_DATA *)ctx->data)->lastCached = 0;
41741 +  if (NntpContext && ctx->msgcount > NntpContext)
41742 +    i = ctx->msgcount - NntpContext;
41743 +  for (; i < ctx->msgcount; i++)
41744 +  {
41745 +    if (!ctx->hdrs[i]->deleted && ctx->hdrs[i]->article_num != prev)
41746 +    {
41747 +      h = ctx->hdrs[i];
41748 +      addr[0] = 0;
41749 +      rfc822_write_address (addr, sizeof(addr), h->env->from);
41750 +      tm = gmtime (&h->date_sent);
41751 +      snprintf (buf, sizeof(buf),
41752 +           "%d\t%s\t%s\t%d %s %d %02d:%02d:%02d GMT\t%s\t",
41753 +           h->article_num, h->env->subject, addr, tm->tm_mday,
41754 +           Months[tm->tm_mon], tm->tm_year+1900, tm->tm_hour, tm->tm_min,
41755 +           tm->tm_sec, h->env->message_id);
41756 +      fputs (buf, f);
41757 +      if (h->env->references)
41758 +       mutt_write_references (h->env->references, f);
41759 +      snprintf (buf, sizeof(buf), "\t%ld\t%d\tXref: %s\n", h->content->length,
41760 +           h->lines, NONULL(h->env->xref));
41761 +      if (fputs (buf, f) == EOF)
41762 +      {
41763 +       fclose (f);
41764 +       unlink (file);
41765 +       return -1;
41766 +      }
41767 +    }
41768 +    prev = ctx->hdrs[i]->article_num;
41769 +  }
41770 +
41771 +  if (save != Sort)
41772 +  {
41773 +    Sort = save;
41774 +    mutt_sort_headers (ctx, 0);
41775 +  }
41776 +  fclose (f);
41777 +
41778 +  if (nntp_update_cacheindex (((NNTP_DATA *)ctx->data)->nserv,
41779 +       (NNTP_DATA *)ctx->data))
41780 +  {
41781 +    unlink (file);
41782 +    return -1;
41783 +  }
41784 +  ((NNTP_DATA *)ctx->data)->lastCached = ((NNTP_DATA *)ctx->data)->lastLoaded;
41785 +  return 0;
41786 +}
41787 +
41788 +void nntp_delete_cache (NNTP_DATA *data)
41789 +{
41790 +  char buf[_POSIX_PATH_MAX];
41791 +
41792 +  if (!option (OPTNEWSCACHE) || !data || !data->cache || !data->nserv)
41793 +    return;
41794 +
41795 +  nntp_cache_expand (buf, data->cache);
41796 +  unlink (buf);
41797 +  FREE (&data->cache);
41798 +  data->lastCached = 0;
41799 +  nntp_cache_expand (buf, ".index");
41800 +  mutt_update_list_file (buf, data->nserv->conn->account.host, data->group, NULL);
41801 +}
41802 +
41803 +NNTP_DATA *mutt_newsgroup_subscribe (NNTP_SERVER *news, char *group)
41804 +{
41805 +  NNTP_DATA *data;
41806 +
41807 +  if (!news || !news->newsgroups || !group || !*group)
41808 +    return NULL;
41809 +  if (!(data = (NNTP_DATA *)hash_find (news->newsgroups, group)))
41810 +  {
41811 +    data = (NNTP_DATA *) safe_calloc (1, sizeof (NNTP_DATA) + strlen (group) + 1);
41812 +    data->group = (char *) data + sizeof (NNTP_DATA);
41813 +    strcpy (data->group, group);
41814 +    data->nserv = news;
41815 +    data->deleted = 1;
41816 +    if (news->newsgroups->nelem < news->newsgroups->curnelem * 2)
41817 +      news->newsgroups = hash_resize (news->newsgroups, news->newsgroups->nelem * 2);
41818 +    hash_insert (news->newsgroups, data->group, data, 0);
41819 +    nntp_add_to_list (news, data);
41820 +  }
41821 +  if (!data->subscribed)
41822 +  {
41823 +    data->subscribed = 1;
41824 +    data->rc = 1;
41825 +  }
41826 +  return data;
41827 +}
41828 +
41829 +NNTP_DATA *mutt_newsgroup_unsubscribe (NNTP_SERVER *news, char *group)
41830 +{
41831 +  NNTP_DATA *data;
41832 +
41833 +  if (!news || !news->newsgroups || !group || !*group ||
41834 +       !(data = (NNTP_DATA *)hash_find (news->newsgroups, group)))
41835 +    return NULL;
41836 +  if (data->subscribed)
41837 +  {
41838 +    data->subscribed = 0;
41839 +    if (!option (OPTSAVEUNSUB))
41840 +      data->rc = 0;
41841 +  }
41842 +  return data;
41843 +}
41844 +
41845 +NNTP_DATA *mutt_newsgroup_catchup (NNTP_SERVER *news, char *group)
41846 +{
41847 +  NNTP_DATA *data;
41848 +
41849 +  if (!news || !news->newsgroups || !group || !*group ||
41850 +      !(data = (NNTP_DATA *)hash_find (news->newsgroups, group)))
41851 +    return NULL;
41852 +  if (!data->max)
41853 +  {
41854 +    data->entries = safe_calloc (5, sizeof (NEWSRC_ENTRY));
41855 +    data->max = 5;
41856 +  }
41857 +  data->num = 1;
41858 +  data->entries[0].first = 1;
41859 +  data->unread = 0;
41860 +  data->entries[0].last = data->lastMessage;
41861 +  if (Context && Context->data == data)
41862 +  {
41863 +    int x;
41864 +
41865 +    for (x = 0; x < Context->msgcount; x++)
41866 +      mutt_set_flag (Context, Context->hdrs[x], M_READ, 1);
41867 +  }
41868 +  return data;
41869 +}
41870 +
41871 +NNTP_DATA *mutt_newsgroup_uncatchup (NNTP_SERVER *news, char *group)
41872 +{
41873 +  NNTP_DATA *data;
41874 +
41875 +  if (!news || !news->newsgroups || !group || !*group ||
41876 +      !(data = (NNTP_DATA *)hash_find (news->newsgroups, group)))
41877 +    return NULL;
41878 +  if (!data->max)
41879 +  {
41880 +    data->entries = safe_calloc (5, sizeof (NEWSRC_ENTRY));
41881 +    data->max = 5;
41882 +  }
41883 +  data->num = 1;
41884 +  data->entries[0].first = 1;
41885 +  data->entries[0].last = data->firstMessage - 1;
41886 +  if (Context && Context->data == data)
41887 +  {
41888 +    int x;
41889 +
41890 +    data->unread = Context->msgcount;
41891 +    for (x = 0; x < Context->msgcount; x++)
41892 +      mutt_set_flag (Context, Context->hdrs[x], M_READ, 0);
41893 +  }
41894 +  else
41895 +    data->unread = data->lastMessage - data->entries[0].last;
41896 +  return data;
41897 +}
41898 +
41899 +/* this routine gives the first newsgroup with new messages */
41900 +void nntp_buffy (char *s)
41901 +{
41902 +  LIST *list;
41903 +
41904 +  for (list = CurrentNewsSrv->list; list; list = list->next)
41905 +  {
41906 +    NNTP_DATA *data = (NNTP_DATA *) list->data;
41907 +
41908 +    if (data && data->subscribed && data->unread)
41909 +    {
41910 +      if (Context && Context->magic == M_NNTP &&
41911 +         !mutt_strcmp (data->group, ((NNTP_DATA *) Context->data)->group))
41912 +      {
41913 +       unsigned int i, unread = 0;
41914 +
41915 +       for (i = 0; i < Context->msgcount; i++)
41916 +         if (!Context->hdrs[i]->read && !Context->hdrs[i]->deleted)
41917 +           unread++;
41918 +       if (!unread)
41919 +         continue;
41920 +      }
41921 +      strcpy (s, data->group);
41922 +      break;
41923 +    }
41924 +  }
41925 +}
41926 diff -uNr mutt-1.4.orig/nntp.c mutt-1.4/nntp.c
41927 --- mutt-1.4.orig/nntp.c        Thu Jan  1 01:00:00 1970
41928 +++ mutt-1.4/nntp.c     Sun Nov  3 21:57:20 2002
41929 @@ -0,0 +1,1526 @@
41930 +/*
41931 + * Copyright (C) 1998 Brandon Long <blong@fiction.net>
41932 + * Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
41933 + * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua>
41934 + * 
41935 + *     This program is free software; you can redistribute it and/or modify
41936 + *     it under the terms of the GNU General Public License as published by
41937 + *     the Free Software Foundation; either version 2 of the License, or
41938 + *     (at your option) any later version.
41939 + * 
41940 + *     This program is distributed in the hope that it will be useful,
41941 + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
41942 + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41943 + *     GNU General Public License for more details.
41944 + * 
41945 + *     You should have received a copy of the GNU General Public License
41946 + *     along with this program; if not, write to the Free Software
41947 + *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
41948 + */ 
41949 +
41950 +#include "mutt.h"
41951 +#include "mutt_curses.h"
41952 +#include "sort.h"
41953 +#include "mx.h"
41954 +#include "mime.h"
41955 +#include "rfc1524.h"
41956 +#include "rfc2047.h"
41957 +#include "mailbox.h"
41958 +#include "nntp.h"
41959 +
41960 +#ifdef HAVE_PGP
41961 +#include "pgp.h"
41962 +#endif
41963 +
41964 +#include <unistd.h>
41965 +#include <string.h>
41966 +#include <ctype.h>
41967 +#include <stdlib.h>
41968 +
41969 +static unsigned int _checked = 0;
41970 +
41971 +#ifdef DEBUG
41972 +static void nntp_error (const char *where, const char *msg)
41973 +{
41974 +  dprint (1, (debugfile, "nntp_error(): unexpected response in %s: %s\n", where, msg));
41975 +}
41976 +#endif /* DEBUG */
41977 +
41978 +static int nntp_connect_error (NNTP_SERVER *serv)
41979 +{
41980 +  serv->status = NNTP_NONE;
41981 +  mutt_socket_close (serv->conn);
41982 +  mutt_error _("Server closed connection!");
41983 +  sleep (2);
41984 +  return -1;
41985 +}
41986 +
41987 +static int nntp_connect_and_auth (NNTP_SERVER *serv)
41988 +{
41989 +  CONNECTION *conn = serv->conn;
41990 +  char buf[STRING];
41991 +  unsigned char flags = conn->account.flags;
41992 +
41993 +  serv->status = NNTP_NONE;
41994 +
41995 +  if (mutt_socket_open (conn) < 0)
41996 +    return -1;
41997 +
41998 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
41999 +    return nntp_connect_error (serv);
42000 +
42001 +  if (!mutt_strncmp ("200", buf, 3))
42002 +    mutt_message (_("Connected to %s. Posting ok."), conn->account.host);
42003 +  else if (!mutt_strncmp ("201", buf, 3))
42004 +    mutt_message (_("Connected to %s. Posting NOT ok."), conn->account.host);
42005 +  else
42006 +  {
42007 +    mutt_socket_close (conn);
42008 +    mutt_remove_trailing_ws (buf);
42009 +    mutt_error ("%s", buf);
42010 +    sleep (2);
42011 +    return -1;
42012 +  }
42013 +
42014 +  sleep (1);
42015 +
42016 +  /* Tell INN to switch to mode reader if it isn't so. Ignore all
42017 +   returned codes and messages. */
42018 +  mutt_socket_write (conn, "MODE READER\r\n");
42019 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42020 +    return nntp_connect_error (serv);
42021 +
42022 +  mutt_socket_write (conn, "STAT\r\n");
42023 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42024 +    return nntp_connect_error (serv);
42025 +
42026 +  if (!(conn->account.flags & M_ACCT_USER) && mutt_strncmp ("480", buf, 3))
42027 +  {
42028 +    serv->status = NNTP_OK;
42029 +    return 0;
42030 +  }
42031 +
42032 +  if (mutt_account_getuser (&conn->account) || !conn->account.user[0] ||
42033 +      mutt_account_getpass (&conn->account) || !conn->account.pass[0])
42034 +  {
42035 +    mutt_socket_close (conn);
42036 +    serv->status = NNTP_BYE;
42037 +    conn->account.flags = flags;
42038 +    return -1;
42039 +  }
42040 +
42041 +  mutt_message _("Logging in...");
42042 +
42043 +  snprintf (buf, sizeof (buf), "AUTHINFO USER %s\r\n", conn->account.user);
42044 +  mutt_socket_write (conn, buf);
42045 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42046 +  {
42047 +    conn->account.flags = flags;
42048 +    return nntp_connect_error (serv);
42049 +  }
42050 +
42051 +#ifdef DEBUG
42052 +  /* don't print the password unless we're at the ungodly debugging level */
42053 +  if (debuglevel < M_SOCK_LOG_FULL)
42054 +    dprint (M_SOCK_LOG_CMD, (debugfile, "> AUTHINFO PASS *\n"));
42055 +#endif
42056 +  snprintf (buf, sizeof (buf), "AUTHINFO PASS %s\r\n", conn->account.pass);
42057 +  mutt_socket_write_d (conn, buf, M_SOCK_LOG_FULL);
42058 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42059 +  {
42060 +    conn->account.flags = flags;
42061 +    return nntp_connect_error (serv);
42062 +  }
42063 +
42064 +  if (!mutt_strncmp ("281", buf, 3))
42065 +  {
42066 +    serv->status = NNTP_OK;
42067 +    return 0;
42068 +  }
42069 +
42070 +  mutt_socket_close (conn);
42071 +  conn->account.flags = flags;
42072 +  mutt_error _("Login failed.");
42073 +  sleep (2);
42074 +  return -1;
42075 +}
42076 +
42077 +static int nntp_attempt_features (NNTP_SERVER *serv)
42078 +{
42079 +  char buf[LONG_STRING];
42080 +  CONNECTION *conn = serv->conn;
42081 +
42082 +  mutt_socket_write (conn, "XOVER\r\n");
42083 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42084 +    return nntp_connect_error (serv);
42085 +  if (mutt_strncmp ("500", buf, 3))
42086 +    serv->hasXOVER = 1;
42087 +
42088 +  mutt_socket_write (conn, "XPAT\r\n");
42089 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42090 +    return nntp_connect_error (serv);
42091 +  if (mutt_strncmp ("500", buf, 3))
42092 +    serv->hasXPAT = 1;
42093 +
42094 +  mutt_socket_write (conn, "XGTITLE +\r\n");
42095 +  if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42096 +    return nntp_connect_error (serv);
42097 +  if (mutt_strncmp ("500", buf, 3))
42098 +    serv->hasXGTITLE = 1;
42099 +
42100 +  if (!mutt_strncmp ("282", buf, 3))
42101 +  {
42102 +    do
42103 +    {
42104 +      if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)
42105 +       return nntp_connect_error (serv);
42106 +    } while (!(buf[0] == '.' && buf[1] == '\0'));
42107 +  }
42108 +
42109 +  return 0;
42110 +}
42111 +
42112 +static int nntp_open_connection (NNTP_SERVER *serv)
42113 +{
42114 +  if (serv->status == NNTP_OK)
42115 +    return 0;
42116 +  if (serv->status == NNTP_BYE)
42117 +    return -1;
42118 +  if (nntp_connect_and_auth (serv) < 0)
42119 +    return -1;
42120 +  if (nntp_attempt_features (serv) < 0)
42121 +    return -1;
42122 +  return 0;
42123 +}
42124 +
42125 +static int nntp_reconnect (NNTP_SERVER *serv)
42126 +{
42127 +  char buf[SHORT_STRING];
42128 +
42129 +  mutt_socket_close (serv->conn);
42130 +
42131 +  FOREVER
42132 +  {
42133 +    if (nntp_connect_and_auth (serv) == 0)
42134 +      return 0;
42135 +
42136 +    snprintf (buf, sizeof (buf), _("Connection to %s lost. Reconnect?"),
42137 +                               serv->conn->account.host);
42138 +    if (query_quadoption (OPT_NNTPRECONNECT, buf) != M_YES)
42139 +    {
42140 +      serv->status = NNTP_BYE;
42141 +      return -1;
42142 +    }
42143 +  }
42144 +}
42145 +
42146 +/* Send data from line[LONG_STRING] and receive answer to same line */
42147 +static int mutt_nntp_query (NNTP_DATA *data, char *line, size_t linelen)
42148 +{
42149 +  char buf[LONG_STRING];
42150 +  int done = TRUE;
42151 +
42152 +  if (data->nserv->status == NNTP_BYE)
42153 +    return -1;
42154 +
42155 +  do
42156 +  {
42157 +    if (!*line && data->group)
42158 +    {
42159 +      snprintf (buf, sizeof (buf), "GROUP %s\r\n", data->group);
42160 +      mutt_socket_write (data->nserv->conn, buf);
42161 +    }
42162 +    else
42163 +      mutt_socket_write (data->nserv->conn, line);
42164 +
42165 +    done = TRUE;
42166 +    if (mutt_socket_readln (buf, sizeof (buf), data->nserv->conn) < 0)
42167 +    {
42168 +      if (nntp_reconnect (data->nserv) < 0)
42169 +       return -1;
42170 +
42171 +      if (data->group)
42172 +      {
42173 +       snprintf (buf, sizeof (buf), "GROUP %s\r\n", data->group);
42174 +       mutt_socket_write (data->nserv->conn, buf);
42175 +       if (mutt_socket_readln (buf, sizeof (buf), data->nserv->conn) < 0)
42176 +         return -1;
42177 +      }
42178 +      if (*line) done = FALSE;
42179 +    }
42180 +  } while (!done);
42181 +
42182 +  strfcpy (line, buf, linelen);
42183 +  return 0;
42184 +}
42185 +
42186 +/*
42187 + * This function calls  funct(*line, *data)  for each received line,
42188 + * funct(NULL, *data)  if  rewind(*data)  needs, exits when fail or done.
42189 + * Returned codes:
42190 + *  0 - successful,
42191 + *  1 - correct but not performed (may be, have to be continued),
42192 + * -1 - conection lost,
42193 + * -2 - invalid command or execution error,
42194 + * -3 - error in funct(*line, *data).
42195 + */
42196 +static int mutt_nntp_fetch (NNTP_DATA *nntp_data, char *query, char *msg,
42197 +               int (*funct) (char *, void *), void *data, int tagged)
42198 +{
42199 +  char buf[LONG_STRING];
42200 +  char *inbuf, *p;
42201 +  int done = FALSE;
42202 +  int chunk, line;
42203 +  size_t lenbuf = 0;
42204 +  int ret;
42205 +
42206 +  do
42207 +  {
42208 +    strfcpy (buf, query, sizeof (buf));
42209 +    if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0)
42210 +      return -1;
42211 +    if (buf[0] == '5')
42212 +      return -2;
42213 +    if (buf[0] != '2')
42214 +      return 1;
42215 +
42216 +    ret = 0;
42217 +    line = 0;
42218 +    inbuf = safe_malloc (sizeof (buf));
42219 +
42220 +    FOREVER
42221 +    {
42222 +      chunk = mutt_socket_readln_d (buf, sizeof (buf), nntp_data->nserv->conn,
42223 +                                   M_SOCK_LOG_HDR);
42224 +      if (chunk < 0)
42225 +       break;
42226 +
42227 +      p = buf;
42228 +      if (!lenbuf && buf[0] == '.')
42229 +      {
42230 +       if (buf[1] == '\0')
42231 +       {
42232 +         done = TRUE;
42233 +         break;
42234 +       }
42235 +       if (buf[1] == '.')
42236 +         p++;
42237 +      }
42238 +
42239 +      strfcpy (inbuf + lenbuf, p, sizeof (buf));
42240 +
42241 +      if (chunk >= sizeof (buf))
42242 +      {
42243 +       lenbuf += strlen (p);
42244 +      }
42245 +      else
42246 +      {
42247 +       line++;
42248 +       if (msg && ReadInc && (line % ReadInc == 0)) {
42249 +         if (tagged)
42250 +           mutt_message (_("%s (tagged: %d) %d"), msg, tagged, line);
42251 +         else
42252 +           mutt_message ("%s %d", msg, line);
42253 +       }
42254 +
42255 +       if (ret == 0 && funct (inbuf, data) < 0)
42256 +         ret = -3;
42257 +       lenbuf = 0;
42258 +      }
42259 +
42260 +      safe_realloc ((void **) &inbuf, lenbuf + sizeof (buf));
42261 +    }
42262 +    FREE (&inbuf);
42263 +    funct (NULL, data);
42264 +  }
42265 +  while (!done);
42266 +  return ret;
42267 +}
42268 +
42269 +static int nntp_read_tempfile (char *line, void *file)
42270 +{
42271 +  FILE *f = (FILE *)file;
42272 +
42273 +  if (!line)
42274 +    rewind (f);
42275 +  else
42276 +  {
42277 +    fputs (line, f);
42278 +    if (fputc ('\n', f) == EOF)
42279 +      return -1;
42280 +  }
42281 +  return 0;
42282 +}
42283 +
42284 +static void nntp_parse_xref (CONTEXT *ctx, char *group, char *xref, HEADER *h)
42285 +{
42286 +  register char *p, *b;
42287 +  register char *colon = NULL;
42288 +
42289 +  b = p = xref;
42290 +  while (*p)
42291 +  {
42292 +    /* skip to next word */
42293 +    b = p;
42294 +    while (*b && ((*b == ' ') || (*b == '\t'))) b++;
42295 +    p = b;
42296 +    colon = NULL;
42297 +    /* skip to end of word */
42298 +    while (*p && (*p != ' ') && (*p != '\t')) 
42299 +    {
42300 +      if (*p == ':')
42301 +       colon = p;
42302 +      p++;
42303 +    }
42304 +    if (*p)
42305 +    {
42306 +      *p = '\0';
42307 +      p++;
42308 +    }
42309 +    if (colon)
42310 +    {
42311 +      *colon = '\0';
42312 +      colon++;
42313 +      nntp_get_status (ctx, h, p, atoi(colon));
42314 +      if (h && h->article_num == 0 && mutt_strcmp (group, b) == 0)
42315 +       h->article_num = atoi(colon);
42316 +    }
42317 +  }
42318 +}
42319 +
42320 +/*
42321 + * returns:
42322 + *  0 on success
42323 + *  1 if article not found
42324 + * -1 if read or write error on tempfile or socket
42325 + */
42326 +static int nntp_read_header (CONTEXT *ctx, const char *msgid, int article_num)
42327 +{
42328 +  NNTP_DATA *nntp_data = ((NNTP_DATA *)ctx->data);
42329 +  FILE *f;
42330 +  char buf[LONG_STRING];
42331 +  char tempfile[_POSIX_PATH_MAX];
42332 +  int ret;
42333 +  HEADER *h = ctx->hdrs[ctx->msgcount];
42334 +
42335 +  mutt_mktemp (tempfile);
42336 +  if (!(f = safe_fopen (tempfile, "w+")))
42337 +    return -1;
42338 +
42339 +  if (!msgid)
42340 +    snprintf (buf, sizeof (buf), "HEAD %d\r\n", article_num);
42341 +  else
42342 +    snprintf (buf, sizeof (buf), "HEAD %s\r\n", msgid);
42343 +
42344 +  ret = mutt_nntp_fetch (nntp_data, buf, NULL, nntp_read_tempfile, f, 0);
42345 +  if (ret)
42346 +  {
42347 +#ifdef DEBUG
42348 +    if (ret != -1)
42349 +      dprint(1, (debugfile, "nntp_read_header: %s\n", buf));
42350 +#endif
42351 +    fclose (f);
42352 +    unlink (tempfile);
42353 +    return (ret == -1 ? -1 : 1);
42354 +  }
42355 +
42356 +  h->article_num = article_num;
42357 +  h->env = mutt_read_rfc822_header (f, h, 0, 0);
42358 +  fclose (f);
42359 +  unlink (tempfile);
42360 +
42361 +  if (h->env->xref != NULL)
42362 +    nntp_parse_xref (ctx, nntp_data->group, h->env->xref, h);
42363 +  else if (h->article_num == 0 && msgid)
42364 +  {
42365 +    snprintf (buf, sizeof (buf), "STAT %s\r\n", msgid);
42366 +    if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) == 0)
42367 +      h->article_num = atoi (buf + 4);
42368 +  }
42369 +
42370 +  return 0;
42371 +}
42372 +
42373 +static int parse_description (char *line, void *n)
42374 +{
42375 +#define news ((NNTP_SERVER *) n)
42376 +  register char *d = line;
42377 +  NNTP_DATA *data;
42378 +
42379 +  if (!line)
42380 +    return 0;
42381 +  while (*d && *d != '\t' && *d != ' ') d++;
42382 +    *d = 0;
42383 +  d++;
42384 +  while (*d && (*d == '\t' || *d == ' ')) d++;
42385 +  dprint (2, (debugfile, "group: %s, desc: %s\n", line, d));
42386 +  if ((data = (NNTP_DATA *) hash_find (news->newsgroups, line)) != NULL &&
42387 +       mutt_strcmp (d, data->desc))
42388 +  {
42389 +    FREE (&data->desc);
42390 +    data->desc = safe_strdup (d);
42391 +  }
42392 +  return 0;
42393 +#undef news
42394 +}
42395 +
42396 +static void nntp_get_desc (NNTP_DATA *data, char *mask, char *msg)
42397 +{
42398 +  char buf[STRING];
42399 +
42400 +  if (!option (OPTLOADDESC) || !data || !data->nserv)
42401 +    return;
42402 +
42403 +  /* Get newsgroup description, if we can */
42404 +  if (data->nserv->hasXGTITLE)
42405 +    snprintf (buf, sizeof (buf), "XGTITLE %s\r\n", mask);
42406 +  else
42407 +    snprintf (buf, sizeof (buf), "LIST NEWSGROUPS %s\r\n", mask);
42408 +  if (mutt_nntp_fetch (data, buf, msg, parse_description, data->nserv, 0) != 0)
42409 +  {
42410 +#ifdef DEBUG
42411 +    nntp_error ("nntp_get_desc()", buf);
42412 +#endif
42413 +  }
42414 +}
42415 +
42416 +/*
42417 + * XOVER returns a tab separated list of:
42418 + * id|subject|from|date|Msgid|references|bytes|lines|xref
42419 + *
42420 + * This has to duplicate some of the functionality of 
42421 + * mutt_read_rfc822_header(), since it replaces the call to that (albeit with
42422 + * a limited number of headers which are "parsed" by placement in the list)
42423 + */
42424 +static int nntp_parse_xover (CONTEXT *ctx, char *buf, HEADER *hdr)
42425 +{
42426 +  NNTP_DATA *nntp_data = (NNTP_DATA *) ctx->data;
42427 +  char *p, *b;
42428 +  int x, done = 0;
42429 +
42430 +  hdr->env = mutt_new_envelope();
42431 +  hdr->env->newsgroups = safe_strdup (nntp_data->group);
42432 +  hdr->content = mutt_new_body();
42433 +  hdr->content->type = TYPETEXT;
42434 +  hdr->content->subtype = safe_strdup ("plain");
42435 +  hdr->content->encoding = ENC7BIT;
42436 +  hdr->content->disposition = DISPINLINE;
42437 +  hdr->content->length = -1;
42438 +  b = p = buf;
42439 +
42440 +  for (x = 0; !done && x < 9; x++)
42441 +  {
42442 +    /* if from file, need to skip newline character */
42443 +    while (*p && *p != '\n' && *p != '\t') p++;
42444 +    if (!*p) done++;
42445 +    *p = '\0';
42446 +    p++;
42447 +    switch (x)
42448 +    {
42449 +      case 0:
42450 +
42451 +       hdr->article_num = atoi (b);
42452 +       nntp_get_status (ctx, hdr, NULL, hdr->article_num);
42453 +       break;
42454 +      case 1:
42455 +       hdr->env->subject = safe_strdup (b);
42456 +       /* Now we need to do the things which would normally be done in 
42457 +        * mutt_read_rfc822_header() */
42458 +       if (hdr->env->subject)
42459 +       {
42460 +         regmatch_t pmatch[1];
42461 +
42462 +         rfc2047_decode (&hdr->env->subject);
42463 +
42464 +         if (regexec (ReplyRegexp.rx, hdr->env->subject, 1, pmatch, 0) == 0)
42465 +           hdr->env->real_subj = hdr->env->subject + pmatch[0].rm_eo;
42466 +         else
42467 +           hdr->env->real_subj = hdr->env->subject;
42468 +       }
42469 +       break;
42470 +      case 2:
42471 +       rfc822_free_address (&hdr->env->from);
42472 +       hdr->env->from = rfc822_parse_adrlist (hdr->env->from, b);
42473 +       rfc2047_decode_adrlist (hdr->env->from);
42474 +       break;
42475 +      case 3:
42476 +       hdr->date_sent = mutt_parse_date (b, hdr);
42477 +       hdr->received = hdr->date_sent;
42478 +       break;
42479 +      case 4:
42480 +       FREE (&hdr->env->message_id);
42481 +       hdr->env->message_id = safe_strdup (b);
42482 +       break;
42483 +      case 5:
42484 +       mutt_free_list (&hdr->env->references);
42485 +       hdr->env->references = mutt_parse_references (b, 0);
42486 +       break;
42487 +      case 6:
42488 +       hdr->content->length = atoi (b);
42489 +       break;
42490 +      case 7:
42491 +       hdr->lines = atoi (b);
42492 +       break;
42493 +      case 8:
42494 +       if (!hdr->read)
42495 +         FREE (&hdr->env->xref);
42496 +         b = b + 6;    /* skips the "Xref: " */
42497 +         hdr->env->xref = safe_strdup (b);
42498 +         nntp_parse_xref (ctx, nntp_data->group, b, hdr);
42499 +    }
42500 +    if (!*p)
42501 +      return -1;
42502 +    b = p;
42503 +  }
42504 +  return 0;
42505 +}
42506 +
42507 +typedef struct
42508 +{
42509 +  CONTEXT *ctx;
42510 +  unsigned int base;
42511 +  unsigned int first;
42512 +  unsigned int last;
42513 +  unsigned short *messages;
42514 +  char* msg;
42515 +} FETCH_CONTEXT;
42516 +
42517 +#define fc ((FETCH_CONTEXT *) c)
42518 +static int nntp_fetch_numbers (char *line, void *c)
42519 +{
42520 +  unsigned int num;
42521 +
42522 +  if (!line)
42523 +    return 0;
42524 +  num = atoi (line);
42525 +  if (num < fc->base || num > fc->last)
42526 +    return 0;
42527 +  fc->messages[num - fc->base] = 1;
42528 +  return 0;
42529 +}
42530 +
42531 +static int add_xover_line (char *line, void *c)
42532 +{
42533 +  unsigned int num, total;
42534 +  CONTEXT *ctx = fc->ctx;
42535 +  NNTP_DATA *data = (NNTP_DATA *)ctx->data;
42536 +
42537 +  if (!line)
42538 +    return 0;
42539 +
42540 +  if (ctx->msgcount >= ctx->hdrmax)
42541 +    mx_alloc_memory (ctx);
42542 +  ctx->hdrs[ctx->msgcount] = mutt_new_header ();
42543 +  ctx->hdrs[ctx->msgcount]->index = ctx->msgcount;
42544 +
42545 +  nntp_parse_xover (ctx, line, ctx->hdrs[ctx->msgcount]);
42546 +  num = ctx->hdrs[ctx->msgcount]->article_num;
42547 +
42548 +  if (num >= fc->first && num <= fc->last && fc->messages[num - fc->base])
42549 +  {
42550 +    ctx->msgcount++;
42551 +    if (num > data->lastLoaded)
42552 +      data->lastLoaded = num;
42553 +    num = num - fc->first + 1;
42554 +    total = fc->last - fc->first + 1;
42555 +    if (!ctx->quiet && fc->msg && ReadInc && (num % ReadInc == 0))
42556 +      mutt_message ("%s %d/%d", fc->msg, num, total);
42557 +  }
42558 +  else
42559 +    mutt_free_header (&ctx->hdrs[ctx->msgcount]); /* skip it */
42560 +
42561 +  return 0;
42562 +}
42563 +#undef fc
42564 +
42565 +static int nntp_fetch_headers (CONTEXT *ctx, unsigned int first,
42566 +       unsigned int last)
42567 +{
42568 +  char buf[HUGE_STRING];
42569 +  char *msg = _("Fetching message headers...");
42570 +  NNTP_DATA *nntp_data = ((NNTP_DATA *)ctx->data);
42571 +  int ret;
42572 +  int num;
42573 +  int oldmsgcount;
42574 +  unsigned int current;
42575 +  FILE *f;
42576 +  FETCH_CONTEXT fc;
42577 +
42578 +  /* if empty group or nothing to do */
42579 +  if (!last || first > last)
42580 +    return 0;
42581 +
42582 +  /* fetch list of articles */
42583 +  mutt_message _("Fetching list of articles...");
42584 +  fc.ctx = ctx;
42585 +  fc.base = first;
42586 +  fc.last = last;
42587 +  fc.messages = safe_calloc (last - first + 1, sizeof (unsigned short));
42588 +  snprintf (buf, sizeof (buf), "LISTGROUP %s\r\n", nntp_data->group);
42589 +  if (mutt_nntp_fetch (nntp_data, buf, NULL, nntp_fetch_numbers, &fc, 0) != 0)
42590 +  {
42591 +    mutt_error (_("LISTGROUP command failed: %s"), buf);
42592 +#ifdef DEBUG
42593 +    nntp_error ("nntp_fetch_headers()", buf);
42594 +#endif
42595 +    FREE (&fc.messages);
42596 +    return -1;
42597 +  }
42598 +
42599 +  /* CACHE: must be loaded xover cache here */
42600 +  num = nntp_data->lastCached - first + 1;
42601 +  if (option (OPTNEWSCACHE) && nntp_data->cache && num > 0)
42602 +  {
42603 +    nntp_cache_expand (buf, nntp_data->cache);
42604 +    mutt_message _("Fetching headers from cache...");
42605 +    if ((f = safe_fopen (buf, "r")))
42606 +    {
42607 +      int r = 0;
42608 +
42609 +      /* counting number of lines */
42610 +      while (fgets (buf, sizeof (buf), f) != NULL)
42611 +       r++;
42612 +      rewind (f);
42613 +      while (r > num && fgets (buf, sizeof (buf), f) != NULL)
42614 +       r--;
42615 +      oldmsgcount = ctx->msgcount;
42616 +      fc.first = first;
42617 +      fc.last = first + num - 1;
42618 +      fc.msg = NULL;
42619 +      while (fgets (buf, sizeof (buf), f) != NULL)
42620 +       add_xover_line (buf, &fc);
42621 +      fclose (f);
42622 +      nntp_data->lastLoaded = fc.last;
42623 +      first = fc.last + 1;
42624 +      if (ctx->msgcount > oldmsgcount)
42625 +       mx_update_context (ctx, ctx->msgcount - oldmsgcount);
42626 +    }
42627 +    else
42628 +      nntp_delete_cache (nntp_data);
42629 +  }
42630 +  num = last - first + 1;
42631 +  if (num <= 0)
42632 +  {
42633 +    FREE (&fc.messages);
42634 +    return 0;
42635 +  }
42636 +
42637 +  /*
42638 +   * Without XOVER, we have to fetch each article header and parse
42639 +   * it.  With XOVER, we ask for all of them
42640 +   */
42641 +  mutt_message (msg);
42642 +  if (nntp_data->nserv->hasXOVER)
42643 +  {
42644 +    oldmsgcount = ctx->msgcount;
42645 +    fc.first = first;
42646 +    fc.last = last;
42647 +    fc.msg = msg;
42648 +    snprintf (buf, sizeof (buf), "XOVER %d-%d\r\n", first, last);
42649 +    ret = mutt_nntp_fetch (nntp_data, buf, NULL, add_xover_line, &fc, 0);
42650 +    if (ctx->msgcount > oldmsgcount)
42651 +      mx_update_context (ctx, ctx->msgcount - oldmsgcount);
42652 +    if (ret != 0)
42653 +    {
42654 +      mutt_error (_("XOVER command failed: %s"), buf);
42655 +#ifdef DEBUG
42656 +      nntp_error ("nntp_fetch_headers()", buf);
42657 +#endif
42658 +      FREE (&fc.messages);
42659 +      return -1;
42660 +    }
42661 +    /* fetched OK */
42662 +  }
42663 +  else
42664 +  for (current = first; current <= last; current++)
42665 +  {
42666 +    HEADER *h;
42667 +
42668 +    ret = current - first + 1;
42669 +    mutt_message ("%s %d/%d", msg, ret, num);
42670 +
42671 +    if (!fc.messages[current - fc.base])
42672 +      continue;
42673 +
42674 +    if (ctx->msgcount >= ctx->hdrmax)
42675 +      mx_alloc_memory (ctx);
42676 +    h = ctx->hdrs[ctx->msgcount] = mutt_new_header ();
42677 +    h->index = ctx->msgcount;
42678 +
42679 +    ret = nntp_read_header (ctx, NULL, current);
42680 +    if (ret == 0) /* Got article. Fetch next header */
42681 +    {
42682 +      nntp_get_status (ctx, h, NULL, h->article_num);
42683 +      ctx->msgcount++;
42684 +      mx_update_context (ctx, 1);
42685 +    }
42686 +    else
42687 +      mutt_free_header (&h); /* skip it */
42688 +    if (ret == -1)
42689 +    {
42690 +      FREE (&fc.messages);
42691 +      return -1;
42692 +    }
42693 +
42694 +    if (current > nntp_data->lastLoaded)
42695 +      nntp_data->lastLoaded = current;
42696 +  }
42697 +  FREE (&fc.messages);
42698 +  nntp_data->lastLoaded = last;
42699 +  mutt_clear_error ();
42700 +  return 0;
42701 +}
42702 +
42703 +/* 
42704 + * currently, nntp "mailbox" is "newsgroup"
42705 + */
42706 +int nntp_open_mailbox (CONTEXT *ctx)
42707 +{
42708 +  NNTP_DATA *nntp_data;
42709 +  NNTP_SERVER *serv;
42710 +  char buf[HUGE_STRING];
42711 +  char server[LONG_STRING];
42712 +  int count = 0;
42713 +  unsigned int first;
42714 +  ACCOUNT acct;
42715 +
42716 +  if (nntp_parse_url (ctx->path, &acct, buf, sizeof (buf)) < 0 || !*buf)
42717 +  {
42718 +    mutt_error (_("%s is an invalid newsgroup specification!"), ctx->path);
42719 +    mutt_sleep (2);
42720 +    return -1;
42721 +  }
42722 +
42723 +  server[0] = '\0';
42724 +  nntp_expand_path (server, sizeof (server), &acct);
42725 +  if (!(serv = mutt_select_newsserver (server)) || serv->status != NNTP_OK)
42726 +    return -1;
42727 +
42728 +  CurrentNewsSrv = serv;
42729 +
42730 +  /* create NNTP-specific state struct if nof found in list */
42731 +  if ((nntp_data = (NNTP_DATA *) hash_find (serv->newsgroups, buf)) == NULL)
42732 +  {
42733 +    nntp_data = safe_calloc (1, sizeof (NNTP_DATA) + strlen (buf) + 1);
42734 +    nntp_data->group = (char *) nntp_data + sizeof (NNTP_DATA);
42735 +    strcpy (nntp_data->group, buf);
42736 +    hash_insert (serv->newsgroups, nntp_data->group, nntp_data, 0);
42737 +    nntp_add_to_list (serv, nntp_data);
42738 +  }
42739 +  ctx->data = nntp_data;
42740 +  nntp_data->nserv = serv;
42741 +
42742 +  mutt_message (_("Selecting %s..."), nntp_data->group);
42743 +
42744 +  if (!nntp_data->desc)
42745 +  {
42746 +    nntp_get_desc (nntp_data, nntp_data->group, NULL);
42747 +    if (nntp_data->desc)
42748 +      nntp_save_cache_index (serv);
42749 +  }
42750 +
42751 +  buf[0] = 0;
42752 +  if (mutt_nntp_query (nntp_data, buf, sizeof(buf)) < 0)
42753 +  {
42754 +#ifdef DEBUG
42755 +    nntp_error ("nntp_open_mailbox()", buf);
42756 +#endif
42757 +    return -1;
42758 +  }
42759 +
42760 +  if (mutt_strncmp ("211", buf, 3))
42761 +  {
42762 +    LIST *l = serv->list;
42763 +
42764 +    /* GROUP command failed */
42765 +    if (!mutt_strncmp ("411", buf, 3))
42766 +    {
42767 +      mutt_error (_("Newsgroup %s not found on server %s"),
42768 +                   nntp_data->group, serv->conn->account.host);
42769 +
42770 +      /* CACHE: delete cache and line from .index */
42771 +      nntp_delete_cache (nntp_data);
42772 +      hash_delete (serv->newsgroups, nntp_data->group, NULL, nntp_delete_data);
42773 +      while (l && l->data != (void *) nntp_data) l = l->next;
42774 +      if (l)
42775 +       l->data = NULL;
42776 +
42777 +      sleep (2);
42778 +    }
42779 +
42780 +    return -1;
42781 +  }
42782 +
42783 +  sscanf (buf + 4, "%d %u %u %s", &count, &nntp_data->firstMessage, 
42784 +         &nntp_data->lastMessage, buf);
42785 +
42786 +  nntp_data->deleted = 0;
42787 +
42788 +  time (&serv->check_time);
42789 +
42790 +  /*
42791 +   * Check for max adding context. If it is greater than $nntp_context,
42792 +   * strip off extra articles
42793 +   */
42794 +  first = nntp_data->firstMessage;
42795 +  if (NntpContext && nntp_data->lastMessage - first + 1 > NntpContext)
42796 +    first = nntp_data->lastMessage - NntpContext + 1;
42797 +  if (first)
42798 +    nntp_data->lastLoaded = first - 1;
42799 +  return nntp_fetch_headers (ctx, first, nntp_data->lastMessage);
42800 +}
42801 +
42802 +int nntp_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno)
42803 +{
42804 +  char buf[LONG_STRING];
42805 +  char path[_POSIX_PATH_MAX];
42806 +  NNTP_CACHE *cache;
42807 +  char *m = _("Fetching message...");
42808 +  int ret;
42809 +
42810 +  /* see if we already have the message in our cache */
42811 +  cache = &((NNTP_DATA *) ctx->data)->acache[ctx->hdrs[msgno]->index % NNTP_CACHE_LEN];
42812 +
42813 +  /* if everything is fine, assign msg->fp and return */
42814 +  if (cache->path && cache->index == ctx->hdrs[msgno]->index &&
42815 +      (msg->fp = fopen (cache->path, "r")))
42816 +    return 0;
42817 +
42818 +  /* clear the previous entry */
42819 +  unlink (cache->path);
42820 +  free (cache->path);
42821 +
42822 +  mutt_message (m);
42823 +
42824 +  cache->index = ctx->hdrs[msgno]->index;
42825 +  mutt_mktemp (path);
42826 +  cache->path = safe_strdup (path);
42827 +  if (!(msg->fp = safe_fopen (path, "w+")))
42828 +  {
42829 +    FREE (&cache->path);
42830 +    return -1;
42831 +  }
42832 +
42833 +  if (ctx->hdrs[msgno]->article_num == 0)
42834 +    snprintf (buf, sizeof (buf), "ARTICLE %s\r\n",
42835 +         ctx->hdrs[msgno]->env->message_id);
42836 +  else
42837 +    snprintf (buf, sizeof (buf), "ARTICLE %d\r\n",
42838 +         ctx->hdrs[msgno]->article_num);
42839 +
42840 +  ret = mutt_nntp_fetch ((NNTP_DATA *)ctx->data, buf, m, nntp_read_tempfile,
42841 +       msg->fp, ctx->tagged);
42842 +  if (ret == 1)
42843 +  {
42844 +    mutt_error (_("Article %d not found on server"), 
42845 +         ctx->hdrs[msgno]->article_num);
42846 +    dprint (1, (debugfile, "nntp_fetch_message: %s\n", buf));
42847 +  }
42848 +
42849 +  if (ret)
42850 +  {
42851 +    fclose (msg->fp);
42852 +    unlink (path);
42853 +    FREE (&cache->path);
42854 +    return -1;
42855 +  }
42856 +
42857 +  mutt_free_envelope (&ctx->hdrs[msgno]->env);
42858 +  ctx->hdrs[msgno]->env = mutt_read_rfc822_header (msg->fp, ctx->hdrs[msgno], 0, 0);
42859 +  /* fix content length */
42860 +  fseek(msg->fp, 0, SEEK_END);
42861 +  ctx->hdrs[msgno]->content->length = ftell (msg->fp) - 
42862 +                                        ctx->hdrs[msgno]->content->offset;
42863 +
42864 +  /* this is called in mutt before the open which fetches the message, 
42865 +   * which is probably wrong, but we just call it again here to handle
42866 +   * the problem instead of fixing it.
42867 +   */
42868 +  mutt_parse_mime_message (ctx, ctx->hdrs[msgno]);
42869 +
42870 +  /* These would normally be updated in mx_update_context(), but the 
42871 +   * full headers aren't parsed with XOVER, so the information wasn't
42872 +   * available then.
42873 +   */
42874 +#ifdef HAVE_PGP
42875 +  ctx->hdrs[msgno]->pgp = pgp_query (ctx->hdrs[msgno]->content);
42876 +#endif /* HAVE_PGP */
42877 +
42878 +  mutt_clear_error();
42879 +  rewind (msg->fp);
42880 +
42881 +  return 0;
42882 +}
42883 +
42884 +/* Post article */
42885 +int nntp_post (const char *msg) {
42886 +  char buf[LONG_STRING];
42887 +  size_t len;
42888 +  FILE *f;
42889 +  NNTP_DATA *nntp_data;
42890 +
42891 +  if (Context && Context->magic == M_NNTP)
42892 +    nntp_data = (NNTP_DATA *)Context->data;
42893 +  else
42894 +  {
42895 +    if (!(CurrentNewsSrv = mutt_select_newsserver (NewsServer)) ||
42896 +       !CurrentNewsSrv->list || !CurrentNewsSrv->list->data)
42897 +    {
42898 +      mutt_error (_("Can't post article. No connection to news server."));
42899 +      return -1;
42900 +    }
42901 +    nntp_data = (NNTP_DATA *)CurrentNewsSrv->list->data;
42902 +  }
42903 +
42904 +  if (!(f = safe_fopen (msg, "r")))
42905 +  {
42906 +    mutt_error (_("Can't post article. Unable to open %s"), msg);
42907 +    return -1;
42908 +  }
42909 +
42910 +  strfcpy (buf, "POST\r\n", sizeof (buf));
42911 +  if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0)
42912 +  {
42913 +    mutt_error (_("Can't post article. Connection to %s lost."),
42914 +               nntp_data->nserv->conn->account.host);
42915 +    return -1;
42916 +  }
42917 +  if (buf[0] != '3')
42918 +  {
42919 +    mutt_error (_("Can't post article: %s"), buf);
42920 +    return -1;
42921 +  }
42922 +
42923 +  buf[0] = '.';
42924 +  buf[1] = '\0';
42925 +  while (fgets (buf + 1, sizeof (buf) - 2, f) != NULL)
42926 +  {
42927 +    len = strlen (buf);
42928 +    if (buf[len - 1] == '\n')
42929 +    {
42930 +      buf[len - 1] = '\r';
42931 +      buf[len] = '\n';
42932 +      len++;
42933 +      buf[len] = '\0';
42934 +    }
42935 +    if (buf[1] == '.')
42936 +      mutt_socket_write_d (nntp_data->nserv->conn, buf, M_SOCK_LOG_HDR);
42937 +    else
42938 +      mutt_socket_write_d (nntp_data->nserv->conn, buf + 1, M_SOCK_LOG_HDR);
42939 +  }
42940 +  fclose (f);
42941 +
42942 +  if (buf[strlen (buf) - 1] != '\n')
42943 +    mutt_socket_write_d (nntp_data->nserv->conn, "\r\n", M_SOCK_LOG_HDR);
42944 +  mutt_socket_write_d (nntp_data->nserv->conn, ".\r\n", M_SOCK_LOG_HDR);
42945 +  if (mutt_socket_readln (buf, sizeof (buf), nntp_data->nserv->conn) < 0)
42946 +  {
42947 +    mutt_error (_("Can't post article. Connection to %s lost."),
42948 +               nntp_data->nserv->conn->account.host);
42949 +    return -1;
42950 +  }
42951 +  if (buf[0] != '2')
42952 +  {
42953 +    mutt_error (_("Can't post article: %s"), buf);
42954 +    return -1;
42955 +  }
42956 +
42957 +  return 0;
42958 +}
42959 +
42960 +/* nntp_logout_all: close all open connections. */
42961 +void nntp_logout_all (void)
42962 +{
42963 +  char buf[LONG_STRING];
42964 +  CONNECTION* conn;
42965 +  CONNECTION* tmp;
42966 +
42967 +  conn = mutt_socket_head ();
42968 +
42969 +  while (conn)
42970 +  {
42971 +    tmp = conn;
42972 +
42973 +    if (conn->account.type == M_ACCT_TYPE_NNTP)
42974 +    {
42975 +      mutt_message (_("Closing connection to %s..."), conn->account.host);
42976 +      mutt_socket_write (conn, "QUIT\r\n");
42977 +      mutt_socket_readln (buf, sizeof (buf), conn);
42978 +      mutt_clear_error ();
42979 +      mutt_socket_close (conn);
42980 +
42981 +      mutt_socket_free (tmp);
42982 +    }
42983 +
42984 +    conn = conn->next;
42985 +  }
42986 +}
42987 +
42988 +static void nntp_free_acache (NNTP_DATA *data)
42989 +{
42990 +  int i;
42991 +
42992 +  for (i = 0; i < NNTP_CACHE_LEN; i++)
42993 +  {
42994 +    if (data->acache[i].path)
42995 +    {
42996 +      unlink (data->acache[i].path);
42997 +      FREE (&data->acache[i].path);
42998 +    }
42999 +  }
43000 +}
43001 +
43002 +void nntp_delete_data (void *p)
43003 +{
43004 +  NNTP_DATA *data = (NNTP_DATA *)p;
43005 +
43006 +  if (!p)
43007 +    return;
43008 +  FREE (&data->entries);
43009 +  FREE (&data->desc);
43010 +  FREE (&data->cache);
43011 +  nntp_free_acache (data);
43012 +  FREE (p);
43013 +}
43014 +
43015 +int nntp_sync_mailbox (CONTEXT *ctx)
43016 +{
43017 +  NNTP_DATA *data = ctx->data;
43018 +
43019 +  /* CACHE: update cache and .index files */
43020 +  if ((option (OPTSAVEUNSUB) || data->subscribed))
43021 +    nntp_save_cache_group (ctx);
43022 +  nntp_free_acache (data);
43023 +
43024 +  data->nserv->check_time = 0; /* next nntp_check_mailbox() will really check */
43025 +  return 0;
43026 +}
43027 +
43028 +void nntp_fastclose_mailbox (CONTEXT *ctx)
43029 +{
43030 +  NNTP_DATA *data = (NNTP_DATA *) ctx->data, *tmp;
43031 +
43032 +  if (!data)
43033 +    return;
43034 +  nntp_free_acache (data);
43035 +  if (!data->nserv || !data->nserv->newsgroups || !data->group)
43036 +    return;
43037 +  nntp_save_cache_index (data->nserv);
43038 +  if ((tmp = hash_find (data->nserv->newsgroups, data->group)) == NULL
43039 +       || tmp != data)
43040 +    nntp_delete_data (data);
43041 +}
43042 +
43043 +/* commit changes and terminate connection */
43044 +int nntp_close_mailbox (CONTEXT *ctx)
43045 +{
43046 +  if (!ctx)
43047 +    return -1;
43048 +  mutt_message _("Quitting newsgroup...");
43049 +  if (ctx->data)
43050 +  {
43051 +    NNTP_DATA *data = (NNTP_DATA *) ctx->data;
43052 +    int ret;
43053 +
43054 +    if (data->nserv && data->nserv->conn && ctx->unread)
43055 +    {
43056 +      ret = query_quadoption (OPT_CATCHUP, _("Mark all articles read?"));
43057 +      if (ret == M_YES)
43058 +       mutt_newsgroup_catchup (data->nserv, data->group);
43059 +      else if (ret < 0)
43060 +       return -1;
43061 +    }
43062 +  }
43063 +  nntp_sync_mailbox (ctx);
43064 +  if (ctx->data && ((NNTP_DATA *)ctx->data)->nserv)
43065 +  {
43066 +    NNTP_SERVER *news;
43067 +
43068 +    news = ((NNTP_DATA *)ctx->data)->nserv;
43069 +    newsrc_gen_entries (ctx);
43070 +    ((NNTP_DATA *)ctx->data)->unread = ctx->unread;
43071 +    mutt_newsrc_update (news);
43072 +  }
43073 +  mutt_clear_error();
43074 +  return 0;
43075 +}
43076 +
43077 +/* use the GROUP command to poll for new mail */
43078 +static int _nntp_check_mailbox (CONTEXT *ctx, NNTP_DATA *nntp_data)
43079 +{
43080 +  char buf[LONG_STRING];
43081 +  int count = 0;
43082 +
43083 +  if (nntp_data->nserv->check_time + NewsPollTimeout > time (NULL))
43084 +    return 0;
43085 +
43086 +  buf[0] = 0;
43087 +  if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0)
43088 +  {
43089 +#ifdef DEBUG
43090 +    nntp_error ("nntp_check_mailbox()", buf);
43091 +#endif
43092 +    return -1;
43093 +  }
43094 +  if (mutt_strncmp ("211", buf, 3))
43095 +  {
43096 +    buf[0] = 0;
43097 +    if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0)
43098 +    {
43099 +#ifdef DEBUG
43100 +      nntp_error ("nntp_check_mailbox()", buf);
43101 +#endif
43102 +      return -1;
43103 +    }
43104 +  }
43105 +  if (!mutt_strncmp ("211", buf, 3))
43106 +  {
43107 +    int first;
43108 +    int last;
43109 +
43110 +    sscanf (buf + 4, "%d %d %d", &count, &first, &last);
43111 +    nntp_data->firstMessage = first;
43112 +    nntp_data->lastMessage = last;
43113 +    if (ctx && last > nntp_data->lastLoaded)
43114 +    {
43115 +      nntp_fetch_headers (ctx, nntp_data->lastLoaded + 1, last);
43116 +      time (&nntp_data->nserv->check_time);
43117 +      return 1;
43118 +    }
43119 +    if (!last || (!nntp_data->rc && !nntp_data->lastCached))
43120 +      nntp_data->unread = count;
43121 +    else
43122 +      mutt_newsgroup_stat (nntp_data);
43123 +    /* active was renumbered? */
43124 +    if (last < nntp_data->lastLoaded)
43125 +    {
43126 +      if (!nntp_data->max)
43127 +      {
43128 +       nntp_data->entries = safe_calloc (5, sizeof (NEWSRC_ENTRY));
43129 +       nntp_data->max = 5;
43130 +      }
43131 +      nntp_data->lastCached = 0;
43132 +      nntp_data->num = 1;
43133 +      nntp_data->entries[0].first = 1;
43134 +      nntp_data->entries[0].last = 0;
43135 +    }
43136 +  }
43137 +
43138 +  time (&nntp_data->nserv->check_time);
43139 +  return 0;
43140 +}
43141 +
43142 +int nntp_check_mailbox (CONTEXT *ctx)
43143 +{
43144 +  return _nntp_check_mailbox (ctx, (NNTP_DATA *)ctx->data);
43145 +}
43146 +
43147 +static int add_group (char *buf, void *serv)
43148 +{
43149 +#define s ((NNTP_SERVER *) serv)
43150 +  char group[LONG_STRING], mod, desc[HUGE_STRING];
43151 +  int first, last;
43152 +  NNTP_DATA *nntp_data;
43153 +  static int n = 0;
43154 +
43155 +  _checked = n;        /* _checked have N, where N = number of groups */
43156 +  if (!buf)    /* at EOF must be zerouth */
43157 +    n = 0;
43158 +
43159 +  if (!s || !buf)
43160 +    return 0;
43161 +
43162 +  *desc = 0;
43163 +  sscanf (buf, "%s %d %d %c %[^\n]", group, &last, &first, &mod, desc);
43164 +  if (!group)
43165 +    return 0;
43166 +  if ((nntp_data = (NNTP_DATA *) hash_find (s->newsgroups, group)) == NULL)
43167 +  {
43168 +    n++;
43169 +    nntp_data = safe_calloc (1, sizeof (NNTP_DATA) + strlen (group) + 1);
43170 +    nntp_data->group = (char *) nntp_data + sizeof (NNTP_DATA);
43171 +    strcpy (nntp_data->group, group);
43172 +    nntp_data->nserv = s;
43173 +    if (s->newsgroups->nelem < s->newsgroups->curnelem * 2)
43174 +      s->newsgroups = hash_resize (s->newsgroups, s->newsgroups->nelem * 2);
43175 +    hash_insert (s->newsgroups, nntp_data->group, nntp_data, 0);
43176 +    nntp_add_to_list (s, nntp_data);
43177 +  }
43178 +  nntp_data->deleted = 0;
43179 +  nntp_data->firstMessage = first;
43180 +  nntp_data->lastMessage = last;
43181 +  if (mod == 'y')
43182 +    nntp_data->allowed = 1;
43183 +  else
43184 +    nntp_data->allowed = 0;
43185 +  if (nntp_data->desc)
43186 +    FREE (&nntp_data->desc);
43187 +  if (*desc)
43188 +    nntp_data->desc = safe_strdup (desc);
43189 +  if (nntp_data->rc || nntp_data->lastCached)
43190 +    mutt_newsgroup_stat (nntp_data);
43191 +  else if (nntp_data->lastMessage &&
43192 +       nntp_data->firstMessage <= nntp_data->lastMessage)
43193 +    nntp_data->unread = nntp_data->lastMessage - nntp_data->firstMessage + 1;
43194 +  else
43195 +    nntp_data->unread = 0;
43196 +
43197 +  return 0;
43198 +#undef s
43199 +}
43200 +
43201 +int nntp_check_newgroups (NNTP_SERVER *serv, int force)
43202 +{
43203 +  char buf[LONG_STRING];
43204 +  NNTP_DATA nntp_data;
43205 +  LIST *l;
43206 +  LIST emp;
43207 +  time_t now;
43208 +  struct tm *t;
43209 +
43210 +  if (!serv || !serv->newgroups_time)
43211 +    return -1;
43212 +
43213 +  if (nntp_open_connection (serv) < 0)
43214 +    return -1;
43215 +
43216 +  /* check subscribed groups for new news */
43217 +  if (option (OPTSHOWNEWNEWS))
43218 +  {
43219 +    mutt_message _("Checking for new messages...");
43220 +    for (l = serv->list; l; l = l->next)
43221 +    {
43222 +      serv->check_time = 0;    /* really check! */
43223 +      if (l->data && ((NNTP_DATA *) l->data)->subscribed)
43224 +       _nntp_check_mailbox (NULL, (NNTP_DATA *) l->data);
43225 +    }
43226 +  }
43227 +  else if (!force)
43228 +    return 0;
43229 +
43230 +  mutt_message _("Checking for new newsgroups...");
43231 +  now = serv->newgroups_time;
43232 +  time (&serv->newgroups_time);
43233 +  t = gmtime (&now);
43234 +  snprintf (buf, sizeof (buf), "NEWGROUPS %02d%02d%02d %02d%02d%02d GMT\r\n",
43235 +       (t->tm_year % 100), t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min,
43236 +       t->tm_sec);
43237 +  nntp_data.nserv = serv;
43238 +  if (Context && Context->magic == M_NNTP)
43239 +    nntp_data.group = ((NNTP_DATA *)Context->data)->group;
43240 +  else
43241 +    nntp_data.group = NULL;
43242 +  l = serv->tail;
43243 +  if (mutt_nntp_fetch (&nntp_data, buf, _("Adding new newsgroups..."),
43244 +       add_group, serv, 0) != 0)
43245 +  {
43246 +#ifdef DEBUG
43247 +    nntp_error ("nntp_check_newgroups()", buf);
43248 +#endif
43249 +    return -1;
43250 +  }
43251 +
43252 +  mutt_message _("Loading descriptions...");
43253 +  if (l)
43254 +    emp.next = l->next;
43255 +  else
43256 +    emp.next = serv->list;
43257 +  l = &emp;
43258 +  while (l->next)
43259 +  {
43260 +    l = l->next;
43261 +    ((NNTP_DATA *) l->data)->new = 1;
43262 +    nntp_get_desc ((NNTP_DATA *) l->data, ((NNTP_DATA *) l->data)->group, NULL);
43263 +  }
43264 +  if (emp.next)
43265 +    nntp_save_cache_index (serv);
43266 +  mutt_clear_error ();
43267 +  return _checked;
43268 +}
43269 +
43270 +/* Load list of all newsgroups from cache ALL */
43271 +int nntp_get_cache_all (NNTP_SERVER *serv)
43272 +{
43273 +  char buf[HUGE_STRING];
43274 +  FILE *f;
43275 +
43276 +  nntp_cache_expand (buf, serv->cache);
43277 +  if ((f = safe_fopen (buf, "r")))
43278 +  {
43279 +    int i = 0;
43280 +
43281 +    while (fgets (buf, sizeof(buf), f) != NULL)
43282 +    {
43283 +      if (ReadInc && (i % ReadInc == 0))
43284 +       mutt_message (_("Loading list from cache... %d"), i);
43285 +      add_group (buf, serv);
43286 +      i++;
43287 +    }
43288 +    add_group (NULL, NULL);
43289 +    fclose (f);
43290 +    mutt_clear_error ();
43291 +    return 0;
43292 +  }
43293 +  else
43294 +  {
43295 +    FREE (&serv->cache);
43296 +    return -1;
43297 +  }
43298 +}
43299 +
43300 +/* Load list of all newsgroups from active */
43301 +int nntp_get_active (NNTP_SERVER *serv)
43302 +{
43303 +  char msg[SHORT_STRING];
43304 +  NNTP_DATA nntp_data;
43305 +  LIST *tmp;
43306 +
43307 +  if (nntp_open_connection (serv) < 0)
43308 +    return -1;
43309 +
43310 +  snprintf (msg, sizeof(msg), _("Loading list of all newsgroups on server %s..."),
43311 +               serv->conn->account.host);
43312 +  mutt_message (msg);
43313 +  time (&serv->newgroups_time);
43314 +  nntp_data.nserv = serv;
43315 +  nntp_data.group = NULL;
43316 +
43317 +  if (mutt_nntp_fetch (&nntp_data, "LIST\r\n", msg, add_group, serv, 0) < 0)
43318 +  {
43319 +#ifdef DEBUG
43320 +    nntp_error ("nntp_get_active()", "LIST\r\n");
43321 +#endif
43322 +    return -1;
43323 +  }
43324 +
43325 +  strfcpy (msg, _("Loading descriptions..."), sizeof (msg));
43326 +  mutt_message (msg);
43327 +  nntp_get_desc (&nntp_data, "*", msg);
43328 +
43329 +  for (tmp = serv->list; tmp; tmp = tmp->next)
43330 +  {
43331 +    NNTP_DATA *data = (NNTP_DATA *)tmp->data;
43332 +
43333 +    if (data && data->deleted && !data->rc)
43334 +    {
43335 +      nntp_delete_cache (data);
43336 +      hash_delete (serv->newsgroups, data->group, NULL, nntp_delete_data);
43337 +      tmp->data = NULL;
43338 +    }
43339 +  }
43340 +  nntp_save_cache_index (serv);
43341 +
43342 +  mutt_clear_error ();
43343 +  return _checked;
43344 +}
43345 +
43346 +/*
43347 + * returns -1 if error ocurred while retrieving header,
43348 + * number of articles which ones exist in context on success.
43349 + */
43350 +int nntp_check_msgid (CONTEXT *ctx, const char *msgid)
43351 +{
43352 +  int ret;
43353 +
43354 +  /* if msgid is already in context, don't reload them */
43355 +  if (hash_find (ctx->id_hash, msgid))
43356 +    return 1;
43357 +  if (ctx->msgcount == ctx->hdrmax)
43358 +    mx_alloc_memory (ctx);
43359 +  ctx->hdrs[ctx->msgcount] = mutt_new_header ();
43360 +  ctx->hdrs[ctx->msgcount]->index = ctx->msgcount;
43361 +  
43362 +  mutt_message (_("Fetching %s from server..."), msgid);
43363 +  ret = nntp_read_header (ctx, msgid, 0);
43364 +  /* since nntp_read_header() may set read flag, we must reset it */
43365 +  ctx->hdrs[ctx->msgcount]->read = 0;
43366 +  if (ret != 0)
43367 +    mutt_free_header (&ctx->hdrs[ctx->msgcount]);
43368 +  else
43369 +  {
43370 +    ctx->msgcount++;
43371 +    mx_update_context (ctx, 1);
43372 +    ctx->changed = 1;
43373 +  }
43374 +  return ret;
43375 +}
43376 +
43377 +typedef struct
43378 +{
43379 +  CONTEXT *ctx;
43380 +  unsigned int num;
43381 +  unsigned int max;
43382 +  unsigned int *child;
43383 +} CHILD_CONTEXT;
43384 +
43385 +static int check_children (char *s, void *c)
43386 +{
43387 +#define cc ((CHILD_CONTEXT *) c)
43388 +  unsigned int i, n;
43389 +
43390 +  if (!s || (n = atoi (s)) == 0)
43391 +    return 0;
43392 +  for (i = 0; i < cc->ctx->msgcount; i++)
43393 +    if (cc->ctx->hdrs[i]->article_num == n)
43394 +      return 0;
43395 +  if (cc->num >= cc->max)
43396 +    safe_realloc ((void **) &cc->child, sizeof (unsigned int) * (cc->max += 25));
43397 +  cc->child[cc->num++] = n;
43398 +
43399 +  return 0;
43400 +#undef cc
43401 +}
43402 +
43403 +int nntp_check_children (CONTEXT *ctx, const char *msgid)
43404 +{
43405 +  NNTP_DATA *nntp_data = (NNTP_DATA *)ctx->data;
43406 +  char buf[STRING];
43407 +  int i, ret = 0, tmp = 0;
43408 +  CHILD_CONTEXT cc;
43409 +
43410 +  if (!nntp_data || !nntp_data->nserv || !nntp_data->nserv->conn ||
43411 +       !nntp_data->nserv->conn->account.host)
43412 +    return -1;
43413 +  if (nntp_data->firstMessage > nntp_data->lastLoaded)
43414 +    return 0;
43415 +  if (!nntp_data->nserv->hasXPAT)
43416 +  {
43417 +    mutt_error (_("Server %s does not support this operation!"),
43418 +         nntp_data->nserv->conn->account.host);
43419 +    return -1;
43420 +  }
43421 +
43422 +  snprintf (buf, sizeof (buf), "XPAT References %d-%d *%s*\r\n", 
43423 +       nntp_data->firstMessage, nntp_data->lastLoaded, msgid);
43424 +
43425 +  cc.ctx = ctx;
43426 +  cc.num = 0;
43427 +  cc.max = 25;
43428 +  cc.child = safe_malloc (sizeof (unsigned int) * 25);
43429 +  if (mutt_nntp_fetch (nntp_data, buf, NULL, check_children, &cc, 0))
43430 +  {
43431 +    safe_free ((void **) &cc.child);
43432 +    return -1;
43433 +  }
43434 +  /* dont try to read the xover cache. check_children() already
43435 +   * made sure that we dont have the article, so we need to visit
43436 +   * the server. Reading the cache at this point is also bad
43437 +   * because it would duplicate messages */
43438 +  if (option (OPTNEWSCACHE))
43439 +  {
43440 +    tmp++;
43441 +    unset_option (OPTNEWSCACHE);
43442 +  }
43443 +  for (i = 0; i < cc.num; i++)
43444 +  {
43445 +    if ((ret = nntp_fetch_headers (ctx, cc.child[i], cc.child[i])))
43446 +      break;
43447 +    if (ctx->msgcount &&
43448 +         ctx->hdrs[ctx->msgcount - 1]->article_num == cc.child[i])
43449 +      ctx->hdrs[ctx->msgcount - 1]->read = 0;
43450 +  }
43451 +  if (tmp)
43452 +    set_option (OPTNEWSCACHE);
43453 +  safe_free ((void **) &cc.child);
43454 +  return ret;
43455 +}
43456 diff -uNr mutt-1.4.orig/nntp.h mutt-1.4/nntp.h
43457 --- mutt-1.4.orig/nntp.h        Thu Jan  1 01:00:00 1970
43458 +++ mutt-1.4/nntp.h     Sun Nov  3 21:57:20 2002
43459 @@ -0,0 +1,135 @@
43460 +/*
43461 + * Copyright (C) 1998 Brandon Long <blong@fiction.net>
43462 + * Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
43463 + * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua>
43464 + * 
43465 + *     This program is free software; you can redistribute it and/or modify
43466 + *     it under the terms of the GNU General Public License as published by
43467 + *     the Free Software Foundation; either version 2 of the License, or
43468 + *     (at your option) any later version.
43469 + * 
43470 + *     This program is distributed in the hope that it will be useful,
43471 + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
43472 + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43473 + *     GNU General Public License for more details.
43474 + * 
43475 + *     You should have received a copy of the GNU General Public License
43476 + *     along with this program; if not, write to the Free Software
43477 + *     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
43478 + */ 
43479 +
43480 +#ifndef _NNTP_H_
43481 +#define _NNTP_H_ 1
43482 +
43483 +#include "mutt_socket.h"
43484 +#include "mailbox.h"
43485 +
43486 +#include <time.h>
43487 +
43488 +#define NNTP_PORT 119
43489 +#define NNTP_SSL_PORT 563
43490 +
43491 +/* number of entries in the hash table */
43492 +#define NNTP_CACHE_LEN 10
43493 +
43494 +enum
43495 +{
43496 +  NNTP_NONE = 0,
43497 +  NNTP_OK,
43498 +  NNTP_BYE
43499 +};
43500 +
43501 +typedef struct
43502 +{
43503 +  int first;
43504 +  int last;
43505 +} NEWSRC_ENTRY;
43506 +
43507 +typedef struct
43508 +{
43509 +  unsigned int hasXPAT : 1;
43510 +  unsigned int hasXGTITLE : 1;
43511 +  unsigned int hasXOVER : 1;
43512 +  unsigned int status : 3;
43513 +  char *newsrc;
43514 +  char *cache;
43515 +  int stat;
43516 +  off_t size;
43517 +  time_t mtime;
43518 +  time_t newgroups_time;
43519 +  time_t check_time;
43520 +  HASH *newsgroups;
43521 +  LIST *list;  /* list of newsgroups */
43522 +  LIST *tail;  /* last entry of list */
43523 +  CONNECTION *conn;
43524 +} NNTP_SERVER;
43525 +
43526 +typedef struct
43527 +{
43528 +  unsigned int index;
43529 +  char *path;
43530 +} NNTP_CACHE;
43531 +
43532 +typedef struct
43533 +{
43534 +  NEWSRC_ENTRY *entries;
43535 +  unsigned int num;    /* number of used entries */
43536 +  unsigned int max;    /* number of allocated entries */
43537 +  unsigned int unread;
43538 +  unsigned int firstMessage;
43539 +  unsigned int lastMessage;
43540 +  unsigned int lastLoaded;
43541 +  unsigned int lastCached;
43542 +  unsigned int subscribed : 1;
43543 +  unsigned int rc : 1;
43544 +  unsigned int new : 1;
43545 +  unsigned int allowed : 1;
43546 +  unsigned int deleted : 1;
43547 +  char *group;
43548 +  char *desc;
43549 +  char *cache;
43550 +  NNTP_SERVER *nserv;
43551 +  NNTP_CACHE acache[NNTP_CACHE_LEN];
43552 +} NNTP_DATA;
43553 +
43554 +/* internal functions */
43555 +int nntp_get_active (NNTP_SERVER *);
43556 +int nntp_get_cache_all (NNTP_SERVER *);
43557 +int nntp_save_cache_index (NNTP_SERVER *);
43558 +int nntp_check_newgroups (NNTP_SERVER *, int);
43559 +int nntp_save_cache_group (CONTEXT *);
43560 +int nntp_parse_url (const char *, ACCOUNT *, char *, size_t);
43561 +void newsrc_gen_entries (CONTEXT *);
43562 +void nntp_get_status (CONTEXT *, HEADER *, char *, int);
43563 +void mutt_newsgroup_stat (NNTP_DATA *);
43564 +void nntp_delete_cache (NNTP_DATA *);
43565 +void nntp_add_to_list (NNTP_SERVER *, NNTP_DATA *);
43566 +void nntp_cache_expand (char *, const char *);
43567 +void nntp_delete_data (void *);
43568 +
43569 +/* exposed interface */
43570 +NNTP_SERVER *mutt_select_newsserver (char *);
43571 +NNTP_DATA *mutt_newsgroup_subscribe (NNTP_SERVER *, char *);
43572 +NNTP_DATA *mutt_newsgroup_unsubscribe (NNTP_SERVER *, char *);
43573 +NNTP_DATA *mutt_newsgroup_catchup (NNTP_SERVER *, char *);
43574 +NNTP_DATA *mutt_newsgroup_uncatchup (NNTP_SERVER *, char *);
43575 +void nntp_clear_cacheindex (NNTP_SERVER *);
43576 +int mutt_newsrc_update (NNTP_SERVER *);
43577 +int nntp_open_mailbox (CONTEXT *);
43578 +int nntp_sync_mailbox (CONTEXT *);
43579 +int nntp_check_mailbox (CONTEXT *);
43580 +int nntp_close_mailbox (CONTEXT *);
43581 +void nntp_fastclose_mailbox (CONTEXT *);
43582 +int nntp_fetch_message (MESSAGE *, CONTEXT *, int);
43583 +int nntp_post (const char *);
43584 +int nntp_check_msgid (CONTEXT *, const char *);
43585 +int nntp_check_children (CONTEXT *, const char *);
43586 +void nntp_buffy (char *);
43587 +void nntp_expand_path (char *, size_t, ACCOUNT *);
43588 +void nntp_logout_all ();
43589 +const char *nntp_format_str (char *, size_t, char, const char *, const char *,
43590 +               const char *, const char *, unsigned long, format_flag);
43591 +
43592 +NNTP_SERVER *CurrentNewsSrv INITVAL (NULL);
43593 +
43594 +#endif /* _NNTP_H_ */
43595 diff -uNr mutt-1.4.orig/pager.c mutt-1.4/pager.c
43596 --- mutt-1.4.orig/pager.c       Sun Nov  3 21:42:52 2002
43597 +++ mutt-1.4/pager.c    Sun Nov  3 21:57:20 2002
43598 @@ -33,6 +33,11 @@
43599  #include "imap.h"
43600  #endif
43601  
43602 +#ifdef USE_NNTP
43603 +#include "mx.h"
43604 +#include "nntp.h"
43605 +#endif
43606 +
43607  
43608  #ifdef HAVE_PGP
43609  #include "pgp.h"
43610 @@ -1445,6 +1450,16 @@
43611    { NULL,      0 }
43612  };
43613  
43614 +#ifdef USE_NNTP
43615 +static struct mapping_t PagerNewsHelpExtra[] = {
43616 +  { N_("Post"),     OP_POST },
43617 +  { N_("Followup"), OP_FOLLOWUP },
43618 +  { N_("Del"),      OP_DELETE },
43619 +  { N_("Next"),     OP_MAIN_NEXT_UNDELETED },
43620 +  { NULL,           0 }
43621 +};
43622 +#endif
43623 +
43624  
43625  
43626  /* This pager is actually not so simple as it once was.  It now operates in
43627 @@ -1486,6 +1501,10 @@
43628    int old_PagerIndexLines;             /* some people want to resize it
43629                                          * while inside the pager... */
43630  
43631 +#ifdef USE_NNTP
43632 +  char *followup_to;
43633 +#endif
43634 +
43635    if (!(flags & M_SHOWCOLOR))
43636      flags |= M_SHOWFLAT;
43637  
43638 @@ -1525,7 +1544,11 @@
43639    if (IsHeader (extra))
43640    {
43641      strfcpy (tmphelp, helpstr, sizeof (tmphelp));
43642 -    mutt_compile_help (buffer, sizeof (buffer), MENU_PAGER, PagerHelpExtra);
43643 +    mutt_compile_help (buffer, sizeof (buffer), MENU_PAGER,
43644 +#ifdef USE_NNTP
43645 +       (Context && (Context->magic == M_NNTP)) ? PagerNewsHelpExtra :
43646 +#endif
43647 +       PagerHelpExtra);
43648      snprintf (helpstr, sizeof (helpstr), "%s %s", tmphelp, buffer);
43649    }
43650    if (!InHelp)
43651 @@ -2300,6 +2323,15 @@
43652         }
43653  #endif
43654  
43655 +#ifdef USE_NNTP
43656 +       if (Context->magic == M_NNTP)
43657 +       {
43658 +         mutt_flushinp ();
43659 +         mutt_error _("Can't change 'important' flag on NNTP server.");
43660 +         break;
43661 +       }
43662 +#endif
43663 +
43664         mutt_set_flag (Context, extra->hdr, M_FLAG, !extra->hdr->flagged);
43665         redraw = REDRAW_STATUS | REDRAW_INDEX;
43666         if (option (OPTRESOLVE))
43667 @@ -2333,6 +2365,60 @@
43668         redraw = REDRAW_FULL;
43669         break;
43670  
43671 +#ifdef USE_NNTP
43672 +      case OP_POST:
43673 +       CHECK_MODE(IsHeader (extra) && !IsAttach (extra));
43674 +       CHECK_ATTACH;
43675 +       if (extra->ctx && extra->ctx->magic == M_NNTP &&
43676 +           !((NNTP_DATA *)extra->ctx->data)->allowed &&
43677 +           query_quadoption (OPT_TOMODERATED,_("Posting to this group not allowed, may be moderated. Continue?")) != M_YES)
43678 +         break;
43679 +       ci_send_message (SENDNEWS, NULL, NULL, extra->ctx, NULL);
43680 +       redraw = REDRAW_FULL;
43681 +       break;
43682 +
43683 +      case OP_FORWARD_TO_GROUP:
43684 +       CHECK_MODE(IsHeader (extra) || IsMsgAttach (extra));
43685 +       CHECK_ATTACH;
43686 +       if (extra->ctx && extra->ctx->magic == M_NNTP &&
43687 +           !((NNTP_DATA *)extra->ctx->data)->allowed &&
43688 +           query_quadoption (OPT_TOMODERATED,_("Posting to this group not allowed, may be moderated. Continue?")) != M_YES)
43689 +         break;
43690 +       if (IsMsgAttach (extra))
43691 +         mutt_attach_forward (extra->fp, extra->hdr, extra->idx,
43692 +                              extra->idxlen, extra->bdy, SENDNEWS);
43693 +       else
43694 +         ci_send_message (SENDNEWS|SENDFORWARD, NULL, NULL, extra->ctx, extra->hdr);
43695 +       redraw = REDRAW_FULL;
43696 +       break;
43697 +
43698 +      case OP_FOLLOWUP:
43699 +       CHECK_MODE(IsHeader (extra) || IsMsgAttach (extra));
43700 +       CHECK_ATTACH;
43701 +
43702 +        if (IsMsgAttach (extra))
43703 +         followup_to = extra->bdy->hdr->env->followup_to;
43704 +        else
43705 +         followup_to = extra->hdr->env->followup_to;
43706 +
43707 +       if (!followup_to || mutt_strcasecmp (followup_to, "poster") ||
43708 +           query_quadoption (OPT_FOLLOWUPTOPOSTER,_("Reply by mail as poster prefers?")) != M_YES)
43709 +       {
43710 +         if (extra->ctx && extra->ctx->magic == M_NNTP &&
43711 +             !((NNTP_DATA *)extra->ctx->data)->allowed &&
43712 +             query_quadoption (OPT_TOMODERATED,_("Posting to this group not allowed, may be moderated. Continue?")) != M_YES)
43713 +           break;
43714 +         if (IsMsgAttach (extra))
43715 +           mutt_attach_reply (extra->fp, extra->hdr, extra->idx,
43716 +                              extra->idxlen, extra->bdy, SENDNEWS|SENDREPLY);
43717 +         else
43718 +           ci_send_message (SENDNEWS|SENDREPLY, NULL, NULL,
43719 +                            extra->ctx, extra->hdr);
43720 +         redraw = REDRAW_FULL;
43721 +         break;
43722 +       }
43723 +#endif
43724 +
43725        case OP_REPLY:
43726         CHECK_MODE(IsHeader (extra) || IsMsgAttach (extra));
43727          CHECK_ATTACH;      
43728 @@ -2379,7 +2465,7 @@
43729          CHECK_ATTACH;
43730          if (IsMsgAttach (extra))
43731           mutt_attach_forward (extra->fp, extra->hdr, extra->idx,
43732 -                              extra->idxlen, extra->bdy);
43733 +                              extra->idxlen, extra->bdy, 0);
43734          else
43735           ci_send_message (SENDFORWARD, NULL, NULL, extra->ctx, extra->hdr);
43736         redraw = REDRAW_FULL;
43737 diff -uNr mutt-1.4.orig/parse.c mutt-1.4/parse.c
43738 --- mutt-1.4.orig/parse.c       Tue Jan 29 11:05:20 2002
43739 +++ mutt-1.4/parse.c    Sun Nov  3 21:57:20 2002
43740 @@ -90,7 +90,7 @@
43741    /* not reached */
43742  }
43743  
43744 -static LIST *mutt_parse_references (char *s, int in_reply_to)
43745 +LIST *mutt_parse_references (char *s, int in_reply_to)
43746  {
43747    LIST *t, *lst = NULL;
43748    int m, n = 0;
43749 @@ -1047,6 +1047,17 @@
43750        e->from = rfc822_parse_adrlist (e->from, p);
43751        matched = 1;
43752      }
43753 +#ifdef USE_NNTP
43754 +    else if (!mutt_strcasecmp (line+1, "ollowup-to"))
43755 +    {
43756 +      if (!e->followup_to)
43757 +      {
43758 +       mutt_remove_trailing_ws (p);
43759 +       e->followup_to = safe_strdup (mutt_skip_whitespace (p));
43760 +      }
43761 +      matched = 1;
43762 +    }
43763 +#endif
43764      break;
43765      
43766      case 'i':
43767 @@ -1098,6 +1109,27 @@
43768      }
43769      break;
43770      
43771 +#ifdef USE_NNTP
43772 +    case 'n':
43773 +    if (!mutt_strcasecmp (line + 1, "ewsgroups"))
43774 +    {
43775 +      safe_free ((void **)&e->newsgroups);
43776 +      mutt_remove_trailing_ws (p);
43777 +      e->newsgroups = safe_strdup (mutt_skip_whitespace (p));
43778 +      matched = 1;
43779 +    }
43780 +    break;
43781 +#endif
43782 +
43783 +    case 'o':
43784 +    /* field `Organization:' saves only for pager! */
43785 +    if (!mutt_strcasecmp (line + 1, "rganization"))
43786 +    {
43787 +      if (!e->organization && mutt_strcasecmp (p, "unknown"))
43788 +       e->organization = safe_strdup (p);
43789 +    }
43790 +    break;
43791 +
43792      case 'r':
43793      if (!ascii_strcasecmp (line + 1, "eferences"))
43794      {
43795 @@ -1207,7 +1239,21 @@
43796        e->x_label = safe_strdup(p);
43797        matched = 1;
43798      }
43799 -    
43800 +#ifdef USE_NNTP
43801 +    else if (!mutt_strcasecmp (line + 1, "-comment-to"))
43802 +    {
43803 +      if (!e->x_comment_to)
43804 +       e->x_comment_to = safe_strdup (p);
43805 +      matched = 1;
43806 +    }
43807 +    else if (!mutt_strcasecmp (line + 1, "ref"))
43808 +    {
43809 +      if (!e->xref)
43810 +       e->xref = safe_strdup (p);
43811 +      matched = 1;
43812 +    }
43813 +#endif
43814 +
43815      default:
43816      break;
43817    }
43818 diff -uNr mutt-1.4.orig/pattern.c mutt-1.4/pattern.c
43819 --- mutt-1.4.orig/pattern.c     Sun Nov  3 21:42:52 2002
43820 +++ mutt-1.4/pattern.c  Sun Nov  3 21:57:20 2002
43821 @@ -87,6 +87,9 @@
43822    { 't', M_TO,                 0,              eat_regexp },
43823    { 'U', M_UNREAD,             0,              NULL },
43824    { 'v', M_COLLAPSED,          0,              NULL },
43825 +#ifdef USE_NNTP
43826 +  { 'w', M_NEWSGROUPS,         0,              eat_regexp },
43827 +#endif
43828    { 'x', M_REFERENCE,          0,              eat_regexp },
43829    { 'y', M_XLABEL,             0,              eat_regexp },
43830    { 'z', M_SIZE,               0,              eat_range },
43831 @@ -1053,6 +1056,10 @@
43832        return (pat->not ^ (h->env->x_label && regexec (pat->rx, h->env->x_label, 0, NULL, 0) == 0));
43833      case M_DUPLICATED:
43834        return (pat->not ^ (h->thread && h->thread->duplicate_thread));
43835 +#ifdef USE_NNTP
43836 +    case M_NEWSGROUPS:
43837 +      return (pat->not ^ (h->env->newsgroups && regexec (pat->rx, h->env->newsgroups, 0, NULL, 0) == 0));
43838 +#endif
43839    }
43840    mutt_error (_("error: unknown op %d (report this error)."), pat->op);
43841    return (-1);
43842 @@ -1120,6 +1127,7 @@
43843    int i;
43844  
43845    strfcpy (buf, NONULL (Context->pattern), sizeof (buf));
43846 +  if (prompt || op != M_LIMIT)
43847    if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0 || !buf[0])
43848      return (-1);
43849  
43850 diff -uNr mutt-1.4.orig/po/ChangeLog mutt-1.4/po/ChangeLog
43851 --- mutt-1.4.orig/po/ChangeLog  Wed Mar 13 13:49:11 2002
43852 +++ mutt-1.4/po/ChangeLog       Sun Nov  3 21:57:22 2002
43853 @@ -1 +1,5 @@
43854 +2002-11-03  gettextize  <bug-gnu-utils@gnu.org>
43855 +
43856 +       * Makefile.in.in: Upgrade to gettext-0.10.40.
43857 +
43858  placeholder.
43859 diff -uNr mutt-1.4.orig/po/ChangeLog~ mutt-1.4/po/ChangeLog~
43860 --- mutt-1.4.orig/po/ChangeLog~ Thu Jan  1 01:00:00 1970
43861 +++ mutt-1.4/po/ChangeLog~      Wed Mar 13 13:49:11 2002
43862 @@ -0,0 +1 @@
43863 +placeholder.
43864 diff -uNr mutt-1.4.orig/po/Makefile.in.in mutt-1.4/po/Makefile.in.in
43865 --- mutt-1.4.orig/po/Makefile.in.in     Tue Jan  1 21:18:37 2002
43866 +++ mutt-1.4/po/Makefile.in.in  Sun Nov  3 21:57:22 2002
43867 @@ -2,7 +2,7 @@
43868  # Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
43869  #
43870  # This file file be copied and used freely without restrictions.  It can
43871 -# be used in projects which are not available under the GNU General Public License
43872 +# be used in projects which are not available under the GNU Public License
43873  # but which still want to provide support for the GNU gettext functionality.
43874  # Please note that the actual code is *not* freely available.
43875  
43876 @@ -77,10 +77,6 @@
43877  all-yes: $(CATALOGS)
43878  all-no:
43879  
43880 -.PHONY: ../keymap_alldefs.h
43881 -../keymap_alldefs.h:
43882 -       cd .. && $(MAKE) keymap_alldefs.h
43883 -
43884  # Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
43885  # otherwise packages like GCC can not be built if only parts of the source
43886  # have been downloaded.
43887 diff -uNr mutt-1.4.orig/po/POTFILES.in mutt-1.4/po/POTFILES.in
43888 --- mutt-1.4.orig/po/POTFILES.in        Sun Nov  3 21:42:51 2002
43889 +++ mutt-1.4/po/POTFILES.in     Sun Nov  3 21:57:20 2002
43890 @@ -41,6 +41,8 @@
43891  mutt_socket.c
43892  mutt_ssl.c
43893  mx.c
43894 +newsrc.c
43895 +nntp.c
43896  pager.c
43897  parse.c
43898  pattern.c
43899 diff -uNr mutt-1.4.orig/po/POTFILES.in.orig mutt-1.4/po/POTFILES.in.orig
43900 --- mutt-1.4.orig/po/POTFILES.in.orig   Thu Jan  1 01:00:00 1970
43901 +++ mutt-1.4/po/POTFILES.in.orig        Sun Nov  3 21:57:20 2002
43902 @@ -0,0 +1,65 @@
43903 +account.c
43904 +addrbook.c
43905 +alias.c
43906 +attach.c
43907 +browser.c
43908 +buffy.c
43909 +charset.c
43910 +color.c
43911 +commands.c
43912 +compose.c
43913 +compress.c
43914 +curs_lib.c
43915 +curs_main.c
43916 +edit.c
43917 +editmsg.c
43918 +flags.c
43919 +handler.c
43920 +headers.c
43921 +help.c
43922 +hook.c
43923 +imap/auth.c
43924 +imap/auth_anon.c
43925 +imap/auth_cram.c
43926 +imap/auth_gss.c
43927 +imap/auth_login.c
43928 +imap/auth_sasl.c
43929 +imap/browse.c
43930 +imap/command.c
43931 +imap/imap.c
43932 +imap/message.c
43933 +imap/util.c
43934 +init.c
43935 +keymap.c
43936 +keymap_alldefs.h
43937 +lib.c
43938 +main.c
43939 +mbox.c
43940 +menu.c
43941 +mh.c
43942 +muttlib.c
43943 +mutt_socket.c
43944 +mutt_ssl.c
43945 +mx.c
43946 +pager.c
43947 +parse.c
43948 +pattern.c
43949 +pgp.c
43950 +pgpinvoke.c
43951 +pgpkey.c
43952 +pop.c
43953 +pop_auth.c
43954 +pop_lib.c
43955 +postpone.c
43956 +query.c
43957 +recvattach.c
43958 +recvcmd.c
43959 +remailer.c
43960 +rfc1524.c
43961 +score.c
43962 +send.c
43963 +sendlib.c
43964 +signal.c
43965 +sort.c
43966 +status.c
43967 +thread.c
43968 Binary files mutt-1.4.orig/po/de.gmo and mutt-1.4/po/de.gmo differ
43969 diff -uNr mutt-1.4.orig/postpone.c mutt-1.4/postpone.c
43970 --- mutt-1.4.orig/postpone.c    Sun Nov  3 21:42:52 2002
43971 +++ mutt-1.4/postpone.c Sun Nov  3 21:57:20 2002
43972 @@ -125,15 +125,26 @@
43973  
43974    if (LastModify < st.st_mtime)
43975    {
43976 +#ifdef USE_NNTP
43977 +    int optnews = option (OPTNEWS);
43978 +#endif
43979      LastModify = st.st_mtime;
43980  
43981      if (access (Postponed, R_OK | F_OK) != 0)
43982        return (PostCount = 0);
43983 +#ifdef USE_NNTP
43984 +    if (optnews)
43985 +       unset_option (OPTNEWS);
43986 +#endif
43987      if (mx_open_mailbox (Postponed, M_NOSORT | M_QUIET, &ctx) == NULL)
43988        PostCount = 0;
43989      else
43990        PostCount = ctx.msgcount;
43991      mx_fastclose_mailbox (&ctx);
43992 +#ifdef USE_NNTP
43993 +    if (optnews)
43994 +       set_option (OPTNEWS);
43995 +#endif
43996    }
43997  
43998    return (PostCount);
43999 diff -uNr mutt-1.4.orig/protos.h mutt-1.4/protos.h
44000 --- mutt-1.4.orig/protos.h      Sun Nov  3 21:42:52 2002
44001 +++ mutt-1.4/protos.h   Sun Nov  3 21:57:20 2002
44002 @@ -95,6 +95,7 @@
44003  HASH *mutt_make_subj_hash (CONTEXT *);
44004  
44005  LIST *mutt_make_references(ENVELOPE *e);
44006 +LIST *mutt_parse_references (char *, int);
44007  
44008  ENVELOPE *mutt_read_rfc822_header (FILE *, HEADER *, short, short);
44009  HEADER *mutt_dup_header (HEADER *);
44010 @@ -230,6 +231,7 @@
44011  void mutt_update_tree (ATTACHPTR **, short);
44012  void mutt_version (void);
44013  void mutt_view_attachments (HEADER *);
44014 +void mutt_write_references (LIST *, FILE *);
44015  void mutt_set_virtual (CONTEXT *);
44016  
44017  int mutt_addr_is_user (ADDRESS *);
44018 @@ -316,6 +318,7 @@
44019  int mutt_search_command (int, int);
44020  int mutt_compose_menu (HEADER *, char *, size_t, HEADER *);
44021  int mutt_thread_set_flag (HEADER *, int, int, int);
44022 +int mutt_update_list_file (char *, char *, char *, char *);
44023  int mutt_user_is_recipient (HEADER *);
44024  void mutt_update_num_postponed (void);
44025  int mutt_view_attachment (FILE*, BODY *, int, HEADER *, ATTACHPTR **, short);
44026 diff -uNr mutt-1.4.orig/recvattach.c mutt-1.4/recvattach.c
44027 --- mutt-1.4.orig/recvattach.c  Wed Sep 26 12:33:09 2001
44028 +++ mutt-1.4/recvattach.c       Sun Nov  3 21:57:20 2002
44029 @@ -989,6 +989,15 @@
44030         }
44031  #endif
44032  
44033 +#ifdef USE_NNTP
44034 +       if (Context->magic == M_NNTP)
44035 +       {
44036 +         mutt_flushinp ();
44037 +         mutt_error _("Can't delete attachment from newsserver.");
44038 +         break;
44039 +       }
44040 +#endif
44041 +
44042  
44043  
44044  #ifdef HAVE_PGP
44045 @@ -1084,10 +1093,33 @@
44046        case OP_FORWARD_MESSAGE:
44047          CHECK_ATTACH;
44048          mutt_attach_forward (fp, hdr, idx, idxlen,
44049 -                            menu->tagprefix ? NULL : idx[menu->current]->content);
44050 +                            menu->tagprefix ? NULL : idx[menu->current]->content, 0);
44051          menu->redraw = REDRAW_FULL;
44052          break;
44053        
44054 +#ifdef USE_NNTP
44055 +      case OP_FORWARD_TO_GROUP:
44056 +       CHECK_ATTACH;
44057 +       mutt_attach_forward (fp, hdr, idx, idxlen,
44058 +               menu->tagprefix ? NULL : idx[menu->current]->content, SENDNEWS);
44059 +       menu->redraw = REDRAW_FULL;
44060 +       break;
44061 +
44062 +      case OP_FOLLOWUP:
44063 +       CHECK_ATTACH;
44064 +
44065 +       if (!idx[menu->current]->content->hdr->env->followup_to ||
44066 +           mutt_strcasecmp (idx[menu->current]->content->hdr->env->followup_to, "poster") ||
44067 +           query_quadoption (OPT_FOLLOWUPTOPOSTER,_("Reply by mail as poster prefers?")) != M_YES)
44068 +       {
44069 +         mutt_attach_reply (fp, hdr, idx, idxlen,
44070 +               menu->tagprefix ? NULL : idx[menu->current]->content,
44071 +               SENDNEWS|SENDREPLY);
44072 +         menu->redraw = REDRAW_FULL;
44073 +         break;
44074 +       }
44075 +#endif
44076 +
44077        case OP_REPLY:
44078        case OP_GROUP_REPLY:
44079        case OP_LIST_REPLY:
44080 diff -uNr mutt-1.4.orig/recvcmd.c mutt-1.4/recvcmd.c
44081 --- mutt-1.4.orig/recvcmd.c     Wed Jan  2 10:33:38 2002
44082 +++ mutt-1.4/recvcmd.c  Sun Nov  3 21:57:20 2002
44083 @@ -334,7 +334,7 @@
44084  static void attach_forward_bodies (FILE * fp, HEADER * hdr,
44085                                    ATTACHPTR ** idx, short idxlen,
44086                                    BODY * cur,
44087 -                                  short nattach)
44088 +                                  short nattach, int flags)
44089  {
44090    short i;
44091    short mime_fwd_all = 0;
44092 @@ -480,7 +480,7 @@
44093    tmpfp = NULL;
44094  
44095    /* now that we have the template, send it. */
44096 -  ci_send_message (0, tmphdr, tmpbody, NULL, parent);
44097 +  ci_send_message (flags, tmphdr, tmpbody, NULL, parent);
44098    return;
44099    
44100    bail:
44101 @@ -507,7 +507,7 @@
44102   */
44103  
44104  static void attach_forward_msgs (FILE * fp, HEADER * hdr, 
44105 -              ATTACHPTR ** idx, short idxlen, BODY * cur)
44106 +              ATTACHPTR ** idx, short idxlen, BODY * cur, int flags)
44107  {
44108    HEADER *curhdr = NULL;
44109    HEADER *tmphdr;
44110 @@ -612,23 +612,23 @@
44111    else
44112      mutt_free_header (&tmphdr);
44113  
44114 -  ci_send_message (0, tmphdr, *tmpbody ? tmpbody : NULL, 
44115 +  ci_send_message (flags, tmphdr, *tmpbody ? tmpbody : NULL, 
44116                    NULL, curhdr);
44117  
44118  }
44119  
44120  void mutt_attach_forward (FILE * fp, HEADER * hdr, 
44121 -                         ATTACHPTR ** idx, short idxlen, BODY * cur)
44122 +                         ATTACHPTR ** idx, short idxlen, BODY * cur, int flags)
44123  {
44124    short nattach;
44125    
44126  
44127    if (check_all_msg (idx, idxlen, cur, 0) == 0)
44128 -    attach_forward_msgs (fp, hdr, idx, idxlen, cur);
44129 +    attach_forward_msgs (fp, hdr, idx, idxlen, cur, flags);
44130    else
44131    {
44132      nattach = count_tagged (idx, idxlen);
44133 -    attach_forward_bodies (fp, hdr, idx, idxlen, cur, nattach);
44134 +    attach_forward_bodies (fp, hdr, idx, idxlen, cur, nattach, flags);
44135    }
44136  }
44137  
44138 @@ -686,28 +686,40 @@
44139      return -1;
44140    }
44141  
44142 -  if (parent)
44143 +#ifdef USE_NNTP
44144 +  if ((flags & SENDNEWS))
44145    {
44146 -    if (mutt_fetch_recips (env, curenv, flags) == -1)
44147 -      return -1;
44148 +    /* in case followup set Newsgroups: with Followup-To: if it present */
44149 +    if (!env->newsgroups && curenv &&
44150 +       mutt_strcasecmp (curenv->followup_to, "poster"))
44151 +      env->newsgroups = safe_strdup (curenv->followup_to);
44152    }
44153    else
44154 +#endif
44155    {
44156 -    for (i = 0; i < idxlen; i++)
44157 +    if (parent)
44158      {
44159 -      if (idx[i]->content->tagged
44160 -         && mutt_fetch_recips (env, idx[i]->content->hdr->env, flags) == -1)
44161 +      if (mutt_fetch_recips (env, curenv, flags) == -1)
44162         return -1;
44163      }
44164 +    else
44165 +    {
44166 +      for (i = 0; i < idxlen; i++)
44167 +      {
44168 +       if (idx[i]->content->tagged
44169 +           && mutt_fetch_recips (env, idx[i]->content->hdr->env, flags) == -1)
44170 +         return -1;
44171 +      }
44172 +    }
44173 +
44174 +    if ((flags & SENDLISTREPLY) && !env->to)
44175 +    {
44176 +      mutt_error _("No mailing lists found!");
44177 +      return (-1);
44178 +    }
44179 +
44180 +    mutt_fix_reply_recipients (env);
44181    }
44182 -  
44183 -  if ((flags & SENDLISTREPLY) && !env->to)
44184 -  {
44185 -    mutt_error _("No mailing lists found!");
44186 -    return (-1);
44187 -  }
44188 -  
44189 -  mutt_fix_reply_recipients (env);
44190    mutt_make_misc_reply_headers (env, Context, curhdr, curenv);
44191  
44192    if (parent)
44193 @@ -768,6 +780,13 @@
44194    char prefix[SHORT_STRING];
44195    int rc;
44196    
44197 +#ifdef USE_NNTP
44198 +  if (flags & SENDNEWS)
44199 +    set_option (OPTNEWSSEND);
44200 +  else
44201 +    unset_option (OPTNEWSSEND);
44202 +#endif
44203 +
44204    if (check_all_msg (idx, idxlen, cur, 0) == -1)
44205    {
44206      nattach = count_tagged (idx, idxlen);
44207 diff -uNr mutt-1.4.orig/rfc1524.c mutt-1.4/rfc1524.c
44208 --- mutt-1.4.orig/rfc1524.c     Tue May 15 09:23:49 2001
44209 +++ mutt-1.4/rfc1524.c  Sun Nov  3 21:57:20 2002
44210 @@ -563,13 +563,13 @@
44211   * safe_fopen().
44212   */
44213  
44214 -int mutt_rename_file (char *oldfile, char *newfile)
44215 +int _mutt_rename_file (char *oldfile, char *newfile, int overwrite)
44216  {
44217    FILE *ofp, *nfp;
44218  
44219    if (access (oldfile, F_OK) != 0)
44220      return 1;
44221 -  if (access (newfile, F_OK) == 0)
44222 +  if (!overwrite && access (newfile, F_OK) == 0)
44223      return 2;
44224    if ((ofp = fopen (oldfile,"r")) == NULL)
44225      return 3;
44226 @@ -584,3 +584,8 @@
44227    mutt_unlink (oldfile);
44228    return 0;
44229  }
44230 +
44231 +int mutt_rename_file (char *oldfile, char *newfile)
44232 +{
44233 +  return _mutt_rename_file (oldfile, newfile, 0);
44234 +}
44235 diff -uNr mutt-1.4.orig/rfc1524.h mutt-1.4/rfc1524.h
44236 --- mutt-1.4.orig/rfc1524.h     Fri Mar  3 11:10:13 2000
44237 +++ mutt-1.4/rfc1524.h  Sun Nov  3 21:57:20 2002
44238 @@ -40,5 +40,6 @@
44239  int rfc1524_expand_filename (char *, char *, char *, size_t);
44240  int rfc1524_mailcap_lookup (BODY *, char *, rfc1524_entry *, int);
44241  int mutt_rename_file (char *, char *);
44242 +int _mutt_rename_file (char *, char *, int);
44243  
44244  #endif /* _RFC1524_H */
44245 diff -uNr mutt-1.4.orig/send.c mutt-1.4/send.c
44246 --- mutt-1.4.orig/send.c        Wed Jan 30 23:50:40 2002
44247 +++ mutt-1.4/send.c     Sun Nov  3 21:57:20 2002
44248 @@ -41,6 +41,10 @@
44249  #include "pgp.h"
44250  #endif
44251  
44252 +#ifdef USE_NNTP
44253 +#include "nntp.h"
44254 +#endif
44255 +
44256  #ifdef MIXMASTER
44257  #include "remailer.h"
44258  #endif
44259 @@ -196,17 +200,51 @@
44260    return 0;
44261  }
44262  
44263 -static int edit_envelope (ENVELOPE *en)
44264 +static int edit_envelope (ENVELOPE *en, int flags)
44265  {
44266    char buf[HUGE_STRING];
44267    LIST *uh = UserHeader;
44268  
44269 -  if (edit_address (&en->to, "To: ") == -1 || en->to == NULL)
44270 -    return (-1);
44271 -  if (option (OPTASKCC) && edit_address (&en->cc, "Cc: ") == -1)
44272 -    return (-1);
44273 -  if (option (OPTASKBCC) && edit_address (&en->bcc, "Bcc: ") == -1)
44274 -    return (-1);
44275 +#ifdef USE_NNTP
44276 +  if (option (OPTNEWSSEND))
44277 +  {
44278 +    if (en->newsgroups)
44279 +      strfcpy (buf, en->newsgroups, sizeof (buf));
44280 +    else
44281 +      buf[0] = 0;
44282 +    if (mutt_get_field ("Newsgroups: ", buf, sizeof (buf), 0) != 0)
44283 +      return (-1);
44284 +    safe_free ((void **)&en->newsgroups);
44285 +    en->newsgroups = safe_strdup (buf);
44286 +
44287 +    if (en->followup_to)
44288 +      strfcpy (buf, en->followup_to, sizeof (buf));
44289 +    else
44290 +      buf[0] = 0;
44291 +    if (option (OPTASKFOLLOWUP) && mutt_get_field ("Followup-To: ", buf, sizeof (buf), 0) != 0)
44292 +      return (-1);
44293 +    safe_free ((void **)&en->followup_to);
44294 +    en->followup_to = safe_strdup (buf);
44295 +
44296 +    if (en->x_comment_to)
44297 +      strfcpy (buf, en->x_comment_to, sizeof (buf));
44298 +    else
44299 +      buf[0] = 0;
44300 +    if (option (OPTXCOMMENTTO) && option (OPTASKXCOMMENTTO) && mutt_get_field ("X-Comment-To: ", buf, sizeof (buf), 0) != 0)
44301 +      return (-1);
44302 +    safe_free ((void **)&en->x_comment_to);
44303 +    en->x_comment_to = safe_strdup (buf);
44304 +  }
44305 +  else
44306 +#endif
44307 +  {
44308 +    if (edit_address (&en->to, "To: ") == -1 || en->to == NULL)
44309 +      return (-1);
44310 +    if (option (OPTASKCC) && edit_address (&en->cc, "Cc: ") == -1)
44311 +      return (-1);
44312 +    if (option (OPTASKBCC) && edit_address (&en->bcc, "Bcc: ") == -1)
44313 +      return (-1);
44314 +  }
44315  
44316    if (en->subject)
44317    {
44318 @@ -242,6 +280,14 @@
44319    return 0;
44320  }
44321  
44322 +#ifdef USE_NNTP
44323 +char *nntp_get_header (const char *s)
44324 +{
44325 +  SKIPWS (s);
44326 +  return safe_strdup (s);
44327 +}
44328 +#endif
44329 +
44330  static void process_user_recips (ENVELOPE *env)
44331  {
44332    LIST *uh = UserHeader;
44333 @@ -254,6 +300,14 @@
44334        env->cc = rfc822_parse_adrlist (env->cc, uh->data + 3);
44335      else if (ascii_strncasecmp ("bcc:", uh->data, 4) == 0)
44336        env->bcc = rfc822_parse_adrlist (env->bcc, uh->data + 4);
44337 +#ifdef USE_NNTP
44338 +    else if (ascii_strncasecmp ("newsgroups:", uh->data, 11) == 0)
44339 +      env->newsgroups = nntp_get_header (uh->data + 11);
44340 +    else if (ascii_strncasecmp ("followup-to:", uh->data, 12) == 0)
44341 +      env->followup_to = nntp_get_header (uh->data + 12);
44342 +    else if (ascii_strncasecmp ("x-comment-to:", uh->data, 13) == 0)
44343 +      env->x_comment_to = nntp_get_header (uh->data + 13);
44344 +#endif
44345    }
44346  }
44347  
44348 @@ -284,6 +338,12 @@
44349      else if (ascii_strncasecmp ("to:", uh->data, 3) != 0 &&
44350              ascii_strncasecmp ("cc:", uh->data, 3) != 0 &&
44351              ascii_strncasecmp ("bcc:", uh->data, 4) != 0 &&
44352 +#ifdef USE_NNTP
44353 +            ascii_strncasecmp ("newsgroups:", uh->data, 11) != 0 &&
44354 +            ascii_strncasecmp ("followup-to:", uh->data, 12) != 0 &&
44355 +            ascii_strncasecmp ("x-comment-to:", uh->data, 13) != 0 &&
44356 +#endif
44357 +            ascii_strncasecmp ("supersedes:", uh->data, 11) != 0 &&
44358              ascii_strncasecmp ("subject:", uh->data, 8) != 0)
44359      {
44360        if (last)
44361 @@ -597,6 +657,10 @@
44362    else
44363      env->subject = safe_strdup ("Re: your mail");
44364    
44365 +#ifdef USE_NNTP
44366 +  if (option (OPTNEWSSEND) && option (OPTXCOMMENTTO) && curenv->from)
44367 +    env->x_comment_to = safe_strdup (mutt_get_name (curenv->from));
44368 +#endif
44369  }
44370  
44371  void mutt_add_to_reference_headers (ENVELOPE *env, ENVELOPE *curenv, LIST ***pp, LIST ***qq)
44372 @@ -679,27 +743,39 @@
44373  
44374    if (flags & SENDREPLY)
44375    {
44376 -    if (tag)
44377 +#ifdef USE_NNTP
44378 +    if ((flags & SENDNEWS))
44379      {
44380 -      HEADER *h;
44381 -
44382 -      for (i = 0; i < ctx->vcount; i++)
44383 +      /* in case followup set Newsgroups: with Followup-To: if it present */
44384 +      if (!env->newsgroups && curenv &&
44385 +         mutt_strcasecmp (curenv->followup_to, "poster"))
44386 +       env->newsgroups = safe_strdup (curenv->followup_to);
44387 +    }
44388 +    else
44389 +#endif
44390 +    {
44391 +      if (tag)
44392        {
44393 -       h = ctx->hdrs[ctx->v2r[i]];
44394 -       if (h->tagged && mutt_fetch_recips (env, h->env, flags) == -1)
44395 +       HEADER *h;
44396 +
44397 +       for (i = 0; i < ctx->vcount; i++)
44398 +       {
44399 +         h = ctx->hdrs[ctx->v2r[i]];
44400 +         if (h->tagged && mutt_fetch_recips (env, h->env, flags) == -1)
44401 +           return -1;
44402 +       }
44403 +       }
44404 +       else if (mutt_fetch_recips (env, curenv, flags) == -1)
44405           return -1;
44406 +
44407 +       if ((flags & SENDLISTREPLY) && !env->to)
44408 +       {
44409 +         mutt_error _("No mailing lists found!");
44410 +       return (-1);
44411        }
44412 -    }
44413 -    else if (mutt_fetch_recips (env, curenv, flags) == -1)
44414 -      return -1;
44415  
44416 -    if ((flags & SENDLISTREPLY) && !env->to)
44417 -    {
44418 -      mutt_error _("No mailing lists found!");
44419 -      return (-1);
44420 +      mutt_fix_reply_recipients (env);
44421      }
44422 -
44423 -    mutt_fix_reply_recipients (env);
44424      mutt_make_misc_reply_headers (env, ctx, cur, curenv);
44425      mutt_make_reference_headers (tag ? NULL : curenv, env, ctx);
44426    }
44427 @@ -828,7 +904,18 @@
44428     * it hasn't already been set
44429     */
44430  
44431 -  if (option (OPTFOLLOWUPTO) && !e->mail_followup_to)
44432 +  if (!option (OPTFOLLOWUPTO))
44433 +    return;
44434 +#ifdef USE_NNTP
44435 +  if (option (OPTNEWSSEND))
44436 +  {
44437 +    if (!e->followup_to && e->newsgroups && (strrchr (e->newsgroups, ',')))
44438 +      e->followup_to = safe_strdup (e->newsgroups);
44439 +    return;
44440 +  }
44441 +#endif
44442 +
44443 +  if (!e->mail_followup_to)
44444    {
44445      if (mutt_is_list_cc (0, e->to, e->cc))
44446      {
44447 @@ -1084,6 +1171,13 @@
44448  
44449    int rv = -1;
44450    
44451 +#ifdef USE_NNTP
44452 +  if (flags & SENDNEWS)
44453 +    set_option (OPTNEWSSEND);
44454 +  else
44455 +    unset_option (OPTNEWSSEND);
44456 +#endif
44457 +
44458    if (!flags && !msg && quadoption (OPT_RECALL) != M_NO &&
44459        mutt_num_postponed (1))
44460    {
44461 @@ -1115,6 +1209,22 @@
44462      {
44463        if ((flags = mutt_get_postponed (ctx, msg, &cur, fcc, sizeof (fcc))) < 0)
44464         goto cleanup;
44465 +#ifdef USE_NNTP
44466 +      /*
44467 +       * If postponed message is a news article, it have
44468 +       * a "Newsgroups:" header line, then set appropriate flag.
44469 +       */
44470 +      if (msg->env->newsgroups)
44471 +      {
44472 +       flags |= SENDNEWS;
44473 +       set_option (OPTNEWSSEND);
44474 +      }
44475 +      else
44476 +      {
44477 +       flags &= ~SENDNEWS;
44478 +       unset_option (OPTNEWSSEND);
44479 +      }
44480 +#endif
44481      }
44482  
44483      if (flags & (SENDPOSTPONED|SENDRESEND))
44484 @@ -1195,11 +1305,16 @@
44485      if (option (OPTHDRS))
44486        process_user_recips (msg->env);
44487  
44488 +#ifdef USE_NNTP
44489 +    if ((flags & SENDNEWS) && ctx && ctx->magic == M_NNTP && !msg->env->newsgroups)
44490 +      msg->env->newsgroups = safe_strdup (((NNTP_DATA *)ctx->data)->group);
44491 +#endif
44492 +
44493      if (! (flags & SENDMAILX) &&
44494         ! (option (OPTAUTOEDIT) && option (OPTEDITHDRS)) &&
44495         ! ((flags & SENDREPLY) && option (OPTFASTREPLY)))
44496      {
44497 -      if (edit_envelope (msg->env) == -1)
44498 +      if (edit_envelope (msg->env, flags) == -1)
44499         goto cleanup;
44500      }
44501  
44502 @@ -1349,6 +1464,11 @@
44503      if (i == -1)
44504      {
44505        /* abort */
44506 +#ifdef USE_NNTP
44507 +      if (flags & SENDNEWS)
44508 +       mutt_message _("Article not posted.");
44509 +      else
44510 +#endif
44511        mutt_message _("Mail not sent.");
44512        goto cleanup;
44513      }
44514 @@ -1380,6 +1500,9 @@
44515      }
44516    }
44517  
44518 +#ifdef USE_NNTP
44519 +  if (!(flags & SENDNEWS))
44520 +#endif
44521    if (!msg->env->to && !msg->env->cc && !msg->env->bcc)
44522    {
44523      if (! (flags & SENDBATCH))
44524 @@ -1402,6 +1525,19 @@
44525        mutt_error _("No subject specified.");
44526      goto main_loop;
44527    }
44528 +#ifdef USE_NNTP
44529 +  if ((flags & SENDNEWS) && !msg->env->subject)
44530 +  {
44531 +    mutt_error _("No subject specified.");
44532 +    goto main_loop;
44533 +  }
44534 +
44535 +  if ((flags & SENDNEWS) && !msg->env->newsgroups)
44536 +  {
44537 +    mutt_error _("No newsgroup specified.");
44538 +    goto main_loop;
44539 +  }
44540 +#endif
44541  
44542    if (msg->content->next)
44543      msg->content = mutt_make_multipart (msg->content);
44544 @@ -1588,7 +1724,12 @@
44545      }
44546    }
44547    else if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))
44548 -    mutt_message (i == 0 ? _("Mail sent.") : _("Sending in background."));
44549 +    mutt_message (i != 0 ? _("Sending in background.") :
44550 +#ifdef USE_NNTP
44551 +                 (flags & SENDNEWS) ? _("Article posted.") : _("Mail sent."));
44552 +#else
44553 +                 _("Mail sent."));
44554 +#endif
44555  
44556  #ifdef HAVE_PGP
44557    if (msg->pgp & PGPENCRYPT)
44558 diff -uNr mutt-1.4.orig/sendlib.c mutt-1.4/sendlib.c
44559 --- mutt-1.4.orig/sendlib.c     Sat Apr 20 09:25:49 2002
44560 +++ mutt-1.4/sendlib.c  Sun Nov  3 21:57:20 2002
44561 @@ -40,6 +40,10 @@
44562  #include <sys/wait.h>
44563  #include <fcntl.h>
44564  
44565 +#ifdef USE_NNTP
44566 +#include <nntp.h>
44567 +#endif
44568 +
44569  #ifdef HAVE_SYSEXITS_H
44570  #include <sysexits.h>
44571  #else /* Make sure EX_OK is defined <philiph@pobox.com> */
44572 @@ -1537,7 +1541,7 @@
44573  /* need to write the list in reverse because they are stored in reverse order
44574   * when parsed to speed up threading
44575   */
44576 -static void write_references (LIST *r, FILE *f)
44577 +void mutt_write_references (LIST *r, FILE *f)
44578  {
44579    LIST **ref = NULL;
44580    int refcnt = 0, refmax = 0;
44581 @@ -1579,6 +1583,9 @@
44582    char *p;
44583    LIST *tmp = env->userhdrs;
44584    
44585 +#ifdef USE_NNTP
44586 +  if (!option (OPTNEWSSEND))
44587 +#endif
44588    if (mode == 0 && !privacy)
44589      fputs (mutt_make_date (buffer, sizeof(buffer)), fp);
44590  
44591 @@ -1598,6 +1605,9 @@
44592      mutt_write_address_list (env->to, fp, 4);
44593    }
44594    else if (mode > 0)
44595 +#ifdef USE_NNTP
44596 +  if (!option (OPTNEWSSEND))
44597 +#endif
44598      fputs ("To: \n", fp);
44599  
44600    if (env->cc)
44601 @@ -1606,6 +1616,9 @@
44602      mutt_write_address_list (env->cc, fp, 4);
44603    }
44604    else if (mode > 0)
44605 +#ifdef USE_NNTP
44606 +  if (!option (OPTNEWSSEND))
44607 +#endif
44608      fputs ("Cc: \n", fp);
44609  
44610    if (env->bcc)
44611 @@ -1617,8 +1630,28 @@
44612      }
44613    }
44614    else if (mode > 0)
44615 +#ifdef USE_NNTP
44616 +  if (!option (OPTNEWSSEND))
44617 +#endif
44618      fputs ("Bcc: \n", fp);
44619  
44620 +#ifdef USE_NNTP
44621 +  if (env->newsgroups)
44622 +    fprintf (fp, "Newsgroups: %s\n", env->newsgroups);
44623 +  else if (mode == 1 && option (OPTNEWSSEND))
44624 +    fputs ("Newsgroups: \n", fp);
44625 +
44626 +  if (env->followup_to)
44627 +    fprintf (fp, "Followup-To: %s\n", env->followup_to);
44628 +  else if (mode == 1 && option (OPTNEWSSEND))
44629 +    fputs ("Followup-To: \n", fp);
44630 +
44631 +  if (env->x_comment_to)
44632 +    fprintf (fp, "X-Comment-To: %s\n", env->x_comment_to);
44633 +  else if (mode == 1 && option (OPTNEWSSEND) && option (OPTXCOMMENTTO))
44634 +    fputs ("X-Comment-To: \n", fp);
44635 +#endif
44636 +
44637    if (env->subject)
44638      fprintf (fp, "Subject: %s\n", env->subject);
44639    else if (mode == 1)
44640 @@ -1637,6 +1670,9 @@
44641      fputs ("Reply-To: \n", fp);
44642  
44643    if (env->mail_followup_to)
44644 +#ifdef USE_NNTP
44645 +  if (!option (OPTNEWSSEND))
44646 +#endif
44647    {
44648      fputs ("Mail-Followup-To: ", fp);
44649      mutt_write_address_list (env->mail_followup_to, fp, 18);
44650 @@ -1647,7 +1683,7 @@
44651      if (env->references)
44652      {
44653        fputs ("References:", fp);
44654 -      write_references (env->references, fp);
44655 +      mutt_write_references (env->references, fp);
44656        fputc('\n', fp);
44657      }
44658  
44659 @@ -1659,7 +1695,7 @@
44660    if (env->in_reply_to)
44661    {
44662      fputs ("In-Reply-To:", fp);
44663 -    write_references (env->in_reply_to, fp);
44664 +    mutt_write_references (env->in_reply_to, fp);
44665      fputc ('\n', fp);
44666    }
44667    
44668 @@ -1967,11 +2003,30 @@
44669                  const char *msg, /* file containing message */
44670                  int eightbit) /* message contains 8bit chars */
44671  {
44672 -  char *ps = NULL, *path = NULL, *s = safe_strdup (Sendmail), *childout = NULL;
44673 +  char *ps = NULL, *path = NULL, *s = NULL, *childout = NULL;
44674    char **args = NULL;
44675    size_t argslen = 0, argsmax = 0;
44676    int i;
44677  
44678 +#ifdef USE_NNTP
44679 +  if (option (OPTNEWSSEND))
44680 +  {
44681 +    char cmd[LONG_STRING];
44682 +
44683 +    mutt_FormatString (cmd, sizeof (cmd), NONULL (Inews), nntp_format_str, 0, 0);
44684 +    if (!*cmd)
44685 +    {
44686 +      i = nntp_post (msg);
44687 +      unlink (msg);
44688 +      return i;
44689 +    }
44690 +
44691 +    s = safe_strdup (cmd);
44692 +  }
44693 +  else
44694 +#endif
44695 +    s = safe_strdup (Sendmail);
44696 +
44697    ps = s;
44698    i = 0;
44699    while ((ps = strtok (ps, " ")))
44700 @@ -1995,6 +2050,10 @@
44701      i++;
44702    }
44703  
44704 +#ifdef USE_NNTP
44705 +  if (!option (OPTNEWSSEND))
44706 +  {
44707 +#endif
44708    if (eightbit && option (OPTUSE8BITMIME))
44709      args = add_option (args, &argslen, &argsmax, "-B8BITMIME");
44710  
44711 @@ -2017,6 +2076,9 @@
44712    args = add_args (args, &argslen, &argsmax, to);
44713    args = add_args (args, &argslen, &argsmax, cc);
44714    args = add_args (args, &argslen, &argsmax, bcc);
44715 +#ifdef USE_NNTP
44716 +  }
44717 +#endif
44718  
44719    if (argslen == argsmax)
44720      safe_realloc ((void **) &args, sizeof (char *) * (++argsmax));
44721 @@ -2148,6 +2210,9 @@
44722    rfc2047_encode_adrlist (env->reply_to, "Reply-To");
44723  
44724    if (env->subject)
44725 +#ifdef USE_NNTP
44726 +  if (!option (OPTNEWSSEND) || option (OPTMIMESUBJECT))
44727 +#endif
44728    {
44729      rfc2047_encode_string (&env->subject);
44730    }
44731 @@ -2234,6 +2299,10 @@
44732    
44733    rfc822_write_address (resent_from, sizeof (resent_from), from);
44734  
44735 +#ifdef USE_NNTP
44736 +  unset_option (OPTNEWSSEND);
44737 +#endif
44738 +
44739    _mutt_bounce_message (fp, h, to, resent_from, from);
44740  
44741    rfc822_free_address (&from);
44742 diff -uNr mutt-1.4.orig/sort.c mutt-1.4/sort.c
44743 --- mutt-1.4.orig/sort.c        Thu Dec 13 13:10:59 2001
44744 +++ mutt-1.4/sort.c     Sun Nov  3 21:57:20 2002
44745 @@ -144,6 +144,15 @@
44746    HEADER **ha = (HEADER **) a;
44747    HEADER **hb = (HEADER **) b;
44748  
44749 +#ifdef USE_NNTP
44750 +  if ((*ha)->article_num && (*hb)->article_num)
44751 +  {
44752 +    int result = (*ha)->article_num - (*hb)->article_num;
44753 +    AUXSORT(result,a,b);
44754 +    return (SORTCODE (result));
44755 +  }
44756 +  else
44757 +#endif
44758    /* no need to auxsort because you will never have equality here */
44759    return (SORTCODE ((*ha)->index - (*hb)->index));
44760  }
44761 diff -uNr mutt-1.4.orig/url.c mutt-1.4/url.c
44762 --- mutt-1.4.orig/url.c Mon Oct 29 12:53:45 2001
44763 +++ mutt-1.4/url.c      Sun Nov  3 21:57:20 2002
44764 @@ -35,6 +35,8 @@
44765    { "imaps",   U_IMAPS },
44766    { "pop",     U_POP  },
44767    { "pops",    U_POPS  },
44768 +  { "nntp",    U_NNTP },
44769 +  { "nntps",   U_NNTPS },
44770    { "mailto",  U_MAILTO },
44771    { NULL,      U_UNKNOWN}
44772  };
44773 diff -uNr mutt-1.4.orig/url.h mutt-1.4/url.h
44774 --- mutt-1.4.orig/url.h Tue Sep  4 11:30:04 2001
44775 +++ mutt-1.4/url.h      Sun Nov  3 21:57:20 2002
44776 @@ -8,6 +8,8 @@
44777    U_POPS,
44778    U_IMAP,
44779    U_IMAPS,
44780 +  U_NNTP,
44781 +  U_NNTPS,
44782    U_MAILTO,
44783    U_UNKNOWN
44784  }
This page took 6.940675 seconds and 3 git commands to generate.