]> git.pld-linux.org Git - packages/emacs.git/blob - emacs-CAN_2005_0100.patch
- Format string vulnerability in the movemail utility
[packages/emacs.git] / emacs-CAN_2005_0100.patch
1 --- emacs-21.3.orig/configure
2 +++ emacs-21.3/configure
3 @@ -1686,6 +1686,11 @@
4      machine=f301 opsys=uxpv
5    ;;
6  
7 +  ## AMD x86-64 Linux-based GNU system
8 +  x86_64-*-linux-gnu* )
9 +    machine=amdx86-64 opsys=gnu-linux
10 +  ;;
11 +
12    * )
13      unported=yes
14    ;;
15 --- emacs-21.3.orig/configure.in
16 +++ emacs-21.3/configure.in
17 @@ -1060,6 +1060,11 @@
18      machine=f301 opsys=uxpv
19    ;;
20  
21 +  ## AMD x86-64 Linux-based GNU system
22 +  x86_64-*-linux-gnu* )
23 +    machine=amdx86-64 opsys=gnu-linux
24 +  ;;
25 +
26    * )
27      unported=yes
28    ;;
29 --- emacs-21.3.orig/src/m/amdx86-64.h
30 +++ emacs-21.3/src/m/amdx86-64.h
31 @@ -0,0 +1,241 @@
32 +/* machine description file For the alpha chip.
33 +   Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
34 +
35 +This file is part of GNU Emacs.
36 +
37 +GNU Emacs is free software; you can redistribute it and/or modify
38 +it under the terms of the GNU General Public License as published by
39 +the Free Software Foundation; either version 1, or (at your option)
40 +any later version.
41 +
42 +GNU Emacs is distributed in the hope that it will be useful,
43 +but WITHOUT ANY WARRANTY; without even the implied warranty of
44 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45 +GNU General Public License for more details.
46 +
47 +You should have received a copy of the GNU General Public License
48 +along with GNU Emacs; see the file COPYING.  If not, write to
49 +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
50 +Boston, MA 02111-1307, USA.  */
51 +
52 +
53 +/* The following line tells the configuration script what sort of 
54 +   operating system this machine is likely to run.
55 +   USUAL-OPSYS="note"
56 +
57 +NOTE-START
58 +Use -opsystem=linux
59 +NOTE-END
60 +
61 +*/
62 +
63 +#define BITS_PER_LONG 64
64 +#define BITS_PER_EMACS_INT 64
65 +
66 +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
67 +   is the most significant byte.  */
68 +
69 +#undef WORDS_BIG_ENDIAN
70 +
71 +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
72 + * group of arguments and treat it as an array of the arguments.  */
73 +
74 +#define NO_ARG_ARRAY
75 +
76 +/* Now define a symbol for the cpu type, if your compiler
77 +   does not define it automatically:
78 +   Ones defined so far include vax, m68000, ns16000, pyramid,
79 +   orion, tahoe, APOLLO and many others */
80 +
81 +/* do we need any? */
82 +
83 +
84 +/* Use type EMACS_INT rather than a union, to represent Lisp_Object */
85 +/* This is desirable for most machines.  */
86 +
87 +#define NO_UNION_TYPE
88 +
89 +/* Define the type to use.  */
90 +#define EMACS_INT long
91 +#define EMACS_UINT unsigned long
92 +#define SPECIAL_EMACS_INT
93 +
94 +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
95 +   the 24-bit bit field into an int.  In other words, if bit fields
96 +   are always unsigned.
97 +
98 +   If you use NO_UNION_TYPE, this flag does not matter.  */
99 +
100 +#define EXPLICIT_SIGN_EXTEND
101 +
102 +/* Data type of load average, as read out of kmem.  */
103 +
104 +#define LOAD_AVE_TYPE long
105 +
106 +/* Convert that into an integer that is 100 for a load average of 1.0  */
107 +
108 +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
109 +
110 +/* Define C_ALLOCA if this machine does not support a true alloca
111 +   and the one written in C should be used instead.
112 +   Define HAVE_ALLOCA to say that the system provides a properly
113 +   working alloca function and it should be used.
114 +   Define neither one if an assembler-language alloca
115 +   in the file alloca.s should be used.  */
116 +
117 +#define HAVE_ALLOCA
118 +
119 +/* GNU malloc and the relocating allocator do not work together
120 +   with X.   [Who wrote that?]  */
121 +
122 +/* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
123 +   system and the gnu malloc system work with "alpha-dec-osf3.0" and
124 +   "alpha-dec-osf3.2".  */
125 +
126 +/* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
127 +   mallocs work with "alpha-dec-osf2.0", but I daren't break anything
128 +   right now.  Feel free to play if you want.  */
129 +
130 +/* #define SYSTEM_MALLOC */
131 +
132 +#ifdef __ELF__
133 +/* With ELF, make sure that all common symbols get allocated to in the
134 +   data section.  Otherwise, the dump of temacs may miss variables in
135 +   the shared library that have been initialized.  For example, with
136 +   GNU libc, __malloc_initialized would normally be resolved to the
137 +   shared library's .bss section, which is fatal.  */
138 +# ifdef __GNUC__
139 +#  define C_SWITCH_MACHINE     -fno-common
140 +# else
141 +#  error What gives?  Fix me if DEC Unix supports ELF now.
142 +# endif
143 +#endif
144 +
145 +#if defined(__OpenBSD__)
146 +#define ORDINARY_LINK
147 +#endif
148 +
149 +#ifdef __ELF__
150 +#undef UNEXEC
151 +#define UNEXEC unexelf.o
152 +#endif
153 +
154 +#ifndef __ELF__
155 +
156 +/* Describe layout of the address space in an executing process.  */
157 +
158 +#define TEXT_START    0x120000000
159 +#define DATA_START    0x140000000
160 +
161 +/* This is necessary for mem-limits.h, so that start_of_data gives
162 +   the correct value */
163 +
164 +#define DATA_SEG_BITS 0x140000000
165 +
166 +/* The program to be used for unexec. */
167 +
168 +// #define UNEXEC unexalpha.o
169 +
170 +#endif /* notdef __ELF__ */
171 +
172 +#ifdef OSF1
173 +#define ORDINARY_LINK
174 +
175 +/* Some systems seem to have this, others don't.  */
176 +#ifdef HAVE_LIBDNET
177 +#define LIBS_MACHINE -ldnet
178 +#else
179 +#define LIBS_MACHINE -ldnet_stub
180 +#endif
181 +#endif /* OSF1 */
182 +
183 +#if 0 /* Rainer Schoepf <schoepf@uni-mainz.de> says this loses with X11R6
184 +        since it has only shared libraries.  */
185 +#ifndef __GNUC__
186 +/* This apparently is for the system ld as opposed to Gnu ld.  */
187 +#ifdef OSF1
188 +#define LD_SWITCH_MACHINE      -non_shared
189 +#endif
190 +#endif
191 +#endif /* 0 */
192 +
193 +#ifdef OSF1
194 +#define LIBS_DEBUG
195 +#define START_FILES pre-crt0.o
196 +#endif
197 +
198 +#if defined (LINUX) && __GNU_LIBRARY__ - 0 < 6
199 +/* This controls a conditional in main.  */
200 +#define LINUX_SBRK_BUG
201 +#endif
202 +
203 +
204 +#define PNTR_COMPARISON_TYPE unsigned long
205 +
206 +/* On the 64 bit architecture, we can use 60 bits for addresses */
207 +
208 +#define VALBITS         60
209 +
210 +
211 +/* This definition of MARKBIT is necessary because of the comparison of
212 +   ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
213 +
214 +#define MARKBIT         0x8000000000000000L
215 +
216 +
217 +/* Define XINT and XUINT so that they can take arguments of type int */
218 +
219 +#define XINT(a)  (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
220 +#define XUINT(a) ((long) (a) & VALMASK)
221 +
222 +/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
223 +
224 +#define XPNTR(a) XUINT (a)
225 +
226 +#ifndef NOT_C_CODE
227 +/* We need these because pointers are larger than the default ints.  */
228 +#if !defined(__NetBSD__) && !defined(__OpenBSD__)
229 +#include <alloca.h>
230 +#endif
231 +
232 +#endif /* not NOT_C_CODE */
233 +
234 +#ifdef OSF1
235 +#define PTY_ITERATION          for (i = 0; i < 1; i++) /* ick */
236 +#define PTY_NAME_SPRINTF       /* none */
237 +#define PTY_TTY_NAME_SPRINTF   /* none */
238 +#define PTY_OPEN                                       \
239 +  do                                                   \
240 +    {                                                  \
241 +      int dummy;                                       \
242 +      SIGMASKTYPE mask;                                        \
243 +      mask = sigblock (sigmask (SIGCHLD));             \
244 +      if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
245 +       fd = -1;                                        \
246 +      sigsetmask (mask);                               \
247 +      emacs_close (dummy);                             \
248 +    }                                                  \
249 +  while (0)
250 +#endif
251 +
252 +/* On the Alpha it's best to avoid including TERMIO since struct
253 +   termio and struct termios are mutually incompatible.  */
254 +#define NO_TERMIO
255 +
256 +#if defined (LINUX) || defined (__NetBSD__) || defined (__OpenBSD__)
257 +# define TEXT_END ({ extern int _etext; &_etext; })
258 +# ifndef __ELF__
259 +#  define COFF
260 +#  define DATA_END ({ extern int _EDATA; &_EDATA; })
261 +# endif /* notdef __ELF__ */
262 +#endif
263 +
264 +#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__)
265 +#define HAVE_TEXT_START
266 +#endif
267 +
268 +/* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN:
269 +   they generate code that uses a signaling NaN instead of DBL_MIN.
270 +   Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN:
271 +   this avoids the assembler bug.  */
272 +#define DBL_MIN_REPLACEMENT 2.2250738585072019e-308
273 --- emacs-21.3.orig/debian/copyright.in
274 +++ emacs-21.3/debian/copyright.in
275 @@ -0,0 +1,36 @@
276 +-*-text-*-
277 +
278 +This package was debianized by Rob Browning <rlb@defaultvalue.org> on
279 +Tue, 16 Dec 1997 00:05:45 -0600.
280 +
281 +The source is a combination of the following files:
282 +
283 +  prep.ai.mit.edu:/pub/gnu/emacs/emacs-@NOMINAL_VERSION@.tar.gz
284 +  prep.ai.mit.edu:/pub/gnu/emacs/leim-@NOMINAL_VERSION@.tar.gz
285 +
286 +Copyright:
287 +
288 +  GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
289 +  1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
290 +  59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
291 +  under the terms of the GPL.  See the file
292 +  /usr/share/common-licenses/GPL for more information.
293 +
294 +  The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
295 +  1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
296 +  Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
297 +  USA.  It is covered under the terms of the GNU Free Documentation
298 +  License, version 1.1 or later.  See node `GNU Free Documentation
299 +  License' in the Info manual (emacs) for details.
300 +
301 +  The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
302 +  Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
303 +  1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
304 +  Place, Suite 330 Boston, MA 02111-1307 USA.  They are covered under
305 +  the terms of the GNU Free Documentation License, version 1.1 or
306 +  later.  See node `GNU Free Documentation License' in the Info manual
307 +  (emacs) for details.
308
309 +Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/README.Debian.gz for a
310 +description of the Debian specific differences from the upstream
311 +version.
312 --- emacs-21.3.orig/debian/changelog
313 +++ emacs-21.3/debian/changelog
314 @@ -0,0 +1,777 @@
315 +emacs21 (21.3+1-5ubuntu4.2) warty-security; urgency=low
316 +
317 +  * Fixed CAN-2005-0100.dpatch to work with Warty's dpatch version.
318 +
319 + -- Martin Pitt <martin.pitt@ubuntu.com>  Fri,  4 Feb 2005 11:53:51 +0000
320 +
321 +emacs21 (21.3+1-5ubuntu4.1) warty-security; urgency=low
322 +
323 +  * SECURITY UPDATE: fix remote privilege escalation to group 'mail'.
324 +  * Added patch CAN-2005-0100.dpatch:
325 +    - lib-src/movemail.c: Fix format string vulnerability in error message
326 +      output.
327 +  * References:
328 +    CAN-2005-0100
329 +
330 + -- Martin Pitt <martin.pitt@ubuntu.com>  Fri,  4 Feb 2005 10:41:30 +0000
331 +
332 +emacs21 (21.3+1-5ubuntu4) warty; urgency=low
333 +
334 +  * Add patch to fix local file creation permissions.
335 +    (Closes: #2191)
336 +
337 + -- Fabio M. Di Nitto <fabbione@fabbione.net>  Sun, 10 Oct 2004 07:22:56 +0200
338 +
339 +emacs21 (21.3+1-5ubuntu3) warty; urgency=low
340 +
341 +  * debian/control.in:
342 +    - Build-Depends on libtiff4-dev.
343 +
344 + -- Sebastien Bacher <seb128@debian.org>  Mon,  2 Aug 2004 12:23:36 +0200
345 +
346 +emacs21 (21.3+1-5ubuntu2) warty; urgency=low
347 +
348 +  * Import debian/patches/fix-batch-mode-signal-handling.dpatch
349 +    from 21.3+1-6 to fix Warty bug #58
350 +
351 + -- Matt Zimmerman <mdz@alcor.net>  Mon, 26 Jul 2004 11:06:23 -0700
352 +
353 +emacs21 (21.3+1-5ubuntu1) warty; urgency=low
354 +
355 +  * Apply amd64 patch aggregated from #248796
356 +
357 + -- LaMont Jones <lamont@mmjgroup.com>  Wed, 14 Jul 2004 01:34:05 +0000
358 +
359 +emacs21 (21.3+1-5) unstable; urgency=low
360 +
361 +  * Apply patch allowing emacsclient to handle ALTERNATE_EDITOR properly
362 +    when the command is run without any parameter [Jérôme Marant]
363 +    (closes: #219658)
364 +    - debian/patches/emacsclient-alternate-editor.dpatch: new file.
365 +
366 +  * Provide the `editor' virtual package. [Jérôme Marant]
367 +    (closes: #66243, #90154, #158807) 
368 +    - debian/control.in: emacs and emacs-nox now provide the `editor'
369 +      virtual package. 
370 +    - debian/control: synchronized with debian/control.in.
371 +    - debian/emacs.postinst: adding an `editor' alternative with a priority
372 +      of 0 as discussed in
373 +      http://lists.debian.org/debian-policy/2000/debian-policy-200006/msg00122.html
374 +    - debian/emacs.prerm: removing the `editor' alternative on package
375 +      removal.
376 +
377 +  * Added automatic switching to UTF-8 encoding when editing the debian
378 +    changelog file. [Jérôme Marant]
379 +    - debian/changelog: added Emacs local variables forcing coding
380 +      to UTF-8.
381 +
382 +  * Fix handling of menu entry for text version of Emacs [Jérôme Marant]
383 +    (closes: #221171)
384 +    - debian/menu.in: call the text version of emacs with the `-nw'
385 +      parameter.
386 +
387 +  * Install the emacsclient manpage [Jérôme Marant] (closes: #222767) 
388 +    - debian/build-common-pkg: install missing emacsclient manpage.
389 +    - debian/emacs-common.postinst: install alternative for emacsclient
390 +      manpage.
391 +  
392 +  * Install .desktop entry in order to make Emacs easy to start in
393 +    both GNOME and KDE. Thanks to Adam C Powell IV <hazelsct@debian.org>
394 +    [Jérôme Marant] (closes: #233711)
395 +    - emacs.desktop: new template file for desktop entries
396 +    - debian/rules: generate desktop file from emacs.desktop template
397 +      and install it for emacs21.
398 +
399 +  * test -n "${major_ver}" in a few places so that we don't accidentally
400 +    generate bad output files from our .in files. [rlb]
401 +    - debian/rules
402 +
403 +  * truncate aclocal.m4 during autofiles-sync so that old bits won't kill new
404 +    autoconf run.  Also ignore autom4te.cache when generating
405 +    autofiles.diff. [rlb]
406 +    - debian/rules
407 +  
408 +  * fix bug in prepare-release autodiff prompt handling. [rlb]
409 +    - debian/rules
410 +
411 +  * update configure.in for newer autoconf versions. [rlb]
412 +    - autoconf-updates.dpatch
413 +
414 +  * add an emacsXY-bin-common package containing all the architecture
415 +    specific bits, so that emacsXY-common can be architecture independent.
416 +    This should save many megabytes * architectures in the debian pool.
417 +    [rlb] (closes: #232888, #233345)
418 +    - debian/rules: move some build-* code from debian/ scripts to rules
419 +      and adjust to build emacsXY-bin-common.
420 +    - debian/emacs-common.postinst debian/emacs-common.prerm: some code
421 +      moved to new emacs-bin-common scripts.
422 +    - debian/emacs-common.postrm: deleted.
423 +    - debian/emacs-bin-common.postinst: new file.
424 +    - debian/emacs-bin-common.prerm: new file.
425 +    - debian/emacs-bin-common.postrm: new file.
426 +    - debian/build-common-pkg: deleted - code now in debian/rules.
427 +    - debian/build--pkg: deleted - code now in debian/rules.
428 +    - debian/emacs-el.postinst: deleted - was empty.
429 +    - debian/control.in: add emacsXY-bin-common and adjust other entries.
430 +    - debian/fix-debian-scripts: deleted - no longer used.
431 +    - debian/build-binary-pkg: adjusted to handle more of the common code.
432 +  
433 +  * Add support for linux 2.6 to ACPI in lisp/battery.el. Thanks to
434 +    Mario Lang <mlang@debian.org> [Jérôme Marant] (closes: #228658)
435 +    - debian/patches/battery-acpi-support.dpatch: updated.
436 +  
437 +  * Generate md5sums file for every package [Jérôme Marant] (closes: #22590)
438 +    - debian/rules: generate md5sums file just before building packages.
439 +    - debian/build-binary-pkg: likewise.
440 +  
441 +  * no point in byte-compiling fns-*.el according to upstream authors
442 +    (closes: #189277)
443 +
444 +  * fix configure args (--build alone doesn't seem to work anymore). [rlb]
445 +    - debian/rules
446 +  
447 +  * re-enable gif support via libungif. [rlb]
448 +    - debian/rules
449 +
450 +  * re-enable toolkit scrollbars, but make it really easy for people to
451 +    disable them in debian/rules.  Search for
452 +    --without-toolkit-scrollbars.  [rlb]
453 +    - debian/rules
454 +    - debian/README.in
455 +
456 +  * fix problem with upgrades by adding emacs21-common (<< 21.3+1-4) to
457 +    Replaces for the common packages. [rlb]
458 +    - debian/control.in
459 +    - debian/control
460 +
461 + -- Rob Browning <rlb@defaultvalue.org>  Tue,  6 Apr 2004 18:07:38 -0500
462 +
463 +emacs21 (21.3+1-4) unstable; urgency=medium
464 +
465 +  * debian/changelog: converted to UTF-8 as per Policy. [Jérôme Marant]
466 +  * debian/control.in:
467 +    - Bumped Standards-Version to 3.6.1. [Jérôme Marant]
468 +    - Added versioned build-dependency on dpatch >= 1.23 since this version
469 +      no longer requires numerial prefixes to dpatches. [Jérôme Marant]
470 +  * debian/patches/*.dpatch: removed numerical prefix since the patch order
471 +    is specified in debian/patches/00list. [Jérôme Marant]
472 +  * debian/patches/hurd-libio-glibc.dpatch: new patch allowing Emacs
473 +    to be built on Hurd systems using a libio-based glibc.
474 +    Thanks to Markus Brinkmann <marcus@gnu.org>.
475 +    (closes: #143220) [Jérôme Marant]
476 +  * debian/patches/battery-acpi-support.dpatch: new patch adding ACPI
477 +    support to lisp/battery.el. Thanks to Mario Lang <mlang@debian.org>.
478 +    (closes: #208812) [Jérôme Marant]
479 +  * debian/patches/scroll-margin.dpatch: new patch preventing emacs
480 +    to hang with a non-0 scroll-margin set.
481 +    (closes: #175658) [Jérôme Marant]
482 +  * debian/patches/save-buffer.dpatch: new patch fixing a bug which
483 +    makes a file being removed when the coding system of its buffer
484 +    has changed and saving the changes was canceled.
485 +    (closes: #194171) [Jérôme Marant]
486 +  * debian/patches/00list: updated with respect to new patches.
487 +    [Jérôme Marant]
488 +  * debian/menu.in:
489 +    - Added hints to menu entries. (closes: #144282) [Jérôme Marant]
490 +    - Changed titles for both text and X11 entries in order to
491 +      differenciate them. (closes: #197527, #188598) [Jérôme Marant]
492 +  * debian/patches/browse-url.dpatch:
493 +    - Updated patch fixing a wrong call to galeon. Thanks to
494 +      Mikael Hedin <micce@debian.org>. (closes: #208206) [Jérôme Marant]
495 +    - Updated patch fixing browse-url's invocation of Mozilla.
496 +      Thanks to Jeff Sheinberg <jeffsh@erols.com>,
497 +      Martin Pool <mbp@sourcefrog.net> and KATO Kazuyoshi <kzys@users.sf.net>.
498 +      (closes: #148408, #216067) [Jérôme Marant]
499 +  * Use -O1 rather than -O2 on m68k.  Fixes a build failure (looks like a
500 +    broken byte compiler) with newer versions of gcc.  (closes: #207580)
501 +
502 + -- Rob Browning <rlb@defaultvalue.org>  Fri, 31 Oct 2003 00:00:10 -0600
503 +
504 +emacs21 (21.3+1-3) unstable; urgency=low
505 +
506 +  * create debian/stmap it doesn't exist. (closes: #210802)
507 +
508 + -- Rob Browning <rlb@defaultvalue.org>  Sat, 13 Sep 2003 14:49:18 -0500
509 +
510 +emacs21 (21.3+1-2) unstable; urgency=low
511 +
512 +  * add back accidentally removed dpatch Build-Depends. (closes: #210627)
513 +
514 + -- Rob Browning <rlb@defaultvalue.org>  Fri, 12 Sep 2003 10:30:21 -0500
515 +
516 +emacs21 (21.3+1-1) unstable; urgency=low
517 +
518 +  * repackage without .elc files since we regenerate all of them anyway.
519 +    This will save space, and will also allow us to use dpatch in a
520 +    straightforward way.
521 +  * modify debian/rules computation of version numbers to handle
522 +    (i.e. ignore) the +1 in 21.3+1.
523 +  * rework to use dpatch and to patch/unpatch the debian source in-place
524 +    rather than using a debian/build-src copy of the whole source tree.
525 +  * incorporated patch (500-detect-coding-iso2022.dpatch) to fix raw-text
526 +    coding problem.  Thanks to Kenichi Handa <handa@etl.go.jp>.
527 +    (closes: #198736)
528 +
529 + -- Rob Browning <rlb@defaultvalue.org>  Thu, 11 Sep 2003 23:15:44 -0500
530 +
531 +emacs21 (21.3-2) unstable; urgency=low
532 +
533 +  * Compile --without-toolkit-scroll-bars for now (my pref, and to avoid
534 +    xaw3d issues for the moment).
535 +  * Update copyright to reflect documentation licenses. (closes: #161500)
536 +
537 + -- Rob Browning <rlb@defaultvalue.org>  Wed, 13 Aug 2003 08:53:35 -0500
538 +
539 +emacs21 (21.3-1) unstable; urgency=low
540 +
541 +  * new upstream version.
542 +
543 + -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Apr 2003 13:16:06 -0500
544 +
545 +emacs21 (21.2-6) unstable; urgency=low
546 +
547 +  * changed sort behavior for x-vs-no-x fix in cus-dep.el based on
548 +    suggestion from Matt Kraai <kraai@alumni.cmu.edu>. (closes: #166139)
549 +  * finish breaking up most of the debian/patch/* files.
550 +  * set up automatic generation for autofiles.diff which contains all the
551 +    diffs to automatically generated files and is applied after all of the
552 +    debian/patch/*.diff files.
553 +  * add an apply-patches-upto command so it's easier to create partially
554 +    patched trees for editing.
555 +
556 + -- Rob Browning <rlb@defaultvalue.org>  Thu,  6 Feb 2003 18:12:41 -0600
557 +
558 +emacs21 (21.2-5) unstable; urgency=low
559 +
560 +  * fix bug in rules and binary-pkg generation. (closes: #164770)
561 +  * fix problem with config.sub and config.guess updates. (closes: #164763)
562 +  * time to stop creating the /usr/doc symlinks...
563 +
564 + -- Rob Browning <rlb@defaultvalue.org>  Tue, 15 Oct 2002 16:34:52 -0500
565 +
566 +emacs21 (21.2-4) unstable; urgency=low
567 +
568 +  * create debian/patches/ and start migrating to represent
569 +    changes as patches against the upstream source.  Don't edit the main
570 +    tree anymore.
571 +  * rework tree and packaging to have emacs21-common, emacs21, and
572 +    emacs21-nox packages with emacs21-common containing nearly all the
573 +    data.
574 +
575 + -- Rob Browning <rlb@defaultvalue.org>  Sat, 12 Oct 2002 15:09:37 -0500
576 +
577 +emacs21 (21.2-3) unstable; urgency=low
578 +
579 +  * Update emacs21-nox package description.
580 +
581 + -- Rob Browning <rlb@defaultvalue.org>  Wed, 29 May 2002 14:04:57 -0500
582 +
583 +emacs21 (21.2-2) unstable; urgency=low
584 +
585 +  * fix control file priorities to match overrides.
586 +  * fix rules to handle autotools more correctly.  See
587 +    /usr/share/doc/autotools-dev/README.Debian.gz for details.
588 +    (closes: #139998)
589 +  * firewall, headless box, and anti-X users everywhere rejoice!
590 +    Introducing emacs21-nox package :>
591 +
592 + -- Rob Browning <rlb@defaultvalue.org>  Tue, 28 May 2002 12:09:48 -0500
593 +
594 +emacs21 (21.2-1) unstable; urgency=low
595 +
596 +  * new upstream release.
597 +  * move outline of Debian specific Emacs changes to
598 +    /usr/share/doc/*/README.Debian.gz.x
599 +
600 + -- Rob Browning <rlb@defaultvalue.org>  Fri, 22 Mar 2002 11:41:17 -0600
601 +
602 +emacs21 (21.1-9) unstable; urgency=low
603 +
604 +  * fix control.in to use ${Source-Version}. (closes: #138994)
605 +
606 + -- Rob Browning <rlb@defaultvalue.org>  Mon, 18 Mar 2002 21:54:47 -0600
607 +
608 +emacs21 (21.1-8) unstable; urgency=low
609 +
610 +  * Fix .texi problems with upstream patch. (closes: #138236)
611 +
612 + -- Rob Browning <rlb@defaultvalue.org>  Sun, 17 Mar 2002 11:58:59 -0600
613 +
614 +emacs21 (21.1-7) unstable; urgency=high
615 +
616 +  * fix vc-path to be correct for a Debian system. (closes: #107251)
617 +  * re-add lost hppa and s390 patches. (closes: #120079)
618 +
619 + -- Rob Browning <rlb@defaultvalue.org>  Thu,  6 Dec 2001 14:10:45 -0600
620 +
621 +emacs21 (21.1-6) unstable; urgency=medium
622 +
623 +  * modify order in browse-url.el.
624 +  * added upstream iso-acc.el patch to fix accent bug. (closes: #119852)
625 +  * fix ppc nocombreloc bug with upstream patch. (closes: #117557)
626 +
627 + -- Rob Browning <rlb@defaultvalue.org>  Tue,  4 Dec 2001 08:43:38 -0600
628 +
629 +emacs21 (21.1-5) unstable; urgency=low
630 +
631 +  * Run autoconf to remove stale ppc code. (closes: #119189)
632 +  * Write new browse-url.el code with support for galeon and to default to
633 +    searching for a suitable browser, free browsers first.  (closes: #116822)
634 +
635 + -- Rob Browning <rlb@defaultvalue.org>  Tue, 13 Nov 2001 09:51:31 -0600
636 +
637 +emacs21 (21.1-4) unstable; urgency=low
638 +
639 +  * Really fix alternatives problem this time.
640 +
641 + -- Rob Browning <rlb@defaultvalue.org>  Fri,  9 Nov 2001 10:24:49 -0600
642 +
643 +emacs21 (21.1-3) unstable; urgency=low
644 +
645 +  * Fix but in grep in postinst. (closes: #117251, #117256, #117415, #118792)
646 +  * Remove vestigal ppc bits and add upstream patch for ppc nocombreloc
647 +    problem. (closes: #117557)
648 +  * fix bug in upstream-files.tar handling.
649 +  * don't configure gif support until our libungif is new enough.  See bug
650 +    #117729.
651 +  * Fix manpage to list correct default window size. (closes: #118641)
652 +
653 + -- Rob Browning <rlb@defaultvalue.org>  Thu,  8 Nov 2001 21:15:20 -0600
654 +
655 +emacs21 (21.1-2) unstable; urgency=low
656 +
657 +  * change to priority optional.
658 +  * use xaw3d scrollbars after checking upstream preferences.
659 +    (closes: #116831, #116911, #116638)
660 +  * added some build-depends. (closes: #116981)
661 +  * fixed typo in NEWS. (closes: #116814)
662 +  * fixed alternatives bug in postinst/prerm for emacsclient (closes: #116915)
663 +
664 + -- Rob Browning <rlb@defaultvalue.org>  Thu, 25 Oct 2001 16:02:45 -0500
665 +
666 +emacs21 (21.1-1) unstable; urgency=low
667 +
668 +  * New emacs21 packages.  Many changes -- reviewed all Debian files.
669 +
670 + -- Rob Browning <rlb@defaultvalue.org>  Thu, 18 Oct 2001 17:28:03 -0500
671 +
672 +emacs20 (20.7-10) unstable; urgency=medium
673 +
674 +  * Add arch header for mipsel and fix configure.in and
675 +    configure. (closes: #103959)
676 +
677 + -- Rob Browning <rlb@defaultvalue.org>  Mon, 23 Jul 2001 09:23:06 -0500
678 +
679 +emacs20 (20.7-9) unstable; urgency=low
680 +
681 +  * Added more Build-Depends. (closes: #101832)
682 +  * Disable ralloc on Hurd.  Thanks to Robert Bihlmeyer
683 +    <robbe@orcus.priv.at>. (closes: #101926)
684 +
685 + -- Rob Browning <rlb@defaultvalue.org>  Tue, 10 Jul 2001 12:48:22 -0500
686 +
687 +emacs20 (20.7-8) unstable; urgency=low
688 +
689 +  * Added ia64 patches from Bdale Garbee <bdale@gag.com> for ia64.h.
690 +    (closes: #90518)
691 +  * Added Build-Depends on mailx for now (though this is *wrong* for the
692 +    long run -- I need to fix my fakemail handling).
693 +    (closes: #95903, #96761)
694 +  * Fix fakeroot sgid problem (move movemail chmod +s in debian/rules).
695 +  * Remove emacs' overzealous dir.gz file.
696 +  * Shrink gnu.xpm to 32x32 and make it the menu icon. (closes: #20253, #21310)
697 +  * Update manpage to not refer to kitchen sink anymore -- though with
698 +    emacs21, we're going to move back to using whatever they choose.
699 +    (closes: #81682)
700 +
701 + -- Rob Browning <rlb@cs.utexas.edu>  Wed, 13 Jun 2001 23:56:16 -0500
702 +
703 +emacs20 (20.7-7) unstable; urgency=low
704 +
705 +  * Fixed reftex-info problem. (closes: #44837).
706 +  * Fix install-strip target in Makefile.in.  Thanks to 
707 +    Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.  (closes: #51348)
708 +
709 + -- Rob Browning <rlb@cs.utexas.edu>  Sat,  5 May 2001 23:50:50 -0500
710 +
711 +emacs20 (20.7-6) unstable; urgency=low
712 +
713 +  * Fix improper usage of dpkg-statoverride and make sure movemail is set
714 +    up right. (closes: #95953)
715 +  * Fix bad manpage location in postinst update-alternatives call.
716 +  * Fix bad .so in ctags manpage (closes: #88231, #45317, #65017, #74570)
717 +
718 + -- Rob Browning <rlb@cs.utexas.edu>  Sat,  5 May 2001 09:47:40 -0500
719 +
720 +emacs20 (20.7-5) unstable; urgency=low
721 +
722 +  * configure.in: add detection of CONF_MAIL_PROGRAM_NAME.
723 +  * lib-src/fakemail.c: use CONF_MAIL_PROGRAM_NAME when appropriate
724 +    (closes: #72103) -- need to forward upstream.
725 +  * Add "modified by Debian" clause to (emacs-version) at RMS's request.
726 +  * Start Debian modifications section in copyright file as per policy.
727 +  * Add build fixes for hurd (closes: #78461).  Changes suggested by
728 +    Marcus.Brinkmann@ruhr-uni-bochum.de.  Thanks.
729 +  * Switch from Debian sendmail.el hack to Francesco's suggestion of
730 +    setting mail-from-style to 'system-default by default at startup
731 +    (closes: #35128).  This allows the user to override when desired in
732 +    the normal way.  This should be discussed with the upstream
733 +    maintainers.  They may be amenable to making this the default on
734 +    Debian systems.
735 +  * add dependency on dpkg (>= 1.9.0) for new install-info.
736 +  * info pages should finally work right (or at least closer to right).
737 +    They're now installed in /usr/share/info/emacs-20/ under their normal
738 +    names, and install-info can add the appropriate (emacs-20/emacs),
739 +    etc. entries to /usr/share/info/dir.  This hopefully closes a bunch of
740 +    old bugs.
741 +    (closes: #64994, #64512, #64025, #62155, #59332, #51163, #40443)
742 +  * No more files in /usr/doc. (closes: #91454, #63768)
743 +  * /usr/man moved to /usr/share/man. (closes: #91149)
744 +  * This should be fixed, in addition we've switched to dpkg-statoverride
745 +    (closes: #73007)
746 +  * /usr/share/info/dir.gz should be gone.
747 +    (closes: #75594, #68551, #65012)
748 +
749 + -- Rob Browning <rlb@cs.utexas.edu>  Sun, 29 Apr 2001 22:03:33 -0500
750 +
751 +emacs20 (20.7-4) unstable frozen; urgency=low
752 +
753 +  * Upload to unstable *and* frozen since this fixes outstanding grave
754 +    bugs.
755 +
756 + -- Rob Browning <rlb@cs.utexas.edu>  Thu, 27 Jul 2000 16:21:15 -0500
757 +
758 +emacs20 (20.7-3) unstable; urgency=low
759 +
760 +  * Change code to rebuild *all* the install tree .elc files at build
761 +    time.  This should fix the grave problems with gnus trashing mail at
762 +    the expense of more CPU at build time.
763 +
764 + -- Rob Browning <rlb@cs.utexas.edu>  Wed, 19 Jul 2000 20:27:27 -0500
765 +
766 +emacs20 (20.7-2) frozen unstable; urgency=low
767 +
768 +  * Revert to setting debian-emacs-flavor in startup.el as per recent
769 +    flip-flop in debian-emacs-policy :<  This was a *tiny* source change,
770 +    and definitely has to go into frozen - too much breaks otherwise.
771 +
772 + -- Rob Browning <rlb@cs.utexas.edu>  Tue, 20 Jun 2000 11:31:29 -0500
773 +
774 +emacs20 (20.7-1) frozen unstable; urgency=low
775 +
776 +  * New upstream bug-fix version.  Fixes security bugs, among others.
777 +  * Removed some now redundant Debian patches.
778 +
779 + -- Rob Browning <rlb@cs.utexas.edu>  Sat, 17 Jun 2000 12:59:48 -0500
780 +
781 +emacs20 (20.6-3) unstable frozen; urgency=medium
782 +
783 +  * Temp fix for alpha corruption problem in cm/src.h
784 +    src/termcap.c, src/terminfo.c, and src/sysdep.c (forwarded bug 63993).
785 +
786 + -- Rob Browning <rlb@cs.utexas.edu>  Mon, 12 Jun 2000 18:55:22 -0500
787 +
788 +emacs20 (20.6-2) frozen unstable; urgency=low
789 +
790 +  * Make sure info files get registered after /usr/share migration.
791 +
792 + -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 May 2000 15:30:02 -0500
793 +
794 +emacs20 (20.6-1) frozen unstable; urgency=low
795 +
796 +  * Let emacsen-common handle setting debian-emacs-flavor and modify
797 +    "Depends:" accordingly.
798 +  * Maintainer release of 20.6 - fixes same issues as 20.6-0.1, so it
799 +    should go into frozen.
800 +  * Move info files to /usr/share/info.
801 +  * Make sure .elc files for .el files we've modified are *always* rebuilt.
802 +  * Add new unexelf.c from Gerd Moellmann <gerd@gnu.org>.  Without this,
803 +    emacs20 will *not* build on either frozen or unstable x86 machines.
804 +
805 + -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 May 2000 11:00:33 -0500
806 +
807 +emacs20 (20.6-0.1) frozen unstable; urgency=low
808 +
809 +  * Non-maintainer release.
810 +  * New upstream bug fix release (closes:#60931).
811 +  * ARM support merged upstream.
812 +  * Add security patches from RUS-CERT posting on BugTraq.
813 +  * postinst: Use 2775 as directory permissions in /usr/local (closes:#59919)
814 +
815 + -- Joel Klecker <espy@debian.org>  Wed, 26 Apr 2000 11:26:28 -0700
816 +
817 +emacs20 (20.5a-2) unstable; urgency=low
818 +
819 +  * Check in a bogus modification to all the .el files that we modified
820 +    before 20.5a so that new .elc files with our changes will be generated
821 +    when we build.  This must be done every time an upstream change is
822 +    merged in.
823 +
824 + -- Rob Browning <rlb@cs.utexas.edu>  Tue, 28 Dec 1999 19:51:14 -0600
825 +
826 +emacs20 (20.5a-1) unstable; urgency=high
827 +
828 +  * Upstream version number is just fine (20.5a *is* newer than 20.5).
829 +    Switch to use it.
830 +
831 + -- Rob Browning <rlb@cs.utexas.edu>  Wed, 22 Dec 1999 11:12:44 -0600
832 +
833 +emacs20 (20.4.pre20.5a-1) unstable; urgency=high
834 +
835 +  * New upstream version, including some Y2K fixes.
836 +  * Use weird version to avoid epochs.  This is upstream 20.5a.
837 +
838 + -- Rob Browning <rlb@cs.utexas.edu>  Wed, 22 Dec 1999 00:16:52 -0600
839 +
840 +emacs20 (20.4-3) unstable; urgency=low
841 +
842 +  * Fix mistake in this file.  Fix bug number in architecture
843 +    dependency "closes" in last revision.
844 +  * Powerpc configure.in patch from Susumu OSAWA <susumuo@debian.org>.
845 +    (Should close bug 48997, but marked forwarded instead until patch is
846 +    resolved upstream.)
847 +  * Jargon problems apparently fixed. (closes: #31103 #37030)
848 +  * Gnus printing problems apparently fixed (closes: #20760)
849 +  * Fix manpage to refer to more accurate Debian file locations.
850 +    (closes: #35267)
851 +  * cperl-mode problem apparently fixed. (closes: #46739)
852 +  * Fix build stripping problem (use INSTALL_STRIP=-s rather than
853 +    INSTALL_PROGRAM="install -s").
854 +
855 + -- Rob Browning <rlb@cs.utexas.edu>  Sat,  4 Dec 1999 19:24:07 -0600
856 +
857 +emacs20 (20.4-2) unstable; urgency=low
858 +
859 +  * Modify mail-spool-directory/movemail patch in preparation for upstream
860 +    inclusion.
861 +  * Fix architecture dependency. (closes: #48997)
862 +
863 + -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 Nov 1999 17:59:01 -0600
864 +
865 +emacs20 (20.4-1) unstable; urgency=low
866 +
867 +  * New upstream version.
868 +  * I decided to go ahead and get this out without the major overhaul
869 +    that's coming, but I'm going to be working more tightly the core
870 +    upstream developers from now on, so there will be some more
871 +    substantial changes soon, including getting rid of more Debianisms and
872 +    double checking all our current patches.
873 +  * Fix movemail liblockfile detection to be non-Debian specific
874 +    (currently working out the appropriate upstream patch (see etc/NEWS)).
875 +  * Fix emacs to support a --with-mail-spool-directory configure option and to
876 +    automagically detect the right answer most of the time without it
877 +    (currently working out the appropriate upstream patch (see etc/NEWS)).
878 +  * Add the lisp-level variable mail-spool-directory which always contains
879 +    the location of the mail spool, and hack movemail, nnmail, rmail, and
880 +    friends to use it (currently working out the appropriate upstream
881 +    patch (see etc/NEWS)) .
882 +  * hexl-mode bug fixed upstream. (closes: #21762)
883 +
884 + -- Rob Browning <rlb@cs.utexas.edu>  Sat, 30 Oct 1999 13:24:39 -0500
885 +
886 +emacs20 (20.3-11) unstable; urgency=low
887 +
888 +  * Fix liblockfile version skew. (closes: #43803 #45123)
889 +
890 + -- Rob Browning <rlb@cs.utexas.edu>  Thu, 23 Sep 1999 13:27:00 -0500
891 +
892 +emacs20 (20.3-10) unstable; urgency=low
893 +
894 +  * Restructure debian/rules to build -el in binary-indep
895 +    (closes: #26761)
896 +  * Add emacsclient.1 manpage submitted ages ago. (closes: #22463)
897 +  * Handle duplicate DOC files (closes: #27668)
898 +  * Switch to gnu icon from old B&W drippy sink (closes: #33260)
899 +
900 + -- Rob Browning <rlb@cs.utexas.edu>  Tue,  6 Jul 1999 23:21:44 -0500
901 +
902 +emacs20 (20.3-9) unstable; urgency=low
903 +
904 +  * Added HURD patch from Marcus Brinkmann <brinkmd@debian.org>.
905 +    (closes: #38571).
906 +  * Backed out (global-set-key [delete] 'delete-char) modification 
907 +    (Ref: #26366).  This is too controversial (think cross-platform)
908 +    and needs to be resolved by the Debian Keyboard Czar in concert with
909 +    others.  For now we revert to the upstream behavior...
910 +  * Add /usr/share/info to info search path (closes: #38285).
911 +
912 + -- Rob Browning <rlb@cs.utexas.edu>  Fri, 11 Jun 1999 00:43:51 -0500
913 +
914 +emacs20 (20.3-8) unstable; urgency=low
915 +
916 +  * Added patch to emacs.c from Wolfram Gloger
917 +    <wmglo@dent.med.uni-muenchen.de> to fix exit segfaults.
918 +    (closes: #37745)
919 +  * Fixed suidregister inconsistency between postinst and postrm
920 +    (closes #36845)
921 +
922 + -- Rob Browning <rlb@cs.utexas.edu>  Sun, 30 May 1999 14:38:51 -0500
923 +
924 +emacs20 (20.3-7) unstable frozen; urgency=low
925 +
926 +  * Needed to go to frozen too: --print-architecture was an important
927 +    bug.  Should be OK since other fixes since -5 are minor and
928 +    important.
929 +  * Add conflict with w3-el (as per Ben Pfaff's <pfaffben@pilot.msu.edu>
930 +    request). (closes: #30413).
931 +  * Undo broken (and unneeded) "fix" for suidregister call in postrm.
932 +
933 + -- Rob Browning <rlb@cs.utexas.edu>  Thu, 28 Jan 1999 14:49:27 -0600
934 +
935 +emacs20 (20.3-6) unstable; urgency=low
936 +
937 +  * Use --print-installation-architecture rather than --print-architecture
938 +    (closes: #28177).
939 +  * Remove "#undef SIGIO" from m/arm.h as indicated by David Welton
940 +    <davidw@debian.org> (closes: #31279).
941 +  * Fix call to suidunregister (I didn't realize that it can't take
942 +    multiple file arguments) (closes: #21243 #26886).
943 +
944 + -- Rob Browning <rlb@cs.utexas.edu>  Wed, 27 Jan 1999 11:50:14 -0600
945 +
946 +emacs20 (20.3-5) frozen unstable; urgency=low
947 +
948 +  * Added NetWinder patches (closes: #28277).  (Thanks to David Welton)
949 +  * Rebuilt emacs20-el so the versions coincide.  In the future, people
950 +    need to be sure to build *both* binary packages when doing a
951 +    non-maintainer binary release.  (This fix justifies inclusion into
952 +    frozen).
953 +
954 + -- Rob Browning <rlb@cs.utexas.edu>  Sun,  1 Nov 1998 20:14:36 -0600
955 +
956 +emacs20 (20.3-4) unstable; urgency=low
957 +
958 +  * Fix gnus to default to /var/spool/mail rather than /usr/spool/mail for
959 +    mailbox locations (closes: #21364).
960 +
961 + -- Rob Browning <rlb@cs.utexas.edu>  Sat, 17 Oct 1998 14:28:45 -0500
962 +
963 +emacs20 (20.3-3) unstable; urgency=low
964 +
965 +  * Fixed leim.  All the input methods should work now (closes: #27398).
966 +  * Made (global-set-key [delete] 'delete-char) the default (closes: #26366).
967 +  * Fix ownership on emacs20-el files (closes: #27398).
968 +
969 + -- Rob Browning <rlb@cs.utexas.edu>  Tue, 13 Oct 1998 16:57:51 -0500
970 +
971 +emacs20 (20.3-2) unstable; urgency=low
972 +
973 +  * Added 20.2 patches for powerpc.  I omitted the patches to the
974 +    following files because it looks like equivalent fixes have already
975 +    made it into 20.3.  If anyone who understands that code better knows
976 +    differently, please let me know.  The rest of the patches applied
977 +    cleanly.
978 +      src/callproc.c.rej
979 +      src/dired.c.rej
980 +      src/fileio.c.rej
981 +      src/process.c.rej
982 +      src/regex.c.rej
983 +    I also modified src/m/powerpc.h to fix problems calling the ldscript.
984 +
985 + -- Rob Browning <rlb@cs.utexas.edu>  Mon,  7 Sep 1998 18:20:41 -0500
986 +
987 +emacs20 (20.3-1) unstable; urgency=low
988 +
989 +  * New upstream version.
990 +  * Modify all the debian/* stuff to automatically track version changes.
991 +  * Major changes to info page handling.  Emacs20 info is now integrated into
992 +    the main info page.  This was the best way I could think of to handle
993 +    cross references, etc. without major source changes.
994 +  * Locked emacs20-el and emacs20 package versions together with dependencies.
995 +  * Add info direntries for widget, info, and customize.
996 +  * Fix handling of /usr/local/share (which was badly broken).
997 +  * Turn stripping back on.  It appears to work.
998 +
999 + -- Rob Browning <rlb@cs.utexas.edu>  Tue,  1 Sep 1998 11:44:04 -0500
1000 +
1001 +emacs20 (20.2-9) unstable; urgency=low
1002 +
1003 +  * Fixes for leim problems (closes: #25536).  Thanks to
1004 +    Junio Hamano <junio@twinsun.com>
1005 +  * update-elc now made executable (closes: #25899).  Thanks to
1006 +    Junio Hamano <junio@twinsun.com>
1007 +  * Fix problem with package including dirs in /usr/local/share
1008 +    (closes: #23431).
1009 +
1010 + -- Rob Browning <rlb@cs.utexas.edu>  Sat, 22 Aug 1998 11:45:16 -0500
1011 +
1012 +emacs20 (20.2-8) unstable; urgency=low
1013 +
1014 +  * Regenerate .elc files for .el files we've modified.  I didn't realize
1015 +    that some of the .elc files were in the upstream tar file.  Hope this
1016 +    doesn't break anything.  We haven't been using our sendmail and
1017 +    message modifications until now.  (closes: #21079).
1018 +  * Fix i386ism in debian scripts use "dpkg --print-architecture"
1019 +    instead. (closes: #20548).
1020 +  * Fixed reference in README.add-on-package-maintainers
1021 +    (closes: #23445)
1022 +  * Fix some alpha problems (closes: #21834).
1023 +  * Had to add Replaces: emacs20 to emacs20-el to fix problem with
1024 +    copyright files being in the wrong package (closes: #21531).
1025 +
1026 + -- Rob Browning <rlb@cs.utexas.edu>  Fri,  7 Aug 1998 20:39:59 -0500
1027 +
1028 +emacs20 (20.2-7) frozen unstable; urgency=low
1029 +
1030 +  * Changed emacs20-el from standard to optional.
1031 +  * Fixed broken postrm (release critical) (closes: #24236)
1032 +  * Don't strip emacs binary (strip is broken see binutils #23153).
1033 +  * Since we can't strip, don't compile or link with "-g".
1034 +
1035 + -- Rob Browning <rlb@cs.utexas.edu>  Thu, 16 Jul 1998 16:58:04 -0500
1036 +
1037 +emacs20 (20.2-6) frozen unstable; urgency=low
1038 +
1039 +  * Gack.  Fix reject due to changed .tar.gz file (./leim added to tar).
1040 +       
1041 + -- Rob Browning <rlb@cs.utexas.edu>  Wed,  8 Apr 1998 14:04:54 -0500
1042 +
1043 +emacs20 (20.2-5) frozen unstable; urgency=low
1044 +
1045 +  * Make sure to preserve timestamps on .el files in emacs20-el
1046 +    (closes: #20274)
1047 +  * Add leim support for alternate input methods.  May close several
1048 +    bugs.
1049 +       
1050 + -- Rob Browning <rlb@cs.utexas.edu>  Sun,  5 Apr 1998 10:38:20 -0500
1051 +
1052 +emacs20 (20.2-4) frozen unstable; urgency=low
1053 +
1054 +  * Added copright file to emacs20-el package (closes: #19300)
1055 +  * suidmanager doesn't understand symbolic perms
1056 +    (closes: #18448, #19213)
1057 +
1058 + -- Rob Browning <rlb@cs.utexas.edu>  Fri, 13 Mar 1998 13:01:07 -0600
1059 +
1060 +emacs20 (20.2-3) unstable; urgency=low
1061 +
1062 +  * Fixed problem with permissions on /usr/share/emacs/20.2/site-lisp/
1063 +    (closes: #18717)
1064 +
1065 + -- Rob Browning <rlb@cs.utexas.edu>  Mon,  2 Mar 1998 12:02:33 -0600
1066 +
1067 +emacs20 (20.2-2) unstable; urgency=low
1068 +
1069 +  * fixed bad menu line (closes: #18362).
1070 +
1071 + -- Rob Browning <rlb@cs.utexas.edu>  Thu, 19 Feb 1998 10:52:58 -0600
1072 +
1073 +emacs20 (20.2-2) unstable; urgency=low
1074 +
1075 +  * Explicit dependency on liblockfile0 until bug is fixed
1076 +    (closes #18186)
1077 +  * added lisp/site-lisp.el to fix info path problem (closes #18190)
1078 +
1079 + -- Rob Browning <rlb@cs.utexas.edu>  Sat, 14 Feb 1998 19:19:09 -0600
1080 +
1081 +emacs20 (20.2-1) unstable; urgency=low
1082 +
1083 +  * movemail no longer suid -- not needed.
1084 +  * start from scratch with emacs-20.2 source and old emacs-19.34 and
1085 +    xemacs patches.
1086 +
1087 + -- Rob Browning <rlb@cs.utexas.edu>  Tue, 16 Dec 1997 01:20:27 -0600
1088 +
1089 +Local Variables:
1090 +coding: utf-8
1091 +End:
1092 --- emacs-21.3.orig/debian/control.in
1093 +++ emacs-21.3/debian/control.in
1094 @@ -0,0 +1,64 @@
1095 +Source: emacs@MAJOR_VERSION@
1096 +Section: editors
1097 +Priority: optional
1098 +Maintainer: Rob Browning <rlb@defaultvalue.org>
1099 +Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libungif4-dev, libtiff4-dev, xaw3dg-dev, libpng3-dev, libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), dpatch (>= 1.23)
1100 +Standards-Version: 3.6.1 
1101 +
1102 +Package: emacs@MAJOR_VERSION@
1103 +Section: editors
1104 +Priority: optional
1105 +Architecture: any
1106 +Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
1107 +Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
1108 +Conflicts: emacs@MAJOR_VERSION@-nox, w3-el
1109 +Replaces: emacs@MAJOR_VERSION@-nox
1110 +Description: The GNU Emacs editor
1111 + GNU Emacs is the extensible self-documenting text editor.
1112 +
1113 +Package: emacs@MAJOR_VERSION@-nox
1114 +Section: editors
1115 +Priority: optional
1116 +Architecture: any
1117 +Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
1118 +Provides: emacs@MAJOR_VERSION@, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
1119 +Conflicts: emacs@MAJOR_VERSION@, w3-el
1120 +Replaces: emacs@MAJOR_VERSION@
1121 +Description: The GNU Emacs editor (without X support)
1122 + GNU Emacs is the extensible self-documenting text editor.
1123 + This package contains a version of Emacs compiled without support for X.
1124 +
1125 +Package: emacs@MAJOR_VERSION@-bin-common
1126 +Section: editors
1127 +Priority: optional
1128 +Architecture: any
1129 +Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version}), ${shlibs:Depends}
1130 +Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
1131 +Description: The GNU Emacs editor's shared, architecture dependent files
1132 + GNU Emacs is the extensible self-documenting text editor.
1133 + This package contains the architecture dependent infrastructure
1134 + that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
1135 +
1136 +Package: emacs@MAJOR_VERSION@-common
1137 +Section: editors
1138 +Priority: optional
1139 +Architecture: all
1140 +Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
1141 +Suggests: emacs@MAJOR_VERSION@-el
1142 +Conflicts: emacs@MAJOR_VERSION@-el (<< ${Source-Version}), w3-el
1143 +Replaces: emacs21 (<< 21.2-4)
1144 +Description: The GNU Emacs editor's shared, architecture independent infrastructure
1145 + GNU Emacs is the extensible self-documenting text editor.
1146 + This package contains the architecture independent infrastructure
1147 + that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
1148 +
1149 +Package: emacs@MAJOR_VERSION@-el
1150 +Section: editors
1151 +Priority: optional
1152 +Architecture: all
1153 +Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version})
1154 +Replaces: emacs@MAJOR_VERSION@ (<< 21.2-4)
1155 +Description: GNU Emacs LISP (.el) files
1156 + GNU Emacs is the extensible self-documenting text editor.
1157 + This package contains the elisp sources for the convenience of users,
1158 + saving space in the main package for small systems.
1159 --- emacs-21.3.orig/debian/emacs-common.postinst
1160 +++ emacs-21.3/debian/emacs-common.postinst
1161 @@ -0,0 +1,106 @@
1162 +#!/bin/sh -e
1163 +
1164 +MAJOR=@MAJOR_VERSION@
1165 +MINOR=@MINOR_VERSION@
1166 +FULL=@FULL_VERSION@
1167 +INFOFILES="@INFOFILES@"
1168 +
1169 +PRIORITY=24
1170 +
1171 +# Fix from Manoj so we don't clean up more than we should.
1172 +if [ -f /usr/share/info/gnus.gz ]; then
1173 +    CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms info mh-e reftex sc \
1174 +                     vip viper widget"
1175 +else
1176 +    CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms gnus info message \
1177 +                     mh-e reftex sc vip viper widget"
1178 +fi
1179 +
1180 +# We have to clean these up because the old package didn't.  The info
1181 +# files were being removed in the postinst, not the prerm, and so
1182 +# install-info wasn't doing anything because the files weren't there..
1183 +for file in ${CRUFT_INFOFILES}
1184 +do
1185 +  install-info --quiet --remove-exactly ${file} || true
1186 +done
1187 +
1188 +for file in ${INFOFILES}
1189 +do
1190 +  install-info --quiet --section Emacs Emacs \
1191 +    /usr/share/info/emacs-${MAJOR}/${file}.gz || true
1192 +done
1193 +
1194 +# Create the site-lisp dir for this flavor if we're allowed
1195 +
1196 +#### Begin Bug fix hack for old emacs20 package brain damage.
1197 +#
1198 +# We have to handle /usr/local/share and /usr/local/share/emacs here
1199 +# because emacs20 used to contain /usr/local/share :< .  Normally
1200 +# these dirs should have been handled exclusively by emacsen-common.
1201 +
1202 +parentdir=/usr/local
1203 +newdir=share
1204 +
1205 +if [ -d ${parentdir} ]
1206 +then
1207 +  if mkdir ${parentdir}/${newdir} 2>/dev/null
1208 +  then
1209 +    chown root:staff ${parentdir}/${newdir}
1210 +    chmod 2775 ${parentdir}/${newdir}
1211 +  fi
1212 +fi
1213 +
1214 +parentdir=/usr/local/share
1215 +newdir=emacs
1216 +
1217 +if [ -d ${parentdir} ]
1218 +then
1219 +  if mkdir ${parentdir}/${newdir} 2>/dev/null
1220 +  then
1221 +    chown root:staff ${parentdir}/${newdir}
1222 +    chmod 2775 ${parentdir}/${newdir}
1223 +  fi
1224 +fi
1225 +
1226 +parentdir=/usr/local/share/emacs
1227 +newdir=site-lisp
1228 +
1229 +if [ -d ${parentdir} ]
1230 +then
1231 +  if mkdir ${parentdir}/${newdir} 2>/dev/null
1232 +  then
1233 +    chown root:staff ${parentdir}/${newdir}
1234 +    chmod 2775 ${parentdir}/${newdir}
1235 +  fi
1236 +fi
1237 +
1238 +#### End Bug fix hack for old emacs20 package brain damage.
1239 +
1240 +
1241 +parentdir=/usr/local/share/emacs
1242 +newdir=${FULL}
1243 +
1244 +if [ -d ${parentdir} ]
1245 +then
1246 +  if mkdir ${parentdir}/${newdir} 2>/dev/null
1247 +  then
1248 +    chown root:staff ${parentdir}/${newdir}
1249 +    chmod 2775 ${parentdir}/${newdir}
1250 +  fi
1251 +fi
1252 +
1253 +parentdir=/usr/local/share/emacs/${FULL}
1254 +newdir=site-lisp
1255 +
1256 +if [ -d ${parentdir} ]
1257 +then
1258 +  if mkdir ${parentdir}/${newdir} 2>/dev/null
1259 +  then
1260 +    chown root:staff ${parentdir}/${newdir}
1261 +    chmod 2775 ${parentdir}/${newdir}
1262 +  fi
1263 +fi
1264 +
1265 +# emacsen-common/emacs-install used to be here.
1266 +
1267 +exit 0
1268 --- emacs-21.3.orig/debian/control
1269 +++ emacs-21.3/debian/control
1270 @@ -0,0 +1,64 @@
1271 +Source: emacs21
1272 +Section: editors
1273 +Priority: optional
1274 +Maintainer: Rob Browning <rlb@defaultvalue.org>
1275 +Build-Depends: mailx, libncurses5-dev, texinfo, liblockfile-dev, libungif4-dev, libtiff4-dev, xaw3dg-dev, libpng3-dev, libjpeg62-dev, autotools-dev, dpkg-dev (>> 1.10.0), dpatch (>= 1.23)
1276 +Standards-Version: 3.6.1 
1277 +
1278 +Package: emacs21
1279 +Section: editors
1280 +Priority: optional
1281 +Architecture: any
1282 +Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
1283 +Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
1284 +Conflicts: emacs21-nox, w3-el
1285 +Replaces: emacs21-nox
1286 +Description: The GNU Emacs editor
1287 + GNU Emacs is the extensible self-documenting text editor.
1288 +
1289 +Package: emacs21-nox
1290 +Section: editors
1291 +Priority: optional
1292 +Architecture: any
1293 +Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
1294 +Provides: emacs21, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
1295 +Conflicts: emacs21, w3-el
1296 +Replaces: emacs21
1297 +Description: The GNU Emacs editor (without X support)
1298 + GNU Emacs is the extensible self-documenting text editor.
1299 + This package contains a version of Emacs compiled without support for X.
1300 +
1301 +Package: emacs21-bin-common
1302 +Section: editors
1303 +Priority: optional
1304 +Architecture: any
1305 +Depends: emacs21-common (= ${Source-Version}), ${shlibs:Depends}
1306 +Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
1307 +Description: The GNU Emacs editor's shared, architecture dependent files
1308 + GNU Emacs is the extensible self-documenting text editor.
1309 + This package contains the architecture dependent infrastructure
1310 + that's shared by emacs21 and emacs21-nox.
1311 +
1312 +Package: emacs21-common
1313 +Section: editors
1314 +Priority: optional
1315 +Architecture: all
1316 +Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
1317 +Suggests: emacs21-el
1318 +Conflicts: emacs21-el (<< ${Source-Version}), w3-el
1319 +Replaces: emacs21 (<< 21.2-4)
1320 +Description: The GNU Emacs editor's shared, architecture independent infrastructure
1321 + GNU Emacs is the extensible self-documenting text editor.
1322 + This package contains the architecture independent infrastructure
1323 + that's shared by emacs21 and emacs21-nox.
1324 +
1325 +Package: emacs21-el
1326 +Section: editors
1327 +Priority: optional
1328 +Architecture: all
1329 +Depends: emacs21-common (= ${Source-Version})
1330 +Replaces: emacs21 (<< 21.2-4)
1331 +Description: GNU Emacs LISP (.el) files
1332 + GNU Emacs is the extensible self-documenting text editor.
1333 + This package contains the elisp sources for the convenience of users,
1334 + saving space in the main package for small systems.
1335 --- emacs-21.3.orig/debian/emacs-bin-common.postinst
1336 +++ emacs-21.3/debian/emacs-bin-common.postinst
1337 @@ -0,0 +1,30 @@
1338 +#!/bin/sh -e
1339 +
1340 +MAJOR=@MAJOR_VERSION@
1341 +MINOR=@MINOR_VERSION@
1342 +FULL=@FULL_VERSION@
1343 +INFOFILES="@INFOFILES@"
1344 +ALTERNATIVES="@ALTERNATIVES@"
1345 +
1346 +PRIORITY=24
1347 +
1348 +# update-alternatives on things that collide with xemacs, other editors
1349 +for i in ctags etags emacsclient
1350 +do
1351 +  update-alternatives \
1352 +    --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} ${PRIORITY} \
1353 +    --slave /usr/share/man/man1/$i.1.gz $i.1.gz \
1354 +            /usr/share/man/man1/$i.1emacs${MAJOR}.gz 
1355 +done
1356 +
1357 +for i in ${ALTERNATIVES}
1358 +do
1359 +  test $i = ctags && continue
1360 +  test $i = etags && continue
1361 +  test $i = emacs && continue
1362 +  test $i = emacsclient && continue
1363 +  update-alternatives --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} \
1364 +    ${PRIORITY}
1365 +done
1366 +
1367 +exit 0
1368 --- emacs-21.3.orig/debian/emacs-bin-common.prerm
1369 +++ emacs-21.3/debian/emacs-bin-common.prerm
1370 @@ -0,0 +1,25 @@
1371 +#!/bin/sh
1372 +
1373 +set -e
1374 +
1375 +MAJOR=@MAJOR_VERSION@
1376 +MINOR=@MINOR_VERSION@
1377 +FULL=@FULL_VERSION@
1378 +INFOFILES="@INFOFILES@"
1379 +ALTERNATIVES="@ALTERNATIVES@"
1380 +
1381 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
1382 +then
1383 +  rm -f /usr/doc/@PKG_NAME@
1384 +fi
1385 +
1386 +# update-alternatives on things that collide with xemacs, other editors
1387 +if [ "$1" != "upgrade" ]
1388 +then
1389 +  for i in `echo ${ALTERNATIVES} | grep -v emacs`
1390 +  do
1391 +    update-alternatives --remove $i /usr/bin/$i.emacs${MAJOR}
1392 +  done
1393 +fi
1394 +
1395 +exit 0
1396 --- emacs-21.3.orig/debian/emacsclient-plus
1397 +++ emacs-21.3/debian/emacsclient-plus
1398 @@ -0,0 +1,31 @@
1399 +#!/usr/bin/perl
1400 +
1401 +# If there is an Emacs server, runs emacsclient.
1402 +# Otherwise, launches Emacs.
1403 +# Only for systems with Berkeley sockets (like Debian GNU/Linux).
1404 +
1405 +$real_emacsclient = "/usr/bin/emacsclient";
1406 +$socket_prefix = "esrv";
1407 +$id = `id --user`;
1408 +chomp $id;
1409 +$socket_dir = "/tmp/";
1410 +$hostname = `hostname`;
1411 +chomp $hostname;
1412 +
1413 +if (-S "$socket_dir$socket_prefix$id-$hostname") {
1414 +    exec ("$real_emacsclient " . join (" ", @ARGV));            
1415 +    die "Cannot run $real_emacsclient: $!";
1416 +}
1417 +else {
1418 +    if ($ENV{'DISPLAY'}) {
1419 +        system "emacs &";
1420 +        # Wait the server (Emacs is slow)
1421 +        sleep 2;
1422 +        exec ("$real_emacsclient " . join (" ", @ARGV));                
1423 +        die "Cannot run $real_emacsclient: $!";
1424 +    }
1425 +    else {
1426 +        exec ("emacs " . join (" ", @ARGV));            
1427 +        die "Cannot run emacs: $!";
1428 +    }
1429 +}
1430 --- emacs-21.3.orig/debian/patches/00list
1431 +++ emacs-21.3/debian/patches/00list
1432 @@ -0,0 +1,19 @@
1433 +autoconf-updates
1434 +misc-unseparated
1435 +arch-hppa
1436 +arch-mipsel
1437 +arch-s390
1438 +browse-url
1439 +bzero-and-have-stdlib
1440 +detect-coding-iso2022
1441 +movemail-mailspool
1442 +version-mention-debian
1443 +hurd-libio-glibc
1444 +battery-acpi-support
1445 +scroll-margin
1446 +save-buffer
1447 +emacsclient-alternate-editor
1448 +fix-x-vs-no-x-diffs
1449 +fix-batch-mode-signal-handling
1450 +fix-insecure-permissions-on-restore
1451 +CAN-2005-0100
1452 --- emacs-21.3.orig/debian/patches/arch-hppa.dpatch
1453 +++ emacs-21.3/debian/patches/arch-hppa.dpatch
1454 @@ -0,0 +1,105 @@
1455 +#! /bin/sh -e
1456 +## 500-arch-hppa.dpatch by Rob Browning <rlb@defaultvalue.org>
1457 +##
1458 +## DP: ** Support for the hppa architecture has been added.
1459 +## DP: Status: appears to be incorporated upstream
1460 +
1461 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1462 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1463 +
1464 +if [ $# -ne 1 ]; then
1465 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1466 +    exit 1
1467 +fi
1468 +case "$1" in
1469 +       -patch) patch $patch_opts -p1 < $0;;
1470 +       -unpatch) patch $patch_opts -p1 -R < $0;;
1471 +       *)
1472 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1473 +               exit 1;;
1474 +esac
1475 +
1476 +exit 0
1477 +@DPATCH@
1478 +--- emacs21-21.2.orig/configure.in
1479 ++++ emacs21-21.2/configure.in
1480 +@@ -552,6 +552,9 @@
1481 +   hppa*-*-nextstep* )
1482 +     machine=hp800 opsys=nextstep
1483 +   ;;
1484 ++  hppa*-*-linux-gnu* )
1485 ++    machine=hp800 opsys=gnu-linux
1486 ++  ;;
1487
1488 +   ## Orion machines
1489 +   orion-orion-bsd* )
1490 +--- emacs21-21.2.orig/src/m/hp800.h
1491 ++++ emacs21-21.2/src/m/hp800.h
1492 +@@ -85,7 +85,7 @@
1493 + #define bcmp          memcmp
1494 + #endif
1495\f
1496 +-#ifdef __hpux
1497 ++#if defined(__hpux) || defined(__linux__)
1498 + /* Now define a symbol for the cpu type, if your compiler
1499 +    does not define it automatically:
1500 +    Ones defined so far include vax, m68000, ns16000, pyramid,
1501 +@@ -94,6 +94,15 @@
1502 + #     define hp9000s800
1503 + #endif
1504
1505 ++#ifdef __linux__
1506 ++/* Data type of load average, as read out of kmem.  */
1507 ++
1508 ++#define LOAD_AVE_TYPE long
1509 ++
1510 ++/* Convert that into an integer that is 100 for a load average of 1.0  */
1511 ++
1512 ++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
1513 ++#else
1514 + /* Data type of load average, as read out of kmem.  */
1515
1516 + #define LOAD_AVE_TYPE double
1517 +@@ -101,7 +110,7 @@
1518 + /* Convert that into an integer that is 100 for a load average of 1.0  */
1519
1520 + #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
1521 +-
1522 ++#endif
1523
1524 + /* Define CANNOT_DUMP on machines where unexec does not work.
1525 +    Then the function dump-emacs will not be defined
1526 +@@ -116,6 +125,7 @@
1527 +    Otherwise Emacs assumes that text space precedes data space,
1528 +    numerically.  */
1529
1530 ++#ifdef __hpux
1531 + #define VIRT_ADDR_VARIES
1532
1533 + /* Define C_ALLOCA if this machine does not support a true alloca
1534 +@@ -134,6 +144,9 @@
1535
1536 + #define DATA_START    0x40000000
1537 + #define TEXT_START    0x00000000
1538 ++#else
1539 ++#define HAVE_ALLOCA
1540 ++#endif
1541
1542 + #define STACK_DIRECTION 1 
1543
1544 +@@ -147,6 +160,7 @@
1545 + /* This machine requires completely different unexec code
1546 +    which lives in a separate file.  Specify the file name.  */
1547
1548 ++#ifdef __hpux
1549 + #define UNEXEC unexhp9k800.o
1550
1551 + #define LIBS_MACHINE
1552 +@@ -179,5 +193,5 @@
1553
1554 + #define index strchr
1555 + #define rindex strrchr
1556 +-
1557 +-#endif /* __hpux */
1558 ++#endif
1559 ++#endif
1560 --- emacs-21.3.orig/debian/patches/CAN-2005-0100.dpatch
1561 +++ emacs-21.3/debian/patches/CAN-2005-0100.dpatch
1562 @@ -0,0 +1,35 @@
1563 +#! /bin/sh -e
1564 +## CAN-2005-0100.dpatch by  <martin.pitt@ubuntu.com>
1565 +##
1566 +## All lines beginning with `## DP:' are a description of the patch.
1567 +## DP: Fix format string vulnerability in movemal (CAN-2005-0100).
1568 +
1569 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1570 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1571 +
1572 +if [ $# -ne 1 ]; then
1573 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1574 +    exit 1
1575 +fi
1576 +case "$1" in
1577 +       -patch) patch $patch_opts -p1 < $0;;
1578 +       -unpatch) patch $patch_opts -p1 -R < $0;;
1579 +       *)
1580 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1581 +               exit 1;;
1582 +esac
1583 +
1584 +exit 0
1585 +@DPATCH@
1586 +diff -urNad emacs-21.3/lib-src/movemail.c /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c
1587 +--- emacs-21.3/lib-src/movemail.c      2005-02-04 10:07:21.636219680 +0000
1588 ++++ /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c     2005-02-04 10:08:17.325885034 +0000
1589 +@@ -786,7 +786,7 @@
1590 +       mbx_delimit_begin (mbf);
1591 +       if (pop_retr (server, i, mbf) != OK)
1592 +       {
1593 +-        error (Errmsg, 0, 0);
1594 ++        error ("%s", Errmsg, 0);
1595 +         close (mbfi);
1596 +         return (1);
1597 +       }
1598 --- emacs-21.3.orig/debian/patches/misc-unseparated.dpatch
1599 +++ emacs-21.3/debian/patches/misc-unseparated.dpatch
1600 @@ -0,0 +1,248 @@
1601 +#! /bin/sh -e
1602 +## 400-misc-unseparated.dpatch by Rob Browning <rlb@defaultvalue.org>
1603 +##
1604 +## DP: ** Some documentation references to /usr/local/ have been changed to /usr.
1605 +## DP: 
1606 +## DP: ** Emacs runs debian-startup
1607 +## DP: Emacs runs debian-startup during the startup process unless
1608 +## DP: site-run-file is false.
1609 +## DP: 
1610 +## DP: ** The default for message-sendmail-f-is-evil has been changed to t.
1611 +## DP: This is correct for Debian systems where we know the MTA should be
1612 +## DP: trusted.
1613 +## DP: 
1614 +## DP: ** mail-from-style changed from 'angles to 'system-default by default.
1615 +## DP: 
1616 +## DP: ** debian-emacs-flavor is a global variable bound to 'emacs21.
1617 +## DP: Author: rlb
1618 +## DP: 
1619 +## DP: ** Info-default-directory-list includes /usr/share/info/emacs-MAJOR
1620 +## DP: Author: rlb
1621 +## DP: Info-default-directory-list was modified to reflect the install
1622 +## DP: location of the info files.  This location allows multiple emacsen to
1623 +## DP: coexist on the same Debian system.
1624 +## DP: 
1625 +## DP: ** The build process was modified to accommodate Debian packaging.
1626 +## DP: Author: rlb
1627 +## DP: Emacs has to be able to install into a directory that will
1628 +## DP: not be the eventual run directory without embedding the install
1629 +## DP: directory in any of the resulting files.
1630 +
1631 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1632 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1633 +
1634 +if [ $# -ne 1 ]; then
1635 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1636 +    exit 1
1637 +fi
1638 +case "$1" in
1639 +       -patch) patch $patch_opts -p1 < $0;;
1640 +       -unpatch) patch $patch_opts -p1 -R < $0;;
1641 +       *)
1642 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1643 +               exit 1;;
1644 +esac
1645 +
1646 +exit 0
1647 +@DPATCH@
1648 +diff -urNad /home/rlb/deb/emacs21/trunk/Makefile.in trunk/Makefile.in
1649 +--- /home/rlb/deb/emacs21/trunk/Makefile.in    2003-09-11 01:16:07.000000000 -0500
1650 ++++ trunk/Makefile.in  2003-09-11 01:16:53.000000000 -0500
1651 +@@ -474,11 +474,16 @@
1652 +         $(srcdir)/mkinstalldirs ${datadir}; \
1653 +         chmod a+r ${datadir};\
1654 +       fi
1655 ++      test "${debepkgdir}"
1656 +       $(srcdir)/mkinstalldirs ${COPYDESTS} ${infodir} ${man1dir} \
1657 +         ${bindir} ${docdir} ${libexecdir} \
1658 +         ${datadir}/emacs/site-lisp \
1659 +         ${datadir}/emacs/${version}/site-lisp \
1660 +-        `echo ${locallisppath} | sed 's/:/ /g'`
1661 ++        `echo ${debepkgdir}${locallisppath} | sed 's|:| ${debepkgdir}|g'`
1662 ++
1663 ++# debepkgdir (above) is set in debian/rules
1664 ++
1665 ++#       `echo debian/tmp-emacs${locallisppath} | sed 's/:/ debian\/tmp-emacs/g'`
1666
1667 + ### Delete all the installed files that the `install' target would
1668 + ### create (but not the noninstalled files such as `make all' would
1669 +diff -urNad /home/rlb/deb/emacs21/trunk/etc/NEWS trunk/etc/NEWS
1670 +--- /home/rlb/deb/emacs21/trunk/etc/NEWS       2003-09-11 01:16:07.000000000 -0500
1671 ++++ trunk/etc/NEWS     2003-09-11 01:16:53.000000000 -0500
1672 +@@ -6,6 +6,11 @@
1673 + For older news, see the file ONEWS
1674
1675\f
1676 ++* Debian specific changes to Emacs
1677 ++
1678 ++Please see /usr/share/doc/emacs21/README.Debian.gz.
1679 ++
1680 ++\f
1681 + * Installation changes in Emacs 21.3
1682
1683 + ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
1684 +diff -urNad /home/rlb/deb/emacs21/trunk/etc/emacs.1 trunk/etc/emacs.1
1685 +--- /home/rlb/deb/emacs21/trunk/etc/emacs.1    2003-09-11 01:16:07.000000000 -0500
1686 ++++ trunk/etc/emacs.1  2003-09-11 01:16:53.000000000 -0500
1687 +@@ -169,7 +169,7 @@
1688 + window in reverse video.
1689 + .TP
1690 + .B \-i
1691 +-Use the "kitchen sink" bitmap icon when iconifying the
1692 ++Use the Emacs icon when iconifying the
1693 + .I Emacs
1694 + window.
1695 + .TP
1696 +@@ -221,7 +221,7 @@
1697 + .IR X (1)
1698 + for more information.
1699 + The width and height are specified in characters; the default is 80 by
1700 +-24.
1701 ++40.
1702 + .PP
1703 + .TP 8
1704 + .BI \-fg " color"
1705 +@@ -411,29 +411,29 @@
1706 + manual is also included in the Emacs source distribution.
1707 + .PP
1708 + .SH FILES
1709 +-/usr/local/info - files for the Info documentation browser
1710 ++/usr/info - files for the Info documentation browser
1711 + (a subsystem of Emacs) to refer to.  Currently not much of Unix
1712 + is documented here, but the complete text of the Emacs reference
1713 + manual is included in a convenient tree structured form.
1714
1715 +-/usr/local/share/emacs/$VERSION/src - C source files and object files
1716 ++/usr/share/emacs/$VERSION/src - C source files and object files
1717
1718 +-/usr/local/share/emacs/$VERSION/lisp - Lisp source files and compiled files
1719 ++/usr/share/emacs/$VERSION/lisp - Lisp source files and compiled files
1720 + that define most editing commands.  Some are preloaded;
1721 + others are autoloaded from this directory when used.
1722 +   
1723 +-/usr/local/share/emacs/$VERSION/etc - various programs that are used with
1724 ++/usr/share/emacs/$VERSION/etc - various programs that are used with
1725 + GNU Emacs, and some files of information.
1726
1727 +-/usr/local/share/emacs/$VERSION/etc/DOC.* - contains the documentation
1728 ++/usr/share/emacs/$VERSION/etc/DOC.* - contains the documentation
1729 + strings for the Lisp primitives and preloaded Lisp functions
1730 + of GNU Emacs.  They are stored here to reduce the size of
1731 + Emacs proper.
1732
1733 +-/usr/local/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
1734 ++/usr/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
1735 + vs. other versions of Emacs.
1736 + .br
1737 +-/usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
1738 ++/usr/share/emacs/$VERSION/etc/SERVICE lists people offering
1739 + various services to assist users of GNU Emacs, including education,
1740 + troubleshooting, porting and customization.
1741 + .br
1742 +@@ -441,7 +441,7 @@
1743 + programs in the Emacs Lisp extension language, which has not yet been fully
1744 + documented.
1745
1746 +-/usr/local/com/emacs/lock - holds lock files that are made for all
1747 ++/usr/com/emacs/lock - holds lock files that are made for all
1748 + files being modified in Emacs, to prevent simultaneous modification
1749 + of one file by two users.
1750
1751 +@@ -468,7 +468,7 @@
1752 + Send requests to be added to mailing lists to the special list
1753 + info-gnu-emacs-request@prep.ai.mit.edu (or the corresponding UUCP
1754 + address).  For more information about Emacs mailing lists, see the
1755 +-file /usr/local/emacs/etc/MAILINGLISTS.  Bugs tend actually to be
1756 ++file /usr/emacs/etc/MAILINGLISTS.  Bugs tend actually to be
1757 + fixed if they can be isolated, so it is in your interest to report
1758 + them in such a way that they can be easily reproduced.
1759 + .PP
1760 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el trunk/lisp/gnus/message.el
1761 +--- /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el   2003-09-11 01:16:07.000000000 -0500
1762 ++++ trunk/lisp/gnus/message.el 2003-09-11 01:16:53.000000000 -0500
1763 +@@ -402,9 +402,14 @@
1764 +                (const use)
1765 +                (const ask)))
1766
1767 +-(defcustom message-sendmail-f-is-evil nil
1768 +-  "*Non-nil means don't add \"-f username\" to the sendmail command line.
1769 +-Doing so would be even more evil than leaving it out."
1770 ++;; message-sendmail-f-is-evil is nil here in the upstream source, but
1771 ++;; sendmail works right under Debian Linux, so we want t. [was
1772 ++;; orignally reported for emacs 19 as debian#7051]
1773 ++(defcustom message-sendmail-f-is-evil t
1774 ++  "*Non-nil means don't add \"-f username\" to the sendmail command
1775 ++line, because adding it would be more evil than leaving it out.  Under
1776 ++Debian/GNU/Linux, sendmail works right, so it should be safe for this
1777 ++to be set to true."
1778 +   :group 'message-sending
1779 +   :type 'boolean)
1780
1781 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el trunk/lisp/mail/sendmail.el
1782 +--- /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el  2003-09-11 01:16:07.000000000 -0500
1783 ++++ trunk/lisp/mail/sendmail.el        2003-09-11 01:16:53.000000000 -0500
1784 +@@ -43,7 +43,7 @@
1785 +   :group 'mail)
1786
1787 + ;;;###autoload
1788 +-(defcustom mail-from-style 'angles "\
1789 ++(defcustom mail-from-style 'system-default "\
1790 + *Specifies how \"From:\" fields look.
1791
1792 + If `nil', they contain just the return address like:
1793 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/site-init.el trunk/lisp/site-init.el
1794 +--- /home/rlb/deb/emacs21/trunk/lisp/site-init.el      1969-12-31 18:00:00.000000000 -0600
1795 ++++ trunk/lisp/site-init.el    2003-09-11 01:16:53.000000000 -0500
1796 +@@ -0,0 +1,3 @@
1797 ++(setq Info-default-directory-list
1798 ++      ;; the command line info doesn't seem to need this, but emacs does.
1799 ++      (append Info-default-directory-list '("/usr/share/info/emacs-21/")))
1800 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/startup.el trunk/lisp/startup.el
1801 +--- /home/rlb/deb/emacs21/trunk/lisp/startup.el        2003-09-11 01:16:07.000000000 -0500
1802 ++++ trunk/lisp/startup.el      2003-09-11 01:16:53.000000000 -0500
1803 +@@ -339,6 +339,10 @@
1804
1805 + (defvar normal-top-level-add-subdirs-inode-list nil)
1806
1807 ++(defconst debian-emacs-flavor 'emacs21
1808 ++  "A symbol representing the particular debian flavor of emacs running.
1809 ++Something like 'emacs20, 'xemacs20, etc.")
1810 ++
1811 + (defun normal-top-level-add-subdirs-to-load-path ()
1812 +   "Add all subdirectories of current directory to `load-path'.
1813 + More precisely, this uses only the subdirectories whose names
1814 +@@ -848,8 +852,18 @@
1815 +     ;; Run the site-start library if it exists.  The point of this file is
1816 +     ;; that it is run before .emacs.  There is no point in doing this after
1817 +     ;; .emacs; that is useless.
1818 +-    (if site-run-file 
1819 +-      (load site-run-file t t))
1820 ++    ;; (if site-run-file 
1821 ++    ;;     (load site-run-file t t))
1822 ++
1823 ++    ;; Debian version of site-start.
1824 ++    (if site-run-file
1825 ++        (progn
1826 ++          ;; Load all the debian package snippets.
1827 ++          ;; It's in here because we want -q to kill it too.
1828 ++          (if (load "debian-startup" t t nil)
1829 ++              (debian-startup debian-emacs-flavor))
1830 ++          ;; Now the normal site file...
1831 ++          (load site-run-file t t nil)))
1832
1833 +     ;; Sites should not disable this.  Only individuals should disable
1834 +     ;; the startup message.
1835 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el trunk/lisp/vc-hooks.el
1836 +--- /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el       2003-09-11 01:16:07.000000000 -0500
1837 ++++ trunk/lisp/vc-hooks.el     2003-09-11 01:16:53.000000000 -0500
1838 +@@ -54,8 +54,8 @@
1839 +   :group 'vc)
1840
1841 + (defcustom vc-path
1842 +-  (if (file-directory-p "/usr/sccs")
1843 +-      '("/usr/sccs")
1844 ++  (if (file-directory-p "/usr/lib/cssc")
1845 ++      '("/usr/lib/cssc")
1846 +     nil)
1847 +   "*List of extra directories to search for version control commands."
1848 +   :type '(repeat directory)
1849 --- emacs-21.3.orig/debian/patches/fix-insecure-permissions-on-restore.dpatch
1850 +++ emacs-21.3/debian/patches/fix-insecure-permissions-on-restore.dpatch
1851 @@ -0,0 +1,35 @@
1852 +#! /bin/sh -e
1853 +## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
1854 +##
1855 +## DP: ** (version) has been modified to indicate Debian modifications.
1856 +## DP: Author: rlb
1857 +
1858 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1859 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1860 +
1861 +if [ $# -ne 1 ]; then
1862 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1863 +    exit 1
1864 +fi
1865 +case "$1" in
1866 +       -patch) patch $patch_opts -p1 < $0;;
1867 +       -unpatch) patch $patch_opts -p1 -R < $0;;
1868 +       *)
1869 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1870 +               exit 1;;
1871 +esac
1872 +
1873 +exit 0
1874 +@DPATCH@
1875 +diff -Narud emacs-21.3.orig/src/fileio.c emacs-21.3/src/fileio.c
1876 +--- emacs-21.3.orig/src/fileio.c       2003-02-04 11:52:40.000000000 +0100
1877 ++++ emacs-21.3/src/fileio.c    2004-10-10 07:14:11.891375352 +0200
1878 +@@ -5438,6 +5438,8 @@
1879 +       && stat (XSTRING (current_buffer->filename)->data, &st) >= 0)
1880 +     /* But make sure we can overwrite it later!  */
1881 +     auto_save_mode_bits = st.st_mode | 0600;
1882 ++  else if (! NILP (current_buffer->filename))
1883 ++    auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) | 0600;
1884 +   else
1885 +     auto_save_mode_bits = 0666;
1886
1887 --- emacs-21.3.orig/debian/patches/fix-batch-mode-signal-handling.dpatch
1888 +++ emacs-21.3/debian/patches/fix-batch-mode-signal-handling.dpatch
1889 @@ -0,0 +1,57 @@
1890 +#! /bin/sh -e
1891 +## fix-batch-mode-signal-handling.dpatch by  <rlb@defaultvalue.org>
1892 +##
1893 +## DP: ** A problem with emacs non-interactive signal handling has been fixed.
1894 +## DP: An upstream patch from 2003-06-21 was backported to fix Bug#253887.
1895 +## DP: Under certain conditions running "emacs --batch ... < /dev/null" would
1896 +## DP: trigger a process exit via SIGIO or SIGHUP.  This has been fixed.
1897 +## DP: Status: patch backported from upstream.
1898 +
1899 +if [ $# -lt 1 ]; then
1900 +    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
1901 +    exit 1
1902 +fi
1903 +
1904 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1905 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
1906 +
1907 +case "$1" in
1908 +    -patch) patch -p1 ${patch_opts} < $0;;
1909 +    -unpatch) patch -R -p1 ${patch_opts} < $0;;
1910 +    *)
1911 +        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
1912 +        exit 1;;
1913 +esac
1914 +
1915 +exit 0
1916 +
1917 +@DPATCH@
1918 +diff -urNad /home/rlb/deb/emacs/trunk-21/src/keyboard.c trunk-21/src/keyboard.c
1919 +--- /home/rlb/deb/emacs/trunk-21/src/keyboard.c        2003-09-09 17:26:14.000000000 -0500
1920 ++++ trunk-21/src/keyboard.c    2004-07-18 17:10:35.000000000 -0500
1921 +@@ -6186,7 +6186,12 @@
1922 +       /* ??? Is it really right to send the signal just to this process
1923 +          rather than to the whole process group?
1924 +          Perhaps on systems with FIONREAD Emacs is alone in its group.  */
1925 +-      kill (getpid (), SIGHUP);
1926 ++        {
1927 ++          if (! noninteractive)
1928 ++            kill (getpid (), SIGHUP);
1929 ++          else
1930 ++            n_to_read = 0;
1931 ++        }
1932 +       if (n_to_read == 0)
1933 +       return 0;
1934 +       if (n_to_read > sizeof cbuf)
1935 +diff -urNad /home/rlb/deb/emacs/trunk-21/src/process.c trunk-21/src/process.c
1936 +--- /home/rlb/deb/emacs/trunk-21/src/process.c 2003-09-09 17:28:35.000000000 -0500
1937 ++++ trunk-21/src/process.c     2004-07-18 17:11:21.000000000 -0500
1938 +@@ -2734,7 +2734,7 @@
1939 +        but select says there is input.  */
1940
1941 +       if (XINT (read_kbd) && interrupt_input
1942 +-        && keyboard_bit_set (&Available))
1943 ++        && keyboard_bit_set (&Available) && ! noninteractive)
1944 +       kill (getpid (), SIGIO);
1945 + #endif
1946
1947 --- emacs-21.3.orig/debian/patches/browse-url.dpatch
1948 +++ emacs-21.3/debian/patches/browse-url.dpatch
1949 @@ -0,0 +1,312 @@
1950 +#! /bin/sh -e
1951 +## 500-browse-url.dpatch by Rob Browning <rlb@defaultvalue.org>
1952 +##
1953 +## DP: ** Added new browse-url.el code.
1954 +## DP: Fixes support for mozilla, adds support for galeon, and defaults to
1955 +## DP: free browsers when available, rather than just trying netscape.
1956 +
1957 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
1958 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
1959 +
1960 +if [ $# -ne 1 ]; then
1961 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1962 +    exit 1
1963 +fi
1964 +case "$1" in
1965 +       -patch) patch $patch_opts -p1 < $0;;
1966 +       -unpatch) patch $patch_opts -p1 -R < $0;;
1967 +       *)
1968 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
1969 +               exit 1;;
1970 +esac
1971 +
1972 +exit 0
1973 +@DPATCH@
1974 +--- emacs21-21.2.orig/lisp/net/browse-url.el
1975 ++++ emacs21-21.2/lisp/net/browse-url.el
1976 +@@ -4,7 +4,7 @@
1977 + ;;   Free Software Foundation, Inc.
1978
1979 + ;; Author: Denis Howe <dbh@doc.ic.ac.uk>
1980 +-;; Maintainer: Dave Love <fx@gnu.org>
1981 ++;; Maintainer: FSF
1982 + ;; Created: 03 Apr 1995
1983 + ;; Keywords: hypertext, hypermedia, mouse
1984
1985 +@@ -66,14 +66,6 @@
1986 + ;; control but which window DO you want to control and how do you
1987 + ;; discover its id?
1988
1989 +-;; If using XMosaic before version 2.5, check the definition of
1990 +-;; browse-url-usr1-signal below.
1991 +-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/remote-control.html>
1992 +-
1993 +-;; XMosaic version 2.5 introduced Common Client Interface allowing you
1994 +-;; to control mosaic through Unix sockets.
1995 +-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/CCI/cci-spec.html>
1996 +-
1997 + ;; William M. Perry's excellent "w3" WWW browser for
1998 + ;; Emacs <URL:ftp://cs.indiana.edu/pub/elisp/w3/>
1999 + ;; has a function w3-follow-url-at-point, but that
2000 +@@ -90,10 +82,6 @@
2001 + ;; Python see <url:http://www.python.org/>.  Grail support in
2002 + ;; browse-url.el written by Barry Warsaw <bwarsaw@python.org>.
2003
2004 +-;; MMM is a semi-free WWW browser implemented in Objective Caml, an
2005 +-;; interesting impure functional programming language.  See
2006 +-;; <URL:http://pauillac.inria.fr/%7Erouaix/mmm/>.
2007 +-
2008 + ;; Lynx is now distributed by the FSF.  See also
2009 + ;; <URL:http://lynx.browser.org/>.
2010
2011 +@@ -226,8 +214,10 @@
2012 + (eval-when-compile (require 'thingatpt)
2013 +                    (require 'term)
2014 +                  (require 'dired)
2015 ++                   (require 'executable)
2016 +                  (require 'w3-auto nil t))
2017
2018 ++
2019 + (defgroup browse-url nil
2020 +   "Use a web browser to look at a URL."
2021 +   :prefix "browse-url-"
2022 +@@ -238,7 +228,8 @@
2023 + (defcustom browse-url-browser-function
2024 +   (if (memq system-type '(windows-nt ms-dos))
2025 +       'browse-url-default-windows-browser
2026 +-    'browse-url-netscape)
2027 ++    'browse-url-default-browser)
2028 ++
2029 +   "*Function to display the current buffer in a WWW browser.
2030 + This is used by the `browse-url-at-point', `browse-url-at-mouse', and
2031 + `browse-url-of-file' commands.
2032 +@@ -252,6 +243,8 @@
2033 +         (function-item :tag "Emacs W3" :value  browse-url-w3)
2034 +         (function-item :tag "W3 in another Emacs via `gnudoit'"
2035 +                        :value  browse-url-w3-gnudoit)
2036 ++        (function-item :tag "Mozilla" :value  browse-url-mozilla)
2037 ++        (function-item :tag "Galeon" :value  browse-url-galeon)
2038 +         (function-item :tag "Netscape" :value  browse-url-netscape)
2039 +         (function-item :tag "Mosaic" :value  browse-url-mosaic)
2040 +         (function-item :tag "Mosaic using CCI" :value  browse-url-cci)
2041 +@@ -269,6 +262,8 @@
2042 +                        :value browse-url-default-windows-browser)
2043 +         (function-item :tag "GNOME invoking Mozilla"
2044 +                        :value browse-url-gnome-moz)
2045 ++        (function-item :tag "Default browser"
2046 ++                       :value browse-url-default-browser)
2047 +         (function :tag "Your own function")
2048 +         (alist :tag "Regexp/function association list"
2049 +                :key-type regexp :value-type function))
2050 +@@ -300,6 +295,47 @@
2051 +   :group 'browse-url)
2052
2053 + ;;;###autoload
2054 ++(defcustom browse-url-browser-display nil
2055 ++  "*The X display for running the browser, if not same as Emacs'."
2056 ++  :type '(choice string (const :tag "Default" nil))
2057 ++  :group 'browse-url)
2058 ++
2059 ++(defcustom browse-url-mozilla-program "mozilla"
2060 ++  "The name by which to invoke Mozilla."
2061 ++  :type 'string
2062 ++  :group 'browse-url)
2063 ++
2064 ++(defcustom browse-url-mozilla-arguments nil
2065 ++  "A list of strings to pass to Mozilla as arguments."
2066 ++  :type '(repeat (string :tag "Argument"))
2067 ++  :group 'browse-url)
2068 ++
2069 ++(defcustom browse-url-mozilla-startup-arguments browse-url-mozilla-arguments
2070 ++  "A list of strings to pass to Mozilla when it starts up.
2071 ++Defaults to the value of `browse-url-mozilla-arguments' at the time
2072 ++`browse-url' is loaded."
2073 ++  :type '(repeat (string :tag "Argument"))
2074 ++  :group 'browse-url)
2075 ++
2076 ++;;;###autoload
2077 ++(defcustom browse-url-galeon-program "galeon"
2078 ++  "The name by which to invoke Galeon."
2079 ++  :type 'string
2080 ++  :group 'browse-url)
2081 ++
2082 ++(defcustom browse-url-galeon-arguments nil
2083 ++  "A list of strings to pass to Galeon as arguments."
2084 ++  :type '(repeat (string :tag "Argument"))
2085 ++  :group 'browse-url)
2086 ++
2087 ++(defcustom browse-url-galeon-startup-arguments browse-url-galeon-arguments
2088 ++  "A list of strings to pass to Galeon when it starts up.
2089 ++Defaults to the value of `browse-url-galeon-arguments' at the time
2090 ++`browse-url' is loaded."
2091 ++  :type '(repeat (string :tag "Argument"))
2092 ++  :group 'browse-url)
2093 ++
2094 ++;;;###autoload
2095 + (defcustom browse-url-new-window-flag nil
2096 +   "*If non-nil, always open a new browser window with appropriate browsers.
2097 + Passing an interactive argument to \\[browse-url], or specific browser
2098 +@@ -308,12 +344,6 @@
2099 +   :type 'boolean
2100 +   :group 'browse-url)
2101
2102 +-;;;###autoload
2103 +-(defcustom browse-url-netscape-display nil
2104 +-  "*The X display for running Netscape, if not same as Emacs'."
2105 +-  :type '(choice string (const :tag "Default" nil))
2106 +-  :group 'browse-url)
2107 +-
2108 + (defcustom browse-url-mosaic-program "xmosaic"
2109 +   "The name by which to invoke Mosaic (or mMosaic)."
2110 +   :type 'string
2111 +@@ -681,11 +711,11 @@
2112 + ;; --- Netscape ---
2113
2114 + (defun browse-url-process-environment ()
2115 +-  "Set DISPLAY in the environment to the X display Netscape is running on.
2116 +-This is either the value of variable `browse-url-netscape-display' if
2117 ++  "Set DISPLAY in the environment to the X display the browser will use.
2118 ++This is either the value of variable `browse-url-browser-display' if
2119 + non-nil, or the same display as Emacs if different from the current
2120 + environment, otherwise just use the current environment."
2121 +-  (let ((display (or browse-url-netscape-display (browse-url-emacs-display))))
2122 ++  (let ((display (or browse-url-browser-display (browse-url-emacs-display))))
2123 +     (if display
2124 +       (cons (concat "DISPLAY=" display) process-environment)
2125 +       process-environment)))
2126 +@@ -701,6 +731,35 @@
2127 +          display)))
2128
2129 + ;;;###autoload
2130 ++(defun browse-url-default-browser (url &rest args)
2131 ++  "Find a suitable browser and ask it to load URL.
2132 ++Default to the URL around or before point.
2133 ++
2134 ++When called interactively, if variable `browse-url-new-window-flag' is
2135 ++non-nil, load the document in a new window, if possible, otherwise use
2136 ++a random existing one.  A non-nil interactive prefix argument reverses
2137 ++the effect of `browse-url-new-window-flag'.
2138 ++
2139 ++When called non-interactively, optional second argument NEW-WINDOW is
2140 ++used instead of `browse-url-new-window-flag'.
2141 ++
2142 ++The order attempted is gnome-moz-remote, Mozilla, Galeon, Netscape,
2143 ++Mosaic, IXI Mosaic, Lynx in an xterm, MMM, Konqueror, and then W3."
2144 ++  (apply
2145 ++    (cond
2146 ++     ((executable-find "gnome-moz-remote") 'browse-url-gnome-moz)
2147 ++     ((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
2148 ++     ((executable-find browse-url-galeon-program) 'browse-url-galeon)
2149 ++     ((executable-find browse-url-kde-program) 'browse-url-kde)
2150 ++     ((executable-find browse-url-netscape-program) 'browse-url-netscape)
2151 ++     ((executable-find browse-url-mosaic-program) 'browse-url-mosaic)
2152 ++     ((executable-find "tellw3b") 'browse-url-iximosaic)
2153 ++     ((executable-find browse-url-xterm-program) 'browse-url-lynx-xterm)
2154 ++     ((executable-find "mmm") 'browse-url-mmm)
2155 ++     (t 'browse-url-w3))
2156 ++     url args))
2157 ++
2158 ++;;;###autoload
2159 + (defun browse-url-netscape (url &optional new-window)
2160 +   "Ask the Netscape WWW browser to load URL.
2161 + Default to the URL around or before point.  The strings in variable
2162 +@@ -767,6 +826,50 @@
2163 +            (append browse-url-netscape-arguments
2164 +                    (list "-remote" command)))))
2165
2166 ++;;;###autoload
2167 ++(defun browse-url-mozilla (url &optional new-window)
2168 ++  "Ask the Mozilla WWW browser to load URL.
2169 ++Default to the URL around or before point.  The strings in variable
2170 ++`browse-url-mozilla-arguments' are also passed to Mozilla.
2171 ++
2172 ++When called interactively, if variable `browse-url-new-window-flag' is
2173 ++non-nil, load the document in a new Mozilla window, otherwise use a
2174 ++random existing one.  A non-nil interactive prefix argument reverses
2175 ++the effect of `browse-url-new-window-flag'.
2176 ++
2177 ++When called non-interactively, optional second argument NEW-WINDOW is
2178 ++used instead of `browse-url-new-window-flag'."
2179 ++  (interactive (browse-url-interactive-arg "URL: "))
2180 ++  ;; URL encode any `confusing' characters in the URL.  This needs to
2181 ++  ;; include at least commas; presumably also close parens.
2182 ++  (while (string-match "[,)]" url)
2183 ++    (setq url (replace-match
2184 ++             (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
2185 ++  (let* ((process-environment (browse-url-process-environment))
2186 ++         (process (apply 'start-process
2187 ++                       (concat "mozilla " url) nil
2188 ++                       browse-url-mozilla-program
2189 ++                       (append
2190 ++                        browse-url-mozilla-arguments
2191 ++                        (list "-remote"
2192 ++                              (concat "openurl("
2193 ++                                      url
2194 ++                                      (if new-window ",new-window" "")
2195 ++                              ")"))))))
2196 ++    (set-process-sentinel process
2197 ++                        `(lambda (process change)
2198 ++                           (browse-url-mozilla-sentinel process ,url)))))
2199 ++
2200 ++(defun browse-url-mozilla-sentinel (process url)
2201 ++  "Handle a change to the process communicating with Mozilla."
2202 ++  (or (eq (process-exit-status process) 0)
2203 ++      (let* ((process-environment (browse-url-process-environment)))
2204 ++      ;; Mozilla is not running - start it
2205 ++      (message "Starting Mozilla...")
2206 ++      (apply 'start-process (concat "mozilla " url) nil
2207 ++             browse-url-mozilla-program
2208 ++             (append browse-url-mozilla-startup-arguments (list url))))))
2209 ++
2210 + ;; GNOME means of invoking either Mozilla or Netrape.
2211
2212 + (defcustom browse-url-gnome-moz-arguments '()
2213 +@@ -776,6 +880,48 @@
2214 +   :group 'browse-url)
2215
2216 + ;;;###autoload
2217 ++(defun browse-url-galeon (url &optional new-window)
2218 ++  "Ask the Galeon WWW browser to load URL.
2219 ++Default to the URL around or before point.  The strings in variable
2220 ++`browse-url-galeon-arguments' are also passed to Galeon.
2221 ++
2222 ++When called interactively, if variable `browse-url-new-window-flag' is
2223 ++non-nil, load the document in a new Galeon window, otherwise use a
2224 ++random existing one.  A non-nil interactive prefix argument reverses
2225 ++the effect of `browse-url-new-window-flag'.
2226 ++
2227 ++When called non-interactively, optional second argument NEW-WINDOW is
2228 ++used instead of `browse-url-new-window-flag'."
2229 ++  (interactive (browse-url-interactive-arg "URL: "))
2230 ++  ;; URL encode any `confusing' characters in the URL.  This needs to
2231 ++  ;; include at least commas; presumably also close parens.
2232 ++  (while (string-match "[,)]" url)
2233 ++    (setq url (replace-match
2234 ++             (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
2235 ++  (let* ((process-environment (browse-url-process-environment))
2236 ++         (process (apply 'start-process
2237 ++                       (concat "galeon " url) nil
2238 ++                       browse-url-galeon-program
2239 ++                       (append
2240 ++                        browse-url-galeon-arguments
2241 ++                          (if new-window '("-w" "--noraise")
2242 ++                           '("-x"))
2243 ++                          (list url)))))
2244 ++    (set-process-sentinel process
2245 ++                        `(lambda (process change)
2246 ++                           (browse-url-galeon-sentinel process ,url)))))
2247 ++
2248 ++(defun browse-url-galeon-sentinel (process url)
2249 ++  "Handle a change to the process communicating with Galeon."
2250 ++  (or (eq (process-exit-status process) 0)
2251 ++      (let* ((process-environment (browse-url-process-environment)))
2252 ++      ;; Galeon is not running - start it
2253 ++      (message "Starting Galeon...")
2254 ++      (apply 'start-process (concat "galeon " url) nil
2255 ++             browse-url-galeon-program
2256 ++             (append browse-url-galeon-startup-arguments (list url))))))
2257 ++
2258 ++;;;###autoload
2259 + (defun browse-url-gnome-moz (url &optional new-window)
2260 +   "Ask Mozilla/Netscape to load URL via the GNOME program `gnome-moz-remote'.
2261 + Default to the URL around or before point.  The strings in variable
2262 --- emacs-21.3.orig/debian/patches/battery-acpi-support.dpatch
2263 +++ emacs-21.3/debian/patches/battery-acpi-support.dpatch
2264 @@ -0,0 +1,187 @@
2265 +#!/bin/sh -e
2266 +## battery-acpi-support.dpatch by Jerome Marant <jerome@debian.org>
2267 +##
2268 +## DP: ** Support for ACPI in battery.el has be added
2269 +## DP: Status: appears to be incorporated upstream
2270 +## DP: Provided by: Mario Lang <mlang@debian.org>
2271 +## DP: Date: Fri, 26 Sep 2003 15:30:43 +0200
2272 +
2273 +if [ $# -ne 1 ]; then
2274 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2275 +    exit 1
2276 +fi
2277 +
2278 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2279 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2280 +
2281 +case "$1" in
2282 +       -patch) patch $patch_opts -p1 < $0;;
2283 +       -unpatch) patch $patch_opts -p1 -R < $0;;
2284 +        *)
2285 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2286 +                exit 1;;
2287 +esac
2288 +
2289 +exit 0
2290 +
2291 +@DPATCH@
2292 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el emacs/lisp/battery.el
2293 +--- /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el 2003-09-26 19:57:43.000000000 +0200
2294 ++++ emacs/lisp/battery.el      2003-09-28 17:19:22.000000000 +0200
2295 +@@ -42,7 +42,10 @@
2296 + (defcustom battery-status-function
2297 +   (cond ((and (eq system-type 'gnu/linux)
2298 +             (file-readable-p "/proc/apm"))
2299 +-       'battery-linux-proc-apm))
2300 ++       'battery-linux-proc-apm)
2301 ++      ((and (eq system-type 'gnu/linux)
2302 ++            (file-directory-p "/proc/acpi/battery"))
2303 ++       'battery-linux-proc-acpi))
2304 +   "*Function for getting battery status information.
2305 + The function has to return an alist of conversion definitions.
2306 + Its cons cells are of the form
2307 +@@ -56,7 +59,9 @@
2308
2309 + (defcustom battery-echo-area-format
2310 +   (cond ((eq battery-status-function 'battery-linux-proc-apm)
2311 +-       "Power %L, battery %B (%p%% load, remaining time %t)"))
2312 ++       "Power %L, battery %B (%p%% load, remaining time %t)")
2313 ++      ((eq battery-status-function 'battery-linux-proc-acpi)
2314 ++       "Power %L, battery %B at %r (%p%% load, remaining time %t)"))
2315 +   "*Control string formatting the string to display in the echo area.
2316 + Ordinary characters in the control string are printed as-is, while
2317 + conversion specifications introduced by a `%' character in the control
2318 +@@ -70,7 +75,9 @@
2319
2320 + (defcustom battery-mode-line-format
2321 +   (cond ((eq battery-status-function 'battery-linux-proc-apm)
2322 +-       " [%b%p%%]"))
2323 ++       " [%b%p%%]")
2324 ++      ((eq battery-status-function 'battery-linux-proc-acpi)
2325 ++       " [%b%p%%,%d°C]"))
2326 +   "*Control string formatting the string to display in the mode line.
2327 + Ordinary characters in the control string are printed as-is, while
2328 + conversion specifications introduced by a `%' character in the control
2329 +@@ -217,6 +224,122 @@
2330 +         (cons ?h (or (and hours (number-to-string hours)) "N/A"))
2331 +         (cons ?t (or remaining-time "N/A")))))
2332
2333 ++
2334 ++;;; `/proc/acpi/' interface for Linux.
2335 ++
2336 ++(defun battery-linux-proc-acpi ()
2337 ++  "Get ACPI status information from Linux kernel.
2338 ++This function works only with the new `/proc/acpi/' format introduced
2339 ++in Linux version 2.4.20 and 2.6.0.
2340 ++
2341 ++The following %-sequences are provided:
2342 ++%c Current capacity (mAh)
2343 ++%B Battery status (verbose)
2344 ++%b Battery status, empty means high, `-' means low,
2345 ++   `!' means critical, and `+' means charging
2346 ++%d Temperature (in degrees Celsius)
2347 ++%L AC line status (verbose)
2348 ++%p battery load percentage
2349 ++%m Remaining time in minutes
2350 ++%h Remaining time in hours
2351 ++%t Remaining time in the form `h:min'"
2352 ++  (let (capacity design-capacity rate rate-type charging-state warn low
2353 ++               minutes hours)
2354 ++    ;; ACPI provides information about each battery present in the system in
2355 ++    ;; a separate subdirectory.  We are going to merge the available
2356 ++    ;; information together since displaying for a variable amount of
2357 ++    ;; batteries seems overkill for format-strings.
2358 ++    (mapc
2359 ++     (lambda (dir)
2360 ++       (with-temp-buffer
2361 ++       (battery-insert-file-contents (expand-file-name "state" dir))
2362 ++       (when (re-search-forward "present: +yes$" nil t)
2363 ++         (and (re-search-forward "charging state: +\\(.*\\)$" nil t)
2364 ++              (or (null charging-state) (string= charging-state
2365 ++                                                 "unknown"))
2366 ++              ;; On most multi-battery systems, most of the time only one
2367 ++              ;; battery is "charging"/"discharging", the others are
2368 ++              ;; "unknown".
2369 ++              (setq charging-state (match-string 1)))
2370 ++         (when (re-search-forward "present rate: +\\([0-9]+\\) \\(m[AW]\\)$"
2371 ++                                  nil t)
2372 ++           (setq rate (+ (or rate 0) (string-to-int (match-string 1)))
2373 ++                 rate-type (or (and rate-type
2374 ++                                    (if (string= rate-type (match-string 2))
2375 ++                                        rate-type
2376 ++                                      (error
2377 ++                                       "Inconsistent rate types (%s vs. %s)"
2378 ++                                       rate-type (match-string 2))))
2379 ++                               (match-string 2))))
2380 ++         (when (re-search-forward "remaining capacity: +\\([0-9]+\\) m[AW]h$"
2381 ++                                  nil t)
2382 ++           (setq capacity
2383 ++                 (+ (or capacity 0) (string-to-int (match-string 1))))))
2384 ++       (goto-char (point-max))
2385 ++       (battery-insert-file-contents (expand-file-name "info" dir))
2386 ++       (when (re-search-forward "present: +yes$" nil t)
2387 ++         (when (re-search-forward "design capacity: +\\([0-9]+\\) m[AW]h$"
2388 ++                                  nil t)
2389 ++           (setq design-capacity (+ (or design-capacity 0)
2390 ++                                    (string-to-int (match-string 1)))))
2391 ++         (when (re-search-forward "design capacity warning: +\\([0-9]+\\) m[AW]h$"
2392 ++                                  nil t)
2393 ++           (setq warn (+ (or warn 0) (string-to-int (match-string 1)))))
2394 ++         (when (re-search-forward "design capacity low: +\\([0-9]+\\) m[AW]h$"
2395 ++                                  nil t)
2396 ++           (setq low (+ (or low 0)
2397 ++                        (string-to-int (match-string 1))))))))
2398 ++     (directory-files "/proc/acpi/battery/" t "BAT"))
2399 ++    (and capacity rate
2400 ++       (setq minutes (if (zerop rate) 0
2401 ++                       (floor (* (/ (float (if (string= charging-state
2402 ++                                                        "charging")
2403 ++                                               (- design-capacity capacity)
2404 ++                                             capacity)) rate) 60)))
2405 ++             hours (/ minutes 60)))
2406 ++    (list (cons ?c (or (and capacity (number-to-string capacity)) "N/A"))
2407 ++        (cons ?L (or (when (file-exists-p "/proc/acpi/ac_adapter/AC/state")
2408 ++                       (with-temp-buffer
2409 ++                         (battery-insert-file-contents
2410 ++                          "/proc/acpi/ac_adapter/AC/state")
2411 ++                         (when (re-search-forward "state: +\\(.*\\)$" nil t)
2412 ++                           (match-string 1))))
2413 ++                     "N/A"))
2414 ++        (cons ?d (or (when (file-exists-p
2415 ++                            "/proc/acpi/thermal_zone/THRM/temperature")
2416 ++                       (with-temp-buffer
2417 ++                         (battery-insert-file-contents
2418 ++                          "/proc/acpi/thermal_zone/THRM/temperature")
2419 ++                         (when (re-search-forward
2420 ++                                "temperature: +\\([0-9]+\\) C$" nil t)
2421 ++                           (match-string 1))))
2422 ++                     (when (file-exists-p
2423 ++                            "/proc/acpi/thermal_zone/THM/temperature")
2424 ++                       (with-temp-buffer
2425 ++                         (battery-insert-file-contents
2426 ++                          "/proc/acpi/thermal_zone/THM/temperature")
2427 ++                         (when (re-search-forward
2428 ++                                "temperature: +\\([0-9]+\\) C$" nil t)
2429 ++                           (match-string 1))))
2430 ++                     "N/A"))
2431 ++        (cons ?r (or (and rate (concat (number-to-string rate) " "
2432 ++                                       rate-type)) "N/A"))
2433 ++        (cons ?B (or charging-state "N/A"))
2434 ++        (cons ?b (or (and (string= charging-state "charging") "+")
2435 ++                     (and low (< capacity low) "!")
2436 ++                     (and warn (< capacity warn) "-")
2437 ++                     ""))
2438 ++        (cons ?h (or (and hours (number-to-string hours)) "N/A"))
2439 ++        (cons ?m (or (and minutes (number-to-string minutes)) "N/A"))
2440 ++        (cons ?t (or (and minutes
2441 ++                          (format "%d:%02d" hours (- minutes (* 60 hours))))
2442 ++                     "N/A"))
2443 ++        (cons ?p (or (and design-capacity capacity
2444 ++                          (number-to-string
2445 ++                           (floor (/ capacity
2446 ++                                     (/ (float design-capacity) 100)))))
2447 ++                     "N/A")))))
2448 ++
2449\f
2450 + ;;; Private functions.
2451
2452 --- emacs-21.3.orig/debian/patches/arch-mipsel.dpatch
2453 +++ emacs-21.3/debian/patches/arch-mipsel.dpatch
2454 @@ -0,0 +1,50 @@
2455 +#! /bin/sh -e
2456 +## 500-arch-mipsel.dpatch by Rob Browning <rlb@defaultvalue.org>
2457 +##
2458 +## DP: ** Support for the mipsel architecture has been added.
2459 +## DP: Status: appears to be incorporated upstream
2460 +
2461 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2462 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2463 +
2464 +if [ $# -ne 1 ]; then
2465 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2466 +    exit 1
2467 +fi
2468 +case "$1" in
2469 +       -patch) patch $patch_opts -p1 < $0;;
2470 +       -unpatch) patch $patch_opts -p1 -R < $0;;
2471 +       *)
2472 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2473 +               exit 1;;
2474 +esac
2475 +
2476 +exit 0
2477 +@DPATCH@
2478 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
2479 +--- /home/rlb/deb/emacs21/trunk/configure.in   2003-09-11 01:12:30.000000000 -0500
2480 ++++ trunk/configure.in 2003-09-11 01:12:32.000000000 -0500
2481 +@@ -1051,6 +1051,11 @@
2482 +     machine=mips opsys=gnu-linux
2483 +   ;;
2484
2485 ++  ## Mipsel (little endian) Linux-based GNU system
2486 ++  mipsel-*-linux-gnu* )
2487 ++    machine=mipsel opsys=gnu-linux
2488 ++  ;;
2489 ++
2490 +   ## UXP/DS
2491 +   sparc-fujitsu-sysv4* )
2492 +     machine=sparc opsys=uxpds
2493 +diff -urNad /home/rlb/deb/emacs21/trunk/src/m/mipsel.h trunk/src/m/mipsel.h
2494 +--- /home/rlb/deb/emacs21/trunk/src/m/mipsel.h 1969-12-31 18:00:00.000000000 -0600
2495 ++++ trunk/src/m/mipsel.h       2003-09-11 01:12:32.000000000 -0500
2496 +@@ -0,0 +1,8 @@
2497 ++/* machine description file for Mipsel (mips little endian).  */
2498 ++
2499 ++#include "mips.h"
2500 ++
2501 ++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
2502 ++   is the most significant byte.  */
2503 ++
2504 ++#undef WORDS_BIG_ENDIAN
2505 --- emacs-21.3.orig/debian/patches/scroll-margin.dpatch
2506 +++ emacs-21.3/debian/patches/scroll-margin.dpatch
2507 @@ -0,0 +1,44 @@
2508 +#!/bin/sh -e
2509 +## scroll-margin.dpatch by Jerome Marant <jerome@debian.org>
2510 +##
2511 +## DP: ** Prevents Emacs to hang when a non-0 scroll-margin
2512 +## DP: has been set.    
2513 +## DP: Status: has been incorporated upstream
2514 +## DP: Date: Sat, 18 Oct 2003 14:53:26 +0200
2515 +
2516 +if [ $# -ne 1 ]; then
2517 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2518 +    exit 1
2519 +fi
2520 +
2521 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2522 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2523 +
2524 +case "$1" in
2525 +       -patch) patch $patch_opts -p1 < $0;;
2526 +       -unpatch) patch $patch_opts -p1 -R < $0;;
2527 +        *)
2528 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2529 +                exit 1;;
2530 +esac
2531 +
2532 +exit 0
2533 +
2534 +@DPATCH@
2535 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/src/window.c emacs21/src/window.c
2536 +--- /home/jerome/pkg/emacs21/svn/emacs21/src/window.c  2003-10-01 19:59:18.000000000 +0200
2537 ++++ emacs21/src/window.c       2003-10-18 12:21:17.000000000 +0200
2538 +@@ -4124,7 +4124,12 @@
2539 +            in the scroll margin at the top.  */
2540 +         move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
2541 +         while (it.current_y < this_scroll_margin)
2542 +-          move_it_by_lines (&it, 1, 1);
2543 ++          {
2544 ++            int prev = it.current_y;
2545 ++            move_it_by_lines (&it, 1, 1);
2546 ++            if (prev == it.current_y)
2547 ++              break;
2548 ++          }
2549 +         SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
2550 +       }
2551 +       else if (n < 0)
2552 --- emacs-21.3.orig/debian/patches/movemail-mailspool.dpatch
2553 +++ emacs-21.3/debian/patches/movemail-mailspool.dpatch
2554 @@ -0,0 +1,411 @@
2555 +#! /bin/sh -e
2556 +## 500-movemail-mailspool.dpatch by Rob Browning <rlb@defaultvalue.org>
2557 +##
2558 +## DP: ** The detection of the program "mail" has been enhanced.
2559 +## DP: Author: rlb
2560 +## DP: 
2561 +## DP: We have added CONF_MAIL_PROGRAM_NAME to configure.in and use it in
2562 +## DP: fakemail.c.  Either via this variable, or via a #define in an arch
2563 +## DP: specific file, we now insist that this var be defined, and abort
2564 +## DP: compilation otherwise.  We use #error, which is probably not
2565 +## DP: portable, so we need a better solution long term.  This fix
2566 +## DP: repairs a nasty bug where on sparc-linux-gnu at least,
2567 +## DP: MAIL_PROGRAM_NAME pointed to /bin/mail, which didn't exist, and
2568 +## DP: fakemail failed silently, losing mail.  In the long run, though,
2569 +## DP: fakemail should be fixed to find the mail program at runtime, and
2570 +## DP: do something smarter if/when detection fails.
2571 +## DP: 
2572 +## DP: ** The location of the mail spool has been centralized.
2573 +## DP: Author: rlb
2574 +## DP: 
2575 +## DP: [ This modification is currently only available in the Debian source,
2576 +## DP:   but the upstream authors and I are in the process of working out the
2577 +## DP:   appropriate upstream patch.
2578 +## DP: 
2579 +## DP:   Please do *NOT* use mail-spool-directory in any public code until
2580 +## DP:   and unless this variable makes it into the upstream source. ]
2581 +## DP: 
2582 +## DP: Determination of the location of the mail spool has now been
2583 +## DP: centralized.  There is a new lisp-level variable mail-spool-directory
2584 +## DP: that should always contain the location of the mail spool (normally a
2585 +## DP: directory like /usr/spool/mail).
2586 +## DP: 
2587 +## DP: There is a related configure option --with-mail-spool-directory that
2588 +## DP: allows you to override the default mail spool location detected, if
2589 +## DP: any, at configure time.  The proper setting for a particular
2590 +## DP: architecture may also be set in src/s/*.h with
2591 +## DP: SYSTEM_MAIL_SPOOL_DIRECTORY, but note that --with-mail-spool-directory
2592 +## DP: always takes precedence.
2593 +## DP: 
2594 +## DP: At the C level, the mail spool directory is available from
2595 +## DP: lib-src/mailspool.h which provides a MAIL_SPOOL_DIRECTORY definition.
2596 +## DP: 
2597 +## DP: nnmail, rmail, and movemail have all been modified to respect this new
2598 +## DP: arrangement.
2599 +## DP: 
2600 +## DP: ** Mailbox locking improved and brought into line with Debian policy.
2601 +## DP: Author: rlb
2602 +## DP: 
2603 +## DP: [ This modification is currently only available in the Debian source,
2604 +## DP:   but the upstream authors and I are in the process of working out the
2605 +## DP:   appropriate upstream patch. ]
2606 +## DP: 
2607 +## DP: Configure now looks for liblockfile before libmail (liblockfile is a
2608 +## DP: free software replacement for libmail).  Either library, if found, is
2609 +## DP: propagated to the movemail (lib-src) Makefile through the
2610 +## DP: MOVEMAIL_LOCK_LIBS variable.
2611 +## DP: 
2612 +## DP: Also MAIL_USE_FLOCK is disabled since it is wrong for a Debian system.
2613 +
2614 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2615 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2616 +
2617 +if [ $# -ne 1 ]; then
2618 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2619 +    exit 1
2620 +fi
2621 +case "$1" in
2622 +       -patch) patch $patch_opts -p1 < $0;;
2623 +       -unpatch) patch $patch_opts -p1 -R < $0;;
2624 +       *)
2625 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2626 +               exit 1;;
2627 +esac
2628 +
2629 +exit 0
2630 +@DPATCH@
2631 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
2632 +--- /home/rlb/deb/emacs21/trunk/configure.in   2003-09-11 01:15:10.000000000 -0500
2633 ++++ trunk/configure.in 2003-09-11 01:15:14.000000000 -0500
2634 +@@ -59,6 +59,9 @@
2635 + AC_ARG_WITH(hesiod,
2636 + [  --with-hesiod           support Hesiod to get the POP server host],
2637 + [AC_DEFINE(HESIOD)])
2638 ++AC_ARG_WITH(mail-spool-directory,
2639 ++[  --with-mail-spool-directory=DIR   system mail spool is DIR],
2640 ++[AC_DEFINE_UNQUOTED(USE_MAIL_SPOOL_DIRECTORY,"${withval}")])
2641 + dnl This should be the last --with option, because --with-x is
2642 + dnl added later on when we find the path of X, and it's best to
2643 + dnl keep them together visually.
2644 +@@ -1963,29 +1966,62 @@
2645 + # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
2646 + AC_CHECK_LIB(m, sqrt)
2647
2648 +-# Check for mail-locking functions in a "mail" library
2649 +-AC_CHECK_LIB(mail, maillock)
2650 +-dnl Debian, at least:
2651 +-dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)])
2652 +-AC_CHECK_LIB(lockfile, maillock)
2653 +-# If we have the shared liblockfile, assume we must use it for mail
2654 +-# locking (e.g. Debian).  If we couldn't link against liblockfile
2655 +-# (no liblockfile.a installed), ensure that we don't need to.
2656 +-if test "$ac_cv_lib_lockfile_maillock" = no; then
2657 +-  dnl This works for files generally, not just executables.
2658 +-  dnl Should we look elsewhere for it?  Maybe examine /etc/ld.so.conf?
2659 +-  AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no,
2660 +-                /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH)
2661 +-  if test $ac_cv_prog_liblockfile = yes; then
2662 +-    AC_MSG_ERROR([Shared liblockfile found but can't link against it.
2663 +-This probably means that movemail could lose mail.
2664 +-There may be a \`development' package to install containing liblockfile.])
2665 +-  else AC_DEFINE(LIBMAIL, -llockfile)
2666 +-  fi
2667 +-  else :
2668 ++# Check for mail-locking functions in a "mail" library Check for
2669 ++# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
2670 ++# for touchlock because we don't want to have to put the lock libs
2671 ++# into LIBS and AC_CHECK_FUNCS would require that.
2672 ++
2673 ++AC_CHECK_LIB(lockfile, maillock,
2674 ++  [ AC_DEFINE(HAVE_LIBMAIL)
2675 ++    MOVEMAIL_LOCK_LIBS="-llockfile"
2676 ++    AC_CHECK_LIB(lockfile, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
2677 ++    AC_CHECK_HEADERS(maillock.h)],
2678 ++    [ AC_CHECK_LIB(mail, maillock,
2679 ++           [ AC_DEFINE(HAVE_LIBMAIL)
2680 ++               MOVEMAIL_LOCK_LIBS="-lmail"
2681 ++               AC_CHECK_LIB(mail, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
2682 ++             AC_CHECK_FUNCS(touchlock)
2683 ++             AC_CHECK_HEADERS(maillock.h)])])
2684 ++
2685 ++
2686 ++# Tests borrowed (and slightly rearranged) from old paths.el
2687 ++# rmail-spool-directory tests.  They should be in the order most
2688 ++# likely to get the right answer.  You can always override them on the
2689 ++# system level in src/s/* and on a one-shot basis with
2690 ++# --with-mail-spool-directory.
2691 ++
2692 ++AC_MSG_CHECKING(for mail spool location)
2693 ++if test "${with_mail_spool+set}" = set; then
2694 ++  AC_MSG_RESULT(${with_mail_spool})
2695 ++elif test -d /var/mail/; then
2696 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/mail")
2697 ++  AC_MSG_RESULT("/var/mail")
2698 ++elif test -d /var/spool/mail/; then
2699 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/spool/mail")
2700 ++  AC_MSG_RESULT("/var/spool/mail")
2701 ++elif test -d /usr/mail/; then
2702 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/mail")
2703 ++  AC_MSG_RESULT("/usr/mail")
2704 ++elif test -d /usr/spool/mail/; then
2705 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/spool/mail")
2706 ++  AC_MSG_RESULT("/usr/spool/mail")
2707 ++else
2708 ++  AC_MSG_RESULT(not found)
2709 ++fi
2710 ++
2711 ++# Find the location of "mail".  This is critical for fakemail at
2712 ++# least.  before fakemail would silently fail if this was wrong, so
2713 ++# insist on finding it.
2714 ++AC_MSG_CHECKING(for mail binary)
2715 ++if test -x /bin/mail; then
2716 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/bin/mail")
2717 ++  AC_MSG_RESULT("/bin/mail")
2718 ++elif test -x /usr/bin/mail; then
2719 ++  AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/usr/bin/mail")
2720 ++  AC_MSG_RESULT("/usr/bin/mail")
2721 ++else
2722 ++  AC_MSG_ERROR(could not find mail binary)
2723 + fi
2724 +-AC_CHECK_FUNCS(touchlock)
2725 +-AC_CHECK_HEADERS(maillock.h)
2726
2727 + AC_CHECK_FUNCS(gethostname getdomainname dup2 \
2728 + rename closedir mkdir rmdir sysinfo \
2729 +@@ -2234,6 +2270,7 @@
2730 + AC_SUBST(machfile)
2731 + AC_SUBST(opsysfile)
2732 + AC_SUBST(GETLOADAVG_LIBS)
2733 ++AC_SUBST(MOVEMAIL_LOCK_LIBS)
2734
2735 + AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION,  "${canonical}")
2736 + AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}")
2737 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in trunk/lib-src/Makefile.in
2738 +--- /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in    2003-09-11 01:14:26.000000000 -0500
2739 ++++ trunk/lib-src/Makefile.in  2003-09-11 01:15:13.000000000 -0500
2740 +@@ -222,11 +222,10 @@
2741 + # endif
2742 + #endif
2743
2744 +-LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB)
2745 ++MOVEMAIL_LOCK_LIBS=@MOVEMAIL_LOCK_LIBS@
2746
2747 +-#ifdef HAVE_LIBMAIL
2748 +-LIBS_MAIL=-lmail
2749 +-#endif
2750 ++LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) \
2751 ++  $(HESIODLIB) $(MOVEMAIL_LOCK_LIBS)
2752
2753 + LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC
2754
2755 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c trunk/lib-src/fakemail.c
2756 +--- /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c     2003-09-11 01:14:26.000000000 -0500
2757 ++++ trunk/lib-src/fakemail.c   2003-09-11 01:15:13.000000000 -0500
2758 +@@ -126,7 +126,11 @@
2759 + #define INITIAL_LINE_SIZE 200
2760
2761 + #ifndef MAIL_PROGRAM_NAME
2762 +-#define MAIL_PROGRAM_NAME "/bin/mail"
2763 ++#ifdef CONF_MAIL_PROGRAM_NAME
2764 ++#define MAIL_PROGRAM_NAME CONF_MAIL_PROGRAM_NAME
2765 ++#else
2766 ++#error "MAIL_PROGRAM_NAME must be defined"
2767 ++#endif
2768 + #endif
2769
2770 + static char *my_name;
2771 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h trunk/lib-src/mailspool.h
2772 +--- /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h    1969-12-31 18:00:00.000000000 -0600
2773 ++++ trunk/lib-src/mailspool.h  2003-09-11 01:15:14.000000000 -0500
2774 +@@ -0,0 +1,46 @@
2775 ++/* mailspool.h -- record the location of the mail spool in MAIL_SPOOL_DIRECTORY
2776 ++   Copyright (C) 1986, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
2777 ++
2778 ++This file is part of GNU Emacs.
2779 ++
2780 ++GNU Emacs is free software; you can redistribute it and/or modify
2781 ++it under the terms of the GNU General Public License as published by
2782 ++the Free Software Foundation; either version 2, or (at your option)
2783 ++any later version.
2784 ++
2785 ++GNU Emacs is distributed in the hope that it will be useful,
2786 ++but WITHOUT ANY WARRANTY; without even the implied warranty of
2787 ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2788 ++GNU General Public License for more details.
2789 ++
2790 ++You should have received a copy of the GNU General Public License
2791 ++along with GNU Emacs; see the file COPYING.  If not, write to
2792 ++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2793 ++Boston, MA 02111-1307, USA.  */
2794 ++
2795 ++#ifndef _MAILSPOOL_H
2796 ++#define _MAILSPOOL_H 1
2797 ++
2798 ++#ifdef        __cplusplus
2799 ++extern "C" {
2800 ++#endif
2801 ++
2802 ++#define NO_SHORTNAMES   /* Tell config not to load remap.h */
2803 ++#include <../src/config.h>
2804 ++  
2805 ++/* Final determination of mail spool location. */
2806 ++#ifdef USE_MAIL_SPOOL_DIRECTORY
2807 ++#define MAIL_SPOOL_DIRECTORY USE_MAIL_SPOOL_DIRECTORY
2808 ++#elif defined(SYSTEM_MAIL_SPOOL_DIRECTORY)
2809 ++#define MAIL_SPOOL_DIRECTORY SYSTEM_MAIL_SPOOL_DIRECTORY
2810 ++#elif defined(MAILDIR)
2811 ++#define MAIL_SPOOL_DIRECTORY MAILDIR
2812 ++#elif defined(CONF_MAIL_SPOOL_DIRECTORY)
2813 ++#define MAIL_SPOOL_DIRECTORY CONF_MAIL_SPOOL_DIRECTORY
2814 ++#endif
2815 ++
2816 ++#ifdef        __cplusplus
2817 ++}
2818 ++#endif
2819 ++
2820 ++#endif /* mailspool.h */
2821 +diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/movemail.c trunk/lib-src/movemail.c
2822 +--- /home/rlb/deb/emacs21/trunk/lib-src/movemail.c     2003-09-11 01:14:26.000000000 -0500
2823 ++++ trunk/lib-src/movemail.c   2003-09-11 01:15:14.000000000 -0500
2824 +@@ -54,6 +54,8 @@
2825 +  *
2826 +  */
2827
2828 ++#include "mailspool.h"
2829 ++
2830 + #define NO_SHORTNAMES   /* Tell config not to load remap.h */
2831 + #include <config.h>
2832 + #include <sys/types.h>
2833 +@@ -129,15 +131,12 @@
2834 + #endif
2835
2836 + #if !defined (MAIL_USE_SYSTEM_LOCK) && !defined (MAIL_USE_MMDF) && \
2837 +-      defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H)
2838 ++     defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H) && \
2839 ++     defined (MAIL_SPOOL_DIRECTORY)
2840 + #include <maillock.h>
2841 +-/* We can't use maillock unless we know what directory system mail
2842 +-   files appear in. */
2843 +-#ifdef MAILDIR
2844 + #define MAIL_USE_MAILLOCK
2845 + static char *mail_spool_name ();
2846 + #endif
2847 +-#endif
2848
2849 + #ifndef errno
2850 + extern int errno;
2851 +@@ -575,7 +574,7 @@
2852
2853 +   fname++;
2854
2855 +-  if (stat (MAILDIR, &stat1) < 0)
2856 ++  if (stat (MAIL_SPOOL_DIRECTORY, &stat1) < 0)
2857 +     return NULL;
2858
2859 +   indir = (char *) xmalloc (fname - inname + 1);
2860 +diff -urNad /home/rlb/deb/emacs21/trunk/lisp/paths.el trunk/lisp/paths.el
2861 +--- /home/rlb/deb/emacs21/trunk/lisp/paths.el  2003-09-11 01:14:26.000000000 -0500
2862 ++++ trunk/lisp/paths.el        2003-09-11 01:15:13.000000000 -0500
2863 +@@ -140,24 +140,7 @@
2864 +   :group 'rmail
2865 +   :version "21.1")
2866
2867 +-(defconst rmail-spool-directory
2868 +-  (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
2869 +-       "/usr/spool/mail/")
2870 +-      ;; On The Bull DPX/2 /usr/spool/mail is used although 
2871 +-      ;; it is usg-unix-v.
2872 +-      ((string-match "^m68k-bull-sysv3" system-configuration)
2873 +-       "/usr/spool/mail/")
2874 +-      ;; SVR4 and recent BSD are said to use this.
2875 +-      ;; Rather than trying to know precisely which systems use it,
2876 +-      ;; let's assume this dir is never used for anything else.
2877 +-      ((file-exists-p "/var/mail")
2878 +-       "/var/mail/")
2879 +-      ;; Many GNU/Linux systems use this name.
2880 +-      ((file-exists-p "/var/spool/mail")
2881 +-       "/var/spool/mail/")
2882 +-      ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
2883 +-       "/usr/mail/")
2884 +-      (t "/usr/spool/mail/"))
2885 ++(defconst rmail-spool-directory mail-spool-directory
2886 +   "Name of directory used by system mailer for delivering new mail.
2887 + Its name should end with a slash.")
2888
2889 +diff -urNad /home/rlb/deb/emacs21/trunk/src/callproc.c trunk/src/callproc.c
2890 +--- /home/rlb/deb/emacs21/trunk/src/callproc.c 2003-09-11 01:14:26.000000000 -0500
2891 ++++ trunk/src/callproc.c       2003-09-11 01:15:13.000000000 -0500
2892 +@@ -25,6 +25,8 @@
2893 + #include <errno.h>
2894 + #include <stdio.h>
2895
2896 ++#include "../lib-src/mailspool.h"
2897 ++
2898 + #ifndef USE_CRT_DLL
2899 + extern int errno;
2900 + #endif
2901 +@@ -113,6 +115,8 @@
2902
2903 + Lisp_Object Vprocess_environment;
2904
2905 ++Lisp_Object Vmail_spool_directory;
2906 ++
2907 + #ifdef DOS_NT
2908 + Lisp_Object Qbuffer_file_type;
2909 + #endif /* DOS_NT */
2910 +@@ -1630,6 +1634,19 @@
2911 + The environment which Emacs inherits is placed in this variable\n\
2912 + when Emacs starts.");
2913
2914 ++  DEFVAR_LISP ("mail-spool-directory", &Vmail_spool_directory,
2915 ++    "Location of the system mail spool.\n\
2916 ++This is normally a directory like \"usr/spool/mail\".  This is\n\
2917 ++currently a Debian extension.  Please do NOT use this in public code\n\
2918 ++until/unless it makes it upstream.");
2919 ++#ifdef MAIL_SPOOL_DIRECTORY
2920 ++  Vmail_spool_directory =
2921 ++    Ffile_name_as_directory (build_string (MAIL_SPOOL_DIRECTORY));
2922 ++#else
2923 ++  Vmail_spool_directory = Qnil;
2924 ++#endif
2925 ++
2926 ++
2927 + #ifndef VMS
2928 +   defsubr (&Scall_process);
2929 +   defsubr (&Sgetenv_internal);
2930 +diff -urNad /home/rlb/deb/emacs21/trunk/src/config.in trunk/src/config.in
2931 +--- /home/rlb/deb/emacs21/trunk/src/config.in  2003-09-11 01:15:10.000000000 -0500
2932 ++++ trunk/src/config.in        2003-09-11 01:15:13.000000000 -0500
2933 +@@ -222,6 +222,13 @@
2934 + #undef HAVE_MAILLOCK_H
2935 + #undef HAVE_TOUCHLOCK
2936
2937 ++/* Mail spool information from the configure process.  See lib-src/mailspool.h */
2938 ++#undef USE_MAIL_SPOOL_DIRECTORY
2939 ++#undef CONF_MAIL_SPOOL_DIRECTORY
2940 ++
2941 ++/* Mail spool information from the configure process.  See lib-src/fakemail.c */
2942 ++#undef CONF_MAIL_PROGRAM_NAME
2943 ++
2944 + #undef HAVE_ALLOCA_H
2945
2946 + #undef HAVE_DEV_PTMX
2947 +diff -urNad /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h trunk/src/s/gnu-linux.h
2948 +--- /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h      2003-09-11 01:14:26.000000000 -0500
2949 ++++ trunk/src/s/gnu-linux.h    2003-09-11 01:15:13.000000000 -0500
2950 +@@ -130,7 +130,14 @@
2951 +    programs.  I assume that most people are using newer mailers that
2952 +    have heard of flock.  Change this if you need to. */
2953
2954 +-#define MAIL_USE_FLOCK
2955 ++/* On Debian/GNU/Linux systems, configure gets the right answers, and
2956 ++   that means *NOT* using flock.  Using flock is guaranteed to be the
2957 ++   wrong thing. See Debian Policy for details. */
2958 ++#ifdef DEBIAN
2959 ++#  undef MAIL_USE_FLOCK
2960 ++#else
2961 ++#  define MAIL_USE_FLOCK
2962 ++#endif
2963
2964 + /* Define CLASH_DETECTION if you want lock files to be written
2965 +    so that Emacs can tell instantly when you try to modify
2966 --- emacs-21.3.orig/debian/patches/emacsclient-alternate-editor.dpatch
2967 +++ emacs-21.3/debian/patches/emacsclient-alternate-editor.dpatch
2968 @@ -0,0 +1,49 @@
2969 +#!/bin/sh -e
2970 +## emacsclient-alternate-editor.dpatch by Jerome Marant <jerome@debian.org>
2971 +##
2972 +## DP: ** This patch allows emacsclient to take the ALTERNATE_EDITOR
2973 +## DP: environment variable properly into account when the command
2974 +## DP: is run without any parameter.
2975 +## DP: Status: has been applied upstream
2976 +## DP: Date: Sun, 25 Jan 2004 21:00:29 +0100
2977 +
2978 +if [ $# -ne 1 ]; then
2979 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2980 +    exit 1
2981 +fi
2982 +
2983 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
2984 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
2985 +
2986 +case "$1" in
2987 +       -patch) patch $patch_opts -p1 < $0;;
2988 +       -unpatch) patch $patch_opts -p1 -R < $0;;
2989 +        *)
2990 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
2991 +                exit 1;;
2992 +esac
2993 +
2994 +exit 0
2995 +
2996 +@DPATCH@
2997 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c emacs21/lib-src/emacsclient.c
2998 +--- /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c 2004-01-25 19:45:54.000000000 +0100
2999 ++++ emacs21/lib-src/emacsclient.c      2004-01-25 19:46:31.000000000 +0100
3000 +@@ -75,6 +75,8 @@
3001 +      int argc;
3002 +      char **argv;
3003 + {
3004 ++  alternate_editor = getenv ("ALTERNATE_EDITOR");
3005 ++
3006 +   while (1)
3007 +     {
3008 +       int opt = getopt_long (argc, argv,
3009 +@@ -82,8 +84,6 @@
3010
3011 +       if (opt == EOF)
3012 +       break;
3013 +-
3014 +-      alternate_editor = getenv ("ALTERNATE_EDITOR");
3015 +       
3016 +       switch (opt)
3017 +       {
3018 --- emacs-21.3.orig/debian/patches/arch-s390.dpatch
3019 +++ emacs-21.3/debian/patches/arch-s390.dpatch
3020 @@ -0,0 +1,164 @@
3021 +#! /bin/sh -e
3022 +## 500-arch-s390.dpatch by Rob Browning <rlb@defaultvalue.org>
3023 +##
3024 +## DP: ** Support for the s390 architecture has been added.
3025 +## DP: Status: appears to be incorporated upstream
3026 +## DP: Provided by: Jochen =?iso-8859-1?Q?R=F6hrig?= <jr@debian.s390.org>
3027 +## DP: Date: Tue, 31 Jul 2001 15:18:38 UTC.
3028 +
3029 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3030 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3031 +
3032 +if [ $# -ne 1 ]; then
3033 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3034 +    exit 1
3035 +fi
3036 +case "$1" in
3037 +       -patch) patch $patch_opts -p1 < $0;;
3038 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3039 +       *)
3040 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3041 +               exit 1;;
3042 +esac
3043 +
3044 +exit 0
3045 +@DPATCH@
3046 +diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
3047 +--- /home/rlb/deb/emacs21/trunk/configure.in   2003-09-11 01:04:22.000000000 -0500
3048 ++++ trunk/configure.in 2003-09-11 01:04:46.000000000 -0500
3049 +@@ -623,6 +623,10 @@
3050 +     machine=ibmrt-aix opsys=usg5-2-2
3051 +   ;;
3052
3053 ++  s390*-*-linux-gnu* )
3054 ++    machine=s390 opsys=gnu-linux
3055 ++  ;;
3056 ++
3057 +   ## Integrated Solutions `Optimum V'
3058 +   m68*-isi-bsd4.2* )
3059 +     machine=isi-ov opsys=bsd4-2
3060 +diff -urNad /home/rlb/deb/emacs21/trunk/src/m/s390.h trunk/src/m/s390.h
3061 +--- /home/rlb/deb/emacs21/trunk/src/m/s390.h   1969-12-31 18:00:00.000000000 -0600
3062 ++++ trunk/src/m/s390.h 2003-09-11 01:04:46.000000000 -0500
3063 +@@ -0,0 +1,121 @@
3064 ++/* machine description file template.
3065 ++   Copyright (C) 1985, 1986 Free Software Foundation, Inc.
3066 ++
3067 ++This file is part of GNU Emacs.
3068 ++
3069 ++GNU Emacs is free software; you can redistribute it and/or modify
3070 ++it under the terms of the GNU General Public License as published by
3071 ++the Free Software Foundation; either version 2, or (at your option)
3072 ++any later version.
3073 ++
3074 ++GNU Emacs is distributed in the hope that it will be useful,
3075 ++but WITHOUT ANY WARRANTY; without even the implied warranty of
3076 ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3077 ++GNU General Public License for more details.
3078 ++
3079 ++You should have received a copy of the GNU General Public License
3080 ++along with GNU Emacs; see the file COPYING.  If not, write to
3081 ++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3082 ++Boston, MA 02111-1307, USA.  */
3083 ++
3084 ++/* The following line tells the configuration script what sort of
3085 ++   operating system this machine is likely to run.
3086 ++   USUAL-OPSYS="<name of system .h file here, without the s- or .h>"  */
3087 ++
3088 ++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
3089 ++   is the most significant byte.  */
3090 ++
3091 ++#define WORDS_BIG_ENDIAN
3092 ++
3093 ++/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
3094 ++ * group of arguments and treat it as an array of the arguments.  */
3095 ++
3096 ++#define NO_ARG_ARRAY
3097 ++
3098 ++/* Define WORD_MACHINE if addresses and such have
3099 ++ * to be corrected before they can be used as byte counts.  */
3100 ++
3101 ++/* #define WORD_MACHINE */
3102 ++
3103 ++/* Now define a symbol for the cpu type, if your compiler
3104 ++   does not define it automatically:
3105 ++   Ones defined so far include vax, m68000, ns16000, pyramid,
3106 ++   orion, tahoe, APOLLO and many others */
3107 ++
3108 ++/* __s390__ defined already */
3109 ++
3110 ++/* Use type int rather than a union, to represent Lisp_Object */
3111 ++/* This is desirable for most machines.  */
3112 ++
3113 ++#define NO_UNION_TYPE
3114 ++
3115 ++/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
3116 ++   the 24-bit bit field into an int.  In other words, if bit fields
3117 ++   are always unsigned.
3118 ++
3119 ++   If you use NO_UNION_TYPE, this flag does not matter.  */
3120 ++
3121 ++#define EXPLICIT_SIGN_EXTEND
3122 ++
3123 ++/* Data type of load average, as read out of kmem.  */
3124 ++
3125 ++#define LOAD_AVE_TYPE long
3126 ++
3127 ++/* Convert that into an integer that is 100 for a load average of 1.0  */
3128 ++
3129 ++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
3130 ++
3131 ++/* Define CANNOT_DUMP on machines where unexec does not work.
3132 ++   Then the function dump-emacs will not be defined
3133 ++   and temacs will do (load "loadup") automatically unless told otherwise.  */
3134 ++
3135 ++/* #define CANNOT_DUMP */
3136 ++
3137 ++/* Define VIRT_ADDR_VARIES if the virtual addresses of
3138 ++   pure and impure space as loaded can vary, and even their
3139 ++   relative order cannot be relied on.
3140 ++
3141 ++   Otherwise Emacs assumes that text space precedes data space,
3142 ++   numerically.  */
3143 ++
3144 ++#define VIRT_ADDR_VARIES
3145 ++
3146 ++/* Define C_ALLOCA if this machine does not support a true alloca
3147 ++   and the one written in C should be used instead.
3148 ++   Define HAVE_ALLOCA to say that the system provides a properly
3149 ++   working alloca function and it should be used.
3150 ++   Define neither one if an assembler-language alloca
3151 ++   in the file alloca.s should be used.  */
3152 ++
3153 ++/* #define C_ALLOCA */
3154 ++#define HAVE_ALLOCA
3155 ++
3156 ++/* Define NO_REMAP if memory segmentation makes it not work well
3157 ++   to change the boundary between the text section and data section
3158 ++   when Emacs is dumped.  If you define this, the preloaded Lisp
3159 ++   code will not be sharable; but that's better than failing completely.  */
3160 ++
3161 ++/* #define NO_REMAP */
3162 ++
3163 ++/* Some really obscure 4.2-based systems (like Sequent DYNIX)
3164 ++ * do not support asynchronous I/O (using SIGIO) on sockets,
3165 ++ * even though it works fine on tty's.  If you have one of
3166 ++ * these systems, define the following, and then use it in
3167 ++ * config.h (or elsewhere) to decide when (not) to use SIGIO.
3168 ++ *
3169 ++ * You'd think this would go in an operating-system description file,
3170 ++ * but since it only occurs on some, but not all, BSD systems, the
3171 ++ * reasonable place to select for it is in the machine description
3172 ++ * file.
3173 ++ */
3174 ++
3175 ++/* #define NO_SOCK_SIGIO */
3176 ++
3177 ++/* After adding support for a new system, modify the large case
3178 ++   statement in the `configure' script to recognize reasonable
3179 ++   configuration names, and add a description of the system to
3180 ++   `etc/MACHINES'.
3181 ++
3182 ++   If you've just fixed a problem in an existing configuration file,
3183 ++   you should also check `etc/MACHINES' to make sure its descriptions
3184 ++   of known problems in that configuration should be updated.  */
3185 --- emacs-21.3.orig/debian/patches/bzero-and-have-stdlib.dpatch
3186 +++ emacs-21.3/debian/patches/bzero-and-have-stdlib.dpatch
3187 @@ -0,0 +1,83 @@
3188 +#! /bin/sh -e
3189 +## 500-bzero-and-have-stdlib.dpatch by Rob Browning <rlb@defaultvalue.org>
3190 +##
3191 +## DP: ** Emacs uses memset, memcmp, and mmove rather than deprecated functions.
3192 +## DP: Status: sent-upstream, pending (all but mem* fixes already fixed upstream)
3193 +## DP: 
3194 +## DP: #defines have been added to arrange for Emacs to use memset, memcmp,
3195 +## DP: and memmove instead of bzero, bcmp, and bcopy.
3196 +## DP: 
3197 +## DP: ** HAVE_STDLIB_H checks have been added in various places.
3198 +## DP: Author: rlb
3199 +## DP: Status: sent-upstream, pending
3200 +## DP: 
3201 +## DP: Primarily in lib-src.
3202 +
3203 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3204 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3205 +
3206 +if [ $# -ne 1 ]; then
3207 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3208 +    exit 1
3209 +fi
3210 +case "$1" in
3211 +       -patch) patch $patch_opts -p1 < $0;;
3212 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3213 +       *)
3214 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3215 +               exit 1;;
3216 +esac
3217 +
3218 +exit 0
3219 +@DPATCH@
3220 +--- emacs21-21.2.orig/src/config.in
3221 ++++ emacs21-21.2/src/config.in
3222 +@@ -531,6 +538,10 @@
3223 + #endif
3224 + #ifdef HAVE_STDLIB_H
3225 + #include <stdlib.h>
3226 ++/* Don't use deprecated functions.  */
3227 ++#define bzero(data, size) memset(data, '\0', size)
3228 ++#define bcmp memcmp
3229 ++#define bcopy(a,b,c) memmove(b,a,c)
3230 + #endif
3231 + #endif
3232
3233 +--- emacs21-21.2.orig/lib-src/yow.c
3234 ++++ emacs21-21.2/lib-src/yow.c
3235 +@@ -10,6 +10,7 @@
3236 +  * With dynamic memory allocation.
3237 +  */
3238
3239 ++#include "config.h"
3240 + #include <stdio.h>
3241 + #include <ctype.h>
3242 + #include <../src/epaths.h>      /* For PATH_DATA.  */
3243 +@@ -33,7 +34,9 @@
3244 +     &res;})
3245 + #endif
3246
3247 ++#ifndef HAVE_STDLIB_H         /* config.h includes stdlib.  */
3248 + char *malloc(), *realloc();
3249 ++#endif
3250
3251 + void yow();
3252 + void setup_yow();
3253 +--- emacs21-21.2.orig/lib-src/cvtmail.c
3254 ++++ emacs21-21.2/lib-src/cvtmail.c
3255 +@@ -33,11 +33,14 @@
3256 +  * Author: Larry Kolodney, 1985
3257 +  */
3258
3259 +-
3260 ++#include "config.h"
3261 + #include <stdio.h>
3262
3263 ++#ifndef HAVE_STDLIB_H         /* config.h includes stdlib.  */
3264 + char *malloc ();
3265 + char *realloc ();
3266 ++#endif
3267 ++
3268 + char *getenv ();
3269
3270 + char *xmalloc ();
3271 --- emacs-21.3.orig/debian/patches/detect-coding-iso2022.dpatch
3272 +++ emacs-21.3/debian/patches/detect-coding-iso2022.dpatch
3273 @@ -0,0 +1,60 @@
3274 +#!/bin/sh -e
3275 +## 500-detect-coding-iso2022.dpatch by Kenichi Handa <handa@etl.go.jp>
3276 +##
3277 +## All lines beginning with `## DP:' are a description of the patch.
3278 +
3279 +## DP: ** An upstream fix has been incorporated for cases where emacs
3280 +## DP: might modify a binary file even when asked to use a raw-text
3281 +## DP: encoding during a save.
3282 +## DP: Author: Kenichi Handa <handa@etl.go.jp> 
3283 +## DP: Status: backported from upstream fix of 2002-07-26
3284 +
3285 +if [ $# -ne 1 ]; then
3286 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3287 +    exit 1
3288 +fi
3289 +
3290 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3291 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3292 +
3293 +case "$1" in
3294 +       -patch) patch $patch_opts -p1 < $0;;
3295 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3296 +        *)
3297 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3298 +                exit 1;;
3299 +esac
3300 +
3301 +exit 0
3302 +
3303 +@DPATCH@
3304 +diff -urNad /home/rlb/deb/emacs21/trunk/src/coding.c trunk/src/coding.c
3305 +--- /home/rlb/deb/emacs21/trunk/src/coding.c   2003-09-09 17:28:48.000000000 -0500
3306 ++++ trunk/src/coding.c 2003-09-11 22:16:16.000000000 -0500
3307 +@@ -1359,6 +1359,7 @@
3308 +   while (mask && src < src_end)
3309 +     {
3310 +       ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
3311 ++    retry:
3312 +       switch (c)
3313 +       {
3314 +       case ISO_CODE_ESC:
3315 +@@ -1556,6 +1557,8 @@
3316 +                 && mask & CODING_CATEGORY_MASK_ISO_8_2)
3317 +               {
3318 +                 int i = 1;
3319 ++
3320 ++                c = -1;
3321 +                 while (src < src_end)
3322 +                   {
3323 +                     ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
3324 +@@ -1568,6 +1571,9 @@
3325 +                   mask &= ~CODING_CATEGORY_MASK_ISO_8_2;
3326 +                 else
3327 +                   mask_found |= CODING_CATEGORY_MASK_ISO_8_2;
3328 ++                if (c >= 0)
3329 ++                  /* This means that we have read one extra byte.  */
3330 ++                  goto retry;
3331 +               }
3332 +           }
3333 +         break;
3334 --- emacs-21.3.orig/debian/patches/fix-x-vs-no-x-diffs.dpatch
3335 +++ emacs-21.3/debian/patches/fix-x-vs-no-x-diffs.dpatch
3336 @@ -0,0 +1,107 @@
3337 +#! /bin/sh -e
3338 +## 501-fix-x-vs-no-x-diffs.dpatch by Rob Browning <rlb@defaultvalue.org>
3339 +##
3340 +## DP: ** Building --with-x=yes and --with-x=no creates very few differences now.
3341 +## DP: Author: rlb in consulatation with emacs-devel.
3342 +## DP: 
3343 +## DP: Eliminate as many differences between --with-x=yes and --with-x=no
3344 +## DP: versions of emacs as possible, and accommodate the rest.
3345 +## DP: 
3346 +## DP: Make sure that the DOC files generated with and without X,
3347 +## DP: i.e. --with-x=yes and --with-x=no, are the same.
3348 +## DP: 
3349 +## DP: Make sure that cus-dep.el generation doesn't fail by fixing some
3350 +## DP: problems with a couple of defcustom forms.  Without the fix, the
3351 +## DP: computation of custom-where in cus-dep.el fails because the defcustom
3352 +## DP: eval fails.  The gnus-art.el fix does copy/paste the value of
3353 +## DP: gnus-article-compface-xbm from gnus-ems to gnus-art.  This doesn't
3354 +## DP: look like it should hurt anything, but it'd be better to fix this
3355 +## DP: "right" in the long term.
3356 +## DP: 
3357 +## DP: Sort the custom-group entries in cus-dep before generating
3358 +## DP: custom-loads so the output doesn't differ from run-to-run.
3359 +## DP: 
3360 +## DP: Add a tag so that we can insert our own name for the fns-*.el file
3361 +## DP: into help.el at package build time.  fns-*.el is the only difference
3362 +## DP: remaining, and we just allow two versions, fns-*-x.el and fns-*-nox.el
3363 +## DP: and arrange for help.el to load the right one.
3364 +
3365 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3366 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3367 +
3368 +if [ $# -ne 1 ]; then
3369 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3370 +    exit 1
3371 +fi
3372 +case "$1" in
3373 +       -patch) patch $patch_opts -p1 < $0;;
3374 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3375 +       *)
3376 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3377 +               exit 1;;
3378 +esac
3379 +
3380 +exit 0
3381 +@DPATCH@
3382 +diff -ru 0/lisp/scroll-bar.el 1/lisp/scroll-bar.el
3383 +--- 0/lisp/scroll-bar.el       2002-09-15 17:14:25.000000000 -0500
3384 ++++ 1/lisp/scroll-bar.el       2002-09-15 17:15:39.000000000 -0500
3385 +@@ -99,6 +99,7 @@
3386 +                (const left)
3387 +                (const right))
3388 +   :group 'frames
3389 ++  :initialize 'custom-initialize-default
3390 +   :set 'set-scroll-bar-mode-1)
3391
3392 + ;; We just set scroll-bar-mode, but that was the default.
3393 +diff -ru 0/lisp/gnus/gnus-art.el 1/lisp/gnus/gnus-art.el
3394 +--- 0/lisp/gnus/gnus-art.el    2002-03-22 11:03:55.000000000 -0600
3395 ++++ 1/lisp/gnus/gnus-art.el    2002-09-15 16:42:46.000000000 -0500
3396 +@@ -207,7 +207,10 @@
3397 +   (if (and (fboundp 'image-type-available-p)
3398 +          (image-type-available-p 'xbm))
3399 +       'gnus-article-display-xface
3400 +-    (if gnus-article-compface-xbm
3401 ++    (if (or (and (boundp 'gnus-article-compface-xbm)
3402 ++                 gnus-article-compface-xbm)
3403 ++            (eq 0 (string-match "#define"
3404 ++                                (shell-command-to-string "uncompface -X"))))
3405 +       "{ echo '/* Width=48, Height=48 */'; uncompface; } | display -"
3406 +       "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | \
3407 + display -"))
3408 +--- 0/lisp/cus-dep.el  2002-07-30 20:15:40.000000000 -0500
3409 ++++ 1/lisp/cus-dep.el  2002-09-15 18:20:53.000000000 -0500
3410 +@@ -35,7 +35,7 @@
3411 +   "Batch function to extract custom dependencies from .el files.
3412 + Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
3413 +   (let ((enable-local-eval nil)
3414 +-      (all-subdirs command-line-args-left)
3415 ++      (all-subdirs (sort command-line-args-left 'string<))
3416 +       (start-directory default-directory))
3417 +     (get-buffer-create " cus-dep temp")
3418 +     (set-buffer " cus-dep temp")
3419 +@@ -86,6 +86,10 @@
3420 +             (let ((members (get symbol 'custom-group))
3421 +                   item where found)
3422 +               (when members
3423 ++                  ;; So x and no-x builds won't differ.
3424 ++                  (setq members
3425 ++                        (sort (copy-sequence members)
3426 ++                              (lambda (x y) (string< (car x) (car y)))))
3427 +                 (while members
3428 +                   (setq item (car (car members))
3429 +                         members (cdr members)
3430 +--- 0/lisp/help.el     2001-10-21 20:26:01.000000000 -0500
3431 ++++ 1/lisp/help.el     2002-09-19 23:29:30.000000000 -0500
3432 +@@ -612,7 +612,10 @@
3433 +          ;; fns-XX.YY.ZZ.el does not work on DOS filesystem.
3434 +          (if (eq system-type 'ms-dos)
3435 +              "fns.el"
3436 +-           (format "fns-%s.el" emacs-version))
3437 ++            ;; Modified for Debian to support x and nox parallel installs.
3438 ++            (format "fns-%s-%s.el"
3439 ++                    emacs-version
3440 ++                    (or (and (featurep 'x-toolkit) "x") "nox")))
3441 +          exec-directory)
3442 +         ;; The file name fns-%s.el already has a .el extension.
3443 +         nil nil t)
3444 --- emacs-21.3.orig/debian/patches/version-mention-debian.dpatch
3445 +++ emacs-21.3/debian/patches/version-mention-debian.dpatch
3446 @@ -0,0 +1,36 @@
3447 +#! /bin/sh -e
3448 +## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
3449 +##
3450 +## DP: ** (version) has been modified to indicate Debian modifications.
3451 +## DP: Author: rlb
3452 +
3453 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3454 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3455 +
3456 +if [ $# -ne 1 ]; then
3457 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3458 +    exit 1
3459 +fi
3460 +case "$1" in
3461 +       -patch) patch $patch_opts -p1 < $0;;
3462 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3463 +       *)
3464 +               echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3465 +               exit 1;;
3466 +esac
3467 +
3468 +exit 0
3469 +@DPATCH@
3470 +--- emacs21-21.2.orig/lisp/version.el
3471 ++++ emacs21-21.2/lisp/version.el
3472 +@@ -55,8 +55,8 @@
3473 +   (interactive "P")
3474 +   (let ((version-string
3475 +          (format (if (not (interactive-p))
3476 +-                   "GNU Emacs %s (%s%s%s)\n of %s on %s"
3477 +-                 "GNU Emacs %s (%s%s%s) of %s on %s")
3478 ++                   "GNU Emacs %s (%s%s%s)\n of %s on %s, modified by Debian"
3479 ++                 "GNU Emacs %s (%s%s%s) of %s on %s, modified by Debian")
3480 +                  emacs-version
3481 +                system-configuration
3482 +                (cond ((featurep 'motif)
3483 --- emacs-21.3.orig/debian/patches/autoconf-updates.dpatch
3484 +++ emacs-21.3/debian/patches/autoconf-updates.dpatch
3485 @@ -0,0 +1,91 @@
3486 +#! /bin/sh -e
3487 +## autoconf-updates.dpatch by  <rlb@raven.defaultvalue.org>
3488 +##
3489 +
3490 +## DP: ** Autoconf files have been updated to work with the latest versions.
3491 +## DP: Status: new
3492 +
3493 +if [ $# -lt 1 ]; then
3494 +    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
3495 +    exit 1
3496 +fi
3497 +
3498 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3499 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
3500 +
3501 +case "$1" in
3502 +    -patch) patch -p1 ${patch_opts} < $0;;
3503 +    -unpatch) patch -R -p1 ${patch_opts} < $0;;
3504 +    *)
3505 +        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
3506 +        exit 1;;
3507 +esac
3508 +
3509 +exit 0
3510 +
3511 +@DPATCH@
3512 +diff -urNad /home/rlb/deb/emacs/trunk-21/configure.in trunk-21/configure.in
3513 +--- /home/rlb/deb/emacs/trunk-21/configure.in  2004-02-21 21:05:44.000000000 -0600
3514 ++++ trunk-21/configure.in      2004-02-22 10:01:39.000000000 -0600
3515 +@@ -26,6 +26,7 @@
3516 + AC_PREREQ(2.8)dnl
3517 + AC_INIT(src/lisp.h)
3518 + AC_CONFIG_HEADER(src/config.h:src/config.in)
3519 ++AC_CONFIG_LIBOBJ_DIR(src)
3520
3521 + lispdir='${datadir}/emacs/${version}/lisp'
3522 + locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3523 +@@ -2037,12 +2038,8 @@
3524 +   if test "${with_kerberos5+set}" = set; then
3525 +     AC_CHECK_HEADERS(krb5.h)
3526 +   else
3527 +-    AC_CHECK_HEADERS(des.h,,
3528 +-                   AC_CHECK_HEADERS(kerberosIV/des.h,,
3529 +-                                    AC_CHECK_HEADERS(kerberos/des.h)))
3530 +-    AC_CHECK_HEADERS(krb.h,,
3531 +-                   AC_CHECK_HEADERS(kerberosIV/krb.h,,
3532 +-                                    AC_CHECK_HEADERS(kerberos/krb.h)))
3533 ++    AC_CHECK_HEADERS([des.h kerberosIV/des.h kerberos/des.h], break)
3534 ++    AC_CHECK_HEADERS([krb.h kerberosIV/krb.h kerberos/krb.h], break)
3535 +   fi
3536 +   AC_CHECK_HEADERS(com_err.h)
3537 + fi
3538 +@@ -2326,7 +2323,7 @@
3539 + # the C preprocessor to some helpful value like 1, or maybe the empty
3540 + # string.  Needless to say consequent macro substitutions are less
3541 + # than conducive to the makefile finding the correct directory.
3542 +-undefs="`echo $top_srcdir $configuration $canonical |
3543 ++undefs="`echo $ac_top_srcdir $configuration $canonical |
3544 + sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
3545 +     -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
3546 + `"
3547 +@@ -2350,7 +2347,7 @@
3548 +   sed -e '1,/start of cpp stuff/d'\
3549 +       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
3550 +       < Makefile.c > junk.c
3551 +-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
3552 ++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
3553 +       sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
3554 +   cat junk1.c junk2.c > Makefile.new
3555 +   rm -f junk.c junk1.c junk2.c
3556 +@@ -2366,7 +2363,7 @@
3557 +   sed -e '1,/start of cpp stuff/d'\
3558 +       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
3559 +       < Makefile.c > junk.c
3560 +-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
3561 ++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
3562 +       sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
3563 +   cat junk1.c junk2.c > Makefile.new
3564 +   rm -f junk.c junk1.c junk2.c
3565 +@@ -2374,9 +2371,9 @@
3566 +   mv -f Makefile.new Makefile
3567 + )
3568
3569 +-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
3570 ++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
3571 +   echo creating src/.gdbinit
3572 +-  echo source $top_srcdir/src/.gdbinit > src/.gdbinit
3573 ++  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
3574 + fi
3575
3576 + # This is how we know whether to re-run configure in certain cases.
3577 --- emacs-21.3.orig/debian/patches/save-buffer.dpatch
3578 +++ emacs-21.3/debian/patches/save-buffer.dpatch
3579 @@ -0,0 +1,83 @@
3580 +#!/bin/sh -e
3581 +## save-buffer.dpatch by Jerome Marant <jerome@debian.org>
3582 +##
3583 +## DP: ** Fixes cases where Emacs does not rename a backup file
3584 +## DP: to the original one when the coding system of the buffer
3585 +## DP: has changed and saving has been canceled.
3586 +## DP: Status: has been incorporated upstream
3587 +## DP: Date: Sun, 26 Oct 2003 17:48:46 +0100
3588 +
3589 +if [ $# -ne 1 ]; then
3590 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3591 +    exit 1
3592 +fi
3593 +
3594 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3595 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3596 +
3597 +case "$1" in
3598 +       -patch) patch $patch_opts -p1 < $0;;
3599 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3600 +        *)
3601 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3602 +                exit 1;;
3603 +esac
3604 +
3605 +exit 0
3606 +
3607 +@DPATCH@
3608 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el emacs21/lisp/files.el
3609 +--- /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el 2003-10-01 20:01:28.000000000 +0200
3610 ++++ emacs21/lisp/files.el      2003-10-26 17:45:31.000000000 +0100
3611 +@@ -2207,7 +2207,8 @@
3612 +                            (copy-file real-file-name backupname t t)))
3613 +                       ;; rename-file should delete old backup.
3614 +                       (rename-file real-file-name backupname t)
3615 +-                      (setq setmodes (file-modes backupname)))
3616 ++                      (setq setmodes
3617 ++                            (cons (file-modes backupname) backupname)))
3618 +                   (file-error
3619 +                    ;; If trouble writing the backup, write it in ~.
3620 +                    (setq backupname (expand-file-name
3621 +@@ -2682,7 +2683,7 @@
3622 +                 (nthcdr 10 (file-attributes buffer-file-name)))
3623 +           (if setmodes
3624 +               (condition-case ()
3625 +-                  (set-file-modes buffer-file-name setmodes)
3626 ++                  (set-file-modes buffer-file-name (car setmodes))
3627 +                 (error nil))))
3628 +         ;; If the auto-save file was recent before this command,
3629 +         ;; delete it now.
3630 +@@ -2760,7 +2761,8 @@
3631 +           ;; Since we have created an entirely new file
3632 +           ;; and renamed it, make sure it gets the
3633 +           ;; right permission bits set.
3634 +-          (setq setmodes (file-modes buffer-file-name))
3635 ++          (setq setmodes (or setmodes (cons (file-modes buffer-file-name)
3636 ++                                            buffer-file-name)))
3637 +           ;; We succeeded in writing the temp file,
3638 +           ;; so rename it.
3639 +           (rename-file tempname buffer-file-name t))
3640 +@@ -2770,10 +2772,18 @@
3641 +       ;; (setmodes is set) because that says we're superseding.
3642 +       (cond ((and tempsetmodes (not setmodes))
3643 +              ;; Change the mode back, after writing.
3644 +-             (setq setmodes (file-modes buffer-file-name))
3645 +-             (set-file-modes buffer-file-name (logior setmodes 128))))
3646 +-      (write-region (point-min) (point-max)
3647 +-                    buffer-file-name nil t buffer-file-truename)))
3648 ++             (setq setmodes (cons (file-modes buffer-file-name) buffer-file-name))
3649 ++             (set-file-modes buffer-file-name (logior (car setmodes) 128))))
3650 ++      (let (success)
3651 ++        (unwind-protect
3652 ++            (progn
3653 ++              (write-region (point-min) (point-max)
3654 ++                            buffer-file-name nil t buffer-file-truename)
3655 ++              (setq success t))
3656 ++          ;; If we get an error writing the new file, and we made
3657 ++          ;; the backup by renaming, undo the backing-up.
3658 ++          (and setmodes (not success)
3659 ++               (rename-file (cdr setmodes) buffer-file-name))))))
3660 +     setmodes))
3661
3662 + (defun save-some-buffers (&optional arg pred)
3663 --- emacs-21.3.orig/debian/patches/hurd-libio-glibc.dpatch
3664 +++ emacs-21.3/debian/patches/hurd-libio-glibc.dpatch
3665 @@ -0,0 +1,47 @@
3666 +#!/bin/sh -e
3667 +## hurd-libio-glibc.dpatch by Jerome Marant <jerome@debian.org>
3668 +##
3669 +## DP: ** Support for libio-based (instead of stdio) glibc
3670 +## DP: on Hurd systems has been added.
3671 +## DP: Status: has been incorporated upstream
3672 +## DP: Author: Marcus Brinkmann <marcus@gnu.org>
3673 +## DP: Date: Tue, 16 Apr 2002 18:55:03 -0400
3674 +
3675 +if [ $# -ne 1 ]; then
3676 +    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3677 +    exit 1
3678 +fi
3679 +
3680 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
3681 +patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
3682 +
3683 +case "$1" in
3684 +       -patch) patch $patch_opts -p1 < $0;;
3685 +       -unpatch) patch $patch_opts -p1 -R < $0;;
3686 +        *)
3687 +                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
3688 +                exit 1;;
3689 +esac
3690 +
3691 +exit 0
3692 +
3693 +@DPATCH@
3694 +diff -urNad /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h emacs/src/s/gnu.h
3695 +--- /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h     2003-09-26 19:50:09.000000000 +0200
3696 ++++ emacs/src/s/gnu.h  2003-09-27 15:01:16.000000000 +0200
3697 +@@ -64,6 +64,15 @@
3698 + #define WAIT_USE_INT
3699 + #define HAVE_UNION_WAIT
3700
3701 ++#ifdef emacs
3702 ++#include <stdio.h>  /* Get the definition of _IO_STDIO_H.  */
3703 ++#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
3704 ++/* new C libio names */
3705 ++#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
3706 ++  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
3707 ++#endif
3708 ++#endif
3709 ++
3710 + /* GNU needs its own crt0, and libc defines data_start.  */
3711 + #define ORDINARY_LINK
3712 + #define DATA_START ({ extern int data_start; (char *) &data_start; })
3713 --- emacs-21.3.orig/debian/emacs-bin-common.postrm
3714 +++ emacs-21.3/debian/emacs-bin-common.postrm
3715 @@ -0,0 +1,15 @@
3716 +#!/bin/sh
3717 +
3718 +set -e
3719 +
3720 +MAJOR=@MAJOR_VERSION@
3721 +MINOR=@MINOR_VERSION@
3722 +FULL=@FULL_VERSION@
3723 +MOVEMAIL_BIN=@MOVEMAIL_BIN@
3724 +
3725 +# Legacy removal...
3726 +if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
3727 +  suidunregister -s emacs${MAJOR} ${MOVEMAIL_BIN}
3728 +fi
3729 +
3730 +exit 0
3731 --- emacs-21.3.orig/debian/README.in
3732 +++ emacs-21.3/debian/README.in
3733 @@ -0,0 +1,31 @@
3734 +Non-patch changes:
3735 +
3736 +    ** The Debian copy of the upstream source contains no .elc files.
3737 +
3738 +       The .elc files have been removed because we always regenerate
3739 +       them and because Emacs modifies them in the source tree during
3740 +       the build process, even when using a VPATH build.  This means
3741 +       that a "make clean" can't easily return the tree to the
3742 +       upstream state, resulting in a giant Debian binary diff.  There
3743 +       are other solutions if this turns out to be a problem.  If
3744 +       nothing else, we can keep the current infrastructure and just
3745 +       add the .elc files to protected_files in debian/rules.
3746 +       Removing the .elc files doesn't affect whether or not our
3747 +       source archive would match the upstream md5sum because we
3748 +       have to repackage it anyway to add leim support.
3749 +
3750 +    ** The -i icon is the Emacs GNU.
3751 +
3752 +    ** Those who prefer the old-style scrollbars can edit debian/rules
3753 +
3754 +       If you prefer the old-style, non-toolkit scrollbars, just edit
3755 +       debian/rules to uncomment the --without-toolkit-scrollbars line
3756 +       and rebuild.
3757 +
3758 +@@PATCH_LIST_HERE@@
3759 +
3760 +Local Variables:
3761 +mode: outline
3762 +outline-regexp: " *\\*+"
3763 +End:
3764 +
3765 --- emacs-21.3.orig/debian/emacs.desktop
3766 +++ emacs-21.3/debian/emacs.desktop
3767 @@ -0,0 +1,12 @@
3768 +[Desktop Entry]
3769 +Version=1.0
3770 +Encoding=UTF-8
3771 +Name=Emacs @MAJOR_VERSION@ (X11)
3772 +GenericName=Emacs
3773 +Comment=GNU Emacs @MAJOR_VERSION@ Text Editor
3774 +Exec=/usr/bin/emacs@MAJOR_VERSION@
3775 +TryExec=emacs@MAJOR_VERSION@
3776 +Terminal=false
3777 +Type=Application
3778 +Icon=/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm
3779 +Categories=Application;Utility;TextEditor;
3780 --- emacs-21.3.orig/debian/build-binary-pkg
3781 +++ emacs-21.3/debian/build-binary-pkg
3782 @@ -0,0 +1,103 @@
3783 +#!/bin/bash
3784 +
3785 +set -e
3786 +set -x
3787 +
3788 +test "${pkgname}" || (echo pkgname unset; false)
3789 +test "${pkgdir}" || (echo pkgdir unset; false)
3790 +test "${tmppkgdir}" || (echo pkgdir unset; false)
3791 +test "${runver}" || (echo runver unset; false)
3792 +test "${majorver}" || (echo majorver unset; false)
3793 +test "${minorver}" || (echo minorver unset; false)
3794 +test "${target}" || (echo target unset; false)
3795 +test "${xsupport}" || (echo xsupport unset; false)
3796 +
3797 +install -d debian/${pkgdir}
3798 +install -d debian/${pkgdir}/usr/bin/
3799 +mv debian/${tmppkgdir}/usr/bin/emacs-* \
3800 +  debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
3801 +(cd debian/${pkgdir}/usr/bin/ \
3802 + && ln -s emacs${majorver}-${xsupport} emacs${majorver})
3803 +
3804 +install -d debian/${pkgdir}/usr/share/emacs/${runver}/etc/
3805 +
3806 +mv debian/${tmppkgdir}/usr/share/emacs/${runver}/etc/DOC-${runver}.1 \
3807 +   debian/${pkgdir}/usr/share/emacs/${runver}/etc/
3808 +
3809 +# move files to the build directory
3810 +install -d debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
3811 +mv debian/${tmppkgdir}/usr/lib/emacs/${runver}/${target}/fns-*.el \
3812 +   debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
3813 +
3814 +# rename fns-*.el and elc files
3815 +(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
3816 + && test `ls fns-*.el | wc -l` -eq 1 \
3817 + && mv fns-*.el \
3818 +   `echo fns-*.el | perl -pe "s/^fns-(.*)\.el\$/fns-\\$1-${xsupport}.el/ or die;"`)
3819 +(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
3820 + && test `ls fns-*.elc | wc -l` -eq 1 \
3821 + && mv fns-*.elc \
3822 +   `echo fns-*.elc | perl -pe "s/^fns-(.*)\.elc\$/fns-\\$1-${xsupport}.elc/ or die;"`)
3823 +
3824 +rm -rf debian/${tmppkgdir}
3825 +
3826 +# /usr/bin files
3827 +test -f debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
3828 +
3829 +if test "${xsupport}" = x
3830 +then
3831 +  # install desktop entry
3832 +  install -d debian/${pkgdir}/usr/share/applications
3833 +  install -m 0644 debian/emacs${major_ver}.desktop \
3834 +    debian/${pkgdir}/usr/share/applications
3835 +fi
3836 +
3837 +# Can this just be a symlink to the emacsXY-common's doc dir?
3838 +# /usr/share/doc/emacs${majorver} directory
3839 +install -d debian/${pkgdir}/usr/share/doc/${pkgname}
3840 +cp debian/changelog debian/${pkgdir}/usr/share/doc/${pkgname}/changelog.Debian
3841 +cp debian/README.binpkg debian/${pkgdir}/usr/share/doc/${pkgname}/README.Debian
3842 +find debian/${pkgdir}/usr/share/doc/${pkgname} -type f | xargs gzip -9v
3843 +cp debian/copyright debian/${pkgdir}/usr/share/doc/${pkgname}
3844 +
3845 +# menu items
3846 +install -d debian/${pkgdir}/usr/lib/menu
3847 +cp debian/menu-${pkgname} debian/${pkgdir}/usr/lib/menu/${pkgname}
3848 +
3849 +# Mangle permissions to conform.
3850 +chown -R root.root debian/${pkgdir}
3851 +find debian/${pkgdir} -type d | xargs chmod 755
3852 +find debian/${pkgdir} -not -type d -a -not -type l | xargs chmod 644
3853 +chmod 755 debian/${pkgdir}/usr/bin/*
3854 +
3855 +# control scripts      
3856 +install -d debian/${pkgdir}/DEBIAN
3857 +install -m 755 debian/emacs.postinst debian/${pkgdir}/DEBIAN/postinst
3858 +install -m 755 debian/emacs.prerm debian/${pkgdir}/DEBIAN/prerm
3859 +install -m 755 debian/emacs.postrm debian/${pkgdir}/DEBIAN/postrm
3860 +
3861 +BIN_PRIORITY=24
3862 +
3863 +perl -w -p -i \
3864 +  -e "s/\@PKG_NAME\@/${pkgname}/go;" \
3865 +  -e "s/\@MAJOR_VERSION\@/${majorver}/go;" \
3866 +  -e "s/\@X_SUPPORT\@/${xsupport}/go;" \
3867 +  -e "s/\@BIN_PRIORITY\@/${BIN_PRIORITY}/go;" \
3868 +  \
3869 +  debian/${pkgdir}/DEBIAN/postinst \
3870 +  debian/${pkgdir}/DEBIAN/prerm \
3871 +  debian/${pkgdir}/DEBIAN/postrm
3872 +
3873 +dpkg-shlibdeps debian/${pkgdir}/usr/bin/*
3874 +
3875 +# Generate DEBIAN/md5sums file
3876 +test -e DEBIAN/md5sums && exit 1
3877 +(cd debian/${pkgdir} &&
3878 + for dir in `ls | grep -v DEBIAN`
3879 + do
3880 +   find "${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums
3881 + done)
3882 +chmod 0644 debian/${pkgdir}/DEBIAN/md5sums
3883 +
3884 +dpkg-gencontrol -isp -p${pkgname} -Pdebian/${pkgdir}
3885 +dpkg --build debian/${pkgdir} ..
3886 --- emacs-21.3.orig/debian/emacs.postinst
3887 +++ emacs-21.3/debian/emacs.postinst
3888 @@ -0,0 +1,22 @@
3889 +#!/bin/sh
3890 +
3891 +set -e
3892 +
3893 +MAJOR=@MAJOR_VERSION@
3894 +
3895 +update-alternatives \
3896 +  --install /usr/bin/emacs emacs \
3897 +            /usr/bin/emacs${MAJOR}-@X_SUPPORT@ @BIN_PRIORITY@ \
3898 +  --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
3899 +          /usr/share/man/man1/emacs.1emacs${MAJOR}.gz
3900 +
3901 +update-alternatives \
3902 +  --install /usr/bin/editor editor \
3903 +            /usr/bin/emacs${MAJOR} 0
3904 +
3905 +if test -x /usr/bin/update-menus; then update-menus; fi
3906 +
3907 +# emacsen-common registration.
3908 +/usr/lib/emacsen-common/emacs-install emacs${MAJOR}
3909 +
3910 +exit 0
3911 --- emacs-21.3.orig/debian/README.add-on-package-maintainers
3912 +++ emacs-21.3/debian/README.add-on-package-maintainers
3913 @@ -0,0 +1,2 @@
3914 +Please see /usr/share/doc/emacsen-common/debian-emacs-policy.gz for
3915 +information on how to properly structure your emacs add-on packages.
3916 --- emacs-21.3.orig/debian/emacs-el.prerm
3917 +++ emacs-21.3/debian/emacs-el.prerm
3918 @@ -0,0 +1,12 @@
3919 +#!/bin/sh
3920 +
3921 +set -e
3922 +
3923 +MAJOR=@MAJOR_VERSION@
3924 +MINOR=@MINOR_VERSION@
3925 +FULL=@FULL_VERSION@
3926 +
3927 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/emacs${MAJOR}-el ]
3928 +then
3929 +  rm -f /usr/doc/emacs${MAJOR}-el
3930 +fi
3931 --- emacs-21.3.orig/debian/emacs.postrm
3932 +++ emacs-21.3/debian/emacs.postrm
3933 @@ -0,0 +1,7 @@
3934 +#!/bin/sh
3935 +
3936 +set -e
3937 +
3938 +if test -x /usr/bin/update-menus; then update-menus; fi
3939 +
3940 +exit 0
3941 --- emacs-21.3.orig/debian/autofiles.diff
3942 +++ emacs-21.3/debian/autofiles.diff
3943 @@ -0,0 +1,23481 @@
3944 +diff -ruN -x autom4te.cache autodiff-old/aclocal.m4 autodiff-new/aclocal.m4
3945 +--- autodiff-old/aclocal.m4    2004-02-25 19:14:52.000000000 -0600
3946 ++++ autodiff-new/aclocal.m4    2004-04-06 17:47:06.000000000 -0500
3947 +@@ -1,532 +0,0 @@
3948 +-
3949 +-% Copyright (C) 2000, 2001  Free Software Foundation, Inc.
3950 +-%
3951 +-% This file is part of GNU Emacs.
3952 +-%
3953 +-% GNU Emacs is free software; you can redistribute it and/or modify
3954 +-% it under the terms of the GNU General Public License as published by
3955 +-% the Free Software Foundation; either version 2, or (at your option)
3956 +-% any later version.
3957 +-%
3958 +-% GNU Emacs is distributed in the hope that it will be useful,
3959 +-% but WITHOUT ANY WARRANTY; without even the implied warranty of
3960 +-% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3961 +-% GNU General Public License for more details.
3962 +-%
3963 +-% You should have received a copy of the GNU General Public License
3964 +-% along with GNU Emacs; see the file COPYING.  If not, write to the
3965 +-% Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3966 +-% Boston, MA 02111-1307, USA.
3967 +-
3968 +-ifelse(_AC_VERSION_COMPARE(AC_ACVERSION, [2.14]), -1,
3969 +-
3970 +-# AC_PROG_CC_STDC
3971 +-# ---------------
3972 +-# If the C compiler in not in ANSI C mode by default, try to add an
3973 +-# option to output variable @code{CC} to make it so.  This macro tries
3974 +-# various options that select ANSI C on some system or another.  It
3975 +-# considers the compiler to be in ANSI C mode if it handles function
3976 +-# prototypes correctly.
3977 +-AC_DEFUN(AC_PROG_CC_STDC,
3978 +-[AC_REQUIRE([AC_PROG_CC])dnl
3979 +-AC_BEFORE([$0], [AC_C_INLINE])dnl
3980 +-AC_BEFORE([$0], [AC_C_CONST])dnl
3981 +-dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
3982 +-dnl a magic option to avoid problems with ANSI preprocessor commands
3983 +-dnl like #elif.
3984 +-dnl FIXME: can't do this because then AC_AIX won't work due to a
3985 +-dnl circular dependency.
3986 +-dnl AC_BEFORE([$0], [AC_PROG_CPP])
3987 +-AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
3988 +-AC_CACHE_VAL(ac_cv_prog_cc_stdc,
3989 +-[ac_cv_prog_cc_stdc=no
3990 +-ac_save_CC="$CC"
3991 +-# Don't try gcc -ansi; that turns off useful extensions and
3992 +-# breaks some systems' header files.
3993 +-# AIX                 -qlanglvl=ansi
3994 +-# Ultrix and OSF/1    -std1
3995 +-# HP-UX 10.20 and later       -Ae
3996 +-# HP-UX older versions        -Aa -D_HPUX_SOURCE
3997 +-# SVR4                        -Xc -D__EXTENSIONS__
3998 +-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3999 +-do
4000 +-  CC="$ac_save_CC $ac_arg"
4001 +-  AC_TRY_COMPILE(
4002 +-[#include <stdarg.h>
4003 +-#include <stdio.h>
4004 +-#include <sys/types.h>
4005 +-#include <sys/stat.h>
4006 +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4007 +-struct buf { int x; };
4008 +-FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 +-static char *e (p, i)
4010 +-     char **p;
4011 +-     int i;
4012 +-{
4013 +-  return p[i];
4014 +-}
4015 +-static char *f (char * (*g) (char **, int), char **p, ...)
4016 +-{
4017 +-  char *s;
4018 +-  va_list v;
4019 +-  va_start (v,p);
4020 +-  s = g (p, va_arg (v,int));
4021 +-  va_end (v);
4022 +-  return s;
4023 +-}
4024 +-int test (int i, double x);
4025 +-struct s1 {int (*f) (int a);};
4026 +-struct s2 {int (*f) (double a);};
4027 +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 +-int argc;
4029 +-char **argv;],
4030 +-[return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];],
4031 +-[ac_cv_prog_cc_stdc="$ac_arg"; break])
4032 +-done
4033 +-CC="$ac_save_CC"
4034 +-])
4035 +-case "x$ac_cv_prog_cc_stdc" in
4036 +-  x|xno)
4037 +-    AC_MSG_RESULT([none needed]) ;;
4038 +-  *)
4039 +-    AC_MSG_RESULT($ac_cv_prog_cc_stdc)
4040 +-    CC="$CC $ac_cv_prog_cc_stdc" ;;
4041 +-esac
4042 +-])# AC_PROG_CC_STDC
4043 +-
4044 +-# AC_FUNC_MKTIME
4045 +-# --------------
4046 +-AC_DEFUN(AC_FUNC_MKTIME,
4047 +-[AC_REQUIRE([AC_HEADER_TIME])dnl
4048 +-AC_CHECK_HEADERS(sys/time.h unistd.h)
4049 +-AC_CHECK_FUNCS(alarm)
4050 +-AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime,
4051 +-[AC_TRY_RUN(
4052 +-[/* Test program from Paul Eggert (eggert@twinsun.com)
4053 +-   and Tony Leneis (tony@plaza.ds.adp.com).  */
4054 +-#if TIME_WITH_SYS_TIME
4055 +-# include <sys/time.h>
4056 +-# include <time.h>
4057 +-#else
4058 +-# if HAVE_SYS_TIME_H
4059 +-#  include <sys/time.h>
4060 +-# else
4061 +-#  include <time.h>
4062 +-# endif
4063 +-#endif
4064 +-
4065 +-#if HAVE_UNISTD_H
4066 +-# include <unistd.h>
4067 +-#endif
4068 +-
4069 +-#if !HAVE_ALARM
4070 +-# define alarm(X) /* empty */
4071 +-#endif
4072 +-
4073 +-/* Work around redefinition to rpl_putenv by other config tests.  */
4074 +-#undef putenv
4075 +-
4076 +-static time_t time_t_max;
4077 +-
4078 +-/* Values we'll use to set the TZ environment variable.  */
4079 +-static const char *const tz_strings[] = {
4080 +-  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
4081 +-  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
4082 +-};
4083 +-#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
4084 +-
4085 +-/* Fail if mktime fails to convert a date in the spring-forward gap.
4086 +-   Based on a problem report from Andreas Jaeger.  */
4087 +-static void
4088 +-spring_forward_gap ()
4089 +-{
4090 +-  /* glibc (up to about 1998-10-07) failed this test) */
4091 +-  struct tm tm;
4092 +-
4093 +-  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
4094 +-     instead of "TZ=America/Vancouver" in order to detect the bug even
4095 +-     on systems that don't support the Olson extension, or don't have the
4096 +-     full zoneinfo tables installed.  */
4097 +-  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
4098 +-
4099 +-  tm.tm_year = 98;
4100 +-  tm.tm_mon = 3;
4101 +-  tm.tm_mday = 5;
4102 +-  tm.tm_hour = 2;
4103 +-  tm.tm_min = 0;
4104 +-  tm.tm_sec = 0;
4105 +-  tm.tm_isdst = -1;
4106 +-  if (mktime (&tm) == (time_t)-1)
4107 +-    exit (1);
4108 +-}
4109 +-
4110 +-static void
4111 +-mktime_test (now)
4112 +-     time_t now;
4113 +-{
4114 +-  struct tm *lt;
4115 +-  if ((lt = localtime (&now)) && mktime (lt) != now)
4116 +-    exit (1);
4117 +-  now = time_t_max - now;
4118 +-  if ((lt = localtime (&now)) && mktime (lt) != now)
4119 +-    exit (1);
4120 +-}
4121 +-
4122 +-static void
4123 +-irix_6_4_bug ()
4124 +-{
4125 +-  /* Based on code from Ariel Faigon.  */
4126 +-  struct tm tm;
4127 +-  tm.tm_year = 96;
4128 +-  tm.tm_mon = 3;
4129 +-  tm.tm_mday = 0;
4130 +-  tm.tm_hour = 0;
4131 +-  tm.tm_min = 0;
4132 +-  tm.tm_sec = 0;
4133 +-  tm.tm_isdst = -1;
4134 +-  mktime (&tm);
4135 +-  if (tm.tm_mon != 2 || tm.tm_mday != 31)
4136 +-    exit (1);
4137 +-}
4138 +-
4139 +-static void
4140 +-bigtime_test (j)
4141 +-     int j;
4142 +-{
4143 +-  struct tm tm;
4144 +-  time_t now;
4145 +-  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
4146 +-  now = mktime (&tm);
4147 +-  if (now != (time_t) -1)
4148 +-    {
4149 +-      struct tm *lt = localtime (&now);
4150 +-      if (! (lt
4151 +-           && lt->tm_year == tm.tm_year
4152 +-           && lt->tm_mon == tm.tm_mon
4153 +-           && lt->tm_mday == tm.tm_mday
4154 +-           && lt->tm_hour == tm.tm_hour
4155 +-           && lt->tm_min == tm.tm_min
4156 +-           && lt->tm_sec == tm.tm_sec
4157 +-           && lt->tm_yday == tm.tm_yday
4158 +-           && lt->tm_wday == tm.tm_wday
4159 +-           && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
4160 +-                == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
4161 +-      exit (1);
4162 +-    }
4163 +-}
4164 +-
4165 +-int
4166 +-main ()
4167 +-{
4168 +-  time_t t, delta;
4169 +-  int i, j;
4170 +-
4171 +-  /* This test makes some buggy mktime implementations loop.
4172 +-     Give up after 60 seconds; a mktime slower than that
4173 +-     isn't worth using anyway.  */
4174 +-  alarm (60);
4175 +-
4176 +-  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
4177 +-    continue;
4178 +-  time_t_max--;
4179 +-  delta = time_t_max / 997; /* a suitable prime number */
4180 +-  for (i = 0; i < N_STRINGS; i++)
4181 +-    {
4182 +-      if (tz_strings[i])
4183 +-      putenv (tz_strings[i]);
4184 +-
4185 +-      for (t = 0; t <= time_t_max - delta; t += delta)
4186 +-      mktime_test (t);
4187 +-      mktime_test ((time_t) 60 * 60);
4188 +-      mktime_test ((time_t) 60 * 60 * 24);
4189 +-
4190 +-      for (j = 1; 0 < j; j *= 2)
4191 +-        bigtime_test (j);
4192 +-      bigtime_test (j - 1);
4193 +-    }
4194 +-  irix_6_4_bug ();
4195 +-  spring_forward_gap ();
4196 +-  exit (0);
4197 +-}],
4198 +-ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no,
4199 +-ac_cv_func_working_mktime=no)])
4200 +-if test $ac_cv_func_working_mktime = no; then
4201 +-  LIBOBJS="$LIBOBJS mktime.${ac_objext}"
4202 +-fi
4203 +-AC_SUBST(LIBOBJS)dnl
4204 +-])# AC_FUNC_MKTIME
4205 +-
4206 +-# AC_C_VOLATILE
4207 +-# -------------
4208 +-# Note that, unlike const, #defining volatile to be the empty string can
4209 +-# actually turn a correct program into an incorrect one, since removing
4210 +-# uses of volatile actually grants the compiler permission to perform
4211 +-# optimizations that could break the user's code.  So, do not #define
4212 +-# volatile away unless it is really necessary to allow the user's code
4213 +-# to compile cleanly.  Benign compiler failures should be tolerated.
4214 +-AC_DEFUN(AC_C_VOLATILE,
4215 +-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
4216 +-AC_CACHE_CHECK([for working volatile], ac_cv_c_volatile,
4217 +-[AC_TRY_COMPILE(,[
4218 +-volatile int x;
4219 +-int * volatile y;],
4220 +-ac_cv_c_volatile=yes, ac_cv_c_volatile=no)])
4221 +-if test $ac_cv_c_volatile = no; then
4222 +-  AC_DEFINE(volatile,,
4223 +-            [Define to empty if the keyword `volatile' does not work.
4224 +-             Warning: valid code using `volatile' can become incorrect
4225 +-             without.  Disable with care.])
4226 +-fi
4227 +-])
4228 +-
4229 +-# AC_C_PROTOTYPES
4230 +-# ---------------
4231 +-# Check if the C compiler supports prototypes, included if it needs
4232 +-# options.
4233 +-AC_DEFUN(AC_C_PROTOTYPES,
4234 +-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
4235 +-AC_REQUIRE([AC_PROG_CPP])dnl
4236 +-AC_MSG_CHECKING([for function prototypes])
4237 +-if test "$ac_cv_prog_cc_stdc" != no; then
4238 +-  AC_MSG_RESULT(yes)
4239 +-  AC_DEFINE(PROTOTYPES, 1,
4240 +-            [Define if the compiler supports function prototypes.])
4241 +-else
4242 +-  AC_MSG_RESULT(no)
4243 +-fi
4244 +-])# AC_C_PROTOTYPES
4245 +-
4246 +-dnl The following is a bit different from the prerelease autoconf at
4247 +-dnl this time since that requires extra definitions.
4248 +-
4249 +-dnl By default, many hosts won't let programs access large files;
4250 +-dnl one must use special compiler options to get large-file access to work.
4251 +-dnl For more details about this brain damage please see:
4252 +-dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
4253 +-
4254 +-dnl Written by Paul Eggert <eggert@twinsun.com>.
4255 +-
4256 +-dnl Internal subroutine of AC_SYS_LARGEFILE.
4257 +-dnl AC_SYS_LARGEFILE_TEST_INCLUDES
4258 +-AC_DEFUN(AC_SYS_LARGEFILE_TEST_INCLUDES,
4259 +-  [[#include <sys/types.h>
4260 +-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4261 +-  ]])
4262 +-
4263 +-dnl Internal subroutine of AC_SYS_LARGEFILE.
4264 +-dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
4265 +-AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
4266 +-  [AC_CACHE_CHECK([for $1 value needed for large files], $3,
4267 +-     [$3=no
4268 +-      AC_TRY_COMPILE([$5],
4269 +-      [$6], 
4270 +-      ,
4271 +-      [AC_TRY_COMPILE([#define $1 $2]
4272 +-[$5]
4273 +-         ,
4274 +-         [$6],
4275 +-         [$3=$2])])])
4276 +-   if test "[$]$3" != no; then
4277 +-     AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
4278 +-   fi])
4279 +-
4280 +-AC_DEFUN(AC_SYS_LARGEFILE,
4281 +-  [AC_REQUIRE([AC_PROG_CC])
4282 +-   AC_ARG_ENABLE(largefile,
4283 +-     [  --disable-largefile     omit support for large files])
4284 +-   if test "$enable_largefile" != no; then
4285 +-
4286 +-     AC_CACHE_CHECK([for special C compiler options needed for large files],
4287 +-       ac_cv_sys_largefile_CC,
4288 +-       [ac_cv_sys_largefile_CC=no
4289 +-        if test "$GCC" != yes; then
4290 +-        # IRIX 6.2 and later do not support large files by default,
4291 +-        # so use the C compiler's -n32 option if that helps.
4292 +-        AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
4293 +-          [ac_save_CC="$CC"
4294 +-           CC="$CC -n32"
4295 +-           AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, ,
4296 +-             ac_cv_sys_largefile_CC=' -n32')
4297 +-           CC="$ac_save_CC"])
4298 +-        fi])
4299 +-     if test "$ac_cv_sys_largefile_CC" != no; then
4300 +-       CC="$CC$ac_cv_sys_largefile_CC"
4301 +-     fi
4302 +-
4303 +-     AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
4304 +-       ac_cv_sys_file_offset_bits,
4305 +-       [Number of bits in a file offset, on hosts where this is settable.],
4306 +-       AC_SYS_LARGEFILE_TEST_INCLUDES)
4307 +-     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
4308 +-       ac_cv_sys_large_files,
4309 +-       [Define for large files, on AIX-style hosts.]
4310 +-       AC_SYS_LARGEFILE_TEST_INCLUDES)
4311 +-   fi
4312 +-  ])
4313 +-
4314 +-AC_DEFUN(AC_FUNC_FSEEKO,
4315 +-  [AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
4316 +-     ac_cv_sys_largefile_source,
4317 +-     [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
4318 +-     [#include <stdio.h>], [return !fseeko;])
4319 +-   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4320 +-   # in glibc 2.1.3, but that breaks too many other things.
4321 +-   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4322 +-
4323 +-   AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko,
4324 +-     [ac_cv_func_fseeko=no
4325 +-      AC_TRY_LINK([#include <stdio.h>],
4326 +-        [return fseeko && fseeko (stdin, 0, 0);],
4327 +-      [ac_cv_func_fseeko=yes])])
4328 +-   if test $ac_cv_func_fseeko != no; then
4329 +-     AC_DEFINE(HAVE_FSEEKO, 1,
4330 +-       [Define if fseeko (and presumably ftello) exists and is declared.])
4331 +-   fi])
4332 +-
4333 +-undefine([AC_FUNC_MMAP])dnl
4334 +-dnl The autoconf 2.13 version loses on OSF, at least,
4335 +-dnl by messing up the declaration of malloc.
4336 +-AC_DEFUN([AC_FUNC_MMAP],
4337 +-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
4338 +-AC_CHECK_FUNCS(getpagesize)
4339 +-AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
4340 +-[AC_TRY_RUN(
4341 +-[/* Thanks to Mike Haertel and Jim Avera for this test.
4342 +-   Here is a matrix of mmap possibilities:
4343 +-      mmap private not fixed
4344 +-      mmap private fixed at somewhere currently unmapped
4345 +-      mmap private fixed at somewhere already mapped
4346 +-      mmap shared not fixed
4347 +-      mmap shared fixed at somewhere currently unmapped
4348 +-      mmap shared fixed at somewhere already mapped
4349 +-   For private mappings, we should verify that changes cannot be read()
4350 +-   back from the file, nor mmap's back from the file at a different
4351 +-   address.  (There have been systems where private was not correctly
4352 +-   implemented like the infamous i386 svr4.0, and systems where the
4353 +-   VM page cache was not coherent with the file system buffer cache
4354 +-   like early versions of FreeBSD and possibly contemporary NetBSD.)
4355 +-   For shared mappings, we should conversely verify that changes get
4356 +-   propogated back to all the places they're supposed to be.
4357 +-
4358 +-   Grep wants private fixed already mapped.
4359 +-   The main things grep needs to know about mmap are:
4360 +-   * does it exist and is it safe to write into the mmap'd area
4361 +-   * how to use it (BSD variants)  */
4362 +-#include <sys/types.h>
4363 +-#include <fcntl.h>
4364 +-#include <sys/mman.h>
4365 +-
4366 +-#if STDC_HEADERS || HAVE_STDLIB_H
4367 +-# include <stdlib.h>
4368 +-#else
4369 +-char *malloc ();
4370 +-#endif
4371 +-#if HAVE_UNISTD_H
4372 +-# include <unistd.h>
4373 +-#endif
4374 +-#if HAVE_SYS_STAT_H
4375 +-# include <sys/stat.h>
4376 +-#endif
4377 +-
4378 +-/* This mess was copied from the GNU getpagesize.h.  */
4379 +-#if !HAVE_GETPAGESIZE
4380 +-/* Assume that all systems that can run configure have sys/param.h.  */
4381 +-# if !HAVE_SYS_PARAM_H
4382 +-#  define HAVE_SYS_PARAM_H 1
4383 +-# endif
4384 +-
4385 +-# ifdef _SC_PAGESIZE
4386 +-#  define getpagesize() sysconf(_SC_PAGESIZE)
4387 +-# else /* no _SC_PAGESIZE */
4388 +-#  if HAVE_SYS_PARAM_H
4389 +-#   include <sys/param.h>
4390 +-#   ifdef EXEC_PAGESIZE
4391 +-#    define getpagesize() EXEC_PAGESIZE
4392 +-#   else /* no EXEC_PAGESIZE */
4393 +-#    ifdef NBPG
4394 +-#     define getpagesize() NBPG * CLSIZE
4395 +-#     ifndef CLSIZE
4396 +-#      define CLSIZE 1
4397 +-#     endif /* no CLSIZE */
4398 +-#    else /* no NBPG */
4399 +-#     ifdef NBPC
4400 +-#      define getpagesize() NBPC
4401 +-#     else /* no NBPC */
4402 +-#      ifdef PAGESIZE
4403 +-#       define getpagesize() PAGESIZE
4404 +-#      endif /* PAGESIZE */
4405 +-#     endif /* no NBPC */
4406 +-#    endif /* no NBPG */
4407 +-#   endif /* no EXEC_PAGESIZE */
4408 +-#  else /* no HAVE_SYS_PARAM_H */
4409 +-#   define getpagesize() 8192 /* punt totally */
4410 +-#  endif /* no HAVE_SYS_PARAM_H */
4411 +-# endif /* no _SC_PAGESIZE */
4412 +-
4413 +-#endif /* no HAVE_GETPAGESIZE */
4414 +-
4415 +-int
4416 +-main ()
4417 +-{
4418 +-  char *data, *data2, *data3;
4419 +-  int i, pagesize;
4420 +-  int fd;
4421 +-
4422 +-  pagesize = getpagesize ();
4423 +-
4424 +-  /* First, make a file with some known garbage in it. */
4425 +-  data = (char *) malloc (pagesize);
4426 +-  if (!data)
4427 +-    exit (1);
4428 +-  for (i = 0; i < pagesize; ++i)
4429 +-    *(data + i) = rand ();
4430 +-  umask (0);
4431 +-  fd = creat ("conftestmmap", 0600);
4432 +-  if (fd < 0)
4433 +-    exit (1);
4434 +-  if (write (fd, data, pagesize) != pagesize)
4435 +-    exit (1);
4436 +-  close (fd);
4437 +-
4438 +-  /* Next, try to mmap the file at a fixed address which already has
4439 +-     something else allocated at it.  If we can, also make sure that
4440 +-     we see the same garbage.  */
4441 +-  fd = open ("conftestmmap", O_RDWR);
4442 +-  if (fd < 0)
4443 +-    exit (1);
4444 +-  data2 = (char *) malloc (2 * pagesize);
4445 +-  if (!data2)
4446 +-    exit (1);
4447 +-  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4448 +-  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4449 +-                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
4450 +-    exit (1);
4451 +-  for (i = 0; i < pagesize; ++i)
4452 +-    if (*(data + i) != *(data2 + i))
4453 +-      exit (1);
4454 +-
4455 +-  /* Finally, make sure that changes to the mapped area do not
4456 +-     percolate back to the file as seen by read().  (This is a bug on
4457 +-     some variants of i386 svr4.0.)  */
4458 +-  for (i = 0; i < pagesize; ++i)
4459 +-    *(data2 + i) = *(data2 + i) + 1;
4460 +-  data3 = (char *) malloc (pagesize);
4461 +-  if (!data3)
4462 +-    exit (1);
4463 +-  if (read (fd, data3, pagesize) != pagesize)
4464 +-    exit (1);
4465 +-  for (i = 0; i < pagesize; ++i)
4466 +-    if (*(data + i) != *(data3 + i))
4467 +-      exit (1);
4468 +-  close (fd);
4469 +-  unlink ("conftestmmap");
4470 +-  exit (0);
4471 +-}], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no,
4472 +-ac_cv_func_mmap_fixed_mapped=no)])
4473 +-if test $ac_cv_func_mmap_fixed_mapped = yes; then
4474 +-  AC_DEFINE(HAVE_MMAP, 1,
4475 +-            [Define if you have a working `mmap' system call.])
4476 +-fi
4477 +-])# AC_FUNC_MMAP
4478 +-
4479 +-) dnl ifelse
4480 +diff -ruN -x autom4te.cache autodiff-old/configure autodiff-new/configure
4481 +--- autodiff-old/configure     2004-02-25 19:14:52.000000000 -0600
4482 ++++ autodiff-new/configure     2004-04-06 17:47:16.000000000 -0500
4483 +@@ -1,57 +1,326 @@
4484 + #! /bin/sh
4485 +-
4486 + # Guess values for system-dependent variables and create Makefiles.
4487 +-# Generated automatically using autoconf version 2.13 
4488 +-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
4489 ++# Generated by GNU Autoconf 2.59.
4490 + #
4491 ++# Copyright (C) 2003 Free Software Foundation, Inc.
4492 + # This configure script is free software; the Free Software Foundation
4493 + # gives unlimited permission to copy, distribute and modify it.
4494 ++## --------------------- ##
4495 ++## M4sh Initialization.  ##
4496 ++## --------------------- ##
4497 ++
4498 ++# Be Bourne compatible
4499 ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4500 ++  emulate sh
4501 ++  NULLCMD=:
4502 ++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4503 ++  # is contrary to our usage.  Disable this feature.
4504 ++  alias -g '${1+"$@"}'='"$@"'
4505 ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4506 ++  set -o posix
4507 ++fi
4508 ++DUALCASE=1; export DUALCASE # for MKS sh
4509 ++
4510 ++# Support unset when possible.
4511 ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4512 ++  as_unset=unset
4513 ++else
4514 ++  as_unset=false
4515 ++fi
4516 ++
4517 ++
4518 ++# Work around bugs in pre-3.0 UWIN ksh.
4519 ++$as_unset ENV MAIL MAILPATH
4520 ++PS1='$ '
4521 ++PS2='> '
4522 ++PS4='+ '
4523 ++
4524 ++# NLS nuisances.
4525 ++for as_var in \
4526 ++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4527 ++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4528 ++  LC_TELEPHONE LC_TIME
4529 ++do
4530 ++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4531 ++    eval $as_var=C; export $as_var
4532 ++  else
4533 ++    $as_unset $as_var
4534 ++  fi
4535 ++done
4536 ++
4537 ++# Required to use basename.
4538 ++if expr a : '\(a\)' >/dev/null 2>&1; then
4539 ++  as_expr=expr
4540 ++else
4541 ++  as_expr=false
4542 ++fi
4543 ++
4544 ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4545 ++  as_basename=basename
4546 ++else
4547 ++  as_basename=false
4548 ++fi
4549 ++
4550 ++
4551 ++# Name of the executable.
4552 ++as_me=`$as_basename "$0" ||
4553 ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4554 ++       X"$0" : 'X\(//\)$' \| \
4555 ++       X"$0" : 'X\(/\)$' \| \
4556 ++       .     : '\(.\)' 2>/dev/null ||
4557 ++echo X/"$0" |
4558 ++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4559 ++        /^X\/\(\/\/\)$/{ s//\1/; q; }
4560 ++        /^X\/\(\/\).*/{ s//\1/; q; }
4561 ++        s/.*/./; q'`
4562 ++
4563 ++
4564 ++# PATH needs CR, and LINENO needs CR and PATH.
4565 ++# Avoid depending upon Character Ranges.
4566 ++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4567 ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4568 ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4569 ++as_cr_digits='0123456789'
4570 ++as_cr_alnum=$as_cr_Letters$as_cr_digits
4571 ++
4572 ++# The user is always right.
4573 ++if test "${PATH_SEPARATOR+set}" != set; then
4574 ++  echo "#! /bin/sh" >conf$$.sh
4575 ++  echo  "exit 0"   >>conf$$.sh
4576 ++  chmod +x conf$$.sh
4577 ++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4578 ++    PATH_SEPARATOR=';'
4579 ++  else
4580 ++    PATH_SEPARATOR=:
4581 ++  fi
4582 ++  rm -f conf$$.sh
4583 ++fi
4584 ++
4585 ++
4586 ++  as_lineno_1=$LINENO
4587 ++  as_lineno_2=$LINENO
4588 ++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4589 ++  test "x$as_lineno_1" != "x$as_lineno_2" &&
4590 ++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4591 ++  # Find who we are.  Look in the path if we contain no path at all
4592 ++  # relative or not.
4593 ++  case $0 in
4594 ++    *[\\/]* ) as_myself=$0 ;;
4595 ++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 ++for as_dir in $PATH
4597 ++do
4598 ++  IFS=$as_save_IFS
4599 ++  test -z "$as_dir" && as_dir=.
4600 ++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4601 ++done
4602 ++
4603 ++       ;;
4604 ++  esac
4605 ++  # We did not find ourselves, most probably we were run as `sh COMMAND'
4606 ++  # in which case we are not to be found in the path.
4607 ++  if test "x$as_myself" = x; then
4608 ++    as_myself=$0
4609 ++  fi
4610 ++  if test ! -f "$as_myself"; then
4611 ++    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
4612 ++   { (exit 1); exit 1; }; }
4613 ++  fi
4614 ++  case $CONFIG_SHELL in
4615 ++  '')
4616 ++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4618 ++do
4619 ++  IFS=$as_save_IFS
4620 ++  test -z "$as_dir" && as_dir=.
4621 ++  for as_base in sh bash ksh sh5; do
4622 ++       case $as_dir in
4623 ++       /*)
4624 ++         if ("$as_dir/$as_base" -c '
4625 ++  as_lineno_1=$LINENO
4626 ++  as_lineno_2=$LINENO
4627 ++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4628 ++  test "x$as_lineno_1" != "x$as_lineno_2" &&
4629 ++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4630 ++           $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4631 ++           $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4632 ++           CONFIG_SHELL=$as_dir/$as_base
4633 ++           export CONFIG_SHELL
4634 ++           exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4635 ++         fi;;
4636 ++       esac
4637 ++       done
4638 ++done
4639 ++;;
4640 ++  esac
4641 ++
4642 ++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4643 ++  # uniformly replaced by the line number.  The first 'sed' inserts a
4644 ++  # line-number line before each line; the second 'sed' does the real
4645 ++  # work.  The second script uses 'N' to pair each line-number line
4646 ++  # with the numbered line, and appends trailing '-' during
4647 ++  # substitution so that $LINENO is not a special case at line end.
4648 ++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4649 ++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4650 ++  sed '=' <$as_myself |
4651 ++    sed '
4652 ++      N
4653 ++      s,$,-,
4654 ++      : loop
4655 ++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4656 ++      t loop
4657 ++      s,-$,,
4658 ++      s,^['$as_cr_digits']*\n,,
4659 ++    ' >$as_me.lineno &&
4660 ++  chmod +x $as_me.lineno ||
4661 ++    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4662 ++   { (exit 1); exit 1; }; }
4663 ++
4664 ++  # Don't try to exec as it changes $[0], causing all sort of problems
4665 ++  # (the dirname of $[0] is not the place where we might find the
4666 ++  # original and so on.  Autoconf is especially sensible to this).
4667 ++  . ./$as_me.lineno
4668 ++  # Exit status is that of the last command.
4669 ++  exit
4670 ++}
4671 ++
4672 ++
4673 ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4674 ++  *c*,-n*) ECHO_N= ECHO_C='
4675 ++' ECHO_T='    ' ;;
4676 ++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4677 ++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4678 ++esac
4679 ++
4680 ++if expr a : '\(a\)' >/dev/null 2>&1; then
4681 ++  as_expr=expr
4682 ++else
4683 ++  as_expr=false
4684 ++fi
4685 ++
4686 ++rm -f conf$$ conf$$.exe conf$$.file
4687 ++echo >conf$$.file
4688 ++if ln -s conf$$.file conf$$ 2>/dev/null; then
4689 ++  # We could just check for DJGPP; but this test a) works b) is more generic
4690 ++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4691 ++  if test -f conf$$.exe; then
4692 ++    # Don't use ln at all; we don't have any links
4693 ++    as_ln_s='cp -p'
4694 ++  else
4695 ++    as_ln_s='ln -s'
4696 ++  fi
4697 ++elif ln conf$$.file conf$$ 2>/dev/null; then
4698 ++  as_ln_s=ln
4699 ++else
4700 ++  as_ln_s='cp -p'
4701 ++fi
4702 ++rm -f conf$$ conf$$.exe conf$$.file
4703 ++
4704 ++if mkdir -p . 2>/dev/null; then
4705 ++  as_mkdir_p=:
4706 ++else
4707 ++  test -d ./-p && rmdir ./-p
4708 ++  as_mkdir_p=false
4709 ++fi
4710 ++
4711 ++as_executable_p="test -f"
4712 ++
4713 ++# Sed expression to map a string onto a valid CPP name.
4714 ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4715 ++
4716 ++# Sed expression to map a string onto a valid variable name.
4717 ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4718 ++
4719
4720 +-# Defaults:
4721 +-ac_help=
4722 ++# IFS
4723 ++# We need space, tab and new line, in precisely that order.
4724 ++as_nl='
4725 ++'
4726 ++IFS="         $as_nl"
4727 ++
4728 ++# CDPATH.
4729 ++$as_unset CDPATH
4730 ++
4731 ++
4732 ++# Name of the host.
4733 ++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
4734 ++# so uname gets run too.
4735 ++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
4736 ++
4737 ++exec 6>&1
4738 ++
4739 ++#
4740 ++# Initializations.
4741 ++#
4742 + ac_default_prefix=/usr/local
4743 +-# Any additions from configure.in:
4744 +-ac_help="$ac_help
4745 +-  --without-gcc           don't use GCC to compile Emacs if GCC is found"
4746 +-ac_help="$ac_help
4747 +-  --without-pop           don't support POP mail retrieval with movemail"
4748 +-ac_help="$ac_help
4749 +-  --with-kerberos         support Kerberos-authenticated POP"
4750 +-ac_help="$ac_help
4751 +-  --with-kerberos5        support Kerberos version 5 authenticated POP"
4752 +-ac_help="$ac_help
4753 +-  --with-hesiod           support Hesiod to get the POP server host"
4754 +-ac_help="$ac_help
4755 +-  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)"
4756 +-ac_help="$ac_help
4757 +-  --with-xpm              use -lXpm for displaying XPM images"
4758 +-ac_help="$ac_help
4759 +-  --with-jpeg             use -ljpeg for displaying JPEG images"
4760 +-ac_help="$ac_help
4761 +-  --with-tiff             use -ltiff for displaying TIFF images"
4762 +-ac_help="$ac_help
4763 +-  --with-gif              use -lungif for displaying GIF images"
4764 +-ac_help="$ac_help
4765 +-  --with-png              use -lpng for displaying PNG images"
4766 +-ac_help="$ac_help
4767 +-  --without-toolkit-scroll-bars
4768 +-                          don't use Motif or Xaw3d scroll bars"
4769 +-ac_help="$ac_help
4770 +-  --without-xim           don't use X11 XIM"
4771 +-ac_help="$ac_help
4772 +-  --disable-largefile     omit support for large files"
4773 +-ac_help="$ac_help
4774 +-  --with-x                use the X Window System"
4775 ++ac_config_libobj_dir=.
4776 ++cross_compiling=no
4777 ++subdirs=
4778 ++MFLAGS=
4779 ++MAKEFLAGS=
4780 ++SHELL=${CONFIG_SHELL-/bin/sh}
4781 ++
4782 ++# Maximum number of lines to put in a shell here document.
4783 ++# This variable seems obsolete.  It should probably be removed, and
4784 ++# only ac_max_sed_lines should be used.
4785 ++: ${ac_max_here_lines=38}
4786 ++
4787 ++# Identity of this package.
4788 ++PACKAGE_NAME=
4789 ++PACKAGE_TARNAME=
4790 ++PACKAGE_VERSION=
4791 ++PACKAGE_STRING=
4792 ++PACKAGE_BUGREPORT=
4793 ++
4794 ++ac_unique_file="src/lisp.h"
4795 ++ac_config_libobj_dir=src
4796 ++# Factoring default headers for most tests.
4797 ++ac_includes_default="\
4798 ++#include <stdio.h>
4799 ++#if HAVE_SYS_TYPES_H
4800 ++# include <sys/types.h>
4801 ++#endif
4802 ++#if HAVE_SYS_STAT_H
4803 ++# include <sys/stat.h>
4804 ++#endif
4805 ++#if STDC_HEADERS
4806 ++# include <stdlib.h>
4807 ++# include <stddef.h>
4808 ++#else
4809 ++# if HAVE_STDLIB_H
4810 ++#  include <stdlib.h>
4811 ++# endif
4812 ++#endif
4813 ++#if HAVE_STRING_H
4814 ++# if !STDC_HEADERS && HAVE_MEMORY_H
4815 ++#  include <memory.h>
4816 ++# endif
4817 ++# include <string.h>
4818 ++#endif
4819 ++#if HAVE_STRINGS_H
4820 ++# include <strings.h>
4821 ++#endif
4822 ++#if HAVE_INTTYPES_H
4823 ++# include <inttypes.h>
4824 ++#else
4825 ++# if HAVE_STDINT_H
4826 ++#  include <stdint.h>
4827 ++# endif
4828 ++#endif
4829 ++#if HAVE_UNISTD_H
4830 ++# include <unistd.h>
4831 ++#endif"
4832 ++
4833 ++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile MOVEMAIL_LOCK_LIBS LTLIBOBJS'
4834 ++ac_subst_files=''
4835
4836 + # Initialize some variables set by options.
4837 ++ac_init_help=
4838 ++ac_init_version=false
4839 + # The variables have the same names as the options, with
4840 + # dashes changed to underlines.
4841 +-build=NONE
4842 +-cache_file=./config.cache
4843 ++cache_file=/dev/null
4844 + exec_prefix=NONE
4845 +-host=NONE
4846 + no_create=
4847 +-nonopt=NONE
4848 + no_recursion=
4849 + prefix=NONE
4850 + program_prefix=NONE
4851 +@@ -60,10 +329,15 @@
4852 + silent=
4853 + site=
4854 + srcdir=
4855 +-target=NONE
4856 + verbose=
4857 + x_includes=NONE
4858 + x_libraries=NONE
4859 ++
4860 ++# Installation directory options.
4861 ++# These are left unexpanded so users can "make install exec_prefix=/foo"
4862 ++# and all the variables that are supposed to be based on exec_prefix
4863 ++# by default will actually change.
4864 ++# Use braces instead of parens because sh, perl, etc. also accept them.
4865 + bindir='${exec_prefix}/bin'
4866 + sbindir='${exec_prefix}/sbin'
4867 + libexecdir='${exec_prefix}/libexec'
4868 +@@ -77,17 +351,9 @@
4869 + infodir='${prefix}/info'
4870 + mandir='${prefix}/man'
4871
4872 +-# Initialize some other variables.
4873 +-subdirs=
4874 +-MFLAGS= MAKEFLAGS=
4875 +-SHELL=${CONFIG_SHELL-/bin/sh}
4876 +-# Maximum number of lines to put in a shell here document.
4877 +-ac_max_here_lines=12
4878 +-
4879 + ac_prev=
4880 + for ac_option
4881 + do
4882 +-
4883 +   # If the previous option needs an argument, assign it.
4884 +   if test -n "$ac_prev"; then
4885 +     eval "$ac_prev=\$ac_option"
4886 +@@ -95,59 +361,59 @@
4887 +     continue
4888 +   fi
4889
4890 +-  case "$ac_option" in
4891 +-  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
4892 +-  *) ac_optarg= ;;
4893 +-  esac
4894 ++  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4895
4896 +   # Accept the important Cygnus configure options, so we can diagnose typos.
4897
4898 +-  case "$ac_option" in
4899 ++  case $ac_option in
4900
4901 +   -bindir | --bindir | --bindi | --bind | --bin | --bi)
4902 +     ac_prev=bindir ;;
4903 +   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4904 +-    bindir="$ac_optarg" ;;
4905 ++    bindir=$ac_optarg ;;
4906
4907 +   -build | --build | --buil | --bui | --bu)
4908 +-    ac_prev=build ;;
4909 ++    ac_prev=build_alias ;;
4910 +   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
4911 +-    build="$ac_optarg" ;;
4912 ++    build_alias=$ac_optarg ;;
4913
4914 +   -cache-file | --cache-file | --cache-fil | --cache-fi \
4915 +   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4916 +     ac_prev=cache_file ;;
4917 +   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4918 +   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4919 +-    cache_file="$ac_optarg" ;;
4920 ++    cache_file=$ac_optarg ;;
4921 ++
4922 ++  --config-cache | -C)
4923 ++    cache_file=config.cache ;;
4924
4925 +   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4926 +     ac_prev=datadir ;;
4927 +   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4928 +   | --da=*)
4929 +-    datadir="$ac_optarg" ;;
4930 ++    datadir=$ac_optarg ;;
4931
4932 +   -disable-* | --disable-*)
4933 +-    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
4934 ++    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
4935 +     # Reject names that are not valid shell variable names.
4936 +-    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
4937 +-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
4938 +-    fi
4939 +-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
4940 +-    eval "enable_${ac_feature}=no" ;;
4941 ++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4942 ++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
4943 ++   { (exit 1); exit 1; }; }
4944 ++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4945 ++    eval "enable_$ac_feature=no" ;;
4946
4947 +   -enable-* | --enable-*)
4948 +-    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
4949 ++    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
4950 +     # Reject names that are not valid shell variable names.
4951 +-    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
4952 +-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
4953 +-    fi
4954 +-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
4955 +-    case "$ac_option" in
4956 +-      *=*) ;;
4957 ++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
4958 ++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
4959 ++   { (exit 1); exit 1; }; }
4960 ++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
4961 ++    case $ac_option in
4962 ++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
4963 +       *) ac_optarg=yes ;;
4964 +     esac
4965 +-    eval "enable_${ac_feature}='$ac_optarg'" ;;
4966 ++    eval "enable_$ac_feature='$ac_optarg'" ;;
4967
4968 +   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4969 +   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4970 +@@ -156,95 +422,47 @@
4971 +   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4972 +   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4973 +   | --exec=* | --exe=* | --ex=*)
4974 +-    exec_prefix="$ac_optarg" ;;
4975 ++    exec_prefix=$ac_optarg ;;
4976
4977 +   -gas | --gas | --ga | --g)
4978 +     # Obsolete; use --with-gas.
4979 +     with_gas=yes ;;
4980
4981 +-  -help | --help | --hel | --he)
4982 +-    # Omit some internal or obsolete options to make the list less imposing.
4983 +-    # This message is too long to be a string in the A/UX 3.1 sh.
4984 +-    cat << EOF
4985 +-Usage: configure [options] [host]
4986 +-Options: [defaults in brackets after descriptions]
4987 +-Configuration:
4988 +-  --cache-file=FILE       cache test results in FILE
4989 +-  --help                  print this message
4990 +-  --no-create             do not create output files
4991 +-  --quiet, --silent       do not print \`checking...' messages
4992 +-  --version               print the version of autoconf that created configure
4993 +-Directory and file names:
4994 +-  --prefix=PREFIX         install architecture-independent files in PREFIX
4995 +-                          [$ac_default_prefix]
4996 +-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
4997 +-                          [same as prefix]
4998 +-  --bindir=DIR            user executables in DIR [EPREFIX/bin]
4999 +-  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
5000 +-  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
5001 +-  --datadir=DIR           read-only architecture-independent data in DIR
5002 +-                          [PREFIX/share]
5003 +-  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
5004 +-  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
5005 +-                          [PREFIX/com]
5006 +-  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
5007 +-  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
5008 +-  --includedir=DIR        C header files in DIR [PREFIX/include]
5009 +-  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
5010 +-  --infodir=DIR           info documentation in DIR [PREFIX/info]
5011 +-  --mandir=DIR            man documentation in DIR [PREFIX/man]
5012 +-  --srcdir=DIR            find the sources in DIR [configure dir or ..]
5013 +-  --program-prefix=PREFIX prepend PREFIX to installed program names
5014 +-  --program-suffix=SUFFIX append SUFFIX to installed program names
5015 +-  --program-transform-name=PROGRAM
5016 +-                          run sed PROGRAM on installed program names
5017 +-EOF
5018 +-    cat << EOF
5019 +-Host type:
5020 +-  --build=BUILD           configure for building on BUILD [BUILD=HOST]
5021 +-  --host=HOST             configure for HOST [guessed]
5022 +-  --target=TARGET         configure for TARGET [TARGET=HOST]
5023 +-Features and packages:
5024 +-  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
5025 +-  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
5026 +-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
5027 +-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
5028 +-  --x-includes=DIR        X include files are in DIR
5029 +-  --x-libraries=DIR       X library files are in DIR
5030 +-EOF
5031 +-    if test -n "$ac_help"; then
5032 +-      echo "--enable and --with options recognized:$ac_help"
5033 +-    fi
5034 +-    exit 0 ;;
5035 ++  -help | --help | --hel | --he | -h)
5036 ++    ac_init_help=long ;;
5037 ++  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
5038 ++    ac_init_help=recursive ;;
5039 ++  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
5040 ++    ac_init_help=short ;;
5041
5042 +   -host | --host | --hos | --ho)
5043 +-    ac_prev=host ;;
5044 ++    ac_prev=host_alias ;;
5045 +   -host=* | --host=* | --hos=* | --ho=*)
5046 +-    host="$ac_optarg" ;;
5047 ++    host_alias=$ac_optarg ;;
5048
5049 +   -includedir | --includedir | --includedi | --included | --include \
5050 +   | --includ | --inclu | --incl | --inc)
5051 +     ac_prev=includedir ;;
5052 +   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
5053 +   | --includ=* | --inclu=* | --incl=* | --inc=*)
5054 +-    includedir="$ac_optarg" ;;
5055 ++    includedir=$ac_optarg ;;
5056
5057 +   -infodir | --infodir | --infodi | --infod | --info | --inf)
5058 +     ac_prev=infodir ;;
5059 +   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5060 +-    infodir="$ac_optarg" ;;
5061 ++    infodir=$ac_optarg ;;
5062
5063 +   -libdir | --libdir | --libdi | --libd)
5064 +     ac_prev=libdir ;;
5065 +   -libdir=* | --libdir=* | --libdi=* | --libd=*)
5066 +-    libdir="$ac_optarg" ;;
5067 ++    libdir=$ac_optarg ;;
5068
5069 +   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
5070 +   | --libexe | --libex | --libe)
5071 +     ac_prev=libexecdir ;;
5072 +   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
5073 +   | --libexe=* | --libex=* | --libe=*)
5074 +-    libexecdir="$ac_optarg" ;;
5075 ++    libexecdir=$ac_optarg ;;
5076
5077 +   -localstatedir | --localstatedir | --localstatedi | --localstated \
5078 +   | --localstate | --localstat | --localsta | --localst \
5079 +@@ -253,19 +471,19 @@
5080 +   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5081 +   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
5082 +   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5083 +-    localstatedir="$ac_optarg" ;;
5084 ++    localstatedir=$ac_optarg ;;
5085
5086 +   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
5087 +     ac_prev=mandir ;;
5088 +   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5089 +-    mandir="$ac_optarg" ;;
5090 ++    mandir=$ac_optarg ;;
5091
5092 +   -nfp | --nfp | --nf)
5093 +     # Obsolete; use --without-fp.
5094 +     with_fp=no ;;
5095
5096 +   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5097 +-  | --no-cr | --no-c)
5098 ++  | --no-cr | --no-c | -n)
5099 +     no_create=yes ;;
5100
5101 +   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5102 +@@ -279,26 +497,26 @@
5103 +   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
5104 +   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
5105 +   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5106 +-    oldincludedir="$ac_optarg" ;;
5107 ++    oldincludedir=$ac_optarg ;;
5108
5109 +   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5110 +     ac_prev=prefix ;;
5111 +   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5112 +-    prefix="$ac_optarg" ;;
5113 ++    prefix=$ac_optarg ;;
5114
5115 +   -program-prefix | --program-prefix | --program-prefi | --program-pref \
5116 +   | --program-pre | --program-pr | --program-p)
5117 +     ac_prev=program_prefix ;;
5118 +   -program-prefix=* | --program-prefix=* | --program-prefi=* \
5119 +   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5120 +-    program_prefix="$ac_optarg" ;;
5121 ++    program_prefix=$ac_optarg ;;
5122
5123 +   -program-suffix | --program-suffix | --program-suffi | --program-suff \
5124 +   | --program-suf | --program-su | --program-s)
5125 +     ac_prev=program_suffix ;;
5126 +   -program-suffix=* | --program-suffix=* | --program-suffi=* \
5127 +   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5128 +-    program_suffix="$ac_optarg" ;;
5129 ++    program_suffix=$ac_optarg ;;
5130
5131 +   -program-transform-name | --program-transform-name \
5132 +   | --program-transform-nam | --program-transform-na \
5133 +@@ -315,7 +533,7 @@
5134 +   | --program-transfo=* | --program-transf=* \
5135 +   | --program-trans=* | --program-tran=* \
5136 +   | --progr-tra=* | --program-tr=* | --program-t=*)
5137 +-    program_transform_name="$ac_optarg" ;;
5138 ++    program_transform_name=$ac_optarg ;;
5139
5140 +   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5141 +   | -silent | --silent | --silen | --sile | --sil)
5142 +@@ -325,7 +543,7 @@
5143 +     ac_prev=sbindir ;;
5144 +   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
5145 +   | --sbi=* | --sb=*)
5146 +-    sbindir="$ac_optarg" ;;
5147 ++    sbindir=$ac_optarg ;;
5148
5149 +   -sharedstatedir | --sharedstatedir | --sharedstatedi \
5150 +   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5151 +@@ -336,58 +554,57 @@
5152 +   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5153 +   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5154 +   | --sha=* | --sh=*)
5155 +-    sharedstatedir="$ac_optarg" ;;
5156 ++    sharedstatedir=$ac_optarg ;;
5157
5158 +   -site | --site | --sit)
5159 +     ac_prev=site ;;
5160 +   -site=* | --site=* | --sit=*)
5161 +-    site="$ac_optarg" ;;
5162 ++    site=$ac_optarg ;;
5163
5164 +   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5165 +     ac_prev=srcdir ;;
5166 +   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5167 +-    srcdir="$ac_optarg" ;;
5168 ++    srcdir=$ac_optarg ;;
5169
5170 +   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5171 +   | --syscon | --sysco | --sysc | --sys | --sy)
5172 +     ac_prev=sysconfdir ;;
5173 +   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5174 +   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5175 +-    sysconfdir="$ac_optarg" ;;
5176 ++    sysconfdir=$ac_optarg ;;
5177
5178 +   -target | --target | --targe | --targ | --tar | --ta | --t)
5179 +-    ac_prev=target ;;
5180 ++    ac_prev=target_alias ;;
5181 +   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5182 +-    target="$ac_optarg" ;;
5183 ++    target_alias=$ac_optarg ;;
5184
5185 +   -v | -verbose | --verbose | --verbos | --verbo | --verb)
5186 +     verbose=yes ;;
5187
5188 +-  -version | --version | --versio | --versi | --vers)
5189 +-    echo "configure generated by autoconf version 2.13"
5190 +-    exit 0 ;;
5191 ++  -version | --version | --versio | --versi | --vers | -V)
5192 ++    ac_init_version=: ;;
5193
5194 +   -with-* | --with-*)
5195 +-    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
5196 ++    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5197 +     # Reject names that are not valid shell variable names.
5198 +-    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
5199 +-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5200 +-    fi
5201 ++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
5202 ++      { echo "$as_me: error: invalid package name: $ac_package" >&2
5203 ++   { (exit 1); exit 1; }; }
5204 +     ac_package=`echo $ac_package| sed 's/-/_/g'`
5205 +-    case "$ac_option" in
5206 +-      *=*) ;;
5207 ++    case $ac_option in
5208 ++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
5209 +       *) ac_optarg=yes ;;
5210 +     esac
5211 +-    eval "with_${ac_package}='$ac_optarg'" ;;
5212 ++    eval "with_$ac_package='$ac_optarg'" ;;
5213
5214 +   -without-* | --without-*)
5215 +-    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
5216 ++    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5217 +     # Reject names that are not valid shell variable names.
5218 +-    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
5219 +-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
5220 +-    fi
5221 +-    ac_package=`echo $ac_package| sed 's/-/_/g'`
5222 +-    eval "with_${ac_package}=no" ;;
5223 ++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
5224 ++      { echo "$as_me: error: invalid package name: $ac_package" >&2
5225 ++   { (exit 1); exit 1; }; }
5226 ++    ac_package=`echo $ac_package | sed 's/-/_/g'`
5227 ++    eval "with_$ac_package=no" ;;
5228
5229 +   --x)
5230 +     # Obsolete; use --with-x.
5231 +@@ -398,99 +615,110 @@
5232 +     ac_prev=x_includes ;;
5233 +   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
5234 +   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5235 +-    x_includes="$ac_optarg" ;;
5236 ++    x_includes=$ac_optarg ;;
5237
5238 +   -x-libraries | --x-libraries | --x-librarie | --x-librari \
5239 +   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
5240 +     ac_prev=x_libraries ;;
5241 +   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
5242 +   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5243 +-    x_libraries="$ac_optarg" ;;
5244 ++    x_libraries=$ac_optarg ;;
5245
5246 +-  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
5247 ++  -*) { echo "$as_me: error: unrecognized option: $ac_option
5248 ++Try \`$0 --help' for more information." >&2
5249 ++   { (exit 1); exit 1; }; }
5250 +     ;;
5251
5252 ++  *=*)
5253 ++    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5254 ++    # Reject names that are not valid shell variable names.
5255 ++    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5256 ++      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
5257 ++   { (exit 1); exit 1; }; }
5258 ++    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
5259 ++    eval "$ac_envvar='$ac_optarg'"
5260 ++    export $ac_envvar ;;
5261 ++
5262 +   *)
5263 +-    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
5264 +-      echo "configure: warning: $ac_option: invalid host type" 1>&2
5265 +-    fi
5266 +-    if test "x$nonopt" != xNONE; then
5267 +-      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
5268 +-    fi
5269 +-    nonopt="$ac_option"
5270 ++    # FIXME: should be removed in autoconf 3.0.
5271 ++    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5272 ++    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5273 ++      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5274 ++    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
5275 +     ;;
5276
5277 +   esac
5278 + done
5279
5280 + if test -n "$ac_prev"; then
5281 +-  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
5282 ++  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5283 ++  { echo "$as_me: error: missing argument to $ac_option" >&2
5284 ++   { (exit 1); exit 1; }; }
5285 + fi
5286
5287 +-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5288 +-
5289 +-# File descriptor usage:
5290 +-# 0 standard input
5291 +-# 1 file creation
5292 +-# 2 errors and warnings
5293 +-# 3 some systems may open it to /dev/tty
5294 +-# 4 used on the Kubota Titan
5295 +-# 6 checking for... messages and results
5296 +-# 5 compiler messages saved in config.log
5297 +-if test "$silent" = yes; then
5298 +-  exec 6>/dev/null
5299 +-else
5300 +-  exec 6>&1
5301 +-fi
5302 +-exec 5>./config.log
5303 +-
5304 +-echo "\
5305 +-This file contains any messages produced by compilers while
5306 +-running configure, to aid debugging if configure makes a mistake.
5307 +-" 1>&5
5308 ++# Be sure to have absolute paths.
5309 ++for ac_var in exec_prefix prefix
5310 ++do
5311 ++  eval ac_val=$`echo $ac_var`
5312 ++  case $ac_val in
5313 ++    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
5314 ++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5315 ++   { (exit 1); exit 1; }; };;
5316 ++  esac
5317 ++done
5318
5319 +-# Strip out --no-create and --no-recursion so they do not pile up.
5320 +-# Also quote any args containing shell metacharacters.
5321 +-ac_configure_args=
5322 +-for ac_arg
5323 ++# Be sure to have absolute paths.
5324 ++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
5325 ++            localstatedir libdir includedir oldincludedir infodir mandir
5326 + do
5327 +-  case "$ac_arg" in
5328 +-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5329 +-  | --no-cr | --no-c) ;;
5330 +-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
5331 +-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
5332 +-  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
5333 +-  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5334 +-  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
5335 ++  eval ac_val=$`echo $ac_var`
5336 ++  case $ac_val in
5337 ++    [\\/$]* | ?:[\\/]* ) ;;
5338 ++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5339 ++   { (exit 1); exit 1; }; };;
5340 +   esac
5341 + done
5342
5343 +-# NLS nuisances.
5344 +-# Only set these to C if already set.  These must not be set unconditionally
5345 +-# because not all systems understand e.g. LANG=C (notably SCO).
5346 +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
5347 +-# Non-C LC_CTYPE values break the ctype check.
5348 +-if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
5349 +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
5350 +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
5351 +-if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
5352 ++# There might be people who depend on the old broken behavior: `$host'
5353 ++# used to hold the argument of --host etc.
5354 ++# FIXME: To remove some day.
5355 ++build=$build_alias
5356 ++host=$host_alias
5357 ++target=$target_alias
5358 ++
5359 ++# FIXME: To remove some day.
5360 ++if test "x$host_alias" != x; then
5361 ++  if test "x$build_alias" = x; then
5362 ++    cross_compiling=maybe
5363 ++    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5364 ++    If a cross compiler is detected then cross compile mode will be used." >&2
5365 ++  elif test "x$build_alias" != "x$host_alias"; then
5366 ++    cross_compiling=yes
5367 ++  fi
5368 ++fi
5369
5370 +-# confdefs.h avoids OS command line length limits that DEFS can exceed.
5371 +-rm -rf conftest* confdefs.h
5372 +-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
5373 +-echo > confdefs.h
5374 ++ac_tool_prefix=
5375 ++test -n "$host_alias" && ac_tool_prefix=$host_alias-
5376 ++
5377 ++test "$silent" = yes && exec 6>/dev/null
5378
5379 +-# A filename unique to this package, relative to the directory that
5380 +-# configure is in, which we can look for to find out if srcdir is correct.
5381 +-ac_unique_file=src/lisp.h
5382
5383 + # Find the source files, if location was not specified.
5384 + if test -z "$srcdir"; then
5385 +   ac_srcdir_defaulted=yes
5386 +   # Try the directory containing this script, then its parent.
5387 +-  ac_prog=$0
5388 +-  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
5389 +-  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
5390 ++  ac_confdir=`(dirname "$0") 2>/dev/null ||
5391 ++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5392 ++       X"$0" : 'X\(//\)[^/]' \| \
5393 ++       X"$0" : 'X\(//\)$' \| \
5394 ++       X"$0" : 'X\(/\)' \| \
5395 ++       .     : '\(.\)' 2>/dev/null ||
5396 ++echo X"$0" |
5397 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5398 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5399 ++        /^X\(\/\/\)$/{ s//\1/; q; }
5400 ++        /^X\(\/\).*/{ s//\1/; q; }
5401 ++        s/.*/./; q'`
5402 +   srcdir=$ac_confdir
5403 +   if test ! -r $srcdir/$ac_unique_file; then
5404 +     srcdir=..
5405 +@@ -500,13 +728,487 @@
5406 + fi
5407 + if test ! -r $srcdir/$ac_unique_file; then
5408 +   if test "$ac_srcdir_defaulted" = yes; then
5409 +-    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
5410 ++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
5411 ++   { (exit 1); exit 1; }; }
5412 +   else
5413 +-    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
5414 ++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
5415 ++   { (exit 1); exit 1; }; }
5416 +   fi
5417 + fi
5418 +-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
5419 ++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
5420 ++  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
5421 ++   { (exit 1); exit 1; }; }
5422 ++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
5423 ++ac_env_build_alias_set=${build_alias+set}
5424 ++ac_env_build_alias_value=$build_alias
5425 ++ac_cv_env_build_alias_set=${build_alias+set}
5426 ++ac_cv_env_build_alias_value=$build_alias
5427 ++ac_env_host_alias_set=${host_alias+set}
5428 ++ac_env_host_alias_value=$host_alias
5429 ++ac_cv_env_host_alias_set=${host_alias+set}
5430 ++ac_cv_env_host_alias_value=$host_alias
5431 ++ac_env_target_alias_set=${target_alias+set}
5432 ++ac_env_target_alias_value=$target_alias
5433 ++ac_cv_env_target_alias_set=${target_alias+set}
5434 ++ac_cv_env_target_alias_value=$target_alias
5435 ++ac_env_CC_set=${CC+set}
5436 ++ac_env_CC_value=$CC
5437 ++ac_cv_env_CC_set=${CC+set}
5438 ++ac_cv_env_CC_value=$CC
5439 ++ac_env_CFLAGS_set=${CFLAGS+set}
5440 ++ac_env_CFLAGS_value=$CFLAGS
5441 ++ac_cv_env_CFLAGS_set=${CFLAGS+set}
5442 ++ac_cv_env_CFLAGS_value=$CFLAGS
5443 ++ac_env_LDFLAGS_set=${LDFLAGS+set}
5444 ++ac_env_LDFLAGS_value=$LDFLAGS
5445 ++ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
5446 ++ac_cv_env_LDFLAGS_value=$LDFLAGS
5447 ++ac_env_CPPFLAGS_set=${CPPFLAGS+set}
5448 ++ac_env_CPPFLAGS_value=$CPPFLAGS
5449 ++ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
5450 ++ac_cv_env_CPPFLAGS_value=$CPPFLAGS
5451 ++ac_env_CPP_set=${CPP+set}
5452 ++ac_env_CPP_value=$CPP
5453 ++ac_cv_env_CPP_set=${CPP+set}
5454 ++ac_cv_env_CPP_value=$CPP
5455 ++
5456 ++#
5457 ++# Report the --help message.
5458 ++#
5459 ++if test "$ac_init_help" = "long"; then
5460 ++  # Omit some internal or obsolete options to make the list less imposing.
5461 ++  # This message is too long to be a string in the A/UX 3.1 sh.
5462 ++  cat <<_ACEOF
5463 ++\`configure' configures this package to adapt to many kinds of systems.
5464 ++
5465 ++Usage: $0 [OPTION]... [VAR=VALUE]...
5466 ++
5467 ++To assign environment variables (e.g., CC, CFLAGS...), specify them as
5468 ++VAR=VALUE.  See below for descriptions of some of the useful variables.
5469 ++
5470 ++Defaults for the options are specified in brackets.
5471 ++
5472 ++Configuration:
5473 ++  -h, --help              display this help and exit
5474 ++      --help=short        display options specific to this package
5475 ++      --help=recursive    display the short help of all the included packages
5476 ++  -V, --version           display version information and exit
5477 ++  -q, --quiet, --silent   do not print \`checking...' messages
5478 ++      --cache-file=FILE   cache test results in FILE [disabled]
5479 ++  -C, --config-cache      alias for \`--cache-file=config.cache'
5480 ++  -n, --no-create         do not create output files
5481 ++      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
5482 ++
5483 ++_ACEOF
5484 ++
5485 ++  cat <<_ACEOF
5486 ++Installation directories:
5487 ++  --prefix=PREFIX         install architecture-independent files in PREFIX
5488 ++                        [$ac_default_prefix]
5489 ++  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
5490 ++                        [PREFIX]
5491 ++
5492 ++By default, \`make install' will install all the files in
5493 ++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
5494 ++an installation prefix other than \`$ac_default_prefix' using \`--prefix',
5495 ++for instance \`--prefix=\$HOME'.
5496 ++
5497 ++For better control, use the options below.
5498 ++
5499 ++Fine tuning of the installation directories:
5500 ++  --bindir=DIR           user executables [EPREFIX/bin]
5501 ++  --sbindir=DIR          system admin executables [EPREFIX/sbin]
5502 ++  --libexecdir=DIR       program executables [EPREFIX/libexec]
5503 ++  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
5504 ++  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
5505 ++  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
5506 ++  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
5507 ++  --libdir=DIR           object code libraries [EPREFIX/lib]
5508 ++  --includedir=DIR       C header files [PREFIX/include]
5509 ++  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
5510 ++  --infodir=DIR          info documentation [PREFIX/info]
5511 ++  --mandir=DIR           man documentation [PREFIX/man]
5512 ++_ACEOF
5513 ++
5514 ++  cat <<\_ACEOF
5515 ++
5516 ++X features:
5517 ++  --x-includes=DIR    X include files are in DIR
5518 ++  --x-libraries=DIR   X library files are in DIR
5519 ++
5520 ++System types:
5521 ++  --build=BUILD     configure for building on BUILD [guessed]
5522 ++  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
5523 ++_ACEOF
5524 ++fi
5525 ++
5526 ++if test -n "$ac_init_help"; then
5527 ++
5528 ++  cat <<\_ACEOF
5529 ++
5530 ++Optional Features:
5531 ++  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
5532 ++  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
5533 ++  --disable-largefile     omit support for large files
5534 ++
5535 ++Optional Packages:
5536 ++  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
5537 ++  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
5538 ++  --without-gcc           don't use GCC to compile Emacs if GCC is found
5539 ++  --without-pop           don't support POP mail retrieval with movemail
5540 ++  --with-kerberos         support Kerberos-authenticated POP
5541 ++  --with-kerberos5        support Kerberos version 5 authenticated POP
5542 ++  --with-hesiod           support Hesiod to get the POP server host
5543 ++  --with-mail-spool-directory=DIR   system mail spool is DIR
5544 ++  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)
5545 ++  --with-xpm              use -lXpm for displaying XPM images
5546 ++  --with-jpeg             use -ljpeg for displaying JPEG images
5547 ++  --with-tiff             use -ltiff for displaying TIFF images
5548 ++  --with-gif              use -lungif for displaying GIF images
5549 ++  --with-png              use -lpng for displaying PNG images
5550 ++  --without-toolkit-scroll-bars
5551 ++                          don't use Motif or Xaw3d scroll bars
5552 ++  --without-xim           don't use X11 XIM
5553 ++  --with-x                use the X Window System
5554 ++
5555 ++Some influential environment variables:
5556 ++  CC          C compiler command
5557 ++  CFLAGS      C compiler flags
5558 ++  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
5559 ++              nonstandard directory <lib dir>
5560 ++  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
5561 ++              headers in a nonstandard directory <include dir>
5562 ++  CPP         C preprocessor
5563 ++
5564 ++Use these variables to override the choices made by `configure' or to help
5565 ++it to find libraries and programs with nonstandard names/locations.
5566 ++
5567 ++_ACEOF
5568 ++fi
5569 ++
5570 ++if test "$ac_init_help" = "recursive"; then
5571 ++  # If there are subdirs, report their specific --help.
5572 ++  ac_popdir=`pwd`
5573 ++  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5574 ++    test -d $ac_dir || continue
5575 ++    ac_builddir=.
5576 ++
5577 ++if test "$ac_dir" != .; then
5578 ++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5579 ++  # A "../" for each directory in $ac_dir_suffix.
5580 ++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5581 ++else
5582 ++  ac_dir_suffix= ac_top_builddir=
5583 ++fi
5584 ++
5585 ++case $srcdir in
5586 ++  .)  # No --srcdir option.  We are building in place.
5587 ++    ac_srcdir=.
5588 ++    if test -z "$ac_top_builddir"; then
5589 ++       ac_top_srcdir=.
5590 ++    else
5591 ++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5592 ++    fi ;;
5593 ++  [\\/]* | ?:[\\/]* )  # Absolute path.
5594 ++    ac_srcdir=$srcdir$ac_dir_suffix;
5595 ++    ac_top_srcdir=$srcdir ;;
5596 ++  *) # Relative path.
5597 ++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5598 ++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5599 ++esac
5600 ++
5601 ++# Do not use `cd foo && pwd` to compute absolute paths, because
5602 ++# the directories may not exist.
5603 ++case `pwd` in
5604 ++.) ac_abs_builddir="$ac_dir";;
5605 ++*)
5606 ++  case "$ac_dir" in
5607 ++  .) ac_abs_builddir=`pwd`;;
5608 ++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5609 ++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5610 ++  esac;;
5611 ++esac
5612 ++case $ac_abs_builddir in
5613 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
5614 ++*)
5615 ++  case ${ac_top_builddir}. in
5616 ++  .) ac_abs_top_builddir=$ac_abs_builddir;;
5617 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5618 ++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5619 ++  esac;;
5620 ++esac
5621 ++case $ac_abs_builddir in
5622 ++.) ac_abs_srcdir=$ac_srcdir;;
5623 ++*)
5624 ++  case $ac_srcdir in
5625 ++  .) ac_abs_srcdir=$ac_abs_builddir;;
5626 ++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5627 ++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5628 ++  esac;;
5629 ++esac
5630 ++case $ac_abs_builddir in
5631 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
5632 ++*)
5633 ++  case $ac_top_srcdir in
5634 ++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5635 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5636 ++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5637 ++  esac;;
5638 ++esac
5639 ++
5640 ++    cd $ac_dir
5641 ++    # Check for guested configure; otherwise get Cygnus style configure.
5642 ++    if test -f $ac_srcdir/configure.gnu; then
5643 ++      echo
5644 ++      $SHELL $ac_srcdir/configure.gnu  --help=recursive
5645 ++    elif test -f $ac_srcdir/configure; then
5646 ++      echo
5647 ++      $SHELL $ac_srcdir/configure  --help=recursive
5648 ++    elif test -f $ac_srcdir/configure.ac ||
5649 ++         test -f $ac_srcdir/configure.in; then
5650 ++      echo
5651 ++      $ac_configure --help
5652 ++    else
5653 ++      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
5654 ++    fi
5655 ++    cd "$ac_popdir"
5656 ++  done
5657 ++fi
5658 ++
5659 ++test -n "$ac_init_help" && exit 0
5660 ++if $ac_init_version; then
5661 ++  cat <<\_ACEOF
5662 ++
5663 ++Copyright (C) 2003 Free Software Foundation, Inc.
5664 ++This configure script is free software; the Free Software Foundation
5665 ++gives unlimited permission to copy, distribute and modify it.
5666 ++_ACEOF
5667 ++  exit 0
5668 ++fi
5669 ++exec 5>config.log
5670 ++cat >&5 <<_ACEOF
5671 ++This file contains any messages produced by compilers while
5672 ++running configure, to aid debugging if configure makes a mistake.
5673 ++
5674 ++It was created by $as_me, which was
5675 ++generated by GNU Autoconf 2.59.  Invocation command line was
5676 ++
5677 ++  $ $0 $@
5678 ++
5679 ++_ACEOF
5680 ++{
5681 ++cat <<_ASUNAME
5682 ++## --------- ##
5683 ++## Platform. ##
5684 ++## --------- ##
5685 ++
5686 ++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5687 ++uname -m = `(uname -m) 2>/dev/null || echo unknown`
5688 ++uname -r = `(uname -r) 2>/dev/null || echo unknown`
5689 ++uname -s = `(uname -s) 2>/dev/null || echo unknown`
5690 ++uname -v = `(uname -v) 2>/dev/null || echo unknown`
5691 ++
5692 ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5693 ++/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
5694 ++
5695 ++/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
5696 ++/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
5697 ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5698 ++hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
5699 ++/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
5700 ++/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
5701 ++/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
5702 ++
5703 ++_ASUNAME
5704 ++
5705 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 ++for as_dir in $PATH
5707 ++do
5708 ++  IFS=$as_save_IFS
5709 ++  test -z "$as_dir" && as_dir=.
5710 ++  echo "PATH: $as_dir"
5711 ++done
5712 ++
5713 ++} >&5
5714 ++
5715 ++cat >&5 <<_ACEOF
5716 ++
5717 ++
5718 ++## ----------- ##
5719 ++## Core tests. ##
5720 ++## ----------- ##
5721 ++
5722 ++_ACEOF
5723 ++
5724 ++
5725 ++# Keep a trace of the command line.
5726 ++# Strip out --no-create and --no-recursion so they do not pile up.
5727 ++# Strip out --silent because we don't want to record it for future runs.
5728 ++# Also quote any args containing shell meta-characters.
5729 ++# Make two passes to allow for proper duplicate-argument suppression.
5730 ++ac_configure_args=
5731 ++ac_configure_args0=
5732 ++ac_configure_args1=
5733 ++ac_sep=
5734 ++ac_must_keep_next=false
5735 ++for ac_pass in 1 2
5736 ++do
5737 ++  for ac_arg
5738 ++  do
5739 ++    case $ac_arg in
5740 ++    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
5741 ++    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5742 ++    | -silent | --silent | --silen | --sile | --sil)
5743 ++      continue ;;
5744 ++    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
5745 ++      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5746 ++    esac
5747 ++    case $ac_pass in
5748 ++    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
5749 ++    2)
5750 ++      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
5751 ++      if test $ac_must_keep_next = true; then
5752 ++      ac_must_keep_next=false # Got value, back to normal.
5753 ++      else
5754 ++      case $ac_arg in
5755 ++        *=* | --config-cache | -C | -disable-* | --disable-* \
5756 ++        | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5757 ++        | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5758 ++        | -with-* | --with-* | -without-* | --without-* | --x)
5759 ++          case "$ac_configure_args0 " in
5760 ++            "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
5761 ++          esac
5762 ++          ;;
5763 ++        -* ) ac_must_keep_next=true ;;
5764 ++      esac
5765 ++      fi
5766 ++      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
5767 ++      # Get rid of the leading space.
5768 ++      ac_sep=" "
5769 ++      ;;
5770 ++    esac
5771 ++  done
5772 ++done
5773 ++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
5774 ++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5775 ++
5776 ++# When interrupted or exit'd, cleanup temporary files, and complete
5777 ++# config.log.  We remove comments because anyway the quotes in there
5778 ++# would cause problems or look ugly.
5779 ++# WARNING: Be sure not to use single quotes in there, as some shells,
5780 ++# such as our DU 5.0 friend, will then `close' the trap.
5781 ++trap 'exit_status=$?
5782 ++  # Save into config.log some information that might help in debugging.
5783 ++  {
5784 ++    echo
5785 ++
5786 ++    cat <<\_ASBOX
5787 ++## ---------------- ##
5788 ++## Cache variables. ##
5789 ++## ---------------- ##
5790 ++_ASBOX
5791 ++    echo
5792 ++    # The following way of writing the cache mishandles newlines in values,
5793 ++{
5794 ++  (set) 2>&1 |
5795 ++    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
5796 ++    *ac_space=\ *)
5797 ++      sed -n \
5798 ++      "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
5799 ++        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
5800 ++      ;;
5801 ++    *)
5802 ++      sed -n \
5803 ++      "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5804 ++      ;;
5805 ++    esac;
5806 ++}
5807 ++    echo
5808 ++
5809 ++    cat <<\_ASBOX
5810 ++## ----------------- ##
5811 ++## Output variables. ##
5812 ++## ----------------- ##
5813 ++_ASBOX
5814 ++    echo
5815 ++    for ac_var in $ac_subst_vars
5816 ++    do
5817 ++      eval ac_val=$`echo $ac_var`
5818 ++      echo "$ac_var='"'"'$ac_val'"'"'"
5819 ++    done | sort
5820 ++    echo
5821 ++
5822 ++    if test -n "$ac_subst_files"; then
5823 ++      cat <<\_ASBOX
5824 ++## ------------- ##
5825 ++## Output files. ##
5826 ++## ------------- ##
5827 ++_ASBOX
5828 ++      echo
5829 ++      for ac_var in $ac_subst_files
5830 ++      do
5831 ++      eval ac_val=$`echo $ac_var`
5832 ++      echo "$ac_var='"'"'$ac_val'"'"'"
5833 ++      done | sort
5834 ++      echo
5835 ++    fi
5836 ++
5837 ++    if test -s confdefs.h; then
5838 ++      cat <<\_ASBOX
5839 ++## ----------- ##
5840 ++## confdefs.h. ##
5841 ++## ----------- ##
5842 ++_ASBOX
5843 ++      echo
5844 ++      sed "/^$/d" confdefs.h | sort
5845 ++      echo
5846 ++    fi
5847 ++    test "$ac_signal" != 0 &&
5848 ++      echo "$as_me: caught signal $ac_signal"
5849 ++    echo "$as_me: exit $exit_status"
5850 ++  } >&5
5851 ++  rm -f core *.core &&
5852 ++  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
5853 ++    exit $exit_status
5854 ++     ' 0
5855 ++for ac_signal in 1 2 13 15; do
5856 ++  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
5857 ++done
5858 ++ac_signal=0
5859 ++
5860 ++# confdefs.h avoids OS command line length limits that DEFS can exceed.
5861 ++rm -rf conftest* confdefs.h
5862 ++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
5863 ++echo >confdefs.h
5864
5865 ++# Predefined preprocessor variables.
5866 ++
5867 ++cat >>confdefs.h <<_ACEOF
5868 ++#define PACKAGE_NAME "$PACKAGE_NAME"
5869 ++_ACEOF
5870 ++
5871 ++
5872 ++cat >>confdefs.h <<_ACEOF
5873 ++#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5874 ++_ACEOF
5875 ++
5876 ++
5877 ++cat >>confdefs.h <<_ACEOF
5878 ++#define PACKAGE_VERSION "$PACKAGE_VERSION"
5879 ++_ACEOF
5880 ++
5881 ++
5882 ++cat >>confdefs.h <<_ACEOF
5883 ++#define PACKAGE_STRING "$PACKAGE_STRING"
5884 ++_ACEOF
5885 ++
5886 ++
5887 ++cat >>confdefs.h <<_ACEOF
5888 ++#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5889 ++_ACEOF
5890 ++
5891 ++
5892 ++# Let the site file select an alternate cache file if it wants to.
5893 + # Prefer explicitly selected file to automatically selected ones.
5894 + if test -z "$CONFIG_SITE"; then
5895 +   if test "x$prefix" != xNONE; then
5896 +@@ -517,43 +1219,109 @@
5897 + fi
5898 + for ac_site_file in $CONFIG_SITE; do
5899 +   if test -r "$ac_site_file"; then
5900 +-    echo "loading site script $ac_site_file"
5901 ++    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
5902 ++echo "$as_me: loading site script $ac_site_file" >&6;}
5903 ++    sed 's/^/| /' "$ac_site_file" >&5
5904 +     . "$ac_site_file"
5905 +   fi
5906 + done
5907
5908 + if test -r "$cache_file"; then
5909 +-  echo "loading cache $cache_file"
5910 +-  . $cache_file
5911 ++  # Some versions of bash will fail to source /dev/null (special
5912 ++  # files actually), so we avoid doing that.
5913 ++  if test -f "$cache_file"; then
5914 ++    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5915 ++echo "$as_me: loading cache $cache_file" >&6;}
5916 ++    case $cache_file in
5917 ++      [\\/]* | ?:[\\/]* ) . $cache_file;;
5918 ++      *)                      . ./$cache_file;;
5919 ++    esac
5920 ++  fi
5921 + else
5922 +-  echo "creating cache $cache_file"
5923 +-  > $cache_file
5924 ++  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5925 ++echo "$as_me: creating cache $cache_file" >&6;}
5926 ++  >$cache_file
5927 ++fi
5928 ++
5929 ++# Check that the precious variables saved in the cache have kept the same
5930 ++# value.
5931 ++ac_cache_corrupted=false
5932 ++for ac_var in `(set) 2>&1 |
5933 ++             sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
5934 ++  eval ac_old_set=\$ac_cv_env_${ac_var}_set
5935 ++  eval ac_new_set=\$ac_env_${ac_var}_set
5936 ++  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
5937 ++  eval ac_new_val="\$ac_env_${ac_var}_value"
5938 ++  case $ac_old_set,$ac_new_set in
5939 ++    set,)
5940 ++      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5941 ++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5942 ++      ac_cache_corrupted=: ;;
5943 ++    ,set)
5944 ++      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
5945 ++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5946 ++      ac_cache_corrupted=: ;;
5947 ++    ,);;
5948 ++    *)
5949 ++      if test "x$ac_old_val" != "x$ac_new_val"; then
5950 ++      { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5951 ++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5952 ++      { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
5953 ++echo "$as_me:   former value:  $ac_old_val" >&2;}
5954 ++      { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
5955 ++echo "$as_me:   current value: $ac_new_val" >&2;}
5956 ++      ac_cache_corrupted=:
5957 ++      fi;;
5958 ++  esac
5959 ++  # Pass precious variables to config.status.
5960 ++  if test "$ac_new_set" = set; then
5961 ++    case $ac_new_val in
5962 ++    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
5963 ++      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5964 ++    *) ac_arg=$ac_var=$ac_new_val ;;
5965 ++    esac
5966 ++    case " $ac_configure_args " in
5967 ++      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
5968 ++      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
5969 ++    esac
5970 ++  fi
5971 ++done
5972 ++if $ac_cache_corrupted; then
5973 ++  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
5974 ++echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5975 ++  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
5976 ++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
5977 ++   { (exit 1); exit 1; }; }
5978 + fi
5979
5980 + ac_ext=c
5981 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5982 + ac_cpp='$CPP $CPPFLAGS'
5983 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5984 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5985 +-cross_compiling=$ac_cv_prog_cc_cross
5986 +-
5987 +-ac_exeext=
5988 +-ac_objext=o
5989 +-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
5990 +-  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
5991 +-  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
5992 +-    ac_n= ac_c='
5993 +-' ac_t='      '
5994 +-  else
5995 +-    ac_n=-n ac_c= ac_t=
5996 +-  fi
5997 +-else
5998 +-  ac_n= ac_c='\c' ac_t=
5999 +-fi
6000 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003 ++
6004 ++
6005 ++
6006 ++
6007 ++
6008 ++
6009 ++
6010 ++
6011 ++
6012
6013
6014
6015
6016 ++
6017 ++
6018 ++
6019 ++
6020 ++
6021 ++
6022 ++          ac_config_headers="$ac_config_headers src/config.h:src/config.in"
6023 ++
6024 ++
6025 ++
6026 + lispdir='${datadir}/emacs/${version}/lisp'
6027 + locallisppath='${datadir}/emacs/${version}/site-lisp:'\
6028 + '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
6029 +@@ -562,37 +1330,38 @@
6030 + archlibdir='${libexecdir}/emacs/${version}/${configuration}'
6031 + docdir='${datadir}/emacs/${version}/etc'
6032
6033 ++
6034 + # Check whether --with-gcc or --without-gcc was given.
6035 + if test "${with_gcc+set}" = set; then
6036 +   withval="$with_gcc"
6037 +-  :
6038 +-fi
6039 ++
6040 ++fi;
6041
6042 + # Check whether --with-pop or --without-pop was given.
6043 + if test "${with_pop+set}" = set; then
6044 +   withval="$with_pop"
6045 +   if test "$withval" = yes; then
6046 +-   cat >> confdefs.h <<\EOF
6047 ++   cat >>confdefs.h <<\_ACEOF
6048 + #define MAIL_USE_POP 1
6049 +-EOF
6050 ++_ACEOF
6051
6052 + else :
6053 + fi
6054 + else
6055 +-  cat >> confdefs.h <<\EOF
6056 ++  cat >>confdefs.h <<\_ACEOF
6057 + #define MAIL_USE_POP 1
6058 +-EOF
6059 ++_ACEOF
6060
6061 +-fi
6062 ++fi;
6063
6064 + # Check whether --with-kerberos or --without-kerberos was given.
6065 + if test "${with_kerberos+set}" = set; then
6066 +   withval="$with_kerberos"
6067 +-  cat >> confdefs.h <<\EOF
6068 ++  cat >>confdefs.h <<\_ACEOF
6069 + #define KERBEROS 1
6070 +-EOF
6071 ++_ACEOF
6072
6073 +-fi
6074 ++fi;
6075
6076 + # Check whether --with-kerberos5 or --without-kerberos5 was given.
6077 + if test "${with_kerberos5+set}" = set; then
6078 +@@ -600,26 +1369,35 @@
6079 +   if test "${with_kerberos5+set}" = set; then
6080 +   if test "${with_kerberos+set}" != set; then
6081 +     with_kerberos=yes
6082 +-    cat >> confdefs.h <<\EOF
6083 ++    cat >>confdefs.h <<\_ACEOF
6084 + #define KERBEROS 1
6085 +-EOF
6086 ++_ACEOF
6087
6088 +   fi
6089 + fi
6090 +-cat >> confdefs.h <<\EOF
6091 ++cat >>confdefs.h <<\_ACEOF
6092 + #define KERBEROS5 1
6093 +-EOF
6094 ++_ACEOF
6095
6096 +-fi
6097 ++fi;
6098
6099 + # Check whether --with-hesiod or --without-hesiod was given.
6100 + if test "${with_hesiod+set}" = set; then
6101 +   withval="$with_hesiod"
6102 +-  cat >> confdefs.h <<\EOF
6103 ++  cat >>confdefs.h <<\_ACEOF
6104 + #define HESIOD 1
6105 +-EOF
6106 ++_ACEOF
6107
6108 +-fi
6109 ++fi;
6110 ++
6111 ++# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
6112 ++if test "${with_mail_spool_directory+set}" = set; then
6113 ++  withval="$with_mail_spool_directory"
6114 ++  cat >>confdefs.h <<_ACEOF
6115 ++#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
6116 ++_ACEOF
6117 ++
6118 ++fi;
6119
6120 + # Check whether --with-x-toolkit or --without-x-toolkit was given.
6121 + if test "${with_x_toolkit+set}" = set; then
6122 +@@ -631,57 +1409,60 @@
6123 +           a | at | ath | athe | athen | athena )      val=athena ;;
6124 +           m | mo | mot | moti | motif )       val=motif ;;
6125 +           * )
6126 +-{ echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
6127 ++{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
6128 ++this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
6129 ++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
6130 ++echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
6131 + this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
6132 +-Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
6133 ++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
6134 ++   { (exit 1); exit 1; }; }
6135 +           ;;
6136 +         esac
6137 +         with_x_toolkit=$val
6138
6139 +-fi
6140 ++fi;
6141
6142 + # Check whether --with-xpm or --without-xpm was given.
6143 + if test "${with_xpm+set}" = set; then
6144 +   withval="$with_xpm"
6145 +-  :
6146 +-fi
6147 ++
6148 ++fi;
6149
6150 + # Check whether --with-jpeg or --without-jpeg was given.
6151 + if test "${with_jpeg+set}" = set; then
6152 +   withval="$with_jpeg"
6153 +-  :
6154 +-fi
6155 ++
6156 ++fi;
6157
6158 + # Check whether --with-tiff or --without-tiff was given.
6159 + if test "${with_tiff+set}" = set; then
6160 +   withval="$with_tiff"
6161 +-  :
6162 +-fi
6163 ++
6164 ++fi;
6165
6166 + # Check whether --with-gif or --without-gif was given.
6167 + if test "${with_gif+set}" = set; then
6168 +   withval="$with_gif"
6169 +-  :
6170 +-fi
6171 ++
6172 ++fi;
6173
6174 + # Check whether --with-png or --without-png was given.
6175 + if test "${with_png+set}" = set; then
6176 +   withval="$with_png"
6177 +-  :
6178 +-fi
6179 ++
6180 ++fi;
6181
6182 + # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
6183 + if test "${with_toolkit_scroll_bars+set}" = set; then
6184 +   withval="$with_toolkit_scroll_bars"
6185 +-  :
6186 +-fi
6187 ++
6188 ++fi;
6189
6190 + # Check whether --with-xim or --without-xim was given.
6191 + if test "${with_xim+set}" = set; then
6192 +   withval="$with_xim"
6193 +-  :
6194 +-fi
6195
6196 ++fi;
6197
6198 + #### Make srcdir absolute, if it isn't already.  It's important to
6199 + #### avoid running the path through pwd unnecessarily, since pwd can
6200 +@@ -707,12 +1488,18 @@
6201 + #### Check if the source directory already has a configured system in it.
6202 + if test `pwd` != `(cd ${srcdir} && pwd)` \
6203 +    && test -f "${srcdir}/src/config.h" ; then
6204 +-  echo "configure: warning: The directory tree \`${srcdir}' is being used
6205 ++  { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
6206 ++   as a build directory right now; it has been configured in its own
6207 ++   right.  To configure in another directory as well, you MUST
6208 ++   use GNU make.  If you do not have GNU make, then you must
6209 ++   now do \`make distclean' in ${srcdir},
6210 ++   and then run $0 again." >&5
6211 ++echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
6212 +    as a build directory right now; it has been configured in its own
6213 +    right.  To configure in another directory as well, you MUST
6214 +    use GNU make.  If you do not have GNU make, then you must
6215 +    now do \`make distclean' in ${srcdir},
6216 +-   and then run $0 again." 1>&2
6217 ++   and then run $0 again." >&2;}
6218
6219 +   extrasub='/^VPATH[   ]*=/c\
6220 + vpath %.c $(srcdir)\
6221 +@@ -739,41 +1526,74 @@
6222 +     ac_aux_dir=$ac_dir
6223 +     ac_install_sh="$ac_aux_dir/install.sh -c"
6224 +     break
6225 ++  elif test -f $ac_dir/shtool; then
6226 ++    ac_aux_dir=$ac_dir
6227 ++    ac_install_sh="$ac_aux_dir/shtool install -c"
6228 ++    break
6229 +   fi
6230 + done
6231 + if test -z "$ac_aux_dir"; then
6232 +-  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
6233 +-fi
6234 +-ac_config_guess=$ac_aux_dir/config.guess
6235 +-ac_config_sub=$ac_aux_dir/config.sub
6236 +-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
6237 +-
6238 ++  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6239 ++echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6240 ++   { (exit 1); exit 1; }; }
6241 ++fi
6242 ++ac_config_guess="$SHELL $ac_aux_dir/config.guess"
6243 ++ac_config_sub="$SHELL $ac_aux_dir/config.sub"
6244 ++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6245
6246 + # Make sure we can run config.sub.
6247 +-if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
6248 +-else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6249 +-fi
6250 +-
6251 +-echo $ac_n "checking host system type""... $ac_c" 1>&6
6252 +-echo "configure:759: checking host system type" >&5
6253 +-
6254 +-host_alias=$host
6255 +-case "$host_alias" in
6256 +-NONE)
6257 +-  case $nonopt in
6258 +-  NONE)
6259 +-    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6260 +-    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6261 +-    fi ;;
6262 +-  *) host_alias=$nonopt ;;
6263 +-  esac ;;
6264 +-esac
6265 ++$ac_config_sub sun4 >/dev/null 2>&1 ||
6266 ++  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6267 ++echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6268 ++   { (exit 1); exit 1; }; }
6269 ++
6270 ++echo "$as_me:$LINENO: checking build system type" >&5
6271 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6
6272 ++if test "${ac_cv_build+set}" = set; then
6273 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ++else
6275 ++  ac_cv_build_alias=$build_alias
6276 ++test -z "$ac_cv_build_alias" &&
6277 ++  ac_cv_build_alias=`$ac_config_guess`
6278 ++test -z "$ac_cv_build_alias" &&
6279 ++  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6280 ++echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6281 ++   { (exit 1); exit 1; }; }
6282 ++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6283 ++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6284 ++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6285 ++   { (exit 1); exit 1; }; }
6286 ++
6287 ++fi
6288 ++echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6289 ++echo "${ECHO_T}$ac_cv_build" >&6
6290 ++build=$ac_cv_build
6291 ++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6292 ++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6293 ++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6294 ++
6295 ++
6296 ++echo "$as_me:$LINENO: checking host system type" >&5
6297 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6
6298 ++if test "${ac_cv_host+set}" = set; then
6299 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ++else
6301 ++  ac_cv_host_alias=$host_alias
6302 ++test -z "$ac_cv_host_alias" &&
6303 ++  ac_cv_host_alias=$ac_cv_build_alias
6304 ++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6305 ++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6306 ++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6307 ++   { (exit 1); exit 1; }; }
6308 ++
6309 ++fi
6310 ++echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6311 ++echo "${ECHO_T}$ac_cv_host" >&6
6312 ++host=$ac_cv_host
6313 ++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6314 ++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6315 ++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6316
6317 +-host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6318 +-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6319 +-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6320 +-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6321 +-echo "$ac_t""$host" 1>&6
6322
6323 + canonical=$host
6324 + configuration=$host_alias
6325 +@@ -1178,6 +1998,9 @@
6326 +   hppa*-*-nextstep* )
6327 +     machine=hp800 opsys=nextstep
6328 +   ;;
6329 ++  hppa*-*-linux-gnu* )
6330 ++    machine=hp800 opsys=gnu-linux
6331 ++  ;;
6332
6333 +   ## Orion machines
6334 +   orion-orion-bsd* )
6335 +@@ -1246,6 +2069,10 @@
6336 +     machine=ibmrt-aix opsys=usg5-2-2
6337 +   ;;
6338
6339 ++  s390*-*-linux-gnu* )
6340 ++    machine=s390 opsys=gnu-linux
6341 ++  ;;
6342 ++
6343 +   ## Integrated Solutions `Optimum V'
6344 +   m68*-isi-bsd4.2* )
6345 +     machine=isi-ov opsys=bsd4-2
6346 +@@ -1650,7 +2477,7 @@
6347 +       *-xenix* )              opsys=xenix ;;
6348 +       *-linux-gnu* )          opsys=gnu-linux ;;
6349 +       *-sco3.2v4* )           opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
6350 +-      *-sco3.2v5* )           opsys=sco5 
6351 ++      *-sco3.2v5* )           opsys=sco5
6352 +                               NON_GNU_CPP=/lib/cpp
6353 +                               # Prevent -belf from being passed to $CPP.
6354 +                               # /lib/cpp does not accept it.
6355 +@@ -1674,6 +2501,11 @@
6356 +     machine=mips opsys=gnu-linux
6357 +   ;;
6358
6359 ++  ## Mipsel (little endian) Linux-based GNU system
6360 ++  mipsel-*-linux-gnu* )
6361 ++    machine=mipsel opsys=gnu-linux
6362 ++  ;;
6363 ++
6364 +   ## UXP/DS
6365 +   sparc-fujitsu-sysv4* )
6366 +     machine=sparc opsys=uxpds
6367 +@@ -1729,8 +2561,11 @@
6368
6369
6370 + if test $unported = yes; then
6371 +-  { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
6372 +-Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
6373 ++  { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
6374 ++Check \`etc/MACHINES' for recognized configuration names." >&5
6375 ++echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
6376 ++Check \`etc/MACHINES' for recognized configuration names." >&2;}
6377 ++   { (exit 1); exit 1; }; }
6378 + fi
6379
6380 + machfile="m/${machine}.h"
6381 +@@ -1746,214 +2581,657 @@
6382 + case ${with_gcc} in
6383 +   "yes" ) CC="gcc" GCC=yes ;;
6384 +   "no"  ) : ${CC=cc} ;;
6385 +-  * ) # Extract the first word of "gcc", so it can be a program name with args.
6386 ++  * ) ac_ext=c
6387 ++ac_cpp='$CPP $CPPFLAGS'
6388 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 ++if test -n "$ac_tool_prefix"; then
6392 ++  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6393 ++set dummy ${ac_tool_prefix}gcc; ac_word=$2
6394 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396 ++if test "${ac_cv_prog_CC+set}" = set; then
6397 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ++else
6399 ++  if test -n "$CC"; then
6400 ++  ac_cv_prog_CC="$CC" # Let the user override the test.
6401 ++else
6402 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 ++for as_dir in $PATH
6404 ++do
6405 ++  IFS=$as_save_IFS
6406 ++  test -z "$as_dir" && as_dir=.
6407 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6408 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ++    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6410 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ++    break 2
6412 ++  fi
6413 ++done
6414 ++done
6415 ++
6416 ++fi
6417 ++fi
6418 ++CC=$ac_cv_prog_CC
6419 ++if test -n "$CC"; then
6420 ++  echo "$as_me:$LINENO: result: $CC" >&5
6421 ++echo "${ECHO_T}$CC" >&6
6422 ++else
6423 ++  echo "$as_me:$LINENO: result: no" >&5
6424 ++echo "${ECHO_T}no" >&6
6425 ++fi
6426 ++
6427 ++fi
6428 ++if test -z "$ac_cv_prog_CC"; then
6429 ++  ac_ct_CC=$CC
6430 ++  # Extract the first word of "gcc", so it can be a program name with args.
6431 + set dummy gcc; ac_word=$2
6432 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6433 +-echo "configure:1753: checking for $ac_word" >&5
6434 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6435 +-  echo $ac_n "(cached) $ac_c" 1>&6
6436 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6439 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6440 ++else
6441 ++  if test -n "$ac_ct_CC"; then
6442 ++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6443 ++else
6444 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 ++for as_dir in $PATH
6446 ++do
6447 ++  IFS=$as_save_IFS
6448 ++  test -z "$as_dir" && as_dir=.
6449 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6450 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451 ++    ac_cv_prog_ac_ct_CC="gcc"
6452 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 ++    break 2
6454 ++  fi
6455 ++done
6456 ++done
6457 ++
6458 ++fi
6459 ++fi
6460 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6461 ++if test -n "$ac_ct_CC"; then
6462 ++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6463 ++echo "${ECHO_T}$ac_ct_CC" >&6
6464 ++else
6465 ++  echo "$as_me:$LINENO: result: no" >&5
6466 ++echo "${ECHO_T}no" >&6
6467 ++fi
6468 ++
6469 ++  CC=$ac_ct_CC
6470 ++else
6471 ++  CC="$ac_cv_prog_CC"
6472 ++fi
6473 ++
6474 ++if test -z "$CC"; then
6475 ++  if test -n "$ac_tool_prefix"; then
6476 ++  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6477 ++set dummy ${ac_tool_prefix}cc; ac_word=$2
6478 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 ++if test "${ac_cv_prog_CC+set}" = set; then
6481 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6482 + else
6483 +   if test -n "$CC"; then
6484 +   ac_cv_prog_CC="$CC" # Let the user override the test.
6485 + else
6486 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
6487 +-  ac_dummy="$PATH"
6488 +-  for ac_dir in $ac_dummy; do
6489 +-    test -z "$ac_dir" && ac_dir=.
6490 +-    if test -f $ac_dir/$ac_word; then
6491 +-      ac_cv_prog_CC="gcc"
6492 +-      break
6493 +-    fi
6494 +-  done
6495 +-  IFS="$ac_save_ifs"
6496 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 ++for as_dir in $PATH
6498 ++do
6499 ++  IFS=$as_save_IFS
6500 ++  test -z "$as_dir" && as_dir=.
6501 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6502 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ++    ac_cv_prog_CC="${ac_tool_prefix}cc"
6504 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 ++    break 2
6506 ++  fi
6507 ++done
6508 ++done
6509 ++
6510 + fi
6511 + fi
6512 +-CC="$ac_cv_prog_CC"
6513 ++CC=$ac_cv_prog_CC
6514 + if test -n "$CC"; then
6515 +-  echo "$ac_t""$CC" 1>&6
6516 ++  echo "$as_me:$LINENO: result: $CC" >&5
6517 ++echo "${ECHO_T}$CC" >&6
6518 ++else
6519 ++  echo "$as_me:$LINENO: result: no" >&5
6520 ++echo "${ECHO_T}no" >&6
6521 ++fi
6522 ++
6523 ++fi
6524 ++if test -z "$ac_cv_prog_CC"; then
6525 ++  ac_ct_CC=$CC
6526 ++  # Extract the first word of "cc", so it can be a program name with args.
6527 ++set dummy cc; ac_word=$2
6528 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6531 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ++else
6533 ++  if test -n "$ac_ct_CC"; then
6534 ++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6535 ++else
6536 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 ++for as_dir in $PATH
6538 ++do
6539 ++  IFS=$as_save_IFS
6540 ++  test -z "$as_dir" && as_dir=.
6541 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6542 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ++    ac_cv_prog_ac_ct_CC="cc"
6544 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 ++    break 2
6546 ++  fi
6547 ++done
6548 ++done
6549 ++
6550 ++fi
6551 ++fi
6552 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6553 ++if test -n "$ac_ct_CC"; then
6554 ++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6555 ++echo "${ECHO_T}$ac_ct_CC" >&6
6556 ++else
6557 ++  echo "$as_me:$LINENO: result: no" >&5
6558 ++echo "${ECHO_T}no" >&6
6559 ++fi
6560 ++
6561 ++  CC=$ac_ct_CC
6562 + else
6563 +-  echo "$ac_t""no" 1>&6
6564 ++  CC="$ac_cv_prog_CC"
6565 + fi
6566
6567 ++fi
6568 + if test -z "$CC"; then
6569 +   # Extract the first word of "cc", so it can be a program name with args.
6570 + set dummy cc; ac_word=$2
6571 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6572 +-echo "configure:1783: checking for $ac_word" >&5
6573 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6574 +-  echo $ac_n "(cached) $ac_c" 1>&6
6575 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577 ++if test "${ac_cv_prog_CC+set}" = set; then
6578 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6579 + else
6580 +   if test -n "$CC"; then
6581 +   ac_cv_prog_CC="$CC" # Let the user override the test.
6582 + else
6583 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
6584 +   ac_prog_rejected=no
6585 +-  ac_dummy="$PATH"
6586 +-  for ac_dir in $ac_dummy; do
6587 +-    test -z "$ac_dir" && ac_dir=.
6588 +-    if test -f $ac_dir/$ac_word; then
6589 +-      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6590 +-        ac_prog_rejected=yes
6591 +-      continue
6592 +-      fi
6593 +-      ac_cv_prog_CC="cc"
6594 +-      break
6595 +-    fi
6596 +-  done
6597 +-  IFS="$ac_save_ifs"
6598 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 ++for as_dir in $PATH
6600 ++do
6601 ++  IFS=$as_save_IFS
6602 ++  test -z "$as_dir" && as_dir=.
6603 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6604 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ++    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6606 ++       ac_prog_rejected=yes
6607 ++       continue
6608 ++     fi
6609 ++    ac_cv_prog_CC="cc"
6610 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 ++    break 2
6612 ++  fi
6613 ++done
6614 ++done
6615 ++
6616 + if test $ac_prog_rejected = yes; then
6617 +   # We found a bogon in the path, so make sure we never use it.
6618 +   set dummy $ac_cv_prog_CC
6619 +   shift
6620 +-  if test $# -gt 0; then
6621 ++  if test $# != 0; then
6622 +     # We chose a different compiler from the bogus one.
6623 +     # However, it has the same basename, so the bogon will be chosen
6624 +     # first if we set CC to just the basename; use the full file name.
6625 +     shift
6626 +-    set dummy "$ac_dir/$ac_word" "$@"
6627 +-    shift
6628 +-    ac_cv_prog_CC="$@"
6629 ++    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6630 +   fi
6631 + fi
6632 + fi
6633 + fi
6634 +-CC="$ac_cv_prog_CC"
6635 ++CC=$ac_cv_prog_CC
6636 + if test -n "$CC"; then
6637 +-  echo "$ac_t""$CC" 1>&6
6638 ++  echo "$as_me:$LINENO: result: $CC" >&5
6639 ++echo "${ECHO_T}$CC" >&6
6640 + else
6641 +-  echo "$ac_t""no" 1>&6
6642 ++  echo "$as_me:$LINENO: result: no" >&5
6643 ++echo "${ECHO_T}no" >&6
6644 + fi
6645
6646 +-  if test -z "$CC"; then
6647 +-    case "`uname -s`" in
6648 +-    *win32* | *WIN32*)
6649 +-      # Extract the first word of "cl", so it can be a program name with args.
6650 +-set dummy cl; ac_word=$2
6651 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6652 +-echo "configure:1834: checking for $ac_word" >&5
6653 +-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6654 +-  echo $ac_n "(cached) $ac_c" 1>&6
6655 ++fi
6656 ++if test -z "$CC"; then
6657 ++  if test -n "$ac_tool_prefix"; then
6658 ++  for ac_prog in cl
6659 ++  do
6660 ++    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6661 ++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6662 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 ++if test "${ac_cv_prog_CC+set}" = set; then
6665 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6666 + else
6667 +   if test -n "$CC"; then
6668 +   ac_cv_prog_CC="$CC" # Let the user override the test.
6669 + else
6670 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
6671 +-  ac_dummy="$PATH"
6672 +-  for ac_dir in $ac_dummy; do
6673 +-    test -z "$ac_dir" && ac_dir=.
6674 +-    if test -f $ac_dir/$ac_word; then
6675 +-      ac_cv_prog_CC="cl"
6676 +-      break
6677 +-    fi
6678 +-  done
6679 +-  IFS="$ac_save_ifs"
6680 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 ++for as_dir in $PATH
6682 ++do
6683 ++  IFS=$as_save_IFS
6684 ++  test -z "$as_dir" && as_dir=.
6685 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6686 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ++    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6688 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ++    break 2
6690 ++  fi
6691 ++done
6692 ++done
6693 ++
6694 + fi
6695 + fi
6696 +-CC="$ac_cv_prog_CC"
6697 ++CC=$ac_cv_prog_CC
6698 + if test -n "$CC"; then
6699 +-  echo "$ac_t""$CC" 1>&6
6700 ++  echo "$as_me:$LINENO: result: $CC" >&5
6701 ++echo "${ECHO_T}$CC" >&6
6702 + else
6703 +-  echo "$ac_t""no" 1>&6
6704 ++  echo "$as_me:$LINENO: result: no" >&5
6705 ++echo "${ECHO_T}no" >&6
6706 + fi
6707 +- ;;
6708 +-    esac
6709 ++
6710 ++    test -n "$CC" && break
6711 ++  done
6712 ++fi
6713 ++if test -z "$CC"; then
6714 ++  ac_ct_CC=$CC
6715 ++  for ac_prog in cl
6716 ++do
6717 ++  # Extract the first word of "$ac_prog", so it can be a program name with args.
6718 ++set dummy $ac_prog; ac_word=$2
6719 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6721 ++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6722 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ++else
6724 ++  if test -n "$ac_ct_CC"; then
6725 ++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6726 ++else
6727 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 ++for as_dir in $PATH
6729 ++do
6730 ++  IFS=$as_save_IFS
6731 ++  test -z "$as_dir" && as_dir=.
6732 ++  for ac_exec_ext in '' $ac_executable_extensions; do
6733 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ++    ac_cv_prog_ac_ct_CC="$ac_prog"
6735 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ++    break 2
6737 +   fi
6738 +-  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6739 ++done
6740 ++done
6741 ++
6742 + fi
6743 ++fi
6744 ++ac_ct_CC=$ac_cv_prog_ac_ct_CC
6745 ++if test -n "$ac_ct_CC"; then
6746 ++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6747 ++echo "${ECHO_T}$ac_ct_CC" >&6
6748 ++else
6749 ++  echo "$as_me:$LINENO: result: no" >&5
6750 ++echo "${ECHO_T}no" >&6
6751 ++fi
6752 ++
6753 ++  test -n "$ac_ct_CC" && break
6754 ++done
6755
6756 +-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6757 +-echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6758 ++  CC=$ac_ct_CC
6759 ++fi
6760 ++
6761 ++fi
6762
6763 +-ac_ext=c
6764 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6765 +-ac_cpp='$CPP $CPPFLAGS'
6766 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6767 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6768 +-cross_compiling=$ac_cv_prog_cc_cross
6769
6770 +-cat > conftest.$ac_ext << EOF
6771 ++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6772 ++See \`config.log' for more details." >&5
6773 ++echo "$as_me: error: no acceptable C compiler found in \$PATH
6774 ++See \`config.log' for more details." >&2;}
6775 ++   { (exit 1); exit 1; }; }
6776 ++
6777 ++# Provide some information about the compiler.
6778 ++echo "$as_me:$LINENO:" \
6779 ++     "checking for C compiler version" >&5
6780 ++ac_compiler=`set X $ac_compile; echo $2`
6781 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6782 ++  (eval $ac_compiler --version </dev/null >&5) 2>&5
6783 ++  ac_status=$?
6784 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 ++  (exit $ac_status); }
6786 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6787 ++  (eval $ac_compiler -v </dev/null >&5) 2>&5
6788 ++  ac_status=$?
6789 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 ++  (exit $ac_status); }
6791 ++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6792 ++  (eval $ac_compiler -V </dev/null >&5) 2>&5
6793 ++  ac_status=$?
6794 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 ++  (exit $ac_status); }
6796 ++
6797 ++cat >conftest.$ac_ext <<_ACEOF
6798 ++/* confdefs.h.  */
6799 ++_ACEOF
6800 ++cat confdefs.h >>conftest.$ac_ext
6801 ++cat >>conftest.$ac_ext <<_ACEOF
6802 ++/* end confdefs.h.  */
6803 ++
6804 ++int
6805 ++main ()
6806 ++{
6807
6808 +-#line 1877 "configure"
6809 +-#include "confdefs.h"
6810 ++  ;
6811 ++  return 0;
6812 ++}
6813 ++_ACEOF
6814 ++ac_clean_files_save=$ac_clean_files
6815 ++ac_clean_files="$ac_clean_files a.out a.exe b.out"
6816 ++# Try to create an executable without -o first, disregard a.out.
6817 ++# It will help us diagnose broken compilers, and finding out an intuition
6818 ++# of exeext.
6819 ++echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6820 ++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6821 ++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6822 ++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6823 ++  (eval $ac_link_default) 2>&5
6824 ++  ac_status=$?
6825 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 ++  (exit $ac_status); }; then
6827 ++  # Find the output, starting from the most likely.  This scheme is
6828 ++# not robust to junk in `.', hence go to wildcards (a.*) only as a last
6829 ++# resort.
6830 ++
6831 ++# Be careful to initialize this variable, since it used to be cached.
6832 ++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6833 ++ac_cv_exeext=
6834 ++# b.out is created by i960 compilers.
6835 ++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6836 ++do
6837 ++  test -f "$ac_file" || continue
6838 ++  case $ac_file in
6839 ++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
6840 ++      ;;
6841 ++    conftest.$ac_ext )
6842 ++      # This is the source file.
6843 ++      ;;
6844 ++    [ab].out )
6845 ++      # We found the default executable, but exeext='' is most
6846 ++      # certainly right.
6847 ++      break;;
6848 ++    *.* )
6849 ++      ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6850 ++      # FIXME: I believe we export ac_cv_exeext for Libtool,
6851 ++      # but it would be cool to find out if it's true.  Does anybody
6852 ++      # maintain Libtool? --akim.
6853 ++      export ac_cv_exeext
6854 ++      break;;
6855 ++    * )
6856 ++      break;;
6857 ++  esac
6858 ++done
6859 ++else
6860 ++  echo "$as_me: failed program was:" >&5
6861 ++sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 +-main(){return(0);}
6864 +-EOF
6865 +-if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 +-  ac_cv_prog_cc_works=yes
6867 +-  # If we can't run a trivial program, we are probably using a cross compiler.
6868 +-  if (./conftest; exit) 2>/dev/null; then
6869 +-    ac_cv_prog_cc_cross=no
6870 ++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
6871 ++See \`config.log' for more details." >&5
6872 ++echo "$as_me: error: C compiler cannot create executables
6873 ++See \`config.log' for more details." >&2;}
6874 ++   { (exit 77); exit 77; }; }
6875 ++fi
6876 ++
6877 ++ac_exeext=$ac_cv_exeext
6878 ++echo "$as_me:$LINENO: result: $ac_file" >&5
6879 ++echo "${ECHO_T}$ac_file" >&6
6880 ++
6881 ++# Check the compiler produces executables we can run.  If not, either
6882 ++# the compiler is broken, or we cross compile.
6883 ++echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6884 ++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6885 ++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6886 ++# If not cross compiling, check that we can run a simple program.
6887 ++if test "$cross_compiling" != yes; then
6888 ++  if { ac_try='./$ac_file'
6889 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 ++  (eval $ac_try) 2>&5
6891 ++  ac_status=$?
6892 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 ++  (exit $ac_status); }; }; then
6894 ++    cross_compiling=no
6895 +   else
6896 +-    ac_cv_prog_cc_cross=yes
6897 ++    if test "$cross_compiling" = maybe; then
6898 ++      cross_compiling=yes
6899 ++    else
6900 ++      { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6901 ++If you meant to cross compile, use \`--host'.
6902 ++See \`config.log' for more details." >&5
6903 ++echo "$as_me: error: cannot run C compiled programs.
6904 ++If you meant to cross compile, use \`--host'.
6905 ++See \`config.log' for more details." >&2;}
6906 ++   { (exit 1); exit 1; }; }
6907 ++    fi
6908 +   fi
6909 +-else
6910 +-  echo "configure: failed program was:" >&5
6911 +-  cat conftest.$ac_ext >&5
6912 +-  ac_cv_prog_cc_works=no
6913 + fi
6914 +-rm -fr conftest*
6915 +-ac_ext=c
6916 +-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6917 +-ac_cpp='$CPP $CPPFLAGS'
6918 +-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6919 +-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6920 +-cross_compiling=$ac_cv_prog_cc_cross
6921 +-
6922 +-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6923 +-if test $ac_cv_prog_cc_works = no; then
6924 +-  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6925 +-fi
6926 +-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6927 +-echo "configure:1908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6928 +-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6929 +-cross_compiling=$ac_cv_prog_cc_cross
6930 +-
6931 +-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6932 +-echo "configure:1913: checking whether we are using GNU C" >&5
6933 +-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6934 +-  echo $ac_n "(cached) $ac_c" 1>&6
6935 +-else
6936 +-  cat > conftest.c <<EOF
6937 +-#ifdef __GNUC__
6938 +-  yes;
6939 +-#endif
6940 +-EOF
6941 +-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6942 +-  ac_cv_prog_gcc=yes
6943 ++echo "$as_me:$LINENO: result: yes" >&5
6944 ++echo "${ECHO_T}yes" >&6
6945 ++
6946 ++rm -f a.out a.exe conftest$ac_cv_exeext b.out
6947 ++ac_clean_files=$ac_clean_files_save
6948 ++# Check the compiler produces executables we can run.  If not, either
6949 ++# the compiler is broken, or we cross compile.
6950 ++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6951 ++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6952 ++echo "$as_me:$LINENO: result: $cross_compiling" >&5
6953 ++echo "${ECHO_T}$cross_compiling" >&6
6954 ++
6955 ++echo "$as_me:$LINENO: checking for suffix of executables" >&5
6956 ++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6957 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 ++  (eval $ac_link) 2>&5
6959 ++  ac_status=$?
6960 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 ++  (exit $ac_status); }; then
6962 ++  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6963 ++# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6964 ++# work properly (i.e., refer to `conftest.exe'), while it won't with
6965 ++# `rm'.
6966 ++for ac_file in conftest.exe conftest conftest.*; do
6967 ++  test -f "$ac_file" || continue
6968 ++  case $ac_file in
6969 ++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6970 ++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6971 ++        export ac_cv_exeext
6972 ++        break;;
6973 ++    * ) break;;
6974 ++  esac
6975 ++done
6976 + else
6977 +-  ac_cv_prog_gcc=no
6978 +-fi
6979 +-fi
6980 ++  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
6981 ++See \`config.log' for more details." >&5
6982 ++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
6983 ++See \`config.log' for more details." >&2;}
6984 ++   { (exit 1); exit 1; }; }
6985 ++fi
6986 ++
6987 ++rm -f conftest$ac_cv_exeext
6988 ++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
6989 ++echo "${ECHO_T}$ac_cv_exeext" >&6
6990 ++
6991 ++rm -f conftest.$ac_ext
6992 ++EXEEXT=$ac_cv_exeext
6993 ++ac_exeext=$EXEEXT
6994 ++echo "$as_me:$LINENO: checking for suffix of object files" >&5
6995 ++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6996 ++if test "${ac_cv_objext+set}" = set; then
6997 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ++else
6999 ++  cat >conftest.$ac_ext <<_ACEOF
7000 ++/* confdefs.h.  */
7001 ++_ACEOF
7002 ++cat confdefs.h >>conftest.$ac_ext
7003 ++cat >>conftest.$ac_ext <<_ACEOF
7004 ++/* end confdefs.h.  */
7005
7006 +-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7007 ++int
7008 ++main ()
7009 ++{
7010
7011 +-if test $ac_cv_prog_gcc = yes; then
7012 +-  GCC=yes
7013 ++  ;
7014 ++  return 0;
7015 ++}
7016 ++_ACEOF
7017 ++rm -f conftest.o conftest.obj
7018 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 ++  (eval $ac_compile) 2>&5
7020 ++  ac_status=$?
7021 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 ++  (exit $ac_status); }; then
7023 ++  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
7024 ++  case $ac_file in
7025 ++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
7026 ++    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7027 ++       break;;
7028 ++  esac
7029 ++done
7030 + else
7031 +-  GCC=
7032 +-fi
7033 ++  echo "$as_me: failed program was:" >&5
7034 ++sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 +-ac_test_CFLAGS="${CFLAGS+set}"
7037 +-ac_save_CFLAGS="$CFLAGS"
7038 +-CFLAGS=
7039 +-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7040 +-echo "configure:1941: checking whether ${CC-cc} accepts -g" >&5
7041 +-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7042 +-  echo $ac_n "(cached) $ac_c" 1>&6
7043 +-else
7044 +-  echo 'void f(){}' > conftest.c
7045 +-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7046 ++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
7047 ++See \`config.log' for more details." >&5
7048 ++echo "$as_me: error: cannot compute suffix of object files: cannot compile
7049 ++See \`config.log' for more details." >&2;}
7050 ++   { (exit 1); exit 1; }; }
7051 ++fi
7052 ++
7053 ++rm -f conftest.$ac_cv_objext conftest.$ac_ext
7054 ++fi
7055 ++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
7056 ++echo "${ECHO_T}$ac_cv_objext" >&6
7057 ++OBJEXT=$ac_cv_objext
7058 ++ac_objext=$OBJEXT
7059 ++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7060 ++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7061 ++if test "${ac_cv_c_compiler_gnu+set}" = set; then
7062 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7063 ++else
7064 ++  cat >conftest.$ac_ext <<_ACEOF
7065 ++/* confdefs.h.  */
7066 ++_ACEOF
7067 ++cat confdefs.h >>conftest.$ac_ext
7068 ++cat >>conftest.$ac_ext <<_ACEOF
7069 ++/* end confdefs.h.  */
7070 ++
7071 ++int
7072 ++main ()
7073 ++{
7074 ++#ifndef __GNUC__
7075 ++       choke me
7076 ++#endif
7077 ++
7078 ++  ;
7079 ++  return 0;
7080 ++}
7081 ++_ACEOF
7082 ++rm -f conftest.$ac_objext
7083 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084 ++  (eval $ac_compile) 2>conftest.er1
7085 ++  ac_status=$?
7086 ++  grep -v '^ *+' conftest.er1 >conftest.err
7087 ++  rm -f conftest.er1
7088 ++  cat conftest.err >&5
7089 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 ++  (exit $ac_status); } &&
7091 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7092 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 ++  (eval $ac_try) 2>&5
7094 ++  ac_status=$?
7095 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 ++  (exit $ac_status); }; } &&
7097 ++       { ac_try='test -s conftest.$ac_objext'
7098 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 ++  (eval $ac_try) 2>&5
7100 ++  ac_status=$?
7101 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 ++  (exit $ac_status); }; }; then
7103 ++  ac_compiler_gnu=yes
7104 ++else
7105 ++  echo "$as_me: failed program was:" >&5
7106 ++sed 's/^/| /' conftest.$ac_ext >&5
7107 ++
7108 ++ac_compiler_gnu=no
7109 ++fi
7110 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111 ++ac_cv_c_compiler_gnu=$ac_compiler_gnu
7112 ++
7113 ++fi
7114 ++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7115 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7116 ++GCC=`test $ac_compiler_gnu = yes && echo yes`
7117 ++ac_test_CFLAGS=${CFLAGS+set}
7118 ++ac_save_CFLAGS=$CFLAGS
7119 ++CFLAGS="-g"
7120 ++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7121 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7122 ++if test "${ac_cv_prog_cc_g+set}" = set; then
7123 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7124 ++else
7125 ++  cat >conftest.$ac_ext <<_ACEOF
7126 ++/* confdefs.h.  */
7127 ++_ACEOF
7128 ++cat confdefs.h >>conftest.$ac_ext
7129 ++cat >>conftest.$ac_ext <<_ACEOF
7130 ++/* end confdefs.h.  */
7131 ++
7132 ++int
7133 ++main ()
7134 ++{
7135 ++
7136 ++  ;
7137 ++  return 0;
7138 ++}
7139 ++_ACEOF
7140 ++rm -f conftest.$ac_objext
7141 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 ++  (eval $ac_compile) 2>conftest.er1
7143 ++  ac_status=$?
7144 ++  grep -v '^ *+' conftest.er1 >conftest.err
7145 ++  rm -f conftest.er1
7146 ++  cat conftest.err >&5
7147 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 ++  (exit $ac_status); } &&
7149 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7150 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 ++  (eval $ac_try) 2>&5
7152 ++  ac_status=$?
7153 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 ++  (exit $ac_status); }; } &&
7155 ++       { ac_try='test -s conftest.$ac_objext'
7156 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 ++  (eval $ac_try) 2>&5
7158 ++  ac_status=$?
7159 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 ++  (exit $ac_status); }; }; then
7161 +   ac_cv_prog_cc_g=yes
7162 + else
7163 +-  ac_cv_prog_cc_g=no
7164 +-fi
7165 +-rm -f conftest*
7166 ++  echo "$as_me: failed program was:" >&5
7167 ++sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 ++ac_cv_prog_cc_g=no
7170 + fi
7171 +-
7172 +-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7173 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7174 ++fi
7175 ++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7176 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7177 + if test "$ac_test_CFLAGS" = set; then
7178 +-  CFLAGS="$ac_save_CFLAGS"
7179 ++  CFLAGS=$ac_save_CFLAGS
7180 + elif test $ac_cv_prog_cc_g = yes; then
7181 +   if test "$GCC" = yes; then
7182 +     CFLAGS="-g -O2"
7183 +@@ -1967,26 +3245,285 @@
7184 +     CFLAGS=
7185 +   fi
7186 + fi
7187 ++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7188 ++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7189 ++if test "${ac_cv_prog_cc_stdc+set}" = set; then
7190 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ++else
7192 ++  ac_cv_prog_cc_stdc=no
7193 ++ac_save_CC=$CC
7194 ++cat >conftest.$ac_ext <<_ACEOF
7195 ++/* confdefs.h.  */
7196 ++_ACEOF
7197 ++cat confdefs.h >>conftest.$ac_ext
7198 ++cat >>conftest.$ac_ext <<_ACEOF
7199 ++/* end confdefs.h.  */
7200 ++#include <stdarg.h>
7201 ++#include <stdio.h>
7202 ++#include <sys/types.h>
7203 ++#include <sys/stat.h>
7204 ++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7205 ++struct buf { int x; };
7206 ++FILE * (*rcsopen) (struct buf *, struct stat *, int);
7207 ++static char *e (p, i)
7208 ++     char **p;
7209 ++     int i;
7210 ++{
7211 ++  return p[i];
7212 ++}
7213 ++static char *f (char * (*g) (char **, int), char **p, ...)
7214 ++{
7215 ++  char *s;
7216 ++  va_list v;
7217 ++  va_start (v,p);
7218 ++  s = g (p, va_arg (v,int));
7219 ++  va_end (v);
7220 ++  return s;
7221 ++}
7222
7223 +-esac
7224 ++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7225 ++   function prototypes and stuff, but not '\xHH' hex character constants.
7226 ++   These don't provoke an error unfortunately, instead are silently treated
7227 ++   as 'x'.  The following induces an error, until -std1 is added to get
7228 ++   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7229 ++   array size at least.  It's necessary to write '\x00'==0 to get something
7230 ++   that's true only with -std1.  */
7231 ++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7232 ++
7233 ++int test (int i, double x);
7234 ++struct s1 {int (*f) (int a);};
7235 ++struct s2 {int (*f) (double a);};
7236 ++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7237 ++int argc;
7238 ++char **argv;
7239 ++int
7240 ++main ()
7241 ++{
7242 ++return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7243 ++  ;
7244 ++  return 0;
7245 ++}
7246 ++_ACEOF
7247 ++# Don't try gcc -ansi; that turns off useful extensions and
7248 ++# breaks some systems' header files.
7249 ++# AIX                 -qlanglvl=ansi
7250 ++# Ultrix and OSF/1    -std1
7251 ++# HP-UX 10.20 and later       -Ae
7252 ++# HP-UX older versions        -Aa -D_HPUX_SOURCE
7253 ++# SVR4                        -Xc -D__EXTENSIONS__
7254 ++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7255 ++do
7256 ++  CC="$ac_save_CC $ac_arg"
7257 ++  rm -f conftest.$ac_objext
7258 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 ++  (eval $ac_compile) 2>conftest.er1
7260 ++  ac_status=$?
7261 ++  grep -v '^ *+' conftest.er1 >conftest.err
7262 ++  rm -f conftest.er1
7263 ++  cat conftest.err >&5
7264 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 ++  (exit $ac_status); } &&
7266 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7267 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 ++  (eval $ac_try) 2>&5
7269 ++  ac_status=$?
7270 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 ++  (exit $ac_status); }; } &&
7272 ++       { ac_try='test -s conftest.$ac_objext'
7273 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 ++  (eval $ac_try) 2>&5
7275 ++  ac_status=$?
7276 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 ++  (exit $ac_status); }; }; then
7278 ++  ac_cv_prog_cc_stdc=$ac_arg
7279 ++break
7280 ++else
7281 ++  echo "$as_me: failed program was:" >&5
7282 ++sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 +-# On Suns, sometimes $CPP names a directory.
7285 +-if test -n "$CPP" && test -d "$CPP"; then
7286 +-  CPP=
7287 + fi
7288 ++rm -f conftest.err conftest.$ac_objext
7289 ++done
7290 ++rm -f conftest.$ac_ext conftest.$ac_objext
7291 ++CC=$ac_save_CC
7292
7293 +-#### Some systems specify a CPP to use unless we are using GCC.
7294 +-#### Now that we know whether we are using GCC, we can decide whether
7295 +-#### to use that one.
7296 +-if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7297 +-then
7298 +-  CPP="$NON_GNU_CPP"
7299 + fi
7300
7301 +-#### Some systems specify a CC to use unless we are using GCC.
7302 +-#### Now that we know whether we are using GCC, we can decide whether
7303 +-#### to use that one.
7304 +-if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7305 ++case "x$ac_cv_prog_cc_stdc" in
7306 ++  x|xno)
7307 ++    echo "$as_me:$LINENO: result: none needed" >&5
7308 ++echo "${ECHO_T}none needed" >&6 ;;
7309 ++  *)
7310 ++    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7311 ++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7312 ++    CC="$CC $ac_cv_prog_cc_stdc" ;;
7313 ++esac
7314 ++
7315 ++# Some people use a C++ compiler to compile C.  Since we use `exit',
7316 ++# in C++ we need to declare it.  In case someone uses the same compiler
7317 ++# for both compiling C and C++ we need to have the C++ compiler decide
7318 ++# the declaration of exit, since it's the most demanding environment.
7319 ++cat >conftest.$ac_ext <<_ACEOF
7320 ++#ifndef __cplusplus
7321 ++  choke me
7322 ++#endif
7323 ++_ACEOF
7324 ++rm -f conftest.$ac_objext
7325 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 ++  (eval $ac_compile) 2>conftest.er1
7327 ++  ac_status=$?
7328 ++  grep -v '^ *+' conftest.er1 >conftest.err
7329 ++  rm -f conftest.er1
7330 ++  cat conftest.err >&5
7331 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 ++  (exit $ac_status); } &&
7333 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7334 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 ++  (eval $ac_try) 2>&5
7336 ++  ac_status=$?
7337 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 ++  (exit $ac_status); }; } &&
7339 ++       { ac_try='test -s conftest.$ac_objext'
7340 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 ++  (eval $ac_try) 2>&5
7342 ++  ac_status=$?
7343 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 ++  (exit $ac_status); }; }; then
7345 ++  for ac_declaration in \
7346 ++   '' \
7347 ++   'extern "C" void std::exit (int) throw (); using std::exit;' \
7348 ++   'extern "C" void std::exit (int); using std::exit;' \
7349 ++   'extern "C" void exit (int) throw ();' \
7350 ++   'extern "C" void exit (int);' \
7351 ++   'void exit (int);'
7352 ++do
7353 ++  cat >conftest.$ac_ext <<_ACEOF
7354 ++/* confdefs.h.  */
7355 ++_ACEOF
7356 ++cat confdefs.h >>conftest.$ac_ext
7357 ++cat >>conftest.$ac_ext <<_ACEOF
7358 ++/* end confdefs.h.  */
7359 ++$ac_declaration
7360 ++#include <stdlib.h>
7361 ++int
7362 ++main ()
7363 ++{
7364 ++exit (42);
7365 ++  ;
7366 ++  return 0;
7367 ++}
7368 ++_ACEOF
7369 ++rm -f conftest.$ac_objext
7370 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 ++  (eval $ac_compile) 2>conftest.er1
7372 ++  ac_status=$?
7373 ++  grep -v '^ *+' conftest.er1 >conftest.err
7374 ++  rm -f conftest.er1
7375 ++  cat conftest.err >&5
7376 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 ++  (exit $ac_status); } &&
7378 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7379 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 ++  (eval $ac_try) 2>&5
7381 ++  ac_status=$?
7382 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 ++  (exit $ac_status); }; } &&
7384 ++       { ac_try='test -s conftest.$ac_objext'
7385 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 ++  (eval $ac_try) 2>&5
7387 ++  ac_status=$?
7388 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 ++  (exit $ac_status); }; }; then
7390 ++  :
7391 ++else
7392 ++  echo "$as_me: failed program was:" >&5
7393 ++sed 's/^/| /' conftest.$ac_ext >&5
7394 ++
7395 ++continue
7396 ++fi
7397 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 ++  cat >conftest.$ac_ext <<_ACEOF
7399 ++/* confdefs.h.  */
7400 ++_ACEOF
7401 ++cat confdefs.h >>conftest.$ac_ext
7402 ++cat >>conftest.$ac_ext <<_ACEOF
7403 ++/* end confdefs.h.  */
7404 ++$ac_declaration
7405 ++int
7406 ++main ()
7407 ++{
7408 ++exit (42);
7409 ++  ;
7410 ++  return 0;
7411 ++}
7412 ++_ACEOF
7413 ++rm -f conftest.$ac_objext
7414 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 ++  (eval $ac_compile) 2>conftest.er1
7416 ++  ac_status=$?
7417 ++  grep -v '^ *+' conftest.er1 >conftest.err
7418 ++  rm -f conftest.er1
7419 ++  cat conftest.err >&5
7420 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 ++  (exit $ac_status); } &&
7422 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7423 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 ++  (eval $ac_try) 2>&5
7425 ++  ac_status=$?
7426 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 ++  (exit $ac_status); }; } &&
7428 ++       { ac_try='test -s conftest.$ac_objext'
7429 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 ++  (eval $ac_try) 2>&5
7431 ++  ac_status=$?
7432 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 ++  (exit $ac_status); }; }; then
7434 ++  break
7435 ++else
7436 ++  echo "$as_me: failed program was:" >&5
7437 ++sed 's/^/| /' conftest.$ac_ext >&5
7438 ++
7439 ++fi
7440 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7441 ++done
7442 ++rm -f conftest*
7443 ++if test -n "$ac_declaration"; then
7444 ++  echo '#ifdef __cplusplus' >>confdefs.h
7445 ++  echo $ac_declaration      >>confdefs.h
7446 ++  echo '#endif'             >>confdefs.h
7447 ++fi
7448 ++
7449 ++else
7450 ++  echo "$as_me: failed program was:" >&5
7451 ++sed 's/^/| /' conftest.$ac_ext >&5
7452 ++
7453 ++fi
7454 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455 ++ac_ext=c
7456 ++ac_cpp='$CPP $CPPFLAGS'
7457 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460 ++
7461 ++esac
7462 ++
7463 ++# On Suns, sometimes $CPP names a directory.
7464 ++if test -n "$CPP" && test -d "$CPP"; then
7465 ++  CPP=
7466 ++fi
7467 ++
7468 ++#### Some systems specify a CPP to use unless we are using GCC.
7469 ++#### Now that we know whether we are using GCC, we can decide whether
7470 ++#### to use that one.
7471 ++if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7472 ++then
7473 ++  CPP="$NON_GNU_CPP"
7474 ++fi
7475 ++
7476 ++#### Some systems specify a CC to use unless we are using GCC.
7477 ++#### Now that we know whether we are using GCC, we can decide whether
7478 ++#### to use that one.
7479 ++if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7480 +   test x$cc_specified != xyes
7481 + then
7482 +   CC="$NON_GNU_CC"
7483 +@@ -2016,106 +3553,250 @@
7484 + #### should make an entry in src/config.h, don't forget to add an
7485 + #### #undef clause to src/config.h.in for autoconf to modify.
7486
7487 +-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7488 +-echo "configure:2021: checking whether ln -s works" >&5
7489 +-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7490 +-  echo $ac_n "(cached) $ac_c" 1>&6
7491 +-else
7492 +-  rm -f conftestdata
7493 +-if ln -s X conftestdata 2>/dev/null
7494 +-then
7495 +-  rm -f conftestdata
7496 +-  ac_cv_prog_LN_S="ln -s"
7497 ++echo "$as_me:$LINENO: checking whether ln -s works" >&5
7498 ++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7499 ++LN_S=$as_ln_s
7500 ++if test "$LN_S" = "ln -s"; then
7501 ++  echo "$as_me:$LINENO: result: yes" >&5
7502 ++echo "${ECHO_T}yes" >&6
7503 + else
7504 +-  ac_cv_prog_LN_S=ln
7505 +-fi
7506 +-fi
7507 +-LN_S="$ac_cv_prog_LN_S"
7508 +-if test "$ac_cv_prog_LN_S" = "ln -s"; then
7509 +-  echo "$ac_t""yes" 1>&6
7510 +-else
7511 +-  echo "$ac_t""no" 1>&6
7512 ++  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7513 ++echo "${ECHO_T}no, using $LN_S" >&6
7514 + fi
7515
7516 +-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7517 +-echo "configure:2042: checking how to run the C preprocessor" >&5
7518 ++ac_ext=c
7519 ++ac_cpp='$CPP $CPPFLAGS'
7520 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 ++echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7524 ++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7525 + # On Suns, sometimes $CPP names a directory.
7526 + if test -n "$CPP" && test -d "$CPP"; then
7527 +   CPP=
7528 + fi
7529 + if test -z "$CPP"; then
7530 +-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7531 +-  echo $ac_n "(cached) $ac_c" 1>&6
7532 ++  if test "${ac_cv_prog_CPP+set}" = set; then
7533 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7534 + else
7535 +-    # This must be in double quotes, not single quotes, because CPP may get
7536 +-  # substituted into the Makefile and "${CC-cc}" will confuse make.
7537 +-  CPP="${CC-cc} -E"
7538 ++      # Double quotes because CPP needs to be expanded
7539 ++    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7540 ++    do
7541 ++      ac_preproc_ok=false
7542 ++for ac_c_preproc_warn_flag in '' yes
7543 ++do
7544 ++  # Use a header file that comes with gcc, so configuring glibc
7545 ++  # with a fresh cross-compiler works.
7546 ++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547 ++  # <limits.h> exists even on freestanding compilers.
7548 +   # On the NeXT, cc -E runs the code through the compiler's parser,
7549 +-  # not just through cpp.
7550 +-  cat > conftest.$ac_ext <<EOF
7551 +-#line 2057 "configure"
7552 +-#include "confdefs.h"
7553 +-#include <assert.h>
7554 +-Syntax Error
7555 +-EOF
7556 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7557 +-{ (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7558 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7559 +-if test -z "$ac_err"; then
7560 +-  :
7561 ++  # not just through cpp. "Syntax error" is here to catch this case.
7562 ++  cat >conftest.$ac_ext <<_ACEOF
7563 ++/* confdefs.h.  */
7564 ++_ACEOF
7565 ++cat confdefs.h >>conftest.$ac_ext
7566 ++cat >>conftest.$ac_ext <<_ACEOF
7567 ++/* end confdefs.h.  */
7568 ++#ifdef __STDC__
7569 ++# include <limits.h>
7570 ++#else
7571 ++# include <assert.h>
7572 ++#endif
7573 ++                   Syntax error
7574 ++_ACEOF
7575 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7577 ++  ac_status=$?
7578 ++  grep -v '^ *+' conftest.er1 >conftest.err
7579 ++  rm -f conftest.er1
7580 ++  cat conftest.err >&5
7581 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 ++  (exit $ac_status); } >/dev/null; then
7583 ++  if test -s conftest.err; then
7584 ++    ac_cpp_err=$ac_c_preproc_warn_flag
7585 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7586 ++  else
7587 ++    ac_cpp_err=
7588 ++  fi
7589 + else
7590 +-  echo "$ac_err" >&5
7591 +-  echo "configure: failed program was:" >&5
7592 +-  cat conftest.$ac_ext >&5
7593 +-  rm -rf conftest*
7594 +-  CPP="${CC-cc} -E -traditional-cpp"
7595 +-  cat > conftest.$ac_ext <<EOF
7596 +-#line 2074 "configure"
7597 +-#include "confdefs.h"
7598 +-#include <assert.h>
7599 +-Syntax Error
7600 +-EOF
7601 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7602 +-{ (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7603 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7604 +-if test -z "$ac_err"; then
7605 ++  ac_cpp_err=yes
7606 ++fi
7607 ++if test -z "$ac_cpp_err"; then
7608 +   :
7609 + else
7610 +-  echo "$ac_err" >&5
7611 +-  echo "configure: failed program was:" >&5
7612 +-  cat conftest.$ac_ext >&5
7613 +-  rm -rf conftest*
7614 +-  CPP="${CC-cc} -nologo -E"
7615 +-  cat > conftest.$ac_ext <<EOF
7616 +-#line 2091 "configure"
7617 +-#include "confdefs.h"
7618 +-#include <assert.h>
7619 +-Syntax Error
7620 +-EOF
7621 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7622 +-{ (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7623 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7624 +-if test -z "$ac_err"; then
7625 +-  :
7626 ++  echo "$as_me: failed program was:" >&5
7627 ++sed 's/^/| /' conftest.$ac_ext >&5
7628 ++
7629 ++  # Broken: fails on valid input.
7630 ++continue
7631 ++fi
7632 ++rm -f conftest.err conftest.$ac_ext
7633 ++
7634 ++  # OK, works on sane cases.  Now check whether non-existent headers
7635 ++  # can be detected and how.
7636 ++  cat >conftest.$ac_ext <<_ACEOF
7637 ++/* confdefs.h.  */
7638 ++_ACEOF
7639 ++cat confdefs.h >>conftest.$ac_ext
7640 ++cat >>conftest.$ac_ext <<_ACEOF
7641 ++/* end confdefs.h.  */
7642 ++#include <ac_nonexistent.h>
7643 ++_ACEOF
7644 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646 ++  ac_status=$?
7647 ++  grep -v '^ *+' conftest.er1 >conftest.err
7648 ++  rm -f conftest.er1
7649 ++  cat conftest.err >&5
7650 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 ++  (exit $ac_status); } >/dev/null; then
7652 ++  if test -s conftest.err; then
7653 ++    ac_cpp_err=$ac_c_preproc_warn_flag
7654 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7655 ++  else
7656 ++    ac_cpp_err=
7657 ++  fi
7658 + else
7659 +-  echo "$ac_err" >&5
7660 +-  echo "configure: failed program was:" >&5
7661 +-  cat conftest.$ac_ext >&5
7662 +-  rm -rf conftest*
7663 +-  CPP=/lib/cpp
7664 ++  ac_cpp_err=yes
7665 + fi
7666 +-rm -f conftest*
7667 ++if test -z "$ac_cpp_err"; then
7668 ++  # Broken: success on invalid input.
7669 ++continue
7670 ++else
7671 ++  echo "$as_me: failed program was:" >&5
7672 ++sed 's/^/| /' conftest.$ac_ext >&5
7673 ++
7674 ++  # Passes both tests.
7675 ++ac_preproc_ok=:
7676 ++break
7677 + fi
7678 +-rm -f conftest*
7679 ++rm -f conftest.err conftest.$ac_ext
7680 ++
7681 ++done
7682 ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7683 ++rm -f conftest.err conftest.$ac_ext
7684 ++if $ac_preproc_ok; then
7685 ++  break
7686 + fi
7687 +-rm -f conftest*
7688 +-  ac_cv_prog_CPP="$CPP"
7689 ++
7690 ++    done
7691 ++    ac_cv_prog_CPP=$CPP
7692 ++
7693 ++fi
7694 ++  CPP=$ac_cv_prog_CPP
7695 ++else
7696 ++  ac_cv_prog_CPP=$CPP
7697 ++fi
7698 ++echo "$as_me:$LINENO: result: $CPP" >&5
7699 ++echo "${ECHO_T}$CPP" >&6
7700 ++ac_preproc_ok=false
7701 ++for ac_c_preproc_warn_flag in '' yes
7702 ++do
7703 ++  # Use a header file that comes with gcc, so configuring glibc
7704 ++  # with a fresh cross-compiler works.
7705 ++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 ++  # <limits.h> exists even on freestanding compilers.
7707 ++  # On the NeXT, cc -E runs the code through the compiler's parser,
7708 ++  # not just through cpp. "Syntax error" is here to catch this case.
7709 ++  cat >conftest.$ac_ext <<_ACEOF
7710 ++/* confdefs.h.  */
7711 ++_ACEOF
7712 ++cat confdefs.h >>conftest.$ac_ext
7713 ++cat >>conftest.$ac_ext <<_ACEOF
7714 ++/* end confdefs.h.  */
7715 ++#ifdef __STDC__
7716 ++# include <limits.h>
7717 ++#else
7718 ++# include <assert.h>
7719 ++#endif
7720 ++                   Syntax error
7721 ++_ACEOF
7722 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7723 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7724 ++  ac_status=$?
7725 ++  grep -v '^ *+' conftest.er1 >conftest.err
7726 ++  rm -f conftest.er1
7727 ++  cat conftest.err >&5
7728 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 ++  (exit $ac_status); } >/dev/null; then
7730 ++  if test -s conftest.err; then
7731 ++    ac_cpp_err=$ac_c_preproc_warn_flag
7732 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7733 ++  else
7734 ++    ac_cpp_err=
7735 ++  fi
7736 ++else
7737 ++  ac_cpp_err=yes
7738 ++fi
7739 ++if test -z "$ac_cpp_err"; then
7740 ++  :
7741 ++else
7742 ++  echo "$as_me: failed program was:" >&5
7743 ++sed 's/^/| /' conftest.$ac_ext >&5
7744 ++
7745 ++  # Broken: fails on valid input.
7746 ++continue
7747 ++fi
7748 ++rm -f conftest.err conftest.$ac_ext
7749 ++
7750 ++  # OK, works on sane cases.  Now check whether non-existent headers
7751 ++  # can be detected and how.
7752 ++  cat >conftest.$ac_ext <<_ACEOF
7753 ++/* confdefs.h.  */
7754 ++_ACEOF
7755 ++cat confdefs.h >>conftest.$ac_ext
7756 ++cat >>conftest.$ac_ext <<_ACEOF
7757 ++/* end confdefs.h.  */
7758 ++#include <ac_nonexistent.h>
7759 ++_ACEOF
7760 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762 ++  ac_status=$?
7763 ++  grep -v '^ *+' conftest.er1 >conftest.err
7764 ++  rm -f conftest.er1
7765 ++  cat conftest.err >&5
7766 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 ++  (exit $ac_status); } >/dev/null; then
7768 ++  if test -s conftest.err; then
7769 ++    ac_cpp_err=$ac_c_preproc_warn_flag
7770 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7771 ++  else
7772 ++    ac_cpp_err=
7773 ++  fi
7774 ++else
7775 ++  ac_cpp_err=yes
7776 + fi
7777 +-  CPP="$ac_cv_prog_CPP"
7778 ++if test -z "$ac_cpp_err"; then
7779 ++  # Broken: success on invalid input.
7780 ++continue
7781 + else
7782 +-  ac_cv_prog_CPP="$CPP"
7783 ++  echo "$as_me: failed program was:" >&5
7784 ++sed 's/^/| /' conftest.$ac_ext >&5
7785 ++
7786 ++  # Passes both tests.
7787 ++ac_preproc_ok=:
7788 ++break
7789 ++fi
7790 ++rm -f conftest.err conftest.$ac_ext
7791 ++
7792 ++done
7793 ++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7794 ++rm -f conftest.err conftest.$ac_ext
7795 ++if $ac_preproc_ok; then
7796 ++  :
7797 ++else
7798 ++  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7799 ++See \`config.log' for more details." >&5
7800 ++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7801 ++See \`config.log' for more details." >&2;}
7802 ++   { (exit 1); exit 1; }; }
7803 + fi
7804 +-echo "$ac_t""$CPP" 1>&6
7805 ++
7806 ++ac_ext=c
7807 ++ac_cpp='$CPP $CPPFLAGS'
7808 ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ++ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812 + # Find a good install program.  We prefer a C program (faster),
7813 + # so one script is as good as another.  But avoid the broken or
7814 +@@ -2124,151 +3805,244 @@
7815 + # SunOS /usr/etc/install
7816 + # IRIX /sbin/install
7817 + # AIX /bin/install
7818 ++# AmigaOS /C/install, which installs bootblocks on floppy discs
7819 + # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7820 + # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7821 + # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7822 ++# OS/2's system install, which has a completely different semantic
7823 + # ./install, which can be erroneously created by make from ./install.sh.
7824 +-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7825 +-echo "configure:2133: checking for a BSD compatible install" >&5
7826 ++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7827 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7828 + if test -z "$INSTALL"; then
7829 +-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7830 +-  echo $ac_n "(cached) $ac_c" 1>&6
7831 ++if test "${ac_cv_path_install+set}" = set; then
7832 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7833 + else
7834 +-    IFS="${IFS=       }"; ac_save_IFS="$IFS"; IFS=":"
7835 +-  for ac_dir in $PATH; do
7836 +-    # Account for people who put trailing slashes in PATH elements.
7837 +-    case "$ac_dir/" in
7838 +-    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7839 +-    *)
7840 +-      # OSF1 and SCO ODT 3.0 have their own names for install.
7841 +-      # Don't use installbsd from OSF since it installs stuff as root
7842 +-      # by default.
7843 +-      for ac_prog in ginstall scoinst install; do
7844 +-        if test -f $ac_dir/$ac_prog; then
7845 ++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 ++for as_dir in $PATH
7847 ++do
7848 ++  IFS=$as_save_IFS
7849 ++  test -z "$as_dir" && as_dir=.
7850 ++  # Account for people who put trailing slashes in PATH elements.
7851 ++case $as_dir/ in
7852 ++  ./ | .// | /cC/* | \
7853 ++  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7854 ++  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7855 ++  /usr/ucb/* ) ;;
7856 ++  *)
7857 ++    # OSF1 and SCO ODT 3.0 have their own names for install.
7858 ++    # Don't use installbsd from OSF since it installs stuff as root
7859 ++    # by default.
7860 ++    for ac_prog in ginstall scoinst install; do
7861 ++      for ac_exec_ext in '' $ac_executable_extensions; do
7862 ++      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7863 +         if test $ac_prog = install &&
7864 +-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7865 ++          grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7866 +           # AIX install.  It has an incompatible calling convention.
7867 +           :
7868 ++        elif test $ac_prog = install &&
7869 ++          grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7870 ++          # program-specific install script used by HP pwplus--don't use.
7871 ++          :
7872 +         else
7873 +-          ac_cv_path_install="$ac_dir/$ac_prog -c"
7874 +-          break 2
7875 ++          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7876 ++          break 3
7877 +         fi
7878 +       fi
7879 +       done
7880 +-      ;;
7881 +-    esac
7882 +-  done
7883 +-  IFS="$ac_save_IFS"
7884 ++    done
7885 ++    ;;
7886 ++esac
7887 ++done
7888 ++
7889
7890 + fi
7891 +   if test "${ac_cv_path_install+set}" = set; then
7892 +-    INSTALL="$ac_cv_path_install"
7893 ++    INSTALL=$ac_cv_path_install
7894 +   else
7895 +     # As a last resort, use the slow shell script.  We don't cache a
7896 +     # path for INSTALL within a source directory, because that will
7897 +     # break other packages using the cache if that directory is
7898 +     # removed, or if the path is relative.
7899 +-    INSTALL="$ac_install_sh"
7900 ++    INSTALL=$ac_install_sh
7901 +   fi
7902 + fi
7903 +-echo "$ac_t""$INSTALL" 1>&6
7904 ++echo "$as_me:$LINENO: result: $INSTALL" >&5
7905 ++echo "${ECHO_T}$INSTALL" >&6
7906
7907 + # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7908 + # It thinks the first close brace ends the variable substitution.
7909 + test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7910
7911 +-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7912 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7913
7914 + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7915
7916 + for ac_prog in 'bison -y' byacc
7917 + do
7918 +-# Extract the first word of "$ac_prog", so it can be a program name with args.
7919 ++  # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 + set dummy $ac_prog; ac_word=$2
7921 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7922 +-echo "configure:2190: checking for $ac_word" >&5
7923 +-if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7924 +-  echo $ac_n "(cached) $ac_c" 1>&6
7925 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7927 ++if test "${ac_cv_prog_YACC+set}" = set; then
7928 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7929 + else
7930 +   if test -n "$YACC"; then
7931 +   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7932 + else
7933 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
7934 +-  ac_dummy="$PATH"
7935 +-  for ac_dir in $ac_dummy; do
7936 +-    test -z "$ac_dir" && ac_dir=.
7937 +-    if test -f $ac_dir/$ac_word; then
7938 +-      ac_cv_prog_YACC="$ac_prog"
7939 +-      break
7940 +-    fi
7941 +-  done
7942 +-  IFS="$ac_save_ifs"
7943 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 ++for as_dir in $PATH
7945 ++do
7946 ++  IFS=$as_save_IFS
7947 ++  test -z "$as_dir" && as_dir=.
7948 ++  for ac_exec_ext in '' $ac_executable_extensions; do
7949 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ++    ac_cv_prog_YACC="$ac_prog"
7951 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 ++    break 2
7953 ++  fi
7954 ++done
7955 ++done
7956 ++
7957 + fi
7958 + fi
7959 +-YACC="$ac_cv_prog_YACC"
7960 ++YACC=$ac_cv_prog_YACC
7961 + if test -n "$YACC"; then
7962 +-  echo "$ac_t""$YACC" 1>&6
7963 ++  echo "$as_me:$LINENO: result: $YACC" >&5
7964 ++echo "${ECHO_T}$YACC" >&6
7965 + else
7966 +-  echo "$ac_t""no" 1>&6
7967 ++  echo "$as_me:$LINENO: result: no" >&5
7968 ++echo "${ECHO_T}no" >&6
7969 + fi
7970
7971 +-test -n "$YACC" && break
7972 ++  test -n "$YACC" && break
7973 + done
7974 + test -n "$YACC" || YACC="yacc"
7975
7976 + if test "x$RANLIB" = x; then
7977 +-  # Extract the first word of "ranlib", so it can be a program name with args.
7978 +-set dummy ranlib; ac_word=$2
7979 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7980 +-echo "configure:2224: checking for $ac_word" >&5
7981 +-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7982 +-  echo $ac_n "(cached) $ac_c" 1>&6
7983 ++  if test -n "$ac_tool_prefix"; then
7984 ++  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7985 ++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7986 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7988 ++if test "${ac_cv_prog_RANLIB+set}" = set; then
7989 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
7990 + else
7991 +   if test -n "$RANLIB"; then
7992 +   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7993 + else
7994 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
7995 +-  ac_dummy="$PATH"
7996 +-  for ac_dir in $ac_dummy; do
7997 +-    test -z "$ac_dir" && ac_dir=.
7998 +-    if test -f $ac_dir/$ac_word; then
7999 +-      ac_cv_prog_RANLIB="ranlib"
8000 +-      break
8001 +-    fi
8002 +-  done
8003 +-  IFS="$ac_save_ifs"
8004 +-  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8005 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 ++for as_dir in $PATH
8007 ++do
8008 ++  IFS=$as_save_IFS
8009 ++  test -z "$as_dir" && as_dir=.
8010 ++  for ac_exec_ext in '' $ac_executable_extensions; do
8011 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ++    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8013 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 ++    break 2
8015 ++  fi
8016 ++done
8017 ++done
8018 ++
8019 + fi
8020 + fi
8021 +-RANLIB="$ac_cv_prog_RANLIB"
8022 ++RANLIB=$ac_cv_prog_RANLIB
8023 + if test -n "$RANLIB"; then
8024 +-  echo "$ac_t""$RANLIB" 1>&6
8025 ++  echo "$as_me:$LINENO: result: $RANLIB" >&5
8026 ++echo "${ECHO_T}$RANLIB" >&6
8027 ++else
8028 ++  echo "$as_me:$LINENO: result: no" >&5
8029 ++echo "${ECHO_T}no" >&6
8030 ++fi
8031 ++
8032 ++fi
8033 ++if test -z "$ac_cv_prog_RANLIB"; then
8034 ++  ac_ct_RANLIB=$RANLIB
8035 ++  # Extract the first word of "ranlib", so it can be a program name with args.
8036 ++set dummy ranlib; ac_word=$2
8037 ++echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039 ++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8040 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ++else
8042 ++  if test -n "$ac_ct_RANLIB"; then
8043 ++  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8044 ++else
8045 ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 ++for as_dir in $PATH
8047 ++do
8048 ++  IFS=$as_save_IFS
8049 ++  test -z "$as_dir" && as_dir=.
8050 ++  for ac_exec_ext in '' $ac_executable_extensions; do
8051 ++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ++    ac_cv_prog_ac_ct_RANLIB="ranlib"
8053 ++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 ++    break 2
8055 ++  fi
8056 ++done
8057 ++done
8058 ++
8059 ++  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8060 ++fi
8061 ++fi
8062 ++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8063 ++if test -n "$ac_ct_RANLIB"; then
8064 ++  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8065 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6
8066 + else
8067 +-  echo "$ac_t""no" 1>&6
8068 ++  echo "$as_me:$LINENO: result: no" >&5
8069 ++echo "${ECHO_T}no" >&6
8070 ++fi
8071 ++
8072 ++  RANLIB=$ac_ct_RANLIB
8073 ++else
8074 ++  RANLIB="$ac_cv_prog_RANLIB"
8075 ++fi
8076 ++
8077 + fi
8078
8079 ++
8080 ++
8081 ++echo "$as_me:$LINENO: checking for egrep" >&5
8082 ++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8083 ++if test "${ac_cv_prog_egrep+set}" = set; then
8084 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8085 ++else
8086 ++  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8087 ++    then ac_cv_prog_egrep='grep -E'
8088 ++    else ac_cv_prog_egrep='egrep'
8089 ++    fi
8090 + fi
8091 ++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8092 ++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8093 ++ EGREP=$ac_cv_prog_egrep
8094 ++
8095
8096 +-echo $ac_n "checking for AIX""... $ac_c" 1>&6
8097 +-echo "configure:2254: checking for AIX" >&5
8098 +-cat > conftest.$ac_ext <<EOF
8099 +-#line 2256 "configure"
8100 +-#include "confdefs.h"
8101 ++
8102 ++echo "$as_me:$LINENO: checking for AIX" >&5
8103 ++echo $ECHO_N "checking for AIX... $ECHO_C" >&6
8104 ++cat >conftest.$ac_ext <<_ACEOF
8105 ++/* confdefs.h.  */
8106 ++_ACEOF
8107 ++cat confdefs.h >>conftest.$ac_ext
8108 ++cat >>conftest.$ac_ext <<_ACEOF
8109 ++/* end confdefs.h.  */
8110 + #ifdef _AIX
8111 +   yes
8112 + #endif
8113
8114 +-EOF
8115 ++_ACEOF
8116 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 +-  egrep "yes" >/dev/null 2>&1; then
8118 +-  rm -rf conftest*
8119 +-  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
8120 ++  $EGREP "yes" >/dev/null 2>&1; then
8121 ++  echo "$as_me:$LINENO: result: yes" >&5
8122 ++echo "${ECHO_T}yes" >&6
8123 ++cat >>confdefs.h <<\_ACEOF
8124 + #define _ALL_SOURCE 1
8125 +-EOF
8126 ++_ACEOF
8127
8128 + else
8129 +-  rm -rf conftest*
8130 +-  echo "$ac_t""no" 1>&6
8131 ++  echo "$as_me:$LINENO: result: no" >&5
8132 ++echo "${ECHO_T}no" >&6
8133 + fi
8134 + rm -f conftest*
8135
8136 +@@ -2276,12 +4050,12 @@
8137
8138 + #### Extract some information from the operating system and machine files.
8139
8140 +-echo "checking the machine- and system-dependent files to find out
8141 ++{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
8142 +  - which libraries the lib-src programs will want, and
8143 +- - whether the GNU malloc routines are usable" 1>&6
8144 +-echo "configure:2283: checking the machine- and system-dependent files to find out
8145 ++ - whether the GNU malloc routines are usable..." >&5
8146 ++echo "$as_me: checking the machine- and system-dependent files to find out
8147 +  - which libraries the lib-src programs will want, and
8148 +- - whether the GNU malloc routines are usable" >&5
8149 ++ - whether the GNU malloc routines are usable..." >&6;}
8150
8151 + ### First figure out CFLAGS (which we use for running the compiler here)
8152 + ### and REAL_CFLAGS (which we use for real compilation).
8153 +@@ -2370,7 +4144,7 @@
8154
8155 + #ifndef LD_SWITCH_X_SITE_AUX
8156 + #define LD_SWITCH_X_SITE_AUX
8157 +-#endif  
8158 ++#endif
8159
8160 + configure___ ld_switch_system=LD_SWITCH_SYSTEM
8161 + configure___ ld_switch_machine=LD_SWITCH_MACHINE
8162 +@@ -2419,343 +4193,1060 @@
8163 +   CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
8164 + fi
8165
8166 +-
8167 +-   # Check whether --enable-largefile or --disable-largefile was given.
8168 ++# Check whether --enable-largefile or --disable-largefile was given.
8169 + if test "${enable_largefile+set}" = set; then
8170 +   enableval="$enable_largefile"
8171 +-  :
8172 +-fi
8173
8174 +-   if test "$enable_largefile" != no; then
8175 ++fi;
8176 ++if test "$enable_largefile" != no; then
8177
8178 +-     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
8179 +-echo "configure:2433: checking for special C compiler options needed for large files" >&5
8180 +-if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
8181 +-  echo $ac_n "(cached) $ac_c" 1>&6
8182 ++  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8183 ++echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8184 ++if test "${ac_cv_sys_largefile_CC+set}" = set; then
8185 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8186 + else
8187 +   ac_cv_sys_largefile_CC=no
8188 +-        if test "$GCC" != yes; then
8189 +-        # IRIX 6.2 and later do not support large files by default,
8190 +-        # so use the C compiler's -n32 option if that helps.
8191 +-        cat > conftest.$ac_ext <<EOF
8192 +-#line 2442 "configure"
8193 +-#include "confdefs.h"
8194 +-#include <sys/types.h>
8195 +-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8196 +-  
8197 +-int main() {
8198 +-
8199 +-; return 0; }
8200 +-EOF
8201 +-if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8202 +-  :
8203 +-else
8204 +-  echo "configure: failed program was:" >&5
8205 +-  cat conftest.$ac_ext >&5
8206 +-  rm -rf conftest*
8207 +-  ac_save_CC="$CC"
8208 +-           CC="$CC -n32"
8209 +-           cat > conftest.$ac_ext <<EOF
8210 +-#line 2460 "configure"
8211 +-#include "confdefs.h"
8212 ++     if test "$GCC" != yes; then
8213 ++       ac_save_CC=$CC
8214 ++       while :; do
8215 ++       # IRIX 6.2 and later do not support large files by default,
8216 ++       # so use the C compiler's -n32 option if that helps.
8217 ++       cat >conftest.$ac_ext <<_ACEOF
8218 ++/* confdefs.h.  */
8219 ++_ACEOF
8220 ++cat confdefs.h >>conftest.$ac_ext
8221 ++cat >>conftest.$ac_ext <<_ACEOF
8222 ++/* end confdefs.h.  */
8223 + #include <sys/types.h>
8224 +-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8225 +-  
8226 +-int main() {
8227 +-
8228 +-; return 0; }
8229 +-EOF
8230 +-if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8231 +-  rm -rf conftest*
8232 +-  ac_cv_sys_largefile_CC=' -n32'
8233 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8234 ++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8235 ++    since some C++ compilers masquerading as C compilers
8236 ++    incorrectly reject 9223372036854775807.  */
8237 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8238 ++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8239 ++                     && LARGE_OFF_T % 2147483647 == 1)
8240 ++                    ? 1 : -1];
8241 ++int
8242 ++main ()
8243 ++{
8244 ++
8245 ++  ;
8246 ++  return 0;
8247 ++}
8248 ++_ACEOF
8249 ++       rm -f conftest.$ac_objext
8250 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 ++  (eval $ac_compile) 2>conftest.er1
8252 ++  ac_status=$?
8253 ++  grep -v '^ *+' conftest.er1 >conftest.err
8254 ++  rm -f conftest.er1
8255 ++  cat conftest.err >&5
8256 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 ++  (exit $ac_status); } &&
8258 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8259 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 ++  (eval $ac_try) 2>&5
8261 ++  ac_status=$?
8262 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 ++  (exit $ac_status); }; } &&
8264 ++       { ac_try='test -s conftest.$ac_objext'
8265 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 ++  (eval $ac_try) 2>&5
8267 ++  ac_status=$?
8268 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 ++  (exit $ac_status); }; }; then
8270 ++  break
8271 + else
8272 +-  echo "configure: failed program was:" >&5
8273 +-  cat conftest.$ac_ext >&5
8274 +-fi
8275 +-rm -f conftest*
8276 +-           CC="$ac_save_CC"
8277 ++  echo "$as_me: failed program was:" >&5
8278 ++sed 's/^/| /' conftest.$ac_ext >&5
8279 ++
8280 + fi
8281 +-rm -f conftest*
8282 +-        fi
8283 ++rm -f conftest.err conftest.$ac_objext
8284 ++       CC="$CC -n32"
8285 ++       rm -f conftest.$ac_objext
8286 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287 ++  (eval $ac_compile) 2>conftest.er1
8288 ++  ac_status=$?
8289 ++  grep -v '^ *+' conftest.er1 >conftest.err
8290 ++  rm -f conftest.er1
8291 ++  cat conftest.err >&5
8292 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 ++  (exit $ac_status); } &&
8294 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8295 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 ++  (eval $ac_try) 2>&5
8297 ++  ac_status=$?
8298 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 ++  (exit $ac_status); }; } &&
8300 ++       { ac_try='test -s conftest.$ac_objext'
8301 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 ++  (eval $ac_try) 2>&5
8303 ++  ac_status=$?
8304 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 ++  (exit $ac_status); }; }; then
8306 ++  ac_cv_sys_largefile_CC=' -n32'; break
8307 ++else
8308 ++  echo "$as_me: failed program was:" >&5
8309 ++sed 's/^/| /' conftest.$ac_ext >&5
8310 ++
8311 ++fi
8312 ++rm -f conftest.err conftest.$ac_objext
8313 ++       break
8314 ++       done
8315 ++       CC=$ac_save_CC
8316 ++       rm -f conftest.$ac_ext
8317 ++    fi
8318 + fi
8319 ++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8320 ++echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8321 ++  if test "$ac_cv_sys_largefile_CC" != no; then
8322 ++    CC=$CC$ac_cv_sys_largefile_CC
8323 ++  fi
8324
8325 +-echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
8326 +-     if test "$ac_cv_sys_largefile_CC" != no; then
8327 +-       CC="$CC$ac_cv_sys_largefile_CC"
8328 +-     fi
8329 +-
8330 +-     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
8331 +-echo "configure:2489: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8332 +-if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
8333 +-  echo $ac_n "(cached) $ac_c" 1>&6
8334 ++  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8335 ++echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8336 ++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8337 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8338 + else
8339 ++  while :; do
8340 +   ac_cv_sys_file_offset_bits=no
8341 +-      cat > conftest.$ac_ext <<EOF
8342 +-#line 2495 "configure"
8343 +-#include "confdefs.h"
8344 ++  cat >conftest.$ac_ext <<_ACEOF
8345 ++/* confdefs.h.  */
8346 ++_ACEOF
8347 ++cat confdefs.h >>conftest.$ac_ext
8348 ++cat >>conftest.$ac_ext <<_ACEOF
8349 ++/* end confdefs.h.  */
8350 + #include <sys/types.h>
8351 +-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8352 +-  
8353 +-int main() {
8354 +-
8355 +-; return 0; }
8356 +-EOF
8357 +-if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8358 +-  :
8359 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8360 ++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8361 ++    since some C++ compilers masquerading as C compilers
8362 ++    incorrectly reject 9223372036854775807.  */
8363 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8364 ++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8365 ++                     && LARGE_OFF_T % 2147483647 == 1)
8366 ++                    ? 1 : -1];
8367 ++int
8368 ++main ()
8369 ++{
8370 ++
8371 ++  ;
8372 ++  return 0;
8373 ++}
8374 ++_ACEOF
8375 ++rm -f conftest.$ac_objext
8376 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 ++  (eval $ac_compile) 2>conftest.er1
8378 ++  ac_status=$?
8379 ++  grep -v '^ *+' conftest.er1 >conftest.err
8380 ++  rm -f conftest.er1
8381 ++  cat conftest.err >&5
8382 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 ++  (exit $ac_status); } &&
8384 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8385 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 ++  (eval $ac_try) 2>&5
8387 ++  ac_status=$?
8388 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 ++  (exit $ac_status); }; } &&
8390 ++       { ac_try='test -s conftest.$ac_objext'
8391 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 ++  (eval $ac_try) 2>&5
8393 ++  ac_status=$?
8394 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 ++  (exit $ac_status); }; }; then
8396 ++  break
8397 + else
8398 +-  echo "configure: failed program was:" >&5
8399 +-  cat conftest.$ac_ext >&5
8400 +-  rm -rf conftest*
8401 +-  cat > conftest.$ac_ext <<EOF
8402 +-#line 2511 "configure"
8403 +-#include "confdefs.h"
8404 ++  echo "$as_me: failed program was:" >&5
8405 ++sed 's/^/| /' conftest.$ac_ext >&5
8406 ++
8407 ++fi
8408 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8409 ++  cat >conftest.$ac_ext <<_ACEOF
8410 ++/* confdefs.h.  */
8411 ++_ACEOF
8412 ++cat confdefs.h >>conftest.$ac_ext
8413 ++cat >>conftest.$ac_ext <<_ACEOF
8414 ++/* end confdefs.h.  */
8415 + #define _FILE_OFFSET_BITS 64
8416 + #include <sys/types.h>
8417 +-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
8418 +-  
8419 +-         
8420 +-int main() {
8421 +-
8422 +-; return 0; }
8423 +-EOF
8424 +-if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8425 +-  rm -rf conftest*
8426 +-  ac_cv_sys_file_offset_bits=64
8427 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8428 ++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8429 ++    since some C++ compilers masquerading as C compilers
8430 ++    incorrectly reject 9223372036854775807.  */
8431 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8432 ++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8433 ++                     && LARGE_OFF_T % 2147483647 == 1)
8434 ++                    ? 1 : -1];
8435 ++int
8436 ++main ()
8437 ++{
8438 ++
8439 ++  ;
8440 ++  return 0;
8441 ++}
8442 ++_ACEOF
8443 ++rm -f conftest.$ac_objext
8444 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445 ++  (eval $ac_compile) 2>conftest.er1
8446 ++  ac_status=$?
8447 ++  grep -v '^ *+' conftest.er1 >conftest.err
8448 ++  rm -f conftest.er1
8449 ++  cat conftest.err >&5
8450 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 ++  (exit $ac_status); } &&
8452 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8453 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 ++  (eval $ac_try) 2>&5
8455 ++  ac_status=$?
8456 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 ++  (exit $ac_status); }; } &&
8458 ++       { ac_try='test -s conftest.$ac_objext'
8459 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 ++  (eval $ac_try) 2>&5
8461 ++  ac_status=$?
8462 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 ++  (exit $ac_status); }; }; then
8464 ++  ac_cv_sys_file_offset_bits=64; break
8465 + else
8466 +-  echo "configure: failed program was:" >&5
8467 +-  cat conftest.$ac_ext >&5
8468 +-fi
8469 +-rm -f conftest*
8470 ++  echo "$as_me: failed program was:" >&5
8471 ++sed 's/^/| /' conftest.$ac_ext >&5
8472 ++
8473 + fi
8474 +-rm -f conftest*
8475 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8476 ++  break
8477 ++done
8478 + fi
8479 ++echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8480 ++echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8481 ++if test "$ac_cv_sys_file_offset_bits" != no; then
8482
8483 +-echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
8484 +-   if test "$ac_cv_sys_file_offset_bits" != no; then
8485 +-     cat >> confdefs.h <<EOF
8486 ++cat >>confdefs.h <<_ACEOF
8487 + #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8488 +-EOF
8489 ++_ACEOF
8490
8491 +-   fi
8492 +-     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
8493 +-echo "configure:2542: checking for _LARGE_FILES value needed for large files" >&5
8494 +-if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
8495 +-  echo $ac_n "(cached) $ac_c" 1>&6
8496 ++fi
8497 ++rm -f conftest*
8498 ++  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8499 ++echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8500 ++if test "${ac_cv_sys_large_files+set}" = set; then
8501 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8502 + else
8503 ++  while :; do
8504 +   ac_cv_sys_large_files=no
8505 +-      cat > conftest.$ac_ext <<EOF
8506 +-#line 2548 "configure"
8507 +-#include "confdefs.h"
8508 +-
8509 +-int main() {
8510 +-
8511 +-; return 0; }
8512 +-EOF
8513 +-if { (eval echo configure:2555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8514 +-  :
8515 ++  cat >conftest.$ac_ext <<_ACEOF
8516 ++/* confdefs.h.  */
8517 ++_ACEOF
8518 ++cat confdefs.h >>conftest.$ac_ext
8519 ++cat >>conftest.$ac_ext <<_ACEOF
8520 ++/* end confdefs.h.  */
8521 ++#include <sys/types.h>
8522 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8523 ++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8524 ++    since some C++ compilers masquerading as C compilers
8525 ++    incorrectly reject 9223372036854775807.  */
8526 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8527 ++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8528 ++                     && LARGE_OFF_T % 2147483647 == 1)
8529 ++                    ? 1 : -1];
8530 ++int
8531 ++main ()
8532 ++{
8533 ++
8534 ++  ;
8535 ++  return 0;
8536 ++}
8537 ++_ACEOF
8538 ++rm -f conftest.$ac_objext
8539 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 ++  (eval $ac_compile) 2>conftest.er1
8541 ++  ac_status=$?
8542 ++  grep -v '^ *+' conftest.er1 >conftest.err
8543 ++  rm -f conftest.er1
8544 ++  cat conftest.err >&5
8545 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 ++  (exit $ac_status); } &&
8547 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8548 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 ++  (eval $ac_try) 2>&5
8550 ++  ac_status=$?
8551 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 ++  (exit $ac_status); }; } &&
8553 ++       { ac_try='test -s conftest.$ac_objext'
8554 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 ++  (eval $ac_try) 2>&5
8556 ++  ac_status=$?
8557 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 ++  (exit $ac_status); }; }; then
8559 ++  break
8560 + else
8561 +-  echo "configure: failed program was:" >&5
8562 +-  cat conftest.$ac_ext >&5
8563 +-  rm -rf conftest*
8564 +-  cat > conftest.$ac_ext <<EOF
8565 +-#line 2562 "configure"
8566 +-#include "confdefs.h"
8567 +-#define _LARGE_FILES 1
8568 ++  echo "$as_me: failed program was:" >&5
8569 ++sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 +-         
8572 +-int main() {
8573 ++fi
8574 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 ++  cat >conftest.$ac_ext <<_ACEOF
8576 ++/* confdefs.h.  */
8577 ++_ACEOF
8578 ++cat confdefs.h >>conftest.$ac_ext
8579 ++cat >>conftest.$ac_ext <<_ACEOF
8580 ++/* end confdefs.h.  */
8581 ++#define _LARGE_FILES 1
8582 ++#include <sys/types.h>
8583 ++ /* Check that off_t can represent 2**63 - 1 correctly.
8584 ++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8585 ++    since some C++ compilers masquerading as C compilers
8586 ++    incorrectly reject 9223372036854775807.  */
8587 ++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8588 ++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8589 ++                     && LARGE_OFF_T % 2147483647 == 1)
8590 ++                    ? 1 : -1];
8591 ++int
8592 ++main ()
8593 ++{
8594
8595 +-; return 0; }
8596 +-EOF
8597 +-if { (eval echo configure:2571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8598 +-  rm -rf conftest*
8599 +-  ac_cv_sys_large_files=1
8600 ++  ;
8601 ++  return 0;
8602 ++}
8603 ++_ACEOF
8604 ++rm -f conftest.$ac_objext
8605 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 ++  (eval $ac_compile) 2>conftest.er1
8607 ++  ac_status=$?
8608 ++  grep -v '^ *+' conftest.er1 >conftest.err
8609 ++  rm -f conftest.er1
8610 ++  cat conftest.err >&5
8611 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 ++  (exit $ac_status); } &&
8613 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8614 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 ++  (eval $ac_try) 2>&5
8616 ++  ac_status=$?
8617 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 ++  (exit $ac_status); }; } &&
8619 ++       { ac_try='test -s conftest.$ac_objext'
8620 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 ++  (eval $ac_try) 2>&5
8622 ++  ac_status=$?
8623 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 ++  (exit $ac_status); }; }; then
8625 ++  ac_cv_sys_large_files=1; break
8626 + else
8627 +-  echo "configure: failed program was:" >&5
8628 +-  cat conftest.$ac_ext >&5
8629 +-fi
8630 +-rm -f conftest*
8631 ++  echo "$as_me: failed program was:" >&5
8632 ++sed 's/^/| /' conftest.$ac_ext >&5
8633 ++
8634 + fi
8635 +-rm -f conftest*
8636 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8637 ++  break
8638 ++done
8639 + fi
8640 ++echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8641 ++echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8642 ++if test "$ac_cv_sys_large_files" != no; then
8643
8644 +-echo "$ac_t""$ac_cv_sys_large_files" 1>&6
8645 +-   if test "$ac_cv_sys_large_files" != no; then
8646 +-     cat >> confdefs.h <<EOF
8647 ++cat >>confdefs.h <<_ACEOF
8648 + #define _LARGE_FILES $ac_cv_sys_large_files
8649 +-EOF
8650 ++_ACEOF
8651
8652 +-   fi
8653 +-   fi
8654 +-  
8655 +-
8656 +-# Sound support for GNU/Linux and the free BSDs.
8657 +-for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
8658 +-do
8659 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8660 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8661 +-echo "configure:2598: checking for $ac_hdr" >&5
8662 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8663 +-  echo $ac_n "(cached) $ac_c" 1>&6
8664 +-else
8665 +-  cat > conftest.$ac_ext <<EOF
8666 +-#line 2603 "configure"
8667 +-#include "confdefs.h"
8668 +-#include <$ac_hdr>
8669 +-EOF
8670 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 +-{ (eval echo configure:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8673 +-if test -z "$ac_err"; then
8674 +-  rm -rf conftest*
8675 +-  eval "ac_cv_header_$ac_safe=yes"
8676 +-else
8677 +-  echo "$ac_err" >&5
8678 +-  echo "configure: failed program was:" >&5
8679 +-  cat conftest.$ac_ext >&5
8680 +-  rm -rf conftest*
8681 +-  eval "ac_cv_header_$ac_safe=no"
8682 + fi
8683 + rm -f conftest*
8684 + fi
8685 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8686 +-  echo "$ac_t""yes" 1>&6
8687 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8688 +-  cat >> confdefs.h <<EOF
8689 +-#define $ac_tr_hdr 1
8690 +-EOF
8691 +- 
8692 +-else
8693 +-  echo "$ac_t""no" 1>&6
8694 +-fi
8695 +-done
8696 +-
8697 +-# Emulation library used on NetBSD.
8698 +-echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
8699 +-echo "configure:2636: checking for _oss_ioctl in -lossaudio" >&5
8700 +-ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
8701 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8702 +-  echo $ac_n "(cached) $ac_c" 1>&6
8703 +-else
8704 +-  ac_save_LIBS="$LIBS"
8705 +-LIBS="-lossaudio  $LIBS"
8706 +-cat > conftest.$ac_ext <<EOF
8707 +-#line 2644 "configure"
8708 +-#include "confdefs.h"
8709 +-/* Override any gcc2 internal prototype to avoid an error.  */
8710 +-/* We use char because int might match the return type of a gcc2
8711 +-    builtin and then its argument prototype would still apply.  */
8712 +-char _oss_ioctl();
8713 +-
8714 +-int main() {
8715 +-_oss_ioctl()
8716 +-; return 0; }
8717 +-EOF
8718 +-if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8719 +-  rm -rf conftest*
8720 +-  eval "ac_cv_lib_$ac_lib_var=yes"
8721 +-else
8722 +-  echo "configure: failed program was:" >&5
8723 +-  cat conftest.$ac_ext >&5
8724 +-  rm -rf conftest*
8725 +-  eval "ac_cv_lib_$ac_lib_var=no"
8726 +-fi
8727 +-rm -f conftest*
8728 +-LIBS="$ac_save_LIBS"
8729
8730 +-fi
8731 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8732 +-  echo "$ac_t""yes" 1>&6
8733 +-  LIBSOUND=-lossaudio
8734 +-else
8735 +-  echo "$ac_t""no" 1>&6
8736 +-LIBSOUND=
8737 +-fi
8738
8739 ++# Sound support for GNU/Linux and the free BSDs.
8740 ++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8741 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8742 ++if test "${ac_cv_header_stdc+set}" = set; then
8743 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8744 ++else
8745 ++  cat >conftest.$ac_ext <<_ACEOF
8746 ++/* confdefs.h.  */
8747 ++_ACEOF
8748 ++cat confdefs.h >>conftest.$ac_ext
8749 ++cat >>conftest.$ac_ext <<_ACEOF
8750 ++/* end confdefs.h.  */
8751 ++#include <stdlib.h>
8752 ++#include <stdarg.h>
8753 ++#include <string.h>
8754 ++#include <float.h>
8755
8756 ++int
8757 ++main ()
8758 ++{
8759
8760 +-for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
8761 ++  ;
8762 ++  return 0;
8763 ++}
8764 ++_ACEOF
8765 ++rm -f conftest.$ac_objext
8766 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 ++  (eval $ac_compile) 2>conftest.er1
8768 ++  ac_status=$?
8769 ++  grep -v '^ *+' conftest.er1 >conftest.err
8770 ++  rm -f conftest.er1
8771 ++  cat conftest.err >&5
8772 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 ++  (exit $ac_status); } &&
8774 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8775 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 ++  (eval $ac_try) 2>&5
8777 ++  ac_status=$?
8778 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 ++  (exit $ac_status); }; } &&
8780 ++       { ac_try='test -s conftest.$ac_objext'
8781 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 ++  (eval $ac_try) 2>&5
8783 ++  ac_status=$?
8784 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 ++  (exit $ac_status); }; }; then
8786 ++  ac_cv_header_stdc=yes
8787 ++else
8788 ++  echo "$as_me: failed program was:" >&5
8789 ++sed 's/^/| /' conftest.$ac_ext >&5
8790 ++
8791 ++ac_cv_header_stdc=no
8792 ++fi
8793 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794 ++
8795 ++if test $ac_cv_header_stdc = yes; then
8796 ++  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8797 ++  cat >conftest.$ac_ext <<_ACEOF
8798 ++/* confdefs.h.  */
8799 ++_ACEOF
8800 ++cat confdefs.h >>conftest.$ac_ext
8801 ++cat >>conftest.$ac_ext <<_ACEOF
8802 ++/* end confdefs.h.  */
8803 ++#include <string.h>
8804 ++
8805 ++_ACEOF
8806 ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 ++  $EGREP "memchr" >/dev/null 2>&1; then
8808 ++  :
8809 ++else
8810 ++  ac_cv_header_stdc=no
8811 ++fi
8812 ++rm -f conftest*
8813 ++
8814 ++fi
8815 ++
8816 ++if test $ac_cv_header_stdc = yes; then
8817 ++  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8818 ++  cat >conftest.$ac_ext <<_ACEOF
8819 ++/* confdefs.h.  */
8820 ++_ACEOF
8821 ++cat confdefs.h >>conftest.$ac_ext
8822 ++cat >>conftest.$ac_ext <<_ACEOF
8823 ++/* end confdefs.h.  */
8824 ++#include <stdlib.h>
8825 ++
8826 ++_ACEOF
8827 ++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828 ++  $EGREP "free" >/dev/null 2>&1; then
8829 ++  :
8830 ++else
8831 ++  ac_cv_header_stdc=no
8832 ++fi
8833 ++rm -f conftest*
8834 ++
8835 ++fi
8836 ++
8837 ++if test $ac_cv_header_stdc = yes; then
8838 ++  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8839 ++  if test "$cross_compiling" = yes; then
8840 ++  :
8841 ++else
8842 ++  cat >conftest.$ac_ext <<_ACEOF
8843 ++/* confdefs.h.  */
8844 ++_ACEOF
8845 ++cat confdefs.h >>conftest.$ac_ext
8846 ++cat >>conftest.$ac_ext <<_ACEOF
8847 ++/* end confdefs.h.  */
8848 ++#include <ctype.h>
8849 ++#if ((' ' & 0x0FF) == 0x020)
8850 ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8851 ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8852 ++#else
8853 ++# define ISLOWER(c) \
8854 ++                 (('a' <= (c) && (c) <= 'i') \
8855 ++                   || ('j' <= (c) && (c) <= 'r') \
8856 ++                   || ('s' <= (c) && (c) <= 'z'))
8857 ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8858 ++#endif
8859 ++
8860 ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8861 ++int
8862 ++main ()
8863 ++{
8864 ++  int i;
8865 ++  for (i = 0; i < 256; i++)
8866 ++    if (XOR (islower (i), ISLOWER (i))
8867 ++      || toupper (i) != TOUPPER (i))
8868 ++      exit(2);
8869 ++  exit (0);
8870 ++}
8871 ++_ACEOF
8872 ++rm -f conftest$ac_exeext
8873 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 ++  (eval $ac_link) 2>&5
8875 ++  ac_status=$?
8876 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8878 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 ++  (eval $ac_try) 2>&5
8880 ++  ac_status=$?
8881 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 ++  (exit $ac_status); }; }; then
8883 ++  :
8884 ++else
8885 ++  echo "$as_me: program exited with status $ac_status" >&5
8886 ++echo "$as_me: failed program was:" >&5
8887 ++sed 's/^/| /' conftest.$ac_ext >&5
8888 ++
8889 ++( exit $ac_status )
8890 ++ac_cv_header_stdc=no
8891 ++fi
8892 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8893 ++fi
8894 ++fi
8895 ++fi
8896 ++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8897 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6
8898 ++if test $ac_cv_header_stdc = yes; then
8899 ++
8900 ++cat >>confdefs.h <<\_ACEOF
8901 ++#define STDC_HEADERS 1
8902 ++_ACEOF
8903 ++
8904 ++fi
8905 ++
8906 ++# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8907 ++
8908 ++
8909 ++
8910 ++
8911 ++
8912 ++
8913 ++
8914 ++
8915 ++
8916 ++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8917 ++                inttypes.h stdint.h unistd.h
8918 ++do
8919 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8920 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
8921 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8922 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8923 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8924 ++else
8925 ++  cat >conftest.$ac_ext <<_ACEOF
8926 ++/* confdefs.h.  */
8927 ++_ACEOF
8928 ++cat confdefs.h >>conftest.$ac_ext
8929 ++cat >>conftest.$ac_ext <<_ACEOF
8930 ++/* end confdefs.h.  */
8931 ++$ac_includes_default
8932 ++
8933 ++#include <$ac_header>
8934 ++_ACEOF
8935 ++rm -f conftest.$ac_objext
8936 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 ++  (eval $ac_compile) 2>conftest.er1
8938 ++  ac_status=$?
8939 ++  grep -v '^ *+' conftest.er1 >conftest.err
8940 ++  rm -f conftest.er1
8941 ++  cat conftest.err >&5
8942 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 ++  (exit $ac_status); } &&
8944 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8945 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 ++  (eval $ac_try) 2>&5
8947 ++  ac_status=$?
8948 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 ++  (exit $ac_status); }; } &&
8950 ++       { ac_try='test -s conftest.$ac_objext'
8951 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 ++  (eval $ac_try) 2>&5
8953 ++  ac_status=$?
8954 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 ++  (exit $ac_status); }; }; then
8956 ++  eval "$as_ac_Header=yes"
8957 ++else
8958 ++  echo "$as_me: failed program was:" >&5
8959 ++sed 's/^/| /' conftest.$ac_ext >&5
8960 ++
8961 ++eval "$as_ac_Header=no"
8962 ++fi
8963 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964 ++fi
8965 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8966 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8967 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
8968 ++  cat >>confdefs.h <<_ACEOF
8969 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8970 ++_ACEOF
8971 ++
8972 ++fi
8973 ++
8974 ++done
8975 ++
8976 ++
8977 ++
8978 ++
8979 ++
8980 ++for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8981 ++do
8982 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
8985 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8986 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
8988 ++fi
8989 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8990 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8991 ++else
8992 ++  # Is the header compilable?
8993 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8995 ++cat >conftest.$ac_ext <<_ACEOF
8996 ++/* confdefs.h.  */
8997 ++_ACEOF
8998 ++cat confdefs.h >>conftest.$ac_ext
8999 ++cat >>conftest.$ac_ext <<_ACEOF
9000 ++/* end confdefs.h.  */
9001 ++$ac_includes_default
9002 ++#include <$ac_header>
9003 ++_ACEOF
9004 ++rm -f conftest.$ac_objext
9005 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 ++  (eval $ac_compile) 2>conftest.er1
9007 ++  ac_status=$?
9008 ++  grep -v '^ *+' conftest.er1 >conftest.err
9009 ++  rm -f conftest.er1
9010 ++  cat conftest.err >&5
9011 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 ++  (exit $ac_status); } &&
9013 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9014 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 ++  (eval $ac_try) 2>&5
9016 ++  ac_status=$?
9017 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 ++  (exit $ac_status); }; } &&
9019 ++       { ac_try='test -s conftest.$ac_objext'
9020 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 ++  (eval $ac_try) 2>&5
9022 ++  ac_status=$?
9023 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 ++  (exit $ac_status); }; }; then
9025 ++  ac_header_compiler=yes
9026 ++else
9027 ++  echo "$as_me: failed program was:" >&5
9028 ++sed 's/^/| /' conftest.$ac_ext >&5
9029 ++
9030 ++ac_header_compiler=no
9031 ++fi
9032 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 ++echo "${ECHO_T}$ac_header_compiler" >&6
9035 ++
9036 ++# Is the header present?
9037 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9039 ++cat >conftest.$ac_ext <<_ACEOF
9040 ++/* confdefs.h.  */
9041 ++_ACEOF
9042 ++cat confdefs.h >>conftest.$ac_ext
9043 ++cat >>conftest.$ac_ext <<_ACEOF
9044 ++/* end confdefs.h.  */
9045 ++#include <$ac_header>
9046 ++_ACEOF
9047 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9048 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9049 ++  ac_status=$?
9050 ++  grep -v '^ *+' conftest.er1 >conftest.err
9051 ++  rm -f conftest.er1
9052 ++  cat conftest.err >&5
9053 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 ++  (exit $ac_status); } >/dev/null; then
9055 ++  if test -s conftest.err; then
9056 ++    ac_cpp_err=$ac_c_preproc_warn_flag
9057 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9058 ++  else
9059 ++    ac_cpp_err=
9060 ++  fi
9061 ++else
9062 ++  ac_cpp_err=yes
9063 ++fi
9064 ++if test -z "$ac_cpp_err"; then
9065 ++  ac_header_preproc=yes
9066 ++else
9067 ++  echo "$as_me: failed program was:" >&5
9068 ++sed 's/^/| /' conftest.$ac_ext >&5
9069 ++
9070 ++  ac_header_preproc=no
9071 ++fi
9072 ++rm -f conftest.err conftest.$ac_ext
9073 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074 ++echo "${ECHO_T}$ac_header_preproc" >&6
9075 ++
9076 ++# So?  What about this header?
9077 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078 ++  yes:no: )
9079 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083 ++    ac_header_preproc=yes
9084 ++    ;;
9085 ++  no:yes:* )
9086 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9089 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9090 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9093 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9094 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9098 ++    (
9099 ++      cat <<\_ASBOX
9100 ++## ------------------------------------------ ##
9101 ++## Report this to the AC_PACKAGE_NAME lists.  ##
9102 ++## ------------------------------------------ ##
9103 ++_ASBOX
9104 ++    ) |
9105 ++      sed "s/^/$as_me: WARNING:     /" >&2
9106 ++    ;;
9107 ++esac
9108 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9110 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9112 ++else
9113 ++  eval "$as_ac_Header=\$ac_header_preproc"
9114 ++fi
9115 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9116 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9117 ++
9118 ++fi
9119 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
9120 ++  cat >>confdefs.h <<_ACEOF
9121 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9122 ++_ACEOF
9123 ++
9124 ++fi
9125 ++
9126 ++done
9127 ++
9128 ++# Emulation library used on NetBSD.
9129 ++echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
9130 ++echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
9131 ++if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
9132 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9133 ++else
9134 ++  ac_check_lib_save_LIBS=$LIBS
9135 ++LIBS="-lossaudio  $LIBS"
9136 ++cat >conftest.$ac_ext <<_ACEOF
9137 ++/* confdefs.h.  */
9138 ++_ACEOF
9139 ++cat confdefs.h >>conftest.$ac_ext
9140 ++cat >>conftest.$ac_ext <<_ACEOF
9141 ++/* end confdefs.h.  */
9142 ++
9143 ++/* Override any gcc2 internal prototype to avoid an error.  */
9144 ++#ifdef __cplusplus
9145 ++extern "C"
9146 ++#endif
9147 ++/* We use char because int might match the return type of a gcc2
9148 ++   builtin and then its argument prototype would still apply.  */
9149 ++char _oss_ioctl ();
9150 ++int
9151 ++main ()
9152 ++{
9153 ++_oss_ioctl ();
9154 ++  ;
9155 ++  return 0;
9156 ++}
9157 ++_ACEOF
9158 ++rm -f conftest.$ac_objext conftest$ac_exeext
9159 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160 ++  (eval $ac_link) 2>conftest.er1
9161 ++  ac_status=$?
9162 ++  grep -v '^ *+' conftest.er1 >conftest.err
9163 ++  rm -f conftest.er1
9164 ++  cat conftest.err >&5
9165 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 ++  (exit $ac_status); } &&
9167 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9168 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 ++  (eval $ac_try) 2>&5
9170 ++  ac_status=$?
9171 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 ++  (exit $ac_status); }; } &&
9173 ++       { ac_try='test -s conftest$ac_exeext'
9174 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 ++  (eval $ac_try) 2>&5
9176 ++  ac_status=$?
9177 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 ++  (exit $ac_status); }; }; then
9179 ++  ac_cv_lib_ossaudio__oss_ioctl=yes
9180 ++else
9181 ++  echo "$as_me: failed program was:" >&5
9182 ++sed 's/^/| /' conftest.$ac_ext >&5
9183 ++
9184 ++ac_cv_lib_ossaudio__oss_ioctl=no
9185 ++fi
9186 ++rm -f conftest.err conftest.$ac_objext \
9187 ++      conftest$ac_exeext conftest.$ac_ext
9188 ++LIBS=$ac_check_lib_save_LIBS
9189 ++fi
9190 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9191 ++echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
9192 ++if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
9193 ++  LIBSOUND=-lossaudio
9194 ++else
9195 ++  LIBSOUND=
9196 ++fi
9197 ++
9198 ++
9199 ++
9200 ++
9201 ++
9202 ++
9203 ++
9204 ++
9205 ++
9206 ++
9207 ++
9208 ++
9209 ++
9210 ++
9211 ++
9212 ++
9213 ++
9214 ++
9215 ++
9216 ++for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
9217 +   linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
9218 +   termcap.h stdio_ext.h fcntl.h term.h strings.h
9219 + do
9220 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9221 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9222 +-echo "configure:2684: checking for $ac_hdr" >&5
9223 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9224 +-  echo $ac_n "(cached) $ac_c" 1>&6
9225 +-else
9226 +-  cat > conftest.$ac_ext <<EOF
9227 +-#line 2689 "configure"
9228 +-#include "confdefs.h"
9229 +-#include <$ac_hdr>
9230 +-EOF
9231 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9232 +-{ (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9233 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9234 +-if test -z "$ac_err"; then
9235 +-  rm -rf conftest*
9236 +-  eval "ac_cv_header_$ac_safe=yes"
9237 +-else
9238 +-  echo "$ac_err" >&5
9239 +-  echo "configure: failed program was:" >&5
9240 +-  cat conftest.$ac_ext >&5
9241 +-  rm -rf conftest*
9242 +-  eval "ac_cv_header_$ac_safe=no"
9243 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9244 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9249 ++fi
9250 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9251 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9252 ++else
9253 ++  # Is the header compilable?
9254 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
9255 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9256 ++cat >conftest.$ac_ext <<_ACEOF
9257 ++/* confdefs.h.  */
9258 ++_ACEOF
9259 ++cat confdefs.h >>conftest.$ac_ext
9260 ++cat >>conftest.$ac_ext <<_ACEOF
9261 ++/* end confdefs.h.  */
9262 ++$ac_includes_default
9263 ++#include <$ac_header>
9264 ++_ACEOF
9265 ++rm -f conftest.$ac_objext
9266 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9267 ++  (eval $ac_compile) 2>conftest.er1
9268 ++  ac_status=$?
9269 ++  grep -v '^ *+' conftest.er1 >conftest.err
9270 ++  rm -f conftest.er1
9271 ++  cat conftest.err >&5
9272 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 ++  (exit $ac_status); } &&
9274 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9275 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 ++  (eval $ac_try) 2>&5
9277 ++  ac_status=$?
9278 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 ++  (exit $ac_status); }; } &&
9280 ++       { ac_try='test -s conftest.$ac_objext'
9281 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 ++  (eval $ac_try) 2>&5
9283 ++  ac_status=$?
9284 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 ++  (exit $ac_status); }; }; then
9286 ++  ac_header_compiler=yes
9287 ++else
9288 ++  echo "$as_me: failed program was:" >&5
9289 ++sed 's/^/| /' conftest.$ac_ext >&5
9290 ++
9291 ++ac_header_compiler=no
9292 ++fi
9293 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9294 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9295 ++echo "${ECHO_T}$ac_header_compiler" >&6
9296 ++
9297 ++# Is the header present?
9298 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
9299 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9300 ++cat >conftest.$ac_ext <<_ACEOF
9301 ++/* confdefs.h.  */
9302 ++_ACEOF
9303 ++cat confdefs.h >>conftest.$ac_ext
9304 ++cat >>conftest.$ac_ext <<_ACEOF
9305 ++/* end confdefs.h.  */
9306 ++#include <$ac_header>
9307 ++_ACEOF
9308 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9309 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9310 ++  ac_status=$?
9311 ++  grep -v '^ *+' conftest.er1 >conftest.err
9312 ++  rm -f conftest.er1
9313 ++  cat conftest.err >&5
9314 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 ++  (exit $ac_status); } >/dev/null; then
9316 ++  if test -s conftest.err; then
9317 ++    ac_cpp_err=$ac_c_preproc_warn_flag
9318 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9319 ++  else
9320 ++    ac_cpp_err=
9321 ++  fi
9322 ++else
9323 ++  ac_cpp_err=yes
9324 + fi
9325 +-rm -f conftest*
9326 ++if test -z "$ac_cpp_err"; then
9327 ++  ac_header_preproc=yes
9328 ++else
9329 ++  echo "$as_me: failed program was:" >&5
9330 ++sed 's/^/| /' conftest.$ac_ext >&5
9331 ++
9332 ++  ac_header_preproc=no
9333 ++fi
9334 ++rm -f conftest.err conftest.$ac_ext
9335 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9336 ++echo "${ECHO_T}$ac_header_preproc" >&6
9337 ++
9338 ++# So?  What about this header?
9339 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9340 ++  yes:no: )
9341 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9342 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9343 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9344 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9345 ++    ac_header_preproc=yes
9346 ++    ;;
9347 ++  no:yes:* )
9348 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9349 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9350 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9351 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9352 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9353 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9354 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9355 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9356 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9357 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9358 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9359 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9360 ++    (
9361 ++      cat <<\_ASBOX
9362 ++## ------------------------------------------ ##
9363 ++## Report this to the AC_PACKAGE_NAME lists.  ##
9364 ++## ------------------------------------------ ##
9365 ++_ASBOX
9366 ++    ) |
9367 ++      sed "s/^/$as_me: WARNING:     /" >&2
9368 ++    ;;
9369 ++esac
9370 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9374 ++else
9375 ++  eval "$as_ac_Header=\$ac_header_preproc"
9376 ++fi
9377 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9378 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9379 ++
9380 + fi
9381 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9382 +-  echo "$ac_t""yes" 1>&6
9383 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9384 +-  cat >> confdefs.h <<EOF
9385 +-#define $ac_tr_hdr 1
9386 +-EOF
9387 +- 
9388 +-else
9389 +-  echo "$ac_t""no" 1>&6
9390 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391 ++  cat >>confdefs.h <<_ACEOF
9392 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 ++_ACEOF
9394 ++
9395 + fi
9396 ++
9397 + done
9398
9399 +-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9400 +-echo "configure:2721: checking for ANSI C header files" >&5
9401 +-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9402 +-  echo $ac_n "(cached) $ac_c" 1>&6
9403 +-else
9404 +-  cat > conftest.$ac_ext <<EOF
9405 +-#line 2726 "configure"
9406 +-#include "confdefs.h"
9407 ++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9408 ++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9409 ++if test "${ac_cv_header_stdc+set}" = set; then
9410 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9411 ++else
9412 ++  cat >conftest.$ac_ext <<_ACEOF
9413 ++/* confdefs.h.  */
9414 ++_ACEOF
9415 ++cat confdefs.h >>conftest.$ac_ext
9416 ++cat >>conftest.$ac_ext <<_ACEOF
9417 ++/* end confdefs.h.  */
9418 + #include <stdlib.h>
9419 + #include <stdarg.h>
9420 + #include <string.h>
9421 + #include <float.h>
9422 +-EOF
9423 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9424 +-{ (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9425 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9426 +-if test -z "$ac_err"; then
9427 +-  rm -rf conftest*
9428 ++
9429 ++int
9430 ++main ()
9431 ++{
9432 ++
9433 ++  ;
9434 ++  return 0;
9435 ++}
9436 ++_ACEOF
9437 ++rm -f conftest.$ac_objext
9438 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439 ++  (eval $ac_compile) 2>conftest.er1
9440 ++  ac_status=$?
9441 ++  grep -v '^ *+' conftest.er1 >conftest.err
9442 ++  rm -f conftest.er1
9443 ++  cat conftest.err >&5
9444 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 ++  (exit $ac_status); } &&
9446 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9447 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 ++  (eval $ac_try) 2>&5
9449 ++  ac_status=$?
9450 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 ++  (exit $ac_status); }; } &&
9452 ++       { ac_try='test -s conftest.$ac_objext'
9453 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 ++  (eval $ac_try) 2>&5
9455 ++  ac_status=$?
9456 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 ++  (exit $ac_status); }; }; then
9458 +   ac_cv_header_stdc=yes
9459 + else
9460 +-  echo "$ac_err" >&5
9461 +-  echo "configure: failed program was:" >&5
9462 +-  cat conftest.$ac_ext >&5
9463 +-  rm -rf conftest*
9464 +-  ac_cv_header_stdc=no
9465 ++  echo "$as_me: failed program was:" >&5
9466 ++sed 's/^/| /' conftest.$ac_ext >&5
9467 ++
9468 ++ac_cv_header_stdc=no
9469 + fi
9470 +-rm -f conftest*
9471 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472
9473 + if test $ac_cv_header_stdc = yes; then
9474 +   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9475 +-cat > conftest.$ac_ext <<EOF
9476 +-#line 2751 "configure"
9477 +-#include "confdefs.h"
9478 ++  cat >conftest.$ac_ext <<_ACEOF
9479 ++/* confdefs.h.  */
9480 ++_ACEOF
9481 ++cat confdefs.h >>conftest.$ac_ext
9482 ++cat >>conftest.$ac_ext <<_ACEOF
9483 ++/* end confdefs.h.  */
9484 + #include <string.h>
9485 +-EOF
9486 ++
9487 ++_ACEOF
9488 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489 +-  egrep "memchr" >/dev/null 2>&1; then
9490 ++  $EGREP "memchr" >/dev/null 2>&1; then
9491 +   :
9492 + else
9493 +-  rm -rf conftest*
9494 +   ac_cv_header_stdc=no
9495 + fi
9496 + rm -f conftest*
9497 +@@ -2764,16 +5255,19 @@
9498
9499 + if test $ac_cv_header_stdc = yes; then
9500 +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9501 +-cat > conftest.$ac_ext <<EOF
9502 +-#line 2769 "configure"
9503 +-#include "confdefs.h"
9504 ++  cat >conftest.$ac_ext <<_ACEOF
9505 ++/* confdefs.h.  */
9506 ++_ACEOF
9507 ++cat confdefs.h >>conftest.$ac_ext
9508 ++cat >>conftest.$ac_ext <<_ACEOF
9509 ++/* end confdefs.h.  */
9510 + #include <stdlib.h>
9511 +-EOF
9512 ++
9513 ++_ACEOF
9514 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9515 +-  egrep "free" >/dev/null 2>&1; then
9516 ++  $EGREP "free" >/dev/null 2>&1; then
9517 +   :
9518 + else
9519 +-  rm -rf conftest*
9520 +   ac_cv_header_stdc=no
9521 + fi
9522 + rm -f conftest*
9523 +@@ -2782,168 +5276,297 @@
9524
9525 + if test $ac_cv_header_stdc = yes; then
9526 +   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9527 +-if test "$cross_compiling" = yes; then
9528 ++  if test "$cross_compiling" = yes; then
9529 +   :
9530 + else
9531 +-  cat > conftest.$ac_ext <<EOF
9532 +-#line 2790 "configure"
9533 +-#include "confdefs.h"
9534 ++  cat >conftest.$ac_ext <<_ACEOF
9535 ++/* confdefs.h.  */
9536 ++_ACEOF
9537 ++cat confdefs.h >>conftest.$ac_ext
9538 ++cat >>conftest.$ac_ext <<_ACEOF
9539 ++/* end confdefs.h.  */
9540 + #include <ctype.h>
9541 +-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9542 +-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9543 +-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9544 +-int main () { int i; for (i = 0; i < 256; i++)
9545 +-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9546 +-exit (0); }
9547 ++#if ((' ' & 0x0FF) == 0x020)
9548 ++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9549 ++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9550 ++#else
9551 ++# define ISLOWER(c) \
9552 ++                 (('a' <= (c) && (c) <= 'i') \
9553 ++                   || ('j' <= (c) && (c) <= 'r') \
9554 ++                   || ('s' <= (c) && (c) <= 'z'))
9555 ++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9556 ++#endif
9557
9558 +-EOF
9559 +-if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9560 +-then
9561 ++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9562 ++int
9563 ++main ()
9564 ++{
9565 ++  int i;
9566 ++  for (i = 0; i < 256; i++)
9567 ++    if (XOR (islower (i), ISLOWER (i))
9568 ++      || toupper (i) != TOUPPER (i))
9569 ++      exit(2);
9570 ++  exit (0);
9571 ++}
9572 ++_ACEOF
9573 ++rm -f conftest$ac_exeext
9574 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 ++  (eval $ac_link) 2>&5
9576 ++  ac_status=$?
9577 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9579 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 ++  (eval $ac_try) 2>&5
9581 ++  ac_status=$?
9582 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 ++  (exit $ac_status); }; }; then
9584 +   :
9585 + else
9586 +-  echo "configure: failed program was:" >&5
9587 +-  cat conftest.$ac_ext >&5
9588 +-  rm -fr conftest*
9589 +-  ac_cv_header_stdc=no
9590 ++  echo "$as_me: program exited with status $ac_status" >&5
9591 ++echo "$as_me: failed program was:" >&5
9592 ++sed 's/^/| /' conftest.$ac_ext >&5
9593 ++
9594 ++( exit $ac_status )
9595 ++ac_cv_header_stdc=no
9596 + fi
9597 +-rm -fr conftest*
9598 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9599 + fi
9600 +-
9601 + fi
9602 + fi
9603 +-
9604 +-echo "$ac_t""$ac_cv_header_stdc" 1>&6
9605 ++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9606 ++echo "${ECHO_T}$ac_cv_header_stdc" >&6
9607 + if test $ac_cv_header_stdc = yes; then
9608 +-  cat >> confdefs.h <<\EOF
9609 ++
9610 ++cat >>confdefs.h <<\_ACEOF
9611 + #define STDC_HEADERS 1
9612 +-EOF
9613 ++_ACEOF
9614
9615 + fi
9616
9617 +-echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
9618 +-echo "configure:2825: checking whether time.h and sys/time.h may both be included" >&5
9619 +-if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
9620 +-  echo $ac_n "(cached) $ac_c" 1>&6
9621 ++echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9622 ++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9623 ++if test "${ac_cv_header_time+set}" = set; then
9624 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9625 + else
9626 +-  cat > conftest.$ac_ext <<EOF
9627 +-#line 2830 "configure"
9628 +-#include "confdefs.h"
9629 ++  cat >conftest.$ac_ext <<_ACEOF
9630 ++/* confdefs.h.  */
9631 ++_ACEOF
9632 ++cat confdefs.h >>conftest.$ac_ext
9633 ++cat >>conftest.$ac_ext <<_ACEOF
9634 ++/* end confdefs.h.  */
9635 + #include <sys/types.h>
9636 + #include <sys/time.h>
9637 + #include <time.h>
9638 +-int main() {
9639 +-struct tm *tp;
9640 +-; return 0; }
9641 +-EOF
9642 +-if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643 +-  rm -rf conftest*
9644 ++
9645 ++int
9646 ++main ()
9647 ++{
9648 ++if ((struct tm *) 0)
9649 ++return 0;
9650 ++  ;
9651 ++  return 0;
9652 ++}
9653 ++_ACEOF
9654 ++rm -f conftest.$ac_objext
9655 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 ++  (eval $ac_compile) 2>conftest.er1
9657 ++  ac_status=$?
9658 ++  grep -v '^ *+' conftest.er1 >conftest.err
9659 ++  rm -f conftest.er1
9660 ++  cat conftest.err >&5
9661 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 ++  (exit $ac_status); } &&
9663 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9664 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 ++  (eval $ac_try) 2>&5
9666 ++  ac_status=$?
9667 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 ++  (exit $ac_status); }; } &&
9669 ++       { ac_try='test -s conftest.$ac_objext'
9670 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 ++  (eval $ac_try) 2>&5
9672 ++  ac_status=$?
9673 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 ++  (exit $ac_status); }; }; then
9675 +   ac_cv_header_time=yes
9676 + else
9677 +-  echo "configure: failed program was:" >&5
9678 +-  cat conftest.$ac_ext >&5
9679 +-  rm -rf conftest*
9680 +-  ac_cv_header_time=no
9681 ++  echo "$as_me: failed program was:" >&5
9682 ++sed 's/^/| /' conftest.$ac_ext >&5
9683 ++
9684 ++ac_cv_header_time=no
9685 + fi
9686 +-rm -f conftest*
9687 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688 + fi
9689 +-
9690 +-echo "$ac_t""$ac_cv_header_time" 1>&6
9691 ++echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9692 ++echo "${ECHO_T}$ac_cv_header_time" >&6
9693 + if test $ac_cv_header_time = yes; then
9694 +-  cat >> confdefs.h <<\EOF
9695 ++
9696 ++cat >>confdefs.h <<\_ACEOF
9697 + #define TIME_WITH_SYS_TIME 1
9698 +-EOF
9699 ++_ACEOF
9700
9701 + fi
9702
9703 +-echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
9704 +-echo "configure:2860: checking for sys_siglist declaration in signal.h or unistd.h" >&5
9705 +-if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
9706 +-  echo $ac_n "(cached) $ac_c" 1>&6
9707 ++echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9708 ++echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9709 ++if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9710 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9711 + else
9712 +-  cat > conftest.$ac_ext <<EOF
9713 +-#line 2865 "configure"
9714 +-#include "confdefs.h"
9715 +-#include <sys/types.h>
9716 ++  cat >conftest.$ac_ext <<_ACEOF
9717 ++/* confdefs.h.  */
9718 ++_ACEOF
9719 ++cat confdefs.h >>conftest.$ac_ext
9720 ++cat >>conftest.$ac_ext <<_ACEOF
9721 ++/* end confdefs.h.  */
9722 + #include <signal.h>
9723 + /* NetBSD declares sys_siglist in unistd.h.  */
9724 +-#ifdef HAVE_UNISTD_H
9725 +-#include <unistd.h>
9726 ++#if HAVE_UNISTD_H
9727 ++# include <unistd.h>
9728 + #endif
9729 +-int main() {
9730 +-char *msg = *(sys_siglist + 1);
9731 +-; return 0; }
9732 +-EOF
9733 +-if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9734 +-  rm -rf conftest*
9735 +-  ac_cv_decl_sys_siglist=yes
9736 +-else
9737 +-  echo "configure: failed program was:" >&5
9738 +-  cat conftest.$ac_ext >&5
9739 +-  rm -rf conftest*
9740 +-  ac_cv_decl_sys_siglist=no
9741 +-fi
9742 +-rm -f conftest*
9743 +-fi
9744
9745 +-echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
9746 +-if test $ac_cv_decl_sys_siglist = yes; then
9747 +-  cat >> confdefs.h <<\EOF
9748 +-#define SYS_SIGLIST_DECLARED 1
9749 +-EOF
9750 ++
9751 ++int
9752 ++main ()
9753 ++{
9754 ++#ifndef sys_siglist
9755 ++  char *p = (char *) sys_siglist;
9756 ++#endif
9757 ++
9758 ++  ;
9759 ++  return 0;
9760 ++}
9761 ++_ACEOF
9762 ++rm -f conftest.$ac_objext
9763 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9764 ++  (eval $ac_compile) 2>conftest.er1
9765 ++  ac_status=$?
9766 ++  grep -v '^ *+' conftest.er1 >conftest.err
9767 ++  rm -f conftest.er1
9768 ++  cat conftest.err >&5
9769 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 ++  (exit $ac_status); } &&
9771 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9772 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 ++  (eval $ac_try) 2>&5
9774 ++  ac_status=$?
9775 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 ++  (exit $ac_status); }; } &&
9777 ++       { ac_try='test -s conftest.$ac_objext'
9778 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 ++  (eval $ac_try) 2>&5
9780 ++  ac_status=$?
9781 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 ++  (exit $ac_status); }; }; then
9783 ++  ac_cv_have_decl_sys_siglist=yes
9784 ++else
9785 ++  echo "$as_me: failed program was:" >&5
9786 ++sed 's/^/| /' conftest.$ac_ext >&5
9787 ++
9788 ++ac_cv_have_decl_sys_siglist=no
9789 ++fi
9790 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9791 ++fi
9792 ++echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9793 ++echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9794 ++if test $ac_cv_have_decl_sys_siglist = yes; then
9795 ++
9796 ++cat >>confdefs.h <<_ACEOF
9797 ++#define HAVE_DECL_SYS_SIGLIST 1
9798 ++_ACEOF
9799 ++
9800 ++
9801 ++else
9802 ++  cat >>confdefs.h <<_ACEOF
9803 ++#define HAVE_DECL_SYS_SIGLIST 0
9804 ++_ACEOF
9805 ++
9806
9807 + fi
9808
9809 +-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9810 +-echo "configure:2898: checking for sys/wait.h that is POSIX.1 compatible" >&5
9811 +-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9812 +-  echo $ac_n "(cached) $ac_c" 1>&6
9813 +-else
9814 +-  cat > conftest.$ac_ext <<EOF
9815 +-#line 2903 "configure"
9816 +-#include "confdefs.h"
9817 ++
9818 ++
9819 ++echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9820 ++echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9821 ++if test "${ac_cv_header_sys_wait_h+set}" = set; then
9822 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9823 ++else
9824 ++  cat >conftest.$ac_ext <<_ACEOF
9825 ++/* confdefs.h.  */
9826 ++_ACEOF
9827 ++cat confdefs.h >>conftest.$ac_ext
9828 ++cat >>conftest.$ac_ext <<_ACEOF
9829 ++/* end confdefs.h.  */
9830 + #include <sys/types.h>
9831 + #include <sys/wait.h>
9832 + #ifndef WEXITSTATUS
9833 +-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9834 ++# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9835 + #endif
9836 + #ifndef WIFEXITED
9837 +-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9838 ++# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9839 + #endif
9840 +-int main() {
9841 +-int s;
9842 +-wait (&s);
9843 +-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9844 +-; return 0; }
9845 +-EOF
9846 +-if { (eval echo configure:2919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9847 +-  rm -rf conftest*
9848 ++
9849 ++int
9850 ++main ()
9851 ++{
9852 ++  int s;
9853 ++  wait (&s);
9854 ++  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9855 ++  ;
9856 ++  return 0;
9857 ++}
9858 ++_ACEOF
9859 ++rm -f conftest.$ac_objext
9860 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 ++  (eval $ac_compile) 2>conftest.er1
9862 ++  ac_status=$?
9863 ++  grep -v '^ *+' conftest.er1 >conftest.err
9864 ++  rm -f conftest.er1
9865 ++  cat conftest.err >&5
9866 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 ++  (exit $ac_status); } &&
9868 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9869 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 ++  (eval $ac_try) 2>&5
9871 ++  ac_status=$?
9872 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 ++  (exit $ac_status); }; } &&
9874 ++       { ac_try='test -s conftest.$ac_objext'
9875 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 ++  (eval $ac_try) 2>&5
9877 ++  ac_status=$?
9878 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 ++  (exit $ac_status); }; }; then
9880 +   ac_cv_header_sys_wait_h=yes
9881 + else
9882 +-  echo "configure: failed program was:" >&5
9883 +-  cat conftest.$ac_ext >&5
9884 +-  rm -rf conftest*
9885 +-  ac_cv_header_sys_wait_h=no
9886 ++  echo "$as_me: failed program was:" >&5
9887 ++sed 's/^/| /' conftest.$ac_ext >&5
9888 ++
9889 ++ac_cv_header_sys_wait_h=no
9890 + fi
9891 +-rm -f conftest*
9892 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9893 + fi
9894 +-
9895 +-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9896 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9897 ++echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9898 + if test $ac_cv_header_sys_wait_h = yes; then
9899 +-  cat >> confdefs.h <<\EOF
9900 ++
9901 ++cat >>confdefs.h <<\_ACEOF
9902 + #define HAVE_SYS_WAIT_H 1
9903 +-EOF
9904 ++_ACEOF
9905
9906 + fi
9907
9908
9909 +-echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
9910 +-echo "configure:2941: checking for struct utimbuf" >&5
9911 +-if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
9912 +-  echo $ac_n "(cached) $ac_c" 1>&6
9913 ++echo "$as_me:$LINENO: checking for struct utimbuf" >&5
9914 ++echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
9915 ++if test "${emacs_cv_struct_utimbuf+set}" = set; then
9916 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
9917 + else
9918 +-  cat > conftest.$ac_ext <<EOF
9919 +-#line 2946 "configure"
9920 +-#include "confdefs.h"
9921 ++  cat >conftest.$ac_ext <<_ACEOF
9922 ++/* confdefs.h.  */
9923 ++_ACEOF
9924 ++cat confdefs.h >>conftest.$ac_ext
9925 ++cat >>conftest.$ac_ext <<_ACEOF
9926 ++/* end confdefs.h.  */
9927 + #ifdef TIME_WITH_SYS_TIME
9928 + #include <sys/time.h>
9929 + #include <time.h>
9930 +@@ -2957,42 +5580,68 @@
9931 + #ifdef HAVE_UTIME_H
9932 + #include <utime.h>
9933 + #endif
9934 +-int main() {
9935 ++int
9936 ++main ()
9937 ++{
9938 + static struct utimbuf x; x.actime = x.modtime;
9939 +-; return 0; }
9940 +-EOF
9941 +-if { (eval echo configure:2965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9942 +-  rm -rf conftest*
9943 ++  ;
9944 ++  return 0;
9945 ++}
9946 ++_ACEOF
9947 ++rm -f conftest.$ac_objext
9948 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 ++  (eval $ac_compile) 2>conftest.er1
9950 ++  ac_status=$?
9951 ++  grep -v '^ *+' conftest.er1 >conftest.err
9952 ++  rm -f conftest.er1
9953 ++  cat conftest.err >&5
9954 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 ++  (exit $ac_status); } &&
9956 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9957 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 ++  (eval $ac_try) 2>&5
9959 ++  ac_status=$?
9960 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 ++  (exit $ac_status); }; } &&
9962 ++       { ac_try='test -s conftest.$ac_objext'
9963 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 ++  (eval $ac_try) 2>&5
9965 ++  ac_status=$?
9966 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 ++  (exit $ac_status); }; }; then
9968 +   emacs_cv_struct_utimbuf=yes
9969 + else
9970 +-  echo "configure: failed program was:" >&5
9971 +-  cat conftest.$ac_ext >&5
9972 +-  rm -rf conftest*
9973 +-  emacs_cv_struct_utimbuf=no
9974 ++  echo "$as_me: failed program was:" >&5
9975 ++sed 's/^/| /' conftest.$ac_ext >&5
9976 ++
9977 ++emacs_cv_struct_utimbuf=no
9978 + fi
9979 +-rm -f conftest*
9980 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981 + fi
9982 +-
9983 +-echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
9984 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
9985 ++echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
9986 + if test $emacs_cv_struct_utimbuf = yes; then
9987 +-  cat >> confdefs.h <<\EOF
9988 ++  cat >>confdefs.h <<\_ACEOF
9989 + #define HAVE_STRUCT_UTIMBUF 1
9990 +-EOF
9991 ++_ACEOF
9992
9993 + fi
9994
9995 +-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9996 +-echo "configure:2986: checking return type of signal handlers" >&5
9997 +-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9998 +-  echo $ac_n "(cached) $ac_c" 1>&6
9999 ++echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10000 ++echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10001 ++if test "${ac_cv_type_signal+set}" = set; then
10002 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10003 + else
10004 +-  cat > conftest.$ac_ext <<EOF
10005 +-#line 2991 "configure"
10006 +-#include "confdefs.h"
10007 ++  cat >conftest.$ac_ext <<_ACEOF
10008 ++/* confdefs.h.  */
10009 ++_ACEOF
10010 ++cat confdefs.h >>conftest.$ac_ext
10011 ++cat >>conftest.$ac_ext <<_ACEOF
10012 ++/* end confdefs.h.  */
10013 + #include <sys/types.h>
10014 + #include <signal.h>
10015 + #ifdef signal
10016 +-#undef signal
10017 ++# undef signal
10018 + #endif
10019 + #ifdef __cplusplus
10020 + extern "C" void (*signal (int, void (*)(int)))(int);
10021 +@@ -3000,70 +5649,123 @@
10022 + void (*signal ()) ();
10023 + #endif
10024
10025 +-int main() {
10026 ++int
10027 ++main ()
10028 ++{
10029 + int i;
10030 +-; return 0; }
10031 +-EOF
10032 +-if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10033 +-  rm -rf conftest*
10034 ++  ;
10035 ++  return 0;
10036 ++}
10037 ++_ACEOF
10038 ++rm -f conftest.$ac_objext
10039 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040 ++  (eval $ac_compile) 2>conftest.er1
10041 ++  ac_status=$?
10042 ++  grep -v '^ *+' conftest.er1 >conftest.err
10043 ++  rm -f conftest.er1
10044 ++  cat conftest.err >&5
10045 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 ++  (exit $ac_status); } &&
10047 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10048 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 ++  (eval $ac_try) 2>&5
10050 ++  ac_status=$?
10051 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 ++  (exit $ac_status); }; } &&
10053 ++       { ac_try='test -s conftest.$ac_objext'
10054 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 ++  (eval $ac_try) 2>&5
10056 ++  ac_status=$?
10057 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 ++  (exit $ac_status); }; }; then
10059 +   ac_cv_type_signal=void
10060 + else
10061 +-  echo "configure: failed program was:" >&5
10062 +-  cat conftest.$ac_ext >&5
10063 +-  rm -rf conftest*
10064 +-  ac_cv_type_signal=int
10065 ++  echo "$as_me: failed program was:" >&5
10066 ++sed 's/^/| /' conftest.$ac_ext >&5
10067 ++
10068 ++ac_cv_type_signal=int
10069 + fi
10070 +-rm -f conftest*
10071 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10072 + fi
10073 ++echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10074 ++echo "${ECHO_T}$ac_cv_type_signal" >&6
10075
10076 +-echo "$ac_t""$ac_cv_type_signal" 1>&6
10077 +-cat >> confdefs.h <<EOF
10078 ++cat >>confdefs.h <<_ACEOF
10079 + #define RETSIGTYPE $ac_cv_type_signal
10080 +-EOF
10081 ++_ACEOF
10082
10083
10084
10085 +-echo $ac_n "checking for speed_t""... $ac_c" 1>&6
10086 +-echo "configure:3028: checking for speed_t" >&5
10087 +-if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
10088 +-  echo $ac_n "(cached) $ac_c" 1>&6
10089 ++echo "$as_me:$LINENO: checking for speed_t" >&5
10090 ++echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
10091 ++if test "${emacs_cv_speed_t+set}" = set; then
10092 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10093 + else
10094 +-  cat > conftest.$ac_ext <<EOF
10095 +-#line 3033 "configure"
10096 +-#include "confdefs.h"
10097 ++  cat >conftest.$ac_ext <<_ACEOF
10098 ++/* confdefs.h.  */
10099 ++_ACEOF
10100 ++cat confdefs.h >>conftest.$ac_ext
10101 ++cat >>conftest.$ac_ext <<_ACEOF
10102 ++/* end confdefs.h.  */
10103 + #include <termios.h>
10104 +-int main() {
10105 ++int
10106 ++main ()
10107 ++{
10108 + speed_t x = 1;
10109 +-; return 0; }
10110 +-EOF
10111 +-if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10112 +-  rm -rf conftest*
10113 ++  ;
10114 ++  return 0;
10115 ++}
10116 ++_ACEOF
10117 ++rm -f conftest.$ac_objext
10118 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 ++  (eval $ac_compile) 2>conftest.er1
10120 ++  ac_status=$?
10121 ++  grep -v '^ *+' conftest.er1 >conftest.err
10122 ++  rm -f conftest.er1
10123 ++  cat conftest.err >&5
10124 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 ++  (exit $ac_status); } &&
10126 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10127 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 ++  (eval $ac_try) 2>&5
10129 ++  ac_status=$?
10130 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 ++  (exit $ac_status); }; } &&
10132 ++       { ac_try='test -s conftest.$ac_objext'
10133 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 ++  (eval $ac_try) 2>&5
10135 ++  ac_status=$?
10136 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 ++  (exit $ac_status); }; }; then
10138 +   emacs_cv_speed_t=yes
10139 + else
10140 +-  echo "configure: failed program was:" >&5
10141 +-  cat conftest.$ac_ext >&5
10142 +-  rm -rf conftest*
10143 +-  emacs_cv_speed_t=no
10144 ++  echo "$as_me: failed program was:" >&5
10145 ++sed 's/^/| /' conftest.$ac_ext >&5
10146 ++
10147 ++emacs_cv_speed_t=no
10148 + fi
10149 +-rm -f conftest*
10150 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 + fi
10152 +-
10153 +-echo "$ac_t""$emacs_cv_speed_t" 1>&6
10154 ++echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
10155 ++echo "${ECHO_T}$emacs_cv_speed_t" >&6
10156 + if test $emacs_cv_speed_t = yes; then
10157 +-  cat >> confdefs.h <<\EOF
10158 ++  cat >>confdefs.h <<\_ACEOF
10159 + #define HAVE_SPEED_T 1
10160 +-EOF
10161 ++_ACEOF
10162
10163 + fi
10164
10165 +-echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
10166 +-echo "configure:3061: checking for struct timeval" >&5
10167 +-if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
10168 +-  echo $ac_n "(cached) $ac_c" 1>&6
10169 ++echo "$as_me:$LINENO: checking for struct timeval" >&5
10170 ++echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
10171 ++if test "${emacs_cv_struct_timeval+set}" = set; then
10172 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10173 + else
10174 +-  cat > conftest.$ac_ext <<EOF
10175 +-#line 3066 "configure"
10176 +-#include "confdefs.h"
10177 ++  cat >conftest.$ac_ext <<_ACEOF
10178 ++/* confdefs.h.  */
10179 ++_ACEOF
10180 ++cat confdefs.h >>conftest.$ac_ext
10181 ++cat >>conftest.$ac_ext <<_ACEOF
10182 ++/* end confdefs.h.  */
10183 + #ifdef TIME_WITH_SYS_TIME
10184 + #include <sys/time.h>
10185 + #include <time.h>
10186 +@@ -3074,468 +5776,710 @@
10187 + #include <time.h>
10188 + #endif
10189 + #endif
10190 +-int main() {
10191 ++int
10192 ++main ()
10193 ++{
10194 + static struct timeval x; x.tv_sec = x.tv_usec;
10195 +-; return 0; }
10196 +-EOF
10197 +-if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10198 +-  rm -rf conftest*
10199 ++  ;
10200 ++  return 0;
10201 ++}
10202 ++_ACEOF
10203 ++rm -f conftest.$ac_objext
10204 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 ++  (eval $ac_compile) 2>conftest.er1
10206 ++  ac_status=$?
10207 ++  grep -v '^ *+' conftest.er1 >conftest.err
10208 ++  rm -f conftest.er1
10209 ++  cat conftest.err >&5
10210 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 ++  (exit $ac_status); } &&
10212 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10213 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 ++  (eval $ac_try) 2>&5
10215 ++  ac_status=$?
10216 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 ++  (exit $ac_status); }; } &&
10218 ++       { ac_try='test -s conftest.$ac_objext'
10219 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 ++  (eval $ac_try) 2>&5
10221 ++  ac_status=$?
10222 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 ++  (exit $ac_status); }; }; then
10224 +   emacs_cv_struct_timeval=yes
10225 + else
10226 +-  echo "configure: failed program was:" >&5
10227 +-  cat conftest.$ac_ext >&5
10228 +-  rm -rf conftest*
10229 +-  emacs_cv_struct_timeval=no
10230 ++  echo "$as_me: failed program was:" >&5
10231 ++sed 's/^/| /' conftest.$ac_ext >&5
10232 ++
10233 ++emacs_cv_struct_timeval=no
10234 + fi
10235 +-rm -f conftest*
10236 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 + fi
10238 +-
10239 +-echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
10240 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
10241 ++echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
10242 + HAVE_TIMEVAL=$emacs_cv_struct_timeval
10243 + if test $emacs_cv_struct_timeval = yes; then
10244 +-  cat >> confdefs.h <<\EOF
10245 ++  cat >>confdefs.h <<\_ACEOF
10246 + #define HAVE_TIMEVAL 1
10247 +-EOF
10248 ++_ACEOF
10249
10250 + fi
10251
10252 +-echo $ac_n "checking for struct exception""... $ac_c" 1>&6
10253 +-echo "configure:3104: checking for struct exception" >&5
10254 +-if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
10255 +-  echo $ac_n "(cached) $ac_c" 1>&6
10256 ++echo "$as_me:$LINENO: checking for struct exception" >&5
10257 ++echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
10258 ++if test "${emacs_cv_struct_exception+set}" = set; then
10259 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10260 + else
10261 +-  cat > conftest.$ac_ext <<EOF
10262 +-#line 3109 "configure"
10263 +-#include "confdefs.h"
10264 ++  cat >conftest.$ac_ext <<_ACEOF
10265 ++/* confdefs.h.  */
10266 ++_ACEOF
10267 ++cat confdefs.h >>conftest.$ac_ext
10268 ++cat >>conftest.$ac_ext <<_ACEOF
10269 ++/* end confdefs.h.  */
10270 + #include <math.h>
10271 +-int main() {
10272 ++int
10273 ++main ()
10274 ++{
10275 + static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
10276 +-; return 0; }
10277 +-EOF
10278 +-if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10279 +-  rm -rf conftest*
10280 ++  ;
10281 ++  return 0;
10282 ++}
10283 ++_ACEOF
10284 ++rm -f conftest.$ac_objext
10285 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 ++  (eval $ac_compile) 2>conftest.er1
10287 ++  ac_status=$?
10288 ++  grep -v '^ *+' conftest.er1 >conftest.err
10289 ++  rm -f conftest.er1
10290 ++  cat conftest.err >&5
10291 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 ++  (exit $ac_status); } &&
10293 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10294 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 ++  (eval $ac_try) 2>&5
10296 ++  ac_status=$?
10297 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 ++  (exit $ac_status); }; } &&
10299 ++       { ac_try='test -s conftest.$ac_objext'
10300 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 ++  (eval $ac_try) 2>&5
10302 ++  ac_status=$?
10303 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 ++  (exit $ac_status); }; }; then
10305 +   emacs_cv_struct_exception=yes
10306 + else
10307 +-  echo "configure: failed program was:" >&5
10308 +-  cat conftest.$ac_ext >&5
10309 +-  rm -rf conftest*
10310 +-  emacs_cv_struct_exception=no
10311 ++  echo "$as_me: failed program was:" >&5
10312 ++sed 's/^/| /' conftest.$ac_ext >&5
10313 ++
10314 ++emacs_cv_struct_exception=no
10315 + fi
10316 +-rm -f conftest*
10317 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 + fi
10319 +-
10320 +-echo "$ac_t""$emacs_cv_struct_exception" 1>&6
10321 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
10322 ++echo "${ECHO_T}$emacs_cv_struct_exception" >&6
10323 + HAVE_EXCEPTION=$emacs_cv_struct_exception
10324 + if test $emacs_cv_struct_exception != yes; then
10325 +-  cat >> confdefs.h <<\EOF
10326 ++  cat >>confdefs.h <<\_ACEOF
10327 + #define NO_MATHERR 1
10328 +-EOF
10329 ++_ACEOF
10330
10331 + fi
10332
10333 +-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10334 +-echo "configure:3138: checking whether struct tm is in sys/time.h or time.h" >&5
10335 +-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10336 +-  echo $ac_n "(cached) $ac_c" 1>&6
10337 ++echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10338 ++echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10339 ++if test "${ac_cv_struct_tm+set}" = set; then
10340 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10341 + else
10342 +-  cat > conftest.$ac_ext <<EOF
10343 +-#line 3143 "configure"
10344 +-#include "confdefs.h"
10345 ++  cat >conftest.$ac_ext <<_ACEOF
10346 ++/* confdefs.h.  */
10347 ++_ACEOF
10348 ++cat confdefs.h >>conftest.$ac_ext
10349 ++cat >>conftest.$ac_ext <<_ACEOF
10350 ++/* end confdefs.h.  */
10351 + #include <sys/types.h>
10352 + #include <time.h>
10353 +-int main() {
10354 ++
10355 ++int
10356 ++main ()
10357 ++{
10358 + struct tm *tp; tp->tm_sec;
10359 +-; return 0; }
10360 +-EOF
10361 +-if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10362 +-  rm -rf conftest*
10363 ++  ;
10364 ++  return 0;
10365 ++}
10366 ++_ACEOF
10367 ++rm -f conftest.$ac_objext
10368 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 ++  (eval $ac_compile) 2>conftest.er1
10370 ++  ac_status=$?
10371 ++  grep -v '^ *+' conftest.er1 >conftest.err
10372 ++  rm -f conftest.er1
10373 ++  cat conftest.err >&5
10374 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 ++  (exit $ac_status); } &&
10376 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10377 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 ++  (eval $ac_try) 2>&5
10379 ++  ac_status=$?
10380 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 ++  (exit $ac_status); }; } &&
10382 ++       { ac_try='test -s conftest.$ac_objext'
10383 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 ++  (eval $ac_try) 2>&5
10385 ++  ac_status=$?
10386 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 ++  (exit $ac_status); }; }; then
10388 +   ac_cv_struct_tm=time.h
10389 + else
10390 +-  echo "configure: failed program was:" >&5
10391 +-  cat conftest.$ac_ext >&5
10392 +-  rm -rf conftest*
10393 +-  ac_cv_struct_tm=sys/time.h
10394 ++  echo "$as_me: failed program was:" >&5
10395 ++sed 's/^/| /' conftest.$ac_ext >&5
10396 ++
10397 ++ac_cv_struct_tm=sys/time.h
10398 + fi
10399 +-rm -f conftest*
10400 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10401 + fi
10402 +-
10403 +-echo "$ac_t""$ac_cv_struct_tm" 1>&6
10404 ++echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10405 ++echo "${ECHO_T}$ac_cv_struct_tm" >&6
10406 + if test $ac_cv_struct_tm = sys/time.h; then
10407 +-  cat >> confdefs.h <<\EOF
10408 ++
10409 ++cat >>confdefs.h <<\_ACEOF
10410 + #define TM_IN_SYS_TIME 1
10411 +-EOF
10412 ++_ACEOF
10413
10414 + fi
10415
10416 +-echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
10417 +-echo "configure:3172: checking for tm_zone in struct tm" >&5
10418 +-if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
10419 +-  echo $ac_n "(cached) $ac_c" 1>&6
10420 ++echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10421 ++echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10422 ++if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10423 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10424 + else
10425 +-  cat > conftest.$ac_ext <<EOF
10426 +-#line 3177 "configure"
10427 +-#include "confdefs.h"
10428 ++  cat >conftest.$ac_ext <<_ACEOF
10429 ++/* confdefs.h.  */
10430 ++_ACEOF
10431 ++cat confdefs.h >>conftest.$ac_ext
10432 ++cat >>conftest.$ac_ext <<_ACEOF
10433 ++/* end confdefs.h.  */
10434 + #include <sys/types.h>
10435 + #include <$ac_cv_struct_tm>
10436 +-int main() {
10437 +-struct tm tm; tm.tm_zone;
10438 +-; return 0; }
10439 +-EOF
10440 +-if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10441 +-  rm -rf conftest*
10442 +-  ac_cv_struct_tm_zone=yes
10443 +-else
10444 +-  echo "configure: failed program was:" >&5
10445 +-  cat conftest.$ac_ext >&5
10446 +-  rm -rf conftest*
10447 +-  ac_cv_struct_tm_zone=no
10448 +-fi
10449 +-rm -f conftest*
10450 ++
10451 ++
10452 ++int
10453 ++main ()
10454 ++{
10455 ++static struct tm ac_aggr;
10456 ++if (ac_aggr.tm_zone)
10457 ++return 0;
10458 ++  ;
10459 ++  return 0;
10460 ++}
10461 ++_ACEOF
10462 ++rm -f conftest.$ac_objext
10463 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 ++  (eval $ac_compile) 2>conftest.er1
10465 ++  ac_status=$?
10466 ++  grep -v '^ *+' conftest.er1 >conftest.err
10467 ++  rm -f conftest.er1
10468 ++  cat conftest.err >&5
10469 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 ++  (exit $ac_status); } &&
10471 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10472 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 ++  (eval $ac_try) 2>&5
10474 ++  ac_status=$?
10475 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 ++  (exit $ac_status); }; } &&
10477 ++       { ac_try='test -s conftest.$ac_objext'
10478 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 ++  (eval $ac_try) 2>&5
10480 ++  ac_status=$?
10481 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 ++  (exit $ac_status); }; }; then
10483 ++  ac_cv_member_struct_tm_tm_zone=yes
10484 ++else
10485 ++  echo "$as_me: failed program was:" >&5
10486 ++sed 's/^/| /' conftest.$ac_ext >&5
10487 ++
10488 ++cat >conftest.$ac_ext <<_ACEOF
10489 ++/* confdefs.h.  */
10490 ++_ACEOF
10491 ++cat confdefs.h >>conftest.$ac_ext
10492 ++cat >>conftest.$ac_ext <<_ACEOF
10493 ++/* end confdefs.h.  */
10494 ++#include <sys/types.h>
10495 ++#include <$ac_cv_struct_tm>
10496 ++
10497 ++
10498 ++int
10499 ++main ()
10500 ++{
10501 ++static struct tm ac_aggr;
10502 ++if (sizeof ac_aggr.tm_zone)
10503 ++return 0;
10504 ++  ;
10505 ++  return 0;
10506 ++}
10507 ++_ACEOF
10508 ++rm -f conftest.$ac_objext
10509 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 ++  (eval $ac_compile) 2>conftest.er1
10511 ++  ac_status=$?
10512 ++  grep -v '^ *+' conftest.er1 >conftest.err
10513 ++  rm -f conftest.er1
10514 ++  cat conftest.err >&5
10515 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 ++  (exit $ac_status); } &&
10517 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10518 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 ++  (eval $ac_try) 2>&5
10520 ++  ac_status=$?
10521 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 ++  (exit $ac_status); }; } &&
10523 ++       { ac_try='test -s conftest.$ac_objext'
10524 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 ++  (eval $ac_try) 2>&5
10526 ++  ac_status=$?
10527 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 ++  (exit $ac_status); }; }; then
10529 ++  ac_cv_member_struct_tm_tm_zone=yes
10530 ++else
10531 ++  echo "$as_me: failed program was:" >&5
10532 ++sed 's/^/| /' conftest.$ac_ext >&5
10533 ++
10534 ++ac_cv_member_struct_tm_tm_zone=no
10535 ++fi
10536 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537 ++fi
10538 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 ++fi
10540 ++echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10541 ++echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10542 ++if test $ac_cv_member_struct_tm_tm_zone = yes; then
10543 ++
10544 ++cat >>confdefs.h <<_ACEOF
10545 ++#define HAVE_STRUCT_TM_TM_ZONE 1
10546 ++_ACEOF
10547 ++
10548 ++
10549 + fi
10550
10551 +-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
10552 +-if test "$ac_cv_struct_tm_zone" = yes; then
10553 +-  cat >> confdefs.h <<\EOF
10554 ++if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10555 ++
10556 ++cat >>confdefs.h <<\_ACEOF
10557 + #define HAVE_TM_ZONE 1
10558 +-EOF
10559 ++_ACEOF
10560
10561 + else
10562 +-  echo $ac_n "checking for tzname""... $ac_c" 1>&6
10563 +-echo "configure:3205: checking for tzname" >&5
10564 +-if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
10565 +-  echo $ac_n "(cached) $ac_c" 1>&6
10566 +-else
10567 +-  cat > conftest.$ac_ext <<EOF
10568 +-#line 3210 "configure"
10569 +-#include "confdefs.h"
10570 ++  echo "$as_me:$LINENO: checking for tzname" >&5
10571 ++echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10572 ++if test "${ac_cv_var_tzname+set}" = set; then
10573 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ++else
10575 ++  cat >conftest.$ac_ext <<_ACEOF
10576 ++/* confdefs.h.  */
10577 ++_ACEOF
10578 ++cat confdefs.h >>conftest.$ac_ext
10579 ++cat >>conftest.$ac_ext <<_ACEOF
10580 ++/* end confdefs.h.  */
10581 + #include <time.h>
10582 + #ifndef tzname /* For SGI.  */
10583 + extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10584 + #endif
10585 +-int main() {
10586 ++
10587 ++int
10588 ++main ()
10589 ++{
10590 + atoi(*tzname);
10591 +-; return 0; }
10592 +-EOF
10593 +-if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10594 +-  rm -rf conftest*
10595 ++  ;
10596 ++  return 0;
10597 ++}
10598 ++_ACEOF
10599 ++rm -f conftest.$ac_objext conftest$ac_exeext
10600 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601 ++  (eval $ac_link) 2>conftest.er1
10602 ++  ac_status=$?
10603 ++  grep -v '^ *+' conftest.er1 >conftest.err
10604 ++  rm -f conftest.er1
10605 ++  cat conftest.err >&5
10606 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 ++  (exit $ac_status); } &&
10608 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10609 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 ++  (eval $ac_try) 2>&5
10611 ++  ac_status=$?
10612 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 ++  (exit $ac_status); }; } &&
10614 ++       { ac_try='test -s conftest$ac_exeext'
10615 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 ++  (eval $ac_try) 2>&5
10617 ++  ac_status=$?
10618 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 ++  (exit $ac_status); }; }; then
10620 +   ac_cv_var_tzname=yes
10621 + else
10622 +-  echo "configure: failed program was:" >&5
10623 +-  cat conftest.$ac_ext >&5
10624 +-  rm -rf conftest*
10625 +-  ac_cv_var_tzname=no
10626 ++  echo "$as_me: failed program was:" >&5
10627 ++sed 's/^/| /' conftest.$ac_ext >&5
10628 ++
10629 ++ac_cv_var_tzname=no
10630 + fi
10631 +-rm -f conftest*
10632 ++rm -f conftest.err conftest.$ac_objext \
10633 ++      conftest$ac_exeext conftest.$ac_ext
10634 + fi
10635 +-
10636 +-echo "$ac_t""$ac_cv_var_tzname" 1>&6
10637 ++echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10638 ++echo "${ECHO_T}$ac_cv_var_tzname" >&6
10639 +   if test $ac_cv_var_tzname = yes; then
10640 +-    cat >> confdefs.h <<\EOF
10641 ++
10642 ++cat >>confdefs.h <<\_ACEOF
10643 + #define HAVE_TZNAME 1
10644 +-EOF
10645 ++_ACEOF
10646
10647 +   fi
10648 + fi
10649
10650 +-echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
10651 +-echo "configure:3242: checking for tm_gmtoff in struct tm" >&5
10652 +-if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
10653 +-  echo $ac_n "(cached) $ac_c" 1>&6
10654 +-else
10655 +-  cat > conftest.$ac_ext <<EOF
10656 +-#line 3247 "configure"
10657 +-#include "confdefs.h"
10658 ++echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
10659 ++echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
10660 ++if test "${emacs_cv_tm_gmtoff+set}" = set; then
10661 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10662 ++else
10663 ++  cat >conftest.$ac_ext <<_ACEOF
10664 ++/* confdefs.h.  */
10665 ++_ACEOF
10666 ++cat confdefs.h >>conftest.$ac_ext
10667 ++cat >>conftest.$ac_ext <<_ACEOF
10668 ++/* end confdefs.h.  */
10669 + #include <time.h>
10670 +-int main() {
10671 ++int
10672 ++main ()
10673 ++{
10674 + struct tm t; t.tm_gmtoff = 0
10675 +-; return 0; }
10676 +-EOF
10677 +-if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 +-  rm -rf conftest*
10679 ++  ;
10680 ++  return 0;
10681 ++}
10682 ++_ACEOF
10683 ++rm -f conftest.$ac_objext conftest$ac_exeext
10684 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685 ++  (eval $ac_link) 2>conftest.er1
10686 ++  ac_status=$?
10687 ++  grep -v '^ *+' conftest.er1 >conftest.err
10688 ++  rm -f conftest.er1
10689 ++  cat conftest.err >&5
10690 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 ++  (exit $ac_status); } &&
10692 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10693 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 ++  (eval $ac_try) 2>&5
10695 ++  ac_status=$?
10696 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 ++  (exit $ac_status); }; } &&
10698 ++       { ac_try='test -s conftest$ac_exeext'
10699 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 ++  (eval $ac_try) 2>&5
10701 ++  ac_status=$?
10702 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 ++  (exit $ac_status); }; }; then
10704 +   emacs_cv_tm_gmtoff=yes
10705 + else
10706 +-  echo "configure: failed program was:" >&5
10707 +-  cat conftest.$ac_ext >&5
10708 +-  rm -rf conftest*
10709 +-  emacs_cv_tm_gmtoff=no
10710 ++  echo "$as_me: failed program was:" >&5
10711 ++sed 's/^/| /' conftest.$ac_ext >&5
10712 ++
10713 ++emacs_cv_tm_gmtoff=no
10714 + fi
10715 +-rm -f conftest*
10716 ++rm -f conftest.err conftest.$ac_objext \
10717 ++      conftest$ac_exeext conftest.$ac_ext
10718 + fi
10719 +-
10720 +-echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
10721 ++echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
10722 ++echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
10723 + if test $emacs_cv_tm_gmtoff = yes; then
10724 +-  cat >> confdefs.h <<\EOF
10725 ++  cat >>confdefs.h <<\_ACEOF
10726 + #define HAVE_TM_GMTOFF 1
10727 +-EOF
10728 ++_ACEOF
10729
10730 + fi
10731
10732
10733 +-echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
10734 +-echo "configure:3276: checking for ${CC-cc} option to accept ANSI C" >&5
10735 +-if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
10736 +-  echo $ac_n "(cached) $ac_c" 1>&6
10737 +-else
10738 +-  ac_cv_prog_cc_stdc=no
10739 +-ac_save_CC="$CC"
10740 +-# Don't try gcc -ansi; that turns off useful extensions and
10741 +-# breaks some systems' header files.
10742 +-# AIX                 -qlanglvl=ansi
10743 +-# Ultrix and OSF/1    -std1
10744 +-# HP-UX 10.20 and later       -Ae
10745 +-# HP-UX older versions        -Aa -D_HPUX_SOURCE
10746 +-# SVR4                        -Xc -D__EXTENSIONS__
10747 +-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10748 +-do
10749 +-  CC="$ac_save_CC $ac_arg"
10750 +-  cat > conftest.$ac_ext <<EOF
10751 +-#line 3293 "configure"
10752 +-#include "confdefs.h"
10753 +-#include <stdarg.h>
10754 +-#include <stdio.h>
10755 +-#include <sys/types.h>
10756 +-#include <sys/stat.h>
10757 +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10758 +-struct buf { int x; };
10759 +-FILE * (*rcsopen) (struct buf *, struct stat *, int);
10760 +-static char *e (p, i)
10761 +-     char **p;
10762 +-     int i;
10763 +-{
10764 +-  return p[i];
10765 +-}
10766 +-static char *f (char * (*g) (char **, int), char **p, ...)
10767 +-{
10768 +-  char *s;
10769 +-  va_list v;
10770 +-  va_start (v,p);
10771 +-  s = g (p, va_arg (v,int));
10772 +-  va_end (v);
10773 +-  return s;
10774 +-}
10775 +-int test (int i, double x);
10776 +-struct s1 {int (*f) (int a);};
10777 +-struct s2 {int (*f) (double a);};
10778 +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10779 +-int argc;
10780 +-char **argv;
10781 +-int main() {
10782 +-return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10783 +-; return 0; }
10784 +-EOF
10785 +-if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10786 +-  rm -rf conftest*
10787 +-  ac_cv_prog_cc_stdc="$ac_arg"; break
10788 +-else
10789 +-  echo "configure: failed program was:" >&5
10790 +-  cat conftest.$ac_ext >&5
10791 +-fi
10792 +-rm -f conftest*
10793 +-done
10794 +-CC="$ac_save_CC"
10795 ++echo "$as_me:$LINENO: checking for function prototypes" >&5
10796 ++echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
10797 ++if test "$ac_cv_prog_cc_stdc" != no; then
10798 ++  echo "$as_me:$LINENO: result: yes" >&5
10799 ++echo "${ECHO_T}yes" >&6
10800
10801 +-fi
10802 ++cat >>confdefs.h <<\_ACEOF
10803 ++#define PROTOTYPES 1
10804 ++_ACEOF
10805
10806 +-case "x$ac_cv_prog_cc_stdc" in
10807 +-  x|xno)
10808 +-    echo "$ac_t""none needed" 1>&6 ;;
10809 +-  *)
10810 +-    echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
10811 +-    CC="$CC $ac_cv_prog_cc_stdc" ;;
10812 +-esac
10813
10814 +-echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
10815 +-echo "configure:3349: checking for function prototypes" >&5
10816 +-if test "$ac_cv_prog_cc_stdc" != no; then
10817 +-  echo "$ac_t""yes" 1>&6
10818 +-  cat >> confdefs.h <<\EOF
10819 +-#define PROTOTYPES 1
10820 +-EOF
10821 ++cat >>confdefs.h <<\_ACEOF
10822 ++#define __PROTOTYPES 1
10823 ++_ACEOF
10824
10825 + else
10826 +-  echo "$ac_t""no" 1>&6
10827 ++  echo "$as_me:$LINENO: result: no" >&5
10828 ++echo "${ECHO_T}no" >&6
10829 + fi
10830
10831 +-echo $ac_n "checking for working volatile""... $ac_c" 1>&6
10832 +-echo "configure:3361: checking for working volatile" >&5
10833 +-if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
10834 +-  echo $ac_n "(cached) $ac_c" 1>&6
10835 ++echo "$as_me:$LINENO: checking for working volatile" >&5
10836 ++echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10837 ++if test "${ac_cv_c_volatile+set}" = set; then
10838 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10839 + else
10840 +-  cat > conftest.$ac_ext <<EOF
10841 +-#line 3366 "configure"
10842 +-#include "confdefs.h"
10843 ++  cat >conftest.$ac_ext <<_ACEOF
10844 ++/* confdefs.h.  */
10845 ++_ACEOF
10846 ++cat confdefs.h >>conftest.$ac_ext
10847 ++cat >>conftest.$ac_ext <<_ACEOF
10848 ++/* end confdefs.h.  */
10849
10850 +-int main() {
10851 ++int
10852 ++main ()
10853 ++{
10854
10855 + volatile int x;
10856 + int * volatile y;
10857 +-; return 0; }
10858 +-EOF
10859 +-if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10860 +-  rm -rf conftest*
10861 ++  ;
10862 ++  return 0;
10863 ++}
10864 ++_ACEOF
10865 ++rm -f conftest.$ac_objext
10866 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867 ++  (eval $ac_compile) 2>conftest.er1
10868 ++  ac_status=$?
10869 ++  grep -v '^ *+' conftest.er1 >conftest.err
10870 ++  rm -f conftest.er1
10871 ++  cat conftest.err >&5
10872 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 ++  (exit $ac_status); } &&
10874 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10875 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 ++  (eval $ac_try) 2>&5
10877 ++  ac_status=$?
10878 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 ++  (exit $ac_status); }; } &&
10880 ++       { ac_try='test -s conftest.$ac_objext'
10881 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 ++  (eval $ac_try) 2>&5
10883 ++  ac_status=$?
10884 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 ++  (exit $ac_status); }; }; then
10886 +   ac_cv_c_volatile=yes
10887 + else
10888 +-  echo "configure: failed program was:" >&5
10889 +-  cat conftest.$ac_ext >&5
10890 +-  rm -rf conftest*
10891 +-  ac_cv_c_volatile=no
10892 ++  echo "$as_me: failed program was:" >&5
10893 ++sed 's/^/| /' conftest.$ac_ext >&5
10894 ++
10895 ++ac_cv_c_volatile=no
10896 + fi
10897 +-rm -f conftest*
10898 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 + fi
10900 +-
10901 +-echo "$ac_t""$ac_cv_c_volatile" 1>&6
10902 ++echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10903 ++echo "${ECHO_T}$ac_cv_c_volatile" >&6
10904 + if test $ac_cv_c_volatile = no; then
10905 +-  cat >> confdefs.h <<\EOF
10906 +-#define volatile 
10907 +-EOF
10908 ++
10909 ++cat >>confdefs.h <<\_ACEOF
10910 ++#define volatile
10911 ++_ACEOF
10912
10913 + fi
10914
10915 +-echo $ac_n "checking for working const""... $ac_c" 1>&6
10916 +-echo "configure:3396: checking for working const" >&5
10917 +-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10918 +-  echo $ac_n "(cached) $ac_c" 1>&6
10919 +-else
10920 +-  cat > conftest.$ac_ext <<EOF
10921 +-#line 3401 "configure"
10922 +-#include "confdefs.h"
10923 +-
10924 +-int main() {
10925 +-
10926 +-/* Ultrix mips cc rejects this.  */
10927 +-typedef int charset[2]; const charset x;
10928 +-/* SunOS 4.1.1 cc rejects this.  */
10929 +-char const *const *ccp;
10930 +-char **p;
10931 +-/* NEC SVR4.0.2 mips cc rejects this.  */
10932 +-struct point {int x, y;};
10933 +-static struct point const zero = {0,0};
10934 +-/* AIX XL C 1.02.0.0 rejects this.
10935 +-   It does not let you subtract one const X* pointer from another in an arm
10936 +-   of an if-expression whose if-part is not a constant expression */
10937 +-const char *g = "string";
10938 +-ccp = &g + (g ? g-g : 0);
10939 +-/* HPUX 7.0 cc rejects these. */
10940 +-++ccp;
10941 +-p = (char**) ccp;
10942 +-ccp = (char const *const *) p;
10943 +-{ /* SCO 3.2v4 cc rejects this.  */
10944 +-  char *t;
10945 +-  char const *s = 0 ? (char *) 0 : (char const *) 0;
10946 +-
10947 +-  *t++ = 0;
10948 +-}
10949 +-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10950 +-  int x[] = {25, 17};
10951 +-  const int *foo = &x[0];
10952 +-  ++foo;
10953 +-}
10954 +-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10955 +-  typedef const int *iptr;
10956 +-  iptr p = 0;
10957 +-  ++p;
10958 +-}
10959 +-{ /* AIX XL C 1.02.0.0 rejects this saying
10960 +-     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10961 +-  struct s { int j; const int *ap[3]; };
10962 +-  struct s *b; b->j = 5;
10963 +-}
10964 +-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10965 +-  const int foo = 10;
10966 +-}
10967 +-
10968 +-; return 0; }
10969 +-EOF
10970 +-if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10971 +-  rm -rf conftest*
10972 ++echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10973 ++echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10974 ++if test "${ac_cv_c_const+set}" = set; then
10975 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
10976 ++else
10977 ++  cat >conftest.$ac_ext <<_ACEOF
10978 ++/* confdefs.h.  */
10979 ++_ACEOF
10980 ++cat confdefs.h >>conftest.$ac_ext
10981 ++cat >>conftest.$ac_ext <<_ACEOF
10982 ++/* end confdefs.h.  */
10983 ++
10984 ++int
10985 ++main ()
10986 ++{
10987 ++/* FIXME: Include the comments suggested by Paul. */
10988 ++#ifndef __cplusplus
10989 ++  /* Ultrix mips cc rejects this.  */
10990 ++  typedef int charset[2];
10991 ++  const charset x;
10992 ++  /* SunOS 4.1.1 cc rejects this.  */
10993 ++  char const *const *ccp;
10994 ++  char **p;
10995 ++  /* NEC SVR4.0.2 mips cc rejects this.  */
10996 ++  struct point {int x, y;};
10997 ++  static struct point const zero = {0,0};
10998 ++  /* AIX XL C 1.02.0.0 rejects this.
10999 ++     It does not let you subtract one const X* pointer from another in
11000 ++     an arm of an if-expression whose if-part is not a constant
11001 ++     expression */
11002 ++  const char *g = "string";
11003 ++  ccp = &g + (g ? g-g : 0);
11004 ++  /* HPUX 7.0 cc rejects these. */
11005 ++  ++ccp;
11006 ++  p = (char**) ccp;
11007 ++  ccp = (char const *const *) p;
11008 ++  { /* SCO 3.2v4 cc rejects this.  */
11009 ++    char *t;
11010 ++    char const *s = 0 ? (char *) 0 : (char const *) 0;
11011 ++
11012 ++    *t++ = 0;
11013 ++  }
11014 ++  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11015 ++    int x[] = {25, 17};
11016 ++    const int *foo = &x[0];
11017 ++    ++foo;
11018 ++  }
11019 ++  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11020 ++    typedef const int *iptr;
11021 ++    iptr p = 0;
11022 ++    ++p;
11023 ++  }
11024 ++  { /* AIX XL C 1.02.0.0 rejects this saying
11025 ++       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11026 ++    struct s { int j; const int *ap[3]; };
11027 ++    struct s *b; b->j = 5;
11028 ++  }
11029 ++  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11030 ++    const int foo = 10;
11031 ++  }
11032 ++#endif
11033 ++
11034 ++  ;
11035 ++  return 0;
11036 ++}
11037 ++_ACEOF
11038 ++rm -f conftest.$ac_objext
11039 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 ++  (eval $ac_compile) 2>conftest.er1
11041 ++  ac_status=$?
11042 ++  grep -v '^ *+' conftest.er1 >conftest.err
11043 ++  rm -f conftest.er1
11044 ++  cat conftest.err >&5
11045 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 ++  (exit $ac_status); } &&
11047 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11048 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 ++  (eval $ac_try) 2>&5
11050 ++  ac_status=$?
11051 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 ++  (exit $ac_status); }; } &&
11053 ++       { ac_try='test -s conftest.$ac_objext'
11054 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 ++  (eval $ac_try) 2>&5
11056 ++  ac_status=$?
11057 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 ++  (exit $ac_status); }; }; then
11059 +   ac_cv_c_const=yes
11060 + else
11061 +-  echo "configure: failed program was:" >&5
11062 +-  cat conftest.$ac_ext >&5
11063 +-  rm -rf conftest*
11064 +-  ac_cv_c_const=no
11065 ++  echo "$as_me: failed program was:" >&5
11066 ++sed 's/^/| /' conftest.$ac_ext >&5
11067 ++
11068 ++ac_cv_c_const=no
11069 + fi
11070 +-rm -f conftest*
11071 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072 + fi
11073 +-
11074 +-echo "$ac_t""$ac_cv_c_const" 1>&6
11075 ++echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11076 ++echo "${ECHO_T}$ac_cv_c_const" >&6
11077 + if test $ac_cv_c_const = no; then
11078 +-  cat >> confdefs.h <<\EOF
11079 +-#define const 
11080 +-EOF
11081 ++
11082 ++cat >>confdefs.h <<\_ACEOF
11083 ++#define const
11084 ++_ACEOF
11085
11086 + fi
11087
11088 +-echo $ac_n "checking for void * support""... $ac_c" 1>&6
11089 +-echo "configure:3471: checking for void * support" >&5
11090 +-if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
11091 +-  echo $ac_n "(cached) $ac_c" 1>&6
11092 +-else
11093 +-  cat > conftest.$ac_ext <<EOF
11094 +-#line 3476 "configure"
11095 +-#include "confdefs.h"
11096 ++echo "$as_me:$LINENO: checking for void * support" >&5
11097 ++echo $ECHO_N "checking for void * support... $ECHO_C" >&6
11098 ++if test "${emacs_cv_void_star+set}" = set; then
11099 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ++else
11101 ++  cat >conftest.$ac_ext <<_ACEOF
11102 ++/* confdefs.h.  */
11103 ++_ACEOF
11104 ++cat confdefs.h >>conftest.$ac_ext
11105 ++cat >>conftest.$ac_ext <<_ACEOF
11106 ++/* end confdefs.h.  */
11107
11108 +-int main() {
11109 ++int
11110 ++main ()
11111 ++{
11112 + void * foo;
11113 +-; return 0; }
11114 +-EOF
11115 +-if { (eval echo configure:3483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116 +-  rm -rf conftest*
11117 ++  ;
11118 ++  return 0;
11119 ++}
11120 ++_ACEOF
11121 ++rm -f conftest.$ac_objext
11122 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 ++  (eval $ac_compile) 2>conftest.er1
11124 ++  ac_status=$?
11125 ++  grep -v '^ *+' conftest.er1 >conftest.err
11126 ++  rm -f conftest.er1
11127 ++  cat conftest.err >&5
11128 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 ++  (exit $ac_status); } &&
11130 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11131 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 ++  (eval $ac_try) 2>&5
11133 ++  ac_status=$?
11134 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 ++  (exit $ac_status); }; } &&
11136 ++       { ac_try='test -s conftest.$ac_objext'
11137 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 ++  (eval $ac_try) 2>&5
11139 ++  ac_status=$?
11140 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 ++  (exit $ac_status); }; }; then
11142 +   emacs_cv_void_star=yes
11143 + else
11144 +-  echo "configure: failed program was:" >&5
11145 +-  cat conftest.$ac_ext >&5
11146 +-  rm -rf conftest*
11147 +-  emacs_cv_void_star=no
11148 ++  echo "$as_me: failed program was:" >&5
11149 ++sed 's/^/| /' conftest.$ac_ext >&5
11150 ++
11151 ++emacs_cv_void_star=no
11152 + fi
11153 +-rm -f conftest*
11154 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11155 + fi
11156 +-
11157 +-echo "$ac_t""$emacs_cv_void_star" 1>&6
11158 ++echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
11159 ++echo "${ECHO_T}$emacs_cv_void_star" >&6
11160 + if test $emacs_cv_void_star = yes; then
11161 +-  cat >> confdefs.h <<\EOF
11162 ++  cat >>confdefs.h <<\_ACEOF
11163 + #define POINTER_TYPE void
11164 +-EOF
11165 ++_ACEOF
11166
11167 + else
11168 +-  cat >> confdefs.h <<\EOF
11169 ++  cat >>confdefs.h <<\_ACEOF
11170 + #define POINTER_TYPE char
11171 +-EOF
11172 ++_ACEOF
11173
11174 + fi
11175
11176 +-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
11177 +-echo "configure:3509: checking whether ${MAKE-make} sets \${MAKE}" >&5
11178 +-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11179 +-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11180 +-  echo $ac_n "(cached) $ac_c" 1>&6
11181 ++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11182 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
11183 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
11184 ++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11185 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11186 + else
11187 +-  cat > conftestmake <<\EOF
11188 ++  cat >conftest.make <<\_ACEOF
11189 + all:
11190 +-      @echo 'ac_maketemp="${MAKE}"'
11191 +-EOF
11192 ++      @echo 'ac_maketemp="$(MAKE)"'
11193 ++_ACEOF
11194 + # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11195 +-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11196 ++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11197 + if test -n "$ac_maketemp"; then
11198 +   eval ac_cv_prog_make_${ac_make}_set=yes
11199 + else
11200 +   eval ac_cv_prog_make_${ac_make}_set=no
11201 + fi
11202 +-rm -f conftestmake
11203 ++rm -f conftest.make
11204 + fi
11205 + if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11206 +-  echo "$ac_t""yes" 1>&6
11207 ++  echo "$as_me:$LINENO: result: yes" >&5
11208 ++echo "${ECHO_T}yes" >&6
11209 +   SET_MAKE=
11210 + else
11211 +-  echo "$ac_t""no" 1>&6
11212 ++  echo "$as_me:$LINENO: result: no" >&5
11213 ++echo "${ECHO_T}no" >&6
11214 +   SET_MAKE="MAKE=${MAKE-make}"
11215 + fi
11216
11217
11218 +-echo $ac_n "checking for long file names""... $ac_c" 1>&6
11219 +-echo "configure:3537: checking for long file names" >&5
11220 +-if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
11221 +-  echo $ac_n "(cached) $ac_c" 1>&6
11222 ++echo "$as_me:$LINENO: checking for long file names" >&5
11223 ++echo $ECHO_N "checking for long file names... $ECHO_C" >&6
11224 ++if test "${ac_cv_sys_long_file_names+set}" = set; then
11225 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11226 + else
11227 +   ac_cv_sys_long_file_names=yes
11228 + # Test for long file names in all the places we know might matter:
11229 +@@ -3549,49 +6493,51 @@
11230 + #      /var/tmp               likewise
11231 + #      /usr/tmp               likewise
11232 + if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
11233 +-  ac_tmpdirs="$TMPDIR"
11234 ++  ac_tmpdirs=$TMPDIR
11235 + else
11236 +   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
11237 + fi
11238 + for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
11239 +   test -d $ac_dir || continue
11240 +   test -w $ac_dir || continue # It is less confusing to not echo anything here.
11241 +-  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
11242 +-  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
11243 +-  val=`cat $ac_dir/conftest9012345 2>/dev/null`
11244 +-  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
11245 ++  ac_xdir=$ac_dir/cf$$
11246 ++  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
11247 ++  ac_tf1=$ac_xdir/conftest9012345
11248 ++  ac_tf2=$ac_xdir/conftest9012346
11249 ++  (echo 1 >$ac_tf1) 2>/dev/null
11250 ++  (echo 2 >$ac_tf2) 2>/dev/null
11251 ++  ac_val=`cat $ac_tf1 2>/dev/null`
11252 ++  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
11253 +     ac_cv_sys_long_file_names=no
11254 +-    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
11255 ++    rm -rf $ac_xdir 2>/dev/null
11256 +     break
11257 +   fi
11258 +-  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
11259 ++  rm -rf $ac_xdir 2>/dev/null
11260 + done
11261 + fi
11262 +-
11263 +-echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
11264 ++echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
11265 ++echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
11266 + if test $ac_cv_sys_long_file_names = yes; then
11267 +-  cat >> confdefs.h <<\EOF
11268 ++
11269 ++cat >>confdefs.h <<\_ACEOF
11270 + #define HAVE_LONG_FILE_NAMES 1
11271 +-EOF
11272 ++_ACEOF
11273
11274 + fi
11275
11276
11277 + #### Choose a window system.
11278
11279 +-# If we find X, set shell vars x_includes and x_libraries to the
11280 +-# paths, otherwise set no_x=yes.
11281 +-# Uses ac_ vars as temps to allow command line to override cache and checks.
11282 +-# --without-x overrides everything else, but does not touch the cache.
11283 +-echo $ac_n "checking for X""... $ac_c" 1>&6
11284 +-echo "configure:3588: checking for X" >&5
11285 ++echo "$as_me:$LINENO: checking for X" >&5
11286 ++echo $ECHO_N "checking for X... $ECHO_C" >&6
11287 ++
11288 ++ac_path_x_has_been_run=yes
11289
11290 + # Check whether --with-x or --without-x was given.
11291 + if test "${with_x+set}" = set; then
11292 +   withval="$with_x"
11293 +-  :
11294 +-fi
11295
11296 ++fi;
11297 + # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11298 + if test "x$with_x" = xno; then
11299 +   # The user explicitly disabled X.
11300 +@@ -3601,207 +6547,209 @@
11301 +     # Both variables are already set.
11302 +     have_x=yes
11303 +   else
11304 +-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11305 +-  echo $ac_n "(cached) $ac_c" 1>&6
11306 ++    if test "${ac_cv_have_x+set}" = set; then
11307 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11308 + else
11309 +   # One or both of the vars are not set, and there is no cached value.
11310 +-ac_x_includes=NO ac_x_libraries=NO
11311 +-rm -fr conftestdir
11312 +-if mkdir conftestdir; then
11313 +-  cd conftestdir
11314 ++ac_x_includes=no ac_x_libraries=no
11315 ++rm -fr conftest.dir
11316 ++if mkdir conftest.dir; then
11317 ++  cd conftest.dir
11318 +   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11319 +-  cat > Imakefile <<'EOF'
11320 ++  cat >Imakefile <<'_ACEOF'
11321 + acfindx:
11322 +       @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11323 +-EOF
11324 ++_ACEOF
11325 +   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11326 +     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11327 +     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11328 +     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11329 +     for ac_extension in a so sl; do
11330 +       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11331 +-        test -f $ac_im_libdir/libX11.$ac_extension; then
11332 +-        ac_im_usrlibdir=$ac_im_libdir; break
11333 ++       test -f $ac_im_libdir/libX11.$ac_extension; then
11334 ++      ac_im_usrlibdir=$ac_im_libdir; break
11335 +       fi
11336 +     done
11337 +     # Screen out bogus values from the imake configuration.  They are
11338 +     # bogus both because they are the default anyway, and because
11339 +     # using them would break gcc on systems where it needs fixed includes.
11340 +-    case "$ac_im_incroot" in
11341 ++    case $ac_im_incroot in
11342 +       /usr/include) ;;
11343 +-      *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11344 ++      *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11345 +     esac
11346 +-    case "$ac_im_usrlibdir" in
11347 ++    case $ac_im_usrlibdir in
11348 +       /usr/lib | /lib) ;;
11349 +-      *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11350 ++      *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11351 +     esac
11352 +   fi
11353 +   cd ..
11354 +-  rm -fr conftestdir
11355 ++  rm -fr conftest.dir
11356 + fi
11357
11358 +-if test "$ac_x_includes" = NO; then
11359 +-  # Guess where to find include files, by looking for this one X11 .h file.
11360 +-  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11361 ++# Standard set of common directories for X headers.
11362 ++# Check X11 before X11Rn because it is often a symlink to the current release.
11363 ++ac_x_header_dirs='
11364 ++/usr/X11/include
11365 ++/usr/X11R6/include
11366 ++/usr/X11R5/include
11367 ++/usr/X11R4/include
11368 ++
11369 ++/usr/include/X11
11370 ++/usr/include/X11R6
11371 ++/usr/include/X11R5
11372 ++/usr/include/X11R4
11373 ++
11374 ++/usr/local/X11/include
11375 ++/usr/local/X11R6/include
11376 ++/usr/local/X11R5/include
11377 ++/usr/local/X11R4/include
11378 ++
11379 ++/usr/local/include/X11
11380 ++/usr/local/include/X11R6
11381 ++/usr/local/include/X11R5
11382 ++/usr/local/include/X11R4
11383 ++
11384 ++/usr/X386/include
11385 ++/usr/x386/include
11386 ++/usr/XFree86/include/X11
11387 ++
11388 ++/usr/include
11389 ++/usr/local/include
11390 ++/usr/unsupported/include
11391 ++/usr/athena/include
11392 ++/usr/local/x11r5/include
11393 ++/usr/lpp/Xamples/include
11394 ++
11395 ++/usr/openwin/include
11396 ++/usr/openwin/share/include'
11397
11398 ++if test "$ac_x_includes" = no; then
11399 ++  # Guess where to find include files, by looking for a specified header file.
11400 +   # First, try using that file with no special directory specified.
11401 +-cat > conftest.$ac_ext <<EOF
11402 +-#line 3650 "configure"
11403 +-#include "confdefs.h"
11404 +-#include <$x_direct_test_include>
11405 +-EOF
11406 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11407 +-{ (eval echo configure:3655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11408 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11409 +-if test -z "$ac_err"; then
11410 +-  rm -rf conftest*
11411 ++  cat >conftest.$ac_ext <<_ACEOF
11412 ++/* confdefs.h.  */
11413 ++_ACEOF
11414 ++cat confdefs.h >>conftest.$ac_ext
11415 ++cat >>conftest.$ac_ext <<_ACEOF
11416 ++/* end confdefs.h.  */
11417 ++#include <X11/Intrinsic.h>
11418 ++_ACEOF
11419 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11421 ++  ac_status=$?
11422 ++  grep -v '^ *+' conftest.er1 >conftest.err
11423 ++  rm -f conftest.er1
11424 ++  cat conftest.err >&5
11425 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 ++  (exit $ac_status); } >/dev/null; then
11427 ++  if test -s conftest.err; then
11428 ++    ac_cpp_err=$ac_c_preproc_warn_flag
11429 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11430 ++  else
11431 ++    ac_cpp_err=
11432 ++  fi
11433 ++else
11434 ++  ac_cpp_err=yes
11435 ++fi
11436 ++if test -z "$ac_cpp_err"; then
11437 +   # We can compile using X headers with no special include directory.
11438 + ac_x_includes=
11439 + else
11440 +-  echo "$ac_err" >&5
11441 +-  echo "configure: failed program was:" >&5
11442 +-  cat conftest.$ac_ext >&5
11443 +-  rm -rf conftest*
11444 +-  # Look for the header file in a standard set of common directories.
11445 +-# Check X11 before X11Rn because it is often a symlink to the current release.
11446 +-  for ac_dir in               \
11447 +-    /usr/X11/include          \
11448 +-    /usr/X11R6/include        \
11449 +-    /usr/X11R5/include        \
11450 +-    /usr/X11R4/include        \
11451 +-                              \
11452 +-    /usr/include/X11          \
11453 +-    /usr/include/X11R6        \
11454 +-    /usr/include/X11R5        \
11455 +-    /usr/include/X11R4        \
11456 +-                              \
11457 +-    /usr/local/X11/include    \
11458 +-    /usr/local/X11R6/include  \
11459 +-    /usr/local/X11R5/include  \
11460 +-    /usr/local/X11R4/include  \
11461 +-                              \
11462 +-    /usr/local/include/X11    \
11463 +-    /usr/local/include/X11R6  \
11464 +-    /usr/local/include/X11R5  \
11465 +-    /usr/local/include/X11R4  \
11466 +-                              \
11467 +-    /usr/X386/include         \
11468 +-    /usr/x386/include         \
11469 +-    /usr/XFree86/include/X11  \
11470 +-                              \
11471 +-    /usr/include              \
11472 +-    /usr/local/include        \
11473 +-    /usr/unsupported/include  \
11474 +-    /usr/athena/include       \
11475 +-    /usr/local/x11r5/include  \
11476 +-    /usr/lpp/Xamples/include  \
11477 +-                              \
11478 +-    /usr/openwin/include      \
11479 +-    /usr/openwin/share/include \
11480 +-    ; \
11481 +-  do
11482 +-    if test -r "$ac_dir/$x_direct_test_include"; then
11483 +-      ac_x_includes=$ac_dir
11484 +-      break
11485 +-    fi
11486 +-  done
11487 ++  echo "$as_me: failed program was:" >&5
11488 ++sed 's/^/| /' conftest.$ac_ext >&5
11489 ++
11490 ++  for ac_dir in $ac_x_header_dirs; do
11491 ++  if test -r "$ac_dir/X11/Intrinsic.h"; then
11492 ++    ac_x_includes=$ac_dir
11493 ++    break
11494 ++  fi
11495 ++done
11496 + fi
11497 +-rm -f conftest*
11498 +-fi # $ac_x_includes = NO
11499 ++rm -f conftest.err conftest.$ac_ext
11500 ++fi # $ac_x_includes = no
11501
11502 +-if test "$ac_x_libraries" = NO; then
11503 ++if test "$ac_x_libraries" = no; then
11504 +   # Check for the libraries.
11505 +-
11506 +-  test -z "$x_direct_test_library" && x_direct_test_library=Xt
11507 +-  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11508 +-
11509 +   # See if we find them without any special options.
11510 +   # Don't add to $LIBS permanently.
11511 +-  ac_save_LIBS="$LIBS"
11512 +-  LIBS="-l$x_direct_test_library $LIBS"
11513 +-cat > conftest.$ac_ext <<EOF
11514 +-#line 3724 "configure"
11515 +-#include "confdefs.h"
11516 +-
11517 +-int main() {
11518 +-${x_direct_test_function}()
11519 +-; return 0; }
11520 +-EOF
11521 +-if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 +-  rm -rf conftest*
11523 +-  LIBS="$ac_save_LIBS"
11524 ++  ac_save_LIBS=$LIBS
11525 ++  LIBS="-lXt $LIBS"
11526 ++  cat >conftest.$ac_ext <<_ACEOF
11527 ++/* confdefs.h.  */
11528 ++_ACEOF
11529 ++cat confdefs.h >>conftest.$ac_ext
11530 ++cat >>conftest.$ac_ext <<_ACEOF
11531 ++/* end confdefs.h.  */
11532 ++#include <X11/Intrinsic.h>
11533 ++int
11534 ++main ()
11535 ++{
11536 ++XtMalloc (0)
11537 ++  ;
11538 ++  return 0;
11539 ++}
11540 ++_ACEOF
11541 ++rm -f conftest.$ac_objext conftest$ac_exeext
11542 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 ++  (eval $ac_link) 2>conftest.er1
11544 ++  ac_status=$?
11545 ++  grep -v '^ *+' conftest.er1 >conftest.err
11546 ++  rm -f conftest.er1
11547 ++  cat conftest.err >&5
11548 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 ++  (exit $ac_status); } &&
11550 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11551 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 ++  (eval $ac_try) 2>&5
11553 ++  ac_status=$?
11554 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 ++  (exit $ac_status); }; } &&
11556 ++       { ac_try='test -s conftest$ac_exeext'
11557 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 ++  (eval $ac_try) 2>&5
11559 ++  ac_status=$?
11560 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 ++  (exit $ac_status); }; }; then
11562 ++  LIBS=$ac_save_LIBS
11563 + # We can link X programs with no special library path.
11564 + ac_x_libraries=
11565 + else
11566 +-  echo "configure: failed program was:" >&5
11567 +-  cat conftest.$ac_ext >&5
11568 +-  rm -rf conftest*
11569 +-  LIBS="$ac_save_LIBS"
11570 +-# First see if replacing the include by lib works.
11571 +-# Check X11 before X11Rn because it is often a symlink to the current release.
11572 +-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11573 +-    /usr/X11/lib          \
11574 +-    /usr/X11R6/lib        \
11575 +-    /usr/X11R5/lib        \
11576 +-    /usr/X11R4/lib        \
11577 +-                          \
11578 +-    /usr/lib/X11          \
11579 +-    /usr/lib/X11R6        \
11580 +-    /usr/lib/X11R5        \
11581 +-    /usr/lib/X11R4        \
11582 +-                          \
11583 +-    /usr/local/X11/lib    \
11584 +-    /usr/local/X11R6/lib  \
11585 +-    /usr/local/X11R5/lib  \
11586 +-    /usr/local/X11R4/lib  \
11587 +-                          \
11588 +-    /usr/local/lib/X11    \
11589 +-    /usr/local/lib/X11R6  \
11590 +-    /usr/local/lib/X11R5  \
11591 +-    /usr/local/lib/X11R4  \
11592 +-                          \
11593 +-    /usr/X386/lib         \
11594 +-    /usr/x386/lib         \
11595 +-    /usr/XFree86/lib/X11  \
11596 +-                          \
11597 +-    /usr/lib              \
11598 +-    /usr/local/lib        \
11599 +-    /usr/unsupported/lib  \
11600 +-    /usr/athena/lib       \
11601 +-    /usr/local/x11r5/lib  \
11602 +-    /usr/lpp/Xamples/lib  \
11603 +-    /lib/usr/lib/X11    \
11604 +-                          \
11605 +-    /usr/openwin/lib      \
11606 +-    /usr/openwin/share/lib \
11607 +-    ; \
11608 ++  echo "$as_me: failed program was:" >&5
11609 ++sed 's/^/| /' conftest.$ac_ext >&5
11610 ++
11611 ++LIBS=$ac_save_LIBS
11612 ++for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11613 + do
11614 ++  # Don't even attempt the hair of trying to link an X program!
11615 +   for ac_extension in a so sl; do
11616 +-    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11617 ++    if test -r $ac_dir/libXt.$ac_extension; then
11618 +       ac_x_libraries=$ac_dir
11619 +       break 2
11620 +     fi
11621 +   done
11622 + done
11623 + fi
11624 +-rm -f conftest*
11625 +-fi # $ac_x_libraries = NO
11626 ++rm -f conftest.err conftest.$ac_objext \
11627 ++      conftest$ac_exeext conftest.$ac_ext
11628 ++fi # $ac_x_libraries = no
11629
11630 +-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11631 ++if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11632 +   # Didn't find X anywhere.  Cache the known absence of X.
11633 +   ac_cv_have_x="have_x=no"
11634 + else
11635 +   # Record where we found X for the cache.
11636 +   ac_cv_have_x="have_x=yes \
11637 +-              ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11638 ++              ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11639 + fi
11640 + fi
11641 ++
11642 +   fi
11643 +   eval "$ac_cv_have_x"
11644 + fi # $with_x != no
11645
11646 + if test "$have_x" != yes; then
11647 +-  echo "$ac_t""$have_x" 1>&6
11648 ++  echo "$as_me:$LINENO: result: $have_x" >&5
11649 ++echo "${ECHO_T}$have_x" >&6
11650 +   no_x=yes
11651 + else
11652 +   # If each of the values was on the command line, it overrides each guess.
11653 +@@ -3810,7 +6758,12 @@
11654 +   # Update the cache value to reflect the command line values.
11655 +   ac_cv_have_x="have_x=yes \
11656 +               ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11657 +-  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11658 ++  # It might be that x_includes is empty (headers are found in the
11659 ++  # standard search path. Then output the corresponding message
11660 ++  ac_out_x_includes=$x_includes
11661 ++  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
11662 ++  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
11663 ++echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
11664 + fi
11665
11666 + if test "$no_x" = yes; then
11667 +@@ -3883,7 +6836,7 @@
11668 + case ${HAVE_X11} in
11669 +   yes ) HAVE_MENUS=yes ;;
11670 + esac
11671 +-  
11672 ++
11673 + if test "${opsys}" = "hpux9"; then
11674 +   case "${x_libraries}" in
11675 +     *X11R4* )
11676 +@@ -3907,130 +6860,249 @@
11677 + # Assume not, until told otherwise.
11678 + GNU_MALLOC=yes
11679 + doug_lea_malloc=yes
11680 +-echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
11681 +-echo "configure:3912: checking for malloc_get_state" >&5
11682 +-if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
11683 +-  echo $ac_n "(cached) $ac_c" 1>&6
11684 +-else
11685 +-  cat > conftest.$ac_ext <<EOF
11686 +-#line 3917 "configure"
11687 +-#include "confdefs.h"
11688 ++echo "$as_me:$LINENO: checking for malloc_get_state" >&5
11689 ++echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
11690 ++if test "${ac_cv_func_malloc_get_state+set}" = set; then
11691 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11692 ++else
11693 ++  cat >conftest.$ac_ext <<_ACEOF
11694 ++/* confdefs.h.  */
11695 ++_ACEOF
11696 ++cat confdefs.h >>conftest.$ac_ext
11697 ++cat >>conftest.$ac_ext <<_ACEOF
11698 ++/* end confdefs.h.  */
11699 ++/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
11700 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11701 ++#define malloc_get_state innocuous_malloc_get_state
11702 ++
11703 + /* System header to define __stub macros and hopefully few prototypes,
11704 +-    which can conflict with char malloc_get_state(); below.  */
11705 +-#include <assert.h>
11706 +-/* Override any gcc2 internal prototype to avoid an error.  */
11707 +-/* We use char because int might match the return type of a gcc2
11708 +-    builtin and then its argument prototype would still apply.  */
11709 +-char malloc_get_state();
11710 ++    which can conflict with char malloc_get_state (); below.
11711 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 ++    <limits.h> exists even on freestanding compilers.  */
11713 ++
11714 ++#ifdef __STDC__
11715 ++# include <limits.h>
11716 ++#else
11717 ++# include <assert.h>
11718 ++#endif
11719
11720 +-int main() {
11721 ++#undef malloc_get_state
11722
11723 ++/* Override any gcc2 internal prototype to avoid an error.  */
11724 ++#ifdef __cplusplus
11725 ++extern "C"
11726 ++{
11727 ++#endif
11728 ++/* We use char because int might match the return type of a gcc2
11729 ++   builtin and then its argument prototype would still apply.  */
11730 ++char malloc_get_state ();
11731 + /* The GNU C library defines this for functions which it implements
11732 +     to always fail with ENOSYS.  Some functions are actually named
11733 +     something starting with __ and the normal name is an alias.  */
11734 + #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
11735 + choke me
11736 + #else
11737 +-malloc_get_state();
11738 ++char (*f) () = malloc_get_state;
11739 ++#endif
11740 ++#ifdef __cplusplus
11741 ++}
11742 + #endif
11743
11744 +-; return 0; }
11745 +-EOF
11746 +-if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747 +-  rm -rf conftest*
11748 +-  eval "ac_cv_func_malloc_get_state=yes"
11749 +-else
11750 +-  echo "configure: failed program was:" >&5
11751 +-  cat conftest.$ac_ext >&5
11752 +-  rm -rf conftest*
11753 +-  eval "ac_cv_func_malloc_get_state=no"
11754 +-fi
11755 +-rm -f conftest*
11756 +-fi
11757 +-
11758 +-if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
11759 +-  echo "$ac_t""yes" 1>&6
11760 ++int
11761 ++main ()
11762 ++{
11763 ++return f != malloc_get_state;
11764 ++  ;
11765 ++  return 0;
11766 ++}
11767 ++_ACEOF
11768 ++rm -f conftest.$ac_objext conftest$ac_exeext
11769 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 ++  (eval $ac_link) 2>conftest.er1
11771 ++  ac_status=$?
11772 ++  grep -v '^ *+' conftest.er1 >conftest.err
11773 ++  rm -f conftest.er1
11774 ++  cat conftest.err >&5
11775 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 ++  (exit $ac_status); } &&
11777 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11778 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 ++  (eval $ac_try) 2>&5
11780 ++  ac_status=$?
11781 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 ++  (exit $ac_status); }; } &&
11783 ++       { ac_try='test -s conftest$ac_exeext'
11784 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 ++  (eval $ac_try) 2>&5
11786 ++  ac_status=$?
11787 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 ++  (exit $ac_status); }; }; then
11789 ++  ac_cv_func_malloc_get_state=yes
11790 ++else
11791 ++  echo "$as_me: failed program was:" >&5
11792 ++sed 's/^/| /' conftest.$ac_ext >&5
11793 ++
11794 ++ac_cv_func_malloc_get_state=no
11795 ++fi
11796 ++rm -f conftest.err conftest.$ac_objext \
11797 ++      conftest$ac_exeext conftest.$ac_ext
11798 ++fi
11799 ++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
11800 ++echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
11801 ++if test $ac_cv_func_malloc_get_state = yes; then
11802 +   :
11803 + else
11804 +-  echo "$ac_t""no" 1>&6
11805 +-doug_lea_malloc=no
11806 ++  doug_lea_malloc=no
11807 + fi
11808
11809 +-echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
11810 +-echo "configure:3961: checking for malloc_set_state" >&5
11811 +-if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
11812 +-  echo $ac_n "(cached) $ac_c" 1>&6
11813 +-else
11814 +-  cat > conftest.$ac_ext <<EOF
11815 +-#line 3966 "configure"
11816 +-#include "confdefs.h"
11817 ++echo "$as_me:$LINENO: checking for malloc_set_state" >&5
11818 ++echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
11819 ++if test "${ac_cv_func_malloc_set_state+set}" = set; then
11820 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11821 ++else
11822 ++  cat >conftest.$ac_ext <<_ACEOF
11823 ++/* confdefs.h.  */
11824 ++_ACEOF
11825 ++cat confdefs.h >>conftest.$ac_ext
11826 ++cat >>conftest.$ac_ext <<_ACEOF
11827 ++/* end confdefs.h.  */
11828 ++/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
11829 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11830 ++#define malloc_set_state innocuous_malloc_set_state
11831 ++
11832 + /* System header to define __stub macros and hopefully few prototypes,
11833 +-    which can conflict with char malloc_set_state(); below.  */
11834 +-#include <assert.h>
11835 +-/* Override any gcc2 internal prototype to avoid an error.  */
11836 +-/* We use char because int might match the return type of a gcc2
11837 +-    builtin and then its argument prototype would still apply.  */
11838 +-char malloc_set_state();
11839 ++    which can conflict with char malloc_set_state (); below.
11840 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 ++    <limits.h> exists even on freestanding compilers.  */
11842 ++
11843 ++#ifdef __STDC__
11844 ++# include <limits.h>
11845 ++#else
11846 ++# include <assert.h>
11847 ++#endif
11848
11849 +-int main() {
11850 ++#undef malloc_set_state
11851
11852 ++/* Override any gcc2 internal prototype to avoid an error.  */
11853 ++#ifdef __cplusplus
11854 ++extern "C"
11855 ++{
11856 ++#endif
11857 ++/* We use char because int might match the return type of a gcc2
11858 ++   builtin and then its argument prototype would still apply.  */
11859 ++char malloc_set_state ();
11860 + /* The GNU C library defines this for functions which it implements
11861 +     to always fail with ENOSYS.  Some functions are actually named
11862 +     something starting with __ and the normal name is an alias.  */
11863 + #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
11864 + choke me
11865 + #else
11866 +-malloc_set_state();
11867 ++char (*f) () = malloc_set_state;
11868 ++#endif
11869 ++#ifdef __cplusplus
11870 ++}
11871 + #endif
11872
11873 +-; return 0; }
11874 +-EOF
11875 +-if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11876 +-  rm -rf conftest*
11877 +-  eval "ac_cv_func_malloc_set_state=yes"
11878 +-else
11879 +-  echo "configure: failed program was:" >&5
11880 +-  cat conftest.$ac_ext >&5
11881 +-  rm -rf conftest*
11882 +-  eval "ac_cv_func_malloc_set_state=no"
11883 +-fi
11884 +-rm -f conftest*
11885 +-fi
11886 +-
11887 +-if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
11888 +-  echo "$ac_t""yes" 1>&6
11889 ++int
11890 ++main ()
11891 ++{
11892 ++return f != malloc_set_state;
11893 ++  ;
11894 ++  return 0;
11895 ++}
11896 ++_ACEOF
11897 ++rm -f conftest.$ac_objext conftest$ac_exeext
11898 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11899 ++  (eval $ac_link) 2>conftest.er1
11900 ++  ac_status=$?
11901 ++  grep -v '^ *+' conftest.er1 >conftest.err
11902 ++  rm -f conftest.er1
11903 ++  cat conftest.err >&5
11904 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 ++  (exit $ac_status); } &&
11906 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11907 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 ++  (eval $ac_try) 2>&5
11909 ++  ac_status=$?
11910 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 ++  (exit $ac_status); }; } &&
11912 ++       { ac_try='test -s conftest$ac_exeext'
11913 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 ++  (eval $ac_try) 2>&5
11915 ++  ac_status=$?
11916 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 ++  (exit $ac_status); }; }; then
11918 ++  ac_cv_func_malloc_set_state=yes
11919 ++else
11920 ++  echo "$as_me: failed program was:" >&5
11921 ++sed 's/^/| /' conftest.$ac_ext >&5
11922 ++
11923 ++ac_cv_func_malloc_set_state=no
11924 ++fi
11925 ++rm -f conftest.err conftest.$ac_objext \
11926 ++      conftest$ac_exeext conftest.$ac_ext
11927 ++fi
11928 ++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
11929 ++echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
11930 ++if test $ac_cv_func_malloc_set_state = yes; then
11931 +   :
11932 + else
11933 +-  echo "$ac_t""no" 1>&6
11934 +-doug_lea_malloc=no
11935 ++  doug_lea_malloc=no
11936 + fi
11937
11938 +-echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
11939 +-echo "configure:4010: checking whether __after_morecore_hook exists" >&5
11940 +-if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
11941 +-  echo $ac_n "(cached) $ac_c" 1>&6
11942 +-else
11943 +-  cat > conftest.$ac_ext <<EOF
11944 +-#line 4015 "configure"
11945 +-#include "confdefs.h"
11946 ++echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
11947 ++echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
11948 ++if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
11949 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ++else
11951 ++  cat >conftest.$ac_ext <<_ACEOF
11952 ++/* confdefs.h.  */
11953 ++_ACEOF
11954 ++cat confdefs.h >>conftest.$ac_ext
11955 ++cat >>conftest.$ac_ext <<_ACEOF
11956 ++/* end confdefs.h.  */
11957 + extern void (* __after_morecore_hook)();
11958 +-int main() {
11959 ++int
11960 ++main ()
11961 ++{
11962 + __after_morecore_hook = 0
11963 +-; return 0; }
11964 +-EOF
11965 +-if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11966 +-  rm -rf conftest*
11967 ++  ;
11968 ++  return 0;
11969 ++}
11970 ++_ACEOF
11971 ++rm -f conftest.$ac_objext conftest$ac_exeext
11972 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973 ++  (eval $ac_link) 2>conftest.er1
11974 ++  ac_status=$?
11975 ++  grep -v '^ *+' conftest.er1 >conftest.err
11976 ++  rm -f conftest.er1
11977 ++  cat conftest.err >&5
11978 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 ++  (exit $ac_status); } &&
11980 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11981 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 ++  (eval $ac_try) 2>&5
11983 ++  ac_status=$?
11984 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 ++  (exit $ac_status); }; } &&
11986 ++       { ac_try='test -s conftest$ac_exeext'
11987 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 ++  (eval $ac_try) 2>&5
11989 ++  ac_status=$?
11990 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 ++  (exit $ac_status); }; }; then
11992 +   emacs_cv_var___after_morecore_hook=yes
11993 + else
11994 +-  echo "configure: failed program was:" >&5
11995 +-  cat conftest.$ac_ext >&5
11996 +-  rm -rf conftest*
11997 +-  emacs_cv_var___after_morecore_hook=no
11998 ++  echo "$as_me: failed program was:" >&5
11999 ++sed 's/^/| /' conftest.$ac_ext >&5
12000 ++
12001 ++emacs_cv_var___after_morecore_hook=no
12002 + fi
12003 +-rm -f conftest*
12004 ++rm -f conftest.err conftest.$ac_objext \
12005 ++      conftest$ac_exeext conftest.$ac_ext
12006 + fi
12007 +-
12008 +-echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
12009 ++echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
12010 ++echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
12011 + if test $emacs_cv_var___after_morecore_hook = no; then
12012 +   doug_lea_malloc=no
12013 + fi
12014 +@@ -4044,9 +7116,9 @@
12015 +     GNU_MALLOC_reason="
12016 +       (Using Doug Lea's new malloc from the GNU C Library.)"
12017 +   fi
12018 +-  cat >> confdefs.h <<\EOF
12019 ++  cat >>confdefs.h <<\_ACEOF
12020 + #define DOUG_LEA_MALLOC 1
12021 +-EOF
12022 ++_ACEOF
12023
12024 + fi
12025
12026 +@@ -4055,112 +7127,275 @@
12027 + fi
12028
12029
12030 +-for ac_hdr in stdlib.h unistd.h sys/stat.h
12031 ++
12032 ++
12033 ++for ac_header in stdlib.h unistd.h
12034 + do
12035 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12036 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12037 +-echo "configure:4063: checking for $ac_hdr" >&5
12038 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12039 +-  echo $ac_n "(cached) $ac_c" 1>&6
12040 +-else
12041 +-  cat > conftest.$ac_ext <<EOF
12042 +-#line 4068 "configure"
12043 +-#include "confdefs.h"
12044 +-#include <$ac_hdr>
12045 +-EOF
12046 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12047 +-{ (eval echo configure:4073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12048 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12049 +-if test -z "$ac_err"; then
12050 +-  rm -rf conftest*
12051 +-  eval "ac_cv_header_$ac_safe=yes"
12052 +-else
12053 +-  echo "$ac_err" >&5
12054 +-  echo "configure: failed program was:" >&5
12055 +-  cat conftest.$ac_ext >&5
12056 +-  rm -rf conftest*
12057 +-  eval "ac_cv_header_$ac_safe=no"
12058 +-fi
12059 +-rm -f conftest*
12060 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12064 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12065 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12066 ++fi
12067 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12069 ++else
12070 ++  # Is the header compilable?
12071 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
12072 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12073 ++cat >conftest.$ac_ext <<_ACEOF
12074 ++/* confdefs.h.  */
12075 ++_ACEOF
12076 ++cat confdefs.h >>conftest.$ac_ext
12077 ++cat >>conftest.$ac_ext <<_ACEOF
12078 ++/* end confdefs.h.  */
12079 ++$ac_includes_default
12080 ++#include <$ac_header>
12081 ++_ACEOF
12082 ++rm -f conftest.$ac_objext
12083 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 ++  (eval $ac_compile) 2>conftest.er1
12085 ++  ac_status=$?
12086 ++  grep -v '^ *+' conftest.er1 >conftest.err
12087 ++  rm -f conftest.er1
12088 ++  cat conftest.err >&5
12089 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 ++  (exit $ac_status); } &&
12091 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12092 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 ++  (eval $ac_try) 2>&5
12094 ++  ac_status=$?
12095 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 ++  (exit $ac_status); }; } &&
12097 ++       { ac_try='test -s conftest.$ac_objext'
12098 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 ++  (eval $ac_try) 2>&5
12100 ++  ac_status=$?
12101 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 ++  (exit $ac_status); }; }; then
12103 ++  ac_header_compiler=yes
12104 ++else
12105 ++  echo "$as_me: failed program was:" >&5
12106 ++sed 's/^/| /' conftest.$ac_ext >&5
12107 ++
12108 ++ac_header_compiler=no
12109 ++fi
12110 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12111 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12112 ++echo "${ECHO_T}$ac_header_compiler" >&6
12113 ++
12114 ++# Is the header present?
12115 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
12116 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12117 ++cat >conftest.$ac_ext <<_ACEOF
12118 ++/* confdefs.h.  */
12119 ++_ACEOF
12120 ++cat confdefs.h >>conftest.$ac_ext
12121 ++cat >>conftest.$ac_ext <<_ACEOF
12122 ++/* end confdefs.h.  */
12123 ++#include <$ac_header>
12124 ++_ACEOF
12125 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12126 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12127 ++  ac_status=$?
12128 ++  grep -v '^ *+' conftest.er1 >conftest.err
12129 ++  rm -f conftest.er1
12130 ++  cat conftest.err >&5
12131 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 ++  (exit $ac_status); } >/dev/null; then
12133 ++  if test -s conftest.err; then
12134 ++    ac_cpp_err=$ac_c_preproc_warn_flag
12135 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12136 ++  else
12137 ++    ac_cpp_err=
12138 ++  fi
12139 ++else
12140 ++  ac_cpp_err=yes
12141 + fi
12142 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 +-  echo "$ac_t""yes" 1>&6
12144 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12145 +-  cat >> confdefs.h <<EOF
12146 +-#define $ac_tr_hdr 1
12147 +-EOF
12148 +- 
12149 ++if test -z "$ac_cpp_err"; then
12150 ++  ac_header_preproc=yes
12151 + else
12152 +-  echo "$ac_t""no" 1>&6
12153 ++  echo "$as_me: failed program was:" >&5
12154 ++sed 's/^/| /' conftest.$ac_ext >&5
12155 ++
12156 ++  ac_header_preproc=no
12157 ++fi
12158 ++rm -f conftest.err conftest.$ac_ext
12159 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 ++echo "${ECHO_T}$ac_header_preproc" >&6
12161 ++
12162 ++# So?  What about this header?
12163 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164 ++  yes:no: )
12165 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ++    ac_header_preproc=yes
12170 ++    ;;
12171 ++  no:yes:* )
12172 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12175 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12176 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12179 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12180 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184 ++    (
12185 ++      cat <<\_ASBOX
12186 ++## ------------------------------------------ ##
12187 ++## Report this to the AC_PACKAGE_NAME lists.  ##
12188 ++## ------------------------------------------ ##
12189 ++_ASBOX
12190 ++    ) |
12191 ++      sed "s/^/$as_me: WARNING:     /" >&2
12192 ++    ;;
12193 ++esac
12194 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12196 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
12197 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12198 ++else
12199 ++  eval "$as_ac_Header=\$ac_header_preproc"
12200 ++fi
12201 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12202 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12203 ++
12204 ++fi
12205 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 ++  cat >>confdefs.h <<_ACEOF
12207 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 ++_ACEOF
12209 ++
12210 + fi
12211 ++
12212 + done
12213
12214 ++
12215 + for ac_func in getpagesize
12216 + do
12217 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12218 +-echo "configure:4102: checking for $ac_func" >&5
12219 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12220 +-  echo $ac_n "(cached) $ac_c" 1>&6
12221 +-else
12222 +-  cat > conftest.$ac_ext <<EOF
12223 +-#line 4107 "configure"
12224 +-#include "confdefs.h"
12225 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
12227 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12228 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
12229 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12230 ++else
12231 ++  cat >conftest.$ac_ext <<_ACEOF
12232 ++/* confdefs.h.  */
12233 ++_ACEOF
12234 ++cat confdefs.h >>conftest.$ac_ext
12235 ++cat >>conftest.$ac_ext <<_ACEOF
12236 ++/* end confdefs.h.  */
12237 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12238 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12239 ++#define $ac_func innocuous_$ac_func
12240 ++
12241 + /* System header to define __stub macros and hopefully few prototypes,
12242 +-    which can conflict with char $ac_func(); below.  */
12243 +-#include <assert.h>
12244 +-/* Override any gcc2 internal prototype to avoid an error.  */
12245 +-/* We use char because int might match the return type of a gcc2
12246 +-    builtin and then its argument prototype would still apply.  */
12247 +-char $ac_func();
12248 ++    which can conflict with char $ac_func (); below.
12249 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12250 ++    <limits.h> exists even on freestanding compilers.  */
12251 ++
12252 ++#ifdef __STDC__
12253 ++# include <limits.h>
12254 ++#else
12255 ++# include <assert.h>
12256 ++#endif
12257
12258 +-int main() {
12259 ++#undef $ac_func
12260
12261 ++/* Override any gcc2 internal prototype to avoid an error.  */
12262 ++#ifdef __cplusplus
12263 ++extern "C"
12264 ++{
12265 ++#endif
12266 ++/* We use char because int might match the return type of a gcc2
12267 ++   builtin and then its argument prototype would still apply.  */
12268 ++char $ac_func ();
12269 + /* The GNU C library defines this for functions which it implements
12270 +     to always fail with ENOSYS.  Some functions are actually named
12271 +     something starting with __ and the normal name is an alias.  */
12272 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12273 + choke me
12274 + #else
12275 +-$ac_func();
12276 ++char (*f) () = $ac_func;
12277 ++#endif
12278 ++#ifdef __cplusplus
12279 ++}
12280 + #endif
12281
12282 +-; return 0; }
12283 +-EOF
12284 +-if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12285 +-  rm -rf conftest*
12286 +-  eval "ac_cv_func_$ac_func=yes"
12287 +-else
12288 +-  echo "configure: failed program was:" >&5
12289 +-  cat conftest.$ac_ext >&5
12290 +-  rm -rf conftest*
12291 +-  eval "ac_cv_func_$ac_func=no"
12292 +-fi
12293 +-rm -f conftest*
12294 +-fi
12295 ++int
12296 ++main ()
12297 ++{
12298 ++return f != $ac_func;
12299 ++  ;
12300 ++  return 0;
12301 ++}
12302 ++_ACEOF
12303 ++rm -f conftest.$ac_objext conftest$ac_exeext
12304 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 ++  (eval $ac_link) 2>conftest.er1
12306 ++  ac_status=$?
12307 ++  grep -v '^ *+' conftest.er1 >conftest.err
12308 ++  rm -f conftest.er1
12309 ++  cat conftest.err >&5
12310 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 ++  (exit $ac_status); } &&
12312 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12313 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 ++  (eval $ac_try) 2>&5
12315 ++  ac_status=$?
12316 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 ++  (exit $ac_status); }; } &&
12318 ++       { ac_try='test -s conftest$ac_exeext'
12319 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 ++  (eval $ac_try) 2>&5
12321 ++  ac_status=$?
12322 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 ++  (exit $ac_status); }; }; then
12324 ++  eval "$as_ac_var=yes"
12325 ++else
12326 ++  echo "$as_me: failed program was:" >&5
12327 ++sed 's/^/| /' conftest.$ac_ext >&5
12328 ++
12329 ++eval "$as_ac_var=no"
12330 ++fi
12331 ++rm -f conftest.err conftest.$ac_objext \
12332 ++      conftest$ac_exeext conftest.$ac_ext
12333 ++fi
12334 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12335 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12336 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
12337 ++  cat >>confdefs.h <<_ACEOF
12338 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12339 ++_ACEOF
12340
12341 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12342 +-  echo "$ac_t""yes" 1>&6
12343 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12344 +-  cat >> confdefs.h <<EOF
12345 +-#define $ac_tr_func 1
12346 +-EOF
12347 +- 
12348 +-else
12349 +-  echo "$ac_t""no" 1>&6
12350 + fi
12351 + done
12352
12353 +-echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12354 +-echo "configure:4155: checking for working mmap" >&5
12355 +-if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
12356 +-  echo $ac_n "(cached) $ac_c" 1>&6
12357 ++echo "$as_me:$LINENO: checking for working mmap" >&5
12358 ++echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12359 ++if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12360 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12361 + else
12362 +   if test "$cross_compiling" = yes; then
12363 +   ac_cv_func_mmap_fixed_mapped=no
12364 + else
12365 +-  cat > conftest.$ac_ext <<EOF
12366 +-#line 4163 "configure"
12367 +-#include "confdefs.h"
12368 ++  cat >conftest.$ac_ext <<_ACEOF
12369 ++/* confdefs.h.  */
12370 ++_ACEOF
12371 ++cat confdefs.h >>conftest.$ac_ext
12372 ++cat >>conftest.$ac_ext <<_ACEOF
12373 ++/* end confdefs.h.  */
12374 ++$ac_includes_default
12375 ++/* malloc might have been renamed as rpl_malloc. */
12376 ++#undef malloc
12377 ++
12378 + /* Thanks to Mike Haertel and Jim Avera for this test.
12379 +    Here is a matrix of mmap possibilities:
12380 +       mmap private not fixed
12381 +@@ -4176,27 +7411,19 @@
12382 +    VM page cache was not coherent with the file system buffer cache
12383 +    like early versions of FreeBSD and possibly contemporary NetBSD.)
12384 +    For shared mappings, we should conversely verify that changes get
12385 +-   propogated back to all the places they're supposed to be.
12386 ++   propagated back to all the places they're supposed to be.
12387
12388 +    Grep wants private fixed already mapped.
12389 +    The main things grep needs to know about mmap are:
12390 +    * does it exist and is it safe to write into the mmap'd area
12391 +    * how to use it (BSD variants)  */
12392 +-#include <sys/types.h>
12393 ++
12394 + #include <fcntl.h>
12395 + #include <sys/mman.h>
12396
12397 +-#if STDC_HEADERS || HAVE_STDLIB_H
12398 +-# include <stdlib.h>
12399 +-#else
12400 ++#if !STDC_HEADERS && !HAVE_STDLIB_H
12401 + char *malloc ();
12402 + #endif
12403 +-#if HAVE_UNISTD_H
12404 +-# include <unistd.h>
12405 +-#endif
12406 +-#if HAVE_SYS_STAT_H
12407 +-# include <sys/stat.h>
12408 +-#endif
12409
12410 + /* This mess was copied from the GNU getpagesize.h.  */
12411 + #if !HAVE_GETPAGESIZE
12412 +@@ -4251,7 +7478,7 @@
12413 +   for (i = 0; i < pagesize; ++i)
12414 +     *(data + i) = rand ();
12415 +   umask (0);
12416 +-  fd = creat ("conftestmmap", 0600);
12417 ++  fd = creat ("conftest.mmap", 0600);
12418 +   if (fd < 0)
12419 +     exit (1);
12420 +   if (write (fd, data, pagesize) != pagesize)
12421 +@@ -4261,15 +7488,15 @@
12422 +   /* Next, try to mmap the file at a fixed address which already has
12423 +      something else allocated at it.  If we can, also make sure that
12424 +      we see the same garbage.  */
12425 +-  fd = open ("conftestmmap", O_RDWR);
12426 ++  fd = open ("conftest.mmap", O_RDWR);
12427 +   if (fd < 0)
12428 +     exit (1);
12429 +   data2 = (char *) malloc (2 * pagesize);
12430 +   if (!data2)
12431 +     exit (1);
12432 +-  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12433 ++  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12434 +   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12435 +-                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
12436 ++                   MAP_PRIVATE | MAP_FIXED, fd, 0L))
12437 +     exit (1);
12438 +   for (i = 0; i < pagesize; ++i)
12439 +     if (*(data + i) != *(data2 + i))
12440 +@@ -4289,31 +7516,42 @@
12441 +     if (*(data + i) != *(data3 + i))
12442 +       exit (1);
12443 +   close (fd);
12444 +-  unlink ("conftestmmap");
12445 +   exit (0);
12446 + }
12447 +-EOF
12448 +-if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12449 +-then
12450 ++_ACEOF
12451 ++rm -f conftest$ac_exeext
12452 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 ++  (eval $ac_link) 2>&5
12454 ++  ac_status=$?
12455 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12457 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 ++  (eval $ac_try) 2>&5
12459 ++  ac_status=$?
12460 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 ++  (exit $ac_status); }; }; then
12462 +   ac_cv_func_mmap_fixed_mapped=yes
12463 + else
12464 +-  echo "configure: failed program was:" >&5
12465 +-  cat conftest.$ac_ext >&5
12466 +-  rm -fr conftest*
12467 +-  ac_cv_func_mmap_fixed_mapped=no
12468 ++  echo "$as_me: program exited with status $ac_status" >&5
12469 ++echo "$as_me: failed program was:" >&5
12470 ++sed 's/^/| /' conftest.$ac_ext >&5
12471 ++
12472 ++( exit $ac_status )
12473 ++ac_cv_func_mmap_fixed_mapped=no
12474 + fi
12475 +-rm -fr conftest*
12476 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12477 + fi
12478 +-
12479 + fi
12480 +-
12481 +-echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
12482 ++echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12483 ++echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12484 + if test $ac_cv_func_mmap_fixed_mapped = yes; then
12485 +-  cat >> confdefs.h <<\EOF
12486 ++
12487 ++cat >>confdefs.h <<\_ACEOF
12488 + #define HAVE_MMAP 1
12489 +-EOF
12490 ++_ACEOF
12491
12492 + fi
12493 ++rm -f conftest.mmap
12494
12495 + if test $use_mmap_for_buffers = yes; then
12496 +   REL_ALLOC=no
12497 +@@ -4321,185 +7559,291 @@
12498
12499 + LIBS="$libsrc_libs $LIBS"
12500
12501 +-echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12502 +-echo "configure:4326: checking for dnet_ntoa in -ldnet" >&5
12503 +-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12504 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12505 +-  echo $ac_n "(cached) $ac_c" 1>&6
12506 ++
12507 ++echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
12508 ++echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12509 ++if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12510 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12511 + else
12512 +-  ac_save_LIBS="$LIBS"
12513 ++  ac_check_lib_save_LIBS=$LIBS
12514 + LIBS="-ldnet  $LIBS"
12515 +-cat > conftest.$ac_ext <<EOF
12516 +-#line 4334 "configure"
12517 +-#include "confdefs.h"
12518 +-/* Override any gcc2 internal prototype to avoid an error.  */
12519 +-/* We use char because int might match the return type of a gcc2
12520 +-    builtin and then its argument prototype would still apply.  */
12521 +-char dnet_ntoa();
12522 +-
12523 +-int main() {
12524 +-dnet_ntoa()
12525 +-; return 0; }
12526 +-EOF
12527 +-if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 +-  rm -rf conftest*
12529 +-  eval "ac_cv_lib_$ac_lib_var=yes"
12530 +-else
12531 +-  echo "configure: failed program was:" >&5
12532 +-  cat conftest.$ac_ext >&5
12533 +-  rm -rf conftest*
12534 +-  eval "ac_cv_lib_$ac_lib_var=no"
12535 +-fi
12536 +-rm -f conftest*
12537 +-LIBS="$ac_save_LIBS"
12538 ++cat >conftest.$ac_ext <<_ACEOF
12539 ++/* confdefs.h.  */
12540 ++_ACEOF
12541 ++cat confdefs.h >>conftest.$ac_ext
12542 ++cat >>conftest.$ac_ext <<_ACEOF
12543 ++/* end confdefs.h.  */
12544
12545 +-fi
12546 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12547 +-  echo "$ac_t""yes" 1>&6
12548 +-    ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12549 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12550 +-  cat >> confdefs.h <<EOF
12551 +-#define $ac_tr_lib 1
12552 +-EOF
12553 ++/* Override any gcc2 internal prototype to avoid an error.  */
12554 ++#ifdef __cplusplus
12555 ++extern "C"
12556 ++#endif
12557 ++/* We use char because int might match the return type of a gcc2
12558 ++   builtin and then its argument prototype would still apply.  */
12559 ++char dnet_ntoa ();
12560 ++int
12561 ++main ()
12562 ++{
12563 ++dnet_ntoa ();
12564 ++  ;
12565 ++  return 0;
12566 ++}
12567 ++_ACEOF
12568 ++rm -f conftest.$ac_objext conftest$ac_exeext
12569 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 ++  (eval $ac_link) 2>conftest.er1
12571 ++  ac_status=$?
12572 ++  grep -v '^ *+' conftest.er1 >conftest.err
12573 ++  rm -f conftest.er1
12574 ++  cat conftest.err >&5
12575 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 ++  (exit $ac_status); } &&
12577 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12578 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 ++  (eval $ac_try) 2>&5
12580 ++  ac_status=$?
12581 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 ++  (exit $ac_status); }; } &&
12583 ++       { ac_try='test -s conftest$ac_exeext'
12584 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 ++  (eval $ac_try) 2>&5
12586 ++  ac_status=$?
12587 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 ++  (exit $ac_status); }; }; then
12589 ++  ac_cv_lib_dnet_dnet_ntoa=yes
12590 ++else
12591 ++  echo "$as_me: failed program was:" >&5
12592 ++sed 's/^/| /' conftest.$ac_ext >&5
12593 ++
12594 ++ac_cv_lib_dnet_dnet_ntoa=no
12595 ++fi
12596 ++rm -f conftest.err conftest.$ac_objext \
12597 ++      conftest$ac_exeext conftest.$ac_ext
12598 ++LIBS=$ac_check_lib_save_LIBS
12599 ++fi
12600 ++echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12601 ++echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12602 ++if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12603 ++  cat >>confdefs.h <<_ACEOF
12604 ++#define HAVE_LIBDNET 1
12605 ++_ACEOF
12606
12607 +   LIBS="-ldnet $LIBS"
12608
12609 +-else
12610 +-  echo "$ac_t""no" 1>&6
12611 + fi
12612
12613
12614 +-echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
12615 +-echo "configure:4374: checking for main in -lXbsd" >&5
12616 +-ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
12617 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12618 +-  echo $ac_n "(cached) $ac_c" 1>&6
12619 ++echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
12620 ++echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
12621 ++if test "${ac_cv_lib_Xbsd_main+set}" = set; then
12622 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12623 + else
12624 +-  ac_save_LIBS="$LIBS"
12625 ++  ac_check_lib_save_LIBS=$LIBS
12626 + LIBS="-lXbsd  $LIBS"
12627 +-cat > conftest.$ac_ext <<EOF
12628 +-#line 4382 "configure"
12629 +-#include "confdefs.h"
12630 ++cat >conftest.$ac_ext <<_ACEOF
12631 ++/* confdefs.h.  */
12632 ++_ACEOF
12633 ++cat confdefs.h >>conftest.$ac_ext
12634 ++cat >>conftest.$ac_ext <<_ACEOF
12635 ++/* end confdefs.h.  */
12636
12637 +-int main() {
12638 +-main()
12639 +-; return 0; }
12640 +-EOF
12641 +-if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12642 +-  rm -rf conftest*
12643 +-  eval "ac_cv_lib_$ac_lib_var=yes"
12644 +-else
12645 +-  echo "configure: failed program was:" >&5
12646 +-  cat conftest.$ac_ext >&5
12647 +-  rm -rf conftest*
12648 +-  eval "ac_cv_lib_$ac_lib_var=no"
12649 +-fi
12650 +-rm -f conftest*
12651 +-LIBS="$ac_save_LIBS"
12652
12653 +-fi
12654 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12655 +-  echo "$ac_t""yes" 1>&6
12656 ++int
12657 ++main ()
12658 ++{
12659 ++main ();
12660 ++  ;
12661 ++  return 0;
12662 ++}
12663 ++_ACEOF
12664 ++rm -f conftest.$ac_objext conftest$ac_exeext
12665 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 ++  (eval $ac_link) 2>conftest.er1
12667 ++  ac_status=$?
12668 ++  grep -v '^ *+' conftest.er1 >conftest.err
12669 ++  rm -f conftest.er1
12670 ++  cat conftest.err >&5
12671 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 ++  (exit $ac_status); } &&
12673 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12674 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 ++  (eval $ac_try) 2>&5
12676 ++  ac_status=$?
12677 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 ++  (exit $ac_status); }; } &&
12679 ++       { ac_try='test -s conftest$ac_exeext'
12680 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 ++  (eval $ac_try) 2>&5
12682 ++  ac_status=$?
12683 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 ++  (exit $ac_status); }; }; then
12685 ++  ac_cv_lib_Xbsd_main=yes
12686 ++else
12687 ++  echo "$as_me: failed program was:" >&5
12688 ++sed 's/^/| /' conftest.$ac_ext >&5
12689 ++
12690 ++ac_cv_lib_Xbsd_main=no
12691 ++fi
12692 ++rm -f conftest.err conftest.$ac_objext \
12693 ++      conftest$ac_exeext conftest.$ac_ext
12694 ++LIBS=$ac_check_lib_save_LIBS
12695 ++fi
12696 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
12697 ++echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
12698 ++if test $ac_cv_lib_Xbsd_main = yes; then
12699 +   LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
12700 +-else
12701 +-  echo "$ac_t""no" 1>&6
12702 + fi
12703
12704
12705 +-echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
12706 +-echo "configure:4411: checking for cma_open in -lpthreads" >&5
12707 +-ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
12708 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12709 +-  echo $ac_n "(cached) $ac_c" 1>&6
12710 ++
12711 ++echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
12712 ++echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
12713 ++if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
12714 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12715 + else
12716 +-  ac_save_LIBS="$LIBS"
12717 ++  ac_check_lib_save_LIBS=$LIBS
12718 + LIBS="-lpthreads  $LIBS"
12719 +-cat > conftest.$ac_ext <<EOF
12720 +-#line 4419 "configure"
12721 +-#include "confdefs.h"
12722 +-/* Override any gcc2 internal prototype to avoid an error.  */
12723 +-/* We use char because int might match the return type of a gcc2
12724 +-    builtin and then its argument prototype would still apply.  */
12725 +-char cma_open();
12726 +-
12727 +-int main() {
12728 +-cma_open()
12729 +-; return 0; }
12730 +-EOF
12731 +-if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12732 +-  rm -rf conftest*
12733 +-  eval "ac_cv_lib_$ac_lib_var=yes"
12734 +-else
12735 +-  echo "configure: failed program was:" >&5
12736 +-  cat conftest.$ac_ext >&5
12737 +-  rm -rf conftest*
12738 +-  eval "ac_cv_lib_$ac_lib_var=no"
12739 +-fi
12740 +-rm -f conftest*
12741 +-LIBS="$ac_save_LIBS"
12742 ++cat >conftest.$ac_ext <<_ACEOF
12743 ++/* confdefs.h.  */
12744 ++_ACEOF
12745 ++cat confdefs.h >>conftest.$ac_ext
12746 ++cat >>conftest.$ac_ext <<_ACEOF
12747 ++/* end confdefs.h.  */
12748
12749 +-fi
12750 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12751 +-  echo "$ac_t""yes" 1>&6
12752 +-    ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12753 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12754 +-  cat >> confdefs.h <<EOF
12755 +-#define $ac_tr_lib 1
12756 +-EOF
12757 ++/* Override any gcc2 internal prototype to avoid an error.  */
12758 ++#ifdef __cplusplus
12759 ++extern "C"
12760 ++#endif
12761 ++/* We use char because int might match the return type of a gcc2
12762 ++   builtin and then its argument prototype would still apply.  */
12763 ++char cma_open ();
12764 ++int
12765 ++main ()
12766 ++{
12767 ++cma_open ();
12768 ++  ;
12769 ++  return 0;
12770 ++}
12771 ++_ACEOF
12772 ++rm -f conftest.$ac_objext conftest$ac_exeext
12773 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 ++  (eval $ac_link) 2>conftest.er1
12775 ++  ac_status=$?
12776 ++  grep -v '^ *+' conftest.er1 >conftest.err
12777 ++  rm -f conftest.er1
12778 ++  cat conftest.err >&5
12779 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 ++  (exit $ac_status); } &&
12781 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12782 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 ++  (eval $ac_try) 2>&5
12784 ++  ac_status=$?
12785 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 ++  (exit $ac_status); }; } &&
12787 ++       { ac_try='test -s conftest$ac_exeext'
12788 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 ++  (eval $ac_try) 2>&5
12790 ++  ac_status=$?
12791 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 ++  (exit $ac_status); }; }; then
12793 ++  ac_cv_lib_pthreads_cma_open=yes
12794 ++else
12795 ++  echo "$as_me: failed program was:" >&5
12796 ++sed 's/^/| /' conftest.$ac_ext >&5
12797 ++
12798 ++ac_cv_lib_pthreads_cma_open=no
12799 ++fi
12800 ++rm -f conftest.err conftest.$ac_objext \
12801 ++      conftest$ac_exeext conftest.$ac_ext
12802 ++LIBS=$ac_check_lib_save_LIBS
12803 ++fi
12804 ++echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
12805 ++echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
12806 ++if test $ac_cv_lib_pthreads_cma_open = yes; then
12807 ++  cat >>confdefs.h <<_ACEOF
12808 ++#define HAVE_LIBPTHREADS 1
12809 ++_ACEOF
12810
12811 +   LIBS="-lpthreads $LIBS"
12812
12813 +-else
12814 +-  echo "$ac_t""no" 1>&6
12815 + fi
12816
12817
12818 +-echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
12819 +-echo "configure:4459: checking for XFree86 in /usr/X386" >&5
12820 ++echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
12821 ++echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
12822 + if test -d /usr/X386/include; then
12823 +   HAVE_XFREE386=yes
12824 +   : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
12825 + else
12826 +   HAVE_XFREE386=no
12827 + fi
12828 +-echo "$ac_t""$HAVE_XFREE386" 1>&6
12829 ++echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
12830 ++echo "${ECHO_T}$HAVE_XFREE386" >&6
12831
12832
12833 + case ${host_os} in
12834 + aix*)
12835 +-  echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
12836 +-echo "configure:4472: checking for -bbigtoc option" >&5
12837 +-if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
12838 +-  echo $ac_n "(cached) $ac_c" 1>&6
12839 ++  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
12840 ++echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
12841 ++if test "${gdb_cv_bigtoc+set}" = set; then
12842 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
12843 + else
12844 +-  
12845 ++
12846 +     case $GCC in
12847 +     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12848 +     *) gdb_cv_bigtoc=-bbigtoc ;;
12849 +     esac
12850
12851 +     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12852 +-    cat > conftest.$ac_ext <<EOF
12853 +-#line 4484 "configure"
12854 +-#include "confdefs.h"
12855 ++    cat >conftest.$ac_ext <<_ACEOF
12856 ++/* confdefs.h.  */
12857 ++_ACEOF
12858 ++cat confdefs.h >>conftest.$ac_ext
12859 ++cat >>conftest.$ac_ext <<_ACEOF
12860 ++/* end confdefs.h.  */
12861
12862 +-int main() {
12863 ++int
12864 ++main ()
12865 ++{
12866 + int i;
12867 +-; return 0; }
12868 +-EOF
12869 +-if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12870 ++  ;
12871 ++  return 0;
12872 ++}
12873 ++_ACEOF
12874 ++rm -f conftest.$ac_objext conftest$ac_exeext
12875 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 ++  (eval $ac_link) 2>conftest.er1
12877 ++  ac_status=$?
12878 ++  grep -v '^ *+' conftest.er1 >conftest.err
12879 ++  rm -f conftest.er1
12880 ++  cat conftest.err >&5
12881 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 ++  (exit $ac_status); } &&
12883 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12884 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 ++  (eval $ac_try) 2>&5
12886 ++  ac_status=$?
12887 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 ++  (exit $ac_status); }; } &&
12889 ++       { ac_try='test -s conftest$ac_exeext'
12890 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 ++  (eval $ac_try) 2>&5
12892 ++  ac_status=$?
12893 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 ++  (exit $ac_status); }; }; then
12895 +   :
12896 + else
12897 +-  echo "configure: failed program was:" >&5
12898 +-  cat conftest.$ac_ext >&5
12899 +-  rm -rf conftest*
12900 +-  gdb_cv_bigtoc=
12901 +-fi
12902 +-rm -f conftest*
12903 +-  
12904 ++  echo "$as_me: failed program was:" >&5
12905 ++sed 's/^/| /' conftest.$ac_ext >&5
12906 ++
12907 ++gdb_cv_bigtoc=
12908 + fi
12909 ++rm -f conftest.err conftest.$ac_objext \
12910 ++      conftest$ac_exeext conftest.$ac_ext
12911
12912 +-echo "$ac_t""$gdb_cv_bigtoc" 1>&6
12913 ++fi
12914 ++echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
12915 ++echo "${ECHO_T}$gdb_cv_bigtoc" >&6
12916 +   ;;
12917 + esac
12918
12919 +@@ -4525,26 +7869,53 @@
12920 +   fi
12921
12922 +   if test "${opsys}" = "gnu-linux"; then
12923 +-    echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
12924 +-echo "configure:4530: checking whether X on GNU/Linux needs -b to link" >&5
12925 +-    cat > conftest.$ac_ext <<EOF
12926 +-#line 4532 "configure"
12927 +-#include "confdefs.h"
12928 ++    echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
12929 ++echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
12930 ++    cat >conftest.$ac_ext <<_ACEOF
12931 ++/* confdefs.h.  */
12932 ++_ACEOF
12933 ++cat confdefs.h >>conftest.$ac_ext
12934 ++cat >>conftest.$ac_ext <<_ACEOF
12935 ++/* end confdefs.h.  */
12936
12937 +-int main() {
12938 ++int
12939 ++main ()
12940 ++{
12941 + XOpenDisplay ("foo");
12942 +-; return 0; }
12943 +-EOF
12944 +-if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12945 +-  rm -rf conftest*
12946 ++  ;
12947 ++  return 0;
12948 ++}
12949 ++_ACEOF
12950 ++rm -f conftest.$ac_objext conftest$ac_exeext
12951 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 ++  (eval $ac_link) 2>conftest.er1
12953 ++  ac_status=$?
12954 ++  grep -v '^ *+' conftest.er1 >conftest.err
12955 ++  rm -f conftest.er1
12956 ++  cat conftest.err >&5
12957 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 ++  (exit $ac_status); } &&
12959 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12960 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 ++  (eval $ac_try) 2>&5
12962 ++  ac_status=$?
12963 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 ++  (exit $ac_status); }; } &&
12965 ++       { ac_try='test -s conftest$ac_exeext'
12966 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 ++  (eval $ac_try) 2>&5
12968 ++  ac_status=$?
12969 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 ++  (exit $ac_status); }; }; then
12971 +   xlinux_first_failure=no
12972 + else
12973 +-  echo "configure: failed program was:" >&5
12974 +-  cat conftest.$ac_ext >&5
12975 +-  rm -rf conftest*
12976 +-  xlinux_first_failure=yes
12977 ++  echo "$as_me: failed program was:" >&5
12978 ++sed 's/^/| /' conftest.$ac_ext >&5
12979 ++
12980 ++xlinux_first_failure=yes
12981 + fi
12982 +-rm -f conftest*
12983 ++rm -f conftest.err conftest.$ac_objext \
12984 ++      conftest$ac_exeext conftest.$ac_ext
12985 +     if test "${xlinux_first_failure}" = "yes"; then
12986 +       OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
12987 +       OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
12988 +@@ -4554,24 +7925,51 @@
12989 +       C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
12990 +       CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
12991 +       LIBS="$LIBS -b i486-linuxaout"
12992 +-      cat > conftest.$ac_ext <<EOF
12993 +-#line 4559 "configure"
12994 +-#include "confdefs.h"
12995 ++      cat >conftest.$ac_ext <<_ACEOF
12996 ++/* confdefs.h.  */
12997 ++_ACEOF
12998 ++cat confdefs.h >>conftest.$ac_ext
12999 ++cat >>conftest.$ac_ext <<_ACEOF
13000 ++/* end confdefs.h.  */
13001
13002 +-int main() {
13003 ++int
13004 ++main ()
13005 ++{
13006 + XOpenDisplay ("foo");
13007 +-; return 0; }
13008 +-EOF
13009 +-if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 +-  rm -rf conftest*
13011 ++  ;
13012 ++  return 0;
13013 ++}
13014 ++_ACEOF
13015 ++rm -f conftest.$ac_objext conftest$ac_exeext
13016 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13017 ++  (eval $ac_link) 2>conftest.er1
13018 ++  ac_status=$?
13019 ++  grep -v '^ *+' conftest.er1 >conftest.err
13020 ++  rm -f conftest.er1
13021 ++  cat conftest.err >&5
13022 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 ++  (exit $ac_status); } &&
13024 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13025 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 ++  (eval $ac_try) 2>&5
13027 ++  ac_status=$?
13028 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 ++  (exit $ac_status); }; } &&
13030 ++       { ac_try='test -s conftest$ac_exeext'
13031 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 ++  (eval $ac_try) 2>&5
13033 ++  ac_status=$?
13034 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 ++  (exit $ac_status); }; }; then
13036 +   xlinux_second_failure=no
13037 + else
13038 +-  echo "configure: failed program was:" >&5
13039 +-  cat conftest.$ac_ext >&5
13040 +-  rm -rf conftest*
13041 +-  xlinux_second_failure=yes
13042 ++  echo "$as_me: failed program was:" >&5
13043 ++sed 's/^/| /' conftest.$ac_ext >&5
13044 ++
13045 ++xlinux_second_failure=yes
13046 + fi
13047 +-rm -f conftest*
13048 ++rm -f conftest.err conftest.$ac_objext \
13049 ++      conftest$ac_exeext conftest.$ac_ext
13050 +       if test "${xlinux_second_failure}" = "yes"; then
13051 +       # If we get the same failure with -b, there is no use adding -b.
13052 +       # So take it out.  This plays safe.
13053 +@@ -4579,220 +7977,387 @@
13054 +       C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
13055 +       CPPFLAGS="$OLD_CPPFLAGS"
13056 +       LIBS="$OLD_LIBS"
13057 +-        echo "$ac_t""no" 1>&6
13058 ++        echo "$as_me:$LINENO: result: no" >&5
13059 ++echo "${ECHO_T}no" >&6
13060 +       else
13061 +-        echo "$ac_t""yes" 1>&6
13062 ++        echo "$as_me:$LINENO: result: yes" >&5
13063 ++echo "${ECHO_T}yes" >&6
13064 +       fi
13065 +     else
13066 +-      echo "$ac_t""no" 1>&6
13067 ++      echo "$as_me:$LINENO: result: no" >&5
13068 ++echo "${ECHO_T}no" >&6
13069 +     fi
13070 +   fi
13071
13072 +   # Reportedly, some broken Solaris systems have XKBlib.h but are missing
13073 +   # header files included from there.
13074 +-  echo $ac_n "checking for Xkb""... $ac_c" 1>&6
13075 +-echo "configure:4595: checking for Xkb" >&5
13076 +-  cat > conftest.$ac_ext <<EOF
13077 +-#line 4597 "configure"
13078 +-#include "confdefs.h"
13079 ++  echo "$as_me:$LINENO: checking for Xkb" >&5
13080 ++echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
13081 ++  cat >conftest.$ac_ext <<_ACEOF
13082 ++/* confdefs.h.  */
13083 ++_ACEOF
13084 ++cat confdefs.h >>conftest.$ac_ext
13085 ++cat >>conftest.$ac_ext <<_ACEOF
13086 ++/* end confdefs.h.  */
13087 + #include <X11/Xlib.h>
13088 + #include <X11/XKBlib.h>
13089 +-int main() {
13090 ++int
13091 ++main ()
13092 ++{
13093 + XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
13094 +-; return 0; }
13095 +-EOF
13096 +-if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13097 +-  rm -rf conftest*
13098 ++  ;
13099 ++  return 0;
13100 ++}
13101 ++_ACEOF
13102 ++rm -f conftest.$ac_objext conftest$ac_exeext
13103 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13104 ++  (eval $ac_link) 2>conftest.er1
13105 ++  ac_status=$?
13106 ++  grep -v '^ *+' conftest.er1 >conftest.err
13107 ++  rm -f conftest.er1
13108 ++  cat conftest.err >&5
13109 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 ++  (exit $ac_status); } &&
13111 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13112 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 ++  (eval $ac_try) 2>&5
13114 ++  ac_status=$?
13115 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 ++  (exit $ac_status); }; } &&
13117 ++       { ac_try='test -s conftest$ac_exeext'
13118 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 ++  (eval $ac_try) 2>&5
13120 ++  ac_status=$?
13121 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 ++  (exit $ac_status); }; }; then
13123 +   emacs_xkb=yes
13124 + else
13125 +-  echo "configure: failed program was:" >&5
13126 +-  cat conftest.$ac_ext >&5
13127 +-  rm -rf conftest*
13128 +-  emacs_xkb=no
13129 ++  echo "$as_me: failed program was:" >&5
13130 ++sed 's/^/| /' conftest.$ac_ext >&5
13131 ++
13132 ++emacs_xkb=no
13133 + fi
13134 +-rm -f conftest*
13135 +-  echo "$ac_t""$emacs_xkb" 1>&6
13136 ++rm -f conftest.err conftest.$ac_objext \
13137 ++      conftest$ac_exeext conftest.$ac_ext
13138 ++  echo "$as_me:$LINENO: result: $emacs_xkb" >&5
13139 ++echo "${ECHO_T}$emacs_xkb" >&6
13140 +   if test $emacs_xkb = yes; then
13141 +-    cat >> confdefs.h <<\EOF
13142 ++    cat >>confdefs.h <<\_ACEOF
13143 + #define HAVE_XKBGETKEYBOARD 1
13144 +-EOF
13145 ++_ACEOF
13146
13147 +   fi
13148
13149 +-  for ac_func in XrmSetDatabase XScreenResourceString \
13150 ++
13151 ++
13152 ++
13153 ++
13154 ++for ac_func in XrmSetDatabase XScreenResourceString \
13155 + XScreenNumberOfScreen XSetWMProtocols
13156 + do
13157 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13158 +-echo "configure:4627: checking for $ac_func" >&5
13159 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13160 +-  echo $ac_n "(cached) $ac_c" 1>&6
13161 +-else
13162 +-  cat > conftest.$ac_ext <<EOF
13163 +-#line 4632 "configure"
13164 +-#include "confdefs.h"
13165 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13166 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
13167 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13168 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
13169 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13170 ++else
13171 ++  cat >conftest.$ac_ext <<_ACEOF
13172 ++/* confdefs.h.  */
13173 ++_ACEOF
13174 ++cat confdefs.h >>conftest.$ac_ext
13175 ++cat >>conftest.$ac_ext <<_ACEOF
13176 ++/* end confdefs.h.  */
13177 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13178 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13179 ++#define $ac_func innocuous_$ac_func
13180 ++
13181 + /* System header to define __stub macros and hopefully few prototypes,
13182 +-    which can conflict with char $ac_func(); below.  */
13183 +-#include <assert.h>
13184 +-/* Override any gcc2 internal prototype to avoid an error.  */
13185 +-/* We use char because int might match the return type of a gcc2
13186 +-    builtin and then its argument prototype would still apply.  */
13187 +-char $ac_func();
13188 ++    which can conflict with char $ac_func (); below.
13189 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 ++    <limits.h> exists even on freestanding compilers.  */
13191 ++
13192 ++#ifdef __STDC__
13193 ++# include <limits.h>
13194 ++#else
13195 ++# include <assert.h>
13196 ++#endif
13197
13198 +-int main() {
13199 ++#undef $ac_func
13200
13201 ++/* Override any gcc2 internal prototype to avoid an error.  */
13202 ++#ifdef __cplusplus
13203 ++extern "C"
13204 ++{
13205 ++#endif
13206 ++/* We use char because int might match the return type of a gcc2
13207 ++   builtin and then its argument prototype would still apply.  */
13208 ++char $ac_func ();
13209 + /* The GNU C library defines this for functions which it implements
13210 +     to always fail with ENOSYS.  Some functions are actually named
13211 +     something starting with __ and the normal name is an alias.  */
13212 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213 + choke me
13214 + #else
13215 +-$ac_func();
13216 ++char (*f) () = $ac_func;
13217 ++#endif
13218 ++#ifdef __cplusplus
13219 ++}
13220 + #endif
13221
13222 +-; return 0; }
13223 +-EOF
13224 +-if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13225 +-  rm -rf conftest*
13226 +-  eval "ac_cv_func_$ac_func=yes"
13227 +-else
13228 +-  echo "configure: failed program was:" >&5
13229 +-  cat conftest.$ac_ext >&5
13230 +-  rm -rf conftest*
13231 +-  eval "ac_cv_func_$ac_func=no"
13232 +-fi
13233 +-rm -f conftest*
13234 +-fi
13235 ++int
13236 ++main ()
13237 ++{
13238 ++return f != $ac_func;
13239 ++  ;
13240 ++  return 0;
13241 ++}
13242 ++_ACEOF
13243 ++rm -f conftest.$ac_objext conftest$ac_exeext
13244 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 ++  (eval $ac_link) 2>conftest.er1
13246 ++  ac_status=$?
13247 ++  grep -v '^ *+' conftest.er1 >conftest.err
13248 ++  rm -f conftest.er1
13249 ++  cat conftest.err >&5
13250 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 ++  (exit $ac_status); } &&
13252 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13253 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 ++  (eval $ac_try) 2>&5
13255 ++  ac_status=$?
13256 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 ++  (exit $ac_status); }; } &&
13258 ++       { ac_try='test -s conftest$ac_exeext'
13259 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 ++  (eval $ac_try) 2>&5
13261 ++  ac_status=$?
13262 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 ++  (exit $ac_status); }; }; then
13264 ++  eval "$as_ac_var=yes"
13265 ++else
13266 ++  echo "$as_me: failed program was:" >&5
13267 ++sed 's/^/| /' conftest.$ac_ext >&5
13268 ++
13269 ++eval "$as_ac_var=no"
13270 ++fi
13271 ++rm -f conftest.err conftest.$ac_objext \
13272 ++      conftest$ac_exeext conftest.$ac_ext
13273 ++fi
13274 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13275 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13276 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
13277 ++  cat >>confdefs.h <<_ACEOF
13278 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13279 ++_ACEOF
13280
13281 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13282 +-  echo "$ac_t""yes" 1>&6
13283 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13284 +-  cat >> confdefs.h <<EOF
13285 +-#define $ac_tr_func 1
13286 +-EOF
13287 +- 
13288 +-else
13289 +-  echo "$ac_t""no" 1>&6
13290 + fi
13291 + done
13292
13293 + fi
13294
13295 + if test "${window_system}" = "x11"; then
13296 +-  echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
13297 +-echo "configure:4683: checking X11 version 6" >&5
13298 +-  if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
13299 +-  echo $ac_n "(cached) $ac_c" 1>&6
13300 +-else
13301 +-  cat > conftest.$ac_ext <<EOF
13302 +-#line 4688 "configure"
13303 +-#include "confdefs.h"
13304 ++  echo "$as_me:$LINENO: checking X11 version 6" >&5
13305 ++echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
13306 ++  if test "${emacs_cv_x11_version_6+set}" = set; then
13307 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13308 ++else
13309 ++  cat >conftest.$ac_ext <<_ACEOF
13310 ++/* confdefs.h.  */
13311 ++_ACEOF
13312 ++cat confdefs.h >>conftest.$ac_ext
13313 ++cat >>conftest.$ac_ext <<_ACEOF
13314 ++/* end confdefs.h.  */
13315 + #include <X11/Xlib.h>
13316 +-int main() {
13317 ++int
13318 ++main ()
13319 ++{
13320 + #if XlibSpecificationRelease < 6
13321 + fail;
13322 + #endif
13323
13324 +-; return 0; }
13325 +-EOF
13326 +-if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13327 +-  rm -rf conftest*
13328 ++  ;
13329 ++  return 0;
13330 ++}
13331 ++_ACEOF
13332 ++rm -f conftest.$ac_objext conftest$ac_exeext
13333 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334 ++  (eval $ac_link) 2>conftest.er1
13335 ++  ac_status=$?
13336 ++  grep -v '^ *+' conftest.er1 >conftest.err
13337 ++  rm -f conftest.er1
13338 ++  cat conftest.err >&5
13339 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 ++  (exit $ac_status); } &&
13341 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13342 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 ++  (eval $ac_try) 2>&5
13344 ++  ac_status=$?
13345 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 ++  (exit $ac_status); }; } &&
13347 ++       { ac_try='test -s conftest$ac_exeext'
13348 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 ++  (eval $ac_try) 2>&5
13350 ++  ac_status=$?
13351 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 ++  (exit $ac_status); }; }; then
13353 +   emacs_cv_x11_version_6=yes
13354 + else
13355 +-  echo "configure: failed program was:" >&5
13356 +-  cat conftest.$ac_ext >&5
13357 +-  rm -rf conftest*
13358 +-  emacs_cv_x11_version_6=no
13359 ++  echo "$as_me: failed program was:" >&5
13360 ++sed 's/^/| /' conftest.$ac_ext >&5
13361 ++
13362 ++emacs_cv_x11_version_6=no
13363 + fi
13364 +-rm -f conftest*
13365 ++rm -f conftest.err conftest.$ac_objext \
13366 ++      conftest$ac_exeext conftest.$ac_ext
13367 + fi
13368
13369 +   if test $emacs_cv_x11_version_6 = yes; then
13370 +-    echo "$ac_t""6 or newer" 1>&6
13371 +-    cat >> confdefs.h <<\EOF
13372 ++    echo "$as_me:$LINENO: result: 6 or newer" >&5
13373 ++echo "${ECHO_T}6 or newer" >&6
13374 ++    cat >>confdefs.h <<\_ACEOF
13375 + #define HAVE_X11R6 1
13376 +-EOF
13377 ++_ACEOF
13378
13379 +   else
13380 +-    echo "$ac_t""before 6" 1>&6
13381 ++    echo "$as_me:$LINENO: result: before 6" >&5
13382 ++echo "${ECHO_T}before 6" >&6
13383 +   fi
13384 + fi
13385
13386 + if test "${window_system}" = "x11"; then
13387 +-  echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
13388 +-echo "configure:4723: checking X11 version 5" >&5
13389 +-  if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
13390 +-  echo $ac_n "(cached) $ac_c" 1>&6
13391 +-else
13392 +-  cat > conftest.$ac_ext <<EOF
13393 +-#line 4728 "configure"
13394 +-#include "confdefs.h"
13395 ++  echo "$as_me:$LINENO: checking X11 version 5" >&5
13396 ++echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
13397 ++  if test "${emacs_cv_x11_version_5+set}" = set; then
13398 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13399 ++else
13400 ++  cat >conftest.$ac_ext <<_ACEOF
13401 ++/* confdefs.h.  */
13402 ++_ACEOF
13403 ++cat confdefs.h >>conftest.$ac_ext
13404 ++cat >>conftest.$ac_ext <<_ACEOF
13405 ++/* end confdefs.h.  */
13406 + #include <X11/Xlib.h>
13407 +-int main() {
13408 ++int
13409 ++main ()
13410 ++{
13411 + #if XlibSpecificationRelease < 5
13412 + fail;
13413 + #endif
13414
13415 +-; return 0; }
13416 +-EOF
13417 +-if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13418 +-  rm -rf conftest*
13419 ++  ;
13420 ++  return 0;
13421 ++}
13422 ++_ACEOF
13423 ++rm -f conftest.$ac_objext conftest$ac_exeext
13424 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 ++  (eval $ac_link) 2>conftest.er1
13426 ++  ac_status=$?
13427 ++  grep -v '^ *+' conftest.er1 >conftest.err
13428 ++  rm -f conftest.er1
13429 ++  cat conftest.err >&5
13430 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 ++  (exit $ac_status); } &&
13432 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13433 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 ++  (eval $ac_try) 2>&5
13435 ++  ac_status=$?
13436 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 ++  (exit $ac_status); }; } &&
13438 ++       { ac_try='test -s conftest$ac_exeext'
13439 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 ++  (eval $ac_try) 2>&5
13441 ++  ac_status=$?
13442 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 ++  (exit $ac_status); }; }; then
13444 +   emacs_cv_x11_version_5=yes
13445 + else
13446 +-  echo "configure: failed program was:" >&5
13447 +-  cat conftest.$ac_ext >&5
13448 +-  rm -rf conftest*
13449 +-  emacs_cv_x11_version_5=no
13450 ++  echo "$as_me: failed program was:" >&5
13451 ++sed 's/^/| /' conftest.$ac_ext >&5
13452 ++
13453 ++emacs_cv_x11_version_5=no
13454 + fi
13455 +-rm -f conftest*
13456 ++rm -f conftest.err conftest.$ac_objext \
13457 ++      conftest$ac_exeext conftest.$ac_ext
13458 + fi
13459
13460 +   if test $emacs_cv_x11_version_5 = yes; then
13461 +-    echo "$ac_t""5 or newer" 1>&6
13462 ++    echo "$as_me:$LINENO: result: 5 or newer" >&5
13463 ++echo "${ECHO_T}5 or newer" >&6
13464 +     HAVE_X11R5=yes
13465 +-    cat >> confdefs.h <<\EOF
13466 ++    cat >>confdefs.h <<\_ACEOF
13467 + #define HAVE_X11R5 1
13468 +-EOF
13469 ++_ACEOF
13470
13471 +   else
13472 +     HAVE_X11R5=no
13473 +-    echo "$ac_t""before 5" 1>&6
13474 ++    echo "$as_me:$LINENO: result: before 5" >&5
13475 ++echo "${ECHO_T}before 5" >&6
13476 +   fi
13477 + fi
13478
13479 + if test x"${USE_X_TOOLKIT}" = xmaybe; then
13480 +   if test x"${HAVE_X11R5}" = xyes; then
13481 +-    echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
13482 +-echo "configure:4766: checking X11 version 5 with Xaw" >&5
13483 +-    if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
13484 +-  echo $ac_n "(cached) $ac_c" 1>&6
13485 +-else
13486 +-  cat > conftest.$ac_ext <<EOF
13487 +-#line 4771 "configure"
13488 +-#include "confdefs.h"
13489 ++    echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
13490 ++echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
13491 ++    if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
13492 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13493 ++else
13494 ++  cat >conftest.$ac_ext <<_ACEOF
13495 ++/* confdefs.h.  */
13496 ++_ACEOF
13497 ++cat confdefs.h >>conftest.$ac_ext
13498 ++cat >>conftest.$ac_ext <<_ACEOF
13499 ++/* end confdefs.h.  */
13500
13501 + #include <X11/Intrinsic.h>
13502 + #include <X11/Xaw/Simple.h>
13503 +-int main() {
13504 ++int
13505 ++main ()
13506 ++{
13507
13508 +-; return 0; }
13509 +-EOF
13510 +-if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13511 +-  rm -rf conftest*
13512 ++  ;
13513 ++  return 0;
13514 ++}
13515 ++_ACEOF
13516 ++rm -f conftest.$ac_objext conftest$ac_exeext
13517 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 ++  (eval $ac_link) 2>conftest.er1
13519 ++  ac_status=$?
13520 ++  grep -v '^ *+' conftest.er1 >conftest.err
13521 ++  rm -f conftest.er1
13522 ++  cat conftest.err >&5
13523 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 ++  (exit $ac_status); } &&
13525 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13526 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 ++  (eval $ac_try) 2>&5
13528 ++  ac_status=$?
13529 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 ++  (exit $ac_status); }; } &&
13531 ++       { ac_try='test -s conftest$ac_exeext'
13532 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 ++  (eval $ac_try) 2>&5
13534 ++  ac_status=$?
13535 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 ++  (exit $ac_status); }; }; then
13537 +   emacs_cv_x11_version_5_with_xaw=yes
13538 + else
13539 +-  echo "configure: failed program was:" >&5
13540 +-  cat conftest.$ac_ext >&5
13541 +-  rm -rf conftest*
13542 +-  emacs_cv_x11_version_5_with_xaw=no
13543 ++  echo "$as_me: failed program was:" >&5
13544 ++sed 's/^/| /' conftest.$ac_ext >&5
13545 ++
13546 ++emacs_cv_x11_version_5_with_xaw=no
13547 + fi
13548 +-rm -f conftest*
13549 ++rm -f conftest.err conftest.$ac_objext \
13550 ++      conftest$ac_exeext conftest.$ac_ext
13551 + fi
13552
13553 +     if test $emacs_cv_x11_version_5_with_xaw = yes; then
13554 +-      echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
13555 ++      echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
13556 ++echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
13557 +       USE_X_TOOLKIT=LUCID
13558 +     else
13559 +-      echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
13560 ++      echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
13561 ++echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
13562 +       USE_X_TOOLKIT=none
13563 +     fi
13564 +   else
13565 +@@ -4803,43 +8368,72 @@
13566 + X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13567
13568 + if test "${USE_X_TOOLKIT}" != "none"; then
13569 +-  echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
13570 +-echo "configure:4808: checking X11 toolkit version" >&5
13571 +-  if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
13572 +-  echo $ac_n "(cached) $ac_c" 1>&6
13573 +-else
13574 +-  cat > conftest.$ac_ext <<EOF
13575 +-#line 4813 "configure"
13576 +-#include "confdefs.h"
13577 ++  echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13578 ++echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
13579 ++  if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13580 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13581 ++else
13582 ++  cat >conftest.$ac_ext <<_ACEOF
13583 ++/* confdefs.h.  */
13584 ++_ACEOF
13585 ++cat confdefs.h >>conftest.$ac_ext
13586 ++cat >>conftest.$ac_ext <<_ACEOF
13587 ++/* end confdefs.h.  */
13588 + #include <X11/Intrinsic.h>
13589 +-int main() {
13590 ++int
13591 ++main ()
13592 ++{
13593 + #if XtSpecificationRelease < 6
13594 + fail;
13595 + #endif
13596
13597 +-; return 0; }
13598 +-EOF
13599 +-if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13600 +-  rm -rf conftest*
13601 ++  ;
13602 ++  return 0;
13603 ++}
13604 ++_ACEOF
13605 ++rm -f conftest.$ac_objext conftest$ac_exeext
13606 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13607 ++  (eval $ac_link) 2>conftest.er1
13608 ++  ac_status=$?
13609 ++  grep -v '^ *+' conftest.er1 >conftest.err
13610 ++  rm -f conftest.er1
13611 ++  cat conftest.err >&5
13612 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 ++  (exit $ac_status); } &&
13614 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13615 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 ++  (eval $ac_try) 2>&5
13617 ++  ac_status=$?
13618 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 ++  (exit $ac_status); }; } &&
13620 ++       { ac_try='test -s conftest$ac_exeext'
13621 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 ++  (eval $ac_try) 2>&5
13623 ++  ac_status=$?
13624 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 ++  (exit $ac_status); }; }; then
13626 +   emacs_cv_x11_toolkit_version_6=yes
13627 + else
13628 +-  echo "configure: failed program was:" >&5
13629 +-  cat conftest.$ac_ext >&5
13630 +-  rm -rf conftest*
13631 +-  emacs_cv_x11_toolkit_version_6=no
13632 ++  echo "$as_me: failed program was:" >&5
13633 ++sed 's/^/| /' conftest.$ac_ext >&5
13634 ++
13635 ++emacs_cv_x11_toolkit_version_6=no
13636 + fi
13637 +-rm -f conftest*
13638 ++rm -f conftest.err conftest.$ac_objext \
13639 ++      conftest$ac_exeext conftest.$ac_ext
13640 + fi
13641
13642 +   HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13643 +   if test $emacs_cv_x11_toolkit_version_6 = yes; then
13644 +-    echo "$ac_t""6 or newer" 1>&6
13645 +-    cat >> confdefs.h <<\EOF
13646 ++    echo "$as_me:$LINENO: result: 6 or newer" >&5
13647 ++echo "${ECHO_T}6 or newer" >&6
13648 ++    cat >>confdefs.h <<\_ACEOF
13649 + #define HAVE_X11XTR6 1
13650 +-EOF
13651 ++_ACEOF
13652
13653 +   else
13654 +-    echo "$ac_t""before 6" 1>&6
13655 ++    echo "$as_me:$LINENO: result: before 6" >&5
13656 ++echo "${ECHO_T}before 6" >&6
13657 +   fi
13658
13659 +   OLDLIBS="$LIBS"
13660 +@@ -4848,51 +8442,77 @@
13661 +   else
13662 +     LIBS="-lXt $LIBS"
13663 +   fi
13664 +-  echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
13665 +-echo "configure:4853: checking for XmuConvertStandardSelection in -lXmu" >&5
13666 +-ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
13667 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13668 +-  echo $ac_n "(cached) $ac_c" 1>&6
13669 ++
13670 ++echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13671 ++echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
13672 ++if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13673 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13674 + else
13675 +-  ac_save_LIBS="$LIBS"
13676 ++  ac_check_lib_save_LIBS=$LIBS
13677 + LIBS="-lXmu  $LIBS"
13678 +-cat > conftest.$ac_ext <<EOF
13679 +-#line 4861 "configure"
13680 +-#include "confdefs.h"
13681 +-/* Override any gcc2 internal prototype to avoid an error.  */
13682 +-/* We use char because int might match the return type of a gcc2
13683 +-    builtin and then its argument prototype would still apply.  */
13684 +-char XmuConvertStandardSelection();
13685 +-
13686 +-int main() {
13687 +-XmuConvertStandardSelection()
13688 +-; return 0; }
13689 +-EOF
13690 +-if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13691 +-  rm -rf conftest*
13692 +-  eval "ac_cv_lib_$ac_lib_var=yes"
13693 +-else
13694 +-  echo "configure: failed program was:" >&5
13695 +-  cat conftest.$ac_ext >&5
13696 +-  rm -rf conftest*
13697 +-  eval "ac_cv_lib_$ac_lib_var=no"
13698 +-fi
13699 +-rm -f conftest*
13700 +-LIBS="$ac_save_LIBS"
13701 ++cat >conftest.$ac_ext <<_ACEOF
13702 ++/* confdefs.h.  */
13703 ++_ACEOF
13704 ++cat confdefs.h >>conftest.$ac_ext
13705 ++cat >>conftest.$ac_ext <<_ACEOF
13706 ++/* end confdefs.h.  */
13707
13708 +-fi
13709 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13710 +-  echo "$ac_t""yes" 1>&6
13711 +-    ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13712 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13713 +-  cat >> confdefs.h <<EOF
13714 +-#define $ac_tr_lib 1
13715 +-EOF
13716 ++/* Override any gcc2 internal prototype to avoid an error.  */
13717 ++#ifdef __cplusplus
13718 ++extern "C"
13719 ++#endif
13720 ++/* We use char because int might match the return type of a gcc2
13721 ++   builtin and then its argument prototype would still apply.  */
13722 ++char XmuConvertStandardSelection ();
13723 ++int
13724 ++main ()
13725 ++{
13726 ++XmuConvertStandardSelection ();
13727 ++  ;
13728 ++  return 0;
13729 ++}
13730 ++_ACEOF
13731 ++rm -f conftest.$ac_objext conftest$ac_exeext
13732 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 ++  (eval $ac_link) 2>conftest.er1
13734 ++  ac_status=$?
13735 ++  grep -v '^ *+' conftest.er1 >conftest.err
13736 ++  rm -f conftest.er1
13737 ++  cat conftest.err >&5
13738 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 ++  (exit $ac_status); } &&
13740 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13741 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 ++  (eval $ac_try) 2>&5
13743 ++  ac_status=$?
13744 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 ++  (exit $ac_status); }; } &&
13746 ++       { ac_try='test -s conftest$ac_exeext'
13747 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 ++  (eval $ac_try) 2>&5
13749 ++  ac_status=$?
13750 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 ++  (exit $ac_status); }; }; then
13752 ++  ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13753 ++else
13754 ++  echo "$as_me: failed program was:" >&5
13755 ++sed 's/^/| /' conftest.$ac_ext >&5
13756 ++
13757 ++ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13758 ++fi
13759 ++rm -f conftest.err conftest.$ac_objext \
13760 ++      conftest$ac_exeext conftest.$ac_ext
13761 ++LIBS=$ac_check_lib_save_LIBS
13762 ++fi
13763 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13764 ++echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
13765 ++if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13766 ++  cat >>confdefs.h <<_ACEOF
13767 ++#define HAVE_LIBXMU 1
13768 ++_ACEOF
13769
13770 +   LIBS="-lXmu $LIBS"
13771
13772 +-else
13773 +-  echo "$ac_t""no" 1>&6
13774 + fi
13775
13776 +   test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13777 +@@ -4901,140 +8521,219 @@
13778 + # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13779 + if test "${HAVE_X11}" = "yes"; then
13780 +   if test "${USE_X_TOOLKIT}" != "none"; then
13781 +-    echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
13782 +-echo "configure:4906: checking for XShapeQueryExtension in -lXext" >&5
13783 +-ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
13784 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13785 +-  echo $ac_n "(cached) $ac_c" 1>&6
13786 ++
13787 ++echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13788 ++echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
13789 ++if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13790 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13791 + else
13792 +-  ac_save_LIBS="$LIBS"
13793 ++  ac_check_lib_save_LIBS=$LIBS
13794 + LIBS="-lXext  $LIBS"
13795 +-cat > conftest.$ac_ext <<EOF
13796 +-#line 4914 "configure"
13797 +-#include "confdefs.h"
13798 +-/* Override any gcc2 internal prototype to avoid an error.  */
13799 +-/* We use char because int might match the return type of a gcc2
13800 +-    builtin and then its argument prototype would still apply.  */
13801 +-char XShapeQueryExtension();
13802 +-
13803 +-int main() {
13804 +-XShapeQueryExtension()
13805 +-; return 0; }
13806 +-EOF
13807 +-if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13808 +-  rm -rf conftest*
13809 +-  eval "ac_cv_lib_$ac_lib_var=yes"
13810 +-else
13811 +-  echo "configure: failed program was:" >&5
13812 +-  cat conftest.$ac_ext >&5
13813 +-  rm -rf conftest*
13814 +-  eval "ac_cv_lib_$ac_lib_var=no"
13815 +-fi
13816 +-rm -f conftest*
13817 +-LIBS="$ac_save_LIBS"
13818 ++cat >conftest.$ac_ext <<_ACEOF
13819 ++/* confdefs.h.  */
13820 ++_ACEOF
13821 ++cat confdefs.h >>conftest.$ac_ext
13822 ++cat >>conftest.$ac_ext <<_ACEOF
13823 ++/* end confdefs.h.  */
13824
13825 +-fi
13826 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13827 +-  echo "$ac_t""yes" 1>&6
13828 +-    ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13829 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13830 +-  cat >> confdefs.h <<EOF
13831 +-#define $ac_tr_lib 1
13832 +-EOF
13833 ++/* Override any gcc2 internal prototype to avoid an error.  */
13834 ++#ifdef __cplusplus
13835 ++extern "C"
13836 ++#endif
13837 ++/* We use char because int might match the return type of a gcc2
13838 ++   builtin and then its argument prototype would still apply.  */
13839 ++char XShapeQueryExtension ();
13840 ++int
13841 ++main ()
13842 ++{
13843 ++XShapeQueryExtension ();
13844 ++  ;
13845 ++  return 0;
13846 ++}
13847 ++_ACEOF
13848 ++rm -f conftest.$ac_objext conftest$ac_exeext
13849 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 ++  (eval $ac_link) 2>conftest.er1
13851 ++  ac_status=$?
13852 ++  grep -v '^ *+' conftest.er1 >conftest.err
13853 ++  rm -f conftest.er1
13854 ++  cat conftest.err >&5
13855 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 ++  (exit $ac_status); } &&
13857 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13858 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 ++  (eval $ac_try) 2>&5
13860 ++  ac_status=$?
13861 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 ++  (exit $ac_status); }; } &&
13863 ++       { ac_try='test -s conftest$ac_exeext'
13864 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 ++  (eval $ac_try) 2>&5
13866 ++  ac_status=$?
13867 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 ++  (exit $ac_status); }; }; then
13869 ++  ac_cv_lib_Xext_XShapeQueryExtension=yes
13870 ++else
13871 ++  echo "$as_me: failed program was:" >&5
13872 ++sed 's/^/| /' conftest.$ac_ext >&5
13873 ++
13874 ++ac_cv_lib_Xext_XShapeQueryExtension=no
13875 ++fi
13876 ++rm -f conftest.err conftest.$ac_objext \
13877 ++      conftest$ac_exeext conftest.$ac_ext
13878 ++LIBS=$ac_check_lib_save_LIBS
13879 ++fi
13880 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13881 ++echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
13882 ++if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13883 ++  cat >>confdefs.h <<_ACEOF
13884 ++#define HAVE_LIBXEXT 1
13885 ++_ACEOF
13886
13887 +   LIBS="-lXext $LIBS"
13888
13889 +-else
13890 +-  echo "$ac_t""no" 1>&6
13891 + fi
13892
13893 +   fi
13894 + fi
13895
13896 + if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13897 +-  echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
13898 +-echo "configure:4957: checking for Motif version 2.1" >&5
13899 +-if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
13900 +-  echo $ac_n "(cached) $ac_c" 1>&6
13901 +-else
13902 +-  cat > conftest.$ac_ext <<EOF
13903 +-#line 4962 "configure"
13904 +-#include "confdefs.h"
13905 ++  echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13906 ++echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
13907 ++if test "${emacs_cv_motif_version_2_1+set}" = set; then
13908 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13909 ++else
13910 ++  cat >conftest.$ac_ext <<_ACEOF
13911 ++/* confdefs.h.  */
13912 ++_ACEOF
13913 ++cat confdefs.h >>conftest.$ac_ext
13914 ++cat >>conftest.$ac_ext <<_ACEOF
13915 ++/* end confdefs.h.  */
13916 + #include <Xm/Xm.h>
13917 +-int main() {
13918 ++int
13919 ++main ()
13920 ++{
13921 + #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13922 + int x = 5;
13923 + #else
13924 + Motif version prior to 2.1.
13925 + #endif
13926 +-; return 0; }
13927 +-EOF
13928 +-if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13929 +-  rm -rf conftest*
13930 ++  ;
13931 ++  return 0;
13932 ++}
13933 ++_ACEOF
13934 ++rm -f conftest.$ac_objext
13935 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 ++  (eval $ac_compile) 2>conftest.er1
13937 ++  ac_status=$?
13938 ++  grep -v '^ *+' conftest.er1 >conftest.err
13939 ++  rm -f conftest.er1
13940 ++  cat conftest.err >&5
13941 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 ++  (exit $ac_status); } &&
13943 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13944 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 ++  (eval $ac_try) 2>&5
13946 ++  ac_status=$?
13947 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 ++  (exit $ac_status); }; } &&
13949 ++       { ac_try='test -s conftest.$ac_objext'
13950 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 ++  (eval $ac_try) 2>&5
13952 ++  ac_status=$?
13953 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 ++  (exit $ac_status); }; }; then
13955 +   emacs_cv_motif_version_2_1=yes
13956 + else
13957 +-  echo "configure: failed program was:" >&5
13958 +-  cat conftest.$ac_ext >&5
13959 +-  rm -rf conftest*
13960 +-  emacs_cv_motif_version_2_1=no
13961 ++  echo "$as_me: failed program was:" >&5
13962 ++sed 's/^/| /' conftest.$ac_ext >&5
13963 ++
13964 ++emacs_cv_motif_version_2_1=no
13965 + fi
13966 +-rm -f conftest*
13967 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 + fi
13969 +-
13970 +-echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
13971 ++echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13972 ++echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
13973 +   HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13974 +   if test $emacs_cv_motif_version_2_1 = yes; then
13975 +     HAVE_LIBXP=no
13976 +-    cat >> confdefs.h <<\EOF
13977 ++    cat >>confdefs.h <<\_ACEOF
13978 + #define HAVE_MOTIF_2_1 1
13979 +-EOF
13980 ++_ACEOF
13981
13982 +-    echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
13983 +-echo "configure:4994: checking for XpCreateContext in -lXp" >&5
13984 +-ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
13985 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13986 +-  echo $ac_n "(cached) $ac_c" 1>&6
13987 ++    echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13988 ++echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
13989 ++if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13990 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
13991 + else
13992 +-  ac_save_LIBS="$LIBS"
13993 ++  ac_check_lib_save_LIBS=$LIBS
13994 + LIBS="-lXp  $LIBS"
13995 +-cat > conftest.$ac_ext <<EOF
13996 +-#line 5002 "configure"
13997 +-#include "confdefs.h"
13998 +-/* Override any gcc2 internal prototype to avoid an error.  */
13999 +-/* We use char because int might match the return type of a gcc2
14000 +-    builtin and then its argument prototype would still apply.  */
14001 +-char XpCreateContext();
14002 +-
14003 +-int main() {
14004 +-XpCreateContext()
14005 +-; return 0; }
14006 +-EOF
14007 +-if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14008 +-  rm -rf conftest*
14009 +-  eval "ac_cv_lib_$ac_lib_var=yes"
14010 +-else
14011 +-  echo "configure: failed program was:" >&5
14012 +-  cat conftest.$ac_ext >&5
14013 +-  rm -rf conftest*
14014 +-  eval "ac_cv_lib_$ac_lib_var=no"
14015 +-fi
14016 +-rm -f conftest*
14017 +-LIBS="$ac_save_LIBS"
14018 ++cat >conftest.$ac_ext <<_ACEOF
14019 ++/* confdefs.h.  */
14020 ++_ACEOF
14021 ++cat confdefs.h >>conftest.$ac_ext
14022 ++cat >>conftest.$ac_ext <<_ACEOF
14023 ++/* end confdefs.h.  */
14024
14025 +-fi
14026 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14027 +-  echo "$ac_t""yes" 1>&6
14028 ++/* Override any gcc2 internal prototype to avoid an error.  */
14029 ++#ifdef __cplusplus
14030 ++extern "C"
14031 ++#endif
14032 ++/* We use char because int might match the return type of a gcc2
14033 ++   builtin and then its argument prototype would still apply.  */
14034 ++char XpCreateContext ();
14035 ++int
14036 ++main ()
14037 ++{
14038 ++XpCreateContext ();
14039 ++  ;
14040 ++  return 0;
14041 ++}
14042 ++_ACEOF
14043 ++rm -f conftest.$ac_objext conftest$ac_exeext
14044 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 ++  (eval $ac_link) 2>conftest.er1
14046 ++  ac_status=$?
14047 ++  grep -v '^ *+' conftest.er1 >conftest.err
14048 ++  rm -f conftest.er1
14049 ++  cat conftest.err >&5
14050 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 ++  (exit $ac_status); } &&
14052 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14053 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 ++  (eval $ac_try) 2>&5
14055 ++  ac_status=$?
14056 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 ++  (exit $ac_status); }; } &&
14058 ++       { ac_try='test -s conftest$ac_exeext'
14059 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 ++  (eval $ac_try) 2>&5
14061 ++  ac_status=$?
14062 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 ++  (exit $ac_status); }; }; then
14064 ++  ac_cv_lib_Xp_XpCreateContext=yes
14065 ++else
14066 ++  echo "$as_me: failed program was:" >&5
14067 ++sed 's/^/| /' conftest.$ac_ext >&5
14068 ++
14069 ++ac_cv_lib_Xp_XpCreateContext=no
14070 ++fi
14071 ++rm -f conftest.err conftest.$ac_objext \
14072 ++      conftest$ac_exeext conftest.$ac_ext
14073 ++LIBS=$ac_check_lib_save_LIBS
14074 ++fi
14075 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
14076 ++echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
14077 ++if test $ac_cv_lib_Xp_XpCreateContext = yes; then
14078 +   HAVE_LIBXP=yes
14079 +-else
14080 +-  echo "$ac_t""no" 1>&6
14081 + fi
14082
14083 +     if test ${HAVE_LIBXP} = yes; then
14084 +-      cat >> confdefs.h <<\EOF
14085 ++      cat >>confdefs.h <<\_ACEOF
14086 + #define HAVE_LIBXP 1
14087 +-EOF
14088 ++_ACEOF
14089
14090 +-    fi        
14091 ++    fi
14092 +   fi
14093 + fi
14094
14095 +@@ -5042,102 +8741,237 @@
14096 + HAVE_XAW3D=no
14097 + if test "${HAVE_X11}" = "yes"; then
14098 +   if test "${USE_X_TOOLKIT}" != "none"; then
14099 +-    ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
14100 +-echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
14101 +-echo "configure:5048: checking for X11/Xaw3d/Scrollbar.h" >&5
14102 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14103 +-  echo $ac_n "(cached) $ac_c" 1>&6
14104 +-else
14105 +-  cat > conftest.$ac_ext <<EOF
14106 +-#line 5053 "configure"
14107 +-#include "confdefs.h"
14108 ++    if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14109 ++  echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
14110 ++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
14111 ++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14112 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14113 ++fi
14114 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
14115 ++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
14116 ++else
14117 ++  # Is the header compilable?
14118 ++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
14119 ++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
14120 ++cat >conftest.$ac_ext <<_ACEOF
14121 ++/* confdefs.h.  */
14122 ++_ACEOF
14123 ++cat confdefs.h >>conftest.$ac_ext
14124 ++cat >>conftest.$ac_ext <<_ACEOF
14125 ++/* end confdefs.h.  */
14126 ++$ac_includes_default
14127 + #include <X11/Xaw3d/Scrollbar.h>
14128 +-EOF
14129 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14130 +-{ (eval echo configure:5058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14131 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14132 +-if test -z "$ac_err"; then
14133 +-  rm -rf conftest*
14134 +-  eval "ac_cv_header_$ac_safe=yes"
14135 +-else
14136 +-  echo "$ac_err" >&5
14137 +-  echo "configure: failed program was:" >&5
14138 +-  cat conftest.$ac_ext >&5
14139 +-  rm -rf conftest*
14140 +-  eval "ac_cv_header_$ac_safe=no"
14141 +-fi
14142 +-rm -f conftest*
14143 ++_ACEOF
14144 ++rm -f conftest.$ac_objext
14145 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146 ++  (eval $ac_compile) 2>conftest.er1
14147 ++  ac_status=$?
14148 ++  grep -v '^ *+' conftest.er1 >conftest.err
14149 ++  rm -f conftest.er1
14150 ++  cat conftest.err >&5
14151 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 ++  (exit $ac_status); } &&
14153 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14154 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 ++  (eval $ac_try) 2>&5
14156 ++  ac_status=$?
14157 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 ++  (exit $ac_status); }; } &&
14159 ++       { ac_try='test -s conftest.$ac_objext'
14160 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 ++  (eval $ac_try) 2>&5
14162 ++  ac_status=$?
14163 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 ++  (exit $ac_status); }; }; then
14165 ++  ac_header_compiler=yes
14166 ++else
14167 ++  echo "$as_me: failed program was:" >&5
14168 ++sed 's/^/| /' conftest.$ac_ext >&5
14169 ++
14170 ++ac_header_compiler=no
14171 ++fi
14172 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14174 ++echo "${ECHO_T}$ac_header_compiler" >&6
14175 ++
14176 ++# Is the header present?
14177 ++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
14178 ++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
14179 ++cat >conftest.$ac_ext <<_ACEOF
14180 ++/* confdefs.h.  */
14181 ++_ACEOF
14182 ++cat confdefs.h >>conftest.$ac_ext
14183 ++cat >>conftest.$ac_ext <<_ACEOF
14184 ++/* end confdefs.h.  */
14185 ++#include <X11/Xaw3d/Scrollbar.h>
14186 ++_ACEOF
14187 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14188 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14189 ++  ac_status=$?
14190 ++  grep -v '^ *+' conftest.er1 >conftest.err
14191 ++  rm -f conftest.er1
14192 ++  cat conftest.err >&5
14193 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 ++  (exit $ac_status); } >/dev/null; then
14195 ++  if test -s conftest.err; then
14196 ++    ac_cpp_err=$ac_c_preproc_warn_flag
14197 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14198 ++  else
14199 ++    ac_cpp_err=
14200 ++  fi
14201 ++else
14202 ++  ac_cpp_err=yes
14203 + fi
14204 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14205 +-  echo "$ac_t""yes" 1>&6
14206 +-  echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
14207 +-echo "configure:5075: checking for XawScrollbarSetThumb in -lXaw3d" >&5
14208 +-ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
14209 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14210 +-  echo $ac_n "(cached) $ac_c" 1>&6
14211 ++if test -z "$ac_cpp_err"; then
14212 ++  ac_header_preproc=yes
14213 + else
14214 +-  ac_save_LIBS="$LIBS"
14215 +-LIBS="-lXaw3d  $LIBS"
14216 +-cat > conftest.$ac_ext <<EOF
14217 +-#line 5083 "configure"
14218 +-#include "confdefs.h"
14219 +-/* Override any gcc2 internal prototype to avoid an error.  */
14220 +-/* We use char because int might match the return type of a gcc2
14221 +-    builtin and then its argument prototype would still apply.  */
14222 +-char XawScrollbarSetThumb();
14223 +-
14224 +-int main() {
14225 +-XawScrollbarSetThumb()
14226 +-; return 0; }
14227 +-EOF
14228 +-if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14229 +-  rm -rf conftest*
14230 +-  eval "ac_cv_lib_$ac_lib_var=yes"
14231 +-else
14232 +-  echo "configure: failed program was:" >&5
14233 +-  cat conftest.$ac_ext >&5
14234 +-  rm -rf conftest*
14235 +-  eval "ac_cv_lib_$ac_lib_var=no"
14236 ++  echo "$as_me: failed program was:" >&5
14237 ++sed 's/^/| /' conftest.$ac_ext >&5
14238 ++
14239 ++  ac_header_preproc=no
14240 ++fi
14241 ++rm -f conftest.err conftest.$ac_ext
14242 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14243 ++echo "${ECHO_T}$ac_header_preproc" >&6
14244 ++
14245 ++# So?  What about this header?
14246 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14247 ++  yes:no: )
14248 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
14249 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14250 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
14251 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
14252 ++    ac_header_preproc=yes
14253 ++    ;;
14254 ++  no:yes:* )
14255 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
14256 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
14257 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&5
14258 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&2;}
14259 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
14260 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
14261 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&5
14262 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14263 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
14264 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
14265 ++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
14266 ++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
14267 ++    (
14268 ++      cat <<\_ASBOX
14269 ++## ------------------------------------------ ##
14270 ++## Report this to the AC_PACKAGE_NAME lists.  ##
14271 ++## ------------------------------------------ ##
14272 ++_ASBOX
14273 ++    ) |
14274 ++      sed "s/^/$as_me: WARNING:     /" >&2
14275 ++    ;;
14276 ++esac
14277 ++echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
14278 ++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
14279 ++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
14280 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14281 ++else
14282 ++  ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
14283 + fi
14284 +-rm -f conftest*
14285 +-LIBS="$ac_save_LIBS"
14286 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
14287 ++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
14288
14289 + fi
14290 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14291 +-  echo "$ac_t""yes" 1>&6
14292 +-  HAVE_XAW3D=yes
14293 ++if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
14294 ++  echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
14295 ++echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
14296 ++if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
14297 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14298 + else
14299 +-  echo "$ac_t""no" 1>&6
14300 ++  ac_check_lib_save_LIBS=$LIBS
14301 ++LIBS="-lXaw3d  $LIBS"
14302 ++cat >conftest.$ac_ext <<_ACEOF
14303 ++/* confdefs.h.  */
14304 ++_ACEOF
14305 ++cat confdefs.h >>conftest.$ac_ext
14306 ++cat >>conftest.$ac_ext <<_ACEOF
14307 ++/* end confdefs.h.  */
14308 ++
14309 ++/* Override any gcc2 internal prototype to avoid an error.  */
14310 ++#ifdef __cplusplus
14311 ++extern "C"
14312 ++#endif
14313 ++/* We use char because int might match the return type of a gcc2
14314 ++   builtin and then its argument prototype would still apply.  */
14315 ++char XawScrollbarSetThumb ();
14316 ++int
14317 ++main ()
14318 ++{
14319 ++XawScrollbarSetThumb ();
14320 ++  ;
14321 ++  return 0;
14322 ++}
14323 ++_ACEOF
14324 ++rm -f conftest.$ac_objext conftest$ac_exeext
14325 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14326 ++  (eval $ac_link) 2>conftest.er1
14327 ++  ac_status=$?
14328 ++  grep -v '^ *+' conftest.er1 >conftest.err
14329 ++  rm -f conftest.er1
14330 ++  cat conftest.err >&5
14331 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 ++  (exit $ac_status); } &&
14333 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14334 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 ++  (eval $ac_try) 2>&5
14336 ++  ac_status=$?
14337 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 ++  (exit $ac_status); }; } &&
14339 ++       { ac_try='test -s conftest$ac_exeext'
14340 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 ++  (eval $ac_try) 2>&5
14342 ++  ac_status=$?
14343 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 ++  (exit $ac_status); }; }; then
14345 ++  ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
14346 ++else
14347 ++  echo "$as_me: failed program was:" >&5
14348 ++sed 's/^/| /' conftest.$ac_ext >&5
14349 ++
14350 ++ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
14351 ++fi
14352 ++rm -f conftest.err conftest.$ac_objext \
14353 ++      conftest$ac_exeext conftest.$ac_ext
14354 ++LIBS=$ac_check_lib_save_LIBS
14355 ++fi
14356 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
14357 ++echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
14358 ++if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
14359 ++  HAVE_XAW3D=yes
14360 + fi
14361
14362 +-else
14363 +-  echo "$ac_t""no" 1>&6
14364 + fi
14365
14366 ++
14367 +     if test "${HAVE_XAW3D}" = "yes"; then
14368 +-      cat >> confdefs.h <<\EOF
14369 ++      cat >>confdefs.h <<\_ACEOF
14370 + #define HAVE_XAW3D 1
14371 +-EOF
14372 ++_ACEOF
14373
14374 +     fi
14375 +   fi
14376 + fi
14377 +-  
14378 ++
14379
14380 + USE_TOOLKIT_SCROLL_BARS=no
14381 + if test "${with_toolkit_scroll_bars}" != "no"; then
14382 +   if test "${USE_X_TOOLKIT}" != "none"; then
14383 +     if test "${USE_X_TOOLKIT}" = "MOTIF"; then
14384 +-      cat >> confdefs.h <<\EOF
14385 ++      cat >>confdefs.h <<\_ACEOF
14386 + #define USE_TOOLKIT_SCROLL_BARS 1
14387 +-EOF
14388 ++_ACEOF
14389
14390 +       HAVE_XAW3D=no
14391 +       USE_TOOLKIT_SCROLL_BARS=yes
14392 +     elif test "${HAVE_XAW3D}" = "yes"; then
14393 +-      cat >> confdefs.h <<\EOF
14394 ++      cat >>confdefs.h <<\_ACEOF
14395 + #define USE_TOOLKIT_SCROLL_BARS 1
14396 +-EOF
14397 ++_ACEOF
14398
14399 +       USE_TOOLKIT_SCROLL_BARS=yes
14400 +     fi
14401 +@@ -5146,9 +8980,9 @@
14402
14403
14404 + if test "${with_xim}" != "no"; then
14405 +-  cat >> confdefs.h <<\EOF
14406 ++  cat >>confdefs.h <<\_ACEOF
14407 + #define USE_XIM 1
14408 +-EOF
14409 ++_ACEOF
14410
14411 + fi
14412
14413 +@@ -5156,565 +8990,1302 @@
14414 + HAVE_XPM=no
14415 + if test "${HAVE_X11}" = "yes"; then
14416 +   if test "${with_xpm}" != "no"; then
14417 +-    ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
14418 +-echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
14419 +-echo "configure:5162: checking for X11/xpm.h" >&5
14420 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14421 +-  echo $ac_n "(cached) $ac_c" 1>&6
14422 +-else
14423 +-  cat > conftest.$ac_ext <<EOF
14424 +-#line 5167 "configure"
14425 +-#include "confdefs.h"
14426 ++    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14427 ++  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14428 ++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
14429 ++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14430 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ++fi
14432 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14433 ++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
14434 ++else
14435 ++  # Is the header compilable?
14436 ++echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14437 ++echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
14438 ++cat >conftest.$ac_ext <<_ACEOF
14439 ++/* confdefs.h.  */
14440 ++_ACEOF
14441 ++cat confdefs.h >>conftest.$ac_ext
14442 ++cat >>conftest.$ac_ext <<_ACEOF
14443 ++/* end confdefs.h.  */
14444 ++$ac_includes_default
14445 + #include <X11/xpm.h>
14446 +-EOF
14447 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14448 +-{ (eval echo configure:5172: \"$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 +-else
14454 +-  echo "$ac_err" >&5
14455 +-  echo "configure: failed program was:" >&5
14456 +-  cat conftest.$ac_ext >&5
14457 +-  rm -rf conftest*
14458 +-  eval "ac_cv_header_$ac_safe=no"
14459 +-fi
14460 +-rm -f conftest*
14461 ++_ACEOF
14462 ++rm -f conftest.$ac_objext
14463 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 ++  (eval $ac_compile) 2>conftest.er1
14465 ++  ac_status=$?
14466 ++  grep -v '^ *+' conftest.er1 >conftest.err
14467 ++  rm -f conftest.er1
14468 ++  cat conftest.err >&5
14469 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 ++  (exit $ac_status); } &&
14471 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14472 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 ++  (eval $ac_try) 2>&5
14474 ++  ac_status=$?
14475 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 ++  (exit $ac_status); }; } &&
14477 ++       { ac_try='test -s conftest.$ac_objext'
14478 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 ++  (eval $ac_try) 2>&5
14480 ++  ac_status=$?
14481 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 ++  (exit $ac_status); }; }; then
14483 ++  ac_header_compiler=yes
14484 ++else
14485 ++  echo "$as_me: failed program was:" >&5
14486 ++sed 's/^/| /' conftest.$ac_ext >&5
14487 ++
14488 ++ac_header_compiler=no
14489 ++fi
14490 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14492 ++echo "${ECHO_T}$ac_header_compiler" >&6
14493 ++
14494 ++# Is the header present?
14495 ++echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14496 ++echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
14497 ++cat >conftest.$ac_ext <<_ACEOF
14498 ++/* confdefs.h.  */
14499 ++_ACEOF
14500 ++cat confdefs.h >>conftest.$ac_ext
14501 ++cat >>conftest.$ac_ext <<_ACEOF
14502 ++/* end confdefs.h.  */
14503 ++#include <X11/xpm.h>
14504 ++_ACEOF
14505 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14506 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14507 ++  ac_status=$?
14508 ++  grep -v '^ *+' conftest.er1 >conftest.err
14509 ++  rm -f conftest.er1
14510 ++  cat conftest.err >&5
14511 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 ++  (exit $ac_status); } >/dev/null; then
14513 ++  if test -s conftest.err; then
14514 ++    ac_cpp_err=$ac_c_preproc_warn_flag
14515 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14516 ++  else
14517 ++    ac_cpp_err=
14518 ++  fi
14519 ++else
14520 ++  ac_cpp_err=yes
14521 + fi
14522 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14523 +-  echo "$ac_t""yes" 1>&6
14524 +-  echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
14525 +-echo "configure:5189: checking for XpmReadFileToPixmap in -lXpm" >&5
14526 +-ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
14527 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14528 +-  echo $ac_n "(cached) $ac_c" 1>&6
14529 ++if test -z "$ac_cpp_err"; then
14530 ++  ac_header_preproc=yes
14531 + else
14532 +-  ac_save_LIBS="$LIBS"
14533 +-LIBS="-lXpm -lX11 $LIBS"
14534 +-cat > conftest.$ac_ext <<EOF
14535 +-#line 5197 "configure"
14536 +-#include "confdefs.h"
14537 +-/* Override any gcc2 internal prototype to avoid an error.  */
14538 +-/* We use char because int might match the return type of a gcc2
14539 +-    builtin and then its argument prototype would still apply.  */
14540 +-char XpmReadFileToPixmap();
14541 +-
14542 +-int main() {
14543 +-XpmReadFileToPixmap()
14544 +-; return 0; }
14545 +-EOF
14546 +-if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14547 +-  rm -rf conftest*
14548 +-  eval "ac_cv_lib_$ac_lib_var=yes"
14549 +-else
14550 +-  echo "configure: failed program was:" >&5
14551 +-  cat conftest.$ac_ext >&5
14552 +-  rm -rf conftest*
14553 +-  eval "ac_cv_lib_$ac_lib_var=no"
14554 ++  echo "$as_me: failed program was:" >&5
14555 ++sed 's/^/| /' conftest.$ac_ext >&5
14556 ++
14557 ++  ac_header_preproc=no
14558 ++fi
14559 ++rm -f conftest.err conftest.$ac_ext
14560 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 ++echo "${ECHO_T}$ac_header_preproc" >&6
14562 ++
14563 ++# So?  What about this header?
14564 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14565 ++  yes:no: )
14566 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14567 ++echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14569 ++echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14570 ++    ac_header_preproc=yes
14571 ++    ;;
14572 ++  no:yes:* )
14573 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14574 ++echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14575 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
14576 ++echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
14577 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14578 ++echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14579 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
14580 ++echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14581 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14582 ++echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14583 ++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14584 ++echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14585 ++    (
14586 ++      cat <<\_ASBOX
14587 ++## ------------------------------------------ ##
14588 ++## Report this to the AC_PACKAGE_NAME lists.  ##
14589 ++## ------------------------------------------ ##
14590 ++_ASBOX
14591 ++    ) |
14592 ++      sed "s/^/$as_me: WARNING:     /" >&2
14593 ++    ;;
14594 ++esac
14595 ++echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14596 ++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
14597 ++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14598 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14599 ++else
14600 ++  ac_cv_header_X11_xpm_h=$ac_header_preproc
14601 + fi
14602 +-rm -f conftest*
14603 +-LIBS="$ac_save_LIBS"
14604 ++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14605 ++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
14606
14607 + fi
14608 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14609 +-  echo "$ac_t""yes" 1>&6
14610 +-  HAVE_XPM=yes
14611 ++if test $ac_cv_header_X11_xpm_h = yes; then
14612 ++  echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14613 ++echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
14614 ++if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14615 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14616 + else
14617 +-  echo "$ac_t""no" 1>&6
14618 ++  ac_check_lib_save_LIBS=$LIBS
14619 ++LIBS="-lXpm -lX11 $LIBS"
14620 ++cat >conftest.$ac_ext <<_ACEOF
14621 ++/* confdefs.h.  */
14622 ++_ACEOF
14623 ++cat confdefs.h >>conftest.$ac_ext
14624 ++cat >>conftest.$ac_ext <<_ACEOF
14625 ++/* end confdefs.h.  */
14626 ++
14627 ++/* Override any gcc2 internal prototype to avoid an error.  */
14628 ++#ifdef __cplusplus
14629 ++extern "C"
14630 ++#endif
14631 ++/* We use char because int might match the return type of a gcc2
14632 ++   builtin and then its argument prototype would still apply.  */
14633 ++char XpmReadFileToPixmap ();
14634 ++int
14635 ++main ()
14636 ++{
14637 ++XpmReadFileToPixmap ();
14638 ++  ;
14639 ++  return 0;
14640 ++}
14641 ++_ACEOF
14642 ++rm -f conftest.$ac_objext conftest$ac_exeext
14643 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 ++  (eval $ac_link) 2>conftest.er1
14645 ++  ac_status=$?
14646 ++  grep -v '^ *+' conftest.er1 >conftest.err
14647 ++  rm -f conftest.er1
14648 ++  cat conftest.err >&5
14649 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 ++  (exit $ac_status); } &&
14651 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14652 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 ++  (eval $ac_try) 2>&5
14654 ++  ac_status=$?
14655 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 ++  (exit $ac_status); }; } &&
14657 ++       { ac_try='test -s conftest$ac_exeext'
14658 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 ++  (eval $ac_try) 2>&5
14660 ++  ac_status=$?
14661 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 ++  (exit $ac_status); }; }; then
14663 ++  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14664 ++else
14665 ++  echo "$as_me: failed program was:" >&5
14666 ++sed 's/^/| /' conftest.$ac_ext >&5
14667 ++
14668 ++ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14669 ++fi
14670 ++rm -f conftest.err conftest.$ac_objext \
14671 ++      conftest$ac_exeext conftest.$ac_ext
14672 ++LIBS=$ac_check_lib_save_LIBS
14673 ++fi
14674 ++echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14675 ++echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
14676 ++if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14677 ++  HAVE_XPM=yes
14678 + fi
14679
14680 +-else
14681 +-  echo "$ac_t""no" 1>&6
14682 + fi
14683
14684 ++
14685 +     if test "${HAVE_XPM}" = "yes"; then
14686 +-      echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
14687 +-echo "configure:5234: checking for XpmReturnAllocPixels preprocessor define" >&5
14688 +-      cat > conftest.$ac_ext <<EOF
14689 +-#line 5236 "configure"
14690 +-#include "confdefs.h"
14691 ++      echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14692 ++echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
14693 ++      cat >conftest.$ac_ext <<_ACEOF
14694 ++/* confdefs.h.  */
14695 ++_ACEOF
14696 ++cat confdefs.h >>conftest.$ac_ext
14697 ++cat >>conftest.$ac_ext <<_ACEOF
14698 ++/* end confdefs.h.  */
14699 + #include "X11/xpm.h"
14700 + #ifndef XpmReturnAllocPixels
14701 + no_return_alloc_pixels
14702 + #endif
14703 +-      
14704 +-EOF
14705 ++
14706 ++_ACEOF
14707 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708 +-  egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
14709 +-  rm -rf conftest*
14710 ++  $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14711 +   HAVE_XPM=no
14712 + else
14713 +-  rm -rf conftest*
14714 +   HAVE_XPM=yes
14715 + fi
14716 + rm -f conftest*
14717
14718
14719 +       if test "${HAVE_XPM}" = "yes"; then
14720 +-      echo "$ac_t""yes" 1>&6
14721 ++      echo "$as_me:$LINENO: result: yes" >&5
14722 ++echo "${ECHO_T}yes" >&6
14723 +       else
14724 +-      echo "$ac_t""no" 1>&6
14725 ++      echo "$as_me:$LINENO: result: no" >&5
14726 ++echo "${ECHO_T}no" >&6
14727 +       fi
14728 +     fi
14729 +   fi
14730
14731 +   if test "${HAVE_XPM}" = "yes"; then
14732 +-    cat >> confdefs.h <<\EOF
14733 ++    cat >>confdefs.h <<\_ACEOF
14734 + #define HAVE_XPM 1
14735 +-EOF
14736 ++_ACEOF
14737
14738 +   fi
14739 + fi
14740 +-  
14741 ++
14742 + ### Use -ljpeg if available, unless `--with-jpeg=no'.
14743 + HAVE_JPEG=no
14744 + if test "${HAVE_X11}" = "yes"; then
14745 +   if test "${with_jpeg}" != "no"; then
14746 +-            ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
14747 +-echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
14748 +-echo "configure:5277: checking for jerror.h" >&5
14749 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14750 +-  echo $ac_n "(cached) $ac_c" 1>&6
14751 +-else
14752 +-  cat > conftest.$ac_ext <<EOF
14753 +-#line 5282 "configure"
14754 +-#include "confdefs.h"
14755 ++            if test "${ac_cv_header_jerror_h+set}" = set; then
14756 ++  echo "$as_me:$LINENO: checking for jerror.h" >&5
14757 ++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
14758 ++if test "${ac_cv_header_jerror_h+set}" = set; then
14759 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14760 ++fi
14761 ++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14762 ++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
14763 ++else
14764 ++  # Is the header compilable?
14765 ++echo "$as_me:$LINENO: checking jerror.h usability" >&5
14766 ++echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
14767 ++cat >conftest.$ac_ext <<_ACEOF
14768 ++/* confdefs.h.  */
14769 ++_ACEOF
14770 ++cat confdefs.h >>conftest.$ac_ext
14771 ++cat >>conftest.$ac_ext <<_ACEOF
14772 ++/* end confdefs.h.  */
14773 ++$ac_includes_default
14774 + #include <jerror.h>
14775 +-EOF
14776 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14777 +-{ (eval echo configure:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14778 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14779 +-if test -z "$ac_err"; then
14780 +-  rm -rf conftest*
14781 +-  eval "ac_cv_header_$ac_safe=yes"
14782 +-else
14783 +-  echo "$ac_err" >&5
14784 +-  echo "configure: failed program was:" >&5
14785 +-  cat conftest.$ac_ext >&5
14786 +-  rm -rf conftest*
14787 +-  eval "ac_cv_header_$ac_safe=no"
14788 +-fi
14789 +-rm -f conftest*
14790 ++_ACEOF
14791 ++rm -f conftest.$ac_objext
14792 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 ++  (eval $ac_compile) 2>conftest.er1
14794 ++  ac_status=$?
14795 ++  grep -v '^ *+' conftest.er1 >conftest.err
14796 ++  rm -f conftest.er1
14797 ++  cat conftest.err >&5
14798 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 ++  (exit $ac_status); } &&
14800 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14801 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 ++  (eval $ac_try) 2>&5
14803 ++  ac_status=$?
14804 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 ++  (exit $ac_status); }; } &&
14806 ++       { ac_try='test -s conftest.$ac_objext'
14807 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 ++  (eval $ac_try) 2>&5
14809 ++  ac_status=$?
14810 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 ++  (exit $ac_status); }; }; then
14812 ++  ac_header_compiler=yes
14813 ++else
14814 ++  echo "$as_me: failed program was:" >&5
14815 ++sed 's/^/| /' conftest.$ac_ext >&5
14816 ++
14817 ++ac_header_compiler=no
14818 ++fi
14819 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14820 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 ++echo "${ECHO_T}$ac_header_compiler" >&6
14822 ++
14823 ++# Is the header present?
14824 ++echo "$as_me:$LINENO: checking jerror.h presence" >&5
14825 ++echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
14826 ++cat >conftest.$ac_ext <<_ACEOF
14827 ++/* confdefs.h.  */
14828 ++_ACEOF
14829 ++cat confdefs.h >>conftest.$ac_ext
14830 ++cat >>conftest.$ac_ext <<_ACEOF
14831 ++/* end confdefs.h.  */
14832 ++#include <jerror.h>
14833 ++_ACEOF
14834 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14835 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14836 ++  ac_status=$?
14837 ++  grep -v '^ *+' conftest.er1 >conftest.err
14838 ++  rm -f conftest.er1
14839 ++  cat conftest.err >&5
14840 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 ++  (exit $ac_status); } >/dev/null; then
14842 ++  if test -s conftest.err; then
14843 ++    ac_cpp_err=$ac_c_preproc_warn_flag
14844 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14845 ++  else
14846 ++    ac_cpp_err=
14847 ++  fi
14848 ++else
14849 ++  ac_cpp_err=yes
14850 + fi
14851 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14852 +-  echo "$ac_t""yes" 1>&6
14853 +-  echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
14854 +-echo "configure:5304: checking for jpeg_destroy_compress in -ljpeg" >&5
14855 +-ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
14856 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14857 +-  echo $ac_n "(cached) $ac_c" 1>&6
14858 ++if test -z "$ac_cpp_err"; then
14859 ++  ac_header_preproc=yes
14860 + else
14861 +-  ac_save_LIBS="$LIBS"
14862 +-LIBS="-ljpeg  $LIBS"
14863 +-cat > conftest.$ac_ext <<EOF
14864 +-#line 5312 "configure"
14865 +-#include "confdefs.h"
14866 +-/* Override any gcc2 internal prototype to avoid an error.  */
14867 +-/* We use char because int might match the return type of a gcc2
14868 +-    builtin and then its argument prototype would still apply.  */
14869 +-char jpeg_destroy_compress();
14870 +-
14871 +-int main() {
14872 +-jpeg_destroy_compress()
14873 +-; return 0; }
14874 +-EOF
14875 +-if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 +-  rm -rf conftest*
14877 +-  eval "ac_cv_lib_$ac_lib_var=yes"
14878 +-else
14879 +-  echo "configure: failed program was:" >&5
14880 +-  cat conftest.$ac_ext >&5
14881 +-  rm -rf conftest*
14882 +-  eval "ac_cv_lib_$ac_lib_var=no"
14883 ++  echo "$as_me: failed program was:" >&5
14884 ++sed 's/^/| /' conftest.$ac_ext >&5
14885 ++
14886 ++  ac_header_preproc=no
14887 ++fi
14888 ++rm -f conftest.err conftest.$ac_ext
14889 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14890 ++echo "${ECHO_T}$ac_header_preproc" >&6
14891 ++
14892 ++# So?  What about this header?
14893 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14894 ++  yes:no: )
14895 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14896 ++echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14897 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14898 ++echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14899 ++    ac_header_preproc=yes
14900 ++    ;;
14901 ++  no:yes:* )
14902 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14903 ++echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14904 ++    { echo "$as_me:$LINENO: WARNING: jerror.h:     check for missing prerequisite headers?" >&5
14905 ++echo "$as_me: WARNING: jerror.h:     check for missing prerequisite headers?" >&2;}
14906 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14907 ++echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14908 ++    { echo "$as_me:$LINENO: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&5
14909 ++echo "$as_me: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14910 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14911 ++echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14912 ++    { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14913 ++echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14914 ++    (
14915 ++      cat <<\_ASBOX
14916 ++## ------------------------------------------ ##
14917 ++## Report this to the AC_PACKAGE_NAME lists.  ##
14918 ++## ------------------------------------------ ##
14919 ++_ASBOX
14920 ++    ) |
14921 ++      sed "s/^/$as_me: WARNING:     /" >&2
14922 ++    ;;
14923 ++esac
14924 ++echo "$as_me:$LINENO: checking for jerror.h" >&5
14925 ++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
14926 ++if test "${ac_cv_header_jerror_h+set}" = set; then
14927 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14928 ++else
14929 ++  ac_cv_header_jerror_h=$ac_header_preproc
14930 + fi
14931 +-rm -f conftest*
14932 +-LIBS="$ac_save_LIBS"
14933 ++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14934 ++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
14935
14936 + fi
14937 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14938 +-  echo "$ac_t""yes" 1>&6
14939 +-  HAVE_JPEG=yes
14940 ++if test $ac_cv_header_jerror_h = yes; then
14941 ++  echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14942 ++echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
14943 ++if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14944 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
14945 + else
14946 +-  echo "$ac_t""no" 1>&6
14947 ++  ac_check_lib_save_LIBS=$LIBS
14948 ++LIBS="-ljpeg  $LIBS"
14949 ++cat >conftest.$ac_ext <<_ACEOF
14950 ++/* confdefs.h.  */
14951 ++_ACEOF
14952 ++cat confdefs.h >>conftest.$ac_ext
14953 ++cat >>conftest.$ac_ext <<_ACEOF
14954 ++/* end confdefs.h.  */
14955 ++
14956 ++/* Override any gcc2 internal prototype to avoid an error.  */
14957 ++#ifdef __cplusplus
14958 ++extern "C"
14959 ++#endif
14960 ++/* We use char because int might match the return type of a gcc2
14961 ++   builtin and then its argument prototype would still apply.  */
14962 ++char jpeg_destroy_compress ();
14963 ++int
14964 ++main ()
14965 ++{
14966 ++jpeg_destroy_compress ();
14967 ++  ;
14968 ++  return 0;
14969 ++}
14970 ++_ACEOF
14971 ++rm -f conftest.$ac_objext conftest$ac_exeext
14972 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 ++  (eval $ac_link) 2>conftest.er1
14974 ++  ac_status=$?
14975 ++  grep -v '^ *+' conftest.er1 >conftest.err
14976 ++  rm -f conftest.er1
14977 ++  cat conftest.err >&5
14978 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 ++  (exit $ac_status); } &&
14980 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14981 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 ++  (eval $ac_try) 2>&5
14983 ++  ac_status=$?
14984 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 ++  (exit $ac_status); }; } &&
14986 ++       { ac_try='test -s conftest$ac_exeext'
14987 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 ++  (eval $ac_try) 2>&5
14989 ++  ac_status=$?
14990 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 ++  (exit $ac_status); }; }; then
14992 ++  ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14993 ++else
14994 ++  echo "$as_me: failed program was:" >&5
14995 ++sed 's/^/| /' conftest.$ac_ext >&5
14996 ++
14997 ++ac_cv_lib_jpeg_jpeg_destroy_compress=no
14998 ++fi
14999 ++rm -f conftest.err conftest.$ac_objext \
15000 ++      conftest$ac_exeext conftest.$ac_ext
15001 ++LIBS=$ac_check_lib_save_LIBS
15002 ++fi
15003 ++echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15004 ++echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
15005 ++if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15006 ++  HAVE_JPEG=yes
15007 + fi
15008
15009 +-else
15010 +-  echo "$ac_t""no" 1>&6
15011 + fi
15012
15013 ++
15014 +   fi
15015
15016 +   if test "${HAVE_JPEG}" = "yes"; then
15017 +-    cat >> confdefs.h <<\EOF
15018 ++    cat >>confdefs.h <<\_ACEOF
15019 + #define HAVE_JPEG 1
15020 +-EOF
15021 ++_ACEOF
15022
15023 +-    cat > conftest.$ac_ext <<EOF
15024 +-#line 5355 "configure"
15025 +-#include "confdefs.h"
15026 ++    cat >conftest.$ac_ext <<_ACEOF
15027 ++/* confdefs.h.  */
15028 ++_ACEOF
15029 ++cat confdefs.h >>conftest.$ac_ext
15030 ++cat >>conftest.$ac_ext <<_ACEOF
15031 ++/* end confdefs.h.  */
15032 +         #include <jpeglib.h>
15033 +        version=JPEG_LIB_VERSION
15034
15035 +-EOF
15036 ++_ACEOF
15037 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038 +-  egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15039 +-  rm -rf conftest*
15040 +-  cat >> confdefs.h <<\EOF
15041 ++  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15042 ++  cat >>confdefs.h <<\_ACEOF
15043 + #define HAVE_JPEG 1
15044 +-EOF
15045 ++_ACEOF
15046
15047 + else
15048 +-  rm -rf conftest*
15049 +-  echo "configure: warning: libjpeg found, but not version 6b or later" 1>&2
15050 ++  { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15051 ++echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15052 +         HAVE_JPEG=no
15053 + fi
15054 + rm -f conftest*
15055
15056 +   fi
15057 + fi
15058 +-  
15059 ++
15060 + ### Use -lpng if available, unless `--with-png=no'.
15061 + HAVE_PNG=no
15062 + if test "${HAVE_X11}" = "yes"; then
15063 +   if test "${with_png}" != "no"; then
15064 +-    ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15065 +-echo $ac_n "checking for png.h""... $ac_c" 1>&6
15066 +-echo "configure:5384: checking for png.h" >&5
15067 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15068 +-  echo $ac_n "(cached) $ac_c" 1>&6
15069 +-else
15070 +-  cat > conftest.$ac_ext <<EOF
15071 +-#line 5389 "configure"
15072 +-#include "confdefs.h"
15073 ++    if test "${ac_cv_header_png_h+set}" = set; then
15074 ++  echo "$as_me:$LINENO: checking for png.h" >&5
15075 ++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15076 ++if test "${ac_cv_header_png_h+set}" = set; then
15077 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15078 ++fi
15079 ++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15080 ++echo "${ECHO_T}$ac_cv_header_png_h" >&6
15081 ++else
15082 ++  # Is the header compilable?
15083 ++echo "$as_me:$LINENO: checking png.h usability" >&5
15084 ++echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
15085 ++cat >conftest.$ac_ext <<_ACEOF
15086 ++/* confdefs.h.  */
15087 ++_ACEOF
15088 ++cat confdefs.h >>conftest.$ac_ext
15089 ++cat >>conftest.$ac_ext <<_ACEOF
15090 ++/* end confdefs.h.  */
15091 ++$ac_includes_default
15092 + #include <png.h>
15093 +-EOF
15094 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15095 +-{ (eval echo configure:5394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15096 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15097 +-if test -z "$ac_err"; then
15098 +-  rm -rf conftest*
15099 +-  eval "ac_cv_header_$ac_safe=yes"
15100 +-else
15101 +-  echo "$ac_err" >&5
15102 +-  echo "configure: failed program was:" >&5
15103 +-  cat conftest.$ac_ext >&5
15104 +-  rm -rf conftest*
15105 +-  eval "ac_cv_header_$ac_safe=no"
15106 ++_ACEOF
15107 ++rm -f conftest.$ac_objext
15108 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 ++  (eval $ac_compile) 2>conftest.er1
15110 ++  ac_status=$?
15111 ++  grep -v '^ *+' conftest.er1 >conftest.err
15112 ++  rm -f conftest.er1
15113 ++  cat conftest.err >&5
15114 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 ++  (exit $ac_status); } &&
15116 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15117 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 ++  (eval $ac_try) 2>&5
15119 ++  ac_status=$?
15120 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 ++  (exit $ac_status); }; } &&
15122 ++       { ac_try='test -s conftest.$ac_objext'
15123 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 ++  (eval $ac_try) 2>&5
15125 ++  ac_status=$?
15126 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 ++  (exit $ac_status); }; }; then
15128 ++  ac_header_compiler=yes
15129 ++else
15130 ++  echo "$as_me: failed program was:" >&5
15131 ++sed 's/^/| /' conftest.$ac_ext >&5
15132 ++
15133 ++ac_header_compiler=no
15134 ++fi
15135 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 ++echo "${ECHO_T}$ac_header_compiler" >&6
15138 ++
15139 ++# Is the header present?
15140 ++echo "$as_me:$LINENO: checking png.h presence" >&5
15141 ++echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
15142 ++cat >conftest.$ac_ext <<_ACEOF
15143 ++/* confdefs.h.  */
15144 ++_ACEOF
15145 ++cat confdefs.h >>conftest.$ac_ext
15146 ++cat >>conftest.$ac_ext <<_ACEOF
15147 ++/* end confdefs.h.  */
15148 ++#include <png.h>
15149 ++_ACEOF
15150 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15151 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15152 ++  ac_status=$?
15153 ++  grep -v '^ *+' conftest.er1 >conftest.err
15154 ++  rm -f conftest.er1
15155 ++  cat conftest.err >&5
15156 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 ++  (exit $ac_status); } >/dev/null; then
15158 ++  if test -s conftest.err; then
15159 ++    ac_cpp_err=$ac_c_preproc_warn_flag
15160 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15161 ++  else
15162 ++    ac_cpp_err=
15163 ++  fi
15164 ++else
15165 ++  ac_cpp_err=yes
15166 + fi
15167 +-rm -f conftest*
15168 +-fi
15169 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15170 +-  echo "$ac_t""yes" 1>&6
15171 +-  echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
15172 +-echo "configure:5411: checking for png_get_channels in -lpng" >&5
15173 +-ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
15174 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15175 +-  echo $ac_n "(cached) $ac_c" 1>&6
15176 ++if test -z "$ac_cpp_err"; then
15177 ++  ac_header_preproc=yes
15178 + else
15179 +-  ac_save_LIBS="$LIBS"
15180 +-LIBS="-lpng -lz -lm $LIBS"
15181 +-cat > conftest.$ac_ext <<EOF
15182 +-#line 5419 "configure"
15183 +-#include "confdefs.h"
15184 +-/* Override any gcc2 internal prototype to avoid an error.  */
15185 +-/* We use char because int might match the return type of a gcc2
15186 +-    builtin and then its argument prototype would still apply.  */
15187 +-char png_get_channels();
15188 +-
15189 +-int main() {
15190 +-png_get_channels()
15191 +-; return 0; }
15192 +-EOF
15193 +-if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15194 +-  rm -rf conftest*
15195 +-  eval "ac_cv_lib_$ac_lib_var=yes"
15196 +-else
15197 +-  echo "configure: failed program was:" >&5
15198 +-  cat conftest.$ac_ext >&5
15199 +-  rm -rf conftest*
15200 +-  eval "ac_cv_lib_$ac_lib_var=no"
15201 ++  echo "$as_me: failed program was:" >&5
15202 ++sed 's/^/| /' conftest.$ac_ext >&5
15203 ++
15204 ++  ac_header_preproc=no
15205 ++fi
15206 ++rm -f conftest.err conftest.$ac_ext
15207 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15208 ++echo "${ECHO_T}$ac_header_preproc" >&6
15209 ++
15210 ++# So?  What about this header?
15211 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15212 ++  yes:no: )
15213 ++    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
15214 ++echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15215 ++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
15216 ++echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
15217 ++    ac_header_preproc=yes
15218 ++    ;;
15219 ++  no:yes:* )
15220 ++    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
15221 ++echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
15222 ++    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
15223 ++echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
15224 ++    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
15225 ++echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
15226 ++    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
15227 ++echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15228 ++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
15229 ++echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
15230 ++    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
15231 ++echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
15232 ++    (
15233 ++      cat <<\_ASBOX
15234 ++## ------------------------------------------ ##
15235 ++## Report this to the AC_PACKAGE_NAME lists.  ##
15236 ++## ------------------------------------------ ##
15237 ++_ASBOX
15238 ++    ) |
15239 ++      sed "s/^/$as_me: WARNING:     /" >&2
15240 ++    ;;
15241 ++esac
15242 ++echo "$as_me:$LINENO: checking for png.h" >&5
15243 ++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
15244 ++if test "${ac_cv_header_png_h+set}" = set; then
15245 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15246 ++else
15247 ++  ac_cv_header_png_h=$ac_header_preproc
15248 + fi
15249 +-rm -f conftest*
15250 +-LIBS="$ac_save_LIBS"
15251 ++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
15252 ++echo "${ECHO_T}$ac_cv_header_png_h" >&6
15253
15254 + fi
15255 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15256 +-  echo "$ac_t""yes" 1>&6
15257 +-  HAVE_PNG=yes
15258 ++if test $ac_cv_header_png_h = yes; then
15259 ++  echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15260 ++echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
15261 ++if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15262 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15263 + else
15264 +-  echo "$ac_t""no" 1>&6
15265 ++  ac_check_lib_save_LIBS=$LIBS
15266 ++LIBS="-lpng -lz -lm $LIBS"
15267 ++cat >conftest.$ac_ext <<_ACEOF
15268 ++/* confdefs.h.  */
15269 ++_ACEOF
15270 ++cat confdefs.h >>conftest.$ac_ext
15271 ++cat >>conftest.$ac_ext <<_ACEOF
15272 ++/* end confdefs.h.  */
15273 ++
15274 ++/* Override any gcc2 internal prototype to avoid an error.  */
15275 ++#ifdef __cplusplus
15276 ++extern "C"
15277 ++#endif
15278 ++/* We use char because int might match the return type of a gcc2
15279 ++   builtin and then its argument prototype would still apply.  */
15280 ++char png_get_channels ();
15281 ++int
15282 ++main ()
15283 ++{
15284 ++png_get_channels ();
15285 ++  ;
15286 ++  return 0;
15287 ++}
15288 ++_ACEOF
15289 ++rm -f conftest.$ac_objext conftest$ac_exeext
15290 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 ++  (eval $ac_link) 2>conftest.er1
15292 ++  ac_status=$?
15293 ++  grep -v '^ *+' conftest.er1 >conftest.err
15294 ++  rm -f conftest.er1
15295 ++  cat conftest.err >&5
15296 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 ++  (exit $ac_status); } &&
15298 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15299 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 ++  (eval $ac_try) 2>&5
15301 ++  ac_status=$?
15302 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 ++  (exit $ac_status); }; } &&
15304 ++       { ac_try='test -s conftest$ac_exeext'
15305 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 ++  (eval $ac_try) 2>&5
15307 ++  ac_status=$?
15308 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 ++  (exit $ac_status); }; }; then
15310 ++  ac_cv_lib_png_png_get_channels=yes
15311 ++else
15312 ++  echo "$as_me: failed program was:" >&5
15313 ++sed 's/^/| /' conftest.$ac_ext >&5
15314 ++
15315 ++ac_cv_lib_png_png_get_channels=no
15316 ++fi
15317 ++rm -f conftest.err conftest.$ac_objext \
15318 ++      conftest$ac_exeext conftest.$ac_ext
15319 ++LIBS=$ac_check_lib_save_LIBS
15320 ++fi
15321 ++echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15322 ++echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
15323 ++if test $ac_cv_lib_png_png_get_channels = yes; then
15324 ++  HAVE_PNG=yes
15325 + fi
15326
15327 +-else
15328 +-  echo "$ac_t""no" 1>&6
15329 + fi
15330
15331 ++
15332 +   fi
15333
15334 +   if test "${HAVE_PNG}" = "yes"; then
15335 +-    cat >> confdefs.h <<\EOF
15336 ++    cat >>confdefs.h <<\_ACEOF
15337 + #define HAVE_PNG 1
15338 +-EOF
15339 ++_ACEOF
15340
15341 +   fi
15342 + fi
15343 +-  
15344 ++
15345 + ### Use -ltiff if available, unless `--with-tiff=no'.
15346 + HAVE_TIFF=no
15347 + if test "${HAVE_X11}" = "yes"; then
15348 +   if test "${with_tiff}" != "no"; then
15349 +-    ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15350 +-echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15351 +-echo "configure:5470: checking for tiffio.h" >&5
15352 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15353 +-  echo $ac_n "(cached) $ac_c" 1>&6
15354 +-else
15355 +-  cat > conftest.$ac_ext <<EOF
15356 +-#line 5475 "configure"
15357 +-#include "confdefs.h"
15358 ++    if test "${ac_cv_header_tiffio_h+set}" = set; then
15359 ++  echo "$as_me:$LINENO: checking for tiffio.h" >&5
15360 ++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
15361 ++if test "${ac_cv_header_tiffio_h+set}" = set; then
15362 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15363 ++fi
15364 ++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15365 ++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
15366 ++else
15367 ++  # Is the header compilable?
15368 ++echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15369 ++echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
15370 ++cat >conftest.$ac_ext <<_ACEOF
15371 ++/* confdefs.h.  */
15372 ++_ACEOF
15373 ++cat confdefs.h >>conftest.$ac_ext
15374 ++cat >>conftest.$ac_ext <<_ACEOF
15375 ++/* end confdefs.h.  */
15376 ++$ac_includes_default
15377 + #include <tiffio.h>
15378 +-EOF
15379 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15380 +-{ (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15381 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15382 +-if test -z "$ac_err"; then
15383 +-  rm -rf conftest*
15384 +-  eval "ac_cv_header_$ac_safe=yes"
15385 +-else
15386 +-  echo "$ac_err" >&5
15387 +-  echo "configure: failed program was:" >&5
15388 +-  cat conftest.$ac_ext >&5
15389 +-  rm -rf conftest*
15390 +-  eval "ac_cv_header_$ac_safe=no"
15391 ++_ACEOF
15392 ++rm -f conftest.$ac_objext
15393 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 ++  (eval $ac_compile) 2>conftest.er1
15395 ++  ac_status=$?
15396 ++  grep -v '^ *+' conftest.er1 >conftest.err
15397 ++  rm -f conftest.er1
15398 ++  cat conftest.err >&5
15399 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 ++  (exit $ac_status); } &&
15401 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15402 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 ++  (eval $ac_try) 2>&5
15404 ++  ac_status=$?
15405 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 ++  (exit $ac_status); }; } &&
15407 ++       { ac_try='test -s conftest.$ac_objext'
15408 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 ++  (eval $ac_try) 2>&5
15410 ++  ac_status=$?
15411 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 ++  (exit $ac_status); }; }; then
15413 ++  ac_header_compiler=yes
15414 ++else
15415 ++  echo "$as_me: failed program was:" >&5
15416 ++sed 's/^/| /' conftest.$ac_ext >&5
15417 ++
15418 ++ac_header_compiler=no
15419 ++fi
15420 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 ++echo "${ECHO_T}$ac_header_compiler" >&6
15423 ++
15424 ++# Is the header present?
15425 ++echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15426 ++echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
15427 ++cat >conftest.$ac_ext <<_ACEOF
15428 ++/* confdefs.h.  */
15429 ++_ACEOF
15430 ++cat confdefs.h >>conftest.$ac_ext
15431 ++cat >>conftest.$ac_ext <<_ACEOF
15432 ++/* end confdefs.h.  */
15433 ++#include <tiffio.h>
15434 ++_ACEOF
15435 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15436 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15437 ++  ac_status=$?
15438 ++  grep -v '^ *+' conftest.er1 >conftest.err
15439 ++  rm -f conftest.er1
15440 ++  cat conftest.err >&5
15441 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 ++  (exit $ac_status); } >/dev/null; then
15443 ++  if test -s conftest.err; then
15444 ++    ac_cpp_err=$ac_c_preproc_warn_flag
15445 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446 ++  else
15447 ++    ac_cpp_err=
15448 ++  fi
15449 ++else
15450 ++  ac_cpp_err=yes
15451 + fi
15452 +-rm -f conftest*
15453 ++if test -z "$ac_cpp_err"; then
15454 ++  ac_header_preproc=yes
15455 ++else
15456 ++  echo "$as_me: failed program was:" >&5
15457 ++sed 's/^/| /' conftest.$ac_ext >&5
15458 ++
15459 ++  ac_header_preproc=no
15460 ++fi
15461 ++rm -f conftest.err conftest.$ac_ext
15462 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 ++echo "${ECHO_T}$ac_header_preproc" >&6
15464 ++
15465 ++# So?  What about this header?
15466 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 ++  yes:no: )
15468 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15469 ++echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15471 ++echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15472 ++    ac_header_preproc=yes
15473 ++    ;;
15474 ++  no:yes:* )
15475 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15476 ++echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15477 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
15478 ++echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
15479 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15480 ++echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15481 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
15482 ++echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15483 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15484 ++echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15485 ++    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15486 ++echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15487 ++    (
15488 ++      cat <<\_ASBOX
15489 ++## ------------------------------------------ ##
15490 ++## Report this to the AC_PACKAGE_NAME lists.  ##
15491 ++## ------------------------------------------ ##
15492 ++_ASBOX
15493 ++    ) |
15494 ++      sed "s/^/$as_me: WARNING:     /" >&2
15495 ++    ;;
15496 ++esac
15497 ++echo "$as_me:$LINENO: checking for tiffio.h" >&5
15498 ++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
15499 ++if test "${ac_cv_header_tiffio_h+set}" = set; then
15500 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15501 ++else
15502 ++  ac_cv_header_tiffio_h=$ac_header_preproc
15503 ++fi
15504 ++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15505 ++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
15506 ++
15507 + fi
15508 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15509 +-  echo "$ac_t""yes" 1>&6
15510 ++if test $ac_cv_header_tiffio_h = yes; then
15511 +   tifflibs="-lz -lm"
15512 +       # At least one tiff package requires the jpeg library.
15513 +       if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15514 +-      echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
15515 +-echo "configure:5500: checking for TIFFGetVersion in -ltiff" >&5
15516 +-ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
15517 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15518 +-  echo $ac_n "(cached) $ac_c" 1>&6
15519 ++      echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15520 ++echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
15521 ++if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15522 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15523 + else
15524 +-  ac_save_LIBS="$LIBS"
15525 ++  ac_check_lib_save_LIBS=$LIBS
15526 + LIBS="-ltiff $tifflibs $LIBS"
15527 +-cat > conftest.$ac_ext <<EOF
15528 +-#line 5508 "configure"
15529 +-#include "confdefs.h"
15530 +-/* Override any gcc2 internal prototype to avoid an error.  */
15531 +-/* We use char because int might match the return type of a gcc2
15532 +-    builtin and then its argument prototype would still apply.  */
15533 +-char TIFFGetVersion();
15534 +-
15535 +-int main() {
15536 +-TIFFGetVersion()
15537 +-; return 0; }
15538 +-EOF
15539 +-if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 +-  rm -rf conftest*
15541 +-  eval "ac_cv_lib_$ac_lib_var=yes"
15542 +-else
15543 +-  echo "configure: failed program was:" >&5
15544 +-  cat conftest.$ac_ext >&5
15545 +-  rm -rf conftest*
15546 +-  eval "ac_cv_lib_$ac_lib_var=no"
15547 +-fi
15548 +-rm -f conftest*
15549 +-LIBS="$ac_save_LIBS"
15550 ++cat >conftest.$ac_ext <<_ACEOF
15551 ++/* confdefs.h.  */
15552 ++_ACEOF
15553 ++cat confdefs.h >>conftest.$ac_ext
15554 ++cat >>conftest.$ac_ext <<_ACEOF
15555 ++/* end confdefs.h.  */
15556
15557 +-fi
15558 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15559 +-  echo "$ac_t""yes" 1>&6
15560 ++/* Override any gcc2 internal prototype to avoid an error.  */
15561 ++#ifdef __cplusplus
15562 ++extern "C"
15563 ++#endif
15564 ++/* We use char because int might match the return type of a gcc2
15565 ++   builtin and then its argument prototype would still apply.  */
15566 ++char TIFFGetVersion ();
15567 ++int
15568 ++main ()
15569 ++{
15570 ++TIFFGetVersion ();
15571 ++  ;
15572 ++  return 0;
15573 ++}
15574 ++_ACEOF
15575 ++rm -f conftest.$ac_objext conftest$ac_exeext
15576 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15577 ++  (eval $ac_link) 2>conftest.er1
15578 ++  ac_status=$?
15579 ++  grep -v '^ *+' conftest.er1 >conftest.err
15580 ++  rm -f conftest.er1
15581 ++  cat conftest.err >&5
15582 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 ++  (exit $ac_status); } &&
15584 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15585 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 ++  (eval $ac_try) 2>&5
15587 ++  ac_status=$?
15588 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 ++  (exit $ac_status); }; } &&
15590 ++       { ac_try='test -s conftest$ac_exeext'
15591 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 ++  (eval $ac_try) 2>&5
15593 ++  ac_status=$?
15594 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 ++  (exit $ac_status); }; }; then
15596 ++  ac_cv_lib_tiff_TIFFGetVersion=yes
15597 ++else
15598 ++  echo "$as_me: failed program was:" >&5
15599 ++sed 's/^/| /' conftest.$ac_ext >&5
15600 ++
15601 ++ac_cv_lib_tiff_TIFFGetVersion=no
15602 ++fi
15603 ++rm -f conftest.err conftest.$ac_objext \
15604 ++      conftest$ac_exeext conftest.$ac_ext
15605 ++LIBS=$ac_check_lib_save_LIBS
15606 ++fi
15607 ++echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15608 ++echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
15609 ++if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15610 +   HAVE_TIFF=yes
15611 +-else
15612 +-  echo "$ac_t""no" 1>&6
15613 + fi
15614
15615 +-else
15616 +-  echo "$ac_t""no" 1>&6
15617 + fi
15618
15619 ++
15620 +   fi
15621
15622 +   if test "${HAVE_TIFF}" = "yes"; then
15623 +-    cat >> confdefs.h <<\EOF
15624 ++    cat >>confdefs.h <<\_ACEOF
15625 + #define HAVE_TIFF 1
15626 +-EOF
15627 ++_ACEOF
15628
15629 +   fi
15630 + fi
15631 +-  
15632 ++
15633 + ### Use -lgif if available, unless `--with-gif=no'.
15634 + HAVE_GIF=no
15635 + if test "${HAVE_X11}" = "yes"; then
15636 +   if test "${with_gif}" != "no"; then
15637 +-    ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
15638 +-echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
15639 +-echo "configure:5559: checking for gif_lib.h" >&5
15640 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15641 +-  echo $ac_n "(cached) $ac_c" 1>&6
15642 +-else
15643 +-  cat > conftest.$ac_ext <<EOF
15644 +-#line 5564 "configure"
15645 +-#include "confdefs.h"
15646 ++    if test "${ac_cv_header_gif_lib_h+set}" = set; then
15647 ++  echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15648 ++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
15649 ++if test "${ac_cv_header_gif_lib_h+set}" = set; then
15650 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ++fi
15652 ++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15653 ++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
15654 ++else
15655 ++  # Is the header compilable?
15656 ++echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15657 ++echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
15658 ++cat >conftest.$ac_ext <<_ACEOF
15659 ++/* confdefs.h.  */
15660 ++_ACEOF
15661 ++cat confdefs.h >>conftest.$ac_ext
15662 ++cat >>conftest.$ac_ext <<_ACEOF
15663 ++/* end confdefs.h.  */
15664 ++$ac_includes_default
15665 + #include <gif_lib.h>
15666 +-EOF
15667 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15668 +-{ (eval echo configure:5569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15669 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15670 +-if test -z "$ac_err"; then
15671 +-  rm -rf conftest*
15672 +-  eval "ac_cv_header_$ac_safe=yes"
15673 +-else
15674 +-  echo "$ac_err" >&5
15675 +-  echo "configure: failed program was:" >&5
15676 +-  cat conftest.$ac_ext >&5
15677 +-  rm -rf conftest*
15678 +-  eval "ac_cv_header_$ac_safe=no"
15679 ++_ACEOF
15680 ++rm -f conftest.$ac_objext
15681 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 ++  (eval $ac_compile) 2>conftest.er1
15683 ++  ac_status=$?
15684 ++  grep -v '^ *+' conftest.er1 >conftest.err
15685 ++  rm -f conftest.er1
15686 ++  cat conftest.err >&5
15687 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 ++  (exit $ac_status); } &&
15689 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15690 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 ++  (eval $ac_try) 2>&5
15692 ++  ac_status=$?
15693 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 ++  (exit $ac_status); }; } &&
15695 ++       { ac_try='test -s conftest.$ac_objext'
15696 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 ++  (eval $ac_try) 2>&5
15698 ++  ac_status=$?
15699 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 ++  (exit $ac_status); }; }; then
15701 ++  ac_header_compiler=yes
15702 ++else
15703 ++  echo "$as_me: failed program was:" >&5
15704 ++sed 's/^/| /' conftest.$ac_ext >&5
15705 ++
15706 ++ac_header_compiler=no
15707 ++fi
15708 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15709 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 ++echo "${ECHO_T}$ac_header_compiler" >&6
15711 ++
15712 ++# Is the header present?
15713 ++echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15714 ++echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
15715 ++cat >conftest.$ac_ext <<_ACEOF
15716 ++/* confdefs.h.  */
15717 ++_ACEOF
15718 ++cat confdefs.h >>conftest.$ac_ext
15719 ++cat >>conftest.$ac_ext <<_ACEOF
15720 ++/* end confdefs.h.  */
15721 ++#include <gif_lib.h>
15722 ++_ACEOF
15723 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15724 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15725 ++  ac_status=$?
15726 ++  grep -v '^ *+' conftest.er1 >conftest.err
15727 ++  rm -f conftest.er1
15728 ++  cat conftest.err >&5
15729 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 ++  (exit $ac_status); } >/dev/null; then
15731 ++  if test -s conftest.err; then
15732 ++    ac_cpp_err=$ac_c_preproc_warn_flag
15733 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734 ++  else
15735 ++    ac_cpp_err=
15736 ++  fi
15737 ++else
15738 ++  ac_cpp_err=yes
15739 + fi
15740 +-rm -f conftest*
15741 ++if test -z "$ac_cpp_err"; then
15742 ++  ac_header_preproc=yes
15743 ++else
15744 ++  echo "$as_me: failed program was:" >&5
15745 ++sed 's/^/| /' conftest.$ac_ext >&5
15746 ++
15747 ++  ac_header_preproc=no
15748 ++fi
15749 ++rm -f conftest.err conftest.$ac_ext
15750 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751 ++echo "${ECHO_T}$ac_header_preproc" >&6
15752 ++
15753 ++# So?  What about this header?
15754 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15755 ++  yes:no: )
15756 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15757 ++echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15759 ++echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15760 ++    ac_header_preproc=yes
15761 ++    ;;
15762 ++  no:yes:* )
15763 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15764 ++echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15765 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&5
15766 ++echo "$as_me: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&2;}
15767 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15768 ++echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15769 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
15770 ++echo "$as_me: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15771 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15772 ++echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15773 ++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15774 ++echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15775 ++    (
15776 ++      cat <<\_ASBOX
15777 ++## ------------------------------------------ ##
15778 ++## Report this to the AC_PACKAGE_NAME lists.  ##
15779 ++## ------------------------------------------ ##
15780 ++_ASBOX
15781 ++    ) |
15782 ++      sed "s/^/$as_me: WARNING:     /" >&2
15783 ++    ;;
15784 ++esac
15785 ++echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15786 ++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
15787 ++if test "${ac_cv_header_gif_lib_h+set}" = set; then
15788 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ++else
15790 ++  ac_cv_header_gif_lib_h=$ac_header_preproc
15791 ++fi
15792 ++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15793 ++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
15794 ++
15795 + fi
15796 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15797 +-  echo "$ac_t""yes" 1>&6
15798 ++if test $ac_cv_header_gif_lib_h = yes; then
15799 +   # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15800 + # Earlier versions can crash Emacs.
15801 +-      echo $ac_n "checking for EGifPutExtensionLast in -lungif""... $ac_c" 1>&6
15802 +-echo "configure:5588: checking for EGifPutExtensionLast in -lungif" >&5
15803 +-ac_lib_var=`echo ungif'_'EGifPutExtensionLast | sed 'y%./+-%__p_%'`
15804 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15805 +-  echo $ac_n "(cached) $ac_c" 1>&6
15806 ++      echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15807 ++echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
15808 ++if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15809 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15810 + else
15811 +-  ac_save_LIBS="$LIBS"
15812 ++  ac_check_lib_save_LIBS=$LIBS
15813 + LIBS="-lungif  $LIBS"
15814 +-cat > conftest.$ac_ext <<EOF
15815 +-#line 5596 "configure"
15816 +-#include "confdefs.h"
15817 +-/* Override any gcc2 internal prototype to avoid an error.  */
15818 +-/* We use char because int might match the return type of a gcc2
15819 +-    builtin and then its argument prototype would still apply.  */
15820 +-char EGifPutExtensionLast();
15821 +-
15822 +-int main() {
15823 +-EGifPutExtensionLast()
15824 +-; return 0; }
15825 +-EOF
15826 +-if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15827 +-  rm -rf conftest*
15828 +-  eval "ac_cv_lib_$ac_lib_var=yes"
15829 +-else
15830 +-  echo "configure: failed program was:" >&5
15831 +-  cat conftest.$ac_ext >&5
15832 +-  rm -rf conftest*
15833 +-  eval "ac_cv_lib_$ac_lib_var=no"
15834 +-fi
15835 +-rm -f conftest*
15836 +-LIBS="$ac_save_LIBS"
15837 ++cat >conftest.$ac_ext <<_ACEOF
15838 ++/* confdefs.h.  */
15839 ++_ACEOF
15840 ++cat confdefs.h >>conftest.$ac_ext
15841 ++cat >>conftest.$ac_ext <<_ACEOF
15842 ++/* end confdefs.h.  */
15843
15844 +-fi
15845 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15846 +-  echo "$ac_t""yes" 1>&6
15847 ++/* Override any gcc2 internal prototype to avoid an error.  */
15848 ++#ifdef __cplusplus
15849 ++extern "C"
15850 ++#endif
15851 ++/* We use char because int might match the return type of a gcc2
15852 ++   builtin and then its argument prototype would still apply.  */
15853 ++char EGifPutExtensionLast ();
15854 ++int
15855 ++main ()
15856 ++{
15857 ++EGifPutExtensionLast ();
15858 ++  ;
15859 ++  return 0;
15860 ++}
15861 ++_ACEOF
15862 ++rm -f conftest.$ac_objext conftest$ac_exeext
15863 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 ++  (eval $ac_link) 2>conftest.er1
15865 ++  ac_status=$?
15866 ++  grep -v '^ *+' conftest.er1 >conftest.err
15867 ++  rm -f conftest.er1
15868 ++  cat conftest.err >&5
15869 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 ++  (exit $ac_status); } &&
15871 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15872 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 ++  (eval $ac_try) 2>&5
15874 ++  ac_status=$?
15875 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 ++  (exit $ac_status); }; } &&
15877 ++       { ac_try='test -s conftest$ac_exeext'
15878 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 ++  (eval $ac_try) 2>&5
15880 ++  ac_status=$?
15881 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 ++  (exit $ac_status); }; }; then
15883 ++  ac_cv_lib_ungif_EGifPutExtensionLast=yes
15884 ++else
15885 ++  echo "$as_me: failed program was:" >&5
15886 ++sed 's/^/| /' conftest.$ac_ext >&5
15887 ++
15888 ++ac_cv_lib_ungif_EGifPutExtensionLast=no
15889 ++fi
15890 ++rm -f conftest.err conftest.$ac_objext \
15891 ++      conftest$ac_exeext conftest.$ac_ext
15892 ++LIBS=$ac_check_lib_save_LIBS
15893 ++fi
15894 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15895 ++echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
15896 ++if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15897 +   HAVE_GIF=yes
15898 +-else
15899 +-  echo "$ac_t""no" 1>&6
15900 + fi
15901
15902 +-else
15903 +-  echo "$ac_t""no" 1>&6
15904 + fi
15905
15906 ++
15907 +   fi
15908
15909 +   if test "${HAVE_GIF}" = "yes"; then
15910 +-    cat >> confdefs.h <<\EOF
15911 ++    cat >>confdefs.h <<\_ACEOF
15912 + #define HAVE_GIF 1
15913 +-EOF
15914 ++_ACEOF
15915
15916 +   fi
15917 + fi
15918
15919 + # If netdb.h doesn't declare h_errno, we must declare it by hand.
15920 +-echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
15921 +-echo "configure:5643: checking whether netdb declares h_errno" >&5
15922 +-if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
15923 +-  echo $ac_n "(cached) $ac_c" 1>&6
15924 +-else
15925 +-  cat > conftest.$ac_ext <<EOF
15926 +-#line 5648 "configure"
15927 +-#include "confdefs.h"
15928 ++echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15929 ++echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
15930 ++if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15931 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ++else
15933 ++  cat >conftest.$ac_ext <<_ACEOF
15934 ++/* confdefs.h.  */
15935 ++_ACEOF
15936 ++cat confdefs.h >>conftest.$ac_ext
15937 ++cat >>conftest.$ac_ext <<_ACEOF
15938 ++/* end confdefs.h.  */
15939 + #include <netdb.h>
15940 +-int main() {
15941 ++int
15942 ++main ()
15943 ++{
15944 + return h_errno;
15945 +-; return 0; }
15946 +-EOF
15947 +-if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15948 +-  rm -rf conftest*
15949 ++  ;
15950 ++  return 0;
15951 ++}
15952 ++_ACEOF
15953 ++rm -f conftest.$ac_objext conftest$ac_exeext
15954 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 ++  (eval $ac_link) 2>conftest.er1
15956 ++  ac_status=$?
15957 ++  grep -v '^ *+' conftest.er1 >conftest.err
15958 ++  rm -f conftest.er1
15959 ++  cat conftest.err >&5
15960 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 ++  (exit $ac_status); } &&
15962 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15963 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 ++  (eval $ac_try) 2>&5
15965 ++  ac_status=$?
15966 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 ++  (exit $ac_status); }; } &&
15968 ++       { ac_try='test -s conftest$ac_exeext'
15969 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 ++  (eval $ac_try) 2>&5
15971 ++  ac_status=$?
15972 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 ++  (exit $ac_status); }; }; then
15974 +   emacs_cv_netdb_declares_h_errno=yes
15975 + else
15976 +-  echo "configure: failed program was:" >&5
15977 +-  cat conftest.$ac_ext >&5
15978 +-  rm -rf conftest*
15979 +-  emacs_cv_netdb_declares_h_errno=no
15980 ++  echo "$as_me: failed program was:" >&5
15981 ++sed 's/^/| /' conftest.$ac_ext >&5
15982 ++
15983 ++emacs_cv_netdb_declares_h_errno=no
15984 + fi
15985 +-rm -f conftest*
15986 ++rm -f conftest.err conftest.$ac_objext \
15987 ++      conftest$ac_exeext conftest.$ac_ext
15988 + fi
15989 +-
15990 +-echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
15991 ++echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15992 ++echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
15993 + if test $emacs_cv_netdb_declares_h_errno = yes; then
15994 +-  cat >> confdefs.h <<\EOF
15995 ++  cat >>confdefs.h <<\_ACEOF
15996 + #define HAVE_H_ERRNO 1
15997 +-EOF
15998 ++_ACEOF
15999
16000 + fi
16001
16002 + # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16003 + # for constant arguments.  Useless!
16004 +-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
16005 +-echo "configure:5678: checking for working alloca.h" >&5
16006 +-if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
16007 +-  echo $ac_n "(cached) $ac_c" 1>&6
16008 +-else
16009 +-  cat > conftest.$ac_ext <<EOF
16010 +-#line 5683 "configure"
16011 +-#include "confdefs.h"
16012 ++echo "$as_me:$LINENO: checking for working alloca.h" >&5
16013 ++echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16014 ++if test "${ac_cv_working_alloca_h+set}" = set; then
16015 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16016 ++else
16017 ++  cat >conftest.$ac_ext <<_ACEOF
16018 ++/* confdefs.h.  */
16019 ++_ACEOF
16020 ++cat confdefs.h >>conftest.$ac_ext
16021 ++cat >>conftest.$ac_ext <<_ACEOF
16022 ++/* end confdefs.h.  */
16023 + #include <alloca.h>
16024 +-int main() {
16025 +-char *p = alloca(2 * sizeof(int));
16026 +-; return 0; }
16027 +-EOF
16028 +-if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16029 +-  rm -rf conftest*
16030 +-  ac_cv_header_alloca_h=yes
16031 +-else
16032 +-  echo "configure: failed program was:" >&5
16033 +-  cat conftest.$ac_ext >&5
16034 +-  rm -rf conftest*
16035 +-  ac_cv_header_alloca_h=no
16036 +-fi
16037 +-rm -f conftest*
16038 +-fi
16039 ++int
16040 ++main ()
16041 ++{
16042 ++char *p = (char *) alloca (2 * sizeof (int));
16043 ++  ;
16044 ++  return 0;
16045 ++}
16046 ++_ACEOF
16047 ++rm -f conftest.$ac_objext conftest$ac_exeext
16048 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 ++  (eval $ac_link) 2>conftest.er1
16050 ++  ac_status=$?
16051 ++  grep -v '^ *+' conftest.er1 >conftest.err
16052 ++  rm -f conftest.er1
16053 ++  cat conftest.err >&5
16054 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 ++  (exit $ac_status); } &&
16056 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16057 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 ++  (eval $ac_try) 2>&5
16059 ++  ac_status=$?
16060 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 ++  (exit $ac_status); }; } &&
16062 ++       { ac_try='test -s conftest$ac_exeext'
16063 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 ++  (eval $ac_try) 2>&5
16065 ++  ac_status=$?
16066 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 ++  (exit $ac_status); }; }; then
16068 ++  ac_cv_working_alloca_h=yes
16069 ++else
16070 ++  echo "$as_me: failed program was:" >&5
16071 ++sed 's/^/| /' conftest.$ac_ext >&5
16072 ++
16073 ++ac_cv_working_alloca_h=no
16074 ++fi
16075 ++rm -f conftest.err conftest.$ac_objext \
16076 ++      conftest$ac_exeext conftest.$ac_ext
16077 ++fi
16078 ++echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16079 ++echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16080 ++if test $ac_cv_working_alloca_h = yes; then
16081
16082 +-echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
16083 +-if test $ac_cv_header_alloca_h = yes; then
16084 +-  cat >> confdefs.h <<\EOF
16085 ++cat >>confdefs.h <<\_ACEOF
16086 + #define HAVE_ALLOCA_H 1
16087 +-EOF
16088 ++_ACEOF
16089
16090 + fi
16091
16092 +-echo $ac_n "checking for alloca""... $ac_c" 1>&6
16093 +-echo "configure:5711: checking for alloca" >&5
16094 +-if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
16095 +-  echo $ac_n "(cached) $ac_c" 1>&6
16096 ++echo "$as_me:$LINENO: checking for alloca" >&5
16097 ++echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16098 ++if test "${ac_cv_func_alloca_works+set}" = set; then
16099 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16100 + else
16101 +-  cat > conftest.$ac_ext <<EOF
16102 +-#line 5716 "configure"
16103 +-#include "confdefs.h"
16104 +-
16105 ++  cat >conftest.$ac_ext <<_ACEOF
16106 ++/* confdefs.h.  */
16107 ++_ACEOF
16108 ++cat confdefs.h >>conftest.$ac_ext
16109 ++cat >>conftest.$ac_ext <<_ACEOF
16110 ++/* end confdefs.h.  */
16111 + #ifdef __GNUC__
16112 + # define alloca __builtin_alloca
16113 + #else
16114 +@@ -5736,137 +10307,215 @@
16115 + # endif
16116 + #endif
16117
16118 +-int main() {
16119 +-char *p = (char *) alloca(1);
16120 +-; return 0; }
16121 +-EOF
16122 +-if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16123 +-  rm -rf conftest*
16124 ++int
16125 ++main ()
16126 ++{
16127 ++char *p = (char *) alloca (1);
16128 ++  ;
16129 ++  return 0;
16130 ++}
16131 ++_ACEOF
16132 ++rm -f conftest.$ac_objext conftest$ac_exeext
16133 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 ++  (eval $ac_link) 2>conftest.er1
16135 ++  ac_status=$?
16136 ++  grep -v '^ *+' conftest.er1 >conftest.err
16137 ++  rm -f conftest.er1
16138 ++  cat conftest.err >&5
16139 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 ++  (exit $ac_status); } &&
16141 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16142 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 ++  (eval $ac_try) 2>&5
16144 ++  ac_status=$?
16145 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 ++  (exit $ac_status); }; } &&
16147 ++       { ac_try='test -s conftest$ac_exeext'
16148 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 ++  (eval $ac_try) 2>&5
16150 ++  ac_status=$?
16151 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 ++  (exit $ac_status); }; }; then
16153 +   ac_cv_func_alloca_works=yes
16154 + else
16155 +-  echo "configure: failed program was:" >&5
16156 +-  cat conftest.$ac_ext >&5
16157 +-  rm -rf conftest*
16158 +-  ac_cv_func_alloca_works=no
16159 ++  echo "$as_me: failed program was:" >&5
16160 ++sed 's/^/| /' conftest.$ac_ext >&5
16161 ++
16162 ++ac_cv_func_alloca_works=no
16163 + fi
16164 +-rm -f conftest*
16165 ++rm -f conftest.err conftest.$ac_objext \
16166 ++      conftest$ac_exeext conftest.$ac_ext
16167 + fi
16168 ++echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16169 ++echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16170
16171 +-echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
16172 + if test $ac_cv_func_alloca_works = yes; then
16173 +-  cat >> confdefs.h <<\EOF
16174 +-#define HAVE_ALLOCA 1
16175 +-EOF
16176
16177 +-fi
16178 ++cat >>confdefs.h <<\_ACEOF
16179 ++#define HAVE_ALLOCA 1
16180 ++_ACEOF
16181
16182 +-if test $ac_cv_func_alloca_works = no; then
16183 ++else
16184 +   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16185 +-  # that cause trouble.  Some versions do not even contain alloca or
16186 +-  # contain a buggy version.  If you still want to use their alloca,
16187 +-  # use ar to extract alloca.o from them instead of compiling alloca.c.
16188 +-  ALLOCA=alloca.${ac_objext}
16189 +-  cat >> confdefs.h <<\EOF
16190 ++# that cause trouble.  Some versions do not even contain alloca or
16191 ++# contain a buggy version.  If you still want to use their alloca,
16192 ++# use ar to extract alloca.o from them instead of compiling alloca.c.
16193 ++
16194 ++ALLOCA=alloca.$ac_objext
16195 ++
16196 ++cat >>confdefs.h <<\_ACEOF
16197 + #define C_ALLOCA 1
16198 +-EOF
16199 ++_ACEOF
16200
16201
16202 +-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
16203 +-echo "configure:5776: checking whether alloca needs Cray hooks" >&5
16204 +-if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
16205 +-  echo $ac_n "(cached) $ac_c" 1>&6
16206 +-else
16207 +-  cat > conftest.$ac_ext <<EOF
16208 +-#line 5781 "configure"
16209 +-#include "confdefs.h"
16210 ++echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16211 ++echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16212 ++if test "${ac_cv_os_cray+set}" = set; then
16213 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16214 ++else
16215 ++  cat >conftest.$ac_ext <<_ACEOF
16216 ++/* confdefs.h.  */
16217 ++_ACEOF
16218 ++cat confdefs.h >>conftest.$ac_ext
16219 ++cat >>conftest.$ac_ext <<_ACEOF
16220 ++/* end confdefs.h.  */
16221 + #if defined(CRAY) && ! defined(CRAY2)
16222 + webecray
16223 + #else
16224 + wenotbecray
16225 + #endif
16226
16227 +-EOF
16228 ++_ACEOF
16229 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16230 +-  egrep "webecray" >/dev/null 2>&1; then
16231 +-  rm -rf conftest*
16232 ++  $EGREP "webecray" >/dev/null 2>&1; then
16233 +   ac_cv_os_cray=yes
16234 + else
16235 +-  rm -rf conftest*
16236 +   ac_cv_os_cray=no
16237 + fi
16238 + rm -f conftest*
16239
16240 + fi
16241 +-
16242 +-echo "$ac_t""$ac_cv_os_cray" 1>&6
16243 ++echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16244 ++echo "${ECHO_T}$ac_cv_os_cray" >&6
16245 + if test $ac_cv_os_cray = yes; then
16246 +-for ac_func in _getb67 GETB67 getb67; do
16247 +-  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16248 +-echo "configure:5806: checking for $ac_func" >&5
16249 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16250 +-  echo $ac_n "(cached) $ac_c" 1>&6
16251 +-else
16252 +-  cat > conftest.$ac_ext <<EOF
16253 +-#line 5811 "configure"
16254 +-#include "confdefs.h"
16255 ++  for ac_func in _getb67 GETB67 getb67; do
16256 ++    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16257 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
16258 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16259 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
16260 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16261 ++else
16262 ++  cat >conftest.$ac_ext <<_ACEOF
16263 ++/* confdefs.h.  */
16264 ++_ACEOF
16265 ++cat confdefs.h >>conftest.$ac_ext
16266 ++cat >>conftest.$ac_ext <<_ACEOF
16267 ++/* end confdefs.h.  */
16268 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16269 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16270 ++#define $ac_func innocuous_$ac_func
16271 ++
16272 + /* System header to define __stub macros and hopefully few prototypes,
16273 +-    which can conflict with char $ac_func(); below.  */
16274 +-#include <assert.h>
16275 +-/* Override any gcc2 internal prototype to avoid an error.  */
16276 +-/* We use char because int might match the return type of a gcc2
16277 +-    builtin and then its argument prototype would still apply.  */
16278 +-char $ac_func();
16279 ++    which can conflict with char $ac_func (); below.
16280 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16281 ++    <limits.h> exists even on freestanding compilers.  */
16282 ++
16283 ++#ifdef __STDC__
16284 ++# include <limits.h>
16285 ++#else
16286 ++# include <assert.h>
16287 ++#endif
16288
16289 +-int main() {
16290 ++#undef $ac_func
16291
16292 ++/* Override any gcc2 internal prototype to avoid an error.  */
16293 ++#ifdef __cplusplus
16294 ++extern "C"
16295 ++{
16296 ++#endif
16297 ++/* We use char because int might match the return type of a gcc2
16298 ++   builtin and then its argument prototype would still apply.  */
16299 ++char $ac_func ();
16300 + /* The GNU C library defines this for functions which it implements
16301 +     to always fail with ENOSYS.  Some functions are actually named
16302 +     something starting with __ and the normal name is an alias.  */
16303 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16304 + choke me
16305 + #else
16306 +-$ac_func();
16307 ++char (*f) () = $ac_func;
16308 ++#endif
16309 ++#ifdef __cplusplus
16310 ++}
16311 + #endif
16312
16313 +-; return 0; }
16314 +-EOF
16315 +-if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16316 +-  rm -rf conftest*
16317 +-  eval "ac_cv_func_$ac_func=yes"
16318 +-else
16319 +-  echo "configure: failed program was:" >&5
16320 +-  cat conftest.$ac_ext >&5
16321 +-  rm -rf conftest*
16322 +-  eval "ac_cv_func_$ac_func=no"
16323 +-fi
16324 +-rm -f conftest*
16325 +-fi
16326 ++int
16327 ++main ()
16328 ++{
16329 ++return f != $ac_func;
16330 ++  ;
16331 ++  return 0;
16332 ++}
16333 ++_ACEOF
16334 ++rm -f conftest.$ac_objext conftest$ac_exeext
16335 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336 ++  (eval $ac_link) 2>conftest.er1
16337 ++  ac_status=$?
16338 ++  grep -v '^ *+' conftest.er1 >conftest.err
16339 ++  rm -f conftest.er1
16340 ++  cat conftest.err >&5
16341 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 ++  (exit $ac_status); } &&
16343 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16344 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 ++  (eval $ac_try) 2>&5
16346 ++  ac_status=$?
16347 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 ++  (exit $ac_status); }; } &&
16349 ++       { ac_try='test -s conftest$ac_exeext'
16350 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 ++  (eval $ac_try) 2>&5
16352 ++  ac_status=$?
16353 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 ++  (exit $ac_status); }; }; then
16355 ++  eval "$as_ac_var=yes"
16356 ++else
16357 ++  echo "$as_me: failed program was:" >&5
16358 ++sed 's/^/| /' conftest.$ac_ext >&5
16359 ++
16360 ++eval "$as_ac_var=no"
16361 ++fi
16362 ++rm -f conftest.err conftest.$ac_objext \
16363 ++      conftest$ac_exeext conftest.$ac_ext
16364 ++fi
16365 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16366 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16367 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
16368
16369 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16370 +-  echo "$ac_t""yes" 1>&6
16371 +-  cat >> confdefs.h <<EOF
16372 ++cat >>confdefs.h <<_ACEOF
16373 + #define CRAY_STACKSEG_END $ac_func
16374 +-EOF
16375 ++_ACEOF
16376
16377 +-  break
16378 +-else
16379 +-  echo "$ac_t""no" 1>&6
16380 ++    break
16381 + fi
16382
16383 +-done
16384 ++  done
16385 + fi
16386
16387 +-echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
16388 +-echo "configure:5861: checking stack direction for C alloca" >&5
16389 +-if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
16390 +-  echo $ac_n "(cached) $ac_c" 1>&6
16391 ++echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16392 ++echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16393 ++if test "${ac_cv_c_stack_direction+set}" = set; then
16394 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16395 + else
16396 +   if test "$cross_compiling" = yes; then
16397 +   ac_cv_c_stack_direction=0
16398 + else
16399 +-  cat > conftest.$ac_ext <<EOF
16400 +-#line 5869 "configure"
16401 +-#include "confdefs.h"
16402 ++  cat >conftest.$ac_ext <<_ACEOF
16403 ++/* confdefs.h.  */
16404 ++_ACEOF
16405 ++cat confdefs.h >>conftest.$ac_ext
16406 ++cat >>conftest.$ac_ext <<_ACEOF
16407 ++/* end confdefs.h.  */
16408 ++int
16409 + find_stack_direction ()
16410 + {
16411 +   static char *addr = 0;
16412 +@@ -5879,489 +10528,1301 @@
16413 +   else
16414 +     return (&dummy > addr) ? 1 : -1;
16415 + }
16416 ++
16417 ++int
16418 + main ()
16419 + {
16420 +-  exit (find_stack_direction() < 0);
16421 ++  exit (find_stack_direction () < 0);
16422 + }
16423 +-EOF
16424 +-if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16425 +-then
16426 ++_ACEOF
16427 ++rm -f conftest$ac_exeext
16428 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429 ++  (eval $ac_link) 2>&5
16430 ++  ac_status=$?
16431 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16433 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 ++  (eval $ac_try) 2>&5
16435 ++  ac_status=$?
16436 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 ++  (exit $ac_status); }; }; then
16438 +   ac_cv_c_stack_direction=1
16439 + else
16440 +-  echo "configure: failed program was:" >&5
16441 +-  cat conftest.$ac_ext >&5
16442 +-  rm -fr conftest*
16443 +-  ac_cv_c_stack_direction=-1
16444 ++  echo "$as_me: program exited with status $ac_status" >&5
16445 ++echo "$as_me: failed program was:" >&5
16446 ++sed 's/^/| /' conftest.$ac_ext >&5
16447 ++
16448 ++( exit $ac_status )
16449 ++ac_cv_c_stack_direction=-1
16450 + fi
16451 +-rm -fr conftest*
16452 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16453 + fi
16454 +-
16455 + fi
16456 ++echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16457 ++echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16458
16459 +-echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
16460 +-cat >> confdefs.h <<EOF
16461 ++cat >>confdefs.h <<_ACEOF
16462 + #define STACK_DIRECTION $ac_cv_c_stack_direction
16463 +-EOF
16464 ++_ACEOF
16465 ++
16466
16467 + fi
16468
16469
16470 + # fmod, logb, and frexp are found in -lm on most systems.
16471 + # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16472 +-echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
16473 +-echo "configure:5913: checking for sqrt in -lm" >&5
16474 +-ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
16475 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16476 +-  echo $ac_n "(cached) $ac_c" 1>&6
16477 ++
16478 ++echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16479 ++echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
16480 ++if test "${ac_cv_lib_m_sqrt+set}" = set; then
16481 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16482 + else
16483 +-  ac_save_LIBS="$LIBS"
16484 ++  ac_check_lib_save_LIBS=$LIBS
16485 + LIBS="-lm  $LIBS"
16486 +-cat > conftest.$ac_ext <<EOF
16487 +-#line 5921 "configure"
16488 +-#include "confdefs.h"
16489 +-/* Override any gcc2 internal prototype to avoid an error.  */
16490 +-/* We use char because int might match the return type of a gcc2
16491 +-    builtin and then its argument prototype would still apply.  */
16492 +-char sqrt();
16493 +-
16494 +-int main() {
16495 +-sqrt()
16496 +-; return 0; }
16497 +-EOF
16498 +-if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16499 +-  rm -rf conftest*
16500 +-  eval "ac_cv_lib_$ac_lib_var=yes"
16501 +-else
16502 +-  echo "configure: failed program was:" >&5
16503 +-  cat conftest.$ac_ext >&5
16504 +-  rm -rf conftest*
16505 +-  eval "ac_cv_lib_$ac_lib_var=no"
16506 +-fi
16507 +-rm -f conftest*
16508 +-LIBS="$ac_save_LIBS"
16509 ++cat >conftest.$ac_ext <<_ACEOF
16510 ++/* confdefs.h.  */
16511 ++_ACEOF
16512 ++cat confdefs.h >>conftest.$ac_ext
16513 ++cat >>conftest.$ac_ext <<_ACEOF
16514 ++/* end confdefs.h.  */
16515
16516 +-fi
16517 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16518 +-  echo "$ac_t""yes" 1>&6
16519 +-    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16520 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16521 +-  cat >> confdefs.h <<EOF
16522 +-#define $ac_tr_lib 1
16523 +-EOF
16524 ++/* Override any gcc2 internal prototype to avoid an error.  */
16525 ++#ifdef __cplusplus
16526 ++extern "C"
16527 ++#endif
16528 ++/* We use char because int might match the return type of a gcc2
16529 ++   builtin and then its argument prototype would still apply.  */
16530 ++char sqrt ();
16531 ++int
16532 ++main ()
16533 ++{
16534 ++sqrt ();
16535 ++  ;
16536 ++  return 0;
16537 ++}
16538 ++_ACEOF
16539 ++rm -f conftest.$ac_objext conftest$ac_exeext
16540 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 ++  (eval $ac_link) 2>conftest.er1
16542 ++  ac_status=$?
16543 ++  grep -v '^ *+' conftest.er1 >conftest.err
16544 ++  rm -f conftest.er1
16545 ++  cat conftest.err >&5
16546 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 ++  (exit $ac_status); } &&
16548 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16549 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 ++  (eval $ac_try) 2>&5
16551 ++  ac_status=$?
16552 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 ++  (exit $ac_status); }; } &&
16554 ++       { ac_try='test -s conftest$ac_exeext'
16555 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 ++  (eval $ac_try) 2>&5
16557 ++  ac_status=$?
16558 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 ++  (exit $ac_status); }; }; then
16560 ++  ac_cv_lib_m_sqrt=yes
16561 ++else
16562 ++  echo "$as_me: failed program was:" >&5
16563 ++sed 's/^/| /' conftest.$ac_ext >&5
16564 ++
16565 ++ac_cv_lib_m_sqrt=no
16566 ++fi
16567 ++rm -f conftest.err conftest.$ac_objext \
16568 ++      conftest$ac_exeext conftest.$ac_ext
16569 ++LIBS=$ac_check_lib_save_LIBS
16570 ++fi
16571 ++echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16572 ++echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
16573 ++if test $ac_cv_lib_m_sqrt = yes; then
16574 ++  cat >>confdefs.h <<_ACEOF
16575 ++#define HAVE_LIBM 1
16576 ++_ACEOF
16577
16578 +   LIBS="-lm $LIBS"
16579
16580 +-else
16581 +-  echo "$ac_t""no" 1>&6
16582 + fi
16583
16584
16585 +-# Check for mail-locking functions in a "mail" library
16586 +-echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
16587 +-echo "configure:5962: checking for maillock in -lmail" >&5
16588 +-ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
16589 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16590 +-  echo $ac_n "(cached) $ac_c" 1>&6
16591 ++# Check for mail-locking functions in a "mail" library Check for
16592 ++# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
16593 ++# for touchlock because we don't want to have to put the lock libs
16594 ++# into LIBS and AC_CHECK_FUNCS would require that.
16595 ++
16596 ++echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16597 ++echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
16598 ++if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16599 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16600 + else
16601 +-  ac_save_LIBS="$LIBS"
16602 +-LIBS="-lmail  $LIBS"
16603 +-cat > conftest.$ac_ext <<EOF
16604 +-#line 5970 "configure"
16605 +-#include "confdefs.h"
16606 +-/* Override any gcc2 internal prototype to avoid an error.  */
16607 +-/* We use char because int might match the return type of a gcc2
16608 +-    builtin and then its argument prototype would still apply.  */
16609 +-char maillock();
16610 +-
16611 +-int main() {
16612 +-maillock()
16613 +-; return 0; }
16614 +-EOF
16615 +-if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16616 +-  rm -rf conftest*
16617 +-  eval "ac_cv_lib_$ac_lib_var=yes"
16618 +-else
16619 +-  echo "configure: failed program was:" >&5
16620 +-  cat conftest.$ac_ext >&5
16621 +-  rm -rf conftest*
16622 +-  eval "ac_cv_lib_$ac_lib_var=no"
16623 +-fi
16624 +-rm -f conftest*
16625 +-LIBS="$ac_save_LIBS"
16626 ++  ac_check_lib_save_LIBS=$LIBS
16627 ++LIBS="-llockfile  $LIBS"
16628 ++cat >conftest.$ac_ext <<_ACEOF
16629 ++/* confdefs.h.  */
16630 ++_ACEOF
16631 ++cat confdefs.h >>conftest.$ac_ext
16632 ++cat >>conftest.$ac_ext <<_ACEOF
16633 ++/* end confdefs.h.  */
16634 ++
16635 ++/* Override any gcc2 internal prototype to avoid an error.  */
16636 ++#ifdef __cplusplus
16637 ++extern "C"
16638 ++#endif
16639 ++/* We use char because int might match the return type of a gcc2
16640 ++   builtin and then its argument prototype would still apply.  */
16641 ++char maillock ();
16642 ++int
16643 ++main ()
16644 ++{
16645 ++maillock ();
16646 ++  ;
16647 ++  return 0;
16648 ++}
16649 ++_ACEOF
16650 ++rm -f conftest.$ac_objext conftest$ac_exeext
16651 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 ++  (eval $ac_link) 2>conftest.er1
16653 ++  ac_status=$?
16654 ++  grep -v '^ *+' conftest.er1 >conftest.err
16655 ++  rm -f conftest.er1
16656 ++  cat conftest.err >&5
16657 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 ++  (exit $ac_status); } &&
16659 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16660 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 ++  (eval $ac_try) 2>&5
16662 ++  ac_status=$?
16663 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 ++  (exit $ac_status); }; } &&
16665 ++       { ac_try='test -s conftest$ac_exeext'
16666 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 ++  (eval $ac_try) 2>&5
16668 ++  ac_status=$?
16669 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 ++  (exit $ac_status); }; }; then
16671 ++  ac_cv_lib_lockfile_maillock=yes
16672 ++else
16673 ++  echo "$as_me: failed program was:" >&5
16674 ++sed 's/^/| /' conftest.$ac_ext >&5
16675 ++
16676 ++ac_cv_lib_lockfile_maillock=no
16677 ++fi
16678 ++rm -f conftest.err conftest.$ac_objext \
16679 ++      conftest$ac_exeext conftest.$ac_ext
16680 ++LIBS=$ac_check_lib_save_LIBS
16681 ++fi
16682 ++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16683 ++echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
16684 ++if test $ac_cv_lib_lockfile_maillock = yes; then
16685 ++   cat >>confdefs.h <<\_ACEOF
16686 ++#define HAVE_LIBMAIL 1
16687 ++_ACEOF
16688 ++
16689 ++    MOVEMAIL_LOCK_LIBS="-llockfile"
16690 ++    echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
16691 ++echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
16692 ++if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
16693 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16694 ++else
16695 ++  ac_check_lib_save_LIBS=$LIBS
16696 ++LIBS="-llockfile  $LIBS"
16697 ++cat >conftest.$ac_ext <<_ACEOF
16698 ++/* confdefs.h.  */
16699 ++_ACEOF
16700 ++cat confdefs.h >>conftest.$ac_ext
16701 ++cat >>conftest.$ac_ext <<_ACEOF
16702 ++/* end confdefs.h.  */
16703 ++
16704 ++/* Override any gcc2 internal prototype to avoid an error.  */
16705 ++#ifdef __cplusplus
16706 ++extern "C"
16707 ++#endif
16708 ++/* We use char because int might match the return type of a gcc2
16709 ++   builtin and then its argument prototype would still apply.  */
16710 ++char touchlock ();
16711 ++int
16712 ++main ()
16713 ++{
16714 ++touchlock ();
16715 ++  ;
16716 ++  return 0;
16717 ++}
16718 ++_ACEOF
16719 ++rm -f conftest.$ac_objext conftest$ac_exeext
16720 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721 ++  (eval $ac_link) 2>conftest.er1
16722 ++  ac_status=$?
16723 ++  grep -v '^ *+' conftest.er1 >conftest.err
16724 ++  rm -f conftest.er1
16725 ++  cat conftest.err >&5
16726 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 ++  (exit $ac_status); } &&
16728 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16729 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 ++  (eval $ac_try) 2>&5
16731 ++  ac_status=$?
16732 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 ++  (exit $ac_status); }; } &&
16734 ++       { ac_try='test -s conftest$ac_exeext'
16735 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 ++  (eval $ac_try) 2>&5
16737 ++  ac_status=$?
16738 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 ++  (exit $ac_status); }; }; then
16740 ++  ac_cv_lib_lockfile_touchlock=yes
16741 ++else
16742 ++  echo "$as_me: failed program was:" >&5
16743 ++sed 's/^/| /' conftest.$ac_ext >&5
16744 ++
16745 ++ac_cv_lib_lockfile_touchlock=no
16746 ++fi
16747 ++rm -f conftest.err conftest.$ac_objext \
16748 ++      conftest$ac_exeext conftest.$ac_ext
16749 ++LIBS=$ac_check_lib_save_LIBS
16750 ++fi
16751 ++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
16752 ++echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
16753 ++if test $ac_cv_lib_lockfile_touchlock = yes; then
16754 ++  cat >>confdefs.h <<\_ACEOF
16755 ++#define HAVE_TOUCHLOCK 1
16756 ++_ACEOF
16757
16758 + fi
16759 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16760 +-  echo "$ac_t""yes" 1>&6
16761 +-    ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16762 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16763 +-  cat >> confdefs.h <<EOF
16764 +-#define $ac_tr_lib 1
16765 +-EOF
16766
16767 +-  LIBS="-lmail $LIBS"
16768
16769 ++for ac_header in maillock.h
16770 ++do
16771 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16772 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16775 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16776 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16777 ++fi
16778 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16779 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16780 ++else
16781 ++  # Is the header compilable?
16782 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
16783 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16784 ++cat >conftest.$ac_ext <<_ACEOF
16785 ++/* confdefs.h.  */
16786 ++_ACEOF
16787 ++cat confdefs.h >>conftest.$ac_ext
16788 ++cat >>conftest.$ac_ext <<_ACEOF
16789 ++/* end confdefs.h.  */
16790 ++$ac_includes_default
16791 ++#include <$ac_header>
16792 ++_ACEOF
16793 ++rm -f conftest.$ac_objext
16794 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16795 ++  (eval $ac_compile) 2>conftest.er1
16796 ++  ac_status=$?
16797 ++  grep -v '^ *+' conftest.er1 >conftest.err
16798 ++  rm -f conftest.er1
16799 ++  cat conftest.err >&5
16800 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 ++  (exit $ac_status); } &&
16802 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16803 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 ++  (eval $ac_try) 2>&5
16805 ++  ac_status=$?
16806 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 ++  (exit $ac_status); }; } &&
16808 ++       { ac_try='test -s conftest.$ac_objext'
16809 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 ++  (eval $ac_try) 2>&5
16811 ++  ac_status=$?
16812 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 ++  (exit $ac_status); }; }; then
16814 ++  ac_header_compiler=yes
16815 ++else
16816 ++  echo "$as_me: failed program was:" >&5
16817 ++sed 's/^/| /' conftest.$ac_ext >&5
16818 ++
16819 ++ac_header_compiler=no
16820 ++fi
16821 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16822 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16823 ++echo "${ECHO_T}$ac_header_compiler" >&6
16824 ++
16825 ++# Is the header present?
16826 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
16827 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16828 ++cat >conftest.$ac_ext <<_ACEOF
16829 ++/* confdefs.h.  */
16830 ++_ACEOF
16831 ++cat confdefs.h >>conftest.$ac_ext
16832 ++cat >>conftest.$ac_ext <<_ACEOF
16833 ++/* end confdefs.h.  */
16834 ++#include <$ac_header>
16835 ++_ACEOF
16836 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16838 ++  ac_status=$?
16839 ++  grep -v '^ *+' conftest.er1 >conftest.err
16840 ++  rm -f conftest.er1
16841 ++  cat conftest.err >&5
16842 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 ++  (exit $ac_status); } >/dev/null; then
16844 ++  if test -s conftest.err; then
16845 ++    ac_cpp_err=$ac_c_preproc_warn_flag
16846 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16847 ++  else
16848 ++    ac_cpp_err=
16849 ++  fi
16850 + else
16851 +-  echo "$ac_t""no" 1>&6
16852 ++  ac_cpp_err=yes
16853 + fi
16854 ++if test -z "$ac_cpp_err"; then
16855 ++  ac_header_preproc=yes
16856 ++else
16857 ++  echo "$as_me: failed program was:" >&5
16858 ++sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 +-echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
16861 +-echo "configure:6009: checking for maillock in -llockfile" >&5
16862 +-ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
16863 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16864 +-  echo $ac_n "(cached) $ac_c" 1>&6
16865 ++  ac_header_preproc=no
16866 ++fi
16867 ++rm -f conftest.err conftest.$ac_ext
16868 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16869 ++echo "${ECHO_T}$ac_header_preproc" >&6
16870 ++
16871 ++# So?  What about this header?
16872 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16873 ++  yes:no: )
16874 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16875 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16876 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16877 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16878 ++    ac_header_preproc=yes
16879 ++    ;;
16880 ++  no:yes:* )
16881 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16882 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16883 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16884 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16885 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16886 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16887 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16888 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16889 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16890 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16891 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16892 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16893 ++    (
16894 ++      cat <<\_ASBOX
16895 ++## ------------------------------------------ ##
16896 ++## Report this to the AC_PACKAGE_NAME lists.  ##
16897 ++## ------------------------------------------ ##
16898 ++_ASBOX
16899 ++    ) |
16900 ++      sed "s/^/$as_me: WARNING:     /" >&2
16901 ++    ;;
16902 ++esac
16903 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
16904 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16905 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
16906 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16907 + else
16908 +-  ac_save_LIBS="$LIBS"
16909 +-LIBS="-llockfile  $LIBS"
16910 +-cat > conftest.$ac_ext <<EOF
16911 +-#line 6017 "configure"
16912 +-#include "confdefs.h"
16913 +-/* Override any gcc2 internal prototype to avoid an error.  */
16914 +-/* We use char because int might match the return type of a gcc2
16915 +-    builtin and then its argument prototype would still apply.  */
16916 +-char maillock();
16917 +-
16918 +-int main() {
16919 +-maillock()
16920 +-; return 0; }
16921 +-EOF
16922 +-if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16923 +-  rm -rf conftest*
16924 +-  eval "ac_cv_lib_$ac_lib_var=yes"
16925 +-else
16926 +-  echo "configure: failed program was:" >&5
16927 +-  cat conftest.$ac_ext >&5
16928 +-  rm -rf conftest*
16929 +-  eval "ac_cv_lib_$ac_lib_var=no"
16930 ++  eval "$as_ac_Header=\$ac_header_preproc"
16931 + fi
16932 +-rm -f conftest*
16933 +-LIBS="$ac_save_LIBS"
16934 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16935 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16936
16937 + fi
16938 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16939 +-  echo "$ac_t""yes" 1>&6
16940 +-    ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16941 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16942 +-  cat >> confdefs.h <<EOF
16943 +-#define $ac_tr_lib 1
16944 +-EOF
16945 +-
16946 +-  LIBS="-llockfile $LIBS"
16947 +-
16948 +-else
16949 +-  echo "$ac_t""no" 1>&6
16950 +-fi
16951 +-
16952 +-# If we have the shared liblockfile, assume we must use it for mail
16953 +-# locking (e.g. Debian).  If we couldn't link against liblockfile
16954 +-# (no liblockfile.a installed), ensure that we don't need to.
16955 +-if test "$ac_cv_lib_lockfile_maillock" = no; then
16956 +-      # Extract the first word of "liblockfile.so", so it can be a program name with args.
16957 +-set dummy liblockfile.so; ac_word=$2
16958 +-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16959 +-echo "configure:6062: checking for $ac_word" >&5
16960 +-if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
16961 +-  echo $ac_n "(cached) $ac_c" 1>&6
16962 +-else
16963 +-  if test -n "$liblockfile"; then
16964 +-  ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16965 +-else
16966 +-  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS=":"
16967 +-  ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16968 +-  for ac_dir in $ac_dummy; do
16969 +-    test -z "$ac_dir" && ac_dir=.
16970 +-    if test -f $ac_dir/$ac_word; then
16971 +-      ac_cv_prog_liblockfile="yes"
16972 +-      break
16973 +-    fi
16974 +-  done
16975 +-  IFS="$ac_save_ifs"
16976 +-  test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16977 +-fi
16978 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 ++  cat >>confdefs.h <<_ACEOF
16980 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 ++_ACEOF
16982 ++
16983 + fi
16984 +-liblockfile="$ac_cv_prog_liblockfile"
16985 +-if test -n "$liblockfile"; then
16986 +-  echo "$ac_t""$liblockfile" 1>&6
16987 ++
16988 ++done
16989 ++
16990 + else
16991 +-  echo "$ac_t""no" 1>&6
16992 +-fi
16993 ++   echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16994 ++echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
16995 ++if test "${ac_cv_lib_mail_maillock+set}" = set; then
16996 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
16997 ++else
16998 ++  ac_check_lib_save_LIBS=$LIBS
16999 ++LIBS="-lmail  $LIBS"
17000 ++cat >conftest.$ac_ext <<_ACEOF
17001 ++/* confdefs.h.  */
17002 ++_ACEOF
17003 ++cat confdefs.h >>conftest.$ac_ext
17004 ++cat >>conftest.$ac_ext <<_ACEOF
17005 ++/* end confdefs.h.  */
17006
17007 +-  if test $ac_cv_prog_liblockfile = yes; then
17008 +-    { echo "configure: error: Shared liblockfile found but can't link against it.
17009 +-This probably means that movemail could lose mail.
17010 +-There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
17011 +-  else cat >> confdefs.h <<\EOF
17012 +-#define LIBMAIL -llockfile
17013 +-EOF
17014 ++/* Override any gcc2 internal prototype to avoid an error.  */
17015 ++#ifdef __cplusplus
17016 ++extern "C"
17017 ++#endif
17018 ++/* We use char because int might match the return type of a gcc2
17019 ++   builtin and then its argument prototype would still apply.  */
17020 ++char maillock ();
17021 ++int
17022 ++main ()
17023 ++{
17024 ++maillock ();
17025 ++  ;
17026 ++  return 0;
17027 ++}
17028 ++_ACEOF
17029 ++rm -f conftest.$ac_objext conftest$ac_exeext
17030 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 ++  (eval $ac_link) 2>conftest.er1
17032 ++  ac_status=$?
17033 ++  grep -v '^ *+' conftest.er1 >conftest.err
17034 ++  rm -f conftest.er1
17035 ++  cat conftest.err >&5
17036 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 ++  (exit $ac_status); } &&
17038 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17039 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 ++  (eval $ac_try) 2>&5
17041 ++  ac_status=$?
17042 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 ++  (exit $ac_status); }; } &&
17044 ++       { ac_try='test -s conftest$ac_exeext'
17045 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 ++  (eval $ac_try) 2>&5
17047 ++  ac_status=$?
17048 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 ++  (exit $ac_status); }; }; then
17050 ++  ac_cv_lib_mail_maillock=yes
17051 ++else
17052 ++  echo "$as_me: failed program was:" >&5
17053 ++sed 's/^/| /' conftest.$ac_ext >&5
17054 ++
17055 ++ac_cv_lib_mail_maillock=no
17056 ++fi
17057 ++rm -f conftest.err conftest.$ac_objext \
17058 ++      conftest$ac_exeext conftest.$ac_ext
17059 ++LIBS=$ac_check_lib_save_LIBS
17060 ++fi
17061 ++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17062 ++echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
17063 ++if test $ac_cv_lib_mail_maillock = yes; then
17064 ++   cat >>confdefs.h <<\_ACEOF
17065 ++#define HAVE_LIBMAIL 1
17066 ++_ACEOF
17067 ++
17068 ++               MOVEMAIL_LOCK_LIBS="-lmail"
17069 ++               echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
17070 ++echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
17071 ++if test "${ac_cv_lib_mail_touchlock+set}" = set; then
17072 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17073 ++else
17074 ++  ac_check_lib_save_LIBS=$LIBS
17075 ++LIBS="-lmail  $LIBS"
17076 ++cat >conftest.$ac_ext <<_ACEOF
17077 ++/* confdefs.h.  */
17078 ++_ACEOF
17079 ++cat confdefs.h >>conftest.$ac_ext
17080 ++cat >>conftest.$ac_ext <<_ACEOF
17081 ++/* end confdefs.h.  */
17082 ++
17083 ++/* Override any gcc2 internal prototype to avoid an error.  */
17084 ++#ifdef __cplusplus
17085 ++extern "C"
17086 ++#endif
17087 ++/* We use char because int might match the return type of a gcc2
17088 ++   builtin and then its argument prototype would still apply.  */
17089 ++char touchlock ();
17090 ++int
17091 ++main ()
17092 ++{
17093 ++touchlock ();
17094 ++  ;
17095 ++  return 0;
17096 ++}
17097 ++_ACEOF
17098 ++rm -f conftest.$ac_objext conftest$ac_exeext
17099 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100 ++  (eval $ac_link) 2>conftest.er1
17101 ++  ac_status=$?
17102 ++  grep -v '^ *+' conftest.er1 >conftest.err
17103 ++  rm -f conftest.er1
17104 ++  cat conftest.err >&5
17105 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 ++  (exit $ac_status); } &&
17107 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17108 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 ++  (eval $ac_try) 2>&5
17110 ++  ac_status=$?
17111 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 ++  (exit $ac_status); }; } &&
17113 ++       { ac_try='test -s conftest$ac_exeext'
17114 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 ++  (eval $ac_try) 2>&5
17116 ++  ac_status=$?
17117 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 ++  (exit $ac_status); }; }; then
17119 ++  ac_cv_lib_mail_touchlock=yes
17120 ++else
17121 ++  echo "$as_me: failed program was:" >&5
17122 ++sed 's/^/| /' conftest.$ac_ext >&5
17123 ++
17124 ++ac_cv_lib_mail_touchlock=no
17125 ++fi
17126 ++rm -f conftest.err conftest.$ac_objext \
17127 ++      conftest$ac_exeext conftest.$ac_ext
17128 ++LIBS=$ac_check_lib_save_LIBS
17129 ++fi
17130 ++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
17131 ++echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
17132 ++if test $ac_cv_lib_mail_touchlock = yes; then
17133 ++  cat >>confdefs.h <<\_ACEOF
17134 ++#define HAVE_TOUCHLOCK 1
17135 ++_ACEOF
17136
17137 +-  fi
17138 +-  else :
17139 + fi
17140 ++
17141 ++
17142 + for ac_func in touchlock
17143 + do
17144 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17145 +-echo "configure:6103: checking for $ac_func" >&5
17146 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17147 +-  echo $ac_n "(cached) $ac_c" 1>&6
17148 +-else
17149 +-  cat > conftest.$ac_ext <<EOF
17150 +-#line 6108 "configure"
17151 +-#include "confdefs.h"
17152 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17155 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17156 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17157 ++else
17158 ++  cat >conftest.$ac_ext <<_ACEOF
17159 ++/* confdefs.h.  */
17160 ++_ACEOF
17161 ++cat confdefs.h >>conftest.$ac_ext
17162 ++cat >>conftest.$ac_ext <<_ACEOF
17163 ++/* end confdefs.h.  */
17164 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17166 ++#define $ac_func innocuous_$ac_func
17167 ++
17168 + /* System header to define __stub macros and hopefully few prototypes,
17169 +-    which can conflict with char $ac_func(); below.  */
17170 +-#include <assert.h>
17171 +-/* Override any gcc2 internal prototype to avoid an error.  */
17172 +-/* We use char because int might match the return type of a gcc2
17173 +-    builtin and then its argument prototype would still apply.  */
17174 +-char $ac_func();
17175 ++    which can conflict with char $ac_func (); below.
17176 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 ++    <limits.h> exists even on freestanding compilers.  */
17178 ++
17179 ++#ifdef __STDC__
17180 ++# include <limits.h>
17181 ++#else
17182 ++# include <assert.h>
17183 ++#endif
17184
17185 +-int main() {
17186 ++#undef $ac_func
17187
17188 ++/* Override any gcc2 internal prototype to avoid an error.  */
17189 ++#ifdef __cplusplus
17190 ++extern "C"
17191 ++{
17192 ++#endif
17193 ++/* We use char because int might match the return type of a gcc2
17194 ++   builtin and then its argument prototype would still apply.  */
17195 ++char $ac_func ();
17196 + /* The GNU C library defines this for functions which it implements
17197 +     to always fail with ENOSYS.  Some functions are actually named
17198 +     something starting with __ and the normal name is an alias.  */
17199 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17200 + choke me
17201 + #else
17202 +-$ac_func();
17203 ++char (*f) () = $ac_func;
17204 ++#endif
17205 ++#ifdef __cplusplus
17206 ++}
17207 + #endif
17208
17209 +-; return 0; }
17210 +-EOF
17211 +-if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17212 +-  rm -rf conftest*
17213 +-  eval "ac_cv_func_$ac_func=yes"
17214 +-else
17215 +-  echo "configure: failed program was:" >&5
17216 +-  cat conftest.$ac_ext >&5
17217 +-  rm -rf conftest*
17218 +-  eval "ac_cv_func_$ac_func=no"
17219 +-fi
17220 +-rm -f conftest*
17221 +-fi
17222 ++int
17223 ++main ()
17224 ++{
17225 ++return f != $ac_func;
17226 ++  ;
17227 ++  return 0;
17228 ++}
17229 ++_ACEOF
17230 ++rm -f conftest.$ac_objext conftest$ac_exeext
17231 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 ++  (eval $ac_link) 2>conftest.er1
17233 ++  ac_status=$?
17234 ++  grep -v '^ *+' conftest.er1 >conftest.err
17235 ++  rm -f conftest.er1
17236 ++  cat conftest.err >&5
17237 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 ++  (exit $ac_status); } &&
17239 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17240 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 ++  (eval $ac_try) 2>&5
17242 ++  ac_status=$?
17243 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 ++  (exit $ac_status); }; } &&
17245 ++       { ac_try='test -s conftest$ac_exeext'
17246 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 ++  (eval $ac_try) 2>&5
17248 ++  ac_status=$?
17249 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 ++  (exit $ac_status); }; }; then
17251 ++  eval "$as_ac_var=yes"
17252 ++else
17253 ++  echo "$as_me: failed program was:" >&5
17254 ++sed 's/^/| /' conftest.$ac_ext >&5
17255 ++
17256 ++eval "$as_ac_var=no"
17257 ++fi
17258 ++rm -f conftest.err conftest.$ac_objext \
17259 ++      conftest$ac_exeext conftest.$ac_ext
17260 ++fi
17261 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17262 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17263 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
17264 ++  cat >>confdefs.h <<_ACEOF
17265 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17266 ++_ACEOF
17267
17268 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17269 +-  echo "$ac_t""yes" 1>&6
17270 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17271 +-  cat >> confdefs.h <<EOF
17272 +-#define $ac_tr_func 1
17273 +-EOF
17274 +- 
17275 +-else
17276 +-  echo "$ac_t""no" 1>&6
17277 + fi
17278 + done
17279
17280 +-for ac_hdr in maillock.h
17281 +-do
17282 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17283 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17284 +-echo "configure:6159: checking for $ac_hdr" >&5
17285 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17286 +-  echo $ac_n "(cached) $ac_c" 1>&6
17287 +-else
17288 +-  cat > conftest.$ac_ext <<EOF
17289 +-#line 6164 "configure"
17290 +-#include "confdefs.h"
17291 +-#include <$ac_hdr>
17292 +-EOF
17293 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17294 +-{ (eval echo configure:6169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17295 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17296 +-if test -z "$ac_err"; then
17297 +-  rm -rf conftest*
17298 +-  eval "ac_cv_header_$ac_safe=yes"
17299 +-else
17300 +-  echo "$ac_err" >&5
17301 +-  echo "configure: failed program was:" >&5
17302 +-  cat conftest.$ac_ext >&5
17303 +-  rm -rf conftest*
17304 +-  eval "ac_cv_header_$ac_safe=no"
17305 +-fi
17306 +-rm -f conftest*
17307 ++
17308 ++for ac_header in maillock.h
17309 ++do
17310 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17311 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17312 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
17313 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17314 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17315 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17316 ++fi
17317 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17318 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17319 ++else
17320 ++  # Is the header compilable?
17321 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
17322 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17323 ++cat >conftest.$ac_ext <<_ACEOF
17324 ++/* confdefs.h.  */
17325 ++_ACEOF
17326 ++cat confdefs.h >>conftest.$ac_ext
17327 ++cat >>conftest.$ac_ext <<_ACEOF
17328 ++/* end confdefs.h.  */
17329 ++$ac_includes_default
17330 ++#include <$ac_header>
17331 ++_ACEOF
17332 ++rm -f conftest.$ac_objext
17333 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17334 ++  (eval $ac_compile) 2>conftest.er1
17335 ++  ac_status=$?
17336 ++  grep -v '^ *+' conftest.er1 >conftest.err
17337 ++  rm -f conftest.er1
17338 ++  cat conftest.err >&5
17339 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 ++  (exit $ac_status); } &&
17341 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17342 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 ++  (eval $ac_try) 2>&5
17344 ++  ac_status=$?
17345 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 ++  (exit $ac_status); }; } &&
17347 ++       { ac_try='test -s conftest.$ac_objext'
17348 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 ++  (eval $ac_try) 2>&5
17350 ++  ac_status=$?
17351 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 ++  (exit $ac_status); }; }; then
17353 ++  ac_header_compiler=yes
17354 ++else
17355 ++  echo "$as_me: failed program was:" >&5
17356 ++sed 's/^/| /' conftest.$ac_ext >&5
17357 ++
17358 ++ac_header_compiler=no
17359 ++fi
17360 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17361 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17362 ++echo "${ECHO_T}$ac_header_compiler" >&6
17363 ++
17364 ++# Is the header present?
17365 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
17366 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17367 ++cat >conftest.$ac_ext <<_ACEOF
17368 ++/* confdefs.h.  */
17369 ++_ACEOF
17370 ++cat confdefs.h >>conftest.$ac_ext
17371 ++cat >>conftest.$ac_ext <<_ACEOF
17372 ++/* end confdefs.h.  */
17373 ++#include <$ac_header>
17374 ++_ACEOF
17375 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17376 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17377 ++  ac_status=$?
17378 ++  grep -v '^ *+' conftest.er1 >conftest.err
17379 ++  rm -f conftest.er1
17380 ++  cat conftest.err >&5
17381 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 ++  (exit $ac_status); } >/dev/null; then
17383 ++  if test -s conftest.err; then
17384 ++    ac_cpp_err=$ac_c_preproc_warn_flag
17385 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17386 ++  else
17387 ++    ac_cpp_err=
17388 ++  fi
17389 ++else
17390 ++  ac_cpp_err=yes
17391 + fi
17392 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17393 +-  echo "$ac_t""yes" 1>&6
17394 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17395 +-  cat >> confdefs.h <<EOF
17396 +-#define $ac_tr_hdr 1
17397 +-EOF
17398 +- 
17399 ++if test -z "$ac_cpp_err"; then
17400 ++  ac_header_preproc=yes
17401 ++else
17402 ++  echo "$as_me: failed program was:" >&5
17403 ++sed 's/^/| /' conftest.$ac_ext >&5
17404 ++
17405 ++  ac_header_preproc=no
17406 ++fi
17407 ++rm -f conftest.err conftest.$ac_ext
17408 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17409 ++echo "${ECHO_T}$ac_header_preproc" >&6
17410 ++
17411 ++# So?  What about this header?
17412 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17413 ++  yes:no: )
17414 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17415 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17416 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17417 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17418 ++    ac_header_preproc=yes
17419 ++    ;;
17420 ++  no:yes:* )
17421 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17422 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17423 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17424 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17425 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17426 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17427 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17428 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17429 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17430 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17431 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17432 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17433 ++    (
17434 ++      cat <<\_ASBOX
17435 ++## ------------------------------------------ ##
17436 ++## Report this to the AC_PACKAGE_NAME lists.  ##
17437 ++## ------------------------------------------ ##
17438 ++_ASBOX
17439 ++    ) |
17440 ++      sed "s/^/$as_me: WARNING:     /" >&2
17441 ++    ;;
17442 ++esac
17443 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17447 + else
17448 +-  echo "$ac_t""no" 1>&6
17449 ++  eval "$as_ac_Header=\$ac_header_preproc"
17450 + fi
17451 +-done
17452 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17453 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17454
17455 ++fi
17456 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
17457 ++  cat >>confdefs.h <<_ACEOF
17458 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17459 ++_ACEOF
17460
17461 +-for ac_func in gethostname getdomainname dup2 \
17462 +-rename closedir mkdir rmdir sysinfo \
17463 ++fi
17464 ++
17465 ++done
17466 ++
17467 ++fi
17468 ++
17469 ++fi
17470 ++
17471 ++
17472 ++
17473 ++# Tests borrowed (and slightly rearranged) from old paths.el
17474 ++# rmail-spool-directory tests.  They should be in the order most
17475 ++# likely to get the right answer.  You can always override them on the
17476 ++# system level in src/s/* and on a one-shot basis with
17477 ++# --with-mail-spool-directory.
17478 ++
17479 ++echo "$as_me:$LINENO: checking for mail spool location" >&5
17480 ++echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
17481 ++if test "${with_mail_spool+set}" = set; then
17482 ++  echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
17483 ++echo "${ECHO_T}${with_mail_spool}" >&6
17484 ++elif test -d /var/mail/; then
17485 ++  cat >>confdefs.h <<_ACEOF
17486 ++#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
17487 ++_ACEOF
17488 ++
17489 ++  echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
17490 ++echo "${ECHO_T}\"/var/mail\"" >&6
17491 ++elif test -d /var/spool/mail/; then
17492 ++  cat >>confdefs.h <<_ACEOF
17493 ++#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
17494 ++_ACEOF
17495 ++
17496 ++  echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
17497 ++echo "${ECHO_T}\"/var/spool/mail\"" >&6
17498 ++elif test -d /usr/mail/; then
17499 ++  cat >>confdefs.h <<_ACEOF
17500 ++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
17501 ++_ACEOF
17502 ++
17503 ++  echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
17504 ++echo "${ECHO_T}\"/usr/mail\"" >&6
17505 ++elif test -d /usr/spool/mail/; then
17506 ++  cat >>confdefs.h <<_ACEOF
17507 ++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
17508 ++_ACEOF
17509 ++
17510 ++  echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
17511 ++echo "${ECHO_T}\"/usr/spool/mail\"" >&6
17512 ++else
17513 ++  echo "$as_me:$LINENO: result: not found" >&5
17514 ++echo "${ECHO_T}not found" >&6
17515 ++fi
17516 ++
17517 ++# Find the location of "mail".  This is critical for fakemail at
17518 ++# least.  before fakemail would silently fail if this was wrong, so
17519 ++# insist on finding it.
17520 ++echo "$as_me:$LINENO: checking for mail binary" >&5
17521 ++echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
17522 ++if test -x /bin/mail; then
17523 ++  cat >>confdefs.h <<_ACEOF
17524 ++#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
17525 ++_ACEOF
17526 ++
17527 ++  echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
17528 ++echo "${ECHO_T}\"/bin/mail\"" >&6
17529 ++elif test -x /usr/bin/mail; then
17530 ++  cat >>confdefs.h <<_ACEOF
17531 ++#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
17532 ++_ACEOF
17533 ++
17534 ++  echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
17535 ++echo "${ECHO_T}\"/usr/bin/mail\"" >&6
17536 ++else
17537 ++  { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
17538 ++echo "$as_me: error: could not find mail binary" >&2;}
17539 ++   { (exit 1); exit 1; }; }
17540 ++fi
17541 ++
17542 ++
17543 ++
17544 ++
17545 ++
17546 ++
17547 ++
17548 ++
17549 ++
17550 ++
17551 ++
17552 ++
17553 ++
17554 ++
17555 ++
17556 ++
17557 ++
17558 ++
17559 ++
17560 ++
17561 ++
17562 ++
17563 ++
17564 ++
17565 ++
17566 ++
17567 ++
17568 ++
17569 ++
17570 ++
17571 ++
17572 ++
17573 ++
17574 ++
17575 ++
17576 ++
17577 ++
17578 ++
17579 ++
17580 ++
17581 ++
17582 ++
17583 ++
17584 ++
17585 ++
17586 ++
17587 ++
17588 ++for ac_func in gethostname getdomainname dup2 \
17589 ++rename closedir mkdir rmdir sysinfo \
17590 + random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
17591 + strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17592 + utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
17593 + __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
17594 + gai_strerror mkstemp
17595 + do
17596 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17597 +-echo "configure:6205: checking for $ac_func" >&5
17598 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17599 +-  echo $ac_n "(cached) $ac_c" 1>&6
17600 +-else
17601 +-  cat > conftest.$ac_ext <<EOF
17602 +-#line 6210 "configure"
17603 +-#include "confdefs.h"
17604 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17605 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17606 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17607 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17608 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17609 ++else
17610 ++  cat >conftest.$ac_ext <<_ACEOF
17611 ++/* confdefs.h.  */
17612 ++_ACEOF
17613 ++cat confdefs.h >>conftest.$ac_ext
17614 ++cat >>conftest.$ac_ext <<_ACEOF
17615 ++/* end confdefs.h.  */
17616 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17617 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17618 ++#define $ac_func innocuous_$ac_func
17619 ++
17620 + /* System header to define __stub macros and hopefully few prototypes,
17621 +-    which can conflict with char $ac_func(); below.  */
17622 +-#include <assert.h>
17623 +-/* Override any gcc2 internal prototype to avoid an error.  */
17624 +-/* We use char because int might match the return type of a gcc2
17625 +-    builtin and then its argument prototype would still apply.  */
17626 +-char $ac_func();
17627 ++    which can conflict with char $ac_func (); below.
17628 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629 ++    <limits.h> exists even on freestanding compilers.  */
17630 ++
17631 ++#ifdef __STDC__
17632 ++# include <limits.h>
17633 ++#else
17634 ++# include <assert.h>
17635 ++#endif
17636
17637 +-int main() {
17638 ++#undef $ac_func
17639
17640 ++/* Override any gcc2 internal prototype to avoid an error.  */
17641 ++#ifdef __cplusplus
17642 ++extern "C"
17643 ++{
17644 ++#endif
17645 ++/* We use char because int might match the return type of a gcc2
17646 ++   builtin and then its argument prototype would still apply.  */
17647 ++char $ac_func ();
17648 + /* The GNU C library defines this for functions which it implements
17649 +     to always fail with ENOSYS.  Some functions are actually named
17650 +     something starting with __ and the normal name is an alias.  */
17651 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17652 + choke me
17653 + #else
17654 +-$ac_func();
17655 ++char (*f) () = $ac_func;
17656 ++#endif
17657 ++#ifdef __cplusplus
17658 ++}
17659 + #endif
17660
17661 +-; return 0; }
17662 +-EOF
17663 +-if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17664 +-  rm -rf conftest*
17665 +-  eval "ac_cv_func_$ac_func=yes"
17666 +-else
17667 +-  echo "configure: failed program was:" >&5
17668 +-  cat conftest.$ac_ext >&5
17669 +-  rm -rf conftest*
17670 +-  eval "ac_cv_func_$ac_func=no"
17671 +-fi
17672 +-rm -f conftest*
17673 +-fi
17674 ++int
17675 ++main ()
17676 ++{
17677 ++return f != $ac_func;
17678 ++  ;
17679 ++  return 0;
17680 ++}
17681 ++_ACEOF
17682 ++rm -f conftest.$ac_objext conftest$ac_exeext
17683 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 ++  (eval $ac_link) 2>conftest.er1
17685 ++  ac_status=$?
17686 ++  grep -v '^ *+' conftest.er1 >conftest.err
17687 ++  rm -f conftest.er1
17688 ++  cat conftest.err >&5
17689 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 ++  (exit $ac_status); } &&
17691 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17692 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 ++  (eval $ac_try) 2>&5
17694 ++  ac_status=$?
17695 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 ++  (exit $ac_status); }; } &&
17697 ++       { ac_try='test -s conftest$ac_exeext'
17698 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 ++  (eval $ac_try) 2>&5
17700 ++  ac_status=$?
17701 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 ++  (exit $ac_status); }; }; then
17703 ++  eval "$as_ac_var=yes"
17704 ++else
17705 ++  echo "$as_me: failed program was:" >&5
17706 ++sed 's/^/| /' conftest.$ac_ext >&5
17707 ++
17708 ++eval "$as_ac_var=no"
17709 ++fi
17710 ++rm -f conftest.err conftest.$ac_objext \
17711 ++      conftest$ac_exeext conftest.$ac_ext
17712 ++fi
17713 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17714 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17715 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
17716 ++  cat >>confdefs.h <<_ACEOF
17717 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17718 ++_ACEOF
17719
17720 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17721 +-  echo "$ac_t""yes" 1>&6
17722 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17723 +-  cat >> confdefs.h <<EOF
17724 +-#define $ac_tr_func 1
17725 +-EOF
17726 +- 
17727 +-else
17728 +-  echo "$ac_t""no" 1>&6
17729 + fi
17730 + done
17731
17732
17733 +-for ac_hdr in sys/time.h unistd.h
17734 +-do
17735 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17736 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17737 +-echo "configure:6262: checking for $ac_hdr" >&5
17738 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17739 +-  echo $ac_n "(cached) $ac_c" 1>&6
17740 +-else
17741 +-  cat > conftest.$ac_ext <<EOF
17742 +-#line 6267 "configure"
17743 +-#include "confdefs.h"
17744 +-#include <$ac_hdr>
17745 +-EOF
17746 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17747 +-{ (eval echo configure:6272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17748 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17749 +-if test -z "$ac_err"; then
17750 +-  rm -rf conftest*
17751 +-  eval "ac_cv_header_$ac_safe=yes"
17752 +-else
17753 +-  echo "$ac_err" >&5
17754 +-  echo "configure: failed program was:" >&5
17755 +-  cat conftest.$ac_ext >&5
17756 +-  rm -rf conftest*
17757 +-  eval "ac_cv_header_$ac_safe=no"
17758 +-fi
17759 +-rm -f conftest*
17760 ++
17761 ++
17762 ++
17763 ++for ac_header in stdlib.h sys/time.h unistd.h
17764 ++do
17765 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17766 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17769 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17770 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17771 ++fi
17772 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17774 ++else
17775 ++  # Is the header compilable?
17776 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
17777 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17778 ++cat >conftest.$ac_ext <<_ACEOF
17779 ++/* confdefs.h.  */
17780 ++_ACEOF
17781 ++cat confdefs.h >>conftest.$ac_ext
17782 ++cat >>conftest.$ac_ext <<_ACEOF
17783 ++/* end confdefs.h.  */
17784 ++$ac_includes_default
17785 ++#include <$ac_header>
17786 ++_ACEOF
17787 ++rm -f conftest.$ac_objext
17788 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789 ++  (eval $ac_compile) 2>conftest.er1
17790 ++  ac_status=$?
17791 ++  grep -v '^ *+' conftest.er1 >conftest.err
17792 ++  rm -f conftest.er1
17793 ++  cat conftest.err >&5
17794 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 ++  (exit $ac_status); } &&
17796 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17797 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 ++  (eval $ac_try) 2>&5
17799 ++  ac_status=$?
17800 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 ++  (exit $ac_status); }; } &&
17802 ++       { ac_try='test -s conftest.$ac_objext'
17803 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 ++  (eval $ac_try) 2>&5
17805 ++  ac_status=$?
17806 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 ++  (exit $ac_status); }; }; then
17808 ++  ac_header_compiler=yes
17809 ++else
17810 ++  echo "$as_me: failed program was:" >&5
17811 ++sed 's/^/| /' conftest.$ac_ext >&5
17812 ++
17813 ++ac_header_compiler=no
17814 ++fi
17815 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17816 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17817 ++echo "${ECHO_T}$ac_header_compiler" >&6
17818 ++
17819 ++# Is the header present?
17820 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
17821 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17822 ++cat >conftest.$ac_ext <<_ACEOF
17823 ++/* confdefs.h.  */
17824 ++_ACEOF
17825 ++cat confdefs.h >>conftest.$ac_ext
17826 ++cat >>conftest.$ac_ext <<_ACEOF
17827 ++/* end confdefs.h.  */
17828 ++#include <$ac_header>
17829 ++_ACEOF
17830 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17831 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17832 ++  ac_status=$?
17833 ++  grep -v '^ *+' conftest.er1 >conftest.err
17834 ++  rm -f conftest.er1
17835 ++  cat conftest.err >&5
17836 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 ++  (exit $ac_status); } >/dev/null; then
17838 ++  if test -s conftest.err; then
17839 ++    ac_cpp_err=$ac_c_preproc_warn_flag
17840 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17841 ++  else
17842 ++    ac_cpp_err=
17843 ++  fi
17844 ++else
17845 ++  ac_cpp_err=yes
17846 + fi
17847 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17848 +-  echo "$ac_t""yes" 1>&6
17849 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17850 +-  cat >> confdefs.h <<EOF
17851 +-#define $ac_tr_hdr 1
17852 +-EOF
17853 +- 
17854 ++if test -z "$ac_cpp_err"; then
17855 ++  ac_header_preproc=yes
17856 ++else
17857 ++  echo "$as_me: failed program was:" >&5
17858 ++sed 's/^/| /' conftest.$ac_ext >&5
17859 ++
17860 ++  ac_header_preproc=no
17861 ++fi
17862 ++rm -f conftest.err conftest.$ac_ext
17863 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17864 ++echo "${ECHO_T}$ac_header_preproc" >&6
17865 ++
17866 ++# So?  What about this header?
17867 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17868 ++  yes:no: )
17869 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17870 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17871 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17872 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17873 ++    ac_header_preproc=yes
17874 ++    ;;
17875 ++  no:yes:* )
17876 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17877 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17878 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17879 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17880 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17881 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17882 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17883 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17884 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17885 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17886 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17887 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17888 ++    (
17889 ++      cat <<\_ASBOX
17890 ++## ------------------------------------------ ##
17891 ++## Report this to the AC_PACKAGE_NAME lists.  ##
17892 ++## ------------------------------------------ ##
17893 ++_ASBOX
17894 ++    ) |
17895 ++      sed "s/^/$as_me: WARNING:     /" >&2
17896 ++    ;;
17897 ++esac
17898 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17900 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
17901 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17902 + else
17903 +-  echo "$ac_t""no" 1>&6
17904 ++  eval "$as_ac_Header=\$ac_header_preproc"
17905 ++fi
17906 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17907 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17908 ++
17909 ++fi
17910 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
17911 ++  cat >>confdefs.h <<_ACEOF
17912 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17913 ++_ACEOF
17914 ++
17915 + fi
17916 ++
17917 + done
17918
17919 ++
17920 + for ac_func in alarm
17921 + do
17922 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17923 +-echo "configure:6301: checking for $ac_func" >&5
17924 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17925 +-  echo $ac_n "(cached) $ac_c" 1>&6
17926 +-else
17927 +-  cat > conftest.$ac_ext <<EOF
17928 +-#line 6306 "configure"
17929 +-#include "confdefs.h"
17930 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17931 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
17932 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17933 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
17934 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ++else
17936 ++  cat >conftest.$ac_ext <<_ACEOF
17937 ++/* confdefs.h.  */
17938 ++_ACEOF
17939 ++cat confdefs.h >>conftest.$ac_ext
17940 ++cat >>conftest.$ac_ext <<_ACEOF
17941 ++/* end confdefs.h.  */
17942 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17943 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17944 ++#define $ac_func innocuous_$ac_func
17945 ++
17946 + /* System header to define __stub macros and hopefully few prototypes,
17947 +-    which can conflict with char $ac_func(); below.  */
17948 +-#include <assert.h>
17949 +-/* Override any gcc2 internal prototype to avoid an error.  */
17950 +-/* We use char because int might match the return type of a gcc2
17951 +-    builtin and then its argument prototype would still apply.  */
17952 +-char $ac_func();
17953 ++    which can conflict with char $ac_func (); below.
17954 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 ++    <limits.h> exists even on freestanding compilers.  */
17956
17957 +-int main() {
17958 ++#ifdef __STDC__
17959 ++# include <limits.h>
17960 ++#else
17961 ++# include <assert.h>
17962 ++#endif
17963
17964 ++#undef $ac_func
17965 ++
17966 ++/* Override any gcc2 internal prototype to avoid an error.  */
17967 ++#ifdef __cplusplus
17968 ++extern "C"
17969 ++{
17970 ++#endif
17971 ++/* We use char because int might match the return type of a gcc2
17972 ++   builtin and then its argument prototype would still apply.  */
17973 ++char $ac_func ();
17974 + /* The GNU C library defines this for functions which it implements
17975 +     to always fail with ENOSYS.  Some functions are actually named
17976 +     something starting with __ and the normal name is an alias.  */
17977 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 + choke me
17979 + #else
17980 +-$ac_func();
17981 ++char (*f) () = $ac_func;
17982 ++#endif
17983 ++#ifdef __cplusplus
17984 ++}
17985 + #endif
17986
17987 +-; return 0; }
17988 +-EOF
17989 +-if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17990 +-  rm -rf conftest*
17991 +-  eval "ac_cv_func_$ac_func=yes"
17992 +-else
17993 +-  echo "configure: failed program was:" >&5
17994 +-  cat conftest.$ac_ext >&5
17995 +-  rm -rf conftest*
17996 +-  eval "ac_cv_func_$ac_func=no"
17997 +-fi
17998 +-rm -f conftest*
17999 +-fi
18000 ++int
18001 ++main ()
18002 ++{
18003 ++return f != $ac_func;
18004 ++  ;
18005 ++  return 0;
18006 ++}
18007 ++_ACEOF
18008 ++rm -f conftest.$ac_objext conftest$ac_exeext
18009 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010 ++  (eval $ac_link) 2>conftest.er1
18011 ++  ac_status=$?
18012 ++  grep -v '^ *+' conftest.er1 >conftest.err
18013 ++  rm -f conftest.er1
18014 ++  cat conftest.err >&5
18015 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 ++  (exit $ac_status); } &&
18017 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18018 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 ++  (eval $ac_try) 2>&5
18020 ++  ac_status=$?
18021 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 ++  (exit $ac_status); }; } &&
18023 ++       { ac_try='test -s conftest$ac_exeext'
18024 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 ++  (eval $ac_try) 2>&5
18026 ++  ac_status=$?
18027 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 ++  (exit $ac_status); }; }; then
18029 ++  eval "$as_ac_var=yes"
18030 ++else
18031 ++  echo "$as_me: failed program was:" >&5
18032 ++sed 's/^/| /' conftest.$ac_ext >&5
18033 ++
18034 ++eval "$as_ac_var=no"
18035 ++fi
18036 ++rm -f conftest.err conftest.$ac_objext \
18037 ++      conftest$ac_exeext conftest.$ac_ext
18038 ++fi
18039 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18040 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18041 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
18042 ++  cat >>confdefs.h <<_ACEOF
18043 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18044 ++_ACEOF
18045
18046 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18047 +-  echo "$ac_t""yes" 1>&6
18048 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18049 +-  cat >> confdefs.h <<EOF
18050 +-#define $ac_tr_func 1
18051 +-EOF
18052 +- 
18053 +-else
18054 +-  echo "$ac_t""no" 1>&6
18055 + fi
18056 + done
18057
18058 +-echo $ac_n "checking for working mktime""... $ac_c" 1>&6
18059 +-echo "configure:6354: checking for working mktime" >&5
18060 +-if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
18061 +-  echo $ac_n "(cached) $ac_c" 1>&6
18062 ++echo "$as_me:$LINENO: checking for working mktime" >&5
18063 ++echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
18064 ++if test "${ac_cv_func_working_mktime+set}" = set; then
18065 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18066 + else
18067 +   if test "$cross_compiling" = yes; then
18068 +   ac_cv_func_working_mktime=no
18069 + else
18070 +-  cat > conftest.$ac_ext <<EOF
18071 +-#line 6362 "configure"
18072 +-#include "confdefs.h"
18073 +-/* Test program from Paul Eggert (eggert@twinsun.com)
18074 +-   and Tony Leneis (tony@plaza.ds.adp.com).  */
18075 ++  cat >conftest.$ac_ext <<_ACEOF
18076 ++/* confdefs.h.  */
18077 ++_ACEOF
18078 ++cat confdefs.h >>conftest.$ac_ext
18079 ++cat >>conftest.$ac_ext <<_ACEOF
18080 ++/* end confdefs.h.  */
18081 ++/* Test program from Paul Eggert and Tony Leneis.  */
18082 + #if TIME_WITH_SYS_TIME
18083 + # include <sys/time.h>
18084 + # include <time.h>
18085 +@@ -6373,6 +11834,10 @@
18086 + # endif
18087 + #endif
18088
18089 ++#if HAVE_STDLIB_H
18090 ++# include <stdlib.h>
18091 ++#endif
18092 ++
18093 + #if HAVE_UNISTD_H
18094 + # include <unistd.h>
18095 + #endif
18096 +@@ -6385,10 +11850,11 @@
18097 + #undef putenv
18098
18099 + static time_t time_t_max;
18100 ++static time_t time_t_min;
18101
18102 + /* Values we'll use to set the TZ environment variable.  */
18103 +-static const char *const tz_strings[] = {
18104 +-  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
18105 ++static char *tz_strings[] = {
18106 ++  (char *) 0, "TZ=GMT0", "TZ=JST-9",
18107 +   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18108 + };
18109 + #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18110 +@@ -6398,7 +11864,7 @@
18111 + static void
18112 + spring_forward_gap ()
18113 + {
18114 +-  /* glibc (up to about 1998-10-07) failed this test) */
18115 ++  /* glibc (up to about 1998-10-07) failed this test. */
18116 +   struct tm tm;
18117
18118 +   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18119 +@@ -6419,15 +11885,21 @@
18120 + }
18121
18122 + static void
18123 +-mktime_test (now)
18124 ++mktime_test1 (now)
18125 +      time_t now;
18126 + {
18127 +   struct tm *lt;
18128 +   if ((lt = localtime (&now)) && mktime (lt) != now)
18129 +     exit (1);
18130 +-  now = time_t_max - now;
18131 +-  if ((lt = localtime (&now)) && mktime (lt) != now)
18132 +-    exit (1);
18133 ++}
18134 ++
18135 ++static void
18136 ++mktime_test (now)
18137 ++     time_t now;
18138 ++{
18139 ++  mktime_test1 (now);
18140 ++  mktime_test1 ((time_t) (time_t_max - now));
18141 ++  mktime_test1 ((time_t) (time_t_min + now));
18142 + }
18143
18144 + static void
18145 +@@ -6487,6 +11959,9 @@
18146 +   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
18147 +     continue;
18148 +   time_t_max--;
18149 ++  if ((time_t) -1 < 0)
18150 ++    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
18151 ++      continue;
18152 +   delta = time_t_max / 997; /* a suitable prime number */
18153 +   for (i = 0; i < N_STRINGS; i++)
18154 +     {
18155 +@@ -6495,219 +11970,555 @@
18156
18157 +       for (t = 0; t <= time_t_max - delta; t += delta)
18158 +       mktime_test (t);
18159 +-      mktime_test ((time_t) 60 * 60);
18160 +-      mktime_test ((time_t) 60 * 60 * 24);
18161 ++      mktime_test ((time_t) 1);
18162 ++      mktime_test ((time_t) (60 * 60));
18163 ++      mktime_test ((time_t) (60 * 60 * 24));
18164
18165 +       for (j = 1; 0 < j; j *= 2)
18166 +-        bigtime_test (j);
18167 ++      bigtime_test (j);
18168 +       bigtime_test (j - 1);
18169 +     }
18170 +   irix_6_4_bug ();
18171 +   spring_forward_gap ();
18172 +   exit (0);
18173 + }
18174 +-EOF
18175 +-if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18176 +-then
18177 ++_ACEOF
18178 ++rm -f conftest$ac_exeext
18179 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 ++  (eval $ac_link) 2>&5
18181 ++  ac_status=$?
18182 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18184 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 ++  (eval $ac_try) 2>&5
18186 ++  ac_status=$?
18187 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 ++  (exit $ac_status); }; }; then
18189 +   ac_cv_func_working_mktime=yes
18190 + else
18191 +-  echo "configure: failed program was:" >&5
18192 +-  cat conftest.$ac_ext >&5
18193 +-  rm -fr conftest*
18194 +-  ac_cv_func_working_mktime=no
18195 ++  echo "$as_me: program exited with status $ac_status" >&5
18196 ++echo "$as_me: failed program was:" >&5
18197 ++sed 's/^/| /' conftest.$ac_ext >&5
18198 ++
18199 ++( exit $ac_status )
18200 ++ac_cv_func_working_mktime=no
18201 + fi
18202 +-rm -fr conftest*
18203 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18204 + fi
18205 +-
18206 + fi
18207 +-
18208 +-echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
18209 ++echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18210 ++echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
18211 + if test $ac_cv_func_working_mktime = no; then
18212 +-  LIBOBJS="$LIBOBJS mktime.${ac_objext}"
18213 ++  case $LIBOBJS in
18214 ++    "mktime.$ac_objext"   | \
18215 ++  *" mktime.$ac_objext"   | \
18216 ++    "mktime.$ac_objext "* | \
18217 ++  *" mktime.$ac_objext "* ) ;;
18218 ++  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
18219 ++esac
18220 ++
18221 + fi
18222
18223 + if test "$ac_cv_func_working_mktime" = no; then
18224 +-  cat >> confdefs.h <<\EOF
18225 ++  cat >>confdefs.h <<\_ACEOF
18226 + #define BROKEN_MKTIME 1
18227 +-EOF
18228 ++_ACEOF
18229
18230 + fi
18231
18232 + ac_have_func=no # yes means we've found a way to get the load average.
18233
18234 +-# Some systems have getloadavg without any extra libraries.
18235 +-echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
18236 +-echo "configure:6541: checking for getloadavg" >&5
18237 +-if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
18238 +-  echo $ac_n "(cached) $ac_c" 1>&6
18239 +-else
18240 +-  cat > conftest.$ac_ext <<EOF
18241 +-#line 6546 "configure"
18242 +-#include "confdefs.h"
18243 ++# Make sure getloadavg.c is where it belongs, at configure-time.
18244 ++test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18245 ++  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18246 ++echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18247 ++   { (exit 1); exit 1; }; }
18248 ++
18249 ++ac_save_LIBS=$LIBS
18250 ++
18251 ++# Check for getloadavg, but be sure not to touch the cache variable.
18252 ++(echo "$as_me:$LINENO: checking for getloadavg" >&5
18253 ++echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
18254 ++if test "${ac_cv_func_getloadavg+set}" = set; then
18255 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18256 ++else
18257 ++  cat >conftest.$ac_ext <<_ACEOF
18258 ++/* confdefs.h.  */
18259 ++_ACEOF
18260 ++cat confdefs.h >>conftest.$ac_ext
18261 ++cat >>conftest.$ac_ext <<_ACEOF
18262 ++/* end confdefs.h.  */
18263 ++/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18264 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18265 ++#define getloadavg innocuous_getloadavg
18266 ++
18267 + /* System header to define __stub macros and hopefully few prototypes,
18268 +-    which can conflict with char getloadavg(); below.  */
18269 +-#include <assert.h>
18270 +-/* Override any gcc2 internal prototype to avoid an error.  */
18271 +-/* We use char because int might match the return type of a gcc2
18272 +-    builtin and then its argument prototype would still apply.  */
18273 +-char getloadavg();
18274 ++    which can conflict with char getloadavg (); below.
18275 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276 ++    <limits.h> exists even on freestanding compilers.  */
18277
18278 +-int main() {
18279 ++#ifdef __STDC__
18280 ++# include <limits.h>
18281 ++#else
18282 ++# include <assert.h>
18283 ++#endif
18284
18285 ++#undef getloadavg
18286 ++
18287 ++/* Override any gcc2 internal prototype to avoid an error.  */
18288 ++#ifdef __cplusplus
18289 ++extern "C"
18290 ++{
18291 ++#endif
18292 ++/* We use char because int might match the return type of a gcc2
18293 ++   builtin and then its argument prototype would still apply.  */
18294 ++char getloadavg ();
18295 + /* The GNU C library defines this for functions which it implements
18296 +     to always fail with ENOSYS.  Some functions are actually named
18297 +     something starting with __ and the normal name is an alias.  */
18298 + #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
18299 + choke me
18300 + #else
18301 +-getloadavg();
18302 ++char (*f) () = getloadavg;
18303 + #endif
18304 ++#ifdef __cplusplus
18305 ++}
18306 ++#endif
18307 ++
18308 ++int
18309 ++main ()
18310 ++{
18311 ++return f != getloadavg;
18312 ++  ;
18313 ++  return 0;
18314 ++}
18315 ++_ACEOF
18316 ++rm -f conftest.$ac_objext conftest$ac_exeext
18317 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 ++  (eval $ac_link) 2>conftest.er1
18319 ++  ac_status=$?
18320 ++  grep -v '^ *+' conftest.er1 >conftest.err
18321 ++  rm -f conftest.er1
18322 ++  cat conftest.err >&5
18323 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 ++  (exit $ac_status); } &&
18325 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18326 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 ++  (eval $ac_try) 2>&5
18328 ++  ac_status=$?
18329 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 ++  (exit $ac_status); }; } &&
18331 ++       { ac_try='test -s conftest$ac_exeext'
18332 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 ++  (eval $ac_try) 2>&5
18334 ++  ac_status=$?
18335 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 ++  (exit $ac_status); }; }; then
18337 ++  ac_cv_func_getloadavg=yes
18338 ++else
18339 ++  echo "$as_me: failed program was:" >&5
18340 ++sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 +-; return 0; }
18343 +-EOF
18344 +-if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18345 +-  rm -rf conftest*
18346 +-  eval "ac_cv_func_getloadavg=yes"
18347 +-else
18348 +-  echo "configure: failed program was:" >&5
18349 +-  cat conftest.$ac_ext >&5
18350 +-  rm -rf conftest*
18351 +-  eval "ac_cv_func_getloadavg=no"
18352 ++ac_cv_func_getloadavg=no
18353 + fi
18354 +-rm -f conftest*
18355 ++rm -f conftest.err conftest.$ac_objext \
18356 ++      conftest$ac_exeext conftest.$ac_ext
18357 + fi
18358 +-
18359 +-if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
18360 +-  echo "$ac_t""yes" 1>&6
18361 +-  ac_have_func=yes
18362 ++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18363 ++echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
18364 ++if test $ac_cv_func_getloadavg = yes; then
18365 ++  exit 0
18366 + else
18367 +-  echo "$ac_t""no" 1>&6
18368 ++  exit 1
18369 ++fi
18370 ++) && ac_have_func=yes
18371 ++
18372 ++# On HPUX9, an unprivileged user can get load averages through this function.
18373 ++
18374 ++for ac_func in pstat_getdynamic
18375 ++do
18376 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18379 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
18380 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18381 ++else
18382 ++  cat >conftest.$ac_ext <<_ACEOF
18383 ++/* confdefs.h.  */
18384 ++_ACEOF
18385 ++cat confdefs.h >>conftest.$ac_ext
18386 ++cat >>conftest.$ac_ext <<_ACEOF
18387 ++/* end confdefs.h.  */
18388 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18390 ++#define $ac_func innocuous_$ac_func
18391 ++
18392 ++/* System header to define __stub macros and hopefully few prototypes,
18393 ++    which can conflict with char $ac_func (); below.
18394 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 ++    <limits.h> exists even on freestanding compilers.  */
18396 ++
18397 ++#ifdef __STDC__
18398 ++# include <limits.h>
18399 ++#else
18400 ++# include <assert.h>
18401 ++#endif
18402 ++
18403 ++#undef $ac_func
18404 ++
18405 ++/* Override any gcc2 internal prototype to avoid an error.  */
18406 ++#ifdef __cplusplus
18407 ++extern "C"
18408 ++{
18409 ++#endif
18410 ++/* We use char because int might match the return type of a gcc2
18411 ++   builtin and then its argument prototype would still apply.  */
18412 ++char $ac_func ();
18413 ++/* The GNU C library defines this for functions which it implements
18414 ++    to always fail with ENOSYS.  Some functions are actually named
18415 ++    something starting with __ and the normal name is an alias.  */
18416 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18417 ++choke me
18418 ++#else
18419 ++char (*f) () = $ac_func;
18420 ++#endif
18421 ++#ifdef __cplusplus
18422 ++}
18423 ++#endif
18424 ++
18425 ++int
18426 ++main ()
18427 ++{
18428 ++return f != $ac_func;
18429 ++  ;
18430 ++  return 0;
18431 ++}
18432 ++_ACEOF
18433 ++rm -f conftest.$ac_objext conftest$ac_exeext
18434 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 ++  (eval $ac_link) 2>conftest.er1
18436 ++  ac_status=$?
18437 ++  grep -v '^ *+' conftest.er1 >conftest.err
18438 ++  rm -f conftest.er1
18439 ++  cat conftest.err >&5
18440 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 ++  (exit $ac_status); } &&
18442 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18443 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 ++  (eval $ac_try) 2>&5
18445 ++  ac_status=$?
18446 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 ++  (exit $ac_status); }; } &&
18448 ++       { ac_try='test -s conftest$ac_exeext'
18449 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 ++  (eval $ac_try) 2>&5
18451 ++  ac_status=$?
18452 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 ++  (exit $ac_status); }; }; then
18454 ++  eval "$as_ac_var=yes"
18455 ++else
18456 ++  echo "$as_me: failed program was:" >&5
18457 ++sed 's/^/| /' conftest.$ac_ext >&5
18458 ++
18459 ++eval "$as_ac_var=no"
18460 ++fi
18461 ++rm -f conftest.err conftest.$ac_objext \
18462 ++      conftest$ac_exeext conftest.$ac_ext
18463 ++fi
18464 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18465 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18466 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
18467 ++  cat >>confdefs.h <<_ACEOF
18468 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18469 ++_ACEOF
18470 ++
18471 + fi
18472 ++done
18473 ++
18474 ++
18475 ++# Solaris has libkstat which does not require root.
18476 ++
18477 ++echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18478 ++echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
18479 ++if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18480 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ++else
18482 ++  ac_check_lib_save_LIBS=$LIBS
18483 ++LIBS="-lkstat  $LIBS"
18484 ++cat >conftest.$ac_ext <<_ACEOF
18485 ++/* confdefs.h.  */
18486 ++_ACEOF
18487 ++cat confdefs.h >>conftest.$ac_ext
18488 ++cat >>conftest.$ac_ext <<_ACEOF
18489 ++/* end confdefs.h.  */
18490 ++
18491 ++/* Override any gcc2 internal prototype to avoid an error.  */
18492 ++#ifdef __cplusplus
18493 ++extern "C"
18494 ++#endif
18495 ++/* We use char because int might match the return type of a gcc2
18496 ++   builtin and then its argument prototype would still apply.  */
18497 ++char kstat_open ();
18498 ++int
18499 ++main ()
18500 ++{
18501 ++kstat_open ();
18502 ++  ;
18503 ++  return 0;
18504 ++}
18505 ++_ACEOF
18506 ++rm -f conftest.$ac_objext conftest$ac_exeext
18507 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 ++  (eval $ac_link) 2>conftest.er1
18509 ++  ac_status=$?
18510 ++  grep -v '^ *+' conftest.er1 >conftest.err
18511 ++  rm -f conftest.er1
18512 ++  cat conftest.err >&5
18513 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 ++  (exit $ac_status); } &&
18515 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18516 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 ++  (eval $ac_try) 2>&5
18518 ++  ac_status=$?
18519 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 ++  (exit $ac_status); }; } &&
18521 ++       { ac_try='test -s conftest$ac_exeext'
18522 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 ++  (eval $ac_try) 2>&5
18524 ++  ac_status=$?
18525 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 ++  (exit $ac_status); }; }; then
18527 ++  ac_cv_lib_kstat_kstat_open=yes
18528 ++else
18529 ++  echo "$as_me: failed program was:" >&5
18530 ++sed 's/^/| /' conftest.$ac_ext >&5
18531 ++
18532 ++ac_cv_lib_kstat_kstat_open=no
18533 ++fi
18534 ++rm -f conftest.err conftest.$ac_objext \
18535 ++      conftest$ac_exeext conftest.$ac_ext
18536 ++LIBS=$ac_check_lib_save_LIBS
18537 ++fi
18538 ++echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18539 ++echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
18540 ++if test $ac_cv_lib_kstat_kstat_open = yes; then
18541 ++  cat >>confdefs.h <<_ACEOF
18542 ++#define HAVE_LIBKSTAT 1
18543 ++_ACEOF
18544 ++
18545 ++  LIBS="-lkstat $LIBS"
18546
18547 ++fi
18548
18549 ++test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18550 ++
18551 ++# Some systems with -lutil have (and need) -lkvm as well, some do not.
18552 ++# On Solaris, -lkvm requires nlist from -lelf, so check that first
18553 ++# to get the right answer into the cache.
18554 ++# For kstat on solaris, we need libelf to force the definition of SVR4 below.
18555 + if test $ac_have_func = no; then
18556 +-  # Some systems with -lutil have (and need) -lkvm as well, some do not.
18557 +-  # On Solaris, -lkvm requires nlist from -lelf, so check that first
18558 +-  # to get the right answer into the cache.
18559 +-  echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
18560 +-echo "configure:6594: checking for elf_begin in -lelf" >&5
18561 +-ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
18562 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18563 +-  echo $ac_n "(cached) $ac_c" 1>&6
18564 ++  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18565 ++echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18566 ++if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18567 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18568 + else
18569 +-  ac_save_LIBS="$LIBS"
18570 ++  ac_check_lib_save_LIBS=$LIBS
18571 + LIBS="-lelf  $LIBS"
18572 +-cat > conftest.$ac_ext <<EOF
18573 +-#line 6602 "configure"
18574 +-#include "confdefs.h"
18575 +-/* Override any gcc2 internal prototype to avoid an error.  */
18576 +-/* We use char because int might match the return type of a gcc2
18577 +-    builtin and then its argument prototype would still apply.  */
18578 +-char elf_begin();
18579 +-
18580 +-int main() {
18581 +-elf_begin()
18582 +-; return 0; }
18583 +-EOF
18584 +-if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18585 +-  rm -rf conftest*
18586 +-  eval "ac_cv_lib_$ac_lib_var=yes"
18587 +-else
18588 +-  echo "configure: failed program was:" >&5
18589 +-  cat conftest.$ac_ext >&5
18590 +-  rm -rf conftest*
18591 +-  eval "ac_cv_lib_$ac_lib_var=no"
18592 +-fi
18593 +-rm -f conftest*
18594 +-LIBS="$ac_save_LIBS"
18595 ++cat >conftest.$ac_ext <<_ACEOF
18596 ++/* confdefs.h.  */
18597 ++_ACEOF
18598 ++cat confdefs.h >>conftest.$ac_ext
18599 ++cat >>conftest.$ac_ext <<_ACEOF
18600 ++/* end confdefs.h.  */
18601
18602 +-fi
18603 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18604 +-  echo "$ac_t""yes" 1>&6
18605 ++/* Override any gcc2 internal prototype to avoid an error.  */
18606 ++#ifdef __cplusplus
18607 ++extern "C"
18608 ++#endif
18609 ++/* We use char because int might match the return type of a gcc2
18610 ++   builtin and then its argument prototype would still apply.  */
18611 ++char elf_begin ();
18612 ++int
18613 ++main ()
18614 ++{
18615 ++elf_begin ();
18616 ++  ;
18617 ++  return 0;
18618 ++}
18619 ++_ACEOF
18620 ++rm -f conftest.$ac_objext conftest$ac_exeext
18621 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18622 ++  (eval $ac_link) 2>conftest.er1
18623 ++  ac_status=$?
18624 ++  grep -v '^ *+' conftest.er1 >conftest.err
18625 ++  rm -f conftest.er1
18626 ++  cat conftest.err >&5
18627 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 ++  (exit $ac_status); } &&
18629 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18630 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 ++  (eval $ac_try) 2>&5
18632 ++  ac_status=$?
18633 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 ++  (exit $ac_status); }; } &&
18635 ++       { ac_try='test -s conftest$ac_exeext'
18636 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 ++  (eval $ac_try) 2>&5
18638 ++  ac_status=$?
18639 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 ++  (exit $ac_status); }; }; then
18641 ++  ac_cv_lib_elf_elf_begin=yes
18642 ++else
18643 ++  echo "$as_me: failed program was:" >&5
18644 ++sed 's/^/| /' conftest.$ac_ext >&5
18645 ++
18646 ++ac_cv_lib_elf_elf_begin=no
18647 ++fi
18648 ++rm -f conftest.err conftest.$ac_objext \
18649 ++      conftest$ac_exeext conftest.$ac_ext
18650 ++LIBS=$ac_check_lib_save_LIBS
18651 ++fi
18652 ++echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18653 ++echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18654 ++if test $ac_cv_lib_elf_elf_begin = yes; then
18655 +   LIBS="-lelf $LIBS"
18656 +-else
18657 +-  echo "$ac_t""no" 1>&6
18658 + fi
18659
18660 +-  echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
18661 +-echo "configure:6634: checking for kvm_open in -lkvm" >&5
18662 +-ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
18663 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18664 +-  echo $ac_n "(cached) $ac_c" 1>&6
18665 ++fi
18666 ++if test $ac_have_func = no; then
18667 ++  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18668 ++echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
18669 ++if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18670 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18671 + else
18672 +-  ac_save_LIBS="$LIBS"
18673 ++  ac_check_lib_save_LIBS=$LIBS
18674 + LIBS="-lkvm  $LIBS"
18675 +-cat > conftest.$ac_ext <<EOF
18676 +-#line 6642 "configure"
18677 +-#include "confdefs.h"
18678 +-/* Override any gcc2 internal prototype to avoid an error.  */
18679 +-/* We use char because int might match the return type of a gcc2
18680 +-    builtin and then its argument prototype would still apply.  */
18681 +-char kvm_open();
18682 +-
18683 +-int main() {
18684 +-kvm_open()
18685 +-; return 0; }
18686 +-EOF
18687 +-if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18688 +-  rm -rf conftest*
18689 +-  eval "ac_cv_lib_$ac_lib_var=yes"
18690 +-else
18691 +-  echo "configure: failed program was:" >&5
18692 +-  cat conftest.$ac_ext >&5
18693 +-  rm -rf conftest*
18694 +-  eval "ac_cv_lib_$ac_lib_var=no"
18695 +-fi
18696 +-rm -f conftest*
18697 +-LIBS="$ac_save_LIBS"
18698 ++cat >conftest.$ac_ext <<_ACEOF
18699 ++/* confdefs.h.  */
18700 ++_ACEOF
18701 ++cat confdefs.h >>conftest.$ac_ext
18702 ++cat >>conftest.$ac_ext <<_ACEOF
18703 ++/* end confdefs.h.  */
18704
18705 +-fi
18706 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18707 +-  echo "$ac_t""yes" 1>&6
18708 ++/* Override any gcc2 internal prototype to avoid an error.  */
18709 ++#ifdef __cplusplus
18710 ++extern "C"
18711 ++#endif
18712 ++/* We use char because int might match the return type of a gcc2
18713 ++   builtin and then its argument prototype would still apply.  */
18714 ++char kvm_open ();
18715 ++int
18716 ++main ()
18717 ++{
18718 ++kvm_open ();
18719 ++  ;
18720 ++  return 0;
18721 ++}
18722 ++_ACEOF
18723 ++rm -f conftest.$ac_objext conftest$ac_exeext
18724 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 ++  (eval $ac_link) 2>conftest.er1
18726 ++  ac_status=$?
18727 ++  grep -v '^ *+' conftest.er1 >conftest.err
18728 ++  rm -f conftest.er1
18729 ++  cat conftest.err >&5
18730 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 ++  (exit $ac_status); } &&
18732 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18733 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 ++  (eval $ac_try) 2>&5
18735 ++  ac_status=$?
18736 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 ++  (exit $ac_status); }; } &&
18738 ++       { ac_try='test -s conftest$ac_exeext'
18739 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 ++  (eval $ac_try) 2>&5
18741 ++  ac_status=$?
18742 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 ++  (exit $ac_status); }; }; then
18744 ++  ac_cv_lib_kvm_kvm_open=yes
18745 ++else
18746 ++  echo "$as_me: failed program was:" >&5
18747 ++sed 's/^/| /' conftest.$ac_ext >&5
18748 ++
18749 ++ac_cv_lib_kvm_kvm_open=no
18750 ++fi
18751 ++rm -f conftest.err conftest.$ac_objext \
18752 ++      conftest$ac_exeext conftest.$ac_ext
18753 ++LIBS=$ac_check_lib_save_LIBS
18754 ++fi
18755 ++echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18756 ++echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
18757 ++if test $ac_cv_lib_kvm_kvm_open = yes; then
18758 +   LIBS="-lkvm $LIBS"
18759 +-else
18760 +-  echo "$ac_t""no" 1>&6
18761 + fi
18762
18763 +   # Check for the 4.4BSD definition of getloadavg.
18764 +-  echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
18765 +-echo "configure:6675: checking for getloadavg in -lutil" >&5
18766 +-ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
18767 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18768 +-  echo $ac_n "(cached) $ac_c" 1>&6
18769 ++  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18770 ++echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
18771 ++if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18772 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18773 + else
18774 +-  ac_save_LIBS="$LIBS"
18775 ++  ac_check_lib_save_LIBS=$LIBS
18776 + LIBS="-lutil  $LIBS"
18777 +-cat > conftest.$ac_ext <<EOF
18778 +-#line 6683 "configure"
18779 +-#include "confdefs.h"
18780 +-/* Override any gcc2 internal prototype to avoid an error.  */
18781 +-/* We use char because int might match the return type of a gcc2
18782 +-    builtin and then its argument prototype would still apply.  */
18783 +-char getloadavg();
18784 +-
18785 +-int main() {
18786 +-getloadavg()
18787 +-; return 0; }
18788 +-EOF
18789 +-if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18790 +-  rm -rf conftest*
18791 +-  eval "ac_cv_lib_$ac_lib_var=yes"
18792 +-else
18793 +-  echo "configure: failed program was:" >&5
18794 +-  cat conftest.$ac_ext >&5
18795 +-  rm -rf conftest*
18796 +-  eval "ac_cv_lib_$ac_lib_var=no"
18797 +-fi
18798 +-rm -f conftest*
18799 +-LIBS="$ac_save_LIBS"
18800 ++cat >conftest.$ac_ext <<_ACEOF
18801 ++/* confdefs.h.  */
18802 ++_ACEOF
18803 ++cat confdefs.h >>conftest.$ac_ext
18804 ++cat >>conftest.$ac_ext <<_ACEOF
18805 ++/* end confdefs.h.  */
18806
18807 +-fi
18808 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18809 +-  echo "$ac_t""yes" 1>&6
18810 ++/* Override any gcc2 internal prototype to avoid an error.  */
18811 ++#ifdef __cplusplus
18812 ++extern "C"
18813 ++#endif
18814 ++/* We use char because int might match the return type of a gcc2
18815 ++   builtin and then its argument prototype would still apply.  */
18816 ++char getloadavg ();
18817 ++int
18818 ++main ()
18819 ++{
18820 ++getloadavg ();
18821 ++  ;
18822 ++  return 0;
18823 ++}
18824 ++_ACEOF
18825 ++rm -f conftest.$ac_objext conftest$ac_exeext
18826 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827 ++  (eval $ac_link) 2>conftest.er1
18828 ++  ac_status=$?
18829 ++  grep -v '^ *+' conftest.er1 >conftest.err
18830 ++  rm -f conftest.er1
18831 ++  cat conftest.err >&5
18832 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 ++  (exit $ac_status); } &&
18834 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18835 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 ++  (eval $ac_try) 2>&5
18837 ++  ac_status=$?
18838 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 ++  (exit $ac_status); }; } &&
18840 ++       { ac_try='test -s conftest$ac_exeext'
18841 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 ++  (eval $ac_try) 2>&5
18843 ++  ac_status=$?
18844 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 ++  (exit $ac_status); }; }; then
18846 ++  ac_cv_lib_util_getloadavg=yes
18847 ++else
18848 ++  echo "$as_me: failed program was:" >&5
18849 ++sed 's/^/| /' conftest.$ac_ext >&5
18850 ++
18851 ++ac_cv_lib_util_getloadavg=no
18852 ++fi
18853 ++rm -f conftest.err conftest.$ac_objext \
18854 ++      conftest$ac_exeext conftest.$ac_ext
18855 ++LIBS=$ac_check_lib_save_LIBS
18856 ++fi
18857 ++echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18858 ++echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
18859 ++if test $ac_cv_lib_util_getloadavg = yes; then
18860 +   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18861 +-else
18862 +-  echo "$ac_t""no" 1>&6
18863 + fi
18864
18865 + fi
18866 +@@ -6715,660 +12526,1830 @@
18867 + if test $ac_have_func = no; then
18868 +   # There is a commonly available library for RS/6000 AIX.
18869 +   # Since it is not a standard part of AIX, it might be installed locally.
18870 +-  ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
18871 +-  echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
18872 +-echo "configure:6721: checking for getloadavg in -lgetloadavg" >&5
18873 +-ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
18874 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18875 +-  echo $ac_n "(cached) $ac_c" 1>&6
18876 ++  ac_getloadavg_LIBS=$LIBS
18877 ++  LIBS="-L/usr/local/lib $LIBS"
18878 ++  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18879 ++echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
18880 ++if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18881 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
18882 + else
18883 +-  ac_save_LIBS="$LIBS"
18884 ++  ac_check_lib_save_LIBS=$LIBS
18885 + LIBS="-lgetloadavg  $LIBS"
18886 +-cat > conftest.$ac_ext <<EOF
18887 +-#line 6729 "configure"
18888 +-#include "confdefs.h"
18889 +-/* Override any gcc2 internal prototype to avoid an error.  */
18890 +-/* We use char because int might match the return type of a gcc2
18891 +-    builtin and then its argument prototype would still apply.  */
18892 +-char getloadavg();
18893 +-
18894 +-int main() {
18895 +-getloadavg()
18896 +-; return 0; }
18897 +-EOF
18898 +-if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18899 +-  rm -rf conftest*
18900 +-  eval "ac_cv_lib_$ac_lib_var=yes"
18901 +-else
18902 +-  echo "configure: failed program was:" >&5
18903 +-  cat conftest.$ac_ext >&5
18904 +-  rm -rf conftest*
18905 +-  eval "ac_cv_lib_$ac_lib_var=no"
18906 +-fi
18907 +-rm -f conftest*
18908 +-LIBS="$ac_save_LIBS"
18909 +-
18910 +-fi
18911 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18912 +-  echo "$ac_t""yes" 1>&6
18913 +-  LIBS="-lgetloadavg $LIBS"
18914 +-else
18915 +-  echo "$ac_t""no" 1>&6
18916 +-LIBS="$ac_getloadavg_LIBS"
18917 +-fi
18918 ++cat >conftest.$ac_ext <<_ACEOF
18919 ++/* confdefs.h.  */
18920 ++_ACEOF
18921 ++cat confdefs.h >>conftest.$ac_ext
18922 ++cat >>conftest.$ac_ext <<_ACEOF
18923 ++/* end confdefs.h.  */
18924
18925 +-fi
18926 ++/* Override any gcc2 internal prototype to avoid an error.  */
18927 ++#ifdef __cplusplus
18928 ++extern "C"
18929 ++#endif
18930 ++/* We use char because int might match the return type of a gcc2
18931 ++   builtin and then its argument prototype would still apply.  */
18932 ++char getloadavg ();
18933 ++int
18934 ++main ()
18935 ++{
18936 ++getloadavg ();
18937 ++  ;
18938 ++  return 0;
18939 ++}
18940 ++_ACEOF
18941 ++rm -f conftest.$ac_objext conftest$ac_exeext
18942 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 ++  (eval $ac_link) 2>conftest.er1
18944 ++  ac_status=$?
18945 ++  grep -v '^ *+' conftest.er1 >conftest.err
18946 ++  rm -f conftest.er1
18947 ++  cat conftest.err >&5
18948 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 ++  (exit $ac_status); } &&
18950 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18951 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 ++  (eval $ac_try) 2>&5
18953 ++  ac_status=$?
18954 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 ++  (exit $ac_status); }; } &&
18956 ++       { ac_try='test -s conftest$ac_exeext'
18957 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 ++  (eval $ac_try) 2>&5
18959 ++  ac_status=$?
18960 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 ++  (exit $ac_status); }; }; then
18962 ++  ac_cv_lib_getloadavg_getloadavg=yes
18963 ++else
18964 ++  echo "$as_me: failed program was:" >&5
18965 ++sed 's/^/| /' conftest.$ac_ext >&5
18966 ++
18967 ++ac_cv_lib_getloadavg_getloadavg=no
18968 ++fi
18969 ++rm -f conftest.err conftest.$ac_objext \
18970 ++      conftest$ac_exeext conftest.$ac_ext
18971 ++LIBS=$ac_check_lib_save_LIBS
18972 ++fi
18973 ++echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18974 ++echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
18975 ++if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18976 ++  LIBS="-lgetloadavg $LIBS"
18977 ++else
18978 ++  LIBS=$ac_getloadavg_LIBS
18979 ++fi
18980 ++
18981 ++fi
18982 ++
18983 ++# Make sure it is really in the library, if we think we found it,
18984 ++# otherwise set up the replacement function.
18985
18986 +-# Make sure it is really in the library, if we think we found it.
18987 + for ac_func in getloadavg
18988 + do
18989 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18990 +-echo "configure:6767: checking for $ac_func" >&5
18991 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18992 +-  echo $ac_n "(cached) $ac_c" 1>&6
18993 +-else
18994 +-  cat > conftest.$ac_ext <<EOF
18995 +-#line 6772 "configure"
18996 +-#include "confdefs.h"
18997 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18998 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
18999 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19000 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
19001 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ++else
19003 ++  cat >conftest.$ac_ext <<_ACEOF
19004 ++/* confdefs.h.  */
19005 ++_ACEOF
19006 ++cat confdefs.h >>conftest.$ac_ext
19007 ++cat >>conftest.$ac_ext <<_ACEOF
19008 ++/* end confdefs.h.  */
19009 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19010 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19011 ++#define $ac_func innocuous_$ac_func
19012 ++
19013 + /* System header to define __stub macros and hopefully few prototypes,
19014 +-    which can conflict with char $ac_func(); below.  */
19015 +-#include <assert.h>
19016 +-/* Override any gcc2 internal prototype to avoid an error.  */
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 $ac_func();
19020 ++    which can conflict with char $ac_func (); below.
19021 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 ++    <limits.h> exists even on freestanding compilers.  */
19023 ++
19024 ++#ifdef __STDC__
19025 ++# include <limits.h>
19026 ++#else
19027 ++# include <assert.h>
19028 ++#endif
19029
19030 +-int main() {
19031 ++#undef $ac_func
19032
19033 ++/* Override any gcc2 internal prototype to avoid an error.  */
19034 ++#ifdef __cplusplus
19035 ++extern "C"
19036 ++{
19037 ++#endif
19038 ++/* We use char because int might match the return type of a gcc2
19039 ++   builtin and then its argument prototype would still apply.  */
19040 ++char $ac_func ();
19041 + /* The GNU C library defines this for functions which it implements
19042 +     to always fail with ENOSYS.  Some functions are actually named
19043 +     something starting with __ and the normal name is an alias.  */
19044 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19045 + choke me
19046 + #else
19047 +-$ac_func();
19048 ++char (*f) () = $ac_func;
19049 ++#endif
19050 ++#ifdef __cplusplus
19051 ++}
19052 + #endif
19053
19054 +-; return 0; }
19055 +-EOF
19056 +-if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19057 +-  rm -rf conftest*
19058 +-  eval "ac_cv_func_$ac_func=yes"
19059 +-else
19060 +-  echo "configure: failed program was:" >&5
19061 +-  cat conftest.$ac_ext >&5
19062 +-  rm -rf conftest*
19063 +-  eval "ac_cv_func_$ac_func=no"
19064 +-fi
19065 +-rm -f conftest*
19066 +-fi
19067 ++int
19068 ++main ()
19069 ++{
19070 ++return f != $ac_func;
19071 ++  ;
19072 ++  return 0;
19073 ++}
19074 ++_ACEOF
19075 ++rm -f conftest.$ac_objext conftest$ac_exeext
19076 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 ++  (eval $ac_link) 2>conftest.er1
19078 ++  ac_status=$?
19079 ++  grep -v '^ *+' conftest.er1 >conftest.err
19080 ++  rm -f conftest.er1
19081 ++  cat conftest.err >&5
19082 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 ++  (exit $ac_status); } &&
19084 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19085 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 ++  (eval $ac_try) 2>&5
19087 ++  ac_status=$?
19088 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 ++  (exit $ac_status); }; } &&
19090 ++       { ac_try='test -s conftest$ac_exeext'
19091 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 ++  (eval $ac_try) 2>&5
19093 ++  ac_status=$?
19094 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 ++  (exit $ac_status); }; }; then
19096 ++  eval "$as_ac_var=yes"
19097 ++else
19098 ++  echo "$as_me: failed program was:" >&5
19099 ++sed 's/^/| /' conftest.$ac_ext >&5
19100 ++
19101 ++eval "$as_ac_var=no"
19102 ++fi
19103 ++rm -f conftest.err conftest.$ac_objext \
19104 ++      conftest$ac_exeext conftest.$ac_ext
19105 ++fi
19106 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19107 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19108 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
19109 ++  cat >>confdefs.h <<_ACEOF
19110 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19111 ++_ACEOF
19112 ++
19113 ++else
19114 ++  case $LIBOBJS in
19115 ++    "getloadavg.$ac_objext"   | \
19116 ++  *" getloadavg.$ac_objext"   | \
19117 ++    "getloadavg.$ac_objext "* | \
19118 ++  *" getloadavg.$ac_objext "* ) ;;
19119 ++  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
19120 ++esac
19121
19122 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19123 +-  echo "$ac_t""yes" 1>&6
19124 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19125 +-  cat >> confdefs.h <<EOF
19126 +-#define $ac_tr_func 1
19127 +-EOF
19128 +- 
19129 ++
19130 ++cat >>confdefs.h <<\_ACEOF
19131 ++#define C_GETLOADAVG 1
19132 ++_ACEOF
19133 ++
19134 ++# Figure out what our getloadavg.c needs.
19135 ++ac_have_func=no
19136 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19137 ++  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19138 ++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
19139 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19140 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19141 ++fi
19142 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19143 ++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
19144 ++else
19145 ++  # Is the header compilable?
19146 ++echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19147 ++echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
19148 ++cat >conftest.$ac_ext <<_ACEOF
19149 ++/* confdefs.h.  */
19150 ++_ACEOF
19151 ++cat confdefs.h >>conftest.$ac_ext
19152 ++cat >>conftest.$ac_ext <<_ACEOF
19153 ++/* end confdefs.h.  */
19154 ++$ac_includes_default
19155 ++#include <sys/dg_sys_info.h>
19156 ++_ACEOF
19157 ++rm -f conftest.$ac_objext
19158 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 ++  (eval $ac_compile) 2>conftest.er1
19160 ++  ac_status=$?
19161 ++  grep -v '^ *+' conftest.er1 >conftest.err
19162 ++  rm -f conftest.er1
19163 ++  cat conftest.err >&5
19164 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 ++  (exit $ac_status); } &&
19166 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19167 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 ++  (eval $ac_try) 2>&5
19169 ++  ac_status=$?
19170 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 ++  (exit $ac_status); }; } &&
19172 ++       { ac_try='test -s conftest.$ac_objext'
19173 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 ++  (eval $ac_try) 2>&5
19175 ++  ac_status=$?
19176 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 ++  (exit $ac_status); }; }; then
19178 ++  ac_header_compiler=yes
19179 ++else
19180 ++  echo "$as_me: failed program was:" >&5
19181 ++sed 's/^/| /' conftest.$ac_ext >&5
19182 ++
19183 ++ac_header_compiler=no
19184 ++fi
19185 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19186 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19187 ++echo "${ECHO_T}$ac_header_compiler" >&6
19188 ++
19189 ++# Is the header present?
19190 ++echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19191 ++echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
19192 ++cat >conftest.$ac_ext <<_ACEOF
19193 ++/* confdefs.h.  */
19194 ++_ACEOF
19195 ++cat confdefs.h >>conftest.$ac_ext
19196 ++cat >>conftest.$ac_ext <<_ACEOF
19197 ++/* end confdefs.h.  */
19198 ++#include <sys/dg_sys_info.h>
19199 ++_ACEOF
19200 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19201 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19202 ++  ac_status=$?
19203 ++  grep -v '^ *+' conftest.er1 >conftest.err
19204 ++  rm -f conftest.er1
19205 ++  cat conftest.err >&5
19206 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 ++  (exit $ac_status); } >/dev/null; then
19208 ++  if test -s conftest.err; then
19209 ++    ac_cpp_err=$ac_c_preproc_warn_flag
19210 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19211 ++  else
19212 ++    ac_cpp_err=
19213 ++  fi
19214 + else
19215 +-  echo "$ac_t""no" 1>&6
19216 +-LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
19217 ++  ac_cpp_err=yes
19218 + fi
19219 +-done
19220 +-
19221 +-
19222 +-
19223 +-if test $ac_cv_func_getloadavg = yes; then
19224 +-  cat >> confdefs.h <<\EOF
19225 +-#define HAVE_GETLOADAVG 1
19226 +-EOF
19227 ++if test -z "$ac_cpp_err"; then
19228 ++  ac_header_preproc=yes
19229 ++else
19230 ++  echo "$as_me: failed program was:" >&5
19231 ++sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 +-  ac_have_func=yes
19234 ++  ac_header_preproc=no
19235 ++fi
19236 ++rm -f conftest.err conftest.$ac_ext
19237 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19238 ++echo "${ECHO_T}$ac_header_preproc" >&6
19239 ++
19240 ++# So?  What about this header?
19241 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19242 ++  yes:no: )
19243 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19244 ++echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19245 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19246 ++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19247 ++    ac_header_preproc=yes
19248 ++    ;;
19249 ++  no:yes:* )
19250 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19251 ++echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19252 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
19253 ++echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
19254 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19255 ++echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19256 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
19257 ++echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19258 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19259 ++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19260 ++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19261 ++echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19262 ++    (
19263 ++      cat <<\_ASBOX
19264 ++## ------------------------------------------ ##
19265 ++## Report this to the AC_PACKAGE_NAME lists.  ##
19266 ++## ------------------------------------------ ##
19267 ++_ASBOX
19268 ++    ) |
19269 ++      sed "s/^/$as_me: WARNING:     /" >&2
19270 ++    ;;
19271 ++esac
19272 ++echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19273 ++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
19274 ++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19275 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19276 + else
19277 +-  # Figure out what our getloadavg.c needs.
19278 +-  ac_have_func=no
19279 +-  ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
19280 +-echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
19281 +-echo "configure:6833: checking for sys/dg_sys_info.h" >&5
19282 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19283 +-  echo $ac_n "(cached) $ac_c" 1>&6
19284 +-else
19285 +-  cat > conftest.$ac_ext <<EOF
19286 +-#line 6838 "configure"
19287 +-#include "confdefs.h"
19288 +-#include <sys/dg_sys_info.h>
19289 +-EOF
19290 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19291 +-{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19292 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19293 +-if test -z "$ac_err"; then
19294 +-  rm -rf conftest*
19295 +-  eval "ac_cv_header_$ac_safe=yes"
19296 +-else
19297 +-  echo "$ac_err" >&5
19298 +-  echo "configure: failed program was:" >&5
19299 +-  cat conftest.$ac_ext >&5
19300 +-  rm -rf conftest*
19301 +-  eval "ac_cv_header_$ac_safe=no"
19302 ++  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19303 + fi
19304 +-rm -f conftest*
19305 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19306 ++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
19307 ++
19308 + fi
19309 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19310 +-  echo "$ac_t""yes" 1>&6
19311 +-  ac_have_func=yes; cat >> confdefs.h <<\EOF
19312 ++if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19313 ++  ac_have_func=yes
19314 ++
19315 ++cat >>confdefs.h <<\_ACEOF
19316 + #define DGUX 1
19317 +-EOF
19318 ++_ACEOF
19319
19320 +-  echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
19321 +-echo "configure:6864: checking for dg_sys_info in -ldgc" >&5
19322 +-ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
19323 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19324 +-  echo $ac_n "(cached) $ac_c" 1>&6
19325 ++
19326 ++echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19327 ++echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
19328 ++if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19329 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19330 + else
19331 +-  ac_save_LIBS="$LIBS"
19332 ++  ac_check_lib_save_LIBS=$LIBS
19333 + LIBS="-ldgc  $LIBS"
19334 +-cat > conftest.$ac_ext <<EOF
19335 +-#line 6872 "configure"
19336 +-#include "confdefs.h"
19337 +-/* Override any gcc2 internal prototype to avoid an error.  */
19338 +-/* We use char because int might match the return type of a gcc2
19339 +-    builtin and then its argument prototype would still apply.  */
19340 +-char dg_sys_info();
19341 +-
19342 +-int main() {
19343 +-dg_sys_info()
19344 +-; return 0; }
19345 +-EOF
19346 +-if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19347 +-  rm -rf conftest*
19348 +-  eval "ac_cv_lib_$ac_lib_var=yes"
19349 +-else
19350 +-  echo "configure: failed program was:" >&5
19351 +-  cat conftest.$ac_ext >&5
19352 +-  rm -rf conftest*
19353 +-  eval "ac_cv_lib_$ac_lib_var=no"
19354 ++cat >conftest.$ac_ext <<_ACEOF
19355 ++/* confdefs.h.  */
19356 ++_ACEOF
19357 ++cat confdefs.h >>conftest.$ac_ext
19358 ++cat >>conftest.$ac_ext <<_ACEOF
19359 ++/* end confdefs.h.  */
19360 ++
19361 ++/* Override any gcc2 internal prototype to avoid an error.  */
19362 ++#ifdef __cplusplus
19363 ++extern "C"
19364 ++#endif
19365 ++/* We use char because int might match the return type of a gcc2
19366 ++   builtin and then its argument prototype would still apply.  */
19367 ++char dg_sys_info ();
19368 ++int
19369 ++main ()
19370 ++{
19371 ++dg_sys_info ();
19372 ++  ;
19373 ++  return 0;
19374 ++}
19375 ++_ACEOF
19376 ++rm -f conftest.$ac_objext conftest$ac_exeext
19377 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378 ++  (eval $ac_link) 2>conftest.er1
19379 ++  ac_status=$?
19380 ++  grep -v '^ *+' conftest.er1 >conftest.err
19381 ++  rm -f conftest.er1
19382 ++  cat conftest.err >&5
19383 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 ++  (exit $ac_status); } &&
19385 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19386 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 ++  (eval $ac_try) 2>&5
19388 ++  ac_status=$?
19389 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 ++  (exit $ac_status); }; } &&
19391 ++       { ac_try='test -s conftest$ac_exeext'
19392 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 ++  (eval $ac_try) 2>&5
19394 ++  ac_status=$?
19395 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 ++  (exit $ac_status); }; }; then
19397 ++  ac_cv_lib_dgc_dg_sys_info=yes
19398 ++else
19399 ++  echo "$as_me: failed program was:" >&5
19400 ++sed 's/^/| /' conftest.$ac_ext >&5
19401 ++
19402 ++ac_cv_lib_dgc_dg_sys_info=no
19403 ++fi
19404 ++rm -f conftest.err conftest.$ac_objext \
19405 ++      conftest$ac_exeext conftest.$ac_ext
19406 ++LIBS=$ac_check_lib_save_LIBS
19407 ++fi
19408 ++echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19409 ++echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
19410 ++if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19411 ++  cat >>confdefs.h <<_ACEOF
19412 ++#define HAVE_LIBDGC 1
19413 ++_ACEOF
19414 ++
19415 ++  LIBS="-ldgc $LIBS"
19416 ++
19417 + fi
19418 +-rm -f conftest*
19419 +-LIBS="$ac_save_LIBS"
19420
19421 + fi
19422 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19423 +-  echo "$ac_t""yes" 1>&6
19424 +-    ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19425 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19426 +-  cat >> confdefs.h <<EOF
19427 +-#define $ac_tr_lib 1
19428 +-EOF
19429
19430 +-  LIBS="-ldgc $LIBS"
19431
19432 ++
19433 ++if test "${ac_cv_header_locale_h+set}" = set; then
19434 ++  echo "$as_me:$LINENO: checking for locale.h" >&5
19435 ++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
19436 ++if test "${ac_cv_header_locale_h+set}" = set; then
19437 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19438 ++fi
19439 ++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19440 ++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
19441 ++else
19442 ++  # Is the header compilable?
19443 ++echo "$as_me:$LINENO: checking locale.h usability" >&5
19444 ++echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
19445 ++cat >conftest.$ac_ext <<_ACEOF
19446 ++/* confdefs.h.  */
19447 ++_ACEOF
19448 ++cat confdefs.h >>conftest.$ac_ext
19449 ++cat >>conftest.$ac_ext <<_ACEOF
19450 ++/* end confdefs.h.  */
19451 ++$ac_includes_default
19452 ++#include <locale.h>
19453 ++_ACEOF
19454 ++rm -f conftest.$ac_objext
19455 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456 ++  (eval $ac_compile) 2>conftest.er1
19457 ++  ac_status=$?
19458 ++  grep -v '^ *+' conftest.er1 >conftest.err
19459 ++  rm -f conftest.er1
19460 ++  cat conftest.err >&5
19461 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 ++  (exit $ac_status); } &&
19463 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19464 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 ++  (eval $ac_try) 2>&5
19466 ++  ac_status=$?
19467 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 ++  (exit $ac_status); }; } &&
19469 ++       { ac_try='test -s conftest.$ac_objext'
19470 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 ++  (eval $ac_try) 2>&5
19472 ++  ac_status=$?
19473 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 ++  (exit $ac_status); }; }; then
19475 ++  ac_header_compiler=yes
19476 ++else
19477 ++  echo "$as_me: failed program was:" >&5
19478 ++sed 's/^/| /' conftest.$ac_ext >&5
19479 ++
19480 ++ac_header_compiler=no
19481 ++fi
19482 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19484 ++echo "${ECHO_T}$ac_header_compiler" >&6
19485 ++
19486 ++# Is the header present?
19487 ++echo "$as_me:$LINENO: checking locale.h presence" >&5
19488 ++echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
19489 ++cat >conftest.$ac_ext <<_ACEOF
19490 ++/* confdefs.h.  */
19491 ++_ACEOF
19492 ++cat confdefs.h >>conftest.$ac_ext
19493 ++cat >>conftest.$ac_ext <<_ACEOF
19494 ++/* end confdefs.h.  */
19495 ++#include <locale.h>
19496 ++_ACEOF
19497 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19498 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19499 ++  ac_status=$?
19500 ++  grep -v '^ *+' conftest.er1 >conftest.err
19501 ++  rm -f conftest.er1
19502 ++  cat conftest.err >&5
19503 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 ++  (exit $ac_status); } >/dev/null; then
19505 ++  if test -s conftest.err; then
19506 ++    ac_cpp_err=$ac_c_preproc_warn_flag
19507 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19508 ++  else
19509 ++    ac_cpp_err=
19510 ++  fi
19511 + else
19512 +-  echo "$ac_t""no" 1>&6
19513 ++  ac_cpp_err=yes
19514 + fi
19515 ++if test -z "$ac_cpp_err"; then
19516 ++  ac_header_preproc=yes
19517 ++else
19518 ++  echo "$as_me: failed program was:" >&5
19519 ++sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ++  ac_header_preproc=no
19522 ++fi
19523 ++rm -f conftest.err conftest.$ac_ext
19524 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19525 ++echo "${ECHO_T}$ac_header_preproc" >&6
19526 ++
19527 ++# So?  What about this header?
19528 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19529 ++  yes:no: )
19530 ++    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19531 ++echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19532 ++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19533 ++echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19534 ++    ac_header_preproc=yes
19535 ++    ;;
19536 ++  no:yes:* )
19537 ++    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19538 ++echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19539 ++    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
19540 ++echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
19541 ++    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19542 ++echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19543 ++    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
19544 ++echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19545 ++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19546 ++echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19547 ++    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19548 ++echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19549 ++    (
19550 ++      cat <<\_ASBOX
19551 ++## ------------------------------------------ ##
19552 ++## Report this to the AC_PACKAGE_NAME lists.  ##
19553 ++## ------------------------------------------ ##
19554 ++_ASBOX
19555 ++    ) |
19556 ++      sed "s/^/$as_me: WARNING:     /" >&2
19557 ++    ;;
19558 ++esac
19559 ++echo "$as_me:$LINENO: checking for locale.h" >&5
19560 ++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
19561 ++if test "${ac_cv_header_locale_h+set}" = set; then
19562 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19563 + else
19564 +-  echo "$ac_t""no" 1>&6
19565 ++  ac_cv_header_locale_h=$ac_header_preproc
19566 ++fi
19567 ++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19568 ++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
19569 ++
19570 ++fi
19571 ++
19572 ++
19573 ++
19574 ++for ac_func in setlocale
19575 ++do
19576 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19577 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
19578 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19579 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
19580 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19581 ++else
19582 ++  cat >conftest.$ac_ext <<_ACEOF
19583 ++/* confdefs.h.  */
19584 ++_ACEOF
19585 ++cat confdefs.h >>conftest.$ac_ext
19586 ++cat >>conftest.$ac_ext <<_ACEOF
19587 ++/* end confdefs.h.  */
19588 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19589 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19590 ++#define $ac_func innocuous_$ac_func
19591 ++
19592 ++/* System header to define __stub macros and hopefully few prototypes,
19593 ++    which can conflict with char $ac_func (); below.
19594 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19595 ++    <limits.h> exists even on freestanding compilers.  */
19596 ++
19597 ++#ifdef __STDC__
19598 ++# include <limits.h>
19599 ++#else
19600 ++# include <assert.h>
19601 ++#endif
19602 ++
19603 ++#undef $ac_func
19604 ++
19605 ++/* Override any gcc2 internal prototype to avoid an error.  */
19606 ++#ifdef __cplusplus
19607 ++extern "C"
19608 ++{
19609 ++#endif
19610 ++/* We use char because int might match the return type of a gcc2
19611 ++   builtin and then its argument prototype would still apply.  */
19612 ++char $ac_func ();
19613 ++/* The GNU C library defines this for functions which it implements
19614 ++    to always fail with ENOSYS.  Some functions are actually named
19615 ++    something starting with __ and the normal name is an alias.  */
19616 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19617 ++choke me
19618 ++#else
19619 ++char (*f) () = $ac_func;
19620 ++#endif
19621 ++#ifdef __cplusplus
19622 ++}
19623 ++#endif
19624 ++
19625 ++int
19626 ++main ()
19627 ++{
19628 ++return f != $ac_func;
19629 ++  ;
19630 ++  return 0;
19631 ++}
19632 ++_ACEOF
19633 ++rm -f conftest.$ac_objext conftest$ac_exeext
19634 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 ++  (eval $ac_link) 2>conftest.er1
19636 ++  ac_status=$?
19637 ++  grep -v '^ *+' conftest.er1 >conftest.err
19638 ++  rm -f conftest.er1
19639 ++  cat conftest.err >&5
19640 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 ++  (exit $ac_status); } &&
19642 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19643 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 ++  (eval $ac_try) 2>&5
19645 ++  ac_status=$?
19646 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 ++  (exit $ac_status); }; } &&
19648 ++       { ac_try='test -s conftest$ac_exeext'
19649 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 ++  (eval $ac_try) 2>&5
19651 ++  ac_status=$?
19652 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 ++  (exit $ac_status); }; }; then
19654 ++  eval "$as_ac_var=yes"
19655 ++else
19656 ++  echo "$as_me: failed program was:" >&5
19657 ++sed 's/^/| /' conftest.$ac_ext >&5
19658 ++
19659 ++eval "$as_ac_var=no"
19660 ++fi
19661 ++rm -f conftest.err conftest.$ac_objext \
19662 ++      conftest$ac_exeext conftest.$ac_ext
19663 ++fi
19664 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19665 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19666 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
19667 ++  cat >>confdefs.h <<_ACEOF
19668 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19669 ++_ACEOF
19670 ++
19671 + fi
19672 ++done
19673
19674
19675 +-  # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19676 +-  # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
19677 +-  # Irix 4.0.5F has the header but not the library.
19678 +-  if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
19679 +-    ac_have_func=yes; cat >> confdefs.h <<\EOF
19680 ++# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19681 ++# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
19682 ++# Irix 4.0.5F has the header but not the library.
19683 ++if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19684 ++  ac_have_func=yes
19685 ++
19686 ++cat >>confdefs.h <<\_ACEOF
19687 + #define SVR4 1
19688 +-EOF
19689 ++_ACEOF
19690 ++
19691 ++fi
19692
19693 ++if test $ac_have_func = no; then
19694 ++  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19695 ++  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19696 ++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
19697 ++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19698 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19699 ++fi
19700 ++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19701 ++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
19702 ++else
19703 ++  # Is the header compilable?
19704 ++echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19705 ++echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
19706 ++cat >conftest.$ac_ext <<_ACEOF
19707 ++/* confdefs.h.  */
19708 ++_ACEOF
19709 ++cat confdefs.h >>conftest.$ac_ext
19710 ++cat >>conftest.$ac_ext <<_ACEOF
19711 ++/* end confdefs.h.  */
19712 ++$ac_includes_default
19713 ++#include <inq_stats/cpustats.h>
19714 ++_ACEOF
19715 ++rm -f conftest.$ac_objext
19716 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 ++  (eval $ac_compile) 2>conftest.er1
19718 ++  ac_status=$?
19719 ++  grep -v '^ *+' conftest.er1 >conftest.err
19720 ++  rm -f conftest.er1
19721 ++  cat conftest.err >&5
19722 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 ++  (exit $ac_status); } &&
19724 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19725 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 ++  (eval $ac_try) 2>&5
19727 ++  ac_status=$?
19728 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 ++  (exit $ac_status); }; } &&
19730 ++       { ac_try='test -s conftest.$ac_objext'
19731 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 ++  (eval $ac_try) 2>&5
19733 ++  ac_status=$?
19734 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 ++  (exit $ac_status); }; }; then
19736 ++  ac_header_compiler=yes
19737 ++else
19738 ++  echo "$as_me: failed program was:" >&5
19739 ++sed 's/^/| /' conftest.$ac_ext >&5
19740 ++
19741 ++ac_header_compiler=no
19742 ++fi
19743 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19745 ++echo "${ECHO_T}$ac_header_compiler" >&6
19746 ++
19747 ++# Is the header present?
19748 ++echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19749 ++echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
19750 ++cat >conftest.$ac_ext <<_ACEOF
19751 ++/* confdefs.h.  */
19752 ++_ACEOF
19753 ++cat confdefs.h >>conftest.$ac_ext
19754 ++cat >>conftest.$ac_ext <<_ACEOF
19755 ++/* end confdefs.h.  */
19756 ++#include <inq_stats/cpustats.h>
19757 ++_ACEOF
19758 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19760 ++  ac_status=$?
19761 ++  grep -v '^ *+' conftest.er1 >conftest.err
19762 ++  rm -f conftest.er1
19763 ++  cat conftest.err >&5
19764 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 ++  (exit $ac_status); } >/dev/null; then
19766 ++  if test -s conftest.err; then
19767 ++    ac_cpp_err=$ac_c_preproc_warn_flag
19768 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19769 ++  else
19770 ++    ac_cpp_err=
19771 +   fi
19772 ++else
19773 ++  ac_cpp_err=yes
19774 ++fi
19775 ++if test -z "$ac_cpp_err"; then
19776 ++  ac_header_preproc=yes
19777 ++else
19778 ++  echo "$as_me: failed program was:" >&5
19779 ++sed 's/^/| /' conftest.$ac_ext >&5
19780
19781 +-  if test $ac_have_func = no; then
19782 +-    ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
19783 +-echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
19784 +-echo "configure:6928: checking for inq_stats/cpustats.h" >&5
19785 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19786 +-  echo $ac_n "(cached) $ac_c" 1>&6
19787 ++  ac_header_preproc=no
19788 ++fi
19789 ++rm -f conftest.err conftest.$ac_ext
19790 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 ++echo "${ECHO_T}$ac_header_preproc" >&6
19792 ++
19793 ++# So?  What about this header?
19794 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19795 ++  yes:no: )
19796 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19797 ++echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19799 ++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19800 ++    ac_header_preproc=yes
19801 ++    ;;
19802 ++  no:yes:* )
19803 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19804 ++echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19805 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
19806 ++echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
19807 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19808 ++echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19809 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
19810 ++echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19811 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19812 ++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19813 ++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19814 ++echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19815 ++    (
19816 ++      cat <<\_ASBOX
19817 ++## ------------------------------------------ ##
19818 ++## Report this to the AC_PACKAGE_NAME lists.  ##
19819 ++## ------------------------------------------ ##
19820 ++_ASBOX
19821 ++    ) |
19822 ++      sed "s/^/$as_me: WARNING:     /" >&2
19823 ++    ;;
19824 ++esac
19825 ++echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19826 ++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
19827 ++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19828 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19829 + else
19830 +-  cat > conftest.$ac_ext <<EOF
19831 +-#line 6933 "configure"
19832 +-#include "confdefs.h"
19833 +-#include <inq_stats/cpustats.h>
19834 +-EOF
19835 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19836 +-{ (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19837 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19838 +-if test -z "$ac_err"; then
19839 +-  rm -rf conftest*
19840 +-  eval "ac_cv_header_$ac_safe=yes"
19841 +-else
19842 +-  echo "$ac_err" >&5
19843 +-  echo "configure: failed program was:" >&5
19844 +-  cat conftest.$ac_ext >&5
19845 +-  rm -rf conftest*
19846 +-  eval "ac_cv_header_$ac_safe=no"
19847 ++  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19848 + fi
19849 +-rm -f conftest*
19850 ++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19851 ++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
19852 ++
19853 + fi
19854 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19855 +-  echo "$ac_t""yes" 1>&6
19856 +-  ac_have_func=yes; cat >> confdefs.h <<\EOF
19857 ++if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19858 ++  ac_have_func=yes
19859 ++
19860 ++cat >>confdefs.h <<\_ACEOF
19861 + #define UMAX 1
19862 +-EOF
19863 ++_ACEOF
19864
19865 +-    cat >> confdefs.h <<\EOF
19866 ++
19867 ++cat >>confdefs.h <<\_ACEOF
19868 + #define UMAX4_3 1
19869 +-EOF
19870 ++_ACEOF
19871 ++
19872 ++fi
19873 ++
19874
19875 +-else
19876 +-  echo "$ac_t""no" 1>&6
19877 + fi
19878
19879 ++if test $ac_have_func = no; then
19880 ++  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19881 ++  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19882 ++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
19883 ++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19884 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
19885 ++fi
19886 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19887 ++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
19888 ++else
19889 ++  # Is the header compilable?
19890 ++echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19891 ++echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
19892 ++cat >conftest.$ac_ext <<_ACEOF
19893 ++/* confdefs.h.  */
19894 ++_ACEOF
19895 ++cat confdefs.h >>conftest.$ac_ext
19896 ++cat >>conftest.$ac_ext <<_ACEOF
19897 ++/* end confdefs.h.  */
19898 ++$ac_includes_default
19899 ++#include <sys/cpustats.h>
19900 ++_ACEOF
19901 ++rm -f conftest.$ac_objext
19902 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 ++  (eval $ac_compile) 2>conftest.er1
19904 ++  ac_status=$?
19905 ++  grep -v '^ *+' conftest.er1 >conftest.err
19906 ++  rm -f conftest.er1
19907 ++  cat conftest.err >&5
19908 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 ++  (exit $ac_status); } &&
19910 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19911 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 ++  (eval $ac_try) 2>&5
19913 ++  ac_status=$?
19914 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 ++  (exit $ac_status); }; } &&
19916 ++       { ac_try='test -s conftest.$ac_objext'
19917 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 ++  (eval $ac_try) 2>&5
19919 ++  ac_status=$?
19920 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 ++  (exit $ac_status); }; }; then
19922 ++  ac_header_compiler=yes
19923 ++else
19924 ++  echo "$as_me: failed program was:" >&5
19925 ++sed 's/^/| /' conftest.$ac_ext >&5
19926 ++
19927 ++ac_header_compiler=no
19928 ++fi
19929 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19931 ++echo "${ECHO_T}$ac_header_compiler" >&6
19932 ++
19933 ++# Is the header present?
19934 ++echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19935 ++echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
19936 ++cat >conftest.$ac_ext <<_ACEOF
19937 ++/* confdefs.h.  */
19938 ++_ACEOF
19939 ++cat confdefs.h >>conftest.$ac_ext
19940 ++cat >>conftest.$ac_ext <<_ACEOF
19941 ++/* end confdefs.h.  */
19942 ++#include <sys/cpustats.h>
19943 ++_ACEOF
19944 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19945 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19946 ++  ac_status=$?
19947 ++  grep -v '^ *+' conftest.er1 >conftest.err
19948 ++  rm -f conftest.er1
19949 ++  cat conftest.err >&5
19950 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 ++  (exit $ac_status); } >/dev/null; then
19952 ++  if test -s conftest.err; then
19953 ++    ac_cpp_err=$ac_c_preproc_warn_flag
19954 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19955 ++  else
19956 ++    ac_cpp_err=
19957 +   fi
19958 ++else
19959 ++  ac_cpp_err=yes
19960 ++fi
19961 ++if test -z "$ac_cpp_err"; then
19962 ++  ac_header_preproc=yes
19963 ++else
19964 ++  echo "$as_me: failed program was:" >&5
19965 ++sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 +-  if test $ac_have_func = no; then
19968 +-    ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
19969 +-echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
19970 +-echo "configure:6971: checking for sys/cpustats.h" >&5
19971 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19972 +-  echo $ac_n "(cached) $ac_c" 1>&6
19973 ++  ac_header_preproc=no
19974 ++fi
19975 ++rm -f conftest.err conftest.$ac_ext
19976 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19977 ++echo "${ECHO_T}$ac_header_preproc" >&6
19978 ++
19979 ++# So?  What about this header?
19980 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19981 ++  yes:no: )
19982 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19983 ++echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19984 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19985 ++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19986 ++    ac_header_preproc=yes
19987 ++    ;;
19988 ++  no:yes:* )
19989 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19990 ++echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19991 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
19992 ++echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
19993 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19994 ++echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19995 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
19996 ++echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19997 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19998 ++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19999 ++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
20000 ++echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
20001 ++    (
20002 ++      cat <<\_ASBOX
20003 ++## ------------------------------------------ ##
20004 ++## Report this to the AC_PACKAGE_NAME lists.  ##
20005 ++## ------------------------------------------ ##
20006 ++_ASBOX
20007 ++    ) |
20008 ++      sed "s/^/$as_me: WARNING:     /" >&2
20009 ++    ;;
20010 ++esac
20011 ++echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
20012 ++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
20013 ++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20014 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20015 + else
20016 +-  cat > conftest.$ac_ext <<EOF
20017 +-#line 6976 "configure"
20018 +-#include "confdefs.h"
20019 +-#include <sys/cpustats.h>
20020 +-EOF
20021 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20022 +-{ (eval echo configure:6981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20023 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20024 +-if test -z "$ac_err"; then
20025 +-  rm -rf conftest*
20026 +-  eval "ac_cv_header_$ac_safe=yes"
20027 +-else
20028 +-  echo "$ac_err" >&5
20029 +-  echo "configure: failed program was:" >&5
20030 +-  cat conftest.$ac_ext >&5
20031 +-  rm -rf conftest*
20032 +-  eval "ac_cv_header_$ac_safe=no"
20033 ++  ac_cv_header_sys_cpustats_h=$ac_header_preproc
20034 + fi
20035 +-rm -f conftest*
20036 ++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
20037 ++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
20038 ++
20039 + fi
20040 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20041 +-  echo "$ac_t""yes" 1>&6
20042 +-  ac_have_func=yes; cat >> confdefs.h <<\EOF
20043 ++if test $ac_cv_header_sys_cpustats_h = yes; then
20044 ++  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20045 + #define UMAX 1
20046 +-EOF
20047 ++_ACEOF
20048
20049 +-else
20050 +-  echo "$ac_t""no" 1>&6
20051 + fi
20052
20053 +-  fi
20054
20055 +-  if test $ac_have_func = no; then
20056 +-    for ac_hdr in mach/mach.h
20057 ++fi
20058 ++
20059 ++if test $ac_have_func = no; then
20060 ++
20061 ++for ac_header in mach/mach.h
20062 + do
20063 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20064 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20065 +-echo "configure:7012: checking for $ac_hdr" >&5
20066 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20067 +-  echo $ac_n "(cached) $ac_c" 1>&6
20068 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20069 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20070 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
20071 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20072 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20074 ++fi
20075 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20076 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20077 ++else
20078 ++  # Is the header compilable?
20079 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
20080 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20081 ++cat >conftest.$ac_ext <<_ACEOF
20082 ++/* confdefs.h.  */
20083 ++_ACEOF
20084 ++cat confdefs.h >>conftest.$ac_ext
20085 ++cat >>conftest.$ac_ext <<_ACEOF
20086 ++/* end confdefs.h.  */
20087 ++$ac_includes_default
20088 ++#include <$ac_header>
20089 ++_ACEOF
20090 ++rm -f conftest.$ac_objext
20091 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092 ++  (eval $ac_compile) 2>conftest.er1
20093 ++  ac_status=$?
20094 ++  grep -v '^ *+' conftest.er1 >conftest.err
20095 ++  rm -f conftest.er1
20096 ++  cat conftest.err >&5
20097 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 ++  (exit $ac_status); } &&
20099 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20100 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 ++  (eval $ac_try) 2>&5
20102 ++  ac_status=$?
20103 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 ++  (exit $ac_status); }; } &&
20105 ++       { ac_try='test -s conftest.$ac_objext'
20106 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 ++  (eval $ac_try) 2>&5
20108 ++  ac_status=$?
20109 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 ++  (exit $ac_status); }; }; then
20111 ++  ac_header_compiler=yes
20112 ++else
20113 ++  echo "$as_me: failed program was:" >&5
20114 ++sed 's/^/| /' conftest.$ac_ext >&5
20115 ++
20116 ++ac_header_compiler=no
20117 ++fi
20118 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20119 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20120 ++echo "${ECHO_T}$ac_header_compiler" >&6
20121 ++
20122 ++# Is the header present?
20123 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
20124 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20125 ++cat >conftest.$ac_ext <<_ACEOF
20126 ++/* confdefs.h.  */
20127 ++_ACEOF
20128 ++cat confdefs.h >>conftest.$ac_ext
20129 ++cat >>conftest.$ac_ext <<_ACEOF
20130 ++/* end confdefs.h.  */
20131 ++#include <$ac_header>
20132 ++_ACEOF
20133 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20134 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20135 ++  ac_status=$?
20136 ++  grep -v '^ *+' conftest.er1 >conftest.err
20137 ++  rm -f conftest.er1
20138 ++  cat conftest.err >&5
20139 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 ++  (exit $ac_status); } >/dev/null; then
20141 ++  if test -s conftest.err; then
20142 ++    ac_cpp_err=$ac_c_preproc_warn_flag
20143 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20144 ++  else
20145 ++    ac_cpp_err=
20146 ++  fi
20147 ++else
20148 ++  ac_cpp_err=yes
20149 ++fi
20150 ++if test -z "$ac_cpp_err"; then
20151 ++  ac_header_preproc=yes
20152 + else
20153 +-  cat > conftest.$ac_ext <<EOF
20154 +-#line 7017 "configure"
20155 +-#include "confdefs.h"
20156 +-#include <$ac_hdr>
20157 +-EOF
20158 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20159 +-{ (eval echo configure:7022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20160 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20161 +-if test -z "$ac_err"; then
20162 +-  rm -rf conftest*
20163 +-  eval "ac_cv_header_$ac_safe=yes"
20164 ++  echo "$as_me: failed program was:" >&5
20165 ++sed 's/^/| /' conftest.$ac_ext >&5
20166 ++
20167 ++  ac_header_preproc=no
20168 ++fi
20169 ++rm -f conftest.err conftest.$ac_ext
20170 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20171 ++echo "${ECHO_T}$ac_header_preproc" >&6
20172 ++
20173 ++# So?  What about this header?
20174 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20175 ++  yes:no: )
20176 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20177 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20178 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20179 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20180 ++    ac_header_preproc=yes
20181 ++    ;;
20182 ++  no:yes:* )
20183 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20184 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20185 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20186 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20187 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20188 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20189 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20190 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20191 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20192 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20193 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20194 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20195 ++    (
20196 ++      cat <<\_ASBOX
20197 ++## ------------------------------------------ ##
20198 ++## Report this to the AC_PACKAGE_NAME lists.  ##
20199 ++## ------------------------------------------ ##
20200 ++_ASBOX
20201 ++    ) |
20202 ++      sed "s/^/$as_me: WARNING:     /" >&2
20203 ++    ;;
20204 ++esac
20205 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
20206 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20207 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20208 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20209 + else
20210 +-  echo "$ac_err" >&5
20211 +-  echo "configure: failed program was:" >&5
20212 +-  cat conftest.$ac_ext >&5
20213 +-  rm -rf conftest*
20214 +-  eval "ac_cv_header_$ac_safe=no"
20215 ++  eval "$as_ac_Header=\$ac_header_preproc"
20216 + fi
20217 +-rm -f conftest*
20218 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20220 ++
20221 + fi
20222 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20223 +-  echo "$ac_t""yes" 1>&6
20224 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20225 +-  cat >> confdefs.h <<EOF
20226 +-#define $ac_tr_hdr 1
20227 +-EOF
20228 +- 
20229 +-else
20230 +-  echo "$ac_t""no" 1>&6
20231 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
20232 ++  cat >>confdefs.h <<_ACEOF
20233 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20234 ++_ACEOF
20235 ++
20236 + fi
20237 ++
20238 + done
20239
20240 +-  fi
20241 ++fi
20242
20243 +-  ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
20244 +-echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
20245 +-echo "configure:7052: checking for nlist.h" >&5
20246 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20247 +-  echo $ac_n "(cached) $ac_c" 1>&6
20248 ++
20249 ++for ac_header in nlist.h
20250 ++do
20251 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20252 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20253 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
20254 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20255 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20256 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20257 ++fi
20258 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20259 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20260 ++else
20261 ++  # Is the header compilable?
20262 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
20263 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20264 ++cat >conftest.$ac_ext <<_ACEOF
20265 ++/* confdefs.h.  */
20266 ++_ACEOF
20267 ++cat confdefs.h >>conftest.$ac_ext
20268 ++cat >>conftest.$ac_ext <<_ACEOF
20269 ++/* end confdefs.h.  */
20270 ++$ac_includes_default
20271 ++#include <$ac_header>
20272 ++_ACEOF
20273 ++rm -f conftest.$ac_objext
20274 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275 ++  (eval $ac_compile) 2>conftest.er1
20276 ++  ac_status=$?
20277 ++  grep -v '^ *+' conftest.er1 >conftest.err
20278 ++  rm -f conftest.er1
20279 ++  cat conftest.err >&5
20280 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 ++  (exit $ac_status); } &&
20282 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20283 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 ++  (eval $ac_try) 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_header_compiler=yes
20295 ++else
20296 ++  echo "$as_me: failed program was:" >&5
20297 ++sed 's/^/| /' conftest.$ac_ext >&5
20298 ++
20299 ++ac_header_compiler=no
20300 ++fi
20301 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 ++echo "${ECHO_T}$ac_header_compiler" >&6
20304 ++
20305 ++# Is the header present?
20306 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20308 ++cat >conftest.$ac_ext <<_ACEOF
20309 ++/* confdefs.h.  */
20310 ++_ACEOF
20311 ++cat confdefs.h >>conftest.$ac_ext
20312 ++cat >>conftest.$ac_ext <<_ACEOF
20313 ++/* end confdefs.h.  */
20314 ++#include <$ac_header>
20315 ++_ACEOF
20316 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20317 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20318 ++  ac_status=$?
20319 ++  grep -v '^ *+' conftest.er1 >conftest.err
20320 ++  rm -f conftest.er1
20321 ++  cat conftest.err >&5
20322 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 ++  (exit $ac_status); } >/dev/null; then
20324 ++  if test -s conftest.err; then
20325 ++    ac_cpp_err=$ac_c_preproc_warn_flag
20326 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20327 ++  else
20328 ++    ac_cpp_err=
20329 ++  fi
20330 + else
20331 +-  cat > conftest.$ac_ext <<EOF
20332 +-#line 7057 "configure"
20333 +-#include "confdefs.h"
20334 +-#include <nlist.h>
20335 +-EOF
20336 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20337 +-{ (eval echo configure:7062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20338 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20339 +-if test -z "$ac_err"; then
20340 +-  rm -rf conftest*
20341 +-  eval "ac_cv_header_$ac_safe=yes"
20342 +-else
20343 +-  echo "$ac_err" >&5
20344 +-  echo "configure: failed program was:" >&5
20345 +-  cat conftest.$ac_ext >&5
20346 +-  rm -rf conftest*
20347 +-  eval "ac_cv_header_$ac_safe=no"
20348 +-fi
20349 +-rm -f conftest*
20350 ++  ac_cpp_err=yes
20351 + fi
20352 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20353 +-  echo "$ac_t""yes" 1>&6
20354 +-  cat >> confdefs.h <<\EOF
20355 +-#define NLIST_STRUCT 1
20356 +-EOF
20357 +-
20358 +-  echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
20359 +-echo "configure:7083: checking for n_un in struct nlist" >&5
20360 +-if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
20361 +-  echo $ac_n "(cached) $ac_c" 1>&6
20362 +-else
20363 +-  cat > conftest.$ac_ext <<EOF
20364 +-#line 7088 "configure"
20365 +-#include "confdefs.h"
20366 ++if test -z "$ac_cpp_err"; then
20367 ++  ac_header_preproc=yes
20368 ++else
20369 ++  echo "$as_me: failed program was:" >&5
20370 ++sed 's/^/| /' conftest.$ac_ext >&5
20371 ++
20372 ++  ac_header_preproc=no
20373 ++fi
20374 ++rm -f conftest.err conftest.$ac_ext
20375 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20376 ++echo "${ECHO_T}$ac_header_preproc" >&6
20377 ++
20378 ++# So?  What about this header?
20379 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20380 ++  yes:no: )
20381 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20382 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20383 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20384 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20385 ++    ac_header_preproc=yes
20386 ++    ;;
20387 ++  no:yes:* )
20388 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20389 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20390 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20391 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20392 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20393 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20394 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20395 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20396 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20397 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20398 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20399 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20400 ++    (
20401 ++      cat <<\_ASBOX
20402 ++## ------------------------------------------ ##
20403 ++## Report this to the AC_PACKAGE_NAME lists.  ##
20404 ++## ------------------------------------------ ##
20405 ++_ASBOX
20406 ++    ) |
20407 ++      sed "s/^/$as_me: WARNING:     /" >&2
20408 ++    ;;
20409 ++esac
20410 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
20411 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20412 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
20413 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ++else
20415 ++  eval "$as_ac_Header=\$ac_header_preproc"
20416 ++fi
20417 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20418 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20419 ++
20420 ++fi
20421 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
20422 ++  cat >>confdefs.h <<_ACEOF
20423 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20424 ++_ACEOF
20425 ++ echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20426 ++echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
20427 ++if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20428 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20429 ++else
20430 ++  cat >conftest.$ac_ext <<_ACEOF
20431 ++/* confdefs.h.  */
20432 ++_ACEOF
20433 ++cat confdefs.h >>conftest.$ac_ext
20434 ++cat >>conftest.$ac_ext <<_ACEOF
20435 ++/* end confdefs.h.  */
20436 ++#include <nlist.h>
20437 ++
20438 ++int
20439 ++main ()
20440 ++{
20441 ++static struct nlist ac_aggr;
20442 ++if (ac_aggr.n_un.n_name)
20443 ++return 0;
20444 ++  ;
20445 ++  return 0;
20446 ++}
20447 ++_ACEOF
20448 ++rm -f conftest.$ac_objext
20449 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450 ++  (eval $ac_compile) 2>conftest.er1
20451 ++  ac_status=$?
20452 ++  grep -v '^ *+' conftest.er1 >conftest.err
20453 ++  rm -f conftest.er1
20454 ++  cat conftest.err >&5
20455 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 ++  (exit $ac_status); } &&
20457 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20458 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 ++  (eval $ac_try) 2>&5
20460 ++  ac_status=$?
20461 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 ++  (exit $ac_status); }; } &&
20463 ++       { ac_try='test -s conftest.$ac_objext'
20464 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 ++  (eval $ac_try) 2>&5
20466 ++  ac_status=$?
20467 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 ++  (exit $ac_status); }; }; then
20469 ++  ac_cv_member_struct_nlist_n_un_n_name=yes
20470 ++else
20471 ++  echo "$as_me: failed program was:" >&5
20472 ++sed 's/^/| /' conftest.$ac_ext >&5
20473 ++
20474 ++cat >conftest.$ac_ext <<_ACEOF
20475 ++/* confdefs.h.  */
20476 ++_ACEOF
20477 ++cat confdefs.h >>conftest.$ac_ext
20478 ++cat >>conftest.$ac_ext <<_ACEOF
20479 ++/* end confdefs.h.  */
20480 + #include <nlist.h>
20481 +-int main() {
20482 +-struct nlist n; n.n_un.n_name = 0;
20483 +-; return 0; }
20484 +-EOF
20485 +-if { (eval echo configure:7095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20486 +-  rm -rf conftest*
20487 +-  ac_cv_struct_nlist_n_un=yes
20488 +-else
20489 +-  echo "configure: failed program was:" >&5
20490 +-  cat conftest.$ac_ext >&5
20491 +-  rm -rf conftest*
20492 +-  ac_cv_struct_nlist_n_un=no
20493 ++
20494 ++int
20495 ++main ()
20496 ++{
20497 ++static struct nlist ac_aggr;
20498 ++if (sizeof ac_aggr.n_un.n_name)
20499 ++return 0;
20500 ++  ;
20501 ++  return 0;
20502 ++}
20503 ++_ACEOF
20504 ++rm -f conftest.$ac_objext
20505 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20506 ++  (eval $ac_compile) 2>conftest.er1
20507 ++  ac_status=$?
20508 ++  grep -v '^ *+' conftest.er1 >conftest.err
20509 ++  rm -f conftest.er1
20510 ++  cat conftest.err >&5
20511 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 ++  (exit $ac_status); } &&
20513 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20514 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 ++  (eval $ac_try) 2>&5
20516 ++  ac_status=$?
20517 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 ++  (exit $ac_status); }; } &&
20519 ++       { ac_try='test -s conftest.$ac_objext'
20520 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 ++  (eval $ac_try) 2>&5
20522 ++  ac_status=$?
20523 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 ++  (exit $ac_status); }; }; then
20525 ++  ac_cv_member_struct_nlist_n_un_n_name=yes
20526 ++else
20527 ++  echo "$as_me: failed program was:" >&5
20528 ++sed 's/^/| /' conftest.$ac_ext >&5
20529 ++
20530 ++ac_cv_member_struct_nlist_n_un_n_name=no
20531 ++fi
20532 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533 ++fi
20534 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20535 ++fi
20536 ++echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20537 ++echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
20538 ++if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20539 ++
20540 ++cat >>confdefs.h <<_ACEOF
20541 ++#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20542 ++_ACEOF
20543 ++
20544 ++
20545 ++cat >>confdefs.h <<\_ACEOF
20546 ++#define NLIST_NAME_UNION 1
20547 ++_ACEOF
20548 ++
20549 + fi
20550 +-rm -f conftest*
20551 ++
20552 ++
20553 + fi
20554
20555 +-echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
20556 +-  if test $ac_cv_struct_nlist_n_un = yes; then
20557 +-    cat >> confdefs.h <<\EOF
20558 +-#define NLIST_NAME_UNION 1
20559 +-EOF
20560 ++done
20561
20562 +-  fi
20563 +-  
20564 +-else
20565 +-  echo "$ac_t""no" 1>&6
20566 + fi
20567 +-fi # Do not have getloadavg in system libraries.
20568 ++done
20569 ++
20570
20571 + # Some definitions of getloadavg require that the program be installed setgid.
20572 +-echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
20573 +-echo "configure:7122: checking whether getloadavg requires setgid" >&5
20574 +-if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
20575 +-  echo $ac_n "(cached) $ac_c" 1>&6
20576 +-else
20577 +-  cat > conftest.$ac_ext <<EOF
20578 +-#line 7127 "configure"
20579 +-#include "confdefs.h"
20580 +-#include "$srcdir/getloadavg.c"
20581 ++echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20582 ++echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
20583 ++if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20584 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20585 ++else
20586 ++  cat >conftest.$ac_ext <<_ACEOF
20587 ++/* confdefs.h.  */
20588 ++_ACEOF
20589 ++cat confdefs.h >>conftest.$ac_ext
20590 ++cat >>conftest.$ac_ext <<_ACEOF
20591 ++/* end confdefs.h.  */
20592 ++#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20593 + #ifdef LDAV_PRIVILEGED
20594 + Yowza Am I SETGID yet
20595 + #endif
20596 +-EOF
20597 ++_ACEOF
20598 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20599 +-  egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20600 +-  rm -rf conftest*
20601 ++  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20602 +   ac_cv_func_getloadavg_setgid=yes
20603 + else
20604 +-  rm -rf conftest*
20605 +   ac_cv_func_getloadavg_setgid=no
20606 + fi
20607 + rm -f conftest*
20608
20609 + fi
20610 +-
20611 +-echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
20612 ++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20613 ++echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
20614 + if test $ac_cv_func_getloadavg_setgid = yes; then
20615 +-  NEED_SETGID=true; cat >> confdefs.h <<\EOF
20616 ++  NEED_SETGID=true
20617 ++
20618 ++cat >>confdefs.h <<\_ACEOF
20619 + #define GETLOADAVG_PRIVILEGED 1
20620 +-EOF
20621 ++_ACEOF
20622
20623 + else
20624 +   NEED_SETGID=false
20625 + fi
20626
20627 + if test $ac_cv_func_getloadavg_setgid = yes; then
20628 +-  echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
20629 +-echo "configure:7158: checking group of /dev/kmem" >&5
20630 +-if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
20631 +-  echo $ac_n "(cached) $ac_c" 1>&6
20632 ++  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20633 ++echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
20634 ++if test "${ac_cv_group_kmem+set}" = set; then
20635 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20636 + else
20637 +-    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
20638 ++   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
20639 +   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20640 +   # If we got an error (system does not support symlinks), try without -L.
20641 +   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20642 +   ac_cv_group_kmem=`echo $ac_ls_output \
20643 +-    | sed -ne 's/[    ][      ]*/ /g;
20644 ++    | sed -ne 's/[     ][      ]*/ /g;
20645 +              s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
20646 +              / /s/.* //;p;'`
20647
20648 + fi
20649 +-
20650 +-echo "$ac_t""$ac_cv_group_kmem" 1>&6
20651 ++echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20652 ++echo "${ECHO_T}$ac_cv_group_kmem" >&6
20653 +   KMEM_GROUP=$ac_cv_group_kmem
20654 + fi
20655 ++if test "x$ac_save_LIBS" = x; then
20656 ++  GETLOADAVG_LIBS=$LIBS
20657 ++else
20658 ++  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
20659 ++fi
20660 ++LIBS=$ac_save_LIBS
20661
20662
20663 +-echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
20664 +-echo "configure:7179: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20665 +-if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
20666 +-  echo $ac_n "(cached) $ac_c" 1>&6
20667 ++
20668 ++echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20669 ++echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20670 ++if test "${ac_cv_sys_largefile_source+set}" = set; then
20671 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20672 + else
20673 ++  while :; do
20674 +   ac_cv_sys_largefile_source=no
20675 +-      cat > conftest.$ac_ext <<EOF
20676 +-#line 7185 "configure"
20677 +-#include "confdefs.h"
20678 ++  cat >conftest.$ac_ext <<_ACEOF
20679 ++/* confdefs.h.  */
20680 ++_ACEOF
20681 ++cat confdefs.h >>conftest.$ac_ext
20682 ++cat >>conftest.$ac_ext <<_ACEOF
20683 ++/* end confdefs.h.  */
20684 + #include <stdio.h>
20685 +-int main() {
20686 ++int
20687 ++main ()
20688 ++{
20689 + return !fseeko;
20690 +-; return 0; }
20691 +-EOF
20692 +-if { (eval echo configure:7192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20693 +-  :
20694 ++  ;
20695 ++  return 0;
20696 ++}
20697 ++_ACEOF
20698 ++rm -f conftest.$ac_objext
20699 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 ++  (eval $ac_compile) 2>conftest.er1
20701 ++  ac_status=$?
20702 ++  grep -v '^ *+' conftest.er1 >conftest.err
20703 ++  rm -f conftest.er1
20704 ++  cat conftest.err >&5
20705 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 ++  (exit $ac_status); } &&
20707 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20708 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 ++  (eval $ac_try) 2>&5
20710 ++  ac_status=$?
20711 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 ++  (exit $ac_status); }; } &&
20713 ++       { ac_try='test -s conftest.$ac_objext'
20714 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 ++  (eval $ac_try) 2>&5
20716 ++  ac_status=$?
20717 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 ++  (exit $ac_status); }; }; then
20719 ++  break
20720 + else
20721 +-  echo "configure: failed program was:" >&5
20722 +-  cat conftest.$ac_ext >&5
20723 +-  rm -rf conftest*
20724 +-  cat > conftest.$ac_ext <<EOF
20725 +-#line 7199 "configure"
20726 +-#include "confdefs.h"
20727 ++  echo "$as_me: failed program was:" >&5
20728 ++sed 's/^/| /' conftest.$ac_ext >&5
20729 ++
20730 ++fi
20731 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732 ++  cat >conftest.$ac_ext <<_ACEOF
20733 ++/* confdefs.h.  */
20734 ++_ACEOF
20735 ++cat confdefs.h >>conftest.$ac_ext
20736 ++cat >>conftest.$ac_ext <<_ACEOF
20737 ++/* end confdefs.h.  */
20738 + #define _LARGEFILE_SOURCE 1
20739 + #include <stdio.h>
20740 +-         
20741 +-int main() {
20742 ++int
20743 ++main ()
20744 ++{
20745 + return !fseeko;
20746 +-; return 0; }
20747 +-EOF
20748 +-if { (eval echo configure:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20749 +-  rm -rf conftest*
20750 +-  ac_cv_sys_largefile_source=1
20751 ++  ;
20752 ++  return 0;
20753 ++}
20754 ++_ACEOF
20755 ++rm -f conftest.$ac_objext
20756 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 ++  (eval $ac_compile) 2>conftest.er1
20758 ++  ac_status=$?
20759 ++  grep -v '^ *+' conftest.er1 >conftest.err
20760 ++  rm -f conftest.er1
20761 ++  cat conftest.err >&5
20762 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 ++  (exit $ac_status); } &&
20764 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20765 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 ++  (eval $ac_try) 2>&5
20767 ++  ac_status=$?
20768 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 ++  (exit $ac_status); }; } &&
20770 ++       { ac_try='test -s conftest.$ac_objext'
20771 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 ++  (eval $ac_try) 2>&5
20773 ++  ac_status=$?
20774 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 ++  (exit $ac_status); }; }; then
20776 ++  ac_cv_sys_largefile_source=1; break
20777 + else
20778 +-  echo "configure: failed program was:" >&5
20779 +-  cat conftest.$ac_ext >&5
20780 +-fi
20781 +-rm -f conftest*
20782 ++  echo "$as_me: failed program was:" >&5
20783 ++sed 's/^/| /' conftest.$ac_ext >&5
20784 ++
20785 + fi
20786 +-rm -f conftest*
20787 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 ++  break
20789 ++done
20790 + fi
20791 ++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20792 ++echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20793 ++if test "$ac_cv_sys_largefile_source" != no; then
20794
20795 +-echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
20796 +-   if test "$ac_cv_sys_largefile_source" != no; then
20797 +-     cat >> confdefs.h <<EOF
20798 ++cat >>confdefs.h <<_ACEOF
20799 + #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20800 +-EOF
20801 ++_ACEOF
20802
20803 +-   fi
20804 +-   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20805 +-   # in glibc 2.1.3, but that breaks too many other things.
20806 +-   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20807 +-
20808 +-   echo $ac_n "checking for fseeko""... $ac_c" 1>&6
20809 +-echo "configure:7232: checking for fseeko" >&5
20810 +-if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
20811 +-  echo $ac_n "(cached) $ac_c" 1>&6
20812 +-else
20813 +-  ac_cv_func_fseeko=no
20814 +-      cat > conftest.$ac_ext <<EOF
20815 +-#line 7238 "configure"
20816 +-#include "confdefs.h"
20817 ++fi
20818 ++rm -f conftest*
20819 ++
20820 ++# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20821 ++# in glibc 2.1.3, but that breaks too many other things.
20822 ++# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20823 ++echo "$as_me:$LINENO: checking for fseeko" >&5
20824 ++echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20825 ++if test "${ac_cv_func_fseeko+set}" = set; then
20826 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20827 ++else
20828 ++  cat >conftest.$ac_ext <<_ACEOF
20829 ++/* confdefs.h.  */
20830 ++_ACEOF
20831 ++cat confdefs.h >>conftest.$ac_ext
20832 ++cat >>conftest.$ac_ext <<_ACEOF
20833 ++/* end confdefs.h.  */
20834 + #include <stdio.h>
20835 +-int main() {
20836 ++int
20837 ++main ()
20838 ++{
20839 + return fseeko && fseeko (stdin, 0, 0);
20840 +-; return 0; }
20841 +-EOF
20842 +-if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20843 +-  rm -rf conftest*
20844 ++  ;
20845 ++  return 0;
20846 ++}
20847 ++_ACEOF
20848 ++rm -f conftest.$ac_objext conftest$ac_exeext
20849 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 ++  (eval $ac_link) 2>conftest.er1
20851 ++  ac_status=$?
20852 ++  grep -v '^ *+' conftest.er1 >conftest.err
20853 ++  rm -f conftest.er1
20854 ++  cat conftest.err >&5
20855 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 ++  (exit $ac_status); } &&
20857 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20858 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 ++  (eval $ac_try) 2>&5
20860 ++  ac_status=$?
20861 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 ++  (exit $ac_status); }; } &&
20863 ++       { ac_try='test -s conftest$ac_exeext'
20864 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 ++  (eval $ac_try) 2>&5
20866 ++  ac_status=$?
20867 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 ++  (exit $ac_status); }; }; then
20869 +   ac_cv_func_fseeko=yes
20870 + else
20871 +-  echo "configure: failed program was:" >&5
20872 +-  cat conftest.$ac_ext >&5
20873 ++  echo "$as_me: failed program was:" >&5
20874 ++sed 's/^/| /' conftest.$ac_ext >&5
20875 ++
20876 ++ac_cv_func_fseeko=no
20877 + fi
20878 +-rm -f conftest*
20879 ++rm -f conftest.err conftest.$ac_objext \
20880 ++      conftest$ac_exeext conftest.$ac_ext
20881 + fi
20882 ++echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20883 ++echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20884 ++if test $ac_cv_func_fseeko = yes; then
20885
20886 +-echo "$ac_t""$ac_cv_func_fseeko" 1>&6
20887 +-   if test $ac_cv_func_fseeko != no; then
20888 +-     cat >> confdefs.h <<\EOF
20889 ++cat >>confdefs.h <<\_ACEOF
20890 + #define HAVE_FSEEKO 1
20891 +-EOF
20892 ++_ACEOF
20893 ++
20894 ++fi
20895
20896 +-   fi
20897
20898 + # UNIX98 PTYs.
20899 ++
20900 + for ac_func in grantpt
20901 + do
20902 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20903 +-echo "configure:7267: checking for $ac_func" >&5
20904 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20905 +-  echo $ac_n "(cached) $ac_c" 1>&6
20906 +-else
20907 +-  cat > conftest.$ac_ext <<EOF
20908 +-#line 7272 "configure"
20909 +-#include "confdefs.h"
20910 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
20912 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20913 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
20914 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
20915 ++else
20916 ++  cat >conftest.$ac_ext <<_ACEOF
20917 ++/* confdefs.h.  */
20918 ++_ACEOF
20919 ++cat confdefs.h >>conftest.$ac_ext
20920 ++cat >>conftest.$ac_ext <<_ACEOF
20921 ++/* end confdefs.h.  */
20922 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20923 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20924 ++#define $ac_func innocuous_$ac_func
20925 ++
20926 + /* System header to define __stub macros and hopefully few prototypes,
20927 +-    which can conflict with char $ac_func(); below.  */
20928 +-#include <assert.h>
20929 +-/* Override any gcc2 internal prototype to avoid an error.  */
20930 +-/* We use char because int might match the return type of a gcc2
20931 +-    builtin and then its argument prototype would still apply.  */
20932 +-char $ac_func();
20933 ++    which can conflict with char $ac_func (); below.
20934 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20935 ++    <limits.h> exists even on freestanding compilers.  */
20936
20937 +-int main() {
20938 ++#ifdef __STDC__
20939 ++# include <limits.h>
20940 ++#else
20941 ++# include <assert.h>
20942 ++#endif
20943 ++
20944 ++#undef $ac_func
20945
20946 ++/* Override any gcc2 internal prototype to avoid an error.  */
20947 ++#ifdef __cplusplus
20948 ++extern "C"
20949 ++{
20950 ++#endif
20951 ++/* We use char because int might match the return type of a gcc2
20952 ++   builtin and then its argument prototype would still apply.  */
20953 ++char $ac_func ();
20954 + /* The GNU C library defines this for functions which it implements
20955 +     to always fail with ENOSYS.  Some functions are actually named
20956 +     something starting with __ and the normal name is an alias.  */
20957 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20958 + choke me
20959 + #else
20960 +-$ac_func();
20961 ++char (*f) () = $ac_func;
20962 ++#endif
20963 ++#ifdef __cplusplus
20964 ++}
20965 + #endif
20966
20967 +-; return 0; }
20968 +-EOF
20969 +-if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20970 +-  rm -rf conftest*
20971 +-  eval "ac_cv_func_$ac_func=yes"
20972 +-else
20973 +-  echo "configure: failed program was:" >&5
20974 +-  cat conftest.$ac_ext >&5
20975 +-  rm -rf conftest*
20976 +-  eval "ac_cv_func_$ac_func=no"
20977 +-fi
20978 +-rm -f conftest*
20979 +-fi
20980 ++int
20981 ++main ()
20982 ++{
20983 ++return f != $ac_func;
20984 ++  ;
20985 ++  return 0;
20986 ++}
20987 ++_ACEOF
20988 ++rm -f conftest.$ac_objext conftest$ac_exeext
20989 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 ++  (eval $ac_link) 2>conftest.er1
20991 ++  ac_status=$?
20992 ++  grep -v '^ *+' conftest.er1 >conftest.err
20993 ++  rm -f conftest.er1
20994 ++  cat conftest.err >&5
20995 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 ++  (exit $ac_status); } &&
20997 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20998 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 ++  (eval $ac_try) 2>&5
21000 ++  ac_status=$?
21001 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 ++  (exit $ac_status); }; } &&
21003 ++       { ac_try='test -s conftest$ac_exeext'
21004 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 ++  (eval $ac_try) 2>&5
21006 ++  ac_status=$?
21007 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 ++  (exit $ac_status); }; }; then
21009 ++  eval "$as_ac_var=yes"
21010 ++else
21011 ++  echo "$as_me: failed program was:" >&5
21012 ++sed 's/^/| /' conftest.$ac_ext >&5
21013 ++
21014 ++eval "$as_ac_var=no"
21015 ++fi
21016 ++rm -f conftest.err conftest.$ac_objext \
21017 ++      conftest$ac_exeext conftest.$ac_ext
21018 ++fi
21019 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21020 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21021 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
21022 ++  cat >>confdefs.h <<_ACEOF
21023 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21024 ++_ACEOF
21025
21026 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21027 +-  echo "$ac_t""yes" 1>&6
21028 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21029 +-  cat >> confdefs.h <<EOF
21030 +-#define $ac_tr_func 1
21031 +-EOF
21032 +- 
21033 +-else
21034 +-  echo "$ac_t""no" 1>&6
21035 + fi
21036 + done
21037
21038
21039 + # PTY-related GNU extensions.
21040 ++
21041 + for ac_func in getpt
21042 + do
21043 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21044 +-echo "configure:7324: checking for $ac_func" >&5
21045 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21046 +-  echo $ac_n "(cached) $ac_c" 1>&6
21047 +-else
21048 +-  cat > conftest.$ac_ext <<EOF
21049 +-#line 7329 "configure"
21050 +-#include "confdefs.h"
21051 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21052 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
21053 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21054 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
21055 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21056 ++else
21057 ++  cat >conftest.$ac_ext <<_ACEOF
21058 ++/* confdefs.h.  */
21059 ++_ACEOF
21060 ++cat confdefs.h >>conftest.$ac_ext
21061 ++cat >>conftest.$ac_ext <<_ACEOF
21062 ++/* end confdefs.h.  */
21063 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21064 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21065 ++#define $ac_func innocuous_$ac_func
21066 ++
21067 + /* System header to define __stub macros and hopefully few prototypes,
21068 +-    which can conflict with char $ac_func(); below.  */
21069 +-#include <assert.h>
21070 +-/* Override any gcc2 internal prototype to avoid an error.  */
21071 +-/* We use char because int might match the return type of a gcc2
21072 +-    builtin and then its argument prototype would still apply.  */
21073 +-char $ac_func();
21074 ++    which can conflict with char $ac_func (); below.
21075 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21076 ++    <limits.h> exists even on freestanding compilers.  */
21077
21078 +-int main() {
21079 ++#ifdef __STDC__
21080 ++# include <limits.h>
21081 ++#else
21082 ++# include <assert.h>
21083 ++#endif
21084
21085 ++#undef $ac_func
21086 ++
21087 ++/* Override any gcc2 internal prototype to avoid an error.  */
21088 ++#ifdef __cplusplus
21089 ++extern "C"
21090 ++{
21091 ++#endif
21092 ++/* We use char because int might match the return type of a gcc2
21093 ++   builtin and then its argument prototype would still apply.  */
21094 ++char $ac_func ();
21095 + /* The GNU C library defines this for functions which it implements
21096 +     to always fail with ENOSYS.  Some functions are actually named
21097 +     something starting with __ and the normal name is an alias.  */
21098 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21099 + choke me
21100 + #else
21101 +-$ac_func();
21102 ++char (*f) () = $ac_func;
21103 ++#endif
21104 ++#ifdef __cplusplus
21105 ++}
21106 + #endif
21107
21108 +-; return 0; }
21109 +-EOF
21110 +-if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21111 +-  rm -rf conftest*
21112 +-  eval "ac_cv_func_$ac_func=yes"
21113 +-else
21114 +-  echo "configure: failed program was:" >&5
21115 +-  cat conftest.$ac_ext >&5
21116 +-  rm -rf conftest*
21117 +-  eval "ac_cv_func_$ac_func=no"
21118 +-fi
21119 +-rm -f conftest*
21120 +-fi
21121 ++int
21122 ++main ()
21123 ++{
21124 ++return f != $ac_func;
21125 ++  ;
21126 ++  return 0;
21127 ++}
21128 ++_ACEOF
21129 ++rm -f conftest.$ac_objext conftest$ac_exeext
21130 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21131 ++  (eval $ac_link) 2>conftest.er1
21132 ++  ac_status=$?
21133 ++  grep -v '^ *+' conftest.er1 >conftest.err
21134 ++  rm -f conftest.er1
21135 ++  cat conftest.err >&5
21136 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 ++  (exit $ac_status); } &&
21138 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21139 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 ++  (eval $ac_try) 2>&5
21141 ++  ac_status=$?
21142 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 ++  (exit $ac_status); }; } &&
21144 ++       { ac_try='test -s conftest$ac_exeext'
21145 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 ++  (eval $ac_try) 2>&5
21147 ++  ac_status=$?
21148 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 ++  (exit $ac_status); }; }; then
21150 ++  eval "$as_ac_var=yes"
21151 ++else
21152 ++  echo "$as_me: failed program was:" >&5
21153 ++sed 's/^/| /' conftest.$ac_ext >&5
21154 ++
21155 ++eval "$as_ac_var=no"
21156 ++fi
21157 ++rm -f conftest.err conftest.$ac_objext \
21158 ++      conftest$ac_exeext conftest.$ac_ext
21159 ++fi
21160 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21161 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21162 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
21163 ++  cat >>confdefs.h <<_ACEOF
21164 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21165 ++_ACEOF
21166
21167 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21168 +-  echo "$ac_t""yes" 1>&6
21169 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21170 +-  cat >> confdefs.h <<EOF
21171 +-#define $ac_tr_func 1
21172 +-EOF
21173 +- 
21174 +-else
21175 +-  echo "$ac_t""no" 1>&6
21176 + fi
21177 + done
21178
21179 +@@ -7377,51 +14358,77 @@
21180 + # That is because we have not set up to link ncurses in lib-src.
21181 + # It's better to believe a function is not available
21182 + # than to expect to find it in ncurses.
21183 +-echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
21184 +-echo "configure:7382: checking for tparm in -lncurses" >&5
21185 +-ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
21186 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21187 +-  echo $ac_n "(cached) $ac_c" 1>&6
21188 ++
21189 ++echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
21190 ++echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
21191 ++if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
21192 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21193 + else
21194 +-  ac_save_LIBS="$LIBS"
21195 ++  ac_check_lib_save_LIBS=$LIBS
21196 + LIBS="-lncurses  $LIBS"
21197 +-cat > conftest.$ac_ext <<EOF
21198 +-#line 7390 "configure"
21199 +-#include "confdefs.h"
21200 +-/* Override any gcc2 internal prototype to avoid an error.  */
21201 +-/* We use char because int might match the return type of a gcc2
21202 +-    builtin and then its argument prototype would still apply.  */
21203 +-char tparm();
21204 +-
21205 +-int main() {
21206 +-tparm()
21207 +-; return 0; }
21208 +-EOF
21209 +-if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21210 +-  rm -rf conftest*
21211 +-  eval "ac_cv_lib_$ac_lib_var=yes"
21212 +-else
21213 +-  echo "configure: failed program was:" >&5
21214 +-  cat conftest.$ac_ext >&5
21215 +-  rm -rf conftest*
21216 +-  eval "ac_cv_lib_$ac_lib_var=no"
21217 +-fi
21218 +-rm -f conftest*
21219 +-LIBS="$ac_save_LIBS"
21220 ++cat >conftest.$ac_ext <<_ACEOF
21221 ++/* confdefs.h.  */
21222 ++_ACEOF
21223 ++cat confdefs.h >>conftest.$ac_ext
21224 ++cat >>conftest.$ac_ext <<_ACEOF
21225 ++/* end confdefs.h.  */
21226
21227 +-fi
21228 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21229 +-  echo "$ac_t""yes" 1>&6
21230 +-    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21231 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21232 +-  cat >> confdefs.h <<EOF
21233 +-#define $ac_tr_lib 1
21234 +-EOF
21235 ++/* Override any gcc2 internal prototype to avoid an error.  */
21236 ++#ifdef __cplusplus
21237 ++extern "C"
21238 ++#endif
21239 ++/* We use char because int might match the return type of a gcc2
21240 ++   builtin and then its argument prototype would still apply.  */
21241 ++char tparm ();
21242 ++int
21243 ++main ()
21244 ++{
21245 ++tparm ();
21246 ++  ;
21247 ++  return 0;
21248 ++}
21249 ++_ACEOF
21250 ++rm -f conftest.$ac_objext conftest$ac_exeext
21251 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252 ++  (eval $ac_link) 2>conftest.er1
21253 ++  ac_status=$?
21254 ++  grep -v '^ *+' conftest.er1 >conftest.err
21255 ++  rm -f conftest.er1
21256 ++  cat conftest.err >&5
21257 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 ++  (exit $ac_status); } &&
21259 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21260 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 ++  (eval $ac_try) 2>&5
21262 ++  ac_status=$?
21263 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 ++  (exit $ac_status); }; } &&
21265 ++       { ac_try='test -s conftest$ac_exeext'
21266 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 ++  (eval $ac_try) 2>&5
21268 ++  ac_status=$?
21269 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 ++  (exit $ac_status); }; }; then
21271 ++  ac_cv_lib_ncurses_tparm=yes
21272 ++else
21273 ++  echo "$as_me: failed program was:" >&5
21274 ++sed 's/^/| /' conftest.$ac_ext >&5
21275 ++
21276 ++ac_cv_lib_ncurses_tparm=no
21277 ++fi
21278 ++rm -f conftest.err conftest.$ac_objext \
21279 ++      conftest$ac_exeext conftest.$ac_ext
21280 ++LIBS=$ac_check_lib_save_LIBS
21281 ++fi
21282 ++echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
21283 ++echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
21284 ++if test $ac_cv_lib_ncurses_tparm = yes; then
21285 ++  cat >>confdefs.h <<_ACEOF
21286 ++#define HAVE_LIBNCURSES 1
21287 ++_ACEOF
21288
21289 +   LIBS="-lncurses $LIBS"
21290
21291 +-else
21292 +-  echo "$ac_t""no" 1>&6
21293 + fi
21294
21295
21296 +@@ -7429,174 +14436,321 @@
21297 + if test "$with_hesiod" = yes ; then
21298 +   # Don't set $LIBS here -- see comments above.
21299 +   resolv=no
21300 +-  echo $ac_n "checking for res_send""... $ac_c" 1>&6
21301 +-echo "configure:7434: checking for res_send" >&5
21302 +-if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
21303 +-  echo $ac_n "(cached) $ac_c" 1>&6
21304 +-else
21305 +-  cat > conftest.$ac_ext <<EOF
21306 +-#line 7439 "configure"
21307 +-#include "confdefs.h"
21308 ++  echo "$as_me:$LINENO: checking for res_send" >&5
21309 ++echo $ECHO_N "checking for res_send... $ECHO_C" >&6
21310 ++if test "${ac_cv_func_res_send+set}" = set; then
21311 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21312 ++else
21313 ++  cat >conftest.$ac_ext <<_ACEOF
21314 ++/* confdefs.h.  */
21315 ++_ACEOF
21316 ++cat confdefs.h >>conftest.$ac_ext
21317 ++cat >>conftest.$ac_ext <<_ACEOF
21318 ++/* end confdefs.h.  */
21319 ++/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21320 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21321 ++#define res_send innocuous_res_send
21322 ++
21323 + /* System header to define __stub macros and hopefully few prototypes,
21324 +-    which can conflict with char res_send(); below.  */
21325 +-#include <assert.h>
21326 +-/* Override any gcc2 internal prototype to avoid an error.  */
21327 +-/* We use char because int might match the return type of a gcc2
21328 +-    builtin and then its argument prototype would still apply.  */
21329 +-char res_send();
21330 ++    which can conflict with char res_send (); below.
21331 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21332 ++    <limits.h> exists even on freestanding compilers.  */
21333
21334 +-int main() {
21335 ++#ifdef __STDC__
21336 ++# include <limits.h>
21337 ++#else
21338 ++# include <assert.h>
21339 ++#endif
21340
21341 ++#undef res_send
21342 ++
21343 ++/* Override any gcc2 internal prototype to avoid an error.  */
21344 ++#ifdef __cplusplus
21345 ++extern "C"
21346 ++{
21347 ++#endif
21348 ++/* We use char because int might match the return type of a gcc2
21349 ++   builtin and then its argument prototype would still apply.  */
21350 ++char res_send ();
21351 + /* The GNU C library defines this for functions which it implements
21352 +     to always fail with ENOSYS.  Some functions are actually named
21353 +     something starting with __ and the normal name is an alias.  */
21354 + #if defined (__stub_res_send) || defined (__stub___res_send)
21355 + choke me
21356 + #else
21357 +-res_send();
21358 ++char (*f) () = res_send;
21359 ++#endif
21360 ++#ifdef __cplusplus
21361 ++}
21362 + #endif
21363
21364 +-; return 0; }
21365 +-EOF
21366 +-if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21367 +-  rm -rf conftest*
21368 +-  eval "ac_cv_func_res_send=yes"
21369 +-else
21370 +-  echo "configure: failed program was:" >&5
21371 +-  cat conftest.$ac_ext >&5
21372 +-  rm -rf conftest*
21373 +-  eval "ac_cv_func_res_send=no"
21374 +-fi
21375 +-rm -f conftest*
21376 +-fi
21377 +-
21378 +-if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
21379 +-  echo "$ac_t""yes" 1>&6
21380 ++int
21381 ++main ()
21382 ++{
21383 ++return f != res_send;
21384 ++  ;
21385 ++  return 0;
21386 ++}
21387 ++_ACEOF
21388 ++rm -f conftest.$ac_objext conftest$ac_exeext
21389 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21390 ++  (eval $ac_link) 2>conftest.er1
21391 ++  ac_status=$?
21392 ++  grep -v '^ *+' conftest.er1 >conftest.err
21393 ++  rm -f conftest.er1
21394 ++  cat conftest.err >&5
21395 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 ++  (exit $ac_status); } &&
21397 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21398 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 ++  (eval $ac_try) 2>&5
21400 ++  ac_status=$?
21401 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 ++  (exit $ac_status); }; } &&
21403 ++       { ac_try='test -s conftest$ac_exeext'
21404 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 ++  (eval $ac_try) 2>&5
21406 ++  ac_status=$?
21407 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 ++  (exit $ac_status); }; }; then
21409 ++  ac_cv_func_res_send=yes
21410 ++else
21411 ++  echo "$as_me: failed program was:" >&5
21412 ++sed 's/^/| /' conftest.$ac_ext >&5
21413 ++
21414 ++ac_cv_func_res_send=no
21415 ++fi
21416 ++rm -f conftest.err conftest.$ac_objext \
21417 ++      conftest$ac_exeext conftest.$ac_ext
21418 ++fi
21419 ++echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21420 ++echo "${ECHO_T}$ac_cv_func_res_send" >&6
21421 ++if test $ac_cv_func_res_send = yes; then
21422 +   :
21423 + else
21424 +-  echo "$ac_t""no" 1>&6
21425 +-echo $ac_n "checking for __res_send""... $ac_c" 1>&6
21426 +-echo "configure:7480: checking for __res_send" >&5
21427 +-if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
21428 +-  echo $ac_n "(cached) $ac_c" 1>&6
21429 +-else
21430 +-  cat > conftest.$ac_ext <<EOF
21431 +-#line 7485 "configure"
21432 +-#include "confdefs.h"
21433 ++  echo "$as_me:$LINENO: checking for __res_send" >&5
21434 ++echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
21435 ++if test "${ac_cv_func___res_send+set}" = set; then
21436 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21437 ++else
21438 ++  cat >conftest.$ac_ext <<_ACEOF
21439 ++/* confdefs.h.  */
21440 ++_ACEOF
21441 ++cat confdefs.h >>conftest.$ac_ext
21442 ++cat >>conftest.$ac_ext <<_ACEOF
21443 ++/* end confdefs.h.  */
21444 ++/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21445 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21446 ++#define __res_send innocuous___res_send
21447 ++
21448 + /* System header to define __stub macros and hopefully few prototypes,
21449 +-    which can conflict with char __res_send(); below.  */
21450 +-#include <assert.h>
21451 +-/* Override any gcc2 internal prototype to avoid an error.  */
21452 +-/* We use char because int might match the return type of a gcc2
21453 +-    builtin and then its argument prototype would still apply.  */
21454 +-char __res_send();
21455 ++    which can conflict with char __res_send (); below.
21456 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 ++    <limits.h> exists even on freestanding compilers.  */
21458 ++
21459 ++#ifdef __STDC__
21460 ++# include <limits.h>
21461 ++#else
21462 ++# include <assert.h>
21463 ++#endif
21464
21465 +-int main() {
21466 ++#undef __res_send
21467
21468 ++/* Override any gcc2 internal prototype to avoid an error.  */
21469 ++#ifdef __cplusplus
21470 ++extern "C"
21471 ++{
21472 ++#endif
21473 ++/* We use char because int might match the return type of a gcc2
21474 ++   builtin and then its argument prototype would still apply.  */
21475 ++char __res_send ();
21476 + /* The GNU C library defines this for functions which it implements
21477 +     to always fail with ENOSYS.  Some functions are actually named
21478 +     something starting with __ and the normal name is an alias.  */
21479 + #if defined (__stub___res_send) || defined (__stub_____res_send)
21480 + choke me
21481 + #else
21482 +-__res_send();
21483 ++char (*f) () = __res_send;
21484 ++#endif
21485 ++#ifdef __cplusplus
21486 ++}
21487 + #endif
21488
21489 +-; return 0; }
21490 +-EOF
21491 +-if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21492 +-  rm -rf conftest*
21493 +-  eval "ac_cv_func___res_send=yes"
21494 +-else
21495 +-  echo "configure: failed program was:" >&5
21496 +-  cat conftest.$ac_ext >&5
21497 +-  rm -rf conftest*
21498 +-  eval "ac_cv_func___res_send=no"
21499 +-fi
21500 +-rm -f conftest*
21501 +-fi
21502 +-
21503 +-if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
21504 +-  echo "$ac_t""yes" 1>&6
21505 ++int
21506 ++main ()
21507 ++{
21508 ++return f != __res_send;
21509 ++  ;
21510 ++  return 0;
21511 ++}
21512 ++_ACEOF
21513 ++rm -f conftest.$ac_objext conftest$ac_exeext
21514 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21515 ++  (eval $ac_link) 2>conftest.er1
21516 ++  ac_status=$?
21517 ++  grep -v '^ *+' conftest.er1 >conftest.err
21518 ++  rm -f conftest.er1
21519 ++  cat conftest.err >&5
21520 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 ++  (exit $ac_status); } &&
21522 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21523 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 ++  (eval $ac_try) 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 ++  ac_cv_func___res_send=yes
21535 ++else
21536 ++  echo "$as_me: failed program was:" >&5
21537 ++sed 's/^/| /' conftest.$ac_ext >&5
21538 ++
21539 ++ac_cv_func___res_send=no
21540 ++fi
21541 ++rm -f conftest.err conftest.$ac_objext \
21542 ++      conftest$ac_exeext conftest.$ac_ext
21543 ++fi
21544 ++echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21545 ++echo "${ECHO_T}$ac_cv_func___res_send" >&6
21546 ++if test $ac_cv_func___res_send = yes; then
21547 +   :
21548 + else
21549 +-  echo "$ac_t""no" 1>&6
21550 +-echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
21551 +-echo "configure:7526: checking for res_send in -lresolv" >&5
21552 +-ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
21553 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21554 +-  echo $ac_n "(cached) $ac_c" 1>&6
21555 ++  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21556 ++echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
21557 ++if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21558 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21559 + else
21560 +-  ac_save_LIBS="$LIBS"
21561 ++  ac_check_lib_save_LIBS=$LIBS
21562 + LIBS="-lresolv  $LIBS"
21563 +-cat > conftest.$ac_ext <<EOF
21564 +-#line 7534 "configure"
21565 +-#include "confdefs.h"
21566 +-/* Override any gcc2 internal prototype to avoid an error.  */
21567 +-/* We use char because int might match the return type of a gcc2
21568 +-    builtin and then its argument prototype would still apply.  */
21569 +-char res_send();
21570 +-
21571 +-int main() {
21572 +-res_send()
21573 +-; return 0; }
21574 +-EOF
21575 +-if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21576 +-  rm -rf conftest*
21577 +-  eval "ac_cv_lib_$ac_lib_var=yes"
21578 +-else
21579 +-  echo "configure: failed program was:" >&5
21580 +-  cat conftest.$ac_ext >&5
21581 +-  rm -rf conftest*
21582 +-  eval "ac_cv_lib_$ac_lib_var=no"
21583 +-fi
21584 +-rm -f conftest*
21585 +-LIBS="$ac_save_LIBS"
21586 ++cat >conftest.$ac_ext <<_ACEOF
21587 ++/* confdefs.h.  */
21588 ++_ACEOF
21589 ++cat confdefs.h >>conftest.$ac_ext
21590 ++cat >>conftest.$ac_ext <<_ACEOF
21591 ++/* end confdefs.h.  */
21592
21593 +-fi
21594 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21595 +-  echo "$ac_t""yes" 1>&6
21596 ++/* Override any gcc2 internal prototype to avoid an error.  */
21597 ++#ifdef __cplusplus
21598 ++extern "C"
21599 ++#endif
21600 ++/* We use char because int might match the return type of a gcc2
21601 ++   builtin and then its argument prototype would still apply.  */
21602 ++char res_send ();
21603 ++int
21604 ++main ()
21605 ++{
21606 ++res_send ();
21607 ++  ;
21608 ++  return 0;
21609 ++}
21610 ++_ACEOF
21611 ++rm -f conftest.$ac_objext conftest$ac_exeext
21612 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 ++  (eval $ac_link) 2>conftest.er1
21614 ++  ac_status=$?
21615 ++  grep -v '^ *+' conftest.er1 >conftest.err
21616 ++  rm -f conftest.er1
21617 ++  cat conftest.err >&5
21618 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 ++  (exit $ac_status); } &&
21620 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21621 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 ++  (eval $ac_try) 2>&5
21623 ++  ac_status=$?
21624 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 ++  (exit $ac_status); }; } &&
21626 ++       { ac_try='test -s conftest$ac_exeext'
21627 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 ++  (eval $ac_try) 2>&5
21629 ++  ac_status=$?
21630 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 ++  (exit $ac_status); }; }; then
21632 ++  ac_cv_lib_resolv_res_send=yes
21633 ++else
21634 ++  echo "$as_me: failed program was:" >&5
21635 ++sed 's/^/| /' conftest.$ac_ext >&5
21636 ++
21637 ++ac_cv_lib_resolv_res_send=no
21638 ++fi
21639 ++rm -f conftest.err conftest.$ac_objext \
21640 ++      conftest$ac_exeext conftest.$ac_ext
21641 ++LIBS=$ac_check_lib_save_LIBS
21642 ++fi
21643 ++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21644 ++echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
21645 ++if test $ac_cv_lib_resolv_res_send = yes; then
21646 +   resolv=yes
21647 + else
21648 +-  echo "$ac_t""no" 1>&6
21649 +-echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
21650 +-echo "configure:7564: checking for __res_send in -lresolv" >&5
21651 +-ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
21652 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21653 +-  echo $ac_n "(cached) $ac_c" 1>&6
21654 ++  echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21655 ++echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
21656 ++if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21657 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21658 + else
21659 +-  ac_save_LIBS="$LIBS"
21660 ++  ac_check_lib_save_LIBS=$LIBS
21661 + LIBS="-lresolv  $LIBS"
21662 +-cat > conftest.$ac_ext <<EOF
21663 +-#line 7572 "configure"
21664 +-#include "confdefs.h"
21665 +-/* Override any gcc2 internal prototype to avoid an error.  */
21666 +-/* We use char because int might match the return type of a gcc2
21667 +-    builtin and then its argument prototype would still apply.  */
21668 +-char __res_send();
21669 +-
21670 +-int main() {
21671 +-__res_send()
21672 +-; return 0; }
21673 +-EOF
21674 +-if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21675 +-  rm -rf conftest*
21676 +-  eval "ac_cv_lib_$ac_lib_var=yes"
21677 +-else
21678 +-  echo "configure: failed program was:" >&5
21679 +-  cat conftest.$ac_ext >&5
21680 +-  rm -rf conftest*
21681 +-  eval "ac_cv_lib_$ac_lib_var=no"
21682 +-fi
21683 +-rm -f conftest*
21684 +-LIBS="$ac_save_LIBS"
21685 ++cat >conftest.$ac_ext <<_ACEOF
21686 ++/* confdefs.h.  */
21687 ++_ACEOF
21688 ++cat confdefs.h >>conftest.$ac_ext
21689 ++cat >>conftest.$ac_ext <<_ACEOF
21690 ++/* end confdefs.h.  */
21691
21692 +-fi
21693 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21694 +-  echo "$ac_t""yes" 1>&6
21695 ++/* Override any gcc2 internal prototype to avoid an error.  */
21696 ++#ifdef __cplusplus
21697 ++extern "C"
21698 ++#endif
21699 ++/* We use char because int might match the return type of a gcc2
21700 ++   builtin and then its argument prototype would still apply.  */
21701 ++char __res_send ();
21702 ++int
21703 ++main ()
21704 ++{
21705 ++__res_send ();
21706 ++  ;
21707 ++  return 0;
21708 ++}
21709 ++_ACEOF
21710 ++rm -f conftest.$ac_objext conftest$ac_exeext
21711 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21712 ++  (eval $ac_link) 2>conftest.er1
21713 ++  ac_status=$?
21714 ++  grep -v '^ *+' conftest.er1 >conftest.err
21715 ++  rm -f conftest.er1
21716 ++  cat conftest.err >&5
21717 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 ++  (exit $ac_status); } &&
21719 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21720 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 ++  (eval $ac_try) 2>&5
21722 ++  ac_status=$?
21723 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 ++  (exit $ac_status); }; } &&
21725 ++       { ac_try='test -s conftest$ac_exeext'
21726 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 ++  (eval $ac_try) 2>&5
21728 ++  ac_status=$?
21729 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 ++  (exit $ac_status); }; }; then
21731 ++  ac_cv_lib_resolv___res_send=yes
21732 ++else
21733 ++  echo "$as_me: failed program was:" >&5
21734 ++sed 's/^/| /' conftest.$ac_ext >&5
21735 ++
21736 ++ac_cv_lib_resolv___res_send=no
21737 ++fi
21738 ++rm -f conftest.err conftest.$ac_objext \
21739 ++      conftest$ac_exeext conftest.$ac_ext
21740 ++LIBS=$ac_check_lib_save_LIBS
21741 ++fi
21742 ++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21743 ++echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
21744 ++if test $ac_cv_lib_resolv___res_send = yes; then
21745 +   resolv=yes
21746 +-else
21747 +-  echo "$ac_t""no" 1>&6
21748 + fi
21749
21750 + fi
21751 +@@ -7607,101 +14761,175 @@
21752
21753 +   if test "$resolv" = yes ; then
21754 +     RESOLVLIB=-lresolv
21755 +-    cat >> confdefs.h <<\EOF
21756 ++    cat >>confdefs.h <<\_ACEOF
21757 + #define HAVE_LIBRESOLV 1
21758 +-EOF
21759 ++_ACEOF
21760
21761 +   else
21762 +     RESOLVLIB=
21763 +   fi
21764 +-  echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
21765 +-echo "configure:7619: checking for hes_getmailhost" >&5
21766 +-if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
21767 +-  echo $ac_n "(cached) $ac_c" 1>&6
21768 +-else
21769 +-  cat > conftest.$ac_ext <<EOF
21770 +-#line 7624 "configure"
21771 +-#include "confdefs.h"
21772 ++  echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21773 ++echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
21774 ++if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21775 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21776 ++else
21777 ++  cat >conftest.$ac_ext <<_ACEOF
21778 ++/* confdefs.h.  */
21779 ++_ACEOF
21780 ++cat confdefs.h >>conftest.$ac_ext
21781 ++cat >>conftest.$ac_ext <<_ACEOF
21782 ++/* end confdefs.h.  */
21783 ++/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21784 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21785 ++#define hes_getmailhost innocuous_hes_getmailhost
21786 ++
21787 + /* System header to define __stub macros and hopefully few prototypes,
21788 +-    which can conflict with char hes_getmailhost(); below.  */
21789 +-#include <assert.h>
21790 +-/* Override any gcc2 internal prototype to avoid an error.  */
21791 +-/* We use char because int might match the return type of a gcc2
21792 +-    builtin and then its argument prototype would still apply.  */
21793 +-char hes_getmailhost();
21794 ++    which can conflict with char hes_getmailhost (); below.
21795 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21796 ++    <limits.h> exists even on freestanding compilers.  */
21797
21798 +-int main() {
21799 ++#ifdef __STDC__
21800 ++# include <limits.h>
21801 ++#else
21802 ++# include <assert.h>
21803 ++#endif
21804
21805 ++#undef hes_getmailhost
21806 ++
21807 ++/* Override any gcc2 internal prototype to avoid an error.  */
21808 ++#ifdef __cplusplus
21809 ++extern "C"
21810 ++{
21811 ++#endif
21812 ++/* We use char because int might match the return type of a gcc2
21813 ++   builtin and then its argument prototype would still apply.  */
21814 ++char hes_getmailhost ();
21815 + /* The GNU C library defines this for functions which it implements
21816 +     to always fail with ENOSYS.  Some functions are actually named
21817 +     something starting with __ and the normal name is an alias.  */
21818 + #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
21819 + choke me
21820 + #else
21821 +-hes_getmailhost();
21822 ++char (*f) () = hes_getmailhost;
21823 ++#endif
21824 ++#ifdef __cplusplus
21825 ++}
21826 + #endif
21827
21828 +-; return 0; }
21829 +-EOF
21830 +-if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 +-  rm -rf conftest*
21832 +-  eval "ac_cv_func_hes_getmailhost=yes"
21833 +-else
21834 +-  echo "configure: failed program was:" >&5
21835 +-  cat conftest.$ac_ext >&5
21836 +-  rm -rf conftest*
21837 +-  eval "ac_cv_func_hes_getmailhost=no"
21838 +-fi
21839 +-rm -f conftest*
21840 +-fi
21841 +-
21842 +-if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
21843 +-  echo "$ac_t""yes" 1>&6
21844 ++int
21845 ++main ()
21846 ++{
21847 ++return f != hes_getmailhost;
21848 ++  ;
21849 ++  return 0;
21850 ++}
21851 ++_ACEOF
21852 ++rm -f conftest.$ac_objext conftest$ac_exeext
21853 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 ++  (eval $ac_link) 2>conftest.er1
21855 ++  ac_status=$?
21856 ++  grep -v '^ *+' conftest.er1 >conftest.err
21857 ++  rm -f conftest.er1
21858 ++  cat conftest.err >&5
21859 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 ++  (exit $ac_status); } &&
21861 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
21867 ++       { ac_try='test -s conftest$ac_exeext'
21868 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 ++  (eval $ac_try) 2>&5
21870 ++  ac_status=$?
21871 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 ++  (exit $ac_status); }; }; then
21873 ++  ac_cv_func_hes_getmailhost=yes
21874 ++else
21875 ++  echo "$as_me: failed program was:" >&5
21876 ++sed 's/^/| /' conftest.$ac_ext >&5
21877 ++
21878 ++ac_cv_func_hes_getmailhost=no
21879 ++fi
21880 ++rm -f conftest.err conftest.$ac_objext \
21881 ++      conftest$ac_exeext conftest.$ac_ext
21882 ++fi
21883 ++echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21884 ++echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
21885 ++if test $ac_cv_func_hes_getmailhost = yes; then
21886 +   :
21887 + else
21888 +-  echo "$ac_t""no" 1>&6
21889 +-echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
21890 +-echo "configure:7665: checking for hes_getmailhost in -lhesiod" >&5
21891 +-ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
21892 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21893 +-  echo $ac_n "(cached) $ac_c" 1>&6
21894 ++  echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21895 ++echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
21896 ++if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21897 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
21898 + else
21899 +-  ac_save_LIBS="$LIBS"
21900 ++  ac_check_lib_save_LIBS=$LIBS
21901 + LIBS="-lhesiod $RESOLVLIB $LIBS"
21902 +-cat > conftest.$ac_ext <<EOF
21903 +-#line 7673 "configure"
21904 +-#include "confdefs.h"
21905 +-/* Override any gcc2 internal prototype to avoid an error.  */
21906 +-/* We use char because int might match the return type of a gcc2
21907 +-    builtin and then its argument prototype would still apply.  */
21908 +-char hes_getmailhost();
21909 +-
21910 +-int main() {
21911 +-hes_getmailhost()
21912 +-; return 0; }
21913 +-EOF
21914 +-if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21915 +-  rm -rf conftest*
21916 +-  eval "ac_cv_lib_$ac_lib_var=yes"
21917 +-else
21918 +-  echo "configure: failed program was:" >&5
21919 +-  cat conftest.$ac_ext >&5
21920 +-  rm -rf conftest*
21921 +-  eval "ac_cv_lib_$ac_lib_var=no"
21922 +-fi
21923 +-rm -f conftest*
21924 +-LIBS="$ac_save_LIBS"
21925 ++cat >conftest.$ac_ext <<_ACEOF
21926 ++/* confdefs.h.  */
21927 ++_ACEOF
21928 ++cat confdefs.h >>conftest.$ac_ext
21929 ++cat >>conftest.$ac_ext <<_ACEOF
21930 ++/* end confdefs.h.  */
21931
21932 +-fi
21933 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21934 +-  echo "$ac_t""yes" 1>&6
21935 +-  cat >> confdefs.h <<\EOF
21936 ++/* Override any gcc2 internal prototype to avoid an error.  */
21937 ++#ifdef __cplusplus
21938 ++extern "C"
21939 ++#endif
21940 ++/* We use char because int might match the return type of a gcc2
21941 ++   builtin and then its argument prototype would still apply.  */
21942 ++char hes_getmailhost ();
21943 ++int
21944 ++main ()
21945 ++{
21946 ++hes_getmailhost ();
21947 ++  ;
21948 ++  return 0;
21949 ++}
21950 ++_ACEOF
21951 ++rm -f conftest.$ac_objext conftest$ac_exeext
21952 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21953 ++  (eval $ac_link) 2>conftest.er1
21954 ++  ac_status=$?
21955 ++  grep -v '^ *+' conftest.er1 >conftest.err
21956 ++  rm -f conftest.er1
21957 ++  cat conftest.err >&5
21958 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 ++  (exit $ac_status); } &&
21960 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21961 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 ++  (eval $ac_try) 2>&5
21963 ++  ac_status=$?
21964 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 ++  (exit $ac_status); }; } &&
21966 ++       { ac_try='test -s conftest$ac_exeext'
21967 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 ++  (eval $ac_try) 2>&5
21969 ++  ac_status=$?
21970 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 ++  (exit $ac_status); }; }; then
21972 ++  ac_cv_lib_hesiod_hes_getmailhost=yes
21973 ++else
21974 ++  echo "$as_me: failed program was:" >&5
21975 ++sed 's/^/| /' conftest.$ac_ext >&5
21976 ++
21977 ++ac_cv_lib_hesiod_hes_getmailhost=no
21978 ++fi
21979 ++rm -f conftest.err conftest.$ac_objext \
21980 ++      conftest$ac_exeext conftest.$ac_ext
21981 ++LIBS=$ac_check_lib_save_LIBS
21982 ++fi
21983 ++echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21984 ++echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
21985 ++if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21986 ++  cat >>confdefs.h <<\_ACEOF
21987 + #define HAVE_LIBHESIOD 1
21988 +-EOF
21989 ++_ACEOF
21990
21991 + else
21992 +-  echo "$ac_t""no" 1>&6
21993 +-:
21994 ++  :
21995 + fi
21996
21997 + fi
21998 +@@ -7710,379 +14938,589 @@
21999
22000 + # These tell us which Kerberos-related libraries to use.
22001 + if test "${with_kerberos+set}" = set; then
22002 +-  echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
22003 +-echo "configure:7715: checking for com_err in -lcom_err" >&5
22004 +-ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
22005 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22006 +-  echo $ac_n "(cached) $ac_c" 1>&6
22007 ++
22008 ++echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22009 ++echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
22010 ++if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22011 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22012 + else
22013 +-  ac_save_LIBS="$LIBS"
22014 ++  ac_check_lib_save_LIBS=$LIBS
22015 + LIBS="-lcom_err  $LIBS"
22016 +-cat > conftest.$ac_ext <<EOF
22017 +-#line 7723 "configure"
22018 +-#include "confdefs.h"
22019 +-/* Override any gcc2 internal prototype to avoid an error.  */
22020 +-/* We use char because int might match the return type of a gcc2
22021 +-    builtin and then its argument prototype would still apply.  */
22022 +-char com_err();
22023 +-
22024 +-int main() {
22025 +-com_err()
22026 +-; return 0; }
22027 +-EOF
22028 +-if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22029 +-  rm -rf conftest*
22030 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22031 +-else
22032 +-  echo "configure: failed program was:" >&5
22033 +-  cat conftest.$ac_ext >&5
22034 +-  rm -rf conftest*
22035 +-  eval "ac_cv_lib_$ac_lib_var=no"
22036 +-fi
22037 +-rm -f conftest*
22038 +-LIBS="$ac_save_LIBS"
22039 ++cat >conftest.$ac_ext <<_ACEOF
22040 ++/* confdefs.h.  */
22041 ++_ACEOF
22042 ++cat confdefs.h >>conftest.$ac_ext
22043 ++cat >>conftest.$ac_ext <<_ACEOF
22044 ++/* end confdefs.h.  */
22045
22046 +-fi
22047 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22048 +-  echo "$ac_t""yes" 1>&6
22049 +-    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22050 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22051 +-  cat >> confdefs.h <<EOF
22052 +-#define $ac_tr_lib 1
22053 +-EOF
22054 ++/* Override any gcc2 internal prototype to avoid an error.  */
22055 ++#ifdef __cplusplus
22056 ++extern "C"
22057 ++#endif
22058 ++/* We use char because int might match the return type of a gcc2
22059 ++   builtin and then its argument prototype would still apply.  */
22060 ++char com_err ();
22061 ++int
22062 ++main ()
22063 ++{
22064 ++com_err ();
22065 ++  ;
22066 ++  return 0;
22067 ++}
22068 ++_ACEOF
22069 ++rm -f conftest.$ac_objext conftest$ac_exeext
22070 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 ++  (eval $ac_link) 2>conftest.er1
22072 ++  ac_status=$?
22073 ++  grep -v '^ *+' conftest.er1 >conftest.err
22074 ++  rm -f conftest.er1
22075 ++  cat conftest.err >&5
22076 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 ++  (exit $ac_status); } &&
22078 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22079 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 ++  (eval $ac_try) 2>&5
22081 ++  ac_status=$?
22082 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 ++  (exit $ac_status); }; } &&
22084 ++       { ac_try='test -s conftest$ac_exeext'
22085 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 ++  (eval $ac_try) 2>&5
22087 ++  ac_status=$?
22088 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 ++  (exit $ac_status); }; }; then
22090 ++  ac_cv_lib_com_err_com_err=yes
22091 ++else
22092 ++  echo "$as_me: failed program was:" >&5
22093 ++sed 's/^/| /' conftest.$ac_ext >&5
22094 ++
22095 ++ac_cv_lib_com_err_com_err=no
22096 ++fi
22097 ++rm -f conftest.err conftest.$ac_objext \
22098 ++      conftest$ac_exeext conftest.$ac_ext
22099 ++LIBS=$ac_check_lib_save_LIBS
22100 ++fi
22101 ++echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22102 ++echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
22103 ++if test $ac_cv_lib_com_err_com_err = yes; then
22104 ++  cat >>confdefs.h <<_ACEOF
22105 ++#define HAVE_LIBCOM_ERR 1
22106 ++_ACEOF
22107
22108 +   LIBS="-lcom_err $LIBS"
22109
22110 +-else
22111 +-  echo "$ac_t""no" 1>&6
22112 + fi
22113
22114 +-  echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
22115 +-echo "configure:7762: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22116 +-ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
22117 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22118 +-  echo $ac_n "(cached) $ac_c" 1>&6
22119 ++
22120 ++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22121 ++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
22122 ++if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22123 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22124 + else
22125 +-  ac_save_LIBS="$LIBS"
22126 ++  ac_check_lib_save_LIBS=$LIBS
22127 + LIBS="-lk5crypto  $LIBS"
22128 +-cat > conftest.$ac_ext <<EOF
22129 +-#line 7770 "configure"
22130 +-#include "confdefs.h"
22131 +-/* Override any gcc2 internal prototype to avoid an error.  */
22132 +-/* We use char because int might match the return type of a gcc2
22133 +-    builtin and then its argument prototype would still apply.  */
22134 +-char mit_des_cbc_encrypt();
22135 +-
22136 +-int main() {
22137 +-mit_des_cbc_encrypt()
22138 +-; return 0; }
22139 +-EOF
22140 +-if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22141 +-  rm -rf conftest*
22142 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22143 +-else
22144 +-  echo "configure: failed program was:" >&5
22145 +-  cat conftest.$ac_ext >&5
22146 +-  rm -rf conftest*
22147 +-  eval "ac_cv_lib_$ac_lib_var=no"
22148 +-fi
22149 +-rm -f conftest*
22150 +-LIBS="$ac_save_LIBS"
22151 ++cat >conftest.$ac_ext <<_ACEOF
22152 ++/* confdefs.h.  */
22153 ++_ACEOF
22154 ++cat confdefs.h >>conftest.$ac_ext
22155 ++cat >>conftest.$ac_ext <<_ACEOF
22156 ++/* end confdefs.h.  */
22157
22158 +-fi
22159 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22160 +-  echo "$ac_t""yes" 1>&6
22161 +-    ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22162 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22163 +-  cat >> confdefs.h <<EOF
22164 +-#define $ac_tr_lib 1
22165 +-EOF
22166 ++/* Override any gcc2 internal prototype to avoid an error.  */
22167 ++#ifdef __cplusplus
22168 ++extern "C"
22169 ++#endif
22170 ++/* We use char because int might match the return type of a gcc2
22171 ++   builtin and then its argument prototype would still apply.  */
22172 ++char mit_des_cbc_encrypt ();
22173 ++int
22174 ++main ()
22175 ++{
22176 ++mit_des_cbc_encrypt ();
22177 ++  ;
22178 ++  return 0;
22179 ++}
22180 ++_ACEOF
22181 ++rm -f conftest.$ac_objext conftest$ac_exeext
22182 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183 ++  (eval $ac_link) 2>conftest.er1
22184 ++  ac_status=$?
22185 ++  grep -v '^ *+' conftest.er1 >conftest.err
22186 ++  rm -f conftest.er1
22187 ++  cat conftest.err >&5
22188 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 ++  (exit $ac_status); } &&
22190 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22191 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 ++  (eval $ac_try) 2>&5
22193 ++  ac_status=$?
22194 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 ++  (exit $ac_status); }; } &&
22196 ++       { ac_try='test -s conftest$ac_exeext'
22197 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 ++  (eval $ac_try) 2>&5
22199 ++  ac_status=$?
22200 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 ++  (exit $ac_status); }; }; then
22202 ++  ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22203 ++else
22204 ++  echo "$as_me: failed program was:" >&5
22205 ++sed 's/^/| /' conftest.$ac_ext >&5
22206 ++
22207 ++ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22208 ++fi
22209 ++rm -f conftest.err conftest.$ac_objext \
22210 ++      conftest$ac_exeext conftest.$ac_ext
22211 ++LIBS=$ac_check_lib_save_LIBS
22212 ++fi
22213 ++echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22214 ++echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
22215 ++if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22216 ++  cat >>confdefs.h <<_ACEOF
22217 ++#define HAVE_LIBK5CRYPTO 1
22218 ++_ACEOF
22219
22220 +   LIBS="-lk5crypto $LIBS"
22221
22222 +-else
22223 +-  echo "$ac_t""no" 1>&6
22224 + fi
22225
22226 +-  echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
22227 +-echo "configure:7809: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22228 +-ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
22229 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22230 +-  echo $ac_n "(cached) $ac_c" 1>&6
22231 ++
22232 ++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22233 ++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
22234 ++if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22235 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22236 + else
22237 +-  ac_save_LIBS="$LIBS"
22238 ++  ac_check_lib_save_LIBS=$LIBS
22239 + LIBS="-lcrypto  $LIBS"
22240 +-cat > conftest.$ac_ext <<EOF
22241 +-#line 7817 "configure"
22242 +-#include "confdefs.h"
22243 +-/* Override any gcc2 internal prototype to avoid an error.  */
22244 +-/* We use char because int might match the return type of a gcc2
22245 +-    builtin and then its argument prototype would still apply.  */
22246 +-char mit_des_cbc_encrypt();
22247 +-
22248 +-int main() {
22249 +-mit_des_cbc_encrypt()
22250 +-; return 0; }
22251 +-EOF
22252 +-if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22253 +-  rm -rf conftest*
22254 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22255 +-else
22256 +-  echo "configure: failed program was:" >&5
22257 +-  cat conftest.$ac_ext >&5
22258 +-  rm -rf conftest*
22259 +-  eval "ac_cv_lib_$ac_lib_var=no"
22260 +-fi
22261 +-rm -f conftest*
22262 +-LIBS="$ac_save_LIBS"
22263 ++cat >conftest.$ac_ext <<_ACEOF
22264 ++/* confdefs.h.  */
22265 ++_ACEOF
22266 ++cat confdefs.h >>conftest.$ac_ext
22267 ++cat >>conftest.$ac_ext <<_ACEOF
22268 ++/* end confdefs.h.  */
22269
22270 +-fi
22271 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22272 +-  echo "$ac_t""yes" 1>&6
22273 +-    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22274 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22275 +-  cat >> confdefs.h <<EOF
22276 +-#define $ac_tr_lib 1
22277 +-EOF
22278 ++/* Override any gcc2 internal prototype to avoid an error.  */
22279 ++#ifdef __cplusplus
22280 ++extern "C"
22281 ++#endif
22282 ++/* We use char because int might match the return type of a gcc2
22283 ++   builtin and then its argument prototype would still apply.  */
22284 ++char mit_des_cbc_encrypt ();
22285 ++int
22286 ++main ()
22287 ++{
22288 ++mit_des_cbc_encrypt ();
22289 ++  ;
22290 ++  return 0;
22291 ++}
22292 ++_ACEOF
22293 ++rm -f conftest.$ac_objext conftest$ac_exeext
22294 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22295 ++  (eval $ac_link) 2>conftest.er1
22296 ++  ac_status=$?
22297 ++  grep -v '^ *+' conftest.er1 >conftest.err
22298 ++  rm -f conftest.er1
22299 ++  cat conftest.err >&5
22300 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 ++  (exit $ac_status); } &&
22302 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22303 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 ++  (eval $ac_try) 2>&5
22305 ++  ac_status=$?
22306 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 ++  (exit $ac_status); }; } &&
22308 ++       { ac_try='test -s conftest$ac_exeext'
22309 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 ++  (eval $ac_try) 2>&5
22311 ++  ac_status=$?
22312 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 ++  (exit $ac_status); }; }; then
22314 ++  ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22315 ++else
22316 ++  echo "$as_me: failed program was:" >&5
22317 ++sed 's/^/| /' conftest.$ac_ext >&5
22318 ++
22319 ++ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22320 ++fi
22321 ++rm -f conftest.err conftest.$ac_objext \
22322 ++      conftest$ac_exeext conftest.$ac_ext
22323 ++LIBS=$ac_check_lib_save_LIBS
22324 ++fi
22325 ++echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22326 ++echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
22327 ++if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22328 ++  cat >>confdefs.h <<_ACEOF
22329 ++#define HAVE_LIBCRYPTO 1
22330 ++_ACEOF
22331
22332 +   LIBS="-lcrypto $LIBS"
22333
22334 +-else
22335 +-  echo "$ac_t""no" 1>&6
22336 + fi
22337
22338 +-  echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
22339 +-echo "configure:7856: checking for krb5_init_context in -lkrb5" >&5
22340 +-ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
22341 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22342 +-  echo $ac_n "(cached) $ac_c" 1>&6
22343 ++
22344 ++echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22345 ++echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
22346 ++if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22347 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22348 + else
22349 +-  ac_save_LIBS="$LIBS"
22350 ++  ac_check_lib_save_LIBS=$LIBS
22351 + LIBS="-lkrb5  $LIBS"
22352 +-cat > conftest.$ac_ext <<EOF
22353 +-#line 7864 "configure"
22354 +-#include "confdefs.h"
22355 +-/* Override any gcc2 internal prototype to avoid an error.  */
22356 +-/* We use char because int might match the return type of a gcc2
22357 +-    builtin and then its argument prototype would still apply.  */
22358 +-char krb5_init_context();
22359 +-
22360 +-int main() {
22361 +-krb5_init_context()
22362 +-; return 0; }
22363 +-EOF
22364 +-if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22365 +-  rm -rf conftest*
22366 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22367 +-else
22368 +-  echo "configure: failed program was:" >&5
22369 +-  cat conftest.$ac_ext >&5
22370 +-  rm -rf conftest*
22371 +-  eval "ac_cv_lib_$ac_lib_var=no"
22372 +-fi
22373 +-rm -f conftest*
22374 +-LIBS="$ac_save_LIBS"
22375 ++cat >conftest.$ac_ext <<_ACEOF
22376 ++/* confdefs.h.  */
22377 ++_ACEOF
22378 ++cat confdefs.h >>conftest.$ac_ext
22379 ++cat >>conftest.$ac_ext <<_ACEOF
22380 ++/* end confdefs.h.  */
22381
22382 +-fi
22383 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22384 +-  echo "$ac_t""yes" 1>&6
22385 +-    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22386 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22387 +-  cat >> confdefs.h <<EOF
22388 +-#define $ac_tr_lib 1
22389 +-EOF
22390 ++/* Override any gcc2 internal prototype to avoid an error.  */
22391 ++#ifdef __cplusplus
22392 ++extern "C"
22393 ++#endif
22394 ++/* We use char because int might match the return type of a gcc2
22395 ++   builtin and then its argument prototype would still apply.  */
22396 ++char krb5_init_context ();
22397 ++int
22398 ++main ()
22399 ++{
22400 ++krb5_init_context ();
22401 ++  ;
22402 ++  return 0;
22403 ++}
22404 ++_ACEOF
22405 ++rm -f conftest.$ac_objext conftest$ac_exeext
22406 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22407 ++  (eval $ac_link) 2>conftest.er1
22408 ++  ac_status=$?
22409 ++  grep -v '^ *+' conftest.er1 >conftest.err
22410 ++  rm -f conftest.er1
22411 ++  cat conftest.err >&5
22412 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 ++  (exit $ac_status); } &&
22414 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22415 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 ++  (eval $ac_try) 2>&5
22417 ++  ac_status=$?
22418 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 ++  (exit $ac_status); }; } &&
22420 ++       { ac_try='test -s conftest$ac_exeext'
22421 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 ++  (eval $ac_try) 2>&5
22423 ++  ac_status=$?
22424 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 ++  (exit $ac_status); }; }; then
22426 ++  ac_cv_lib_krb5_krb5_init_context=yes
22427 ++else
22428 ++  echo "$as_me: failed program was:" >&5
22429 ++sed 's/^/| /' conftest.$ac_ext >&5
22430 ++
22431 ++ac_cv_lib_krb5_krb5_init_context=no
22432 ++fi
22433 ++rm -f conftest.err conftest.$ac_objext \
22434 ++      conftest$ac_exeext conftest.$ac_ext
22435 ++LIBS=$ac_check_lib_save_LIBS
22436 ++fi
22437 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22438 ++echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
22439 ++if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22440 ++  cat >>confdefs.h <<_ACEOF
22441 ++#define HAVE_LIBKRB5 1
22442 ++_ACEOF
22443
22444 +   LIBS="-lkrb5 $LIBS"
22445
22446 +-else
22447 +-  echo "$ac_t""no" 1>&6
22448 + fi
22449
22450 +   if test "${with_kerberos5+set}" != set; then
22451 +-    echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
22452 +-echo "configure:7904: checking for des_cbc_encrypt in -ldes425" >&5
22453 +-ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
22454 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22455 +-  echo $ac_n "(cached) $ac_c" 1>&6
22456 ++
22457 ++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22458 ++echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
22459 ++if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22460 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22461 + else
22462 +-  ac_save_LIBS="$LIBS"
22463 ++  ac_check_lib_save_LIBS=$LIBS
22464 + LIBS="-ldes425  $LIBS"
22465 +-cat > conftest.$ac_ext <<EOF
22466 +-#line 7912 "configure"
22467 +-#include "confdefs.h"
22468 +-/* Override any gcc2 internal prototype to avoid an error.  */
22469 +-/* We use char because int might match the return type of a gcc2
22470 +-    builtin and then its argument prototype would still apply.  */
22471 +-char des_cbc_encrypt();
22472 +-
22473 +-int main() {
22474 +-des_cbc_encrypt()
22475 +-; return 0; }
22476 +-EOF
22477 +-if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22478 +-  rm -rf conftest*
22479 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22480 +-else
22481 +-  echo "configure: failed program was:" >&5
22482 +-  cat conftest.$ac_ext >&5
22483 +-  rm -rf conftest*
22484 +-  eval "ac_cv_lib_$ac_lib_var=no"
22485 +-fi
22486 +-rm -f conftest*
22487 +-LIBS="$ac_save_LIBS"
22488 ++cat >conftest.$ac_ext <<_ACEOF
22489 ++/* confdefs.h.  */
22490 ++_ACEOF
22491 ++cat confdefs.h >>conftest.$ac_ext
22492 ++cat >>conftest.$ac_ext <<_ACEOF
22493 ++/* end confdefs.h.  */
22494
22495 +-fi
22496 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22497 +-  echo "$ac_t""yes" 1>&6
22498 +-    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22499 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22500 +-  cat >> confdefs.h <<EOF
22501 +-#define $ac_tr_lib 1
22502 +-EOF
22503 ++/* Override any gcc2 internal prototype to avoid an error.  */
22504 ++#ifdef __cplusplus
22505 ++extern "C"
22506 ++#endif
22507 ++/* We use char because int might match the return type of a gcc2
22508 ++   builtin and then its argument prototype would still apply.  */
22509 ++char des_cbc_encrypt ();
22510 ++int
22511 ++main ()
22512 ++{
22513 ++des_cbc_encrypt ();
22514 ++  ;
22515 ++  return 0;
22516 ++}
22517 ++_ACEOF
22518 ++rm -f conftest.$ac_objext conftest$ac_exeext
22519 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22520 ++  (eval $ac_link) 2>conftest.er1
22521 ++  ac_status=$?
22522 ++  grep -v '^ *+' conftest.er1 >conftest.err
22523 ++  rm -f conftest.er1
22524 ++  cat conftest.err >&5
22525 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 ++  (exit $ac_status); } &&
22527 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22528 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 ++  (eval $ac_try) 2>&5
22530 ++  ac_status=$?
22531 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 ++  (exit $ac_status); }; } &&
22533 ++       { ac_try='test -s conftest$ac_exeext'
22534 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 ++  (eval $ac_try) 2>&5
22536 ++  ac_status=$?
22537 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 ++  (exit $ac_status); }; }; then
22539 ++  ac_cv_lib_des425_des_cbc_encrypt=yes
22540 ++else
22541 ++  echo "$as_me: failed program was:" >&5
22542 ++sed 's/^/| /' conftest.$ac_ext >&5
22543 ++
22544 ++ac_cv_lib_des425_des_cbc_encrypt=no
22545 ++fi
22546 ++rm -f conftest.err conftest.$ac_objext \
22547 ++      conftest$ac_exeext conftest.$ac_ext
22548 ++LIBS=$ac_check_lib_save_LIBS
22549 ++fi
22550 ++echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22551 ++echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
22552 ++if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22553 ++  cat >>confdefs.h <<_ACEOF
22554 ++#define HAVE_LIBDES425 1
22555 ++_ACEOF
22556
22557 +   LIBS="-ldes425 $LIBS"
22558
22559 + else
22560 +-  echo "$ac_t""no" 1>&6
22561 +-echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
22562 +-echo "configure:7949: checking for des_cbc_encrypt in -ldes" >&5
22563 +-ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
22564 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22565 +-  echo $ac_n "(cached) $ac_c" 1>&6
22566 ++
22567 ++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22568 ++echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
22569 ++if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22570 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22571 + else
22572 +-  ac_save_LIBS="$LIBS"
22573 ++  ac_check_lib_save_LIBS=$LIBS
22574 + LIBS="-ldes  $LIBS"
22575 +-cat > conftest.$ac_ext <<EOF
22576 +-#line 7957 "configure"
22577 +-#include "confdefs.h"
22578 +-/* Override any gcc2 internal prototype to avoid an error.  */
22579 +-/* We use char because int might match the return type of a gcc2
22580 +-    builtin and then its argument prototype would still apply.  */
22581 +-char des_cbc_encrypt();
22582 +-
22583 +-int main() {
22584 +-des_cbc_encrypt()
22585 +-; return 0; }
22586 +-EOF
22587 +-if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22588 +-  rm -rf conftest*
22589 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22590 +-else
22591 +-  echo "configure: failed program was:" >&5
22592 +-  cat conftest.$ac_ext >&5
22593 +-  rm -rf conftest*
22594 +-  eval "ac_cv_lib_$ac_lib_var=no"
22595 +-fi
22596 +-rm -f conftest*
22597 +-LIBS="$ac_save_LIBS"
22598 ++cat >conftest.$ac_ext <<_ACEOF
22599 ++/* confdefs.h.  */
22600 ++_ACEOF
22601 ++cat confdefs.h >>conftest.$ac_ext
22602 ++cat >>conftest.$ac_ext <<_ACEOF
22603 ++/* end confdefs.h.  */
22604
22605 +-fi
22606 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22607 +-  echo "$ac_t""yes" 1>&6
22608 +-    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
22609 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22610 +-  cat >> confdefs.h <<EOF
22611 +-#define $ac_tr_lib 1
22612 +-EOF
22613 ++/* Override any gcc2 internal prototype to avoid an error.  */
22614 ++#ifdef __cplusplus
22615 ++extern "C"
22616 ++#endif
22617 ++/* We use char because int might match the return type of a gcc2
22618 ++   builtin and then its argument prototype would still apply.  */
22619 ++char des_cbc_encrypt ();
22620 ++int
22621 ++main ()
22622 ++{
22623 ++des_cbc_encrypt ();
22624 ++  ;
22625 ++  return 0;
22626 ++}
22627 ++_ACEOF
22628 ++rm -f conftest.$ac_objext conftest$ac_exeext
22629 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22630 ++  (eval $ac_link) 2>conftest.er1
22631 ++  ac_status=$?
22632 ++  grep -v '^ *+' conftest.er1 >conftest.err
22633 ++  rm -f conftest.er1
22634 ++  cat conftest.err >&5
22635 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 ++  (exit $ac_status); } &&
22637 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22638 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 ++  (eval $ac_try) 2>&5
22640 ++  ac_status=$?
22641 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 ++  (exit $ac_status); }; } &&
22643 ++       { ac_try='test -s conftest$ac_exeext'
22644 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 ++  (eval $ac_try) 2>&5
22646 ++  ac_status=$?
22647 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 ++  (exit $ac_status); }; }; then
22649 ++  ac_cv_lib_des_des_cbc_encrypt=yes
22650 ++else
22651 ++  echo "$as_me: failed program was:" >&5
22652 ++sed 's/^/| /' conftest.$ac_ext >&5
22653 ++
22654 ++ac_cv_lib_des_des_cbc_encrypt=no
22655 ++fi
22656 ++rm -f conftest.err conftest.$ac_objext \
22657 ++      conftest$ac_exeext conftest.$ac_ext
22658 ++LIBS=$ac_check_lib_save_LIBS
22659 ++fi
22660 ++echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22661 ++echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
22662 ++if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22663 ++  cat >>confdefs.h <<_ACEOF
22664 ++#define HAVE_LIBDES 1
22665 ++_ACEOF
22666
22667 +   LIBS="-ldes $LIBS"
22668
22669 +-else
22670 +-  echo "$ac_t""no" 1>&6
22671 + fi
22672
22673 + fi
22674
22675 +-    echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
22676 +-echo "configure:7998: checking for krb_get_cred in -lkrb4" >&5
22677 +-ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
22678 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22679 +-  echo $ac_n "(cached) $ac_c" 1>&6
22680 ++
22681 ++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22682 ++echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
22683 ++if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22684 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22685 + else
22686 +-  ac_save_LIBS="$LIBS"
22687 ++  ac_check_lib_save_LIBS=$LIBS
22688 + LIBS="-lkrb4  $LIBS"
22689 +-cat > conftest.$ac_ext <<EOF
22690 +-#line 8006 "configure"
22691 +-#include "confdefs.h"
22692 +-/* Override any gcc2 internal prototype to avoid an error.  */
22693 +-/* We use char because int might match the return type of a gcc2
22694 +-    builtin and then its argument prototype would still apply.  */
22695 +-char krb_get_cred();
22696 +-
22697 +-int main() {
22698 +-krb_get_cred()
22699 +-; return 0; }
22700 +-EOF
22701 +-if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22702 +-  rm -rf conftest*
22703 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22704 +-else
22705 +-  echo "configure: failed program was:" >&5
22706 +-  cat conftest.$ac_ext >&5
22707 +-  rm -rf conftest*
22708 +-  eval "ac_cv_lib_$ac_lib_var=no"
22709 +-fi
22710 +-rm -f conftest*
22711 +-LIBS="$ac_save_LIBS"
22712 ++cat >conftest.$ac_ext <<_ACEOF
22713 ++/* confdefs.h.  */
22714 ++_ACEOF
22715 ++cat confdefs.h >>conftest.$ac_ext
22716 ++cat >>conftest.$ac_ext <<_ACEOF
22717 ++/* end confdefs.h.  */
22718
22719 +-fi
22720 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22721 +-  echo "$ac_t""yes" 1>&6
22722 +-    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
22723 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22724 +-  cat >> confdefs.h <<EOF
22725 +-#define $ac_tr_lib 1
22726 +-EOF
22727 ++/* Override any gcc2 internal prototype to avoid an error.  */
22728 ++#ifdef __cplusplus
22729 ++extern "C"
22730 ++#endif
22731 ++/* We use char because int might match the return type of a gcc2
22732 ++   builtin and then its argument prototype would still apply.  */
22733 ++char krb_get_cred ();
22734 ++int
22735 ++main ()
22736 ++{
22737 ++krb_get_cred ();
22738 ++  ;
22739 ++  return 0;
22740 ++}
22741 ++_ACEOF
22742 ++rm -f conftest.$ac_objext conftest$ac_exeext
22743 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22744 ++  (eval $ac_link) 2>conftest.er1
22745 ++  ac_status=$?
22746 ++  grep -v '^ *+' conftest.er1 >conftest.err
22747 ++  rm -f conftest.er1
22748 ++  cat conftest.err >&5
22749 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 ++  (exit $ac_status); } &&
22751 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22752 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 ++  (eval $ac_try) 2>&5
22754 ++  ac_status=$?
22755 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 ++  (exit $ac_status); }; } &&
22757 ++       { ac_try='test -s conftest$ac_exeext'
22758 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 ++  (eval $ac_try) 2>&5
22760 ++  ac_status=$?
22761 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 ++  (exit $ac_status); }; }; then
22763 ++  ac_cv_lib_krb4_krb_get_cred=yes
22764 ++else
22765 ++  echo "$as_me: failed program was:" >&5
22766 ++sed 's/^/| /' conftest.$ac_ext >&5
22767 ++
22768 ++ac_cv_lib_krb4_krb_get_cred=no
22769 ++fi
22770 ++rm -f conftest.err conftest.$ac_objext \
22771 ++      conftest$ac_exeext conftest.$ac_ext
22772 ++LIBS=$ac_check_lib_save_LIBS
22773 ++fi
22774 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22775 ++echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
22776 ++if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22777 ++  cat >>confdefs.h <<_ACEOF
22778 ++#define HAVE_LIBKRB4 1
22779 ++_ACEOF
22780
22781 +   LIBS="-lkrb4 $LIBS"
22782
22783 + else
22784 +-  echo "$ac_t""no" 1>&6
22785 +-echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
22786 +-echo "configure:8043: checking for krb_get_cred in -lkrb" >&5
22787 +-ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
22788 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22789 +-  echo $ac_n "(cached) $ac_c" 1>&6
22790 ++
22791 ++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22792 ++echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
22793 ++if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22794 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22795 + else
22796 +-  ac_save_LIBS="$LIBS"
22797 +-LIBS="-lkrb  $LIBS"
22798 +-cat > conftest.$ac_ext <<EOF
22799 +-#line 8051 "configure"
22800 +-#include "confdefs.h"
22801 +-/* Override any gcc2 internal prototype to avoid an error.  */
22802 +-/* We use char because int might match the return type of a gcc2
22803 +-    builtin and then its argument prototype would still apply.  */
22804 +-char krb_get_cred();
22805 +-
22806 +-int main() {
22807 +-krb_get_cred()
22808 +-; return 0; }
22809 +-EOF
22810 +-if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22811 +-  rm -rf conftest*
22812 +-  eval "ac_cv_lib_$ac_lib_var=yes"
22813 +-else
22814 +-  echo "configure: failed program was:" >&5
22815 +-  cat conftest.$ac_ext >&5
22816 +-  rm -rf conftest*
22817 +-  eval "ac_cv_lib_$ac_lib_var=no"
22818 +-fi
22819 +-rm -f conftest*
22820 +-LIBS="$ac_save_LIBS"
22821 ++  ac_check_lib_save_LIBS=$LIBS
22822 ++LIBS="-lkrb  $LIBS"
22823 ++cat >conftest.$ac_ext <<_ACEOF
22824 ++/* confdefs.h.  */
22825 ++_ACEOF
22826 ++cat confdefs.h >>conftest.$ac_ext
22827 ++cat >>conftest.$ac_ext <<_ACEOF
22828 ++/* end confdefs.h.  */
22829
22830 +-fi
22831 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22832 +-  echo "$ac_t""yes" 1>&6
22833 +-    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
22834 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
22835 +-  cat >> confdefs.h <<EOF
22836 +-#define $ac_tr_lib 1
22837 +-EOF
22838 ++/* Override any gcc2 internal prototype to avoid an error.  */
22839 ++#ifdef __cplusplus
22840 ++extern "C"
22841 ++#endif
22842 ++/* We use char because int might match the return type of a gcc2
22843 ++   builtin and then its argument prototype would still apply.  */
22844 ++char krb_get_cred ();
22845 ++int
22846 ++main ()
22847 ++{
22848 ++krb_get_cred ();
22849 ++  ;
22850 ++  return 0;
22851 ++}
22852 ++_ACEOF
22853 ++rm -f conftest.$ac_objext conftest$ac_exeext
22854 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855 ++  (eval $ac_link) 2>conftest.er1
22856 ++  ac_status=$?
22857 ++  grep -v '^ *+' conftest.er1 >conftest.err
22858 ++  rm -f conftest.er1
22859 ++  cat conftest.err >&5
22860 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 ++  (exit $ac_status); } &&
22862 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22863 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 ++  (eval $ac_try) 2>&5
22865 ++  ac_status=$?
22866 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 ++  (exit $ac_status); }; } &&
22868 ++       { ac_try='test -s conftest$ac_exeext'
22869 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 ++  (eval $ac_try) 2>&5
22871 ++  ac_status=$?
22872 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 ++  (exit $ac_status); }; }; then
22874 ++  ac_cv_lib_krb_krb_get_cred=yes
22875 ++else
22876 ++  echo "$as_me: failed program was:" >&5
22877 ++sed 's/^/| /' conftest.$ac_ext >&5
22878 ++
22879 ++ac_cv_lib_krb_krb_get_cred=no
22880 ++fi
22881 ++rm -f conftest.err conftest.$ac_objext \
22882 ++      conftest$ac_exeext conftest.$ac_ext
22883 ++LIBS=$ac_check_lib_save_LIBS
22884 ++fi
22885 ++echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22886 ++echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
22887 ++if test $ac_cv_lib_krb_krb_get_cred = yes; then
22888 ++  cat >>confdefs.h <<_ACEOF
22889 ++#define HAVE_LIBKRB 1
22890 ++_ACEOF
22891
22892 +   LIBS="-lkrb $LIBS"
22893
22894 +-else
22895 +-  echo "$ac_t""no" 1>&6
22896 + fi
22897
22898 + fi
22899 +@@ -8090,393 +15528,702 @@
22900 +   fi
22901
22902 +   if test "${with_kerberos5+set}" = set; then
22903 +-    for ac_hdr in krb5.h
22904 +-do
22905 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22906 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22907 +-echo "configure:8098: checking for $ac_hdr" >&5
22908 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22909 +-  echo $ac_n "(cached) $ac_c" 1>&6
22910 +-else
22911 +-  cat > conftest.$ac_ext <<EOF
22912 +-#line 8103 "configure"
22913 +-#include "confdefs.h"
22914 +-#include <$ac_hdr>
22915 +-EOF
22916 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22917 +-{ (eval echo configure:8108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22918 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22919 +-if test -z "$ac_err"; then
22920 +-  rm -rf conftest*
22921 +-  eval "ac_cv_header_$ac_safe=yes"
22922 +-else
22923 +-  echo "$ac_err" >&5
22924 +-  echo "configure: failed program was:" >&5
22925 +-  cat conftest.$ac_ext >&5
22926 +-  rm -rf conftest*
22927 +-  eval "ac_cv_header_$ac_safe=no"
22928 +-fi
22929 +-rm -f conftest*
22930 +-fi
22931 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22932 +-  echo "$ac_t""yes" 1>&6
22933 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22934 +-  cat >> confdefs.h <<EOF
22935 +-#define $ac_tr_hdr 1
22936 +-EOF
22937 +- 
22938 +-else
22939 +-  echo "$ac_t""no" 1>&6
22940 +-fi
22941 +-done
22942
22943 ++for ac_header in krb5.h
22944 ++do
22945 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22946 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
22947 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
22948 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22949 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
22950 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
22951 ++fi
22952 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22953 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22954 ++else
22955 ++  # Is the header compilable?
22956 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
22957 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22958 ++cat >conftest.$ac_ext <<_ACEOF
22959 ++/* confdefs.h.  */
22960 ++_ACEOF
22961 ++cat confdefs.h >>conftest.$ac_ext
22962 ++cat >>conftest.$ac_ext <<_ACEOF
22963 ++/* end confdefs.h.  */
22964 ++$ac_includes_default
22965 ++#include <$ac_header>
22966 ++_ACEOF
22967 ++rm -f conftest.$ac_objext
22968 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22969 ++  (eval $ac_compile) 2>conftest.er1
22970 ++  ac_status=$?
22971 ++  grep -v '^ *+' conftest.er1 >conftest.err
22972 ++  rm -f conftest.er1
22973 ++  cat conftest.err >&5
22974 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 ++  (exit $ac_status); } &&
22976 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22977 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 ++  (eval $ac_try) 2>&5
22979 ++  ac_status=$?
22980 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 ++  (exit $ac_status); }; } &&
22982 ++       { ac_try='test -s conftest.$ac_objext'
22983 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 ++  (eval $ac_try) 2>&5
22985 ++  ac_status=$?
22986 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 ++  (exit $ac_status); }; }; then
22988 ++  ac_header_compiler=yes
22989 ++else
22990 ++  echo "$as_me: failed program was:" >&5
22991 ++sed 's/^/| /' conftest.$ac_ext >&5
22992 ++
22993 ++ac_header_compiler=no
22994 ++fi
22995 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22996 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22997 ++echo "${ECHO_T}$ac_header_compiler" >&6
22998 ++
22999 ++# Is the header present?
23000 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23001 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23002 ++cat >conftest.$ac_ext <<_ACEOF
23003 ++/* confdefs.h.  */
23004 ++_ACEOF
23005 ++cat confdefs.h >>conftest.$ac_ext
23006 ++cat >>conftest.$ac_ext <<_ACEOF
23007 ++/* end confdefs.h.  */
23008 ++#include <$ac_header>
23009 ++_ACEOF
23010 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23011 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23012 ++  ac_status=$?
23013 ++  grep -v '^ *+' conftest.er1 >conftest.err
23014 ++  rm -f conftest.er1
23015 ++  cat conftest.err >&5
23016 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 ++  (exit $ac_status); } >/dev/null; then
23018 ++  if test -s conftest.err; then
23019 ++    ac_cpp_err=$ac_c_preproc_warn_flag
23020 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23021 +   else
23022 +-    for ac_hdr in des.h
23023 +-do
23024 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23025 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23026 +-echo "configure:8139: checking for $ac_hdr" >&5
23027 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23028 +-  echo $ac_n "(cached) $ac_c" 1>&6
23029 +-else
23030 +-  cat > conftest.$ac_ext <<EOF
23031 +-#line 8144 "configure"
23032 +-#include "confdefs.h"
23033 +-#include <$ac_hdr>
23034 +-EOF
23035 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23036 +-{ (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23037 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23038 +-if test -z "$ac_err"; then
23039 +-  rm -rf conftest*
23040 +-  eval "ac_cv_header_$ac_safe=yes"
23041 +-else
23042 +-  echo "$ac_err" >&5
23043 +-  echo "configure: failed program was:" >&5
23044 +-  cat conftest.$ac_ext >&5
23045 +-  rm -rf conftest*
23046 +-  eval "ac_cv_header_$ac_safe=no"
23047 +-fi
23048 +-rm -f conftest*
23049 +-fi
23050 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23051 +-  echo "$ac_t""yes" 1>&6
23052 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23053 +-  cat >> confdefs.h <<EOF
23054 +-#define $ac_tr_hdr 1
23055 +-EOF
23056 +- 
23057 +-else
23058 +-  echo "$ac_t""no" 1>&6
23059 +-for ac_hdr in kerberosIV/des.h
23060 +-do
23061 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23062 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23063 +-echo "configure:8176: checking for $ac_hdr" >&5
23064 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23065 +-  echo $ac_n "(cached) $ac_c" 1>&6
23066 +-else
23067 +-  cat > conftest.$ac_ext <<EOF
23068 +-#line 8181 "configure"
23069 +-#include "confdefs.h"
23070 +-#include <$ac_hdr>
23071 +-EOF
23072 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23073 +-{ (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23074 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23075 +-if test -z "$ac_err"; then
23076 +-  rm -rf conftest*
23077 +-  eval "ac_cv_header_$ac_safe=yes"
23078 +-else
23079 +-  echo "$ac_err" >&5
23080 +-  echo "configure: failed program was:" >&5
23081 +-  cat conftest.$ac_ext >&5
23082 +-  rm -rf conftest*
23083 +-  eval "ac_cv_header_$ac_safe=no"
23084 +-fi
23085 +-rm -f conftest*
23086 +-fi
23087 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23088 +-  echo "$ac_t""yes" 1>&6
23089 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23090 +-  cat >> confdefs.h <<EOF
23091 +-#define $ac_tr_hdr 1
23092 +-EOF
23093 +- 
23094 +-else
23095 +-  echo "$ac_t""no" 1>&6
23096 +-for ac_hdr in kerberos/des.h
23097 +-do
23098 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23099 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23100 +-echo "configure:8213: checking for $ac_hdr" >&5
23101 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23102 +-  echo $ac_n "(cached) $ac_c" 1>&6
23103 +-else
23104 +-  cat > conftest.$ac_ext <<EOF
23105 +-#line 8218 "configure"
23106 +-#include "confdefs.h"
23107 +-#include <$ac_hdr>
23108 +-EOF
23109 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23110 +-{ (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23111 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23112 +-if test -z "$ac_err"; then
23113 +-  rm -rf conftest*
23114 +-  eval "ac_cv_header_$ac_safe=yes"
23115 +-else
23116 +-  echo "$ac_err" >&5
23117 +-  echo "configure: failed program was:" >&5
23118 +-  cat conftest.$ac_ext >&5
23119 +-  rm -rf conftest*
23120 +-  eval "ac_cv_header_$ac_safe=no"
23121 +-fi
23122 +-rm -f conftest*
23123 ++    ac_cpp_err=
23124 ++  fi
23125 ++else
23126 ++  ac_cpp_err=yes
23127 + fi
23128 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23129 +-  echo "$ac_t""yes" 1>&6
23130 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23131 +-  cat >> confdefs.h <<EOF
23132 +-#define $ac_tr_hdr 1
23133 +-EOF
23134 +- 
23135 ++if test -z "$ac_cpp_err"; then
23136 ++  ac_header_preproc=yes
23137 ++else
23138 ++  echo "$as_me: failed program was:" >&5
23139 ++sed 's/^/| /' conftest.$ac_ext >&5
23140 ++
23141 ++  ac_header_preproc=no
23142 ++fi
23143 ++rm -f conftest.err conftest.$ac_ext
23144 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23145 ++echo "${ECHO_T}$ac_header_preproc" >&6
23146 ++
23147 ++# So?  What about this header?
23148 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23149 ++  yes:no: )
23150 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23151 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23152 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23153 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23154 ++    ac_header_preproc=yes
23155 ++    ;;
23156 ++  no:yes:* )
23157 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23158 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23159 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23160 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23161 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23162 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23163 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23164 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23165 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23166 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23167 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23168 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23169 ++    (
23170 ++      cat <<\_ASBOX
23171 ++## ------------------------------------------ ##
23172 ++## Report this to the AC_PACKAGE_NAME lists.  ##
23173 ++## ------------------------------------------ ##
23174 ++_ASBOX
23175 ++    ) |
23176 ++      sed "s/^/$as_me: WARNING:     /" >&2
23177 ++    ;;
23178 ++esac
23179 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23180 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23181 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23182 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23183 + else
23184 +-  echo "$ac_t""no" 1>&6
23185 ++  eval "$as_ac_Header=\$ac_header_preproc"
23186 + fi
23187 +-done
23188 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23189 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23190
23191 + fi
23192 +-done
23193 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23194 ++  cat >>confdefs.h <<_ACEOF
23195 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23196 ++_ACEOF
23197
23198 + fi
23199 ++
23200 + done
23201
23202 +-    for ac_hdr in krb.h
23203 ++  else
23204 ++
23205 ++
23206 ++
23207 ++for ac_header in des.h kerberosIV/des.h kerberos/des.h
23208 + do
23209 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23210 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23211 +-echo "configure:8259: checking for $ac_hdr" >&5
23212 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23213 +-  echo $ac_n "(cached) $ac_c" 1>&6
23214 +-else
23215 +-  cat > conftest.$ac_ext <<EOF
23216 +-#line 8264 "configure"
23217 +-#include "confdefs.h"
23218 +-#include <$ac_hdr>
23219 +-EOF
23220 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23221 +-{ (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23222 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23223 +-if test -z "$ac_err"; then
23224 +-  rm -rf conftest*
23225 +-  eval "ac_cv_header_$ac_safe=yes"
23226 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23227 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23228 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
23229 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23230 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23231 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23232 ++fi
23233 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23234 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23235 ++else
23236 ++  # Is the header compilable?
23237 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23238 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23239 ++cat >conftest.$ac_ext <<_ACEOF
23240 ++/* confdefs.h.  */
23241 ++_ACEOF
23242 ++cat confdefs.h >>conftest.$ac_ext
23243 ++cat >>conftest.$ac_ext <<_ACEOF
23244 ++/* end confdefs.h.  */
23245 ++$ac_includes_default
23246 ++#include <$ac_header>
23247 ++_ACEOF
23248 ++rm -f conftest.$ac_objext
23249 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23250 ++  (eval $ac_compile) 2>conftest.er1
23251 ++  ac_status=$?
23252 ++  grep -v '^ *+' conftest.er1 >conftest.err
23253 ++  rm -f conftest.er1
23254 ++  cat conftest.err >&5
23255 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 ++  (exit $ac_status); } &&
23257 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23258 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 ++  (eval $ac_try) 2>&5
23260 ++  ac_status=$?
23261 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 ++  (exit $ac_status); }; } &&
23263 ++       { ac_try='test -s conftest.$ac_objext'
23264 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 ++  (eval $ac_try) 2>&5
23266 ++  ac_status=$?
23267 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 ++  (exit $ac_status); }; }; then
23269 ++  ac_header_compiler=yes
23270 ++else
23271 ++  echo "$as_me: failed program was:" >&5
23272 ++sed 's/^/| /' conftest.$ac_ext >&5
23273 ++
23274 ++ac_header_compiler=no
23275 ++fi
23276 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23277 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23278 ++echo "${ECHO_T}$ac_header_compiler" >&6
23279 ++
23280 ++# Is the header present?
23281 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23282 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23283 ++cat >conftest.$ac_ext <<_ACEOF
23284 ++/* confdefs.h.  */
23285 ++_ACEOF
23286 ++cat confdefs.h >>conftest.$ac_ext
23287 ++cat >>conftest.$ac_ext <<_ACEOF
23288 ++/* end confdefs.h.  */
23289 ++#include <$ac_header>
23290 ++_ACEOF
23291 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23292 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23293 ++  ac_status=$?
23294 ++  grep -v '^ *+' conftest.er1 >conftest.err
23295 ++  rm -f conftest.er1
23296 ++  cat conftest.err >&5
23297 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 ++  (exit $ac_status); } >/dev/null; then
23299 ++  if test -s conftest.err; then
23300 ++    ac_cpp_err=$ac_c_preproc_warn_flag
23301 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23302 ++  else
23303 ++    ac_cpp_err=
23304 ++  fi
23305 + else
23306 +-  echo "$ac_err" >&5
23307 +-  echo "configure: failed program was:" >&5
23308 +-  cat conftest.$ac_ext >&5
23309 +-  rm -rf conftest*
23310 +-  eval "ac_cv_header_$ac_safe=no"
23311 +-fi
23312 +-rm -f conftest*
23313 +-fi
23314 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23315 +-  echo "$ac_t""yes" 1>&6
23316 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23317 +-  cat >> confdefs.h <<EOF
23318 +-#define $ac_tr_hdr 1
23319 +-EOF
23320 +- 
23321 +-else
23322 +-  echo "$ac_t""no" 1>&6
23323 +-for ac_hdr in kerberosIV/krb.h
23324 +-do
23325 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23326 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23327 +-echo "configure:8296: checking for $ac_hdr" >&5
23328 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23329 +-  echo $ac_n "(cached) $ac_c" 1>&6
23330 +-else
23331 +-  cat > conftest.$ac_ext <<EOF
23332 +-#line 8301 "configure"
23333 +-#include "confdefs.h"
23334 +-#include <$ac_hdr>
23335 +-EOF
23336 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23337 +-{ (eval echo configure:8306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23338 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23339 +-if test -z "$ac_err"; then
23340 +-  rm -rf conftest*
23341 +-  eval "ac_cv_header_$ac_safe=yes"
23342 +-else
23343 +-  echo "$ac_err" >&5
23344 +-  echo "configure: failed program was:" >&5
23345 +-  cat conftest.$ac_ext >&5
23346 +-  rm -rf conftest*
23347 +-  eval "ac_cv_header_$ac_safe=no"
23348 +-fi
23349 +-rm -f conftest*
23350 ++  ac_cpp_err=yes
23351 + fi
23352 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23353 +-  echo "$ac_t""yes" 1>&6
23354 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23355 +-  cat >> confdefs.h <<EOF
23356 +-#define $ac_tr_hdr 1
23357 +-EOF
23358 +- 
23359 +-else
23360 +-  echo "$ac_t""no" 1>&6
23361 +-for ac_hdr in kerberos/krb.h
23362 +-do
23363 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23364 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23365 +-echo "configure:8333: checking for $ac_hdr" >&5
23366 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23367 +-  echo $ac_n "(cached) $ac_c" 1>&6
23368 +-else
23369 +-  cat > conftest.$ac_ext <<EOF
23370 +-#line 8338 "configure"
23371 +-#include "confdefs.h"
23372 +-#include <$ac_hdr>
23373 +-EOF
23374 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23375 +-{ (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23376 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23377 +-if test -z "$ac_err"; then
23378 +-  rm -rf conftest*
23379 +-  eval "ac_cv_header_$ac_safe=yes"
23380 +-else
23381 +-  echo "$ac_err" >&5
23382 +-  echo "configure: failed program was:" >&5
23383 +-  cat conftest.$ac_ext >&5
23384 +-  rm -rf conftest*
23385 +-  eval "ac_cv_header_$ac_safe=no"
23386 +-fi
23387 +-rm -f conftest*
23388 +-fi
23389 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23390 +-  echo "$ac_t""yes" 1>&6
23391 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23392 +-  cat >> confdefs.h <<EOF
23393 +-#define $ac_tr_hdr 1
23394 +-EOF
23395 +- 
23396 ++if test -z "$ac_cpp_err"; then
23397 ++  ac_header_preproc=yes
23398 + else
23399 +-  echo "$ac_t""no" 1>&6
23400 ++  echo "$as_me: failed program was:" >&5
23401 ++sed 's/^/| /' conftest.$ac_ext >&5
23402 ++
23403 ++  ac_header_preproc=no
23404 ++fi
23405 ++rm -f conftest.err conftest.$ac_ext
23406 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407 ++echo "${ECHO_T}$ac_header_preproc" >&6
23408 ++
23409 ++# So?  What about this header?
23410 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23411 ++  yes:no: )
23412 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23413 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23414 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23415 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23416 ++    ac_header_preproc=yes
23417 ++    ;;
23418 ++  no:yes:* )
23419 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23420 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23421 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23422 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23423 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23424 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23425 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23426 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23427 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23428 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23429 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23430 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23431 ++    (
23432 ++      cat <<\_ASBOX
23433 ++## ------------------------------------------ ##
23434 ++## Report this to the AC_PACKAGE_NAME lists.  ##
23435 ++## ------------------------------------------ ##
23436 ++_ASBOX
23437 ++    ) |
23438 ++      sed "s/^/$as_me: WARNING:     /" >&2
23439 ++    ;;
23440 ++esac
23441 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23442 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23443 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23444 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23445 ++else
23446 ++  eval "$as_ac_Header=\$ac_header_preproc"
23447 ++fi
23448 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23449 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23450 ++
23451 ++fi
23452 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23453 ++  cat >>confdefs.h <<_ACEOF
23454 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23455 ++_ACEOF
23456 ++ break
23457 + fi
23458 ++
23459 + done
23460
23461 ++
23462 ++
23463 ++
23464 ++for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
23465 ++do
23466 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23467 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23468 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
23469 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23470 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23471 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23472 ++fi
23473 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23474 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23475 ++else
23476 ++  # Is the header compilable?
23477 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23478 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23479 ++cat >conftest.$ac_ext <<_ACEOF
23480 ++/* confdefs.h.  */
23481 ++_ACEOF
23482 ++cat confdefs.h >>conftest.$ac_ext
23483 ++cat >>conftest.$ac_ext <<_ACEOF
23484 ++/* end confdefs.h.  */
23485 ++$ac_includes_default
23486 ++#include <$ac_header>
23487 ++_ACEOF
23488 ++rm -f conftest.$ac_objext
23489 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23490 ++  (eval $ac_compile) 2>conftest.er1
23491 ++  ac_status=$?
23492 ++  grep -v '^ *+' conftest.er1 >conftest.err
23493 ++  rm -f conftest.er1
23494 ++  cat conftest.err >&5
23495 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 ++  (exit $ac_status); } &&
23497 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23498 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 ++  (eval $ac_try) 2>&5
23500 ++  ac_status=$?
23501 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 ++  (exit $ac_status); }; } &&
23503 ++       { ac_try='test -s conftest.$ac_objext'
23504 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 ++  (eval $ac_try) 2>&5
23506 ++  ac_status=$?
23507 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 ++  (exit $ac_status); }; }; then
23509 ++  ac_header_compiler=yes
23510 ++else
23511 ++  echo "$as_me: failed program was:" >&5
23512 ++sed 's/^/| /' conftest.$ac_ext >&5
23513 ++
23514 ++ac_header_compiler=no
23515 ++fi
23516 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23517 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23518 ++echo "${ECHO_T}$ac_header_compiler" >&6
23519 ++
23520 ++# Is the header present?
23521 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23522 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23523 ++cat >conftest.$ac_ext <<_ACEOF
23524 ++/* confdefs.h.  */
23525 ++_ACEOF
23526 ++cat confdefs.h >>conftest.$ac_ext
23527 ++cat >>conftest.$ac_ext <<_ACEOF
23528 ++/* end confdefs.h.  */
23529 ++#include <$ac_header>
23530 ++_ACEOF
23531 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23532 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23533 ++  ac_status=$?
23534 ++  grep -v '^ *+' conftest.er1 >conftest.err
23535 ++  rm -f conftest.er1
23536 ++  cat conftest.err >&5
23537 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 ++  (exit $ac_status); } >/dev/null; then
23539 ++  if test -s conftest.err; then
23540 ++    ac_cpp_err=$ac_c_preproc_warn_flag
23541 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23542 ++  else
23543 ++    ac_cpp_err=
23544 ++  fi
23545 ++else
23546 ++  ac_cpp_err=yes
23547 + fi
23548 +-done
23549 ++if test -z "$ac_cpp_err"; then
23550 ++  ac_header_preproc=yes
23551 ++else
23552 ++  echo "$as_me: failed program was:" >&5
23553 ++sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ++  ac_header_preproc=no
23556 ++fi
23557 ++rm -f conftest.err conftest.$ac_ext
23558 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 ++echo "${ECHO_T}$ac_header_preproc" >&6
23560 ++
23561 ++# So?  What about this header?
23562 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23563 ++  yes:no: )
23564 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23567 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23568 ++    ac_header_preproc=yes
23569 ++    ;;
23570 ++  no:yes:* )
23571 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23572 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23573 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23574 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23575 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23576 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23577 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23578 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23579 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23580 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23581 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23582 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23583 ++    (
23584 ++      cat <<\_ASBOX
23585 ++## ------------------------------------------ ##
23586 ++## Report this to the AC_PACKAGE_NAME lists.  ##
23587 ++## ------------------------------------------ ##
23588 ++_ASBOX
23589 ++    ) |
23590 ++      sed "s/^/$as_me: WARNING:     /" >&2
23591 ++    ;;
23592 ++esac
23593 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23594 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23595 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23596 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23597 ++else
23598 ++  eval "$as_ac_Header=\$ac_header_preproc"
23599 ++fi
23600 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23601 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23602 ++
23603 ++fi
23604 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23605 ++  cat >>confdefs.h <<_ACEOF
23606 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23607 ++_ACEOF
23608 ++ break
23609 + fi
23610 ++
23611 + done
23612
23613 +   fi
23614 +-  for ac_hdr in com_err.h
23615 ++
23616 ++for ac_header in com_err.h
23617 + do
23618 +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23619 +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23620 +-echo "configure:8380: checking for $ac_hdr" >&5
23621 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23622 +-  echo $ac_n "(cached) $ac_c" 1>&6
23623 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23624 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23625 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
23626 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23627 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23628 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23629 ++fi
23630 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23631 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23632 ++else
23633 ++  # Is the header compilable?
23634 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
23635 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23636 ++cat >conftest.$ac_ext <<_ACEOF
23637 ++/* confdefs.h.  */
23638 ++_ACEOF
23639 ++cat confdefs.h >>conftest.$ac_ext
23640 ++cat >>conftest.$ac_ext <<_ACEOF
23641 ++/* end confdefs.h.  */
23642 ++$ac_includes_default
23643 ++#include <$ac_header>
23644 ++_ACEOF
23645 ++rm -f conftest.$ac_objext
23646 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23647 ++  (eval $ac_compile) 2>conftest.er1
23648 ++  ac_status=$?
23649 ++  grep -v '^ *+' conftest.er1 >conftest.err
23650 ++  rm -f conftest.er1
23651 ++  cat conftest.err >&5
23652 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 ++  (exit $ac_status); } &&
23654 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23655 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 ++  (eval $ac_try) 2>&5
23657 ++  ac_status=$?
23658 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 ++  (exit $ac_status); }; } &&
23660 ++       { ac_try='test -s conftest.$ac_objext'
23661 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 ++  (eval $ac_try) 2>&5
23663 ++  ac_status=$?
23664 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 ++  (exit $ac_status); }; }; then
23666 ++  ac_header_compiler=yes
23667 ++else
23668 ++  echo "$as_me: failed program was:" >&5
23669 ++sed 's/^/| /' conftest.$ac_ext >&5
23670 ++
23671 ++ac_header_compiler=no
23672 ++fi
23673 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23674 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675 ++echo "${ECHO_T}$ac_header_compiler" >&6
23676 ++
23677 ++# Is the header present?
23678 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680 ++cat >conftest.$ac_ext <<_ACEOF
23681 ++/* confdefs.h.  */
23682 ++_ACEOF
23683 ++cat confdefs.h >>conftest.$ac_ext
23684 ++cat >>conftest.$ac_ext <<_ACEOF
23685 ++/* end confdefs.h.  */
23686 ++#include <$ac_header>
23687 ++_ACEOF
23688 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23690 ++  ac_status=$?
23691 ++  grep -v '^ *+' conftest.er1 >conftest.err
23692 ++  rm -f conftest.er1
23693 ++  cat conftest.err >&5
23694 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 ++  (exit $ac_status); } >/dev/null; then
23696 ++  if test -s conftest.err; then
23697 ++    ac_cpp_err=$ac_c_preproc_warn_flag
23698 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23699 ++  else
23700 ++    ac_cpp_err=
23701 ++  fi
23702 + else
23703 +-  cat > conftest.$ac_ext <<EOF
23704 +-#line 8385 "configure"
23705 +-#include "confdefs.h"
23706 +-#include <$ac_hdr>
23707 +-EOF
23708 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23709 +-{ (eval echo configure:8390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23710 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23711 +-if test -z "$ac_err"; then
23712 +-  rm -rf conftest*
23713 +-  eval "ac_cv_header_$ac_safe=yes"
23714 ++  ac_cpp_err=yes
23715 ++fi
23716 ++if test -z "$ac_cpp_err"; then
23717 ++  ac_header_preproc=yes
23718 ++else
23719 ++  echo "$as_me: failed program was:" >&5
23720 ++sed 's/^/| /' conftest.$ac_ext >&5
23721 ++
23722 ++  ac_header_preproc=no
23723 ++fi
23724 ++rm -f conftest.err conftest.$ac_ext
23725 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23726 ++echo "${ECHO_T}$ac_header_preproc" >&6
23727 ++
23728 ++# So?  What about this header?
23729 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23730 ++  yes:no: )
23731 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23732 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23733 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23734 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23735 ++    ac_header_preproc=yes
23736 ++    ;;
23737 ++  no:yes:* )
23738 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23739 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23740 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23741 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23742 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23743 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23744 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23745 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23746 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23747 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23748 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23749 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23750 ++    (
23751 ++      cat <<\_ASBOX
23752 ++## ------------------------------------------ ##
23753 ++## Report this to the AC_PACKAGE_NAME lists.  ##
23754 ++## ------------------------------------------ ##
23755 ++_ASBOX
23756 ++    ) |
23757 ++      sed "s/^/$as_me: WARNING:     /" >&2
23758 ++    ;;
23759 ++esac
23760 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
23761 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23762 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
23763 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23764 + else
23765 +-  echo "$ac_err" >&5
23766 +-  echo "configure: failed program was:" >&5
23767 +-  cat conftest.$ac_ext >&5
23768 +-  rm -rf conftest*
23769 +-  eval "ac_cv_header_$ac_safe=no"
23770 ++  eval "$as_ac_Header=\$ac_header_preproc"
23771 + fi
23772 +-rm -f conftest*
23773 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23774 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23775 ++
23776 + fi
23777 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23778 +-  echo "$ac_t""yes" 1>&6
23779 +-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23780 +-  cat >> confdefs.h <<EOF
23781 +-#define $ac_tr_hdr 1
23782 +-EOF
23783 +- 
23784 +-else
23785 +-  echo "$ac_t""no" 1>&6
23786 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
23787 ++  cat >>confdefs.h <<_ACEOF
23788 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23789 ++_ACEOF
23790 ++
23791 + fi
23792 ++
23793 + done
23794
23795 + fi
23796
23797 + # Solaris requires -lintl if you want strerror (which calls dgettext)
23798 + # to return localized messages.
23799 +-echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
23800 +-echo "configure:8421: checking for dgettext in -lintl" >&5
23801 +-ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
23802 +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
23803 +-  echo $ac_n "(cached) $ac_c" 1>&6
23804 ++
23805 ++echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23806 ++echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
23807 ++if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23808 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23809 + else
23810 +-  ac_save_LIBS="$LIBS"
23811 ++  ac_check_lib_save_LIBS=$LIBS
23812 + LIBS="-lintl  $LIBS"
23813 +-cat > conftest.$ac_ext <<EOF
23814 +-#line 8429 "configure"
23815 +-#include "confdefs.h"
23816 +-/* Override any gcc2 internal prototype to avoid an error.  */
23817 +-/* We use char because int might match the return type of a gcc2
23818 +-    builtin and then its argument prototype would still apply.  */
23819 +-char dgettext();
23820 +-
23821 +-int main() {
23822 +-dgettext()
23823 +-; return 0; }
23824 +-EOF
23825 +-if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23826 +-  rm -rf conftest*
23827 +-  eval "ac_cv_lib_$ac_lib_var=yes"
23828 +-else
23829 +-  echo "configure: failed program was:" >&5
23830 +-  cat conftest.$ac_ext >&5
23831 +-  rm -rf conftest*
23832 +-  eval "ac_cv_lib_$ac_lib_var=no"
23833 +-fi
23834 +-rm -f conftest*
23835 +-LIBS="$ac_save_LIBS"
23836 ++cat >conftest.$ac_ext <<_ACEOF
23837 ++/* confdefs.h.  */
23838 ++_ACEOF
23839 ++cat confdefs.h >>conftest.$ac_ext
23840 ++cat >>conftest.$ac_ext <<_ACEOF
23841 ++/* end confdefs.h.  */
23842
23843 +-fi
23844 +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23845 +-  echo "$ac_t""yes" 1>&6
23846 +-    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
23847 +-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
23848 +-  cat >> confdefs.h <<EOF
23849 +-#define $ac_tr_lib 1
23850 +-EOF
23851 ++/* Override any gcc2 internal prototype to avoid an error.  */
23852 ++#ifdef __cplusplus
23853 ++extern "C"
23854 ++#endif
23855 ++/* We use char because int might match the return type of a gcc2
23856 ++   builtin and then its argument prototype would still apply.  */
23857 ++char dgettext ();
23858 ++int
23859 ++main ()
23860 ++{
23861 ++dgettext ();
23862 ++  ;
23863 ++  return 0;
23864 ++}
23865 ++_ACEOF
23866 ++rm -f conftest.$ac_objext conftest$ac_exeext
23867 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23868 ++  (eval $ac_link) 2>conftest.er1
23869 ++  ac_status=$?
23870 ++  grep -v '^ *+' conftest.er1 >conftest.err
23871 ++  rm -f conftest.er1
23872 ++  cat conftest.err >&5
23873 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 ++  (exit $ac_status); } &&
23875 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23876 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 ++  (eval $ac_try) 2>&5
23878 ++  ac_status=$?
23879 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 ++  (exit $ac_status); }; } &&
23881 ++       { ac_try='test -s conftest$ac_exeext'
23882 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 ++  (eval $ac_try) 2>&5
23884 ++  ac_status=$?
23885 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 ++  (exit $ac_status); }; }; then
23887 ++  ac_cv_lib_intl_dgettext=yes
23888 ++else
23889 ++  echo "$as_me: failed program was:" >&5
23890 ++sed 's/^/| /' conftest.$ac_ext >&5
23891 ++
23892 ++ac_cv_lib_intl_dgettext=no
23893 ++fi
23894 ++rm -f conftest.err conftest.$ac_objext \
23895 ++      conftest$ac_exeext conftest.$ac_ext
23896 ++LIBS=$ac_check_lib_save_LIBS
23897 ++fi
23898 ++echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23899 ++echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
23900 ++if test $ac_cv_lib_intl_dgettext = yes; then
23901 ++  cat >>confdefs.h <<_ACEOF
23902 ++#define HAVE_LIBINTL 1
23903 ++_ACEOF
23904
23905 +   LIBS="-lintl $LIBS"
23906
23907 +-else
23908 +-  echo "$ac_t""no" 1>&6
23909 + fi
23910
23911
23912 +-echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
23913 +-echo "configure:8469: checking whether localtime caches TZ" >&5
23914 +-if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
23915 +-  echo $ac_n "(cached) $ac_c" 1>&6
23916 ++echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23917 ++echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
23918 ++if test "${emacs_cv_localtime_cache+set}" = set; then
23919 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
23920 + else
23921 +   if test x$ac_cv_func_tzset = xyes; then
23922 + if test "$cross_compiling" = yes; then
23923 +   # If we have tzset, assume the worst when cross-compiling.
23924 + emacs_cv_localtime_cache=yes
23925 + else
23926 +-  cat > conftest.$ac_ext <<EOF
23927 +-#line 8479 "configure"
23928 +-#include "confdefs.h"
23929 ++  cat >conftest.$ac_ext <<_ACEOF
23930 ++/* confdefs.h.  */
23931 ++_ACEOF
23932 ++cat confdefs.h >>conftest.$ac_ext
23933 ++cat >>conftest.$ac_ext <<_ACEOF
23934 ++/* end confdefs.h.  */
23935 + #include <time.h>
23936 + extern char **environ;
23937 + unset_TZ ()
23938 +@@ -8506,97 +16253,157 @@
23939 +     exit (1);
23940 +   exit (0);
23941 + }
23942 +-EOF
23943 +-if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23944 +-then
23945 ++_ACEOF
23946 ++rm -f conftest$ac_exeext
23947 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23948 ++  (eval $ac_link) 2>&5
23949 ++  ac_status=$?
23950 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23952 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 ++  (eval $ac_try) 2>&5
23954 ++  ac_status=$?
23955 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 ++  (exit $ac_status); }; }; then
23957 +   emacs_cv_localtime_cache=no
23958 + else
23959 +-  echo "configure: failed program was:" >&5
23960 +-  cat conftest.$ac_ext >&5
23961 +-  rm -fr conftest*
23962 +-  emacs_cv_localtime_cache=yes
23963 ++  echo "$as_me: program exited with status $ac_status" >&5
23964 ++echo "$as_me: failed program was:" >&5
23965 ++sed 's/^/| /' conftest.$ac_ext >&5
23966 ++
23967 ++( exit $ac_status )
23968 ++emacs_cv_localtime_cache=yes
23969 + fi
23970 +-rm -fr conftest*
23971 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23972 + fi
23973 +-
23974 + else
23975 +       # If we lack tzset, report that localtime does not cache TZ,
23976 +       # since we can't invalidate the cache if we don't have tzset.
23977 +       emacs_cv_localtime_cache=no
23978 + fi
23979 + fi
23980 +-echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
23981 ++echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23982 ++echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
23983 + if test $emacs_cv_localtime_cache = yes; then
23984 +-  cat >> confdefs.h <<\EOF
23985 ++  cat >>confdefs.h <<\_ACEOF
23986 + #define LOCALTIME_CACHE 1
23987 +-EOF
23988 ++_ACEOF
23989
23990 + fi
23991
23992 + if test "x$HAVE_TIMEVAL" = xyes; then
23993 +-  for ac_func in gettimeofday
23994 ++
23995 ++for ac_func in gettimeofday
23996 + do
23997 +-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23998 +-echo "configure:8541: checking for $ac_func" >&5
23999 +-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
24000 +-  echo $ac_n "(cached) $ac_c" 1>&6
24001 +-else
24002 +-  cat > conftest.$ac_ext <<EOF
24003 +-#line 8546 "configure"
24004 +-#include "confdefs.h"
24005 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24006 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
24007 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24008 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
24009 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24010 ++else
24011 ++  cat >conftest.$ac_ext <<_ACEOF
24012 ++/* confdefs.h.  */
24013 ++_ACEOF
24014 ++cat confdefs.h >>conftest.$ac_ext
24015 ++cat >>conftest.$ac_ext <<_ACEOF
24016 ++/* end confdefs.h.  */
24017 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24018 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24019 ++#define $ac_func innocuous_$ac_func
24020 ++
24021 + /* System header to define __stub macros and hopefully few prototypes,
24022 +-    which can conflict with char $ac_func(); below.  */
24023 +-#include <assert.h>
24024 +-/* Override any gcc2 internal prototype to avoid an error.  */
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 ++    which can conflict with char $ac_func (); below.
24029 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030 ++    <limits.h> exists even on freestanding compilers.  */
24031
24032 +-int main() {
24033 ++#ifdef __STDC__
24034 ++# include <limits.h>
24035 ++#else
24036 ++# include <assert.h>
24037 ++#endif
24038
24039 ++#undef $ac_func
24040 ++
24041 ++/* Override any gcc2 internal prototype to avoid an error.  */
24042 ++#ifdef __cplusplus
24043 ++extern "C"
24044 ++{
24045 ++#endif
24046 ++/* We use char because int might match the return type of a gcc2
24047 ++   builtin and then its argument prototype would still apply.  */
24048 ++char $ac_func ();
24049 + /* The GNU C library defines this for functions which it implements
24050 +     to always fail with ENOSYS.  Some functions are actually named
24051 +     something starting with __ and the normal name is an alias.  */
24052 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24053 + choke me
24054 + #else
24055 +-$ac_func();
24056 ++char (*f) () = $ac_func;
24057 ++#endif
24058 ++#ifdef __cplusplus
24059 ++}
24060 + #endif
24061
24062 +-; return 0; }
24063 +-EOF
24064 +-if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24065 +-  rm -rf conftest*
24066 +-  eval "ac_cv_func_$ac_func=yes"
24067 +-else
24068 +-  echo "configure: failed program was:" >&5
24069 +-  cat conftest.$ac_ext >&5
24070 +-  rm -rf conftest*
24071 +-  eval "ac_cv_func_$ac_func=no"
24072 +-fi
24073 +-rm -f conftest*
24074 +-fi
24075 ++int
24076 ++main ()
24077 ++{
24078 ++return f != $ac_func;
24079 ++  ;
24080 ++  return 0;
24081 ++}
24082 ++_ACEOF
24083 ++rm -f conftest.$ac_objext conftest$ac_exeext
24084 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24085 ++  (eval $ac_link) 2>conftest.er1
24086 ++  ac_status=$?
24087 ++  grep -v '^ *+' conftest.er1 >conftest.err
24088 ++  rm -f conftest.er1
24089 ++  cat conftest.err >&5
24090 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 ++  (exit $ac_status); } &&
24092 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24093 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24094 ++  (eval $ac_try) 2>&5
24095 ++  ac_status=$?
24096 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 ++  (exit $ac_status); }; } &&
24098 ++       { ac_try='test -s conftest$ac_exeext'
24099 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 ++  (eval $ac_try) 2>&5
24101 ++  ac_status=$?
24102 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 ++  (exit $ac_status); }; }; then
24104 ++  eval "$as_ac_var=yes"
24105 ++else
24106 ++  echo "$as_me: failed program was:" >&5
24107 ++sed 's/^/| /' conftest.$ac_ext >&5
24108 ++
24109 ++eval "$as_ac_var=no"
24110 ++fi
24111 ++rm -f conftest.err conftest.$ac_objext \
24112 ++      conftest$ac_exeext conftest.$ac_ext
24113 ++fi
24114 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24115 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24116 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
24117 ++  cat >>confdefs.h <<_ACEOF
24118 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24119 ++_ACEOF
24120
24121 +-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24122 +-  echo "$ac_t""yes" 1>&6
24123 +-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24124 +-  cat >> confdefs.h <<EOF
24125 +-#define $ac_tr_func 1
24126 +-EOF
24127 +- 
24128 +-else
24129 +-  echo "$ac_t""no" 1>&6
24130 + fi
24131 + done
24132
24133 +-  echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
24134 +-echo "configure:8594: checking whether gettimeofday can accept two arguments" >&5
24135 +-if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
24136 +-  echo $ac_n "(cached) $ac_c" 1>&6
24137 +-else
24138 +-  cat > conftest.$ac_ext <<EOF
24139 +-#line 8599 "configure"
24140 +-#include "confdefs.h"
24141 ++  echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24142 ++echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
24143 ++if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24144 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24145 ++else
24146 ++  cat >conftest.$ac_ext <<_ACEOF
24147 ++/* confdefs.h.  */
24148 ++_ACEOF
24149 ++cat confdefs.h >>conftest.$ac_ext
24150 ++cat >>conftest.$ac_ext <<_ACEOF
24151 ++/* end confdefs.h.  */
24152
24153 + #ifdef TIME_WITH_SYS_TIME
24154 + #include <sys/time.h>
24155 +@@ -8608,54 +16415,106 @@
24156 + #include <time.h>
24157 + #endif
24158 + #endif
24159 +-int main() {
24160 ++int
24161 ++main ()
24162 ++{
24163 + struct timeval time;
24164 +      gettimeofday (&time, 0);
24165 +-; return 0; }
24166 +-EOF
24167 +-if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24168 +-  rm -rf conftest*
24169 ++  ;
24170 ++  return 0;
24171 ++}
24172 ++_ACEOF
24173 ++rm -f conftest.$ac_objext
24174 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24175 ++  (eval $ac_compile) 2>conftest.er1
24176 ++  ac_status=$?
24177 ++  grep -v '^ *+' conftest.er1 >conftest.err
24178 ++  rm -f conftest.er1
24179 ++  cat conftest.err >&5
24180 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 ++  (exit $ac_status); } &&
24182 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24183 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 ++  (eval $ac_try) 2>&5
24185 ++  ac_status=$?
24186 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 ++  (exit $ac_status); }; } &&
24188 ++       { ac_try='test -s conftest.$ac_objext'
24189 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 ++  (eval $ac_try) 2>&5
24191 ++  ac_status=$?
24192 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 ++  (exit $ac_status); }; }; then
24194 +   emacs_cv_gettimeofday_two_arguments=yes
24195 + else
24196 +-  echo "configure: failed program was:" >&5
24197 +-  cat conftest.$ac_ext >&5
24198 +-  rm -rf conftest*
24199 +-  emacs_cv_gettimeofday_two_arguments=no
24200 ++  echo "$as_me: failed program was:" >&5
24201 ++sed 's/^/| /' conftest.$ac_ext >&5
24202 ++
24203 ++emacs_cv_gettimeofday_two_arguments=no
24204 + fi
24205 +-rm -f conftest*
24206 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24207 + fi
24208 +-
24209 +-echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
24210 ++echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24211 ++echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
24212 +   if test $emacs_cv_gettimeofday_two_arguments = no; then
24213 +-    cat >> confdefs.h <<\EOF
24214 ++    cat >>confdefs.h <<\_ACEOF
24215 + #define GETTIMEOFDAY_ONE_ARGUMENT 1
24216 +-EOF
24217 ++_ACEOF
24218
24219 +   fi
24220 + fi
24221
24222 + if test "$ac_cv_func_gettimeofday" = yes; then
24223 +-  echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
24224 +-echo "configure:8640: checking for struct timezone" >&5
24225 +-if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
24226 +-  echo $ac_n "(cached) $ac_c" 1>&6
24227 +-else
24228 +-  cat > conftest.$ac_ext <<EOF
24229 +-#line 8645 "configure"
24230 +-#include "confdefs.h"
24231 ++  echo "$as_me:$LINENO: checking for struct timezone" >&5
24232 ++echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
24233 ++if test "${emacs_cv_struct_timezone+set}" = set; then
24234 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24235 ++else
24236 ++  cat >conftest.$ac_ext <<_ACEOF
24237 ++/* confdefs.h.  */
24238 ++_ACEOF
24239 ++cat confdefs.h >>conftest.$ac_ext
24240 ++cat >>conftest.$ac_ext <<_ACEOF
24241 ++/* end confdefs.h.  */
24242 + #include <sys/time.h>
24243 +-int main() {
24244 ++int
24245 ++main ()
24246 ++{
24247 + struct timezone tz;
24248 +-; return 0; }
24249 +-EOF
24250 +-if { (eval echo configure:8652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24251 +-  rm -rf conftest*
24252 ++  ;
24253 ++  return 0;
24254 ++}
24255 ++_ACEOF
24256 ++rm -f conftest.$ac_objext
24257 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 ++  (eval $ac_compile) 2>conftest.er1
24259 ++  ac_status=$?
24260 ++  grep -v '^ *+' conftest.er1 >conftest.err
24261 ++  rm -f conftest.er1
24262 ++  cat conftest.err >&5
24263 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 ++  (exit $ac_status); } &&
24265 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24266 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267 ++  (eval $ac_try) 2>&5
24268 ++  ac_status=$?
24269 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 ++  (exit $ac_status); }; } &&
24271 ++       { ac_try='test -s conftest.$ac_objext'
24272 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273 ++  (eval $ac_try) 2>&5
24274 ++  ac_status=$?
24275 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 ++  (exit $ac_status); }; }; then
24277 +               if test "$cross_compiling" = yes; then
24278 +   emacs_cv_struct_timezone=yes
24279 + else
24280 +-  cat > conftest.$ac_ext <<EOF
24281 +-#line 8658 "configure"
24282 +-#include "confdefs.h"
24283 ++  cat >conftest.$ac_ext <<_ACEOF
24284 ++/* confdefs.h.  */
24285 ++_ACEOF
24286 ++cat confdefs.h >>conftest.$ac_ext
24287 ++cat >>conftest.$ac_ext <<_ACEOF
24288 ++/* end confdefs.h.  */
24289
24290 + #ifdef TIME_WITH_SYS_TIME
24291 + #include <sys/time.h>
24292 +@@ -8672,327 +16531,875 @@
24293 +   struct timezone dummy;
24294 +   exit (gettimeofday (&time, &dummy));
24295 + }
24296 +-EOF
24297 +-if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
24298 +-then
24299 ++_ACEOF
24300 ++rm -f conftest$ac_exeext
24301 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24302 ++  (eval $ac_link) 2>&5
24303 ++  ac_status=$?
24304 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24306 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 ++  (eval $ac_try) 2>&5
24308 ++  ac_status=$?
24309 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 ++  (exit $ac_status); }; }; then
24311 +   emacs_cv_struct_timezone=yes
24312 + else
24313 +-  echo "configure: failed program was:" >&5
24314 +-  cat conftest.$ac_ext >&5
24315 +-  rm -fr conftest*
24316 +-  emacs_cv_struct_timezone=no
24317 ++  echo "$as_me: program exited with status $ac_status" >&5
24318 ++echo "$as_me: failed program was:" >&5
24319 ++sed 's/^/| /' conftest.$ac_ext >&5
24320 ++
24321 ++( exit $ac_status )
24322 ++emacs_cv_struct_timezone=no
24323 + fi
24324 +-rm -fr conftest*
24325 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24326 + fi
24327 +-
24328 + else
24329 +-  echo "configure: failed program was:" >&5
24330 +-  cat conftest.$ac_ext >&5
24331 +-  rm -rf conftest*
24332 +-  emacs_cv_struct_timezone=no
24333 ++  echo "$as_me: failed program was:" >&5
24334 ++sed 's/^/| /' conftest.$ac_ext >&5
24335 ++
24336 ++emacs_cv_struct_timezone=no
24337 + fi
24338 +-rm -f conftest*
24339 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24340 + fi
24341 +-
24342 +-echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
24343 ++echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
24344 ++echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
24345 + fi
24346
24347 + ok_so_far=yes
24348 +-echo $ac_n "checking for socket""... $ac_c" 1>&6
24349 +-echo "configure:8703: checking for socket" >&5
24350 +-if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
24351 +-  echo $ac_n "(cached) $ac_c" 1>&6
24352 +-else
24353 +-  cat > conftest.$ac_ext <<EOF
24354 +-#line 8708 "configure"
24355 +-#include "confdefs.h"
24356 ++echo "$as_me:$LINENO: checking for socket" >&5
24357 ++echo $ECHO_N "checking for socket... $ECHO_C" >&6
24358 ++if test "${ac_cv_func_socket+set}" = set; then
24359 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24360 ++else
24361 ++  cat >conftest.$ac_ext <<_ACEOF
24362 ++/* confdefs.h.  */
24363 ++_ACEOF
24364 ++cat confdefs.h >>conftest.$ac_ext
24365 ++cat >>conftest.$ac_ext <<_ACEOF
24366 ++/* end confdefs.h.  */
24367 ++/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24368 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24369 ++#define socket innocuous_socket
24370 ++
24371 + /* System header to define __stub macros and hopefully few prototypes,
24372 +-    which can conflict with char socket(); below.  */
24373 +-#include <assert.h>
24374 +-/* Override any gcc2 internal prototype to avoid an error.  */
24375 +-/* We use char because int might match the return type of a gcc2
24376 +-    builtin and then its argument prototype would still apply.  */
24377 +-char socket();
24378 ++    which can conflict with char socket (); below.
24379 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24380 ++    <limits.h> exists even on freestanding compilers.  */
24381 ++
24382 ++#ifdef __STDC__
24383 ++# include <limits.h>
24384 ++#else
24385 ++# include <assert.h>
24386 ++#endif
24387
24388 +-int main() {
24389 ++#undef socket
24390
24391 ++/* Override any gcc2 internal prototype to avoid an error.  */
24392 ++#ifdef __cplusplus
24393 ++extern "C"
24394 ++{
24395 ++#endif
24396 ++/* We use char because int might match the return type of a gcc2
24397 ++   builtin and then its argument prototype would still apply.  */
24398 ++char socket ();
24399 + /* The GNU C library defines this for functions which it implements
24400 +     to always fail with ENOSYS.  Some functions are actually named
24401 +     something starting with __ and the normal name is an alias.  */
24402 + #if defined (__stub_socket) || defined (__stub___socket)
24403 + choke me
24404 + #else
24405 +-socket();
24406 ++char (*f) () = socket;
24407 ++#endif
24408 ++#ifdef __cplusplus
24409 ++}
24410 + #endif
24411
24412 +-; return 0; }
24413 +-EOF
24414 +-if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24415 +-  rm -rf conftest*
24416 +-  eval "ac_cv_func_socket=yes"
24417 +-else
24418 +-  echo "configure: failed program was:" >&5
24419 +-  cat conftest.$ac_ext >&5
24420 +-  rm -rf conftest*
24421 +-  eval "ac_cv_func_socket=no"
24422 +-fi
24423 +-rm -f conftest*
24424 +-fi
24425 +-
24426 +-if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
24427 +-  echo "$ac_t""yes" 1>&6
24428 ++int
24429 ++main ()
24430 ++{
24431 ++return f != socket;
24432 ++  ;
24433 ++  return 0;
24434 ++}
24435 ++_ACEOF
24436 ++rm -f conftest.$ac_objext conftest$ac_exeext
24437 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24438 ++  (eval $ac_link) 2>conftest.er1
24439 ++  ac_status=$?
24440 ++  grep -v '^ *+' conftest.er1 >conftest.err
24441 ++  rm -f conftest.er1
24442 ++  cat conftest.err >&5
24443 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 ++  (exit $ac_status); } &&
24445 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24446 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 ++  (eval $ac_try) 2>&5
24448 ++  ac_status=$?
24449 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 ++  (exit $ac_status); }; } &&
24451 ++       { ac_try='test -s conftest$ac_exeext'
24452 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 ++  (eval $ac_try) 2>&5
24454 ++  ac_status=$?
24455 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 ++  (exit $ac_status); }; }; then
24457 ++  ac_cv_func_socket=yes
24458 ++else
24459 ++  echo "$as_me: failed program was:" >&5
24460 ++sed 's/^/| /' conftest.$ac_ext >&5
24461 ++
24462 ++ac_cv_func_socket=no
24463 ++fi
24464 ++rm -f conftest.err conftest.$ac_objext \
24465 ++      conftest$ac_exeext conftest.$ac_ext
24466 ++fi
24467 ++echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24468 ++echo "${ECHO_T}$ac_cv_func_socket" >&6
24469 ++if test $ac_cv_func_socket = yes; then
24470 +   :
24471 + else
24472 +-  echo "$ac_t""no" 1>&6
24473 +-ok_so_far=no
24474 ++  ok_so_far=no
24475 + fi
24476
24477 + if test $ok_so_far = yes; then
24478 +-  ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
24479 +-echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
24480 +-echo "configure:8754: checking for netinet/in.h" >&5
24481 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24482 +-  echo $ac_n "(cached) $ac_c" 1>&6
24483 +-else
24484 +-  cat > conftest.$ac_ext <<EOF
24485 +-#line 8759 "configure"
24486 +-#include "confdefs.h"
24487 ++  if test "${ac_cv_header_netinet_in_h+set}" = set; then
24488 ++  echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24489 ++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
24490 ++if test "${ac_cv_header_netinet_in_h+set}" = set; then
24491 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24492 ++fi
24493 ++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24494 ++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
24495 ++else
24496 ++  # Is the header compilable?
24497 ++echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24498 ++echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
24499 ++cat >conftest.$ac_ext <<_ACEOF
24500 ++/* confdefs.h.  */
24501 ++_ACEOF
24502 ++cat confdefs.h >>conftest.$ac_ext
24503 ++cat >>conftest.$ac_ext <<_ACEOF
24504 ++/* end confdefs.h.  */
24505 ++$ac_includes_default
24506 ++#include <netinet/in.h>
24507 ++_ACEOF
24508 ++rm -f conftest.$ac_objext
24509 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510 ++  (eval $ac_compile) 2>conftest.er1
24511 ++  ac_status=$?
24512 ++  grep -v '^ *+' conftest.er1 >conftest.err
24513 ++  rm -f conftest.er1
24514 ++  cat conftest.err >&5
24515 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 ++  (exit $ac_status); } &&
24517 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24518 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 ++  (eval $ac_try) 2>&5
24520 ++  ac_status=$?
24521 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 ++  (exit $ac_status); }; } &&
24523 ++       { ac_try='test -s conftest.$ac_objext'
24524 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 ++  (eval $ac_try) 2>&5
24526 ++  ac_status=$?
24527 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 ++  (exit $ac_status); }; }; then
24529 ++  ac_header_compiler=yes
24530 ++else
24531 ++  echo "$as_me: failed program was:" >&5
24532 ++sed 's/^/| /' conftest.$ac_ext >&5
24533 ++
24534 ++ac_header_compiler=no
24535 ++fi
24536 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24537 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24538 ++echo "${ECHO_T}$ac_header_compiler" >&6
24539 ++
24540 ++# Is the header present?
24541 ++echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24542 ++echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
24543 ++cat >conftest.$ac_ext <<_ACEOF
24544 ++/* confdefs.h.  */
24545 ++_ACEOF
24546 ++cat confdefs.h >>conftest.$ac_ext
24547 ++cat >>conftest.$ac_ext <<_ACEOF
24548 ++/* end confdefs.h.  */
24549 + #include <netinet/in.h>
24550 +-EOF
24551 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24552 +-{ (eval echo configure:8764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24553 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24554 +-if test -z "$ac_err"; then
24555 +-  rm -rf conftest*
24556 +-  eval "ac_cv_header_$ac_safe=yes"
24557 +-else
24558 +-  echo "$ac_err" >&5
24559 +-  echo "configure: failed program was:" >&5
24560 +-  cat conftest.$ac_ext >&5
24561 +-  rm -rf conftest*
24562 +-  eval "ac_cv_header_$ac_safe=no"
24563 ++_ACEOF
24564 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24565 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24566 ++  ac_status=$?
24567 ++  grep -v '^ *+' conftest.er1 >conftest.err
24568 ++  rm -f conftest.er1
24569 ++  cat conftest.err >&5
24570 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 ++  (exit $ac_status); } >/dev/null; then
24572 ++  if test -s conftest.err; then
24573 ++    ac_cpp_err=$ac_c_preproc_warn_flag
24574 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24575 ++  else
24576 ++    ac_cpp_err=
24577 ++  fi
24578 ++else
24579 ++  ac_cpp_err=yes
24580 + fi
24581 +-rm -f conftest*
24582 ++if test -z "$ac_cpp_err"; then
24583 ++  ac_header_preproc=yes
24584 ++else
24585 ++  echo "$as_me: failed program was:" >&5
24586 ++sed 's/^/| /' conftest.$ac_ext >&5
24587 ++
24588 ++  ac_header_preproc=no
24589 ++fi
24590 ++rm -f conftest.err conftest.$ac_ext
24591 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24592 ++echo "${ECHO_T}$ac_header_preproc" >&6
24593 ++
24594 ++# So?  What about this header?
24595 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24596 ++  yes:no: )
24597 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24598 ++echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24599 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24600 ++echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24601 ++    ac_header_preproc=yes
24602 ++    ;;
24603 ++  no:yes:* )
24604 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24605 ++echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24606 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
24607 ++echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
24608 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24609 ++echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24610 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
24611 ++echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24612 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24613 ++echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24614 ++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24615 ++echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24616 ++    (
24617 ++      cat <<\_ASBOX
24618 ++## ------------------------------------------ ##
24619 ++## Report this to the AC_PACKAGE_NAME lists.  ##
24620 ++## ------------------------------------------ ##
24621 ++_ASBOX
24622 ++    ) |
24623 ++      sed "s/^/$as_me: WARNING:     /" >&2
24624 ++    ;;
24625 ++esac
24626 ++echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24627 ++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
24628 ++if test "${ac_cv_header_netinet_in_h+set}" = set; then
24629 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24630 ++else
24631 ++  ac_cv_header_netinet_in_h=$ac_header_preproc
24632 + fi
24633 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24634 +-  echo "$ac_t""yes" 1>&6
24635 ++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24636 ++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
24637 ++
24638 ++fi
24639 ++if test $ac_cv_header_netinet_in_h = yes; then
24640 +   :
24641 + else
24642 +-  echo "$ac_t""no" 1>&6
24643 +-ok_so_far=no
24644 ++  ok_so_far=no
24645 + fi
24646
24647 ++
24648 + fi
24649 + if test $ok_so_far = yes; then
24650 +-  ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
24651 +-echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
24652 +-echo "configure:8790: checking for arpa/inet.h" >&5
24653 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24654 +-  echo $ac_n "(cached) $ac_c" 1>&6
24655 +-else
24656 +-  cat > conftest.$ac_ext <<EOF
24657 +-#line 8795 "configure"
24658 +-#include "confdefs.h"
24659 ++  if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24660 ++  echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24661 ++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
24662 ++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24663 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24664 ++fi
24665 ++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24666 ++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
24667 ++else
24668 ++  # Is the header compilable?
24669 ++echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24670 ++echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
24671 ++cat >conftest.$ac_ext <<_ACEOF
24672 ++/* confdefs.h.  */
24673 ++_ACEOF
24674 ++cat confdefs.h >>conftest.$ac_ext
24675 ++cat >>conftest.$ac_ext <<_ACEOF
24676 ++/* end confdefs.h.  */
24677 ++$ac_includes_default
24678 ++#include <arpa/inet.h>
24679 ++_ACEOF
24680 ++rm -f conftest.$ac_objext
24681 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24682 ++  (eval $ac_compile) 2>conftest.er1
24683 ++  ac_status=$?
24684 ++  grep -v '^ *+' conftest.er1 >conftest.err
24685 ++  rm -f conftest.er1
24686 ++  cat conftest.err >&5
24687 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 ++  (exit $ac_status); } &&
24689 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24690 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691 ++  (eval $ac_try) 2>&5
24692 ++  ac_status=$?
24693 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 ++  (exit $ac_status); }; } &&
24695 ++       { ac_try='test -s conftest.$ac_objext'
24696 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24697 ++  (eval $ac_try) 2>&5
24698 ++  ac_status=$?
24699 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700 ++  (exit $ac_status); }; }; then
24701 ++  ac_header_compiler=yes
24702 ++else
24703 ++  echo "$as_me: failed program was:" >&5
24704 ++sed 's/^/| /' conftest.$ac_ext >&5
24705 ++
24706 ++ac_header_compiler=no
24707 ++fi
24708 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24709 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24710 ++echo "${ECHO_T}$ac_header_compiler" >&6
24711 ++
24712 ++# Is the header present?
24713 ++echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24714 ++echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
24715 ++cat >conftest.$ac_ext <<_ACEOF
24716 ++/* confdefs.h.  */
24717 ++_ACEOF
24718 ++cat confdefs.h >>conftest.$ac_ext
24719 ++cat >>conftest.$ac_ext <<_ACEOF
24720 ++/* end confdefs.h.  */
24721 + #include <arpa/inet.h>
24722 +-EOF
24723 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24724 +-{ (eval echo configure:8800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24725 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24726 +-if test -z "$ac_err"; then
24727 +-  rm -rf conftest*
24728 +-  eval "ac_cv_header_$ac_safe=yes"
24729 +-else
24730 +-  echo "$ac_err" >&5
24731 +-  echo "configure: failed program was:" >&5
24732 +-  cat conftest.$ac_ext >&5
24733 +-  rm -rf conftest*
24734 +-  eval "ac_cv_header_$ac_safe=no"
24735 ++_ACEOF
24736 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24737 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24738 ++  ac_status=$?
24739 ++  grep -v '^ *+' conftest.er1 >conftest.err
24740 ++  rm -f conftest.er1
24741 ++  cat conftest.err >&5
24742 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 ++  (exit $ac_status); } >/dev/null; then
24744 ++  if test -s conftest.err; then
24745 ++    ac_cpp_err=$ac_c_preproc_warn_flag
24746 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24747 ++  else
24748 ++    ac_cpp_err=
24749 ++  fi
24750 ++else
24751 ++  ac_cpp_err=yes
24752 + fi
24753 +-rm -f conftest*
24754 ++if test -z "$ac_cpp_err"; then
24755 ++  ac_header_preproc=yes
24756 ++else
24757 ++  echo "$as_me: failed program was:" >&5
24758 ++sed 's/^/| /' conftest.$ac_ext >&5
24759 ++
24760 ++  ac_header_preproc=no
24761 ++fi
24762 ++rm -f conftest.err conftest.$ac_ext
24763 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 ++echo "${ECHO_T}$ac_header_preproc" >&6
24765 ++
24766 ++# So?  What about this header?
24767 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24768 ++  yes:no: )
24769 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24770 ++echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24772 ++echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24773 ++    ac_header_preproc=yes
24774 ++    ;;
24775 ++  no:yes:* )
24776 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24777 ++echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24778 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
24779 ++echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
24780 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24781 ++echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24782 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
24783 ++echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24784 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24785 ++echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24786 ++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24787 ++echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24788 ++    (
24789 ++      cat <<\_ASBOX
24790 ++## ------------------------------------------ ##
24791 ++## Report this to the AC_PACKAGE_NAME lists.  ##
24792 ++## ------------------------------------------ ##
24793 ++_ASBOX
24794 ++    ) |
24795 ++      sed "s/^/$as_me: WARNING:     /" >&2
24796 ++    ;;
24797 ++esac
24798 ++echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24799 ++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
24800 ++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24801 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24802 ++else
24803 ++  ac_cv_header_arpa_inet_h=$ac_header_preproc
24804 ++fi
24805 ++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24806 ++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
24807 ++
24808 + fi
24809 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24810 +-  echo "$ac_t""yes" 1>&6
24811 ++if test $ac_cv_header_arpa_inet_h = yes; then
24812 +   :
24813 + else
24814 +-  echo "$ac_t""no" 1>&6
24815 +-ok_so_far=no
24816 ++  ok_so_far=no
24817 + fi
24818
24819 ++
24820 + fi
24821 + if test $ok_so_far = yes; then
24822 +-  cat >> confdefs.h <<\EOF
24823 ++  cat >>confdefs.h <<\_ACEOF
24824 + #define HAVE_INET_SOCKETS 1
24825 +-EOF
24826 ++_ACEOF
24827
24828 + fi
24829
24830 + if test -f /usr/lpp/X11/bin/smt.exp; then
24831 +-  cat >> confdefs.h <<\EOF
24832 ++  cat >>confdefs.h <<\_ACEOF
24833 + #define HAVE_AIX_SMT_EXP 1
24834 +-EOF
24835 ++_ACEOF
24836
24837 + fi
24838
24839 +-echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
24840 +-echo "configure:8838: checking whether system supports dynamic ptys" >&5
24841 ++echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24842 ++echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
24843 + if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24844 +-  echo "$ac_t""yes" 1>&6
24845 +-  cat >> confdefs.h <<\EOF
24846 ++  echo "$as_me:$LINENO: result: yes" >&5
24847 ++echo "${ECHO_T}yes" >&6
24848 ++  cat >>confdefs.h <<\_ACEOF
24849 + #define HAVE_DEV_PTMX 1
24850 +-EOF
24851 ++_ACEOF
24852
24853 + else
24854 +-  echo "$ac_t""no" 1>&6
24855 ++  echo "$as_me:$LINENO: result: no" >&5
24856 ++echo "${ECHO_T}no" >&6
24857 + fi
24858
24859 +-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
24860 +-echo "configure:8850: checking for pid_t" >&5
24861 +-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
24862 +-  echo $ac_n "(cached) $ac_c" 1>&6
24863 ++echo "$as_me:$LINENO: checking for pid_t" >&5
24864 ++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24865 ++if test "${ac_cv_type_pid_t+set}" = set; then
24866 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24867 + else
24868 +-  cat > conftest.$ac_ext <<EOF
24869 +-#line 8855 "configure"
24870 +-#include "confdefs.h"
24871 +-#include <sys/types.h>
24872 +-#if STDC_HEADERS
24873 +-#include <stdlib.h>
24874 +-#include <stddef.h>
24875 +-#endif
24876 +-EOF
24877 +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24878 +-  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
24879 +-  rm -rf conftest*
24880 ++  cat >conftest.$ac_ext <<_ACEOF
24881 ++/* confdefs.h.  */
24882 ++_ACEOF
24883 ++cat confdefs.h >>conftest.$ac_ext
24884 ++cat >>conftest.$ac_ext <<_ACEOF
24885 ++/* end confdefs.h.  */
24886 ++$ac_includes_default
24887 ++int
24888 ++main ()
24889 ++{
24890 ++if ((pid_t *) 0)
24891 ++  return 0;
24892 ++if (sizeof (pid_t))
24893 ++  return 0;
24894 ++  ;
24895 ++  return 0;
24896 ++}
24897 ++_ACEOF
24898 ++rm -f conftest.$ac_objext
24899 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900 ++  (eval $ac_compile) 2>conftest.er1
24901 ++  ac_status=$?
24902 ++  grep -v '^ *+' conftest.er1 >conftest.err
24903 ++  rm -f conftest.er1
24904 ++  cat conftest.err >&5
24905 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 ++  (exit $ac_status); } &&
24907 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24908 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909 ++  (eval $ac_try) 2>&5
24910 ++  ac_status=$?
24911 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 ++  (exit $ac_status); }; } &&
24913 ++       { ac_try='test -s conftest.$ac_objext'
24914 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 ++  (eval $ac_try) 2>&5
24916 ++  ac_status=$?
24917 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 ++  (exit $ac_status); }; }; then
24919 +   ac_cv_type_pid_t=yes
24920 + else
24921 +-  rm -rf conftest*
24922 +-  ac_cv_type_pid_t=no
24923 +-fi
24924 +-rm -f conftest*
24925 ++  echo "$as_me: failed program was:" >&5
24926 ++sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ++ac_cv_type_pid_t=no
24929 + fi
24930 +-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
24931 +-if test $ac_cv_type_pid_t = no; then
24932 +-  cat >> confdefs.h <<\EOF
24933 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24934 ++fi
24935 ++echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24936 ++echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24937 ++if test $ac_cv_type_pid_t = yes; then
24938 ++  :
24939 ++else
24940 ++
24941 ++cat >>confdefs.h <<_ACEOF
24942 + #define pid_t int
24943 +-EOF
24944 ++_ACEOF
24945
24946 + fi
24947
24948 +-ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
24949 +-echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
24950 +-echo "configure:8884: checking for vfork.h" >&5
24951 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
24952 +-  echo $ac_n "(cached) $ac_c" 1>&6
24953 +-else
24954 +-  cat > conftest.$ac_ext <<EOF
24955 +-#line 8889 "configure"
24956 +-#include "confdefs.h"
24957 +-#include <vfork.h>
24958 +-EOF
24959 +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24960 +-{ (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24961 +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24962 +-if test -z "$ac_err"; then
24963 +-  rm -rf conftest*
24964 +-  eval "ac_cv_header_$ac_safe=yes"
24965 +-else
24966 +-  echo "$ac_err" >&5
24967 +-  echo "configure: failed program was:" >&5
24968 +-  cat conftest.$ac_ext >&5
24969 +-  rm -rf conftest*
24970 +-  eval "ac_cv_header_$ac_safe=no"
24971 +-fi
24972 +-rm -f conftest*
24973 +-fi
24974 +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24975 +-  echo "$ac_t""yes" 1>&6
24976 +-  cat >> confdefs.h <<\EOF
24977 +-#define HAVE_VFORK_H 1
24978 +-EOF
24979
24980 ++
24981 ++for ac_header in unistd.h vfork.h
24982 ++do
24983 ++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24984 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
24985 ++  echo "$as_me:$LINENO: checking for $ac_header" >&5
24986 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24987 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
24988 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
24989 ++fi
24990 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24991 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24992 ++else
24993 ++  # Is the header compilable?
24994 ++echo "$as_me:$LINENO: checking $ac_header usability" >&5
24995 ++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24996 ++cat >conftest.$ac_ext <<_ACEOF
24997 ++/* confdefs.h.  */
24998 ++_ACEOF
24999 ++cat confdefs.h >>conftest.$ac_ext
25000 ++cat >>conftest.$ac_ext <<_ACEOF
25001 ++/* end confdefs.h.  */
25002 ++$ac_includes_default
25003 ++#include <$ac_header>
25004 ++_ACEOF
25005 ++rm -f conftest.$ac_objext
25006 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25007 ++  (eval $ac_compile) 2>conftest.er1
25008 ++  ac_status=$?
25009 ++  grep -v '^ *+' conftest.er1 >conftest.err
25010 ++  rm -f conftest.er1
25011 ++  cat conftest.err >&5
25012 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 ++  (exit $ac_status); } &&
25014 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25015 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 ++  (eval $ac_try) 2>&5
25017 ++  ac_status=$?
25018 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 ++  (exit $ac_status); }; } &&
25020 ++       { ac_try='test -s conftest.$ac_objext'
25021 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 ++  (eval $ac_try) 2>&5
25023 ++  ac_status=$?
25024 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 ++  (exit $ac_status); }; }; then
25026 ++  ac_header_compiler=yes
25027 ++else
25028 ++  echo "$as_me: failed program was:" >&5
25029 ++sed 's/^/| /' conftest.$ac_ext >&5
25030 ++
25031 ++ac_header_compiler=no
25032 ++fi
25033 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25034 ++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25035 ++echo "${ECHO_T}$ac_header_compiler" >&6
25036 ++
25037 ++# Is the header present?
25038 ++echo "$as_me:$LINENO: checking $ac_header presence" >&5
25039 ++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25040 ++cat >conftest.$ac_ext <<_ACEOF
25041 ++/* confdefs.h.  */
25042 ++_ACEOF
25043 ++cat confdefs.h >>conftest.$ac_ext
25044 ++cat >>conftest.$ac_ext <<_ACEOF
25045 ++/* end confdefs.h.  */
25046 ++#include <$ac_header>
25047 ++_ACEOF
25048 ++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25049 ++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25050 ++  ac_status=$?
25051 ++  grep -v '^ *+' conftest.er1 >conftest.err
25052 ++  rm -f conftest.er1
25053 ++  cat conftest.err >&5
25054 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 ++  (exit $ac_status); } >/dev/null; then
25056 ++  if test -s conftest.err; then
25057 ++    ac_cpp_err=$ac_c_preproc_warn_flag
25058 ++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25059 ++  else
25060 ++    ac_cpp_err=
25061 ++  fi
25062 + else
25063 +-  echo "$ac_t""no" 1>&6
25064 ++  ac_cpp_err=yes
25065 + fi
25066 ++if test -z "$ac_cpp_err"; then
25067 ++  ac_header_preproc=yes
25068 ++else
25069 ++  echo "$as_me: failed program was:" >&5
25070 ++sed 's/^/| /' conftest.$ac_ext >&5
25071
25072 +-echo $ac_n "checking for working vfork""... $ac_c" 1>&6
25073 +-echo "configure:8919: checking for working vfork" >&5
25074 +-if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
25075 +-  echo $ac_n "(cached) $ac_c" 1>&6
25076 ++  ac_header_preproc=no
25077 ++fi
25078 ++rm -f conftest.err conftest.$ac_ext
25079 ++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25080 ++echo "${ECHO_T}$ac_header_preproc" >&6
25081 ++
25082 ++# So?  What about this header?
25083 ++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25084 ++  yes:no: )
25085 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25086 ++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25087 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25088 ++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25089 ++    ac_header_preproc=yes
25090 ++    ;;
25091 ++  no:yes:* )
25092 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25093 ++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25094 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25095 ++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25096 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25097 ++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25098 ++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25099 ++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25100 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25101 ++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25102 ++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25103 ++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25104 ++    (
25105 ++      cat <<\_ASBOX
25106 ++## ------------------------------------------ ##
25107 ++## Report this to the AC_PACKAGE_NAME lists.  ##
25108 ++## ------------------------------------------ ##
25109 ++_ASBOX
25110 ++    ) |
25111 ++      sed "s/^/$as_me: WARNING:     /" >&2
25112 ++    ;;
25113 ++esac
25114 ++echo "$as_me:$LINENO: checking for $ac_header" >&5
25115 ++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25116 ++if eval "test \"\${$as_ac_Header+set}\" = set"; then
25117 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
25118 + else
25119 +-  if test "$cross_compiling" = yes; then
25120 +-  echo $ac_n "checking for vfork""... $ac_c" 1>&6
25121 +-echo "configure:8925: checking for vfork" >&5
25122 +-if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
25123 +-  echo $ac_n "(cached) $ac_c" 1>&6
25124 +-else
25125 +-  cat > conftest.$ac_ext <<EOF
25126 +-#line 8930 "configure"
25127 +-#include "confdefs.h"
25128 ++  eval "$as_ac_Header=\$ac_header_preproc"
25129 ++fi
25130 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25131 ++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25132 ++
25133 ++fi
25134 ++if test `eval echo '${'$as_ac_Header'}'` = yes; then
25135 ++  cat >>confdefs.h <<_ACEOF
25136 ++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25137 ++_ACEOF
25138 ++
25139 ++fi
25140 ++
25141 ++done
25142 ++
25143 ++
25144 ++
25145 ++for ac_func in fork vfork
25146 ++do
25147 ++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25148 ++echo "$as_me:$LINENO: checking for $ac_func" >&5
25149 ++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25150 ++if eval "test \"\${$as_ac_var+set}\" = set"; then
25151 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
25152 ++else
25153 ++  cat >conftest.$ac_ext <<_ACEOF
25154 ++/* confdefs.h.  */
25155 ++_ACEOF
25156 ++cat confdefs.h >>conftest.$ac_ext
25157 ++cat >>conftest.$ac_ext <<_ACEOF
25158 ++/* end confdefs.h.  */
25159 ++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25160 ++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25161 ++#define $ac_func innocuous_$ac_func
25162 ++
25163 + /* System header to define __stub macros and hopefully few prototypes,
25164 +-    which can conflict with char vfork(); below.  */
25165 +-#include <assert.h>
25166 +-/* Override any gcc2 internal prototype to avoid an error.  */
25167 +-/* We use char because int might match the return type of a gcc2
25168 +-    builtin and then its argument prototype would still apply.  */
25169 +-char vfork();
25170 ++    which can conflict with char $ac_func (); below.
25171 ++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25172 ++    <limits.h> exists even on freestanding compilers.  */
25173 ++
25174 ++#ifdef __STDC__
25175 ++# include <limits.h>
25176 ++#else
25177 ++# include <assert.h>
25178 ++#endif
25179
25180 +-int main() {
25181 ++#undef $ac_func
25182
25183 ++/* Override any gcc2 internal prototype to avoid an error.  */
25184 ++#ifdef __cplusplus
25185 ++extern "C"
25186 ++{
25187 ++#endif
25188 ++/* We use char because int might match the return type of a gcc2
25189 ++   builtin and then its argument prototype would still apply.  */
25190 ++char $ac_func ();
25191 + /* The GNU C library defines this for functions which it implements
25192 +     to always fail with ENOSYS.  Some functions are actually named
25193 +     something starting with __ and the normal name is an alias.  */
25194 +-#if defined (__stub_vfork) || defined (__stub___vfork)
25195 ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25196 + choke me
25197 + #else
25198 +-vfork();
25199 ++char (*f) () = $ac_func;
25200 ++#endif
25201 ++#ifdef __cplusplus
25202 ++}
25203 + #endif
25204
25205 +-; return 0; }
25206 +-EOF
25207 +-if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
25208 +-  rm -rf conftest*
25209 +-  eval "ac_cv_func_vfork=yes"
25210 +-else
25211 +-  echo "configure: failed program was:" >&5
25212 +-  cat conftest.$ac_ext >&5
25213 +-  rm -rf conftest*
25214 +-  eval "ac_cv_func_vfork=no"
25215 +-fi
25216 +-rm -f conftest*
25217 ++int
25218 ++main ()
25219 ++{
25220 ++return f != $ac_func;
25221 ++  ;
25222 ++  return 0;
25223 ++}
25224 ++_ACEOF
25225 ++rm -f conftest.$ac_objext conftest$ac_exeext
25226 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25227 ++  (eval $ac_link) 2>conftest.er1
25228 ++  ac_status=$?
25229 ++  grep -v '^ *+' conftest.er1 >conftest.err
25230 ++  rm -f conftest.er1
25231 ++  cat conftest.err >&5
25232 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 ++  (exit $ac_status); } &&
25234 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25235 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 ++  (eval $ac_try) 2>&5
25237 ++  ac_status=$?
25238 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 ++  (exit $ac_status); }; } &&
25240 ++       { ac_try='test -s conftest$ac_exeext'
25241 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 ++  (eval $ac_try) 2>&5
25243 ++  ac_status=$?
25244 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 ++  (exit $ac_status); }; }; then
25246 ++  eval "$as_ac_var=yes"
25247 ++else
25248 ++  echo "$as_me: failed program was:" >&5
25249 ++sed 's/^/| /' conftest.$ac_ext >&5
25250 ++
25251 ++eval "$as_ac_var=no"
25252 ++fi
25253 ++rm -f conftest.err conftest.$ac_objext \
25254 ++      conftest$ac_exeext conftest.$ac_ext
25255 ++fi
25256 ++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25257 ++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25258 ++if test `eval echo '${'$as_ac_var'}'` = yes; then
25259 ++  cat >>confdefs.h <<_ACEOF
25260 ++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25261 ++_ACEOF
25262 ++
25263 + fi
25264 ++done
25265
25266 +-if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
25267 +-  echo "$ac_t""yes" 1>&6
25268 +-  :
25269 ++if test "x$ac_cv_func_fork" = xyes; then
25270 ++  echo "$as_me:$LINENO: checking for working fork" >&5
25271 ++echo $ECHO_N "checking for working fork... $ECHO_C" >&6
25272 ++if test "${ac_cv_func_fork_works+set}" = set; then
25273 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
25274 ++else
25275 ++  if test "$cross_compiling" = yes; then
25276 ++  ac_cv_func_fork_works=cross
25277 + else
25278 +-  echo "$ac_t""no" 1>&6
25279 ++  cat >conftest.$ac_ext <<_ACEOF
25280 ++/* By Ruediger Kuhlmann. */
25281 ++      #include <sys/types.h>
25282 ++      #if HAVE_UNISTD_H
25283 ++      # include <unistd.h>
25284 ++      #endif
25285 ++      /* Some systems only have a dummy stub for fork() */
25286 ++      int main ()
25287 ++      {
25288 ++      if (fork() < 0)
25289 ++        exit (1);
25290 ++      exit (0);
25291 ++      }
25292 ++_ACEOF
25293 ++rm -f conftest$ac_exeext
25294 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25295 ++  (eval $ac_link) 2>&5
25296 ++  ac_status=$?
25297 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25299 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 ++  (eval $ac_try) 2>&5
25301 ++  ac_status=$?
25302 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 ++  (exit $ac_status); }; }; then
25304 ++  ac_cv_func_fork_works=yes
25305 ++else
25306 ++  echo "$as_me: program exited with status $ac_status" >&5
25307 ++echo "$as_me: failed program was:" >&5
25308 ++sed 's/^/| /' conftest.$ac_ext >&5
25309 ++
25310 ++( exit $ac_status )
25311 ++ac_cv_func_fork_works=no
25312 ++fi
25313 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25314 ++fi
25315 ++fi
25316 ++echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25317 ++echo "${ECHO_T}$ac_cv_func_fork_works" >&6
25318 ++
25319 ++else
25320 ++  ac_cv_func_fork_works=$ac_cv_func_fork
25321 ++fi
25322 ++if test "x$ac_cv_func_fork_works" = xcross; then
25323 ++  case $host in
25324 ++    *-*-amigaos* | *-*-msdosdjgpp*)
25325 ++      # Override, as these systems have only a dummy fork() stub
25326 ++      ac_cv_func_fork_works=no
25327 ++      ;;
25328 ++    *)
25329 ++      ac_cv_func_fork_works=yes
25330 ++      ;;
25331 ++  esac
25332 ++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25333 ++echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25334 + fi
25335 +-
25336 + ac_cv_func_vfork_works=$ac_cv_func_vfork
25337 ++if test "x$ac_cv_func_vfork" = xyes; then
25338 ++  echo "$as_me:$LINENO: checking for working vfork" >&5
25339 ++echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
25340 ++if test "${ac_cv_func_vfork_works+set}" = set; then
25341 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
25342 ++else
25343 ++  if test "$cross_compiling" = yes; then
25344 ++  ac_cv_func_vfork_works=cross
25345 + else
25346 +-  cat > conftest.$ac_ext <<EOF
25347 +-#line 8975 "configure"
25348 +-#include "confdefs.h"
25349 ++  cat >conftest.$ac_ext <<_ACEOF
25350 ++/* confdefs.h.  */
25351 ++_ACEOF
25352 ++cat confdefs.h >>conftest.$ac_ext
25353 ++cat >>conftest.$ac_ext <<_ACEOF
25354 ++/* end confdefs.h.  */
25355 + /* Thanks to Paul Eggert for this test.  */
25356 + #include <stdio.h>
25357 ++#include <stdlib.h>
25358 + #include <sys/types.h>
25359 + #include <sys/stat.h>
25360 +-#ifdef HAVE_UNISTD_H
25361 +-#include <unistd.h>
25362 ++#include <sys/wait.h>
25363 ++#if HAVE_UNISTD_H
25364 ++# include <unistd.h>
25365 + #endif
25366 +-#ifdef HAVE_VFORK_H
25367 +-#include <vfork.h>
25368 ++#if HAVE_VFORK_H
25369 ++# include <vfork.h>
25370 + #endif
25371 + /* On some sparc systems, changes by the child to local and incoming
25372 +-   argument registers are propagated back to the parent.
25373 +-   The compiler is told about this with #include <vfork.h>,
25374 +-   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
25375 +-   Test for this by using a static variable whose address
25376 +-   is put into a register that is clobbered by the vfork.  */
25377 +-static
25378 ++   argument registers are propagated back to the parent.  The compiler
25379 ++   is told about this with #include <vfork.h>, but some compilers
25380 ++   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25381 ++   static variable whose address is put into a register that is
25382 ++   clobbered by the vfork.  */
25383 ++static void
25384 + #ifdef __cplusplus
25385 + sparc_address_test (int arg)
25386 +-#else
25387 ++# else
25388 + sparc_address_test (arg) int arg;
25389 + #endif
25390 + {
25391 +@@ -9010,25 +17417,27 @@
25392 +     }
25393 +   }
25394 + }
25395 +-main() {
25396 ++
25397 ++int
25398 ++main ()
25399 ++{
25400 +   pid_t parent = getpid ();
25401 +   pid_t child;
25402
25403 +-  sparc_address_test ();
25404 ++  sparc_address_test (0);
25405
25406 +   child = vfork ();
25407
25408 +   if (child == 0) {
25409 +-    /* Here is another test for sparc vfork register problems.
25410 +-       This test uses lots of local variables, at least
25411 +-       as many local variables as main has allocated so far
25412 +-       including compiler temporaries.  4 locals are enough for
25413 +-       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
25414 +-       A buggy compiler should reuse the register of parent
25415 +-       for one of the local variables, since it will think that
25416 +-       parent can't possibly be used any more in this routine.
25417 +-       Assigning to the local variable will thus munge parent
25418 +-       in the parent process.  */
25419 ++    /* Here is another test for sparc vfork register problems.  This
25420 ++       test uses lots of local variables, at least as many local
25421 ++       variables as main has allocated so far including compiler
25422 ++       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25423 ++       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25424 ++       reuse the register of parent for one of the local variables,
25425 ++       since it will think that parent can't possibly be used any more
25426 ++       in this routine.  Assigning to the local variable will thus
25427 ++       munge parent in the parent process.  */
25428 +     pid_t
25429 +       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25430 +       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25431 +@@ -9038,11 +17447,10 @@
25432 +       || p != p5 || p != p6 || p != p7)
25433 +       _exit(1);
25434
25435 +-    /* On some systems (e.g. IRIX 3.3),
25436 +-       vfork doesn't separate parent from child file descriptors.
25437 +-       If the child closes a descriptor before it execs or exits,
25438 +-       this munges the parent's descriptor as well.
25439 +-       Test for this by closing stdout in the child.  */
25440 ++    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25441 ++       from child file descriptors.  If the child closes a descriptor
25442 ++       before it execs or exits, this munges the parent's descriptor
25443 ++       as well.  Test for this by closing stdout in the child.  */
25444 +     _exit(close(fileno(stdout)) != 0);
25445 +   } else {
25446 +     int status;
25447 +@@ -9065,61 +17473,125 @@
25448 +        );
25449 +   }
25450 + }
25451 +-EOF
25452 +-if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
25453 +-then
25454 ++_ACEOF
25455 ++rm -f conftest$ac_exeext
25456 ++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457 ++  (eval $ac_link) 2>&5
25458 ++  ac_status=$?
25459 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 ++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25461 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462 ++  (eval $ac_try) 2>&5
25463 ++  ac_status=$?
25464 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 ++  (exit $ac_status); }; }; then
25466 +   ac_cv_func_vfork_works=yes
25467 + else
25468 +-  echo "configure: failed program was:" >&5
25469 +-  cat conftest.$ac_ext >&5
25470 +-  rm -fr conftest*
25471 +-  ac_cv_func_vfork_works=no
25472 ++  echo "$as_me: program exited with status $ac_status" >&5
25473 ++echo "$as_me: failed program was:" >&5
25474 ++sed 's/^/| /' conftest.$ac_ext >&5
25475 ++
25476 ++( exit $ac_status )
25477 ++ac_cv_func_vfork_works=no
25478 ++fi
25479 ++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25480 + fi
25481 +-rm -fr conftest*
25482 + fi
25483 ++echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25484 ++echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
25485
25486 ++fi;
25487 ++if test "x$ac_cv_func_fork_works" = xcross; then
25488 ++  ac_cv_func_vfork_works=$ac_cv_func_vfork
25489 ++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25490 ++echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25491 + fi
25492
25493 +-echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
25494 +-if test $ac_cv_func_vfork_works = no; then
25495 +-  cat >> confdefs.h <<\EOF
25496 ++if test "x$ac_cv_func_vfork_works" = xyes; then
25497 ++
25498 ++cat >>confdefs.h <<\_ACEOF
25499 ++#define HAVE_WORKING_VFORK 1
25500 ++_ACEOF
25501 ++
25502 ++else
25503 ++
25504 ++cat >>confdefs.h <<\_ACEOF
25505 + #define vfork fork
25506 +-EOF
25507 ++_ACEOF
25508 ++
25509 ++fi
25510 ++if test "x$ac_cv_func_fork_works" = xyes; then
25511 ++
25512 ++cat >>confdefs.h <<\_ACEOF
25513 ++#define HAVE_WORKING_FORK 1
25514 ++_ACEOF
25515
25516 + fi
25517
25518
25519 + # Fixme: This should be replaced when we have autoconf 2.14.
25520 +-echo $ac_n "checking for size_t""... $ac_c" 1>&6
25521 +-echo "configure:9095: checking for size_t" >&5
25522 +-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
25523 +-  echo $ac_n "(cached) $ac_c" 1>&6
25524 +-else
25525 +-  cat > conftest.$ac_ext <<EOF
25526 +-#line 9100 "configure"
25527 +-#include "confdefs.h"
25528 +-#include <sys/types.h>
25529 +-#if STDC_HEADERS
25530 +-#include <stdlib.h>
25531 +-#include <stddef.h>
25532 +-#endif
25533 +-EOF
25534 +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25535 +-  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
25536 +-  rm -rf conftest*
25537 ++echo "$as_me:$LINENO: checking for size_t" >&5
25538 ++echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25539 ++if test "${ac_cv_type_size_t+set}" = set; then
25540 ++  echo $ECHO_N "(cached) $ECHO_C" >&6
25541 ++else
25542 ++  cat >conftest.$ac_ext <<_ACEOF
25543 ++/* confdefs.h.  */
25544 ++_ACEOF
25545 ++cat confdefs.h >>conftest.$ac_ext
25546 ++cat >>conftest.$ac_ext <<_ACEOF
25547 ++/* end confdefs.h.  */
25548 ++$ac_includes_default
25549 ++int
25550 ++main ()
25551 ++{
25552 ++if ((size_t *) 0)
25553 ++  return 0;
25554 ++if (sizeof (size_t))
25555 ++  return 0;
25556 ++  ;
25557 ++  return 0;
25558 ++}
25559 ++_ACEOF
25560 ++rm -f conftest.$ac_objext
25561 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25562 ++  (eval $ac_compile) 2>conftest.er1
25563 ++  ac_status=$?
25564 ++  grep -v '^ *+' conftest.er1 >conftest.err
25565 ++  rm -f conftest.er1
25566 ++  cat conftest.err >&5
25567 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 ++  (exit $ac_status); } &&
25569 ++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25570 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 ++  (eval $ac_try) 2>&5
25572 ++  ac_status=$?
25573 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 ++  (exit $ac_status); }; } &&
25575 ++       { ac_try='test -s conftest.$ac_objext'
25576 ++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 ++  (eval $ac_try) 2>&5
25578 ++  ac_status=$?
25579 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 ++  (exit $ac_status); }; }; then
25581 +   ac_cv_type_size_t=yes
25582 + else
25583 +-  rm -rf conftest*
25584 +-  ac_cv_type_size_t=no
25585 +-fi
25586 +-rm -f conftest*
25587 ++  echo "$as_me: failed program was:" >&5
25588 ++sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 ++ac_cv_type_size_t=no
25591 + fi
25592 +-echo "$ac_t""$ac_cv_type_size_t" 1>&6
25593 +-if test $ac_cv_type_size_t = no; then
25594 +-  cat >> confdefs.h <<\EOF
25595 ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25596 ++fi
25597 ++echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25598 ++echo "${ECHO_T}$ac_cv_type_size_t" >&6
25599 ++if test $ac_cv_type_size_t = yes; then
25600 ++  :
25601 ++else
25602 ++
25603 ++cat >>confdefs.h <<_ACEOF
25604 + #define size_t unsigned
25605 +-EOF
25606 ++_ACEOF
25607
25608 + fi
25609
25610 +@@ -9132,7 +17604,9 @@
25611 + version=`grep 'defconst[       ]*emacs-version' ${srcdir}/lisp/version.el \
25612 +        | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25613 + if test x"${version}" = x; then
25614 +-  { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
25615 ++  { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25616 ++echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25617 ++   { (exit 1); exit 1; }; }
25618 + fi
25619
25620 + ### Specify what sort of things we'll be editing into Makefile and config.h.
25621 +@@ -9168,79 +17642,80 @@
25622
25623
25624
25625 +-cat >> confdefs.h <<EOF
25626 ++
25627 ++cat >>confdefs.h <<_ACEOF
25628 + #define EMACS_CONFIGURATION "${canonical}"
25629 +-EOF
25630 ++_ACEOF
25631
25632 +-cat >> confdefs.h <<EOF
25633 ++cat >>confdefs.h <<_ACEOF
25634 + #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25635 +-EOF
25636 ++_ACEOF
25637
25638 +-cat >> confdefs.h <<EOF
25639 ++cat >>confdefs.h <<_ACEOF
25640 + #define config_machfile "${machfile}"
25641 +-EOF
25642 ++_ACEOF
25643
25644 +-cat >> confdefs.h <<EOF
25645 ++cat >>confdefs.h <<_ACEOF
25646 + #define config_opsysfile "${opsysfile}"
25647 +-EOF
25648 ++_ACEOF
25649
25650 +-cat >> confdefs.h <<EOF
25651 ++cat >>confdefs.h <<_ACEOF
25652 + #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25653 +-EOF
25654 ++_ACEOF
25655
25656 +-cat >> confdefs.h <<EOF
25657 ++cat >>confdefs.h <<_ACEOF
25658 + #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25659 +-EOF
25660 ++_ACEOF
25661
25662 +-cat >> confdefs.h <<EOF
25663 ++cat >>confdefs.h <<_ACEOF
25664 + #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25665 +-EOF
25666 ++_ACEOF
25667
25668 +-cat >> confdefs.h <<EOF
25669 ++cat >>confdefs.h <<_ACEOF
25670 + #define UNEXEC_SRC ${UNEXEC_SRC}
25671 +-EOF
25672 ++_ACEOF
25673
25674
25675 + if test "${HAVE_X_WINDOWS}" = "yes" ; then
25676 +-  cat >> confdefs.h <<\EOF
25677 ++  cat >>confdefs.h <<\_ACEOF
25678 + #define HAVE_X_WINDOWS 1
25679 +-EOF
25680 ++_ACEOF
25681
25682 + fi
25683 + if test "${USE_X_TOOLKIT}" != "none" ; then
25684 +-  cat >> confdefs.h <<\EOF
25685 ++  cat >>confdefs.h <<\_ACEOF
25686 + #define USE_X_TOOLKIT 1
25687 +-EOF
25688 ++_ACEOF
25689
25690 + fi
25691 + if test "${HAVE_X11}" = "yes" ; then
25692 +-  cat >> confdefs.h <<\EOF
25693 ++  cat >>confdefs.h <<\_ACEOF
25694 + #define HAVE_X11 1
25695 +-EOF
25696 ++_ACEOF
25697
25698 + fi
25699 + if test "${HAVE_XFREE386}" = "yes" ; then
25700 +-  cat >> confdefs.h <<\EOF
25701 ++  cat >>confdefs.h <<\_ACEOF
25702 + #define HAVE_XFREE386 1
25703 +-EOF
25704 ++_ACEOF
25705
25706 + fi
25707 + if test "${HAVE_MENUS}" = "yes" ; then
25708 +-  cat >> confdefs.h <<\EOF
25709 ++  cat >>confdefs.h <<\_ACEOF
25710 + #define HAVE_MENUS 1
25711 +-EOF
25712 ++_ACEOF
25713
25714 + fi
25715 + if test "${GNU_MALLOC}" = "yes" ; then
25716 +-  cat >> confdefs.h <<\EOF
25717 ++  cat >>confdefs.h <<\_ACEOF
25718 + #define GNU_MALLOC 1
25719 +-EOF
25720 ++_ACEOF
25721
25722 + fi
25723 + if test "${REL_ALLOC}" = "yes" ; then
25724 +-  cat >> confdefs.h <<\EOF
25725 ++  cat >>confdefs.h <<\_ACEOF
25726 + #define REL_ALLOC 1
25727 +-EOF
25728 ++_ACEOF
25729
25730 + fi
25731
25732 +@@ -9289,414 +17764,1286 @@
25733 + ## from Makefile.c can correctly provide the arg `-traditional' to the
25734 + ## C preprocessor.
25735
25736 +-cat > conftest.$ac_ext <<EOF
25737 +-#line 9294 "configure"
25738 +-#include "confdefs.h"
25739 ++cat >conftest.$ac_ext <<_ACEOF
25740 ++/* confdefs.h.  */
25741 ++_ACEOF
25742 ++cat confdefs.h >>conftest.$ac_ext
25743 ++cat >>conftest.$ac_ext <<_ACEOF
25744 ++/* end confdefs.h.  */
25745 + yes..yes
25746 +-EOF
25747 ++_ACEOF
25748 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25749 +-  egrep "yes..yes" >/dev/null 2>&1; then
25750 +-  rm -rf conftest*
25751 ++  $EGREP "yes..yes" >/dev/null 2>&1; then
25752 +   CPP_NEED_TRADITIONAL=no
25753 + else
25754 +-  rm -rf conftest*
25755 +   CPP_NEED_TRADITIONAL=yes
25756 + fi
25757 + rm -f conftest*
25758
25759
25760 +-trap '' 1 2 15
25761 +-cat > confcache <<\EOF
25762 ++                                                                                ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile"
25763 ++          ac_config_commands="$ac_config_commands default"
25764 ++cat >confcache <<\_ACEOF
25765 + # This file is a shell script that caches the results of configure
25766 + # tests run on this system so they can be shared between configure
25767 +-# scripts and configure runs.  It is not useful on other systems.
25768 +-# If it contains results you don't want to keep, you may remove or edit it.
25769 ++# scripts and configure runs, see configure's option --config-cache.
25770 ++# It is not useful on other systems.  If it contains results you don't
25771 ++# want to keep, you may remove or edit it.
25772 + #
25773 +-# By default, configure uses ./config.cache as the cache file,
25774 +-# creating it if it does not exist already.  You can give configure
25775 +-# the --cache-file=FILE option to use a different cache file; that is
25776 +-# what configure does when it calls configure scripts in
25777 +-# subdirectories, so they share the cache.
25778 +-# Giving --cache-file=/dev/null disables caching, for debugging configure.
25779 +-# config.status only pays attention to the cache file if you give it the
25780 +-# --recheck option to rerun configure.
25781 ++# config.status only pays attention to the cache file if you give it
25782 ++# the --recheck option to rerun configure.
25783 + #
25784 +-EOF
25785 ++# `ac_cv_env_foo' variables (set or unset) will be overridden when
25786 ++# loading this file, other *unset* `ac_cv_foo' will be assigned the
25787 ++# following values.
25788 ++
25789 ++_ACEOF
25790 ++
25791 + # The following way of writing the cache mishandles newlines in values,
25792 + # but we know of no workaround that is simple, portable, and efficient.
25793 + # So, don't put newlines in cache variables' values.
25794 + # Ultrix sh set writes to stderr and can't be redirected directly,
25795 + # and sets the high bit in the cache file unless we assign to the vars.
25796 +-(set) 2>&1 |
25797 +-  case `(ac_space=' '; set | grep ac_space) 2>&1` in
25798 +-  *ac_space=\ *)
25799 +-    # `set' does not quote correctly, so add quotes (double-quote substitution
25800 +-    # turns \\\\ into \\, and sed turns \\ into \).
25801 +-    sed -n \
25802 +-      -e "s/'/'\\\\''/g" \
25803 +-      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
25804 +-    ;;
25805 +-  *)
25806 +-    # `set' quotes correctly as required by POSIX, so do not add quotes.
25807 +-    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
25808 +-    ;;
25809 +-  esac >> confcache
25810 +-if cmp -s $cache_file confcache; then
25811 +-  :
25812 +-else
25813 ++{
25814 ++  (set) 2>&1 |
25815 ++    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25816 ++    *ac_space=\ *)
25817 ++      # `set' does not quote correctly, so add quotes (double-quote
25818 ++      # substitution turns \\\\ into \\, and sed turns \\ into \).
25819 ++      sed -n \
25820 ++      "s/'/'\\\\''/g;
25821 ++        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25822 ++      ;;
25823 ++    *)
25824 ++      # `set' quotes correctly as required by POSIX, so do not add quotes.
25825 ++      sed -n \
25826 ++      "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25827 ++      ;;
25828 ++    esac;
25829 ++} |
25830 ++  sed '
25831 ++     t clear
25832 ++     : clear
25833 ++     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25834 ++     t end
25835 ++     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25836 ++     : end' >>confcache
25837 ++if diff $cache_file confcache >/dev/null 2>&1; then :; else
25838 +   if test -w $cache_file; then
25839 +-    echo "updating cache $cache_file"
25840 +-    cat confcache > $cache_file
25841 ++    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25842 ++    cat confcache >$cache_file
25843 +   else
25844 +     echo "not updating unwritable cache $cache_file"
25845 +   fi
25846 + fi
25847 + rm -f confcache
25848
25849 +-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25850 +-
25851 + test "x$prefix" = xNONE && prefix=$ac_default_prefix
25852 + # Let make expand exec_prefix.
25853 + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25854
25855 +-# Any assignment to VPATH causes Sun make to only execute
25856 +-# the first set of double-colon rules, so remove it if not needed.
25857 +-# If there is a colon in the path, we need to keep it.
25858 ++# VPATH may cause trouble with some makes, so we remove $(srcdir),
25859 ++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25860 ++# trailing colons and then remove the whole line if VPATH becomes empty
25861 ++# (actually we leave an empty line to preserve line numbers).
25862 + if test "x$srcdir" = x.; then
25863 +-  ac_vpsub='/^[       ]*VPATH[        ]*=[^:]*$/d'
25864 ++  ac_vpsub='/^[        ]*VPATH[        ]*=/{
25865 ++s/:*\$(srcdir):*/:/;
25866 ++s/:*\${srcdir}:*/:/;
25867 ++s/:*@srcdir@:*/:/;
25868 ++s/^\([^=]*=[   ]*\):*/\1/;
25869 ++s/:*$//;
25870 ++s/^[^=]*=[     ]*$//;
25871 ++}'
25872 + fi
25873
25874 +-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25875 +-
25876 + DEFS=-DHAVE_CONFIG_H
25877
25878 +-# Without the "./", some shells look in PATH for config.status.
25879 +-: ${CONFIG_STATUS=./config.status}
25880 ++ac_libobjs=
25881 ++ac_ltlibobjs=
25882 ++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25883 ++  # 1. Remove the extension, and $U if already installed.
25884 ++  ac_i=`echo "$ac_i" |
25885 ++       sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25886 ++  # 2. Add them.
25887 ++  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25888 ++  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25889 ++done
25890 ++LIBOBJS=$ac_libobjs
25891
25892 +-echo creating $CONFIG_STATUS
25893 +-rm -f $CONFIG_STATUS
25894 +-cat > $CONFIG_STATUS <<EOF
25895 +-#! /bin/sh
25896 +-# Generated automatically by configure.
25897 ++LTLIBOBJS=$ac_ltlibobjs
25898 ++
25899 ++
25900 ++
25901 ++: ${CONFIG_STATUS=./config.status}
25902 ++ac_clean_files_save=$ac_clean_files
25903 ++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25904 ++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25905 ++echo "$as_me: creating $CONFIG_STATUS" >&6;}
25906 ++cat >$CONFIG_STATUS <<_ACEOF
25907 ++#! $SHELL
25908 ++# Generated by $as_me.
25909 + # Run this file to recreate the current configuration.
25910 +-# This directory was configured as follows,
25911 +-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25912 +-#
25913 +-# $0 $ac_configure_args
25914 +-#
25915 + # Compiler output produced by configure, useful for debugging
25916 +-# configure, is in ./config.log if it exists.
25917 ++# configure, is in config.log if it exists.
25918
25919 +-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25920 +-for ac_option
25921 ++debug=false
25922 ++ac_cs_recheck=false
25923 ++ac_cs_silent=false
25924 ++SHELL=\${CONFIG_SHELL-$SHELL}
25925 ++_ACEOF
25926 ++
25927 ++cat >>$CONFIG_STATUS <<\_ACEOF
25928 ++## --------------------- ##
25929 ++## M4sh Initialization.  ##
25930 ++## --------------------- ##
25931 ++
25932 ++# Be Bourne compatible
25933 ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25934 ++  emulate sh
25935 ++  NULLCMD=:
25936 ++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25937 ++  # is contrary to our usage.  Disable this feature.
25938 ++  alias -g '${1+"$@"}'='"$@"'
25939 ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25940 ++  set -o posix
25941 ++fi
25942 ++DUALCASE=1; export DUALCASE # for MKS sh
25943 ++
25944 ++# Support unset when possible.
25945 ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25946 ++  as_unset=unset
25947 ++else
25948 ++  as_unset=false
25949 ++fi
25950 ++
25951 ++
25952 ++# Work around bugs in pre-3.0 UWIN ksh.
25953 ++$as_unset ENV MAIL MAILPATH
25954 ++PS1='$ '
25955 ++PS2='> '
25956 ++PS4='+ '
25957 ++
25958 ++# NLS nuisances.
25959 ++for as_var in \
25960 ++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25961 ++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25962 ++  LC_TELEPHONE LC_TIME
25963 + do
25964 +-  case "\$ac_option" in
25965 +-  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25966 +-    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25967 +-    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25968 +-  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25969 +-    echo "$CONFIG_STATUS generated by autoconf version 2.13"
25970 +-    exit 0 ;;
25971 +-  -help | --help | --hel | --he | --h)
25972 +-    echo "\$ac_cs_usage"; exit 0 ;;
25973 +-  *) echo "\$ac_cs_usage"; exit 1 ;;
25974 ++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25975 ++    eval $as_var=C; export $as_var
25976 ++  else
25977 ++    $as_unset $as_var
25978 ++  fi
25979 ++done
25980 ++
25981 ++# Required to use basename.
25982 ++if expr a : '\(a\)' >/dev/null 2>&1; then
25983 ++  as_expr=expr
25984 ++else
25985 ++  as_expr=false
25986 ++fi
25987 ++
25988 ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25989 ++  as_basename=basename
25990 ++else
25991 ++  as_basename=false
25992 ++fi
25993 ++
25994 ++
25995 ++# Name of the executable.
25996 ++as_me=`$as_basename "$0" ||
25997 ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25998 ++       X"$0" : 'X\(//\)$' \| \
25999 ++       X"$0" : 'X\(/\)$' \| \
26000 ++       .     : '\(.\)' 2>/dev/null ||
26001 ++echo X/"$0" |
26002 ++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26003 ++        /^X\/\(\/\/\)$/{ s//\1/; q; }
26004 ++        /^X\/\(\/\).*/{ s//\1/; q; }
26005 ++        s/.*/./; q'`
26006 ++
26007 ++
26008 ++# PATH needs CR, and LINENO needs CR and PATH.
26009 ++# Avoid depending upon Character Ranges.
26010 ++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26011 ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26012 ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26013 ++as_cr_digits='0123456789'
26014 ++as_cr_alnum=$as_cr_Letters$as_cr_digits
26015 ++
26016 ++# The user is always right.
26017 ++if test "${PATH_SEPARATOR+set}" != set; then
26018 ++  echo "#! /bin/sh" >conf$$.sh
26019 ++  echo  "exit 0"   >>conf$$.sh
26020 ++  chmod +x conf$$.sh
26021 ++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26022 ++    PATH_SEPARATOR=';'
26023 ++  else
26024 ++    PATH_SEPARATOR=:
26025 ++  fi
26026 ++  rm -f conf$$.sh
26027 ++fi
26028 ++
26029 ++
26030 ++  as_lineno_1=$LINENO
26031 ++  as_lineno_2=$LINENO
26032 ++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26033 ++  test "x$as_lineno_1" != "x$as_lineno_2" &&
26034 ++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26035 ++  # Find who we are.  Look in the path if we contain no path at all
26036 ++  # relative or not.
26037 ++  case $0 in
26038 ++    *[\\/]* ) as_myself=$0 ;;
26039 ++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26040 ++for as_dir in $PATH
26041 ++do
26042 ++  IFS=$as_save_IFS
26043 ++  test -z "$as_dir" && as_dir=.
26044 ++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26045 ++done
26046 ++
26047 ++       ;;
26048 +   esac
26049 ++  # We did not find ourselves, most probably we were run as `sh COMMAND'
26050 ++  # in which case we are not to be found in the path.
26051 ++  if test "x$as_myself" = x; then
26052 ++    as_myself=$0
26053 ++  fi
26054 ++  if test ! -f "$as_myself"; then
26055 ++    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26056 ++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26057 ++   { (exit 1); exit 1; }; }
26058 ++  fi
26059 ++  case $CONFIG_SHELL in
26060 ++  '')
26061 ++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26063 ++do
26064 ++  IFS=$as_save_IFS
26065 ++  test -z "$as_dir" && as_dir=.
26066 ++  for as_base in sh bash ksh sh5; do
26067 ++       case $as_dir in
26068 ++       /*)
26069 ++         if ("$as_dir/$as_base" -c '
26070 ++  as_lineno_1=$LINENO
26071 ++  as_lineno_2=$LINENO
26072 ++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26073 ++  test "x$as_lineno_1" != "x$as_lineno_2" &&
26074 ++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26075 ++           $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26076 ++           $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26077 ++           CONFIG_SHELL=$as_dir/$as_base
26078 ++           export CONFIG_SHELL
26079 ++           exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26080 ++         fi;;
26081 ++       esac
26082 ++       done
26083 + done
26084 ++;;
26085 ++  esac
26086
26087 +-ac_given_srcdir=$srcdir
26088 +-ac_given_INSTALL="$INSTALL"
26089 ++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26090 ++  # uniformly replaced by the line number.  The first 'sed' inserts a
26091 ++  # line-number line before each line; the second 'sed' does the real
26092 ++  # work.  The second script uses 'N' to pair each line-number line
26093 ++  # with the numbered line, and appends trailing '-' during
26094 ++  # substitution so that $LINENO is not a special case at line end.
26095 ++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26096 ++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26097 ++  sed '=' <$as_myself |
26098 ++    sed '
26099 ++      N
26100 ++      s,$,-,
26101 ++      : loop
26102 ++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26103 ++      t loop
26104 ++      s,-$,,
26105 ++      s,^['$as_cr_digits']*\n,,
26106 ++    ' >$as_me.lineno &&
26107 ++  chmod +x $as_me.lineno ||
26108 ++    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26109 ++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26110 ++   { (exit 1); exit 1; }; }
26111 ++
26112 ++  # Don't try to exec as it changes $[0], causing all sort of problems
26113 ++  # (the dirname of $[0] is not the place where we might find the
26114 ++  # original and so on.  Autoconf is especially sensible to this).
26115 ++  . ./$as_me.lineno
26116 ++  # Exit status is that of the last command.
26117 ++  exit
26118 ++}
26119
26120 +-trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
26121 +-      man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
26122 +-      lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
26123 +-EOF
26124 +-cat >> $CONFIG_STATUS <<EOF
26125 +-
26126 +-# Protect against being on the right side of a sed subst in config.status.
26127 +-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
26128 +- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
26129 +-$ac_vpsub
26130 +-$extrasub
26131 +-s%@SHELL@%$SHELL%g
26132 +-s%@CFLAGS@%$CFLAGS%g
26133 +-s%@CPPFLAGS@%$CPPFLAGS%g
26134 +-s%@CXXFLAGS@%$CXXFLAGS%g
26135 +-s%@FFLAGS@%$FFLAGS%g
26136 +-s%@DEFS@%$DEFS%g
26137 +-s%@LDFLAGS@%$LDFLAGS%g
26138 +-s%@LIBS@%$LIBS%g
26139 +-s%@exec_prefix@%$exec_prefix%g
26140 +-s%@prefix@%$prefix%g
26141 +-s%@program_transform_name@%$program_transform_name%g
26142 +-s%@bindir@%$bindir%g
26143 +-s%@sbindir@%$sbindir%g
26144 +-s%@libexecdir@%$libexecdir%g
26145 +-s%@datadir@%$datadir%g
26146 +-s%@sysconfdir@%$sysconfdir%g
26147 +-s%@sharedstatedir@%$sharedstatedir%g
26148 +-s%@localstatedir@%$localstatedir%g
26149 +-s%@libdir@%$libdir%g
26150 +-s%@includedir@%$includedir%g
26151 +-s%@oldincludedir@%$oldincludedir%g
26152 +-s%@infodir@%$infodir%g
26153 +-s%@mandir@%$mandir%g
26154 +-s%@host@%$host%g
26155 +-s%@host_alias@%$host_alias%g
26156 +-s%@host_cpu@%$host_cpu%g
26157 +-s%@host_vendor@%$host_vendor%g
26158 +-s%@host_os@%$host_os%g
26159 +-s%@CC@%$CC%g
26160 +-s%@LN_S@%$LN_S%g
26161 +-s%@CPP@%$CPP%g
26162 +-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
26163 +-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
26164 +-s%@INSTALL_DATA@%$INSTALL_DATA%g
26165 +-s%@YACC@%$YACC%g
26166 +-s%@RANLIB@%$RANLIB%g
26167 +-s%@LIBSOUND@%$LIBSOUND%g
26168 +-s%@SET_MAKE@%$SET_MAKE%g
26169 +-s%@ALLOCA@%$ALLOCA%g
26170 +-s%@liblockfile@%$liblockfile%g
26171 +-s%@LIBOBJS@%$LIBOBJS%g
26172 +-s%@NEED_SETGID@%$NEED_SETGID%g
26173 +-s%@KMEM_GROUP@%$KMEM_GROUP%g
26174 +-s%@version@%$version%g
26175 +-s%@configuration@%$configuration%g
26176 +-s%@canonical@%$canonical%g
26177 +-s%@srcdir@%$srcdir%g
26178 +-s%@lispdir@%$lispdir%g
26179 +-s%@locallisppath@%$locallisppath%g
26180 +-s%@lisppath@%$lisppath%g
26181 +-s%@x_default_search_path@%$x_default_search_path%g
26182 +-s%@etcdir@%$etcdir%g
26183 +-s%@archlibdir@%$archlibdir%g
26184 +-s%@docdir@%$docdir%g
26185 +-s%@bitmapdir@%$bitmapdir%g
26186 +-s%@c_switch_system@%$c_switch_system%g
26187 +-s%@c_switch_machine@%$c_switch_machine%g
26188 +-s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
26189 +-s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
26190 +-s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
26191 +-s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
26192 +-s%@machfile@%$machfile%g
26193 +-s%@opsysfile@%$opsysfile%g
26194 +-s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
26195
26196 +-CEOF
26197 +-EOF
26198 ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26199 ++  *c*,-n*) ECHO_N= ECHO_C='
26200 ++' ECHO_T='    ' ;;
26201 ++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26202 ++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26203 ++esac
26204
26205 +-cat >> $CONFIG_STATUS <<\EOF
26206 ++if expr a : '\(a\)' >/dev/null 2>&1; then
26207 ++  as_expr=expr
26208 ++else
26209 ++  as_expr=false
26210 ++fi
26211
26212 +-# Split the substitutions into bite-sized pieces for seds with
26213 +-# small command number limits, like on Digital OSF/1 and HP-UX.
26214 +-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
26215 +-ac_file=1 # Number of current file.
26216 +-ac_beg=1 # First line for current file.
26217 +-ac_end=$ac_max_sed_cmds # Line after last line for current file.
26218 +-ac_more_lines=:
26219 +-ac_sed_cmds=""
26220 +-while $ac_more_lines; do
26221 +-  if test $ac_beg -gt 1; then
26222 +-    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
26223 +-  else
26224 +-    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
26225 +-  fi
26226 +-  if test ! -s conftest.s$ac_file; then
26227 +-    ac_more_lines=false
26228 +-    rm -f conftest.s$ac_file
26229 ++rm -f conf$$ conf$$.exe conf$$.file
26230 ++echo >conf$$.file
26231 ++if ln -s conf$$.file conf$$ 2>/dev/null; then
26232 ++  # We could just check for DJGPP; but this test a) works b) is more generic
26233 ++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26234 ++  if test -f conf$$.exe; then
26235 ++    # Don't use ln at all; we don't have any links
26236 ++    as_ln_s='cp -p'
26237 +   else
26238 +-    if test -z "$ac_sed_cmds"; then
26239 +-      ac_sed_cmds="sed -f conftest.s$ac_file"
26240 +-    else
26241 +-      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
26242 +-    fi
26243 +-    ac_file=`expr $ac_file + 1`
26244 +-    ac_beg=$ac_end
26245 +-    ac_end=`expr $ac_end + $ac_max_sed_cmds`
26246 ++    as_ln_s='ln -s'
26247 +   fi
26248 +-done
26249 +-if test -z "$ac_sed_cmds"; then
26250 +-  ac_sed_cmds=cat
26251 ++elif ln conf$$.file conf$$ 2>/dev/null; then
26252 ++  as_ln_s=ln
26253 ++else
26254 ++  as_ln_s='cp -p'
26255 ++fi
26256 ++rm -f conf$$ conf$$.exe conf$$.file
26257 ++
26258 ++if mkdir -p . 2>/dev/null; then
26259 ++  as_mkdir_p=:
26260 ++else
26261 ++  test -d ./-p && rmdir ./-p
26262 ++  as_mkdir_p=false
26263 + fi
26264 +-EOF
26265
26266 +-cat >> $CONFIG_STATUS <<EOF
26267 ++as_executable_p="test -f"
26268
26269 +-CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
26270 +-      man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
26271 +-      lisp/Makefile leim/Makefile"}
26272 +-EOF
26273 +-cat >> $CONFIG_STATUS <<\EOF
26274 +-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
26275 +-  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26276 +-  case "$ac_file" in
26277 +-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
26278 +-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26279 +-  *) ac_file_in="${ac_file}.in" ;;
26280 ++# Sed expression to map a string onto a valid CPP name.
26281 ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26282 ++
26283 ++# Sed expression to map a string onto a valid variable name.
26284 ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26285 ++
26286 ++
26287 ++# IFS
26288 ++# We need space, tab and new line, in precisely that order.
26289 ++as_nl='
26290 ++'
26291 ++IFS="         $as_nl"
26292 ++
26293 ++# CDPATH.
26294 ++$as_unset CDPATH
26295 ++
26296 ++exec 6>&1
26297 ++
26298 ++# Open the log real soon, to keep \$[0] and so on meaningful, and to
26299 ++# report actual input values of CONFIG_FILES etc. instead of their
26300 ++# values after options handling.  Logging --version etc. is OK.
26301 ++exec 5>>config.log
26302 ++{
26303 ++  echo
26304 ++  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26305 ++## Running $as_me. ##
26306 ++_ASBOX
26307 ++} >&5
26308 ++cat >&5 <<_CSEOF
26309 ++
26310 ++This file was extended by $as_me, which was
26311 ++generated by GNU Autoconf 2.59.  Invocation command line was
26312 ++
26313 ++  CONFIG_FILES    = $CONFIG_FILES
26314 ++  CONFIG_HEADERS  = $CONFIG_HEADERS
26315 ++  CONFIG_LINKS    = $CONFIG_LINKS
26316 ++  CONFIG_COMMANDS = $CONFIG_COMMANDS
26317 ++  $ $0 $@
26318 ++
26319 ++_CSEOF
26320 ++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26321 ++echo >&5
26322 ++_ACEOF
26323 ++
26324 ++# Files that config.status was made for.
26325 ++if test -n "$ac_config_files"; then
26326 ++  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26327 ++fi
26328 ++
26329 ++if test -n "$ac_config_headers"; then
26330 ++  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26331 ++fi
26332 ++
26333 ++if test -n "$ac_config_links"; then
26334 ++  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26335 ++fi
26336 ++
26337 ++if test -n "$ac_config_commands"; then
26338 ++  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26339 ++fi
26340 ++
26341 ++cat >>$CONFIG_STATUS <<\_ACEOF
26342 ++
26343 ++ac_cs_usage="\
26344 ++\`$as_me' instantiates files from templates according to the
26345 ++current configuration.
26346 ++
26347 ++Usage: $0 [OPTIONS] [FILE]...
26348 ++
26349 ++  -h, --help       print this help, then exit
26350 ++  -V, --version    print version number, then exit
26351 ++  -q, --quiet      do not print progress messages
26352 ++  -d, --debug      don't remove temporary files
26353 ++      --recheck    update $as_me by reconfiguring in the same conditions
26354 ++  --file=FILE[:TEMPLATE]
26355 ++                 instantiate the configuration file FILE
26356 ++  --header=FILE[:TEMPLATE]
26357 ++                 instantiate the configuration header FILE
26358 ++
26359 ++Configuration files:
26360 ++$config_files
26361 ++
26362 ++Configuration headers:
26363 ++$config_headers
26364 ++
26365 ++Configuration commands:
26366 ++$config_commands
26367 ++
26368 ++Report bugs to <bug-autoconf@gnu.org>."
26369 ++_ACEOF
26370 ++
26371 ++cat >>$CONFIG_STATUS <<_ACEOF
26372 ++ac_cs_version="\\
26373 ++config.status
26374 ++configured by $0, generated by GNU Autoconf 2.59,
26375 ++  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26376 ++
26377 ++Copyright (C) 2003 Free Software Foundation, Inc.
26378 ++This config.status script is free software; the Free Software Foundation
26379 ++gives unlimited permission to copy, distribute and modify it."
26380 ++srcdir=$srcdir
26381 ++INSTALL="$INSTALL"
26382 ++_ACEOF
26383 ++
26384 ++cat >>$CONFIG_STATUS <<\_ACEOF
26385 ++# If no file are specified by the user, then we need to provide default
26386 ++# value.  By we need to know if files were specified by the user.
26387 ++ac_need_defaults=:
26388 ++while test $# != 0
26389 ++do
26390 ++  case $1 in
26391 ++  --*=*)
26392 ++    ac_option=`expr "x$1" : 'x\([^=]*\)='`
26393 ++    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26394 ++    ac_shift=:
26395 ++    ;;
26396 ++  -*)
26397 ++    ac_option=$1
26398 ++    ac_optarg=$2
26399 ++    ac_shift=shift
26400 ++    ;;
26401 ++  *) # This is not an option, so the user has probably given explicit
26402 ++     # arguments.
26403 ++     ac_option=$1
26404 ++     ac_need_defaults=false;;
26405 +   esac
26406
26407 +-  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
26408 ++  case $ac_option in
26409 ++  # Handling of the options.
26410 ++_ACEOF
26411 ++cat >>$CONFIG_STATUS <<\_ACEOF
26412 ++  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26413 ++    ac_cs_recheck=: ;;
26414 ++  --version | --vers* | -V )
26415 ++    echo "$ac_cs_version"; exit 0 ;;
26416 ++  --he | --h)
26417 ++    # Conflict between --help and --header
26418 ++    { { echo "$as_me:$LINENO: error: ambiguous option: $1
26419 ++Try \`$0 --help' for more information." >&5
26420 ++echo "$as_me: error: ambiguous option: $1
26421 ++Try \`$0 --help' for more information." >&2;}
26422 ++   { (exit 1); exit 1; }; };;
26423 ++  --help | --hel | -h )
26424 ++    echo "$ac_cs_usage"; exit 0 ;;
26425 ++  --debug | --d* | -d )
26426 ++    debug=: ;;
26427 ++  --file | --fil | --fi | --f )
26428 ++    $ac_shift
26429 ++    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26430 ++    ac_need_defaults=false;;
26431 ++  --header | --heade | --head | --hea )
26432 ++    $ac_shift
26433 ++    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26434 ++    ac_need_defaults=false;;
26435 ++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26436 ++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26437 ++    ac_cs_silent=: ;;
26438 ++
26439 ++  # This is an error.
26440 ++  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26441 ++Try \`$0 --help' for more information." >&5
26442 ++echo "$as_me: error: unrecognized option: $1
26443 ++Try \`$0 --help' for more information." >&2;}
26444 ++   { (exit 1); exit 1; }; } ;;
26445
26446 +-  # Remove last slash and all that follows it.  Not all systems have dirname.
26447 +-  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
26448 +-  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
26449 +-    # The file is in a subdirectory.
26450 +-    test ! -d "$ac_dir" && mkdir "$ac_dir"
26451 +-    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
26452 +-    # A "../" for each directory in $ac_dir_suffix.
26453 +-    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
26454 +-  else
26455 +-    ac_dir_suffix= ac_dots=
26456 +-  fi
26457 +-
26458 +-  case "$ac_given_srcdir" in
26459 +-  .)  srcdir=.
26460 +-      if test -z "$ac_dots"; then top_srcdir=.
26461 +-      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
26462 +-  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
26463 +-  *) # Relative path.
26464 +-    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
26465 +-    top_srcdir="$ac_dots$ac_given_srcdir" ;;
26466 ++  *) ac_config_targets="$ac_config_targets $1" ;;
26467 ++
26468 ++  esac
26469 ++  shift
26470 ++done
26471 ++
26472 ++ac_configure_extra_args=
26473 ++
26474 ++if $ac_cs_silent; then
26475 ++  exec 6>/dev/null
26476 ++  ac_configure_extra_args="$ac_configure_extra_args --silent"
26477 ++fi
26478 ++
26479 ++_ACEOF
26480 ++cat >>$CONFIG_STATUS <<_ACEOF
26481 ++if \$ac_cs_recheck; then
26482 ++  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26483 ++  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26484 ++fi
26485 ++
26486 ++_ACEOF
26487 ++
26488 ++cat >>$CONFIG_STATUS <<_ACEOF
26489 ++#
26490 ++# INIT-COMMANDS section.
26491 ++#
26492 ++
26493 ++GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26494 ++
26495 ++_ACEOF
26496 ++
26497 ++
26498 ++
26499 ++cat >>$CONFIG_STATUS <<\_ACEOF
26500 ++for ac_config_target in $ac_config_targets
26501 ++do
26502 ++  case "$ac_config_target" in
26503 ++  # Handling of arguments.
26504 ++  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26505 ++  "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26506 ++  "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26507 ++  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26508 ++  "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26509 ++  "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26510 ++  "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26511 ++  "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26512 ++  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26513 ++  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26514 ++  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26515 ++echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26516 ++   { (exit 1); exit 1; }; };;
26517 +   esac
26518 ++done
26519 ++
26520 ++# If the user did not use the arguments to specify the items to instantiate,
26521 ++# then the envvar interface is used.  Set only those that are not.
26522 ++# We use the long form for the default assignment because of an extremely
26523 ++# bizarre bug on SunOS 4.1.3.
26524 ++if $ac_need_defaults; then
26525 ++  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26526 ++  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26527 ++  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26528 ++fi
26529 ++
26530 ++# Have a temporary directory for convenience.  Make it in the build tree
26531 ++# simply because there is no reason to put it here, and in addition,
26532 ++# creating and moving files from /tmp can sometimes cause problems.
26533 ++# Create a temporary directory, and hook for its removal unless debugging.
26534 ++$debug ||
26535 ++{
26536 ++  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26537 ++  trap '{ (exit 1); exit 1; }' 1 2 13 15
26538 ++}
26539 ++
26540 ++# Create a (secure) tmp directory for tmp files.
26541 ++
26542 ++{
26543 ++  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26544 ++  test -n "$tmp" && test -d "$tmp"
26545 ++}  ||
26546 ++{
26547 ++  tmp=./confstat$$-$RANDOM
26548 ++  (umask 077 && mkdir $tmp)
26549 ++} ||
26550 ++{
26551 ++   echo "$me: cannot create a temporary directory in ." >&2
26552 ++   { (exit 1); exit 1; }
26553 ++}
26554 ++
26555 ++_ACEOF
26556 ++
26557 ++cat >>$CONFIG_STATUS <<_ACEOF
26558 ++
26559 ++#
26560 ++# CONFIG_FILES section.
26561 ++#
26562 ++
26563 ++# No need to generate the scripts if there are no CONFIG_FILES.
26564 ++# This happens for instance when ./config.status config.h
26565 ++if test -n "\$CONFIG_FILES"; then
26566 ++  # Protect against being on the right side of a sed subst in config.status.
26567 ++  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26568 ++   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26569 ++s,@SHELL@,$SHELL,;t t
26570 ++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26571 ++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26572 ++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26573 ++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26574 ++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26575 ++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26576 ++s,@exec_prefix@,$exec_prefix,;t t
26577 ++s,@prefix@,$prefix,;t t
26578 ++s,@program_transform_name@,$program_transform_name,;t t
26579 ++s,@bindir@,$bindir,;t t
26580 ++s,@sbindir@,$sbindir,;t t
26581 ++s,@libexecdir@,$libexecdir,;t t
26582 ++s,@datadir@,$datadir,;t t
26583 ++s,@sysconfdir@,$sysconfdir,;t t
26584 ++s,@sharedstatedir@,$sharedstatedir,;t t
26585 ++s,@localstatedir@,$localstatedir,;t t
26586 ++s,@libdir@,$libdir,;t t
26587 ++s,@includedir@,$includedir,;t t
26588 ++s,@oldincludedir@,$oldincludedir,;t t
26589 ++s,@infodir@,$infodir,;t t
26590 ++s,@mandir@,$mandir,;t t
26591 ++s,@build_alias@,$build_alias,;t t
26592 ++s,@host_alias@,$host_alias,;t t
26593 ++s,@target_alias@,$target_alias,;t t
26594 ++s,@DEFS@,$DEFS,;t t
26595 ++s,@ECHO_C@,$ECHO_C,;t t
26596 ++s,@ECHO_N@,$ECHO_N,;t t
26597 ++s,@ECHO_T@,$ECHO_T,;t t
26598 ++s,@LIBS@,$LIBS,;t t
26599 ++s,@build@,$build,;t t
26600 ++s,@build_cpu@,$build_cpu,;t t
26601 ++s,@build_vendor@,$build_vendor,;t t
26602 ++s,@build_os@,$build_os,;t t
26603 ++s,@host@,$host,;t t
26604 ++s,@host_cpu@,$host_cpu,;t t
26605 ++s,@host_vendor@,$host_vendor,;t t
26606 ++s,@host_os@,$host_os,;t t
26607 ++s,@CC@,$CC,;t t
26608 ++s,@CFLAGS@,$CFLAGS,;t t
26609 ++s,@LDFLAGS@,$LDFLAGS,;t t
26610 ++s,@CPPFLAGS@,$CPPFLAGS,;t t
26611 ++s,@ac_ct_CC@,$ac_ct_CC,;t t
26612 ++s,@EXEEXT@,$EXEEXT,;t t
26613 ++s,@OBJEXT@,$OBJEXT,;t t
26614 ++s,@LN_S@,$LN_S,;t t
26615 ++s,@CPP@,$CPP,;t t
26616 ++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26617 ++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26618 ++s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26619 ++s,@YACC@,$YACC,;t t
26620 ++s,@RANLIB@,$RANLIB,;t t
26621 ++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26622 ++s,@EGREP@,$EGREP,;t t
26623 ++s,@LIBSOUND@,$LIBSOUND,;t t
26624 ++s,@SET_MAKE@,$SET_MAKE,;t t
26625 ++s,@ALLOCA@,$ALLOCA,;t t
26626 ++s,@LIBOBJS@,$LIBOBJS,;t t
26627 ++s,@NEED_SETGID@,$NEED_SETGID,;t t
26628 ++s,@KMEM_GROUP@,$KMEM_GROUP,;t t
26629 ++s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
26630 ++s,@version@,$version,;t t
26631 ++s,@configuration@,$configuration,;t t
26632 ++s,@canonical@,$canonical,;t t
26633 ++s,@srcdir@,$srcdir,;t t
26634 ++s,@lispdir@,$lispdir,;t t
26635 ++s,@locallisppath@,$locallisppath,;t t
26636 ++s,@lisppath@,$lisppath,;t t
26637 ++s,@x_default_search_path@,$x_default_search_path,;t t
26638 ++s,@etcdir@,$etcdir,;t t
26639 ++s,@archlibdir@,$archlibdir,;t t
26640 ++s,@docdir@,$docdir,;t t
26641 ++s,@bitmapdir@,$bitmapdir,;t t
26642 ++s,@c_switch_system@,$c_switch_system,;t t
26643 ++s,@c_switch_machine@,$c_switch_machine,;t t
26644 ++s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
26645 ++s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
26646 ++s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
26647 ++s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
26648 ++s,@machfile@,$machfile,;t t
26649 ++s,@opsysfile@,$opsysfile,;t t
26650 ++s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
26651 ++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26652 ++CEOF
26653 ++
26654 ++_ACEOF
26655 ++
26656 ++  cat >>$CONFIG_STATUS <<\_ACEOF
26657 ++  # Split the substitutions into bite-sized pieces for seds with
26658 ++  # small command number limits, like on Digital OSF/1 and HP-UX.
26659 ++  ac_max_sed_lines=48
26660 ++  ac_sed_frag=1 # Number of current file.
26661 ++  ac_beg=1 # First line for current file.
26662 ++  ac_end=$ac_max_sed_lines # Line after last line for current file.
26663 ++  ac_more_lines=:
26664 ++  ac_sed_cmds=
26665 ++  while $ac_more_lines; do
26666 ++    if test $ac_beg -gt 1; then
26667 ++      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26668 ++    else
26669 ++      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26670 ++    fi
26671 ++    if test ! -s $tmp/subs.frag; then
26672 ++      ac_more_lines=false
26673 ++    else
26674 ++      # The purpose of the label and of the branching condition is to
26675 ++      # speed up the sed processing (if there are no `@' at all, there
26676 ++      # is no need to browse any of the substitutions).
26677 ++      # These are the two extra sed commands mentioned above.
26678 ++      (echo ':t
26679 ++  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26680 ++      if test -z "$ac_sed_cmds"; then
26681 ++      ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26682 ++      else
26683 ++      ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26684 ++      fi
26685 ++      ac_sed_frag=`expr $ac_sed_frag + 1`
26686 ++      ac_beg=$ac_end
26687 ++      ac_end=`expr $ac_end + $ac_max_sed_lines`
26688 ++    fi
26689 ++  done
26690 ++  if test -z "$ac_sed_cmds"; then
26691 ++    ac_sed_cmds=cat
26692 ++  fi
26693 ++fi # test -n "$CONFIG_FILES"
26694
26695 +-  case "$ac_given_INSTALL" in
26696 +-  [/$]*) INSTALL="$ac_given_INSTALL" ;;
26697 +-  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
26698 ++_ACEOF
26699 ++cat >>$CONFIG_STATUS <<\_ACEOF
26700 ++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26701 ++  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26702 ++  case $ac_file in
26703 ++  - | *:- | *:-:* ) # input from stdin
26704 ++      cat >$tmp/stdin
26705 ++      ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26706 ++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26707 ++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26708 ++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26709 ++  * )   ac_file_in=$ac_file.in ;;
26710 +   esac
26711
26712 +-  echo creating "$ac_file"
26713 +-  rm -f "$ac_file"
26714 +-  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
26715 +-  case "$ac_file" in
26716 +-  *Makefile*) ac_comsub="1i\\
26717 +-# $configure_input" ;;
26718 +-  *) ac_comsub= ;;
26719 ++  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26720 ++  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26721 ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26722 ++       X"$ac_file" : 'X\(//\)[^/]' \| \
26723 ++       X"$ac_file" : 'X\(//\)$' \| \
26724 ++       X"$ac_file" : 'X\(/\)' \| \
26725 ++       .     : '\(.\)' 2>/dev/null ||
26726 ++echo X"$ac_file" |
26727 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26728 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26729 ++        /^X\(\/\/\)$/{ s//\1/; q; }
26730 ++        /^X\(\/\).*/{ s//\1/; q; }
26731 ++        s/.*/./; q'`
26732 ++  { if $as_mkdir_p; then
26733 ++    mkdir -p "$ac_dir"
26734 ++  else
26735 ++    as_dir="$ac_dir"
26736 ++    as_dirs=
26737 ++    while test ! -d "$as_dir"; do
26738 ++      as_dirs="$as_dir $as_dirs"
26739 ++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26740 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26741 ++       X"$as_dir" : 'X\(//\)[^/]' \| \
26742 ++       X"$as_dir" : 'X\(//\)$' \| \
26743 ++       X"$as_dir" : 'X\(/\)' \| \
26744 ++       .     : '\(.\)' 2>/dev/null ||
26745 ++echo X"$as_dir" |
26746 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26747 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26748 ++        /^X\(\/\/\)$/{ s//\1/; q; }
26749 ++        /^X\(\/\).*/{ s//\1/; q; }
26750 ++        s/.*/./; q'`
26751 ++    done
26752 ++    test ! -n "$as_dirs" || mkdir $as_dirs
26753 ++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26754 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26755 ++   { (exit 1); exit 1; }; }; }
26756 ++
26757 ++  ac_builddir=.
26758 ++
26759 ++if test "$ac_dir" != .; then
26760 ++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26761 ++  # A "../" for each directory in $ac_dir_suffix.
26762 ++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26763 ++else
26764 ++  ac_dir_suffix= ac_top_builddir=
26765 ++fi
26766 ++
26767 ++case $srcdir in
26768 ++  .)  # No --srcdir option.  We are building in place.
26769 ++    ac_srcdir=.
26770 ++    if test -z "$ac_top_builddir"; then
26771 ++       ac_top_srcdir=.
26772 ++    else
26773 ++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26774 ++    fi ;;
26775 ++  [\\/]* | ?:[\\/]* )  # Absolute path.
26776 ++    ac_srcdir=$srcdir$ac_dir_suffix;
26777 ++    ac_top_srcdir=$srcdir ;;
26778 ++  *) # Relative path.
26779 ++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26780 ++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26781 ++esac
26782 ++
26783 ++# Do not use `cd foo && pwd` to compute absolute paths, because
26784 ++# the directories may not exist.
26785 ++case `pwd` in
26786 ++.) ac_abs_builddir="$ac_dir";;
26787 ++*)
26788 ++  case "$ac_dir" in
26789 ++  .) ac_abs_builddir=`pwd`;;
26790 ++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26791 ++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
26792 ++  esac;;
26793 ++esac
26794 ++case $ac_abs_builddir in
26795 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
26796 ++*)
26797 ++  case ${ac_top_builddir}. in
26798 ++  .) ac_abs_top_builddir=$ac_abs_builddir;;
26799 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26800 ++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26801 ++  esac;;
26802 ++esac
26803 ++case $ac_abs_builddir in
26804 ++.) ac_abs_srcdir=$ac_srcdir;;
26805 ++*)
26806 ++  case $ac_srcdir in
26807 ++  .) ac_abs_srcdir=$ac_abs_builddir;;
26808 ++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26809 ++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26810 ++  esac;;
26811 ++esac
26812 ++case $ac_abs_builddir in
26813 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
26814 ++*)
26815 ++  case $ac_top_srcdir in
26816 ++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
26817 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26818 ++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26819 ++  esac;;
26820 ++esac
26821 ++
26822 ++
26823 ++  case $INSTALL in
26824 ++  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26825 ++  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26826 +   esac
26827
26828 +-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
26829 +-  sed -e "$ac_comsub
26830 +-s%@configure_input@%$configure_input%g
26831 +-s%@srcdir@%$srcdir%g
26832 +-s%@top_srcdir@%$top_srcdir%g
26833 +-s%@INSTALL@%$INSTALL%g
26834 +-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
26835 +-fi; done
26836 +-rm -f conftest.s*
26837 ++  # Let's still pretend it is `configure' which instantiates (i.e., don't
26838 ++  # use $as_me), people would be surprised to read:
26839 ++  #    /* config.h.  Generated by config.status.  */
26840 ++  if test x"$ac_file" = x-; then
26841 ++    configure_input=
26842 ++  else
26843 ++    configure_input="$ac_file.  "
26844 ++  fi
26845 ++  configure_input=$configure_input"Generated from `echo $ac_file_in |
26846 ++                                   sed 's,.*/,,'` by configure."
26847 ++
26848 ++  # First look for the input files in the build tree, otherwise in the
26849 ++  # src tree.
26850 ++  ac_file_inputs=`IFS=:
26851 ++    for f in $ac_file_in; do
26852 ++      case $f in
26853 ++      -) echo $tmp/stdin ;;
26854 ++      [\\/$]*)
26855 ++       # Absolute (can't be DOS-style, as IFS=:)
26856 ++       test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26857 ++echo "$as_me: error: cannot find input file: $f" >&2;}
26858 ++   { (exit 1); exit 1; }; }
26859 ++       echo "$f";;
26860 ++      *) # Relative
26861 ++       if test -f "$f"; then
26862 ++         # Build tree
26863 ++         echo "$f"
26864 ++       elif test -f "$srcdir/$f"; then
26865 ++         # Source tree
26866 ++         echo "$srcdir/$f"
26867 ++       else
26868 ++         # /dev/null tree
26869 ++         { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26870 ++echo "$as_me: error: cannot find input file: $f" >&2;}
26871 ++   { (exit 1); exit 1; }; }
26872 ++       fi;;
26873 ++      esac
26874 ++    done` || { (exit 1); exit 1; }
26875 ++
26876 ++  if test x"$ac_file" != x-; then
26877 ++    { echo "$as_me:$LINENO: creating $ac_file" >&5
26878 ++echo "$as_me: creating $ac_file" >&6;}
26879 ++    rm -f "$ac_file"
26880 ++  fi
26881 ++_ACEOF
26882 ++cat >>$CONFIG_STATUS <<_ACEOF
26883 ++  sed "$ac_vpsub
26884 ++$extrasub
26885 ++_ACEOF
26886 ++cat >>$CONFIG_STATUS <<\_ACEOF
26887 ++:t
26888 ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26889 ++s,@configure_input@,$configure_input,;t t
26890 ++s,@srcdir@,$ac_srcdir,;t t
26891 ++s,@abs_srcdir@,$ac_abs_srcdir,;t t
26892 ++s,@top_srcdir@,$ac_top_srcdir,;t t
26893 ++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26894 ++s,@builddir@,$ac_builddir,;t t
26895 ++s,@abs_builddir@,$ac_abs_builddir,;t t
26896 ++s,@top_builddir@,$ac_top_builddir,;t t
26897 ++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26898 ++s,@INSTALL@,$ac_INSTALL,;t t
26899 ++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26900 ++  rm -f $tmp/stdin
26901 ++  if test x"$ac_file" != x-; then
26902 ++    mv $tmp/out $ac_file
26903 ++  else
26904 ++    cat $tmp/out
26905 ++    rm -f $tmp/out
26906 ++  fi
26907 ++
26908 ++done
26909 ++_ACEOF
26910 ++cat >>$CONFIG_STATUS <<\_ACEOF
26911 ++
26912 ++#
26913 ++# CONFIG_HEADER section.
26914 ++#
26915
26916 + # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26917 + # NAME is the cpp macro being defined and VALUE is the value it is being given.
26918 + #
26919 + # ac_d sets the value in "#define NAME VALUE" lines.
26920 +-ac_dA='s%^\([         ]*\)#\([        ]*define[       ][      ]*\)'
26921 +-ac_dB='\([    ][      ]*\)[^  ]*%\1#\2'
26922 +-ac_dC='\3'
26923 +-ac_dD='%g'
26924 +-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
26925 +-ac_uA='s%^\([         ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26926 +-ac_uB='\([    ]\)%\1#\2define\3'
26927 ++ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
26928 ++ac_dB='[       ].*$,\1#\2'
26929 ++ac_dC=' '
26930 ++ac_dD=',;t'
26931 ++# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26932 ++ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26933 ++ac_uB='$,\1#\2define\3'
26934 + ac_uC=' '
26935 +-ac_uD='\4%g'
26936 +-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26937 +-ac_eA='s%^\([         ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26938 +-ac_eB='$%\1#\2define\3'
26939 +-ac_eC=' '
26940 +-ac_eD='%g'
26941 +-
26942 +-if test "${CONFIG_HEADERS+set}" != set; then
26943 +-EOF
26944 +-cat >> $CONFIG_STATUS <<EOF
26945 +-  CONFIG_HEADERS="src/config.h:src/config.in"
26946 +-EOF
26947 +-cat >> $CONFIG_STATUS <<\EOF
26948 +-fi
26949 +-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
26950 ++ac_uD=',;t'
26951 ++
26952 ++for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26953 +   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26954 +-  case "$ac_file" in
26955 +-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
26956 +-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26957 +-  *) ac_file_in="${ac_file}.in" ;;
26958 ++  case $ac_file in
26959 ++  - | *:- | *:-:* ) # input from stdin
26960 ++      cat >$tmp/stdin
26961 ++      ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26962 ++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26963 ++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26964 ++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26965 ++  * )   ac_file_in=$ac_file.in ;;
26966 +   esac
26967
26968 +-  echo creating $ac_file
26969 ++  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26970 ++echo "$as_me: creating $ac_file" >&6;}
26971
26972 +-  rm -f conftest.frag conftest.in conftest.out
26973 +-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
26974 +-  cat $ac_file_inputs > conftest.in
26975 +-
26976 +-EOF
26977 +-
26978 +-# Transform confdefs.h into a sed script conftest.vals that substitutes
26979 +-# the proper values into config.h.in to produce config.h.  And first:
26980 +-# Protect against being on the right side of a sed subst in config.status.
26981 +-# Protect against being in an unquoted here document in config.status.
26982 +-rm -f conftest.vals
26983 +-cat > conftest.hdr <<\EOF
26984 +-s/[\\&%]/\\&/g
26985 +-s%[\\$`]%\\&%g
26986 +-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
26987 +-s%ac_d%ac_u%gp
26988 +-s%ac_u%ac_e%gp
26989 +-EOF
26990 +-sed -n -f conftest.hdr confdefs.h > conftest.vals
26991 +-rm -f conftest.hdr
26992 ++  # First look for the input files in the build tree, otherwise in the
26993 ++  # src tree.
26994 ++  ac_file_inputs=`IFS=:
26995 ++    for f in $ac_file_in; do
26996 ++      case $f in
26997 ++      -) echo $tmp/stdin ;;
26998 ++      [\\/$]*)
26999 ++       # Absolute (can't be DOS-style, as IFS=:)
27000 ++       test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27001 ++echo "$as_me: error: cannot find input file: $f" >&2;}
27002 ++   { (exit 1); exit 1; }; }
27003 ++       # Do quote $f, to prevent DOS paths from being IFS'd.
27004 ++       echo "$f";;
27005 ++      *) # Relative
27006 ++       if test -f "$f"; then
27007 ++         # Build tree
27008 ++         echo "$f"
27009 ++       elif test -f "$srcdir/$f"; then
27010 ++         # Source tree
27011 ++         echo "$srcdir/$f"
27012 ++       else
27013 ++         # /dev/null tree
27014 ++         { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27015 ++echo "$as_me: error: cannot find input file: $f" >&2;}
27016 ++   { (exit 1); exit 1; }; }
27017 ++       fi;;
27018 ++      esac
27019 ++    done` || { (exit 1); exit 1; }
27020 ++  # Remove the trailing spaces.
27021 ++  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
27022 ++
27023 ++_ACEOF
27024 ++
27025 ++# Transform confdefs.h into two sed scripts, `conftest.defines' and
27026 ++# `conftest.undefs', that substitutes the proper values into
27027 ++# config.h.in to produce config.h.  The first handles `#define'
27028 ++# templates, and the second `#undef' templates.
27029 ++# And first: Protect against being on the right side of a sed subst in
27030 ++# config.status.  Protect against being in an unquoted here document
27031 ++# in config.status.
27032 ++rm -f conftest.defines conftest.undefs
27033 ++# Using a here document instead of a string reduces the quoting nightmare.
27034 ++# Putting comments in sed scripts is not portable.
27035 ++#
27036 ++# `end' is used to avoid that the second main sed command (meant for
27037 ++# 0-ary CPP macros) applies to n-ary macro definitions.
27038 ++# See the Autoconf documentation for `clear'.
27039 ++cat >confdef2sed.sed <<\_ACEOF
27040 ++s/[\\&,]/\\&/g
27041 ++s,[\\$`],\\&,g
27042 ++t clear
27043 ++: clear
27044 ++s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27045 ++t end
27046 ++s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27047 ++: end
27048 ++_ACEOF
27049 ++# If some macros were called several times there might be several times
27050 ++# the same #defines, which is useless.  Nevertheless, we may not want to
27051 ++# sort them, since we want the *last* AC-DEFINE to be honored.
27052 ++uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27053 ++sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27054 ++rm -f confdef2sed.sed
27055
27056 + # This sed command replaces #undef with comments.  This is necessary, for
27057 + # example, in the case of _POSIX_SOURCE, which is predefined and required
27058 + # on some systems where configure will not decide to define it.
27059 +-cat >> conftest.vals <<\EOF
27060 +-s%^[  ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
27061 +-EOF
27062 +-
27063 +-# Break up conftest.vals because some shells have a limit on
27064 +-# the size of here documents, and old seds have small limits too.
27065 +-
27066 ++cat >>conftest.undefs <<\_ACEOF
27067 ++s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27068 ++_ACEOF
27069 ++
27070 ++# Break up conftest.defines because some shells have a limit on the size
27071 ++# of here documents, and old seds have small limits too (100 cmds).
27072 ++echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27073 ++echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27074 ++echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27075 ++echo '  :' >>$CONFIG_STATUS
27076 ++rm -f conftest.tail
27077 ++while grep . conftest.defines >/dev/null
27078 ++do
27079 ++  # Write a limited-size here document to $tmp/defines.sed.
27080 ++  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27081 ++  # Speed up: don't consider the non `#define' lines.
27082 ++  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
27083 ++  # Work around the forget-to-reset-the-flag bug.
27084 ++  echo 't clr' >>$CONFIG_STATUS
27085 ++  echo ': clr' >>$CONFIG_STATUS
27086 ++  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27087 ++  echo 'CEOF
27088 ++  sed -f $tmp/defines.sed $tmp/in >$tmp/out
27089 ++  rm -f $tmp/in
27090 ++  mv $tmp/out $tmp/in
27091 ++' >>$CONFIG_STATUS
27092 ++  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27093 ++  rm -f conftest.defines
27094 ++  mv conftest.tail conftest.defines
27095 ++done
27096 ++rm -f conftest.defines
27097 ++echo '  fi # grep' >>$CONFIG_STATUS
27098 ++echo >>$CONFIG_STATUS
27099 ++
27100 ++# Break up conftest.undefs because some shells have a limit on the size
27101 ++# of here documents, and old seds have small limits too (100 cmds).
27102 ++echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27103 + rm -f conftest.tail
27104 +-while :
27105 ++while grep . conftest.undefs >/dev/null
27106 + do
27107 +-  ac_lines=`grep -c . conftest.vals`
27108 +-  # grep -c gives empty output for an empty file on some AIX systems.
27109 +-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
27110 +-  # Write a limited-size here document to conftest.frag.
27111 +-  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
27112 +-  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
27113 ++  # Write a limited-size here document to $tmp/undefs.sed.
27114 ++  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27115 ++  # Speed up: don't consider the non `#undef'
27116 ++  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27117 ++  # Work around the forget-to-reset-the-flag bug.
27118 ++  echo 't clr' >>$CONFIG_STATUS
27119 ++  echo ': clr' >>$CONFIG_STATUS
27120 ++  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27121 +   echo 'CEOF
27122 +-  sed -f conftest.frag conftest.in > conftest.out
27123 +-  rm -f conftest.in
27124 +-  mv conftest.out conftest.in
27125 +-' >> $CONFIG_STATUS
27126 +-  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
27127 +-  rm -f conftest.vals
27128 +-  mv conftest.tail conftest.vals
27129 +-done
27130 +-rm -f conftest.vals
27131 +-
27132 +-cat >> $CONFIG_STATUS <<\EOF
27133 +-  rm -f conftest.frag conftest.h
27134 +-  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
27135 +-  cat conftest.in >> conftest.h
27136 +-  rm -f conftest.in
27137 +-  if cmp -s $ac_file conftest.h 2>/dev/null; then
27138 +-    echo "$ac_file is unchanged"
27139 +-    rm -f conftest.h
27140 +-  else
27141 +-    # Remove last slash and all that follows it.  Not all systems have dirname.
27142 +-      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
27143 +-      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
27144 +-      # The file is in a subdirectory.
27145 +-      test ! -d "$ac_dir" && mkdir "$ac_dir"
27146 ++  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27147 ++  rm -f $tmp/in
27148 ++  mv $tmp/out $tmp/in
27149 ++' >>$CONFIG_STATUS
27150 ++  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27151 ++  rm -f conftest.undefs
27152 ++  mv conftest.tail conftest.undefs
27153 ++done
27154 ++rm -f conftest.undefs
27155 ++
27156 ++cat >>$CONFIG_STATUS <<\_ACEOF
27157 ++  # Let's still pretend it is `configure' which instantiates (i.e., don't
27158 ++  # use $as_me), people would be surprised to read:
27159 ++  #    /* config.h.  Generated by config.status.  */
27160 ++  if test x"$ac_file" = x-; then
27161 ++    echo "/* Generated by configure.  */" >$tmp/config.h
27162 ++  else
27163 ++    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27164 ++  fi
27165 ++  cat $tmp/in >>$tmp/config.h
27166 ++  rm -f $tmp/in
27167 ++  if test x"$ac_file" != x-; then
27168 ++    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27169 ++      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27170 ++echo "$as_me: $ac_file is unchanged" >&6;}
27171 ++    else
27172 ++      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27173 ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27174 ++       X"$ac_file" : 'X\(//\)[^/]' \| \
27175 ++       X"$ac_file" : 'X\(//\)$' \| \
27176 ++       X"$ac_file" : 'X\(/\)' \| \
27177 ++       .     : '\(.\)' 2>/dev/null ||
27178 ++echo X"$ac_file" |
27179 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27180 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27181 ++        /^X\(\/\/\)$/{ s//\1/; q; }
27182 ++        /^X\(\/\).*/{ s//\1/; q; }
27183 ++        s/.*/./; q'`
27184 ++      { if $as_mkdir_p; then
27185 ++    mkdir -p "$ac_dir"
27186 ++  else
27187 ++    as_dir="$ac_dir"
27188 ++    as_dirs=
27189 ++    while test ! -d "$as_dir"; do
27190 ++      as_dirs="$as_dir $as_dirs"
27191 ++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27192 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27193 ++       X"$as_dir" : 'X\(//\)[^/]' \| \
27194 ++       X"$as_dir" : 'X\(//\)$' \| \
27195 ++       X"$as_dir" : 'X\(/\)' \| \
27196 ++       .     : '\(.\)' 2>/dev/null ||
27197 ++echo X"$as_dir" |
27198 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27199 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27200 ++        /^X\(\/\/\)$/{ s//\1/; q; }
27201 ++        /^X\(\/\).*/{ s//\1/; q; }
27202 ++        s/.*/./; q'`
27203 ++    done
27204 ++    test ! -n "$as_dirs" || mkdir $as_dirs
27205 ++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27206 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27207 ++   { (exit 1); exit 1; }; }; }
27208 ++
27209 ++      rm -f $ac_file
27210 ++      mv $tmp/config.h $ac_file
27211 +     fi
27212 +-    rm -f $ac_file
27213 +-    mv conftest.h $ac_file
27214 ++  else
27215 ++    cat $tmp/config.h
27216 ++    rm -f $tmp/config.h
27217 +   fi
27218 +-fi; done
27219 ++done
27220 ++_ACEOF
27221 ++cat >>$CONFIG_STATUS <<\_ACEOF
27222
27223 +-EOF
27224 +-cat >> $CONFIG_STATUS <<EOF
27225 +-GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
27226 +-EOF
27227 +-cat >> $CONFIG_STATUS <<\EOF
27228 ++#
27229 ++# CONFIG_COMMANDS section.
27230 ++#
27231 ++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27232 ++  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27233 ++  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27234 ++  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27235 ++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27236 ++       X"$ac_dest" : 'X\(//\)[^/]' \| \
27237 ++       X"$ac_dest" : 'X\(//\)$' \| \
27238 ++       X"$ac_dest" : 'X\(/\)' \| \
27239 ++       .     : '\(.\)' 2>/dev/null ||
27240 ++echo X"$ac_dest" |
27241 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27242 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27243 ++        /^X\(\/\/\)$/{ s//\1/; q; }
27244 ++        /^X\(\/\).*/{ s//\1/; q; }
27245 ++        s/.*/./; q'`
27246 ++  { if $as_mkdir_p; then
27247 ++    mkdir -p "$ac_dir"
27248 ++  else
27249 ++    as_dir="$ac_dir"
27250 ++    as_dirs=
27251 ++    while test ! -d "$as_dir"; do
27252 ++      as_dirs="$as_dir $as_dirs"
27253 ++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27254 ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27255 ++       X"$as_dir" : 'X\(//\)[^/]' \| \
27256 ++       X"$as_dir" : 'X\(//\)$' \| \
27257 ++       X"$as_dir" : 'X\(/\)' \| \
27258 ++       .     : '\(.\)' 2>/dev/null ||
27259 ++echo X"$as_dir" |
27260 ++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27261 ++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27262 ++        /^X\(\/\/\)$/{ s//\1/; q; }
27263 ++        /^X\(\/\).*/{ s//\1/; q; }
27264 ++        s/.*/./; q'`
27265 ++    done
27266 ++    test ! -n "$as_dirs" || mkdir $as_dirs
27267 ++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27268 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27269 ++   { (exit 1); exit 1; }; }; }
27270 ++
27271 ++  ac_builddir=.
27272 ++
27273 ++if test "$ac_dir" != .; then
27274 ++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27275 ++  # A "../" for each directory in $ac_dir_suffix.
27276 ++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27277 ++else
27278 ++  ac_dir_suffix= ac_top_builddir=
27279 ++fi
27280 ++
27281 ++case $srcdir in
27282 ++  .)  # No --srcdir option.  We are building in place.
27283 ++    ac_srcdir=.
27284 ++    if test -z "$ac_top_builddir"; then
27285 ++       ac_top_srcdir=.
27286 ++    else
27287 ++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27288 ++    fi ;;
27289 ++  [\\/]* | ?:[\\/]* )  # Absolute path.
27290 ++    ac_srcdir=$srcdir$ac_dir_suffix;
27291 ++    ac_top_srcdir=$srcdir ;;
27292 ++  *) # Relative path.
27293 ++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27294 ++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27295 ++esac
27296 ++
27297 ++# Do not use `cd foo && pwd` to compute absolute paths, because
27298 ++# the directories may not exist.
27299 ++case `pwd` in
27300 ++.) ac_abs_builddir="$ac_dir";;
27301 ++*)
27302 ++  case "$ac_dir" in
27303 ++  .) ac_abs_builddir=`pwd`;;
27304 ++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27305 ++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27306 ++  esac;;
27307 ++esac
27308 ++case $ac_abs_builddir in
27309 ++.) ac_abs_top_builddir=${ac_top_builddir}.;;
27310 ++*)
27311 ++  case ${ac_top_builddir}. in
27312 ++  .) ac_abs_top_builddir=$ac_abs_builddir;;
27313 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27314 ++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27315 ++  esac;;
27316 ++esac
27317 ++case $ac_abs_builddir in
27318 ++.) ac_abs_srcdir=$ac_srcdir;;
27319 ++*)
27320 ++  case $ac_srcdir in
27321 ++  .) ac_abs_srcdir=$ac_abs_builddir;;
27322 ++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27323 ++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27324 ++  esac;;
27325 ++esac
27326 ++case $ac_abs_builddir in
27327 ++.) ac_abs_top_srcdir=$ac_top_srcdir;;
27328 ++*)
27329 ++  case $ac_top_srcdir in
27330 ++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27331 ++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27332 ++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27333 ++  esac;;
27334 ++esac
27335
27336
27337 ++  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27338 ++echo "$as_me: executing $ac_dest commands" >&6;}
27339 ++  case $ac_dest in
27340 ++    default )
27341 ++
27342 + ### Make the necessary directories, if they don't exist.
27343 + for dir in etc lisp ; do
27344 +   test -d ${dir} || mkdir ${dir}
27345 +@@ -9712,7 +19059,7 @@
27346 + # the C preprocessor to some helpful value like 1, or maybe the empty
27347 + # string.  Needless to say consequent macro substitutions are less
27348 + # than conducive to the makefile finding the correct directory.
27349 +-undefs="`echo $top_srcdir $configuration $canonical |
27350 ++undefs="`echo $ac_top_srcdir $configuration $canonical |
27351 + sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
27352 +     -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27353 + `"
27354 +@@ -9735,7 +19082,7 @@
27355 +   sed -e '1,/start of cpp stuff/d'\
27356 +       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27357 +       < Makefile.c > junk.c
27358 +-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
27359 ++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
27360 +       sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
27361 +   cat junk1.c junk2.c > Makefile.new
27362 +   rm -f junk.c junk1.c junk2.c
27363 +@@ -9751,7 +19098,7 @@
27364 +   sed -e '1,/start of cpp stuff/d'\
27365 +       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27366 +       < Makefile.c > junk.c
27367 +-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
27368 ++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
27369 +       sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
27370 +   cat junk1.c junk2.c > Makefile.new
27371 +   rm -f junk.c junk1.c junk2.c
27372 +@@ -9759,19 +19106,46 @@
27373 +   mv -f Makefile.new Makefile
27374 + )
27375
27376 +-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
27377 ++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
27378 +   echo creating src/.gdbinit
27379 +-  echo source $top_srcdir/src/.gdbinit > src/.gdbinit
27380 ++  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
27381 + fi
27382
27383 + # This is how we know whether to re-run configure in certain cases.
27384 + touch src/config.stamp
27385
27386 ++ ;;
27387 ++  esac
27388 ++done
27389 ++_ACEOF
27390 ++
27391 ++cat >>$CONFIG_STATUS <<\_ACEOF
27392
27393 +-exit 0
27394 +-EOF
27395 ++{ (exit 0); exit 0; }
27396 ++_ACEOF
27397 + chmod +x $CONFIG_STATUS
27398 +-rm -fr confdefs* $ac_clean_files
27399 +-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
27400 ++ac_clean_files=$ac_clean_files_save
27401 ++
27402 ++
27403 ++# configure is writing to config.log, and then calls config.status.
27404 ++# config.status does its own redirection, appending to config.log.
27405 ++# Unfortunately, on DOS this fails, as config.log is still kept open
27406 ++# by configure, so config.status won't be able to write to it; its
27407 ++# output is simply discarded.  So we exec the FD to /dev/null,
27408 ++# effectively closing config.log, so it can be properly (re)opened and
27409 ++# appended to by config.status.  When coming back to configure, we
27410 ++# need to make the FD available again.
27411 ++if test "$no_create" != yes; then
27412 ++  ac_cs_success=:
27413 ++  ac_config_status_args=
27414 ++  test "$silent" = yes &&
27415 ++    ac_config_status_args="$ac_config_status_args --quiet"
27416 ++  exec 5>/dev/null
27417 ++  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27418 ++  exec 5>>config.log
27419 ++  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27420 ++  # would make configure fail if this is the last instruction.
27421 ++  $ac_cs_success || { (exit 1); exit 1; }
27422 ++fi
27423
27424
27425 --- emacs-21.3.orig/debian/TODO
27426 +++ emacs-21.3/debian/TODO
27427 @@ -0,0 +1,15 @@
27428 +-*-text-*-
27429 +
27430 +* add a "latest emacs" meta-package?  (bug 82687)
27431 +
27432 +* add "check" and check-installed infrastructure to debian/rules
27433 +
27434 +* check on tmp-alt-list -- do we still need it -- is it working?
27435 +
27436 +* Decide what to do with emacsclient-plus.
27437 +
27438 +* See about breaking movemail out as a separate program.
27439 +
27440 +* the x and -nox versions should be able to use the same DOC file.
27441 +
27442 +* check with upstream about x-vs-nox "sort/copy-sequence" fix.
27443 --- emacs-21.3.orig/debian/bin/info/install-info
27444 +++ emacs-21.3/debian/bin/info/install-info
27445 @@ -0,0 +1,5 @@
27446 +#!/bin/sh
27447 +
27448 +# Dummy script to fool emacs install into thinking it did something useful.
27449 +
27450 +exit 0
27451 --- emacs-21.3.orig/debian/gnu-32x32.xpm
27452 +++ emacs-21.3/debian/gnu-32x32.xpm
27453 @@ -0,0 +1,59 @@
27454 +/* XPM */
27455 +static char * gnu_32x32_xpm[] = {
27456 +"32 32 24 1",
27457 +"      c None",
27458 +".     c #000000",
27459 +"+     c #7F7F7F",
27460 +"@     c #CCCCCC",
27461 +"#     c #0000FF",
27462 +"$     c #FFFF00",
27463 +"%     c #007F7F",
27464 +"&     c #333333",
27465 +"*     c #B2B2B2",
27466 +"=     c #FFFFFF",
27467 +"-     c #7F007F",
27468 +";     c #00FF00",
27469 +">     c #00007F",
27470 +",     c #7F7F00",
27471 +"'     c #191919",
27472 +")     c #FF0000",
27473 +"!     c #007F00",
27474 +"~     c #666667",
27475 +"{     c #E5E5E5",
27476 +"]     c #00FFFF",
27477 +"^     c #FF00FF",
27478 +"/     c #4C4C4C",
27479 +"(     c #999999",
27480 +"_     c #7F0000",
27481 +"                                ",
27482 +"                       _        ",
27483 +"                        _       ",
27484 +"                         __     ",
27485 +"       _          _       __    ",
27486 +"      _       __ ____      __   ",
27487 +"     __    ___________     __   ",
27488 +"    __    _____________   ___   ",
27489 +"   ___   _______________ ____   ",
27490 +"   ___  ______+(/+(~/~(+/&_&_   ",
27491 +"   ___  _____+++@==@((@{@@@~~   ",
27492 +"   _________++*=={{@@++*@*{==(  ",
27493 +"   ________(+(~+*@@*@@+~   ~+   ",
27494 +"   _______(@+(~{=*+*@@@+/       ",
27495 +"     ___~{{/*/*##*(+@@@(/       ",
27496 +"      _@==(+{+*#/@/+@@@*/       ",
27497 +"     +=@~/~=+@===*{@@@@*~       ",
27498 +"     +*//~+***=*++{@@@@@~/      ",
27499 +"       /++(**~@=({{{@@@@(/      ",
27500 +"       ~*~((((*@{===@@@@@(      ",
27501 +"      /+@(/~{(*=*{==={@@(~      ",
27502 +"      /~@@+(*@+(*+*/~~*(/_/     ",
27503 +"      /+@@~*~((*(+*___//_//     ",
27504 +"       /(@++((*~(+/&_____//     ",
27505 +"       /+@@++~+@/*//____&/      ",
27506 +"        /*@(~++(+///&___&/      ",
27507 +"        /+@@@+*~~*(//___//      ",
27508 +"         /+*@@(*/@+///_&/       ",
27509 +"          //(@@@+~/  ///        ",
27510 +"            /~@@//              ",
27511 +"              /~                ",
27512 +"                                "};
27513 --- emacs-21.3.orig/debian/mangle-info
27514 +++ emacs-21.3/debian/mangle-info
27515 @@ -0,0 +1,17 @@
27516 +#!/usr/bin/perl -w -i
27517 +
27518 +use English;
27519 +use strict;
27520 +
27521 +$RS = undef;
27522 +
27523 +my $prefix = $ENV{"DEBIAN_INFO_PREFIX"};
27524 +
27525 +my $x = <>;
27526 +if(!($x =~ m/^(\s*START-INFO-DIR-ENTRY\s+\*\s*[^:]+:\s*)\(([^\)]+)\)/mo)) {
27527 +  die "Couldn't find START-INFO-DIR-ENTRY.";
27528 +}
27529 +   
27530 +print ${PREMATCH};
27531 +print "$1($prefix/$2)";
27532 +print ${POSTMATCH};
27533 --- emacs-21.3.orig/debian/emacs.prerm
27534 +++ emacs-21.3/debian/emacs.prerm
27535 @@ -0,0 +1,22 @@
27536 +#!/bin/sh
27537 +
27538 +set -e
27539 +
27540 +MAJOR=@MAJOR_VERSION@
27541 +
27542 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
27543 +then
27544 +  rm -f /usr/doc/@PKG_NAME@
27545 +fi
27546 +
27547 +# update-alternatives on things that collide with xemacs, other editors
27548 +if [ "$1" != "upgrade" ]
27549 +then
27550 +  update-alternatives --remove emacs /usr/bin/emacs${MAJOR}-@X_SUPPORT@
27551 +  update-alternatives --remove editor /usr/bin/emacs${MAJOR}
27552 +fi
27553 +
27554 +# emacsen-common registration.
27555 +/usr/lib/emacsen-common/emacs-remove emacs${MAJOR}
27556 +
27557 +exit 0
27558 --- emacs-21.3.orig/debian/emacs-common.prerm
27559 +++ emacs-21.3/debian/emacs-common.prerm
27560 @@ -0,0 +1,25 @@
27561 +#!/bin/sh
27562 +
27563 +set -e
27564 +
27565 +MAJOR=@MAJOR_VERSION@
27566 +MINOR=@MINOR_VERSION@
27567 +FULL=@FULL_VERSION@
27568 +INFOFILES="@INFOFILES@"
27569 +
27570 +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
27571 +then
27572 +  rm -f /usr/doc/@PKG_NAME@
27573 +fi
27574 +
27575 +for file in ${INFOFILES}
27576 +do
27577 +  install-info --quiet --remove-exactly emacs-${MAJOR}/${file} || true
27578 +done
27579 +
27580 +# emacsen-common/emacs-remove used to be here.
27581 +
27582 +(rmdir /usr/local/share/emacs/${FULL}/site-lisp 2>/dev/null && \
27583 + rmdir /usr/local/share/emacs/${FULL}           2>/dev/null) || true
27584 +
27585 +exit 0
27586 --- emacs-21.3.orig/debian/README.binpkg.in
27587 +++ emacs-21.3/debian/README.binpkg.in
27588 @@ -0,0 +1,3 @@
27589 +
27590 +Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/ as the primary
27591 +documentation directory.
27592 --- emacs-21.3.orig/debian/emacs.preinst
27593 +++ emacs-21.3/debian/emacs.preinst
27594 @@ -0,0 +1,7 @@
27595 +#!/bin/sh -e
27596 +
27597 +MAJOR=@MAJOR_VERSION@
27598 +MINOR=@MINOR_VERSION@
27599 +FULL=@FULL_VERSION@
27600 +
27601 +exit 0
27602 --- emacs-21.3.orig/debian/copyright
27603 +++ emacs-21.3/debian/copyright
27604 @@ -0,0 +1,36 @@
27605 +-*-text-*-
27606 +
27607 +This package was debianized by Rob Browning <rlb@defaultvalue.org> on
27608 +Tue, 16 Dec 1997 00:05:45 -0600.
27609 +
27610 +The source is a combination of the following files:
27611 +
27612 +  prep.ai.mit.edu:/pub/gnu/emacs/emacs-21.3.tar.gz
27613 +  prep.ai.mit.edu:/pub/gnu/emacs/leim-21.3.tar.gz
27614 +
27615 +Copyright:
27616 +
27617 +  GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
27618 +  1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
27619 +  59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
27620 +  under the terms of the GPL.  See the file
27621 +  /usr/share/common-licenses/GPL for more information.
27622 +
27623 +  The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
27624 +  1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
27625 +  Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
27626 +  USA.  It is covered under the terms of the GNU Free Documentation
27627 +  License, version 1.1 or later.  See node `GNU Free Documentation
27628 +  License' in the Info manual (emacs) for details.
27629 +
27630 +  The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
27631 +  Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
27632 +  1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
27633 +  Place, Suite 330 Boston, MA 02111-1307 USA.  They are covered under
27634 +  the terms of the GNU Free Documentation License, version 1.1 or
27635 +  later.  See node `GNU Free Documentation License' in the Info manual
27636 +  (emacs) for details.
27637
27638 +Please see /usr/share/doc/emacs21-common/README.Debian.gz for a
27639 +description of the Debian specific differences from the upstream
27640 +version.
27641 --- emacs-21.3.orig/debian/rules
27642 +++ emacs-21.3/debian/rules
27643 @@ -0,0 +1,791 @@
27644 +#!/usr/bin/make -f
27645 +
27646 +# This file is licensed under the terms of the Gnu Public License.
27647 +# With the one additional provision that Ian Jackson's name may not be
27648 +# removed from the file.
27649 +
27650 +# Copyright 1994,1995 by Ian Jackson.
27651 +# Copyright 1998-2001 Rob Browning <rlb@defaultvalue.org>.
27652 +
27653 +# Originally copied from the GNU Hello Debian rules file (1.3).
27654 +# modified for emacs by Mark Eichin <eichin@kitten.gen.ma.us>
27655 +# modified for emacs20 by Rob Browning <rlb@defaultvalue.org>
27656 +# modified for emacs21 by Rob Browning <rlb@defaultvalue.org>
27657 +
27658 +include /usr/share/dpatch/dpatch.make
27659 +PACKAGE := emacs21
27660 +
27661 +SHELL := /bin/bash
27662 +pwd := $(shell pwd)
27663 +
27664 +DEB_TRASH :=
27665 +
27666 +# For now we assume that emacs' versioning scheme is always
27667 +# MAJOR.MINORtinyrev where MAJOR and MINOR are integers and tinyrev is
27668 +# an optional lowercase letter (or letters).  We also assume that
27669 +# upstream uses a numbering scheme that sorts in a "Debian friendly"
27670 +# way.  So far that's always been true.  If it becomes false, some of
27671 +# the values below will have to be set manually.
27672 +
27673 +# At the moment, we try to make it so that a "debian/rules clean" will
27674 +# get you back to the same state you were in before "debian/rules
27675 +# build".  With the original upstream source that's somewhat tricky
27676 +# because they ship the .elc files, but we need to re-build them when
27677 +# we patch the corresponding .el files.  This is further complicated
27678 +# by the fact that any of these .el files may have macros, and if
27679 +# those are changed, then any other .el files that use those macros
27680 +# must also be recompiled.  Over time (over the years), we've tried
27681 +# various ways to handle this problem, originally by trying to keep
27682 +# track of which files need to be recompiled and only recompiling
27683 +# those, then later by just re-building all the .elc files with "make
27684 +# bootstrap".  In either case, if you don't want to have diff bloat,
27685 +# you have to do something to keep track of the original .elc files so
27686 +# you can restore them during make clean.
27687 +
27688 +# All of this was a lot of work, and was using quite a bit of
27689 +# unnecessary storage both in the .orig.tar.gz and during the package
27690 +# build.  So in order to avoid this, and to dramatically simplify
27691 +# things, we now just remove the .elc files from the upstream
27692 +# distribution whenever we create the debian .orig.tar.gz file for a
27693 +# given upstream release.  Since were always clobbering all of the
27694 +# .elc files during the package build anyway, this shouldn't be any
27695 +# great loss, and it also means that "debian/rules clean" is now a
27696 +# simple matter of little more than a "make distclean" followed by a
27697 +# purge of all the remaining .elc files.
27698 +
27699 +# NOTE -- emacs doesn't respect .elc files in VPATH build.  They're
27700 +# modified in srcdir, not builddir.  We don't worry about this because
27701 +# it shouldn't affect our builds ATM, but if we ever have more than
27702 +# one emacs configuration which could produce differing .elc files,
27703 +# we'll need to be careful -- probably have to build completely
27704 +# separate packages from completely separate source trees.
27705 +
27706 +# For now we handle the autofiles.diff file separately from the other
27707 +# dpatch patches.  This is so that we don't have to worry about
27708 +# possible problems with unpatch after a failed automatic diff
27709 +# generation, and so we don't have to try to apply all the patches
27710 +# *except* the autofiles.dpatch during the automatic generation.
27711 +
27712 +# working directly on the source tree, rather than copying to
27713 +# debian/build-src to create the build-src has some drawbacks.  In
27714 +# particular, it makes it a lot easier to get wedged if you don't put
27715 +# the source tree into the right state before starting to edit.  If
27716 +# you make it so that you can't unpatch cleanly then you can get the
27717 +# tree into a can't go forward, can't go back state.
27718 +
27719 +######################################################################
27720 +# Important top-level targets:
27721 +#
27722 +# check-vars - displays how the version number has been parsed.
27723 +# prepare-release - prepare and check debs for upload.
27724 +# autodiff-sync - force a new debian/autofiles.diff to be generated.
27725 +#
27726 +######################################################################
27727 +
27728 +# The version from the changelog (i.e. 20.5-1)
27729 +debian_ver := $(shell dpkg-parsechangelog | egrep '^Version:')
27730 +debian_ver := $(shell echo ${debian_ver} | perl -pe 's/Version:\s+//o')
27731 +# The Debian revision (i.e. the 1 from 20.5-1)
27732 +# Always everything after the last '-'
27733 +debian_rev := $(shell echo ${debian_ver} | perl -pe 's/.*-//o')
27734 +
27735 +# This is the official upstream version (the one in the tarfile names).
27736 +nominal_ver := $(shell echo ${debian_ver} | perl -pe 's/[-+].*?$$//o')
27737 +
27738 +# This must be the version that's actually used at runtime for things
27739 +# like load-path.  It may not be the same as the upstream version
27740 +# (i.e. when you have upstream 20.5a, the functional version may still
27741 +# be 20.5), so we do this by hand.
27742 +runtime_ver := $(shell echo ${nominal_ver} | perl -pe 's/[a-z]+$$//o')
27743 +
27744 +major_ver := $(shell echo ${runtime_ver} | perl -pe 's/\..*$$//o')
27745 +minor_ver := $(shell echo ${runtime_ver} | perl -pe 's/^[^.]*\.//o')
27746 +
27747 +# version for the debian source, i.e. if the upstream is 21.3, this
27748 +# might be 21.3, or it might be 21.3+1 if we've had to have more than
27749 +# one re-release of the upstream source.  Rare, but it happens...
27750 +# Always everything before the last '-'
27751 +debsrc_ver := $(shell echo ${debian_ver} | perl -pe 's/-[^-]+$$//o')
27752 +
27753 +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
27754 +DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
27755 +
27756 +DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
27757 +DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
27758 +
27759 +ifndef DEB_HOST_GNU_TYPE
27760 +  ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
27761 +    DEB_HOST_GNU_TYPE := \
27762 +      $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-gnu
27763 +  else
27764 +    DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27765 +  endif
27766 +  export DEB_HOST_GNU_TYPE
27767 +endif
27768 +
27769 +ifndef DEB_BUILD_GNU_TYPE
27770 +  ifeq ($(DEB_BUILD_GNU_SYSTEM), linux)
27771 +    DEB_BUILD_GNU_TYPE := \
27772 +      $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)-gnu
27773 +  else
27774 +    DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
27775 +  endif
27776 +  export DEB_BUILD_GNU_TYPE
27777 +endif
27778 +
27779 +confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
27780 +
27781 +# Uncomment if strip is broken
27782 +# CFLAGS    := -DDEBIAN -O2
27783 +# LDFLAGS   :=
27784 +
27785 +CFLAGS    := -DDEBIAN -g
27786 +
27787 +# fix problem with newer versions of gcc on m68k
27788 +# -O2 causes a build failure (broken byte compiler)
27789 +ifeq (m68k,${DEB_HOST_ARCH})
27790 +  CFLAGS += -O1
27791 +else
27792 +  CFLAGS += -O2
27793 +endif
27794 +
27795 +LDFLAGS   := -g
27796 +
27797 +# These files must always exist, i.e. can't ever be cleaned.
27798 +PERSISTENT_AUTOGEN_FILES := debian/control debian/copyright
27799 +
27800 +NONPERSISTENT_AUTOGEN_FILES := \
27801 +  debian/README \
27802 +  debian/README.binpkg \
27803 +  debian/menu-emacs${major_ver} \
27804 +  debian/menu-emacs${major_ver}-nox \
27805 +  debian/emacs${major_ver}.desktop
27806 +
27807 +DEBPKGFILES := ${PERSISTENT_AUTOGEN_FILES} ${NONPERSISTENT_AUTOGEN_FILES}
27808 +
27809 +# These files may be modified in the *source* tree during the build.
27810 +# Wonder if we could patch emacs to copy/use these files to/from the
27811 +# build tree...
27812 +protected_files := config.sub config.guess lisp/loaddefs.el
27813 +
27814 +local_lpath := /etc/emacs${major_ver}:/etc/emacs
27815 +local_lpath := ${local_lpath}:/usr/local/share/emacs/${runtime_ver}/site-lisp
27816 +local_lpath := ${local_lpath}:/usr/local/share/emacs/site-lisp
27817 +local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/site-lisp
27818 +local_lpath := ${local_lpath}:/usr/share/emacs/site-lisp
27819 +
27820 +# This shouldn't be needed as of 20.3
27821 +local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/leim
27822 +
27823 +target := ${DEB_BUILD_GNU_TYPE}
27824 +movemail_bin := usr/lib/emacs/${runtime_ver}/${target}/movemail
27825 +
27826 +# Info files that are going to show up in the main dir.
27827 +main_dir_info_files := \
27828 +  info \
27829 +  emacs \
27830 +  efaq \
27831 +  cl \
27832 +  dired-x \
27833 +  ediff \
27834 +  pcl-cvs \
27835 +  speedbar \
27836 +  ada-mode \
27837 +  ccmode \
27838 +  ebrowse \
27839 +  idlwave \
27840 +  gnus \
27841 +  message \
27842 +  mh-e \
27843 +  emacs-mime \
27844 +  sc \
27845 +  autotype \
27846 +  eshell \
27847 +  eudc \
27848 +  forms \
27849 +  reftex \
27850 +  widget \
27851 +  woman \
27852 +  viper \
27853 +  vip
27854 +
27855 +
27856 +define checkdir
27857 +       test -f debian/emacs.postinst
27858 +endef
27859 +
27860 +define build_cmd
27861 +       ${MAKE} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
27862 +          prefix=/usr \
27863 +          sharedstatedir=/var/lib \
27864 +          libexecdir=/usr/lib \
27865 +          infodir=/usr/share/info \
27866 +          manext=.1emacs${major_ver} \
27867 +          locallisppath=${local_lpath}
27868 +endef
27869 +
27870 +emacs_inst = (cd debian/${1} && \
27871 +       PATH=${pwd}/debian/bin/info:${PATH} ${MAKE} install \
27872 +               INSTALL_STRIP="-s" \
27873 +               debepkgdir=${pwd}/debian/${2} \
27874 +               prefix=${pwd}/debian/${2}/usr \
27875 +               sharedstatedir=${pwd}/debian/${2}/var/lib \
27876 +               libexecdir=${pwd}/debian/${2}/usr/lib \
27877 +               infodir=${pwd}/debian/${2}/usr/share/info/emacs-${major_ver} \
27878 +               mandir=${pwd}/debian/${2}/usr/share/man \
27879 +               manext=.1emacs${major_ver} \
27880 +               locallisppath=${local_lpath})
27881 +
27882 +define cleanup_all
27883 +       -${MAKE} distclean
27884 +       find -name "*.elc" | xargs --no-run-if-empty rm
27885 +       if [ -e debian/autofiles.diff -a -e debian/stamp/autofiles.patched ]; \
27886 +         then patch -p1 -R -s < debian/autofiles.diff; \
27887 +       fi
27888 +       ${MAKE} -f debian/rules unpatch
27889 +       if [ -e debian/protected-files.tgz ]; then \
27890 +         tar xzpf debian/protected-files.tgz; \
27891 +       fi
27892 +       rm -f debian/protected-files.tgz
27893 +       find -name '*~' | xargs --no-run-if-empty rm -f
27894 +       rm -rf debian/stamp
27895 +       rm -f debian/substvars
27896 +       rm -f ${NONPERSISTENT_AUTOGEN_FILES}
27897 +       rm -rf \
27898 +         debian/autodiff-old \
27899 +         debian/autodiff-new \
27900 +         debian/build-x \
27901 +         debian/build-nox \
27902 +         debian/pkg-x \
27903 +         debian/pkg-nox \
27904 +         debian/pkg-bin-common \
27905 +         debian/pkg-common \
27906 +         debian/pkg-el \
27907 +         debian/pkg-el-all \
27908 +         debian/tmp-alt-list \
27909 +          debian/files*
27910 +       rm -rf ${DEB_TRASH}
27911 +endef
27912 +
27913 +define update_debian_autofiles_diff
27914 +       ${cleanup_all}
27915 +       rm -rf debian/autodiff-old debian/autodiff-new
27916 +       ${MAKE} -f debian/rules patch
27917 +       mkdir debian/autodiff-old
27918 +       cp -a `ls | grep -v debian` debian/autodiff-old
27919 +       cp -a debian/autodiff-old debian/autodiff-new
27920 +        # rm aclocal.m4 so it doesn't confuse newer autoconfs, but touch it
27921 +        # so ./Makefile won't be upset if it's not recreated (b/c not needed).
27922 +       cd debian/autodiff-new && rm -f aclocal.m4 && touch aclocal.m4
27923 +       cd debian/autodiff-new && aclocal
27924 +       cd debian/autodiff-new && autoconf
27925 +       cd debian && diff -ruN -x autom4te.cache autodiff-old autodiff-new \
27926 +         > autofiles.diff.tmp; test $$? -eq 0 -o $$? -eq 1
27927 +       mv debian/autofiles.diff.tmp debian/autofiles.diff
27928 +endef
27929 +DEB_TRASH += debian/autofiles.diff.tmp
27930 +
27931 +define expand_file_subst_vars
27932 +       test -n "${major_ver}" && \
27933 +       perl -p \
27934 +         -e "s/\@PKGNAME\@/${pkg_name}/go;" \
27935 +         -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
27936 +          -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
27937 +          -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
27938 +          -e "s/\@PACKAGE_VERSION\@/${debian_ver}/go;" \
27939 +          -e "s/\@DEBIAN_REV\@/${deb_rev}/go;" \
27940 +          -e "s/\@NOMINAL_VERSION\@/${nominal_ver}/go;" \
27941 +                       > $@ < $<
27942 +endef
27943 +
27944 +check-vars:
27945 +       @echo "pwd: ${pwd}"
27946 +       @echo "debian_ver: ${debian_ver}"
27947 +       @echo "debsrc_ver: ${debsrc_ver}"
27948 +       @echo "debian_rev: ${debian_rev}"
27949 +       @echo "nominal_ver: ${nominal_ver}"
27950 +       @echo "runtime_ver: ${runtime_ver}"
27951 +       @echo "major_ver: ${major_ver}"
27952 +       @echo "minor_ver: ${minor_ver}"
27953 +.PHONY: check-vars
27954 +
27955 +prepare-release:
27956 +       ${checkdir}
27957 +       dpkg-parsechangelog > /dev/null
27958 +        # don't want to be root -- using fakeroot below.
27959 +        # also, stacking fakeroots seems to cause trouble generating diff.
27960 +       test "`whoami`" != root
27961 +        # TODO: make sure we actually installed the binary.
27962 +        # TODO: run tests (use a check target?)
27963 +       @read -p "Regenerate autofiles.diff? [y/n] "; \
27964 +          if test "$${REPLY}" == y; \
27965 +         then \
27966 +           ${MAKE} -f debian/rules autodiff-sync; \
27967 +         else \
27968 +           true; \
27969 +         fi
27970 +       ${MAKE} -f debian/rules clean
27971 +       rm -rf ../deb-tmp
27972 +       mkdir ../deb-tmp
27973 +       svn export . ../deb-tmp/emacs${major_ver}-${debsrc_ver}
27974 +       cd ../deb-tmp \
27975 +         && ln -s ../dist/emacs${major_ver}_${debsrc_ver}.orig.tar.gz .
27976 +       cd ../deb-tmp/emacs${major_ver}-${debsrc_ver} \
27977 +         && dpkg-buildpackage -rfakeroot -D
27978 +       @if [ $$(zgrep '^---' \
27979 +                  ../deb-tmp/emacs${major_ver}_${debian_ver}.diff.gz  \
27980 +                    | grep -v /debian/ | wc -c) -ne 0 ]; \
27981 +       then \
27982 +         echo "Diffs outside debian/ found, please fix and retry."; \
27983 +         echo "This probably means either something wasn't cleaned"; \
27984 +         echo "properly, or you need to do some work in debian/patches."; \
27985 +         false; \
27986 +       else \
27987 +         echo "Everything looks OK.  Ready for release."; \
27988 +       fi
27989 +.PHONY: prepare-release 
27990 +
27991 +# we don't sync this automatically on clean because it's expensive and
27992 +# should only be done by a maintainer with time to deal with any mess
27993 +# it might create.
27994 +autodiff-sync:
27995 +       ${update_debian_autofiles_diff}
27996 +.PHONY: autodiff-sync
27997 +
27998 +debian/autofiles.diff: debian/patches/*.dpatch
27999 +       ${update_debian_autofiles_diff}
28000 +
28001 +debian-sync: ${PERSISTENT_AUTOGEN_FILES}
28002 +
28003 +# we use PHONY because deleting patches won't cause rebuild otherwise.
28004 +debian/README: debian/README.in debian/patches/*.dpatch
28005 +       cd debian && csplit -s -f README. README.in '/@@PATCH_LIST_HERE@@/'
28006 +       cp debian/README.00 debian/README.tmp
28007 +       dpatch-list-patch >> debian/README.tmp
28008 +       tail +1 < debian/README.01 >> debian/README.tmp
28009 +       mv debian/README.tmp debian/README
28010 +.PHONY: debian/README
28011 +DEB_TRASH += debian/README.tmp debian/README.00 debian/README.01
28012 +
28013 +debian/menu-emacs${major_ver}: pkg_name := emacs${major_ver}
28014 +debian/menu-emacs${major_ver}: debian/menu.in
28015 +       ${expand_file_subst_vars}
28016 +
28017 +debian/menu-emacs${major_ver}-nox: pkg_name := emacs${major_ver}-nox
28018 +debian/menu-emacs${major_ver}-nox: debian/menu.in
28019 +       ${expand_file_subst_vars}
28020 +
28021 +debian/emacs${major_ver}.desktop: debian/emacs.desktop
28022 +       ${expand_file_subst_vars}
28023 +
28024 +debian/%: debian/%.in debian/changelog
28025 +       ${expand_file_subst_vars}
28026 +
28027 +debian/protected-files.tgz:
28028 +       tar czpSf debian/protected-files.tgz.tmp ${protected_files}
28029 +       mv debian/protected-files.tgz.tmp $@
28030 +
28031 +patch-stamp: debian/protected-files.tgz
28032 +
28033 +debian/stamp/autofiles.patched: debian/autofiles.diff patch-stamp
28034 +       if test -e debian/autofiles.diff; \
28035 +         then patch -p1 -s < debian/autofiles.diff; \
28036 +       fi
28037 +       cp /usr/share/misc/config.sub .
28038 +       cp /usr/share/misc/config.guess .
28039 +       mkdir -p debian/stamp && touch $@
28040 +
28041 +debian/stamp/setup: debian/stamp/autofiles.patched
28042 +       find debian/bin -type f | xargs chmod 775
28043 +       mkdir -p debian/stamp && touch $@
28044 +
28045 +confflags += --prefix=/usr
28046 +confflags += --sharedstatedir=/var/lib
28047 +confflags += --libexecdir=/usr/lib
28048 +confflags += --localstatedir=/var/lib
28049 +confflags += --infodir=/usr/share/info
28050 +confflags += --mandir=/usr/share/man
28051 +confflags += --with-pop=yes
28052 +
28053 +configure: debian/stamp/configure
28054 +.PHONY: configure
28055 +
28056 +debian/stamp/configure: debian/stamp/configure-x debian/stamp/configure-nox
28057 +       mkdir -p debian/stamp && touch $@
28058 +
28059 +debian/stamp/configure-x: confflags += --with-x=yes
28060 +debian/stamp/configure-x: confflags += --with-x-toolkit=athena
28061 +debian/stamp/configure-x: BUILDDIR := debian/build-x
28062 +
28063 +# For those who prefer the old-style non-toolkit scrollbars, just
28064 +# uncomment this line, and re-build.  The resulting emacsXY package
28065 +# will have the old scrollbars.
28066 +#
28067 +#debian/stamp/configure-x: confflags += --without-toolkit-scroll-bars
28068 +
28069 +debian/stamp/configure-nox: confflags += --with-x=no
28070 +debian/stamp/configure-nox: BUILDDIR := debian/build-nox
28071 +
28072 +debian/stamp/configure-%: debian/stamp/setup
28073 +       ${checkdir}
28074 +       rm -rf ${BUILDDIR}
28075 +       mkdir ${BUILDDIR}
28076 +       cd ${BUILDDIR} && CFLAGS="${CFLAGS}" ../../configure ${confflags}
28077 +        # Because paths-force is called in configure, but configure
28078 +        # doesn't support --locallisppath (do we still need this?)
28079 +       (cd ${BUILDDIR} && ${build_cmd} epaths-force)
28080 +       mkdir -p debian/stamp && touch $@
28081 +
28082 +build: debian/stamp/build
28083 +.PHONY: build
28084 +
28085 +debian/stamp/build: debian/stamp/configure
28086 +       ${checkdir}
28087 +       @if test -d .svn; \
28088 +       then \
28089 +         echo "The Emacs source can't build from a subversion working"; \
28090 +         echo "directory right now.  Please try something like this:"; \
28091 +         echo "  rm -r ../deb-tmp && svn export . ../deb-tmp"; \
28092 +         echo "  (cd ../deb-tmp && fakeroot debian/rules WHATEVER)"; \
28093 +       fi
28094 +       cd debian/build-x && ${build_cmd}
28095 +       cd debian/build-nox && ${build_cmd}
28096 +#        # rebuild the info pages (in case we've changed the .texi files)
28097 +#      cd debian/build-nox/info && \
28098 +#        rm -f `ls | grep -v COPYING | grep -v dir | grep -v CVS`
28099 +#      cd debian/build-nox/man && make
28100 +       mkdir -p debian/stamp && touch $@
28101 +
28102 +binary-indep: checkroot debian/stamp/build ${DEBPKGFILES}
28103 +       ${checkdir}
28104 +       dpkg-parsechangelog > /dev/null
28105 +       rm -rf debian/pkg-el debian/pkg-el-all
28106 +       $(call emacs_inst,build-x,pkg-el-all)
28107 +
28108 +        # emacs${major_ver}-el files (move all the .el files that have 
28109 +        # a corresponding .elc file to the emacs${major_ver}-el package)
28110 +       install -d debian/pkg-el
28111 +       (cd debian/pkg-el-all && \
28112 +         find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | \
28113 +           tar cpf - --files-from -) | \
28114 +             (cd debian/pkg-el && tar xpf -)
28115 +
28116 +       rm -rf debian/pkg-el-all
28117 +       install -d debian/pkg-el/usr/share/doc/emacs${major_ver}-el
28118 +
28119 +       cp debian/changelog \
28120 +         debian/pkg-el/usr/share/doc/emacs${major_ver}-el/changelog.Debian
28121 +
28122 +        # Now compress before adding copyright.
28123 +       find debian/pkg-el/usr/share/doc/emacs${major_ver}-el -type f | \
28124 +         xargs gzip -9v
28125 +
28126 +       cp debian/copyright debian/pkg-el/usr/share/doc/emacs${major_ver}-el
28127 +
28128 +        # Mangle permissions to conform.
28129 +       chown -R root.root debian/pkg-el
28130 +       find debian/pkg-el -type d | xargs chmod 755
28131 +       find debian/pkg-el -not -type d -a -not -type l | xargs chmod 644
28132 +
28133 +       install -d --mode 755 debian/pkg-el/DEBIAN
28134 +        # control scripts      
28135 +       install -m 755 debian/emacs-el.prerm debian/pkg-el/DEBIAN/prerm
28136 +
28137 +       perl -w -p -i \
28138 +         -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
28139 +         -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
28140 +         -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
28141 +         \
28142 +         debian/pkg-el/DEBIAN/prerm
28143 +
28144 +        # Generate DEBIAN/md5sums file
28145 +       cd debian/pkg-el && \
28146 +       for dir in `ls | grep -v DEBIAN` ; do \
28147 +         find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28148 +       done
28149 +       chmod 644 debian/pkg-el/DEBIAN/md5sums
28150 +
28151 +       dpkg-gencontrol -isp -pemacs${major_ver}-el -Pdebian/pkg-el
28152 +       dpkg --build debian/pkg-el ..
28153 +
28154 +        ##################################################
28155 +        # emacsXY-common
28156 +       rm -rf debian/pkg-common
28157 +       install -d debian/pkg-common
28158 +       $(call emacs_inst,build-x,pkg-common)
28159 +
28160 +        # remove stuff that should only be in the binary packages
28161 +       rm debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/DOC-${runtime_ver}.1
28162 +       rm -r debian/pkg-common/usr/bin
28163 +       rm -r debian/pkg-common/usr/lib
28164 +
28165 +        # make sure /usr/local dir doesn't exist in pkg.
28166 +       rmdir debian/pkg-common/usr/local/share/emacs/site-lisp
28167 +       rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}/site-lisp
28168 +       rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}
28169 +       rmdir debian/pkg-common/usr/local/share/emacs
28170 +       rmdir debian/pkg-common/usr/local/share
28171 +       rmdir debian/pkg-common/usr/local
28172 +
28173 +        # So any test pkgs I build from CVS will be OK -- emacs' build system
28174 +        # accidentally installs CVS dirs in a few places.
28175 +       rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/ja-dic/CVS
28176 +       rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/quail/CVS
28177 +
28178 +        # manpages
28179 +       install -m 0644 etc/emacsclient.1 \
28180 +         debian/pkg-common/usr/share/man/man1/emacsclient.1emacs${major_ver}
28181 +
28182 +       perl -pi -e "s|man1/etags\\.1|man1/etags\\.1emacs${major_ver}|" \
28183 +         debian/pkg-common/usr/share/man/man1/ctags.1emacs${major_ver}
28184 +       find debian/pkg-common/usr/share/man -type f | xargs gzip -9v
28185 +
28186 +        # lisp path directories
28187 +       install -d debian/pkg-common/etc/emacs${major_ver}/site-start.d
28188 +       install -d debian/pkg-common/usr/share/emacs${major_ver}/
28189 +
28190 +        # The version-specific site-lisp dir, say emacs/21.1/site-lisp, needs
28191 +        # to be in share/emacs21 so that as we upgrade from 21.1 to 21.2, etc.,
28192 +        # add-on package bits don't get left behind.
28193 +       mv debian/pkg-common/usr/share/emacs/${runtime_ver}/site-lisp \
28194 +          debian/pkg-common/usr/share/emacs${major_ver}
28195 +       cd debian/pkg-common/usr/share/emacs/${runtime_ver} && \
28196 +        ln -sf ../../emacs${major_ver}/site-lisp .
28197 +
28198 +       cd debian/pkg-common && \
28199 +         find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | xargs rm
28200 +
28201 +        # This is a duplicate of the file in emacs21/site-lisp
28202 +       rm debian/pkg-common/usr/share/emacs/site-lisp/subdirs.el
28203 +
28204 +        # /usr/share/doc/emacs${major_ver} directory
28205 +       install -d debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28206 +       cp README BUGS debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28207 +       cp ChangeLog \
28208 +         debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog
28209 +       cp debian/changelog \
28210 +         debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog.Debian
28211 +       cp debian/README \
28212 +         debian/pkg-common/usr/share/doc/emacs${major_ver}-common/README.Debian
28213 +       cp debian/README.add-on-package-maintainers \
28214 +         debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28215 +       find debian/pkg-common/usr/share/doc/emacs${major_ver}-common -type f \
28216 +         | xargs gzip -9v
28217 +       cp debian/copyright \
28218 +         debian/pkg-common/usr/share/doc/emacs${major_ver}-common
28219 +
28220 +       cd debian/pkg-common/usr/share/doc/emacs${major_ver}-common \
28221 +         && ln -s ../../../share/emacs/${runtime_ver}/etc .
28222 +
28223 +        # info files
28224 +        # Mangle menu entries for subdir.
28225 +       chmod 755 debian/mangle-info
28226 +       for f in ${main_dir_info_files}; \
28227 +       do \
28228 +         DEBIAN_INFO_PREFIX=emacs-${major_ver} \
28229 +           debian/mangle-info \
28230 +             debian/pkg-common/usr/share/info/emacs-${major_ver}/$$f; \
28231 +       done
28232 +
28233 +        # Get rid of unwanted dir file.
28234 +       rm debian/pkg-common/usr/share/info/emacs-${major_ver}/dir
28235 +
28236 +        # compress
28237 +       find debian/pkg-common/usr/share/info -type f | xargs gzip -9v
28238 +
28239 +       cp debian/gnu-32x32.xpm \
28240 +         debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/gnu-32x32.xpm
28241 +
28242 +        # Mangle permissions to conform.
28243 +       chown -R root.root debian/pkg-common
28244 +       find debian/pkg-common -type d | xargs chmod 755
28245 +       find debian/pkg-common -not -type d -a -not -type l | xargs chmod 644
28246 +
28247 +        # control scripts      
28248 +       install -d debian/pkg-common/DEBIAN
28249 +       install -m 755 debian/emacs-common.postinst \
28250 +         debian/pkg-common/DEBIAN/postinst
28251 +       install -m 755 debian/emacs-common.prerm debian/pkg-common/DEBIAN/prerm
28252 +
28253 +       perl -w -p -i \
28254 +         -e "s/\@PKG_NAME\@/emacs${major_ver}-common/go;" \
28255 +         -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
28256 +         -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
28257 +         -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
28258 +         -e "s/\@INFOFILES\@/${main_dir_info_files}/go;" \
28259 +         \
28260 +         debian/pkg-common/DEBIAN/postinst \
28261 +         debian/pkg-common/DEBIAN/prerm
28262 +
28263 +        # Generate DEBIAN/md5sums file
28264 +       cd debian/pkg-common && \
28265 +       for dir in `ls | grep -v DEBIAN` ; do \
28266 +         find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28267 +       done
28268 +       chmod 644 debian/pkg-common/DEBIAN/md5sums
28269 +
28270 +       dpkg-gencontrol -isp -pemacs${major_ver}-common -Pdebian/pkg-common
28271 +       dpkg --build debian/pkg-common ..
28272 +
28273 +
28274 +binary-arch: checkroot debian/stamp/build ${DEBPKGFILES}
28275 +       ${checkdir}
28276 +       dpkg-parsechangelog > /dev/null
28277 +       rm -rf debian/pkg-x
28278 +       rm -rf debian/pkg-x.tmp
28279 +       rm -rf debian/pkg-nox
28280 +       rm -rf debian/pkg-nox.tmp
28281 +       rm -rf debian/pkg-bin-common
28282 +       rm -rf debian/pkg-bin-common.tmp
28283 +
28284 +        ##################################################
28285 +        # emacsXY-nox
28286 +        # We install, grab the bits we need, and then delete the tree
28287 +        # to save diskspace.  (Do we actually need to run install -- can we
28288 +        # grab the files from the build tree instead?)
28289 +
28290 +       $(call emacs_inst,build-nox,pkg-nox.tmp)
28291 +       chmod a+x debian/build-binary-pkg
28292 +        # emacsXY-nox
28293 +       pkgname=emacs${major_ver}-nox \
28294 +       pkgdir=pkg-nox \
28295 +       tmppkgdir=pkg-nox.tmp \
28296 +       runver="${runtime_ver}" \
28297 +       majorver="${major_ver}" \
28298 +       minorver="${minor_ver}" \
28299 +       target="${target}" \
28300 +       xsupport="nox" \
28301 +         debian/build-binary-pkg
28302 +
28303 +        ##################################################
28304 +        # emacsXY
28305 +        # We install, grab the bits we need, and then delete the tree
28306 +        # to save diskspace.  (Do we actually need to run install -- can we
28307 +        # grab the files from the build tree instead?)
28308 +
28309 +       $(call emacs_inst,build-x,pkg-x.tmp)
28310 +       chmod a+x debian/build-binary-pkg
28311 +       pkgname=emacs${major_ver} \
28312 +       pkgdir=pkg-x \
28313 +       tmppkgdir=pkg-x.tmp \
28314 +       runver="${runtime_ver}" \
28315 +       majorver="${major_ver}" \
28316 +       minorver="${minor_ver}" \
28317 +       target="${target}" \
28318 +       xsupport="x" \
28319 +         debian/build-binary-pkg
28320 +
28321 +        ##################################################
28322 +        # emacsXY-bin-common
28323 +       rm -rf debian/pkg-bin-common
28324 +       rm -rf debian/pkg-bin-common.tmp
28325 +
28326 +       $(call emacs_inst,build-x,pkg-bin-common.tmp)
28327 +       install -d debian/pkg-bin-common
28328 +       install -d debian/pkg-bin-common/usr
28329 +       mv debian/pkg-bin-common.tmp/usr/bin debian/pkg-bin-common/usr/
28330 +       mv debian/pkg-bin-common.tmp/usr/lib debian/pkg-bin-common/usr/
28331 +       rm -rf debian/pkg-bin-common.tmp
28332 +
28333 +        # remove stuff that should only be in the binary packages
28334 +        # make sure it's only one file
28335 +       test -f debian/pkg-bin-common/usr/bin/emacs-*
28336 +       rm debian/pkg-bin-common/usr/bin/emacs-*
28337 +       rm debian/pkg-bin-common/usr/bin/emacs
28338 +       cd debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28339 +         && test `ls fns-*.el | wc -l` -eq 1 \
28340 +         && rm fns-*.el
28341 +
28342 +       cd debian/pkg-bin-common/usr/bin && ls > ../../../tmp-alt-list
28343 +
28344 +       for file in `cat debian/tmp-alt-list | grep -v 'emacs$$'`; \
28345 +       do \
28346 +         mv debian/pkg-bin-common/usr/bin/$${file} \
28347 +            debian/pkg-bin-common/usr/bin/$${file}.emacs${major_ver}; \
28348 +       done
28349 +
28350 +        # /usr/share/doc/emacs${major_ver} directory
28351 +       install -d debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/
28352 +       cp debian/changelog \
28353 +         debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/changelog.Debian
28354 +       cp debian/README.binpkg \
28355 +         debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/README.Debian
28356 +       find debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common \
28357 +         -type f | xargs gzip -9v
28358 +       cp debian/copyright \
28359 +         debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common
28360 +
28361 +        # Mangle permissions to conform.
28362 +       chown -R root.root debian/pkg-bin-common
28363 +       find debian/pkg-bin-common -type d | xargs chmod 755
28364 +       find debian/pkg-bin-common -not -type d -a -not -type l \
28365 +         | xargs chmod 644
28366 +       find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28367 +         -type f -not -name "*.el" | xargs chmod 755
28368 +       chmod 755 debian/pkg-bin-common/usr/bin/*
28369 +
28370 +        # control scripts
28371 +       install -d debian/pkg-bin-common/DEBIAN
28372 +       install -m 755 debian/emacs-bin-common.postinst \
28373 +         debian/pkg-bin-common/DEBIAN/postinst
28374 +       install -m 755 debian/emacs-bin-common.prerm \
28375 +         debian/pkg-bin-common/DEBIAN/prerm
28376 +       install -m 755 debian/emacs-bin-common.postrm \
28377 +         debian/pkg-bin-common/DEBIAN/postrm
28378 +
28379 +       perl -pi -e 's/\n/ /gmo;' debian/tmp-alt-list
28380 +
28381 +       perl -w -p -i \
28382 +         -e "s|\@PKG_NAME\@|emacs${major_ver}-bin-common|go;" \
28383 +         -e "s|\@MAJOR_VERSION\@|${major_ver}|go;" \
28384 +         -e "s|\@MINOR_VERSION\@|${minor_ver}|go;" \
28385 +         -e "s|\@FULL_VERSION\@|${runtime_ver}|go;" \
28386 +         -e "s|\@INFOFILES\@|${main_dir_info_files}|go;" \
28387 +         -e "s|\@ALTERNATIVES\@|`cat debian/tmp-alt-list`|go;" \
28388 +         -e "s|\@MOVEMAIL_BIN\@|${movemail_bin}|go;" \
28389 +         \
28390 +         debian/pkg-bin-common/DEBIAN/postinst \
28391 +         debian/pkg-bin-common/DEBIAN/prerm \
28392 +         debian/pkg-bin-common/DEBIAN/postrm
28393 +
28394 +       dpkg-shlibdeps debian/pkg-bin-common/usr/bin/* \
28395 +         `find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
28396 +            -type f -perm +u=x`
28397 +
28398 +        # Set up movemail (after dpkg-shlibdeps to avoid fakeroot sgid problem)
28399 +       chown root debian/pkg-bin-common/${movemail_bin}
28400 +       chgrp mail debian/pkg-bin-common/${movemail_bin}
28401 +       chmod g+s debian/pkg-bin-common/${movemail_bin}
28402 +
28403 +        # Generate DEBIAN/md5sums file
28404 +       cd debian/pkg-bin-common && \
28405 +       for dir in `ls | grep -v DEBIAN` ; do \
28406 +         find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
28407 +       done
28408 +       chmod 644 debian/pkg-bin-common/DEBIAN/md5sums
28409 +
28410 +       dpkg-gencontrol -isp \
28411 +         -pemacs${major_ver}-bin-common -Pdebian/pkg-bin-common
28412 +       dpkg --build debian/pkg-bin-common ..
28413 +
28414 +
28415 +clean: debian-sync
28416 +       ${checkdir}
28417 +       ${cleanup_all}
28418 +
28419 +# Below here is fairly generic really
28420 +
28421 +binary: binary-indep binary-arch
28422 +
28423 +source diff:
28424 +       @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
28425 +
28426 +checkroot:
28427 +       ${checkdir}
28428 +       test root = "`whoami`"
28429 +
28430 +.PHONY: binary binary-arch binary-indep clean checkroot
28431 +
28432 +# Local variables:
28433 +# mode: makefile
28434 +# End:
28435 --- emacs-21.3.orig/debian/menu.in
28436 +++ emacs-21.3/debian/menu.in
28437 @@ -0,0 +1,15 @@
28438 +?package(@PKGNAME@):\
28439 +  needs="X11"\
28440 +  section="Apps/Editors"\
28441 +  title="Emacs @MAJOR_VERSION@ (X11)"\
28442 +  command="/usr/bin/emacs@MAJOR_VERSION@"\
28443 +  icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
28444 +  hints="Text"
28445 +
28446 +?package(@PKGNAME@):\
28447 +  needs="text"\
28448 +  section="Apps/Editors"\
28449 +  title="Emacs @MAJOR_VERSION@ (text)"\
28450 +  command="/usr/bin/emacs@MAJOR_VERSION@ -nw"\
28451 +  icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
28452 +  hints="Text"
28453 --- emacs-21.3.orig/configure.orig
28454 +++ emacs-21.3/configure.orig
28455 @@ -0,0 +1,19156 @@
28456 +#! /bin/sh
28457 +# Guess values for system-dependent variables and create Makefiles.
28458 +# Generated by GNU Autoconf 2.59.
28459 +#
28460 +# Copyright (C) 2003 Free Software Foundation, Inc.
28461 +# This configure script is free software; the Free Software Foundation
28462 +# gives unlimited permission to copy, distribute and modify it.
28463 +## --------------------- ##
28464 +## M4sh Initialization.  ##
28465 +## --------------------- ##
28466 +
28467 +# Be Bourne compatible
28468 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28469 +  emulate sh
28470 +  NULLCMD=:
28471 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28472 +  # is contrary to our usage.  Disable this feature.
28473 +  alias -g '${1+"$@"}'='"$@"'
28474 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28475 +  set -o posix
28476 +fi
28477 +DUALCASE=1; export DUALCASE # for MKS sh
28478 +
28479 +# Support unset when possible.
28480 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28481 +  as_unset=unset
28482 +else
28483 +  as_unset=false
28484 +fi
28485 +
28486 +
28487 +# Work around bugs in pre-3.0 UWIN ksh.
28488 +$as_unset ENV MAIL MAILPATH
28489 +PS1='$ '
28490 +PS2='> '
28491 +PS4='+ '
28492 +
28493 +# NLS nuisances.
28494 +for as_var in \
28495 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28496 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28497 +  LC_TELEPHONE LC_TIME
28498 +do
28499 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28500 +    eval $as_var=C; export $as_var
28501 +  else
28502 +    $as_unset $as_var
28503 +  fi
28504 +done
28505 +
28506 +# Required to use basename.
28507 +if expr a : '\(a\)' >/dev/null 2>&1; then
28508 +  as_expr=expr
28509 +else
28510 +  as_expr=false
28511 +fi
28512 +
28513 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28514 +  as_basename=basename
28515 +else
28516 +  as_basename=false
28517 +fi
28518 +
28519 +
28520 +# Name of the executable.
28521 +as_me=`$as_basename "$0" ||
28522 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28523 +        X"$0" : 'X\(//\)$' \| \
28524 +        X"$0" : 'X\(/\)$' \| \
28525 +        .     : '\(.\)' 2>/dev/null ||
28526 +echo X/"$0" |
28527 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28528 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
28529 +         /^X\/\(\/\).*/{ s//\1/; q; }
28530 +         s/.*/./; q'`
28531 +
28532 +
28533 +# PATH needs CR, and LINENO needs CR and PATH.
28534 +# Avoid depending upon Character Ranges.
28535 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28536 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28537 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28538 +as_cr_digits='0123456789'
28539 +as_cr_alnum=$as_cr_Letters$as_cr_digits
28540 +
28541 +# The user is always right.
28542 +if test "${PATH_SEPARATOR+set}" != set; then
28543 +  echo "#! /bin/sh" >conf$$.sh
28544 +  echo  "exit 0"   >>conf$$.sh
28545 +  chmod +x conf$$.sh
28546 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28547 +    PATH_SEPARATOR=';'
28548 +  else
28549 +    PATH_SEPARATOR=:
28550 +  fi
28551 +  rm -f conf$$.sh
28552 +fi
28553 +
28554 +
28555 +  as_lineno_1=$LINENO
28556 +  as_lineno_2=$LINENO
28557 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28558 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
28559 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28560 +  # Find who we are.  Look in the path if we contain no path at all
28561 +  # relative or not.
28562 +  case $0 in
28563 +    *[\\/]* ) as_myself=$0 ;;
28564 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28565 +for as_dir in $PATH
28566 +do
28567 +  IFS=$as_save_IFS
28568 +  test -z "$as_dir" && as_dir=.
28569 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28570 +done
28571 +
28572 +       ;;
28573 +  esac
28574 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
28575 +  # in which case we are not to be found in the path.
28576 +  if test "x$as_myself" = x; then
28577 +    as_myself=$0
28578 +  fi
28579 +  if test ! -f "$as_myself"; then
28580 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
28581 +   { (exit 1); exit 1; }; }
28582 +  fi
28583 +  case $CONFIG_SHELL in
28584 +  '')
28585 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28586 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28587 +do
28588 +  IFS=$as_save_IFS
28589 +  test -z "$as_dir" && as_dir=.
28590 +  for as_base in sh bash ksh sh5; do
28591 +        case $as_dir in
28592 +        /*)
28593 +          if ("$as_dir/$as_base" -c '
28594 +  as_lineno_1=$LINENO
28595 +  as_lineno_2=$LINENO
28596 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28597 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
28598 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28599 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28600 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28601 +            CONFIG_SHELL=$as_dir/$as_base
28602 +            export CONFIG_SHELL
28603 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28604 +          fi;;
28605 +        esac
28606 +       done
28607 +done
28608 +;;
28609 +  esac
28610 +
28611 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28612 +  # uniformly replaced by the line number.  The first 'sed' inserts a
28613 +  # line-number line before each line; the second 'sed' does the real
28614 +  # work.  The second script uses 'N' to pair each line-number line
28615 +  # with the numbered line, and appends trailing '-' during
28616 +  # substitution so that $LINENO is not a special case at line end.
28617 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28618 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28619 +  sed '=' <$as_myself |
28620 +    sed '
28621 +      N
28622 +      s,$,-,
28623 +      : loop
28624 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28625 +      t loop
28626 +      s,-$,,
28627 +      s,^['$as_cr_digits']*\n,,
28628 +    ' >$as_me.lineno &&
28629 +  chmod +x $as_me.lineno ||
28630 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28631 +   { (exit 1); exit 1; }; }
28632 +
28633 +  # Don't try to exec as it changes $[0], causing all sort of problems
28634 +  # (the dirname of $[0] is not the place where we might find the
28635 +  # original and so on.  Autoconf is especially sensible to this).
28636 +  . ./$as_me.lineno
28637 +  # Exit status is that of the last command.
28638 +  exit
28639 +}
28640 +
28641 +
28642 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28643 +  *c*,-n*) ECHO_N= ECHO_C='
28644 +' ECHO_T='     ' ;;
28645 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28646 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28647 +esac
28648 +
28649 +if expr a : '\(a\)' >/dev/null 2>&1; then
28650 +  as_expr=expr
28651 +else
28652 +  as_expr=false
28653 +fi
28654 +
28655 +rm -f conf$$ conf$$.exe conf$$.file
28656 +echo >conf$$.file
28657 +if ln -s conf$$.file conf$$ 2>/dev/null; then
28658 +  # We could just check for DJGPP; but this test a) works b) is more generic
28659 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28660 +  if test -f conf$$.exe; then
28661 +    # Don't use ln at all; we don't have any links
28662 +    as_ln_s='cp -p'
28663 +  else
28664 +    as_ln_s='ln -s'
28665 +  fi
28666 +elif ln conf$$.file conf$$ 2>/dev/null; then
28667 +  as_ln_s=ln
28668 +else
28669 +  as_ln_s='cp -p'
28670 +fi
28671 +rm -f conf$$ conf$$.exe conf$$.file
28672 +
28673 +if mkdir -p . 2>/dev/null; then
28674 +  as_mkdir_p=:
28675 +else
28676 +  test -d ./-p && rmdir ./-p
28677 +  as_mkdir_p=false
28678 +fi
28679 +
28680 +as_executable_p="test -f"
28681 +
28682 +# Sed expression to map a string onto a valid CPP name.
28683 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28684 +
28685 +# Sed expression to map a string onto a valid variable name.
28686 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28687 +
28688 +
28689 +# IFS
28690 +# We need space, tab and new line, in precisely that order.
28691 +as_nl='
28692 +'
28693 +IFS="  $as_nl"
28694 +
28695 +# CDPATH.
28696 +$as_unset CDPATH
28697 +
28698 +
28699 +# Name of the host.
28700 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
28701 +# so uname gets run too.
28702 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
28703 +
28704 +exec 6>&1
28705 +
28706 +#
28707 +# Initializations.
28708 +#
28709 +ac_default_prefix=/usr/local
28710 +ac_config_libobj_dir=.
28711 +cross_compiling=no
28712 +subdirs=
28713 +MFLAGS=
28714 +MAKEFLAGS=
28715 +SHELL=${CONFIG_SHELL-/bin/sh}
28716 +
28717 +# Maximum number of lines to put in a shell here document.
28718 +# This variable seems obsolete.  It should probably be removed, and
28719 +# only ac_max_sed_lines should be used.
28720 +: ${ac_max_here_lines=38}
28721 +
28722 +# Identity of this package.
28723 +PACKAGE_NAME=
28724 +PACKAGE_TARNAME=
28725 +PACKAGE_VERSION=
28726 +PACKAGE_STRING=
28727 +PACKAGE_BUGREPORT=
28728 +
28729 +ac_unique_file="src/lisp.h"
28730 +ac_config_libobj_dir=src
28731 +# Factoring default headers for most tests.
28732 +ac_includes_default="\
28733 +#include <stdio.h>
28734 +#if HAVE_SYS_TYPES_H
28735 +# include <sys/types.h>
28736 +#endif
28737 +#if HAVE_SYS_STAT_H
28738 +# include <sys/stat.h>
28739 +#endif
28740 +#if STDC_HEADERS
28741 +# include <stdlib.h>
28742 +# include <stddef.h>
28743 +#else
28744 +# if HAVE_STDLIB_H
28745 +#  include <stdlib.h>
28746 +# endif
28747 +#endif
28748 +#if HAVE_STRING_H
28749 +# if !STDC_HEADERS && HAVE_MEMORY_H
28750 +#  include <memory.h>
28751 +# endif
28752 +# include <string.h>
28753 +#endif
28754 +#if HAVE_STRINGS_H
28755 +# include <strings.h>
28756 +#endif
28757 +#if HAVE_INTTYPES_H
28758 +# include <inttypes.h>
28759 +#else
28760 +# if HAVE_STDINT_H
28761 +#  include <stdint.h>
28762 +# endif
28763 +#endif
28764 +#if HAVE_UNISTD_H
28765 +# include <unistd.h>
28766 +#endif"
28767 +
28768 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile MOVEMAIL_LOCK_LIBS LTLIBOBJS'
28769 +ac_subst_files=''
28770 +
28771 +# Initialize some variables set by options.
28772 +ac_init_help=
28773 +ac_init_version=false
28774 +# The variables have the same names as the options, with
28775 +# dashes changed to underlines.
28776 +cache_file=/dev/null
28777 +exec_prefix=NONE
28778 +no_create=
28779 +no_recursion=
28780 +prefix=NONE
28781 +program_prefix=NONE
28782 +program_suffix=NONE
28783 +program_transform_name=s,x,x,
28784 +silent=
28785 +site=
28786 +srcdir=
28787 +verbose=
28788 +x_includes=NONE
28789 +x_libraries=NONE
28790 +
28791 +# Installation directory options.
28792 +# These are left unexpanded so users can "make install exec_prefix=/foo"
28793 +# and all the variables that are supposed to be based on exec_prefix
28794 +# by default will actually change.
28795 +# Use braces instead of parens because sh, perl, etc. also accept them.
28796 +bindir='${exec_prefix}/bin'
28797 +sbindir='${exec_prefix}/sbin'
28798 +libexecdir='${exec_prefix}/libexec'
28799 +datadir='${prefix}/share'
28800 +sysconfdir='${prefix}/etc'
28801 +sharedstatedir='${prefix}/com'
28802 +localstatedir='${prefix}/var'
28803 +libdir='${exec_prefix}/lib'
28804 +includedir='${prefix}/include'
28805 +oldincludedir='/usr/include'
28806 +infodir='${prefix}/info'
28807 +mandir='${prefix}/man'
28808 +
28809 +ac_prev=
28810 +for ac_option
28811 +do
28812 +  # If the previous option needs an argument, assign it.
28813 +  if test -n "$ac_prev"; then
28814 +    eval "$ac_prev=\$ac_option"
28815 +    ac_prev=
28816 +    continue
28817 +  fi
28818 +
28819 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
28820 +
28821 +  # Accept the important Cygnus configure options, so we can diagnose typos.
28822 +
28823 +  case $ac_option in
28824 +
28825 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
28826 +    ac_prev=bindir ;;
28827 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
28828 +    bindir=$ac_optarg ;;
28829 +
28830 +  -build | --build | --buil | --bui | --bu)
28831 +    ac_prev=build_alias ;;
28832 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
28833 +    build_alias=$ac_optarg ;;
28834 +
28835 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
28836 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28837 +    ac_prev=cache_file ;;
28838 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28839 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
28840 +    cache_file=$ac_optarg ;;
28841 +
28842 +  --config-cache | -C)
28843 +    cache_file=config.cache ;;
28844 +
28845 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
28846 +    ac_prev=datadir ;;
28847 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
28848 +  | --da=*)
28849 +    datadir=$ac_optarg ;;
28850 +
28851 +  -disable-* | --disable-*)
28852 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
28853 +    # Reject names that are not valid shell variable names.
28854 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
28855 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
28856 +   { (exit 1); exit 1; }; }
28857 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
28858 +    eval "enable_$ac_feature=no" ;;
28859 +
28860 +  -enable-* | --enable-*)
28861 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
28862 +    # Reject names that are not valid shell variable names.
28863 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
28864 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
28865 +   { (exit 1); exit 1; }; }
28866 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
28867 +    case $ac_option in
28868 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
28869 +      *) ac_optarg=yes ;;
28870 +    esac
28871 +    eval "enable_$ac_feature='$ac_optarg'" ;;
28872 +
28873 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
28874 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
28875 +  | --exec | --exe | --ex)
28876 +    ac_prev=exec_prefix ;;
28877 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
28878 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
28879 +  | --exec=* | --exe=* | --ex=*)
28880 +    exec_prefix=$ac_optarg ;;
28881 +
28882 +  -gas | --gas | --ga | --g)
28883 +    # Obsolete; use --with-gas.
28884 +    with_gas=yes ;;
28885 +
28886 +  -help | --help | --hel | --he | -h)
28887 +    ac_init_help=long ;;
28888 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
28889 +    ac_init_help=recursive ;;
28890 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
28891 +    ac_init_help=short ;;
28892 +
28893 +  -host | --host | --hos | --ho)
28894 +    ac_prev=host_alias ;;
28895 +  -host=* | --host=* | --hos=* | --ho=*)
28896 +    host_alias=$ac_optarg ;;
28897 +
28898 +  -includedir | --includedir | --includedi | --included | --include \
28899 +  | --includ | --inclu | --incl | --inc)
28900 +    ac_prev=includedir ;;
28901 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
28902 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
28903 +    includedir=$ac_optarg ;;
28904 +
28905 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
28906 +    ac_prev=infodir ;;
28907 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
28908 +    infodir=$ac_optarg ;;
28909 +
28910 +  -libdir | --libdir | --libdi | --libd)
28911 +    ac_prev=libdir ;;
28912 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
28913 +    libdir=$ac_optarg ;;
28914 +
28915 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
28916 +  | --libexe | --libex | --libe)
28917 +    ac_prev=libexecdir ;;
28918 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
28919 +  | --libexe=* | --libex=* | --libe=*)
28920 +    libexecdir=$ac_optarg ;;
28921 +
28922 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
28923 +  | --localstate | --localstat | --localsta | --localst \
28924 +  | --locals | --local | --loca | --loc | --lo)
28925 +    ac_prev=localstatedir ;;
28926 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
28927 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
28928 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
28929 +    localstatedir=$ac_optarg ;;
28930 +
28931 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
28932 +    ac_prev=mandir ;;
28933 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
28934 +    mandir=$ac_optarg ;;
28935 +
28936 +  -nfp | --nfp | --nf)
28937 +    # Obsolete; use --without-fp.
28938 +    with_fp=no ;;
28939 +
28940 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
28941 +  | --no-cr | --no-c | -n)
28942 +    no_create=yes ;;
28943 +
28944 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
28945 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
28946 +    no_recursion=yes ;;
28947 +
28948 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
28949 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
28950 +  | --oldin | --oldi | --old | --ol | --o)
28951 +    ac_prev=oldincludedir ;;
28952 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
28953 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
28954 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
28955 +    oldincludedir=$ac_optarg ;;
28956 +
28957 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28958 +    ac_prev=prefix ;;
28959 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28960 +    prefix=$ac_optarg ;;
28961 +
28962 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
28963 +  | --program-pre | --program-pr | --program-p)
28964 +    ac_prev=program_prefix ;;
28965 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
28966 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
28967 +    program_prefix=$ac_optarg ;;
28968 +
28969 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
28970 +  | --program-suf | --program-su | --program-s)
28971 +    ac_prev=program_suffix ;;
28972 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
28973 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
28974 +    program_suffix=$ac_optarg ;;
28975 +
28976 +  -program-transform-name | --program-transform-name \
28977 +  | --program-transform-nam | --program-transform-na \
28978 +  | --program-transform-n | --program-transform- \
28979 +  | --program-transform | --program-transfor \
28980 +  | --program-transfo | --program-transf \
28981 +  | --program-trans | --program-tran \
28982 +  | --progr-tra | --program-tr | --program-t)
28983 +    ac_prev=program_transform_name ;;
28984 +  -program-transform-name=* | --program-transform-name=* \
28985 +  | --program-transform-nam=* | --program-transform-na=* \
28986 +  | --program-transform-n=* | --program-transform-=* \
28987 +  | --program-transform=* | --program-transfor=* \
28988 +  | --program-transfo=* | --program-transf=* \
28989 +  | --program-trans=* | --program-tran=* \
28990 +  | --progr-tra=* | --program-tr=* | --program-t=*)
28991 +    program_transform_name=$ac_optarg ;;
28992 +
28993 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28994 +  | -silent | --silent | --silen | --sile | --sil)
28995 +    silent=yes ;;
28996 +
28997 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
28998 +    ac_prev=sbindir ;;
28999 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
29000 +  | --sbi=* | --sb=*)
29001 +    sbindir=$ac_optarg ;;
29002 +
29003 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
29004 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
29005 +  | --sharedst | --shareds | --shared | --share | --shar \
29006 +  | --sha | --sh)
29007 +    ac_prev=sharedstatedir ;;
29008 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
29009 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
29010 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
29011 +  | --sha=* | --sh=*)
29012 +    sharedstatedir=$ac_optarg ;;
29013 +
29014 +  -site | --site | --sit)
29015 +    ac_prev=site ;;
29016 +  -site=* | --site=* | --sit=*)
29017 +    site=$ac_optarg ;;
29018 +
29019 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29020 +    ac_prev=srcdir ;;
29021 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29022 +    srcdir=$ac_optarg ;;
29023 +
29024 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
29025 +  | --syscon | --sysco | --sysc | --sys | --sy)
29026 +    ac_prev=sysconfdir ;;
29027 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
29028 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
29029 +    sysconfdir=$ac_optarg ;;
29030 +
29031 +  -target | --target | --targe | --targ | --tar | --ta | --t)
29032 +    ac_prev=target_alias ;;
29033 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
29034 +    target_alias=$ac_optarg ;;
29035 +
29036 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
29037 +    verbose=yes ;;
29038 +
29039 +  -version | --version | --versio | --versi | --vers | -V)
29040 +    ac_init_version=: ;;
29041 +
29042 +  -with-* | --with-*)
29043 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
29044 +    # Reject names that are not valid shell variable names.
29045 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
29046 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
29047 +   { (exit 1); exit 1; }; }
29048 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
29049 +    case $ac_option in
29050 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
29051 +      *) ac_optarg=yes ;;
29052 +    esac
29053 +    eval "with_$ac_package='$ac_optarg'" ;;
29054 +
29055 +  -without-* | --without-*)
29056 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
29057 +    # Reject names that are not valid shell variable names.
29058 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
29059 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
29060 +   { (exit 1); exit 1; }; }
29061 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
29062 +    eval "with_$ac_package=no" ;;
29063 +
29064 +  --x)
29065 +    # Obsolete; use --with-x.
29066 +    with_x=yes ;;
29067 +
29068 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
29069 +  | --x-incl | --x-inc | --x-in | --x-i)
29070 +    ac_prev=x_includes ;;
29071 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
29072 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
29073 +    x_includes=$ac_optarg ;;
29074 +
29075 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
29076 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
29077 +    ac_prev=x_libraries ;;
29078 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
29079 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
29080 +    x_libraries=$ac_optarg ;;
29081 +
29082 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
29083 +Try \`$0 --help' for more information." >&2
29084 +   { (exit 1); exit 1; }; }
29085 +    ;;
29086 +
29087 +  *=*)
29088 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
29089 +    # Reject names that are not valid shell variable names.
29090 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
29091 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
29092 +   { (exit 1); exit 1; }; }
29093 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
29094 +    eval "$ac_envvar='$ac_optarg'"
29095 +    export $ac_envvar ;;
29096 +
29097 +  *)
29098 +    # FIXME: should be removed in autoconf 3.0.
29099 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
29100 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
29101 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
29102 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
29103 +    ;;
29104 +
29105 +  esac
29106 +done
29107 +
29108 +if test -n "$ac_prev"; then
29109 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
29110 +  { echo "$as_me: error: missing argument to $ac_option" >&2
29111 +   { (exit 1); exit 1; }; }
29112 +fi
29113 +
29114 +# Be sure to have absolute paths.
29115 +for ac_var in exec_prefix prefix
29116 +do
29117 +  eval ac_val=$`echo $ac_var`
29118 +  case $ac_val in
29119 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
29120 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
29121 +   { (exit 1); exit 1; }; };;
29122 +  esac
29123 +done
29124 +
29125 +# Be sure to have absolute paths.
29126 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
29127 +             localstatedir libdir includedir oldincludedir infodir mandir
29128 +do
29129 +  eval ac_val=$`echo $ac_var`
29130 +  case $ac_val in
29131 +    [\\/$]* | ?:[\\/]* ) ;;
29132 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
29133 +   { (exit 1); exit 1; }; };;
29134 +  esac
29135 +done
29136 +
29137 +# There might be people who depend on the old broken behavior: `$host'
29138 +# used to hold the argument of --host etc.
29139 +# FIXME: To remove some day.
29140 +build=$build_alias
29141 +host=$host_alias
29142 +target=$target_alias
29143 +
29144 +# FIXME: To remove some day.
29145 +if test "x$host_alias" != x; then
29146 +  if test "x$build_alias" = x; then
29147 +    cross_compiling=maybe
29148 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
29149 +    If a cross compiler is detected then cross compile mode will be used." >&2
29150 +  elif test "x$build_alias" != "x$host_alias"; then
29151 +    cross_compiling=yes
29152 +  fi
29153 +fi
29154 +
29155 +ac_tool_prefix=
29156 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
29157 +
29158 +test "$silent" = yes && exec 6>/dev/null
29159 +
29160 +
29161 +# Find the source files, if location was not specified.
29162 +if test -z "$srcdir"; then
29163 +  ac_srcdir_defaulted=yes
29164 +  # Try the directory containing this script, then its parent.
29165 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
29166 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29167 +        X"$0" : 'X\(//\)[^/]' \| \
29168 +        X"$0" : 'X\(//\)$' \| \
29169 +        X"$0" : 'X\(/\)' \| \
29170 +        .     : '\(.\)' 2>/dev/null ||
29171 +echo X"$0" |
29172 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29173 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29174 +         /^X\(\/\/\)$/{ s//\1/; q; }
29175 +         /^X\(\/\).*/{ s//\1/; q; }
29176 +         s/.*/./; q'`
29177 +  srcdir=$ac_confdir
29178 +  if test ! -r $srcdir/$ac_unique_file; then
29179 +    srcdir=..
29180 +  fi
29181 +else
29182 +  ac_srcdir_defaulted=no
29183 +fi
29184 +if test ! -r $srcdir/$ac_unique_file; then
29185 +  if test "$ac_srcdir_defaulted" = yes; then
29186 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
29187 +   { (exit 1); exit 1; }; }
29188 +  else
29189 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
29190 +   { (exit 1); exit 1; }; }
29191 +  fi
29192 +fi
29193 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
29194 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
29195 +   { (exit 1); exit 1; }; }
29196 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
29197 +ac_env_build_alias_set=${build_alias+set}
29198 +ac_env_build_alias_value=$build_alias
29199 +ac_cv_env_build_alias_set=${build_alias+set}
29200 +ac_cv_env_build_alias_value=$build_alias
29201 +ac_env_host_alias_set=${host_alias+set}
29202 +ac_env_host_alias_value=$host_alias
29203 +ac_cv_env_host_alias_set=${host_alias+set}
29204 +ac_cv_env_host_alias_value=$host_alias
29205 +ac_env_target_alias_set=${target_alias+set}
29206 +ac_env_target_alias_value=$target_alias
29207 +ac_cv_env_target_alias_set=${target_alias+set}
29208 +ac_cv_env_target_alias_value=$target_alias
29209 +ac_env_CC_set=${CC+set}
29210 +ac_env_CC_value=$CC
29211 +ac_cv_env_CC_set=${CC+set}
29212 +ac_cv_env_CC_value=$CC
29213 +ac_env_CFLAGS_set=${CFLAGS+set}
29214 +ac_env_CFLAGS_value=$CFLAGS
29215 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
29216 +ac_cv_env_CFLAGS_value=$CFLAGS
29217 +ac_env_LDFLAGS_set=${LDFLAGS+set}
29218 +ac_env_LDFLAGS_value=$LDFLAGS
29219 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
29220 +ac_cv_env_LDFLAGS_value=$LDFLAGS
29221 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
29222 +ac_env_CPPFLAGS_value=$CPPFLAGS
29223 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
29224 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
29225 +ac_env_CPP_set=${CPP+set}
29226 +ac_env_CPP_value=$CPP
29227 +ac_cv_env_CPP_set=${CPP+set}
29228 +ac_cv_env_CPP_value=$CPP
29229 +
29230 +#
29231 +# Report the --help message.
29232 +#
29233 +if test "$ac_init_help" = "long"; then
29234 +  # Omit some internal or obsolete options to make the list less imposing.
29235 +  # This message is too long to be a string in the A/UX 3.1 sh.
29236 +  cat <<_ACEOF
29237 +\`configure' configures this package to adapt to many kinds of systems.
29238 +
29239 +Usage: $0 [OPTION]... [VAR=VALUE]...
29240 +
29241 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
29242 +VAR=VALUE.  See below for descriptions of some of the useful variables.
29243 +
29244 +Defaults for the options are specified in brackets.
29245 +
29246 +Configuration:
29247 +  -h, --help              display this help and exit
29248 +      --help=short        display options specific to this package
29249 +      --help=recursive    display the short help of all the included packages
29250 +  -V, --version           display version information and exit
29251 +  -q, --quiet, --silent   do not print \`checking...' messages
29252 +      --cache-file=FILE   cache test results in FILE [disabled]
29253 +  -C, --config-cache      alias for \`--cache-file=config.cache'
29254 +  -n, --no-create         do not create output files
29255 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
29256 +
29257 +_ACEOF
29258 +
29259 +  cat <<_ACEOF
29260 +Installation directories:
29261 +  --prefix=PREFIX         install architecture-independent files in PREFIX
29262 +                         [$ac_default_prefix]
29263 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
29264 +                         [PREFIX]
29265 +
29266 +By default, \`make install' will install all the files in
29267 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
29268 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
29269 +for instance \`--prefix=\$HOME'.
29270 +
29271 +For better control, use the options below.
29272 +
29273 +Fine tuning of the installation directories:
29274 +  --bindir=DIR           user executables [EPREFIX/bin]
29275 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
29276 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
29277 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
29278 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
29279 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
29280 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
29281 +  --libdir=DIR           object code libraries [EPREFIX/lib]
29282 +  --includedir=DIR       C header files [PREFIX/include]
29283 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
29284 +  --infodir=DIR          info documentation [PREFIX/info]
29285 +  --mandir=DIR           man documentation [PREFIX/man]
29286 +_ACEOF
29287 +
29288 +  cat <<\_ACEOF
29289 +
29290 +X features:
29291 +  --x-includes=DIR    X include files are in DIR
29292 +  --x-libraries=DIR   X library files are in DIR
29293 +
29294 +System types:
29295 +  --build=BUILD     configure for building on BUILD [guessed]
29296 +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
29297 +_ACEOF
29298 +fi
29299 +
29300 +if test -n "$ac_init_help"; then
29301 +
29302 +  cat <<\_ACEOF
29303 +
29304 +Optional Features:
29305 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
29306 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
29307 +  --disable-largefile     omit support for large files
29308 +
29309 +Optional Packages:
29310 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
29311 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
29312 +  --without-gcc           don't use GCC to compile Emacs if GCC is found
29313 +  --without-pop           don't support POP mail retrieval with movemail
29314 +  --with-kerberos         support Kerberos-authenticated POP
29315 +  --with-kerberos5        support Kerberos version 5 authenticated POP
29316 +  --with-hesiod           support Hesiod to get the POP server host
29317 +  --with-mail-spool-directory=DIR   system mail spool is DIR
29318 +  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)
29319 +  --with-xpm              use -lXpm for displaying XPM images
29320 +  --with-jpeg             use -ljpeg for displaying JPEG images
29321 +  --with-tiff             use -ltiff for displaying TIFF images
29322 +  --with-gif              use -lungif for displaying GIF images
29323 +  --with-png              use -lpng for displaying PNG images
29324 +  --without-toolkit-scroll-bars
29325 +                          don't use Motif or Xaw3d scroll bars
29326 +  --without-xim           don't use X11 XIM
29327 +  --with-x                use the X Window System
29328 +
29329 +Some influential environment variables:
29330 +  CC          C compiler command
29331 +  CFLAGS      C compiler flags
29332 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
29333 +              nonstandard directory <lib dir>
29334 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
29335 +              headers in a nonstandard directory <include dir>
29336 +  CPP         C preprocessor
29337 +
29338 +Use these variables to override the choices made by `configure' or to help
29339 +it to find libraries and programs with nonstandard names/locations.
29340 +
29341 +_ACEOF
29342 +fi
29343 +
29344 +if test "$ac_init_help" = "recursive"; then
29345 +  # If there are subdirs, report their specific --help.
29346 +  ac_popdir=`pwd`
29347 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
29348 +    test -d $ac_dir || continue
29349 +    ac_builddir=.
29350 +
29351 +if test "$ac_dir" != .; then
29352 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29353 +  # A "../" for each directory in $ac_dir_suffix.
29354 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29355 +else
29356 +  ac_dir_suffix= ac_top_builddir=
29357 +fi
29358 +
29359 +case $srcdir in
29360 +  .)  # No --srcdir option.  We are building in place.
29361 +    ac_srcdir=.
29362 +    if test -z "$ac_top_builddir"; then
29363 +       ac_top_srcdir=.
29364 +    else
29365 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29366 +    fi ;;
29367 +  [\\/]* | ?:[\\/]* )  # Absolute path.
29368 +    ac_srcdir=$srcdir$ac_dir_suffix;
29369 +    ac_top_srcdir=$srcdir ;;
29370 +  *) # Relative path.
29371 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29372 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
29373 +esac
29374 +
29375 +# Do not use `cd foo && pwd` to compute absolute paths, because
29376 +# the directories may not exist.
29377 +case `pwd` in
29378 +.) ac_abs_builddir="$ac_dir";;
29379 +*)
29380 +  case "$ac_dir" in
29381 +  .) ac_abs_builddir=`pwd`;;
29382 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29383 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
29384 +  esac;;
29385 +esac
29386 +case $ac_abs_builddir in
29387 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
29388 +*)
29389 +  case ${ac_top_builddir}. in
29390 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
29391 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29392 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29393 +  esac;;
29394 +esac
29395 +case $ac_abs_builddir in
29396 +.) ac_abs_srcdir=$ac_srcdir;;
29397 +*)
29398 +  case $ac_srcdir in
29399 +  .) ac_abs_srcdir=$ac_abs_builddir;;
29400 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29401 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29402 +  esac;;
29403 +esac
29404 +case $ac_abs_builddir in
29405 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
29406 +*)
29407 +  case $ac_top_srcdir in
29408 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
29409 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29410 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29411 +  esac;;
29412 +esac
29413 +
29414 +    cd $ac_dir
29415 +    # Check for guested configure; otherwise get Cygnus style configure.
29416 +    if test -f $ac_srcdir/configure.gnu; then
29417 +      echo
29418 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
29419 +    elif test -f $ac_srcdir/configure; then
29420 +      echo
29421 +      $SHELL $ac_srcdir/configure  --help=recursive
29422 +    elif test -f $ac_srcdir/configure.ac ||
29423 +          test -f $ac_srcdir/configure.in; then
29424 +      echo
29425 +      $ac_configure --help
29426 +    else
29427 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
29428 +    fi
29429 +    cd "$ac_popdir"
29430 +  done
29431 +fi
29432 +
29433 +test -n "$ac_init_help" && exit 0
29434 +if $ac_init_version; then
29435 +  cat <<\_ACEOF
29436 +
29437 +Copyright (C) 2003 Free Software Foundation, Inc.
29438 +This configure script is free software; the Free Software Foundation
29439 +gives unlimited permission to copy, distribute and modify it.
29440 +_ACEOF
29441 +  exit 0
29442 +fi
29443 +exec 5>config.log
29444 +cat >&5 <<_ACEOF
29445 +This file contains any messages produced by compilers while
29446 +running configure, to aid debugging if configure makes a mistake.
29447 +
29448 +It was created by $as_me, which was
29449 +generated by GNU Autoconf 2.59.  Invocation command line was
29450 +
29451 +  $ $0 $@
29452 +
29453 +_ACEOF
29454 +{
29455 +cat <<_ASUNAME
29456 +## --------- ##
29457 +## Platform. ##
29458 +## --------- ##
29459 +
29460 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
29461 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
29462 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
29463 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
29464 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
29465 +
29466 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
29467 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
29468 +
29469 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
29470 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
29471 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
29472 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
29473 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
29474 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
29475 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
29476 +
29477 +_ASUNAME
29478 +
29479 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480 +for as_dir in $PATH
29481 +do
29482 +  IFS=$as_save_IFS
29483 +  test -z "$as_dir" && as_dir=.
29484 +  echo "PATH: $as_dir"
29485 +done
29486 +
29487 +} >&5
29488 +
29489 +cat >&5 <<_ACEOF
29490 +
29491 +
29492 +## ----------- ##
29493 +## Core tests. ##
29494 +## ----------- ##
29495 +
29496 +_ACEOF
29497 +
29498 +
29499 +# Keep a trace of the command line.
29500 +# Strip out --no-create and --no-recursion so they do not pile up.
29501 +# Strip out --silent because we don't want to record it for future runs.
29502 +# Also quote any args containing shell meta-characters.
29503 +# Make two passes to allow for proper duplicate-argument suppression.
29504 +ac_configure_args=
29505 +ac_configure_args0=
29506 +ac_configure_args1=
29507 +ac_sep=
29508 +ac_must_keep_next=false
29509 +for ac_pass in 1 2
29510 +do
29511 +  for ac_arg
29512 +  do
29513 +    case $ac_arg in
29514 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
29515 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29516 +    | -silent | --silent | --silen | --sile | --sil)
29517 +      continue ;;
29518 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
29519 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29520 +    esac
29521 +    case $ac_pass in
29522 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
29523 +    2)
29524 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
29525 +      if test $ac_must_keep_next = true; then
29526 +       ac_must_keep_next=false # Got value, back to normal.
29527 +      else
29528 +       case $ac_arg in
29529 +         *=* | --config-cache | -C | -disable-* | --disable-* \
29530 +         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
29531 +         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
29532 +         | -with-* | --with-* | -without-* | --without-* | --x)
29533 +           case "$ac_configure_args0 " in
29534 +             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
29535 +           esac
29536 +           ;;
29537 +         -* ) ac_must_keep_next=true ;;
29538 +       esac
29539 +      fi
29540 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
29541 +      # Get rid of the leading space.
29542 +      ac_sep=" "
29543 +      ;;
29544 +    esac
29545 +  done
29546 +done
29547 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
29548 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
29549 +
29550 +# When interrupted or exit'd, cleanup temporary files, and complete
29551 +# config.log.  We remove comments because anyway the quotes in there
29552 +# would cause problems or look ugly.
29553 +# WARNING: Be sure not to use single quotes in there, as some shells,
29554 +# such as our DU 5.0 friend, will then `close' the trap.
29555 +trap 'exit_status=$?
29556 +  # Save into config.log some information that might help in debugging.
29557 +  {
29558 +    echo
29559 +
29560 +    cat <<\_ASBOX
29561 +## ---------------- ##
29562 +## Cache variables. ##
29563 +## ---------------- ##
29564 +_ASBOX
29565 +    echo
29566 +    # The following way of writing the cache mishandles newlines in values,
29567 +{
29568 +  (set) 2>&1 |
29569 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
29570 +    *ac_space=\ *)
29571 +      sed -n \
29572 +       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
29573 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
29574 +      ;;
29575 +    *)
29576 +      sed -n \
29577 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29578 +      ;;
29579 +    esac;
29580 +}
29581 +    echo
29582 +
29583 +    cat <<\_ASBOX
29584 +## ----------------- ##
29585 +## Output variables. ##
29586 +## ----------------- ##
29587 +_ASBOX
29588 +    echo
29589 +    for ac_var in $ac_subst_vars
29590 +    do
29591 +      eval ac_val=$`echo $ac_var`
29592 +      echo "$ac_var='"'"'$ac_val'"'"'"
29593 +    done | sort
29594 +    echo
29595 +
29596 +    if test -n "$ac_subst_files"; then
29597 +      cat <<\_ASBOX
29598 +## ------------- ##
29599 +## Output files. ##
29600 +## ------------- ##
29601 +_ASBOX
29602 +      echo
29603 +      for ac_var in $ac_subst_files
29604 +      do
29605 +       eval ac_val=$`echo $ac_var`
29606 +       echo "$ac_var='"'"'$ac_val'"'"'"
29607 +      done | sort
29608 +      echo
29609 +    fi
29610 +
29611 +    if test -s confdefs.h; then
29612 +      cat <<\_ASBOX
29613 +## ----------- ##
29614 +## confdefs.h. ##
29615 +## ----------- ##
29616 +_ASBOX
29617 +      echo
29618 +      sed "/^$/d" confdefs.h | sort
29619 +      echo
29620 +    fi
29621 +    test "$ac_signal" != 0 &&
29622 +      echo "$as_me: caught signal $ac_signal"
29623 +    echo "$as_me: exit $exit_status"
29624 +  } >&5
29625 +  rm -f core *.core &&
29626 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
29627 +    exit $exit_status
29628 +     ' 0
29629 +for ac_signal in 1 2 13 15; do
29630 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
29631 +done
29632 +ac_signal=0
29633 +
29634 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
29635 +rm -rf conftest* confdefs.h
29636 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
29637 +echo >confdefs.h
29638 +
29639 +# Predefined preprocessor variables.
29640 +
29641 +cat >>confdefs.h <<_ACEOF
29642 +#define PACKAGE_NAME "$PACKAGE_NAME"
29643 +_ACEOF
29644 +
29645 +
29646 +cat >>confdefs.h <<_ACEOF
29647 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
29648 +_ACEOF
29649 +
29650 +
29651 +cat >>confdefs.h <<_ACEOF
29652 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
29653 +_ACEOF
29654 +
29655 +
29656 +cat >>confdefs.h <<_ACEOF
29657 +#define PACKAGE_STRING "$PACKAGE_STRING"
29658 +_ACEOF
29659 +
29660 +
29661 +cat >>confdefs.h <<_ACEOF
29662 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
29663 +_ACEOF
29664 +
29665 +
29666 +# Let the site file select an alternate cache file if it wants to.
29667 +# Prefer explicitly selected file to automatically selected ones.
29668 +if test -z "$CONFIG_SITE"; then
29669 +  if test "x$prefix" != xNONE; then
29670 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
29671 +  else
29672 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
29673 +  fi
29674 +fi
29675 +for ac_site_file in $CONFIG_SITE; do
29676 +  if test -r "$ac_site_file"; then
29677 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
29678 +echo "$as_me: loading site script $ac_site_file" >&6;}
29679 +    sed 's/^/| /' "$ac_site_file" >&5
29680 +    . "$ac_site_file"
29681 +  fi
29682 +done
29683 +
29684 +if test -r "$cache_file"; then
29685 +  # Some versions of bash will fail to source /dev/null (special
29686 +  # files actually), so we avoid doing that.
29687 +  if test -f "$cache_file"; then
29688 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
29689 +echo "$as_me: loading cache $cache_file" >&6;}
29690 +    case $cache_file in
29691 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
29692 +      *)                      . ./$cache_file;;
29693 +    esac
29694 +  fi
29695 +else
29696 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
29697 +echo "$as_me: creating cache $cache_file" >&6;}
29698 +  >$cache_file
29699 +fi
29700 +
29701 +# Check that the precious variables saved in the cache have kept the same
29702 +# value.
29703 +ac_cache_corrupted=false
29704 +for ac_var in `(set) 2>&1 |
29705 +              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
29706 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
29707 +  eval ac_new_set=\$ac_env_${ac_var}_set
29708 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
29709 +  eval ac_new_val="\$ac_env_${ac_var}_value"
29710 +  case $ac_old_set,$ac_new_set in
29711 +    set,)
29712 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
29713 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
29714 +      ac_cache_corrupted=: ;;
29715 +    ,set)
29716 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
29717 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
29718 +      ac_cache_corrupted=: ;;
29719 +    ,);;
29720 +    *)
29721 +      if test "x$ac_old_val" != "x$ac_new_val"; then
29722 +       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
29723 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
29724 +       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
29725 +echo "$as_me:   former value:  $ac_old_val" >&2;}
29726 +       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
29727 +echo "$as_me:   current value: $ac_new_val" >&2;}
29728 +       ac_cache_corrupted=:
29729 +      fi;;
29730 +  esac
29731 +  # Pass precious variables to config.status.
29732 +  if test "$ac_new_set" = set; then
29733 +    case $ac_new_val in
29734 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
29735 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
29736 +    *) ac_arg=$ac_var=$ac_new_val ;;
29737 +    esac
29738 +    case " $ac_configure_args " in
29739 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
29740 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
29741 +    esac
29742 +  fi
29743 +done
29744 +if $ac_cache_corrupted; then
29745 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
29746 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
29747 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
29748 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
29749 +   { (exit 1); exit 1; }; }
29750 +fi
29751 +
29752 +ac_ext=c
29753 +ac_cpp='$CPP $CPPFLAGS'
29754 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29755 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29756 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
29757 +
29758 +
29759 +
29760 +
29761 +
29762 +
29763 +
29764 +
29765 +
29766 +
29767 +
29768 +
29769 +
29770 +
29771 +
29772 +
29773 +
29774 +
29775 +
29776 +          ac_config_headers="$ac_config_headers src/config.h:src/config.in"
29777 +
29778 +
29779 +
29780 +lispdir='${datadir}/emacs/${version}/lisp'
29781 +locallisppath='${datadir}/emacs/${version}/site-lisp:'\
29782 +'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
29783 +lisppath='${locallisppath}:${lispdir}'
29784 +etcdir='${datadir}/emacs/${version}/etc'
29785 +archlibdir='${libexecdir}/emacs/${version}/${configuration}'
29786 +docdir='${datadir}/emacs/${version}/etc'
29787 +
29788 +
29789 +# Check whether --with-gcc or --without-gcc was given.
29790 +if test "${with_gcc+set}" = set; then
29791 +  withval="$with_gcc"
29792 +
29793 +fi;
29794 +
29795 +# Check whether --with-pop or --without-pop was given.
29796 +if test "${with_pop+set}" = set; then
29797 +  withval="$with_pop"
29798 +  if test "$withval" = yes; then
29799 +   cat >>confdefs.h <<\_ACEOF
29800 +#define MAIL_USE_POP 1
29801 +_ACEOF
29802 +
29803 +else :
29804 +fi
29805 +else
29806 +  cat >>confdefs.h <<\_ACEOF
29807 +#define MAIL_USE_POP 1
29808 +_ACEOF
29809 +
29810 +fi;
29811 +
29812 +# Check whether --with-kerberos or --without-kerberos was given.
29813 +if test "${with_kerberos+set}" = set; then
29814 +  withval="$with_kerberos"
29815 +  cat >>confdefs.h <<\_ACEOF
29816 +#define KERBEROS 1
29817 +_ACEOF
29818 +
29819 +fi;
29820 +
29821 +# Check whether --with-kerberos5 or --without-kerberos5 was given.
29822 +if test "${with_kerberos5+set}" = set; then
29823 +  withval="$with_kerberos5"
29824 +  if test "${with_kerberos5+set}" = set; then
29825 +  if test "${with_kerberos+set}" != set; then
29826 +    with_kerberos=yes
29827 +    cat >>confdefs.h <<\_ACEOF
29828 +#define KERBEROS 1
29829 +_ACEOF
29830 +
29831 +  fi
29832 +fi
29833 +cat >>confdefs.h <<\_ACEOF
29834 +#define KERBEROS5 1
29835 +_ACEOF
29836 +
29837 +fi;
29838 +
29839 +# Check whether --with-hesiod or --without-hesiod was given.
29840 +if test "${with_hesiod+set}" = set; then
29841 +  withval="$with_hesiod"
29842 +  cat >>confdefs.h <<\_ACEOF
29843 +#define HESIOD 1
29844 +_ACEOF
29845 +
29846 +fi;
29847 +
29848 +# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
29849 +if test "${with_mail_spool_directory+set}" = set; then
29850 +  withval="$with_mail_spool_directory"
29851 +  cat >>confdefs.h <<_ACEOF
29852 +#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
29853 +_ACEOF
29854 +
29855 +fi;
29856 +
29857 +# Check whether --with-x-toolkit or --without-x-toolkit was given.
29858 +if test "${with_x_toolkit+set}" = set; then
29859 +  withval="$with_x_toolkit"
29860 +         case "${withval}" in
29861 +           y | ye | yes )      val=athena ;;
29862 +           n | no )            val=no  ;;
29863 +           l | lu | luc | luci | lucid )       val=lucid ;;
29864 +           a | at | ath | athe | athen | athena )      val=athena ;;
29865 +           m | mo | mot | moti | motif )       val=motif ;;
29866 +           * )
29867 +{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
29868 +this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
29869 +Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
29870 +echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
29871 +this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
29872 +Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
29873 +   { (exit 1); exit 1; }; }
29874 +           ;;
29875 +         esac
29876 +         with_x_toolkit=$val
29877 +
29878 +fi;
29879 +
29880 +# Check whether --with-xpm or --without-xpm was given.
29881 +if test "${with_xpm+set}" = set; then
29882 +  withval="$with_xpm"
29883 +
29884 +fi;
29885 +
29886 +# Check whether --with-jpeg or --without-jpeg was given.
29887 +if test "${with_jpeg+set}" = set; then
29888 +  withval="$with_jpeg"
29889 +
29890 +fi;
29891 +
29892 +# Check whether --with-tiff or --without-tiff was given.
29893 +if test "${with_tiff+set}" = set; then
29894 +  withval="$with_tiff"
29895 +
29896 +fi;
29897 +
29898 +# Check whether --with-gif or --without-gif was given.
29899 +if test "${with_gif+set}" = set; then
29900 +  withval="$with_gif"
29901 +
29902 +fi;
29903 +
29904 +# Check whether --with-png or --without-png was given.
29905 +if test "${with_png+set}" = set; then
29906 +  withval="$with_png"
29907 +
29908 +fi;
29909 +
29910 +# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
29911 +if test "${with_toolkit_scroll_bars+set}" = set; then
29912 +  withval="$with_toolkit_scroll_bars"
29913 +
29914 +fi;
29915 +
29916 +# Check whether --with-xim or --without-xim was given.
29917 +if test "${with_xim+set}" = set; then
29918 +  withval="$with_xim"
29919 +
29920 +fi;
29921 +
29922 +#### Make srcdir absolute, if it isn't already.  It's important to
29923 +#### avoid running the path through pwd unnecessarily, since pwd can
29924 +#### give you automounter prefixes, which can go away.  We do all this
29925 +#### so Emacs can find its files when run uninstalled.
29926 +## Make sure CDPATH doesn't affect cd (in case PWD is relative).
29927 +unset CDPATH
29928 +case "${srcdir}" in
29929 +  /* ) ;;
29930 +  . )
29931 +    ## We may be able to use the $PWD environment variable to make this
29932 +    ## absolute.  But sometimes PWD is inaccurate.
29933 +    if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}"  ;
29934 +    then
29935 +      srcdir="$PWD"
29936 +    else
29937 +      srcdir="`(cd ${srcdir}; pwd)`"
29938 +    fi
29939 +  ;;
29940 +  *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
29941 +esac
29942 +
29943 +#### Check if the source directory already has a configured system in it.
29944 +if test `pwd` != `(cd ${srcdir} && pwd)` \
29945 +   && test -f "${srcdir}/src/config.h" ; then
29946 +  { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
29947 +   as a build directory right now; it has been configured in its own
29948 +   right.  To configure in another directory as well, you MUST
29949 +   use GNU make.  If you do not have GNU make, then you must
29950 +   now do \`make distclean' in ${srcdir},
29951 +   and then run $0 again." >&5
29952 +echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
29953 +   as a build directory right now; it has been configured in its own
29954 +   right.  To configure in another directory as well, you MUST
29955 +   use GNU make.  If you do not have GNU make, then you must
29956 +   now do \`make distclean' in ${srcdir},
29957 +   and then run $0 again." >&2;}
29958 +
29959 +  extrasub='/^VPATH[    ]*=/c\
29960 +vpath %.c $(srcdir)\
29961 +vpath %.h $(srcdir)\
29962 +vpath %.y $(srcdir)\
29963 +vpath %.l $(srcdir)\
29964 +vpath %.s $(srcdir)\
29965 +vpath %.in $(srcdir)\
29966 +vpath %.texi $(srcdir)'
29967 +fi
29968 +
29969 +#### Given the configuration name, set machfile and opsysfile to the
29970 +#### names of the m/*.h and s/*.h files we should use.
29971 +
29972 +### Canonicalize the configuration name.
29973 +
29974 +ac_aux_dir=
29975 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
29976 +  if test -f $ac_dir/install-sh; then
29977 +    ac_aux_dir=$ac_dir
29978 +    ac_install_sh="$ac_aux_dir/install-sh -c"
29979 +    break
29980 +  elif test -f $ac_dir/install.sh; then
29981 +    ac_aux_dir=$ac_dir
29982 +    ac_install_sh="$ac_aux_dir/install.sh -c"
29983 +    break
29984 +  elif test -f $ac_dir/shtool; then
29985 +    ac_aux_dir=$ac_dir
29986 +    ac_install_sh="$ac_aux_dir/shtool install -c"
29987 +    break
29988 +  fi
29989 +done
29990 +if test -z "$ac_aux_dir"; then
29991 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
29992 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
29993 +   { (exit 1); exit 1; }; }
29994 +fi
29995 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
29996 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
29997 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
29998 +
29999 +# Make sure we can run config.sub.
30000 +$ac_config_sub sun4 >/dev/null 2>&1 ||
30001 +  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
30002 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
30003 +   { (exit 1); exit 1; }; }
30004 +
30005 +echo "$as_me:$LINENO: checking build system type" >&5
30006 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
30007 +if test "${ac_cv_build+set}" = set; then
30008 +  echo $ECHO_N "(cached) $ECHO_C" >&6
30009 +else
30010 +  ac_cv_build_alias=$build_alias
30011 +test -z "$ac_cv_build_alias" &&
30012 +  ac_cv_build_alias=`$ac_config_guess`
30013 +test -z "$ac_cv_build_alias" &&
30014 +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
30015 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
30016 +   { (exit 1); exit 1; }; }
30017 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
30018 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
30019 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
30020 +   { (exit 1); exit 1; }; }
30021 +
30022 +fi
30023 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
30024 +echo "${ECHO_T}$ac_cv_build" >&6
30025 +build=$ac_cv_build
30026 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
30027 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
30028 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
30029 +
30030 +
30031 +echo "$as_me:$LINENO: checking host system type" >&5
30032 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
30033 +if test "${ac_cv_host+set}" = set; then
30034 +  echo $ECHO_N "(cached) $ECHO_C" >&6
30035 +else
30036 +  ac_cv_host_alias=$host_alias
30037 +test -z "$ac_cv_host_alias" &&
30038 +  ac_cv_host_alias=$ac_cv_build_alias
30039 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
30040 +  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
30041 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
30042 +   { (exit 1); exit 1; }; }
30043 +
30044 +fi
30045 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
30046 +echo "${ECHO_T}$ac_cv_host" >&6
30047 +host=$ac_cv_host
30048 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
30049 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
30050 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
30051 +
30052 +
30053 +canonical=$host
30054 +configuration=$host_alias
30055 +
30056 +
30057 +### If you add support for a new configuration, add code to this
30058 +### switch statement to recognize your configuration name and select
30059 +### the appropriate operating system and machine description files.
30060 +
30061 +### You would hope that you could choose an m/*.h file pretty much
30062 +### based on the machine portion of the configuration name, and an s-
30063 +### file based on the operating system portion.  However, it turns out
30064 +### that each m/*.h file is pretty manufacturer-specific - for
30065 +### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
30066 +### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
30067 +### machines.  So we basically have to have a special case for each
30068 +### configuration name.
30069 +###
30070 +### As far as handling version numbers on operating systems is
30071 +### concerned, make sure things will fail in a fixable way.  If
30072 +### /etc/MACHINES doesn't say anything about version numbers, be
30073 +### prepared to handle anything reasonably.  If version numbers
30074 +### matter, be sure /etc/MACHINES says something about it.
30075 +###
30076 +### Eric Raymond says we should accept strings like "sysvr4" to mean
30077 +### "System V Release 4"; he writes, "The old convention encouraged
30078 +### confusion between `system' and `release' levels'."
30079 +
30080 +machine='' opsys='' unported=no
30081 +case "${canonical}" in
30082 +
30083 +  ## NetBSD ports
30084 +  *-*-netbsd* )
30085 +    opsys=netbsd
30086 +    case "${canonical}" in
30087 +      alpha*-*-netbsd*)        machine=alpha ;;
30088 +      i[3456]86-*-netbsd*) machine=intel386 ;;
30089 +      m68k-*-netbsd*)
30090 +                       # This is somewhat bogus.
30091 +                       machine=hp9000s300 ;;
30092 +      powerpc-apple-netbsd*) machine=macppc ;;
30093 +      mips-*-netbsd*)  machine=pmax ;;
30094 +      mipsel-*-netbsd*)        machine=pmax ;;
30095 +      ns32k-*-netbsd*) machine=ns32000 ;;
30096 +      powerpc-*-netbsd*) machine=macppc ;;
30097 +      sparc*-*-netbsd*)        machine=sparc ;;
30098 +      vax-*-netbsd*)   machine=vax ;;
30099 +      arm-*-netbsd*)   machine=arm ;;
30100 +    esac
30101 +  ;;
30102 +
30103 +  ## OpenBSD ports
30104 +  *-*-openbsd* )
30105 +    opsys=openbsd
30106 +    case "${canonical}" in
30107 +      alpha*-*-openbsd*)       machine=alpha ;;
30108 +      i386-*-openbsd*) machine=intel386 ;;
30109 +      m68k-*-openbsd*)  machine=hp9000s300 ;;
30110 +      mipsel-*-openbsd*) machine=pmax ;;
30111 +      ns32k-*-openbsd*)        machine=ns32000 ;;
30112 +      sparc-*-openbsd*)        machine=sparc ;;
30113 +      vax-*-openbsd*)  machine=vax ;;
30114 +    esac
30115 +  ;;
30116 +
30117 +  ## Acorn RISCiX:
30118 +  arm-acorn-riscix1.1* )
30119 +    machine=acorn opsys=riscix1-1
30120 +  ;;
30121 +  arm-acorn-riscix1.2* | arm-acorn-riscix )
30122 +    ## This name is riscix12 instead of riscix1.2
30123 +    ## to avoid a file name conflict on MSDOS.
30124 +    machine=acorn opsys=riscix12
30125 +  ;;
30126 +
30127 +  ## BSDI ports
30128 +  *-*-bsdi* )
30129 +    opsys=bsdi
30130 +    case "${canonical}" in
30131 +      i[345]86-*-bsdi*) machine=intel386 ;;
30132 +      sparc-*-bsdi*)  machine=sparc ;;
30133 +      powerpc-*-bsdi*)  machine=macppc ;;
30134 +    esac
30135 +    case "${canonical}" in
30136 +      *-*-bsd386* | *-*-bsdi1* )       opsys=bsd386 ;;
30137 +      *-*-bsdi2.0* )           opsys=bsdos2 ;;
30138 +      *-*-bsdi2* )             opsys=bsdos2-1 ;;
30139 +      *-*-bsdi3* )             opsys=bsdos3 ;;
30140 +      *-*-bsdi[45]* )          opsys=bsdos4 ;;
30141 +    esac
30142 +  ;;
30143 +
30144 +  ## Alliant machines
30145 +  ## Strictly speaking, we need the version of the alliant operating
30146 +  ## system to choose the right machine file, but currently the
30147 +  ## configuration name doesn't tell us enough to choose the right
30148 +  ## one; we need to give alliants their own operating system name to
30149 +  ## do this right.  When someone cares, they can help us.
30150 +  fx80-alliant-* )
30151 +    machine=alliant4 opsys=bsd4-2
30152 +  ;;
30153 +  i860-alliant-* )
30154 +    machine=alliant-2800 opsys=bsd4-3
30155 +  ;;
30156 +
30157 +  ## Alpha (DEC) machines.
30158 +  alpha*-dec-osf* )
30159 +    machine=alpha opsys=osf1
30160 +    # This is needed to find X11R6.1 libraries for certain tests.
30161 +    NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
30162 +    GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
30163 +    # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
30164 +    # due to non-traditional preprocessing with the current compiler
30165 +    # defaults.  OSF 4 can also have that compiler version, and there
30166 +    # seems always to have been a usable /usr/bin/cpp.
30167 +    NON_GNU_CPP=/usr/bin/cpp
30168 +    case "${canonical}" in
30169 +    alpha*-dec-osf[5-9]*)
30170 +      opsys=osf5-0 ;;
30171 +    esac
30172 +  ;;
30173 +
30174 +  alpha*-*-linux-gnu* )
30175 +    machine=alpha opsys=gnu-linux
30176 +  ;;
30177 +
30178 +  arm*-*-linux-gnu* )
30179 +    machine=arm opsys=gnu-linux
30180 +  ;;
30181 +
30182 +  ppc-*-linux | \
30183 +  powerpc-*-linux* )
30184 +    machine=macppc opsys=gnu-linux
30185 +  ;;
30186 +
30187 +  ## Altos 3068
30188 +  m68*-altos-sysv* )
30189 +    machine=altos opsys=usg5-2
30190 +  ;;
30191 +
30192 +  ## Amdahl UTS
30193 +  580-amdahl-sysv* )
30194 +    machine=amdahl opsys=usg5-2-2
30195 +  ;;
30196 +
30197 +  ## Apollo, Domain/OS
30198 +  m68*-apollo-* )
30199 +    machine=apollo opsys=bsd4-3
30200 +  ;;
30201 +
30202 +  ## AT&T 3b2, 3b5, 3b15, 3b20
30203 +  we32k-att-sysv* )
30204 +    machine=att3b opsys=usg5-2-2
30205 +  ;;
30206 +
30207 +  ## AT&T 3b1 - The Mighty Unix PC!
30208 +  m68*-att-sysv* )
30209 +    machine=7300 opsys=usg5-2-2
30210 +  ;;
30211 +
30212 +  ## Bull dpx20
30213 +  rs6000-bull-bosx* )
30214 +    machine=ibmrs6000 opsys=aix3-2
30215 +  ;;
30216 +
30217 +  ## Bull dpx2
30218 +  m68*-bull-sysv3* )
30219 +    machine=dpx2 opsys=usg5-3
30220 +  ;;
30221 +
30222 +  ## Bull sps7
30223 +  m68*-bull-sysv2* )
30224 +    machine=sps7 opsys=usg5-2
30225 +  ;;
30226 +
30227 +  ## CCI 5/32, 6/32 -- see "Tahoe".
30228 +
30229 +  ## Celerity
30230 +  ## I don't know what configuration name to use for this; config.sub
30231 +  ## doesn't seem to know anything about it.  Hey, Celerity users, get
30232 +  ## in touch with us!
30233 +  celerity-celerity-bsd* )
30234 +    machine=celerity opsys=bsd4-2
30235 +  ;;
30236 +
30237 +  ## Clipper
30238 +  ## What operating systems does this chip run that Emacs has been
30239 +  ## tested on?
30240 +  clipper-* )
30241 +    machine=clipper
30242 +    ## We'll use the catch-all code at the bottom to guess the
30243 +    ## operating system.
30244 +  ;;
30245 +
30246 +  ## Convex
30247 +  *-convex-bsd* | *-convex-convexos* )
30248 +    machine=convex opsys=bsd4-3
30249 +    ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
30250 +    NON_GNU_CPP="cc -E -P"
30251 +  ;;
30252 +
30253 +  ## Cubix QBx/386
30254 +  i[3456]86-cubix-sysv* )
30255 +    machine=intel386 opsys=usg5-3
30256 +  ;;
30257 +
30258 +  ## Cydra 5
30259 +  cydra*-cydrome-sysv* )
30260 +    machine=cydra5 opsys=usg5-3
30261 +  ;;
30262 +
30263 +  ## Data General AViiON Machines
30264 +  ## DG changed naming conventions with the release of 5.4.4.10, they
30265 +  ## dropped the initial 5.4 but left the intervening R.  Because of the
30266 +  ## R this shouldn't conflict with older versions of the OS (which I
30267 +  ## think were named like dgux4.*). In addition, DG new AViiONs series
30268 +  ## uses either Motorola M88k or Intel Pentium CPUs.
30269 +  m88k-dg-dguxR4.* | m88k-dg-dgux4* )
30270 +    machine=aviion opsys=dgux4
30271 +  ;;
30272 +  m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
30273 +    ## This name is dgux5-4-3 instead of dgux5-4r3
30274 +    ## to avoid a file name conflict on MSDOS.
30275 +    machine=aviion opsys=dgux5-4-3
30276 +  ;;
30277 +  m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
30278 +    machine=aviion opsys=dgux5-4r2
30279 +  ;;
30280 +  m88k-dg-dgux* )
30281 +    machine=aviion opsys=dgux
30282 +  ;;
30283 +
30284 +  ## Data General AViiON Intel (x86) Machines
30285 +  ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
30286 +  ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
30287 +  i[345]86-dg-dguxR4* )
30288 +    machine=aviion-intel opsys=dgux4
30289 +  ;;
30290 +
30291 +  ## DECstations
30292 +  mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
30293 +    machine=pmax opsys=bsd4-2
30294 +  ;;
30295 +  mips-dec-ultrix4.[12]* | mips-dec-bsd* )
30296 +    machine=pmax opsys=bsd4-3
30297 +  ;;
30298 +  mips-dec-ultrix* )
30299 +    machine=pmax opsys=ultrix4-3
30300 +  ;;
30301 +  mips-dec-osf* )
30302 +    machine=pmax opsys=osf1
30303 +  ;;
30304 +  mips-dec-mach_bsd4.3* )
30305 +    machine=pmax opsys=mach-bsd4-3
30306 +  ;;
30307 +
30308 +  ## Motorola Delta machines
30309 +  m68k-motorola-sysv* | m68000-motorola-sysv* )
30310 +    machine=delta opsys=usg5-3
30311 +    if test -z "`type gnucc | grep 'not found'`"
30312 +    then
30313 +      if test -s /etc/167config
30314 +      then CC="gnucc -m68040"
30315 +      else CC="gnucc -m68881"
30316 +      fi
30317 +    else
30318 +      if test -z "`type gcc | grep 'not found'`"
30319 +      then CC=gcc
30320 +      else CC=cc
30321 +      fi
30322 +    fi
30323 +  ;;
30324 +  m88k-motorola-sysv4* )
30325 +    # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
30326 +    # needs POSIX_SIGNALS and therefore needs usg5-4-2.
30327 +    # I hope there are not other 4.0 versions for this machine
30328 +    # which really need usg5-4 instead.
30329 +    machine=delta88k opsys=usg5-4-2
30330 +  ;;
30331 +  m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
30332 +    machine=delta88k opsys=usg5-3
30333 +  ;;
30334 +
30335 +  ## Dual machines
30336 +  m68*-dual-sysv* )
30337 +    machine=dual opsys=usg5-2
30338 +  ;;
30339 +  m68*-dual-uniplus* )
30340 +    machine=dual opsys=unipl5-2
30341 +  ;;
30342 +
30343 +  ## Elxsi 6400
30344 +  elxsi-elxsi-sysv* )
30345 +    machine=elxsi opsys=usg5-2
30346 +  ;;
30347 +
30348 +  ## Encore machines
30349 +  ns16k-encore-bsd* )
30350 +    machine=ns16000 opsys=umax
30351 +  ;;
30352 +
30353 +  ## The GEC 63 - apparently, this port isn't really finished yet.
30354 +  #  I'm sure we finished off the last of the machines, though.  -- fx
30355 +
30356 +  ## Gould Power Node and NP1
30357 +  pn-gould-bsd4.2* )
30358 +    machine=gould opsys=bsd4-2
30359 +  ;;
30360 +  pn-gould-bsd4.3* )
30361 +    machine=gould opsys=bsd4-3
30362 +  ;;
30363 +  np1-gould-bsd* )
30364 +    machine=gould-np1 opsys=bsd4-3
30365 +  ;;
30366 +
30367 +  ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
30368 +  ## as far as Emacs is concerned).
30369 +  m88k-harris-cxux* )
30370 +    # Build needs to be different on 7.0 and later releases
30371 +    case "`uname -r`" in
30372 +       [56].[0-9] ) machine=nh4000 opsys=cxux ;;
30373 +       [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
30374 +    esac
30375 +    NON_GNU_CPP="/lib/cpp"
30376 +  ;;
30377 +  ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
30378 +  m68k-harris-cxux* )
30379 +    machine=nh3000 opsys=cxux
30380 +  ;;
30381 +  ## Harris power pc NightHawk running Power UNIX (Series 6000)
30382 +  powerpc-harris-powerunix )
30383 +    machine=nh6000 opsys=powerunix
30384 +    NON_GNU_CPP="cc -Xo -E -P"
30385 +  ;;
30386 +  ## SR2001/SR2201 running HI-UX/MPP
30387 +  hppa1.1-hitachi-hiuxmpp* )
30388 +    machine=sr2k opsys=hiuxmpp
30389 +  ;;
30390 +  hppa1.1-hitachi-hiuxwe2* )
30391 +    machine=sr2k opsys=hiuxwe2
30392 +  ;;
30393 +  ## Honeywell XPS100
30394 +  xps*-honeywell-sysv* )
30395 +    machine=xps100 opsys=usg5-2
30396 +  ;;
30397 +
30398 +  ## HP 9000 series 200 or 300
30399 +  m68*-hp-bsd* )
30400 +    machine=hp9000s300 opsys=bsd4-3
30401 +  ;;
30402 +  ## HP/UX 7, 8, 9, and 10 are supported on these machines.
30403 +  m68*-hp-hpux* )
30404 +    case "`uname -r`" in
30405 +      ## Someone's system reports A.B8.05 for this.
30406 +      ## I wonder what other possibilities there are.
30407 +      *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
30408 +      *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
30409 +      *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
30410 +      *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
30411 +      *) machine=hp9000s300 opsys=hpux ;;
30412 +    esac
30413 +  ;;
30414 +
30415 +  ## HP 9000 series 700 and 800, running HP/UX
30416 +  hppa*-hp-hpux7* )
30417 +    machine=hp800 opsys=hpux
30418 +  ;;
30419 +  hppa*-hp-hpux8* )
30420 +    machine=hp800 opsys=hpux8
30421 +  ;;
30422 +  hppa*-hp-hpux9shr* )
30423 +    machine=hp800 opsys=hpux9shr
30424 +  ;;
30425 +  hppa*-hp-hpux9* )
30426 +    machine=hp800 opsys=hpux9
30427 +  ;;
30428 +
30429 +  hppa*-hp-hpux10.2* )
30430 +    machine=hp800 opsys=hpux10-20
30431 +  ;;
30432 +
30433 +  hppa*-hp-hpux10* )
30434 +    machine=hp800 opsys=hpux10
30435 +  ;;
30436 +
30437 +  hppa*-hp-hpux1[1-9]* )
30438 +    machine=hp800 opsys=hpux11
30439 +  ;;
30440 +
30441 +  ## HP 9000 series 700 and 800, running HP/UX
30442 +  hppa*-hp-hpux* )
30443 +    ## Cross-compilation?  Nah!
30444 +    case "`uname -r`" in
30445 +      ## Someone's system reports A.B8.05 for this.
30446 +      ## I wonder what other possibilities there are.
30447 +      *.B8.* ) machine=hp800 opsys=hpux8 ;;
30448 +      *.08.* ) machine=hp800 opsys=hpux8 ;;
30449 +      *.09.* ) machine=hp800 opsys=hpux9 ;;
30450 +      *) machine=hp800 opsys=hpux10 ;;
30451 +    esac
30452 +  ;;
30453 +  hppa*-*-nextstep* )
30454 +    machine=hp800 opsys=nextstep
30455 +  ;;
30456 +  hppa*-*-linux-gnu* )
30457 +    machine=hp800 opsys=gnu-linux
30458 +  ;;
30459 +
30460 +  ## Orion machines
30461 +  orion-orion-bsd* )
30462 +    machine=orion opsys=bsd4-2
30463 +  ;;
30464 +  clipper-orion-bsd* )
30465 +    machine=orion105 opsys=bsd4-2
30466 +  ;;
30467 +
30468 +  ## IBM machines
30469 +  i[3456]86-ibm-aix1.1* )
30470 +    machine=ibmps2-aix opsys=usg5-2-2
30471 +  ;;
30472 +  i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
30473 +    machine=ibmps2-aix opsys=usg5-3
30474 +  ;;
30475 +  i370-ibm-aix*)
30476 +    machine=ibm370aix opsys=usg5-3
30477 +  ;;
30478 +  s390-*-linux-gnu)
30479 +    machine=ibms390 opsys=gnu-linux
30480 +  ;;
30481 +  rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
30482 +    machine=ibmrs6000 opsys=aix3-1
30483 +  ;;
30484 +  rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
30485 +    machine=ibmrs6000 opsys=aix3-2-5
30486 +  ;;
30487 +  rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
30488 +    machine=ibmrs6000 opsys=aix4-1
30489 +  ;;
30490 +  rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
30491 +    machine=ibmrs6000 opsys=aix4-2
30492 +  ;;
30493 +  rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
30494 +    machine=ibmrs6000 opsys=aix4-2
30495 +  ;;
30496 +  rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
30497 +    machine=ibmrs6000 opsys=aix4
30498 +  ;;
30499 +  rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
30500 +    machine=ibmrs6000 opsys=aix4-1
30501 +  ;;
30502 +  rs6000-ibm-aix* | powerpc-ibm-aix* )
30503 +    machine=ibmrs6000 opsys=aix3-2
30504 +  ;;
30505 +  romp-ibm-bsd4.3* )
30506 +    machine=ibmrt opsys=bsd4-3
30507 +  ;;
30508 +  romp-ibm-bsd4.2* )
30509 +    machine=ibmrt opsys=bsd4-2
30510 +  ;;
30511 +  romp-ibm-aos4.3* )
30512 +    machine=ibmrt opsys=bsd4-3
30513 +  ;;
30514 +  romp-ibm-aos4.2* )
30515 +    machine=ibmrt opsys=bsd4-2
30516 +  ;;
30517 +  romp-ibm-aos* )
30518 +    machine=ibmrt opsys=bsd4-3
30519 +  ;;
30520 +  romp-ibm-bsd* )
30521 +    machine=ibmrt opsys=bsd4-3
30522 +  ;;
30523 +  romp-ibm-aix* )
30524 +    machine=ibmrt-aix opsys=usg5-2-2
30525 +  ;;
30526 +
30527 +  s390*-*-linux-gnu* )
30528 +    machine=s390 opsys=gnu-linux
30529 +  ;;
30530 +
30531 +  ## Integrated Solutions `Optimum V'
30532 +  m68*-isi-bsd4.2* )
30533 +    machine=isi-ov opsys=bsd4-2
30534 +  ;;
30535 +  m68*-isi-bsd4.3* )
30536 +    machine=isi-ov opsys=bsd4-3
30537 +  ;;
30538 +
30539 +  ## Intel 386 machines where we do care about the manufacturer
30540 +  i[3456]86-intsys-sysv* )
30541 +    machine=is386 opsys=usg5-2-2
30542 +  ;;
30543 +
30544 +  ## Prime EXL
30545 +  i[3456]86-prime-sysv* )
30546 +    machine=i386 opsys=usg5-3
30547 +  ;;
30548 +
30549 +  ## Sequent Symmetry running Dynix
30550 +  i[3456]86-sequent-bsd* )
30551 +    machine=symmetry opsys=bsd4-3
30552 +  ;;
30553 +
30554 +  ## Sequent Symmetry running ptx 4, which is a modified SVR4.
30555 +  i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
30556 +    machine=sequent-ptx opsys=ptx4
30557 +    NON_GNU_CPP=/lib/cpp
30558 +  ;;
30559 +
30560 +  ## Sequent Symmetry running DYNIX/ptx
30561 +  ## Use the old cpp rather than the newer ANSI one.
30562 +  i[3456]86-sequent-ptx* )
30563 +    machine=sequent-ptx opsys=ptx
30564 +    NON_GNU_CPP="/lib/cpp"
30565 +  ;;
30566 +
30567 +  ## ncr machine running svr4.3.
30568 +  i[3456]86-ncr-sysv4.3 )
30569 +    machine=ncr386 opsys=usg5-4-3
30570 +  ;;
30571 +
30572 +  ## Unspecified sysv on an ncr machine defaults to svr4.2.
30573 +  ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
30574 +  i[3456]86-ncr-sysv* )
30575 +    machine=ncr386 opsys=usg5-4-2
30576 +  ;;
30577 +
30578 +  ## Intel Paragon OSF/1
30579 +  i860-intel-osf1* )
30580 +    machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
30581 +  ;;
30582 +
30583 +  ## Intel 860
30584 +  i860-*-sysv4* )
30585 +    machine=i860 opsys=usg5-4
30586 +    NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
30587 +    NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
30588 +  ;;
30589 +
30590 +  ## Macintosh PowerPC
30591 +  powerpc*-*-linux-gnu* )
30592 +    machine=macppc opsys=gnu-linux
30593 +  ;;
30594 +
30595 +  ## Masscomp machines
30596 +  m68*-masscomp-rtu* )
30597 +    machine=masscomp opsys=rtu
30598 +  ;;
30599 +
30600 +  ## Megatest machines
30601 +  m68*-megatest-bsd* )
30602 +    machine=mega68 opsys=bsd4-2
30603 +  ;;
30604 +
30605 +  ## Workstations sold by MIPS
30606 +  ## This is not necessarily all workstations using the MIPS processor -
30607 +  ## Irises are produced by SGI, and DECstations by DEC.
30608 +
30609 +  ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
30610 +  ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
30611 +  ## it gives for choosing between the alternatives seems to be "Use
30612 +  ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
30613 +  ## the BSD world."  I'll assume that these are instructions for
30614 +  ## handling two odd situations, and that every other situation
30615 +  ## should use mips.h and usg5-2-2, they being listed first.
30616 +  mips-mips-usg* )
30617 +    machine=mips4
30618 +    ## Fall through to the general code at the bottom to decide on the OS.
30619 +  ;;
30620 +  mips-mips-riscos4* )
30621 +    machine=mips4 opsys=bsd4-3
30622 +    NON_GNU_CC="cc -systype bsd43"
30623 +    NON_GNU_CPP="cc -systype bsd43 -E"
30624 +  ;;
30625 +  mips-mips-riscos5* )
30626 +    machine=mips4 opsys=riscos5
30627 +    NON_GNU_CC="cc -systype bsd43"
30628 +    NON_GNU_CPP="cc -systype bsd43 -E"
30629 +  ;;
30630 +  mips-mips-bsd* )
30631 +    machine=mips opsys=bsd4-3
30632 +  ;;
30633 +  mips-mips-* )
30634 +    machine=mips opsys=usg5-2-2
30635 +  ;;
30636 +
30637 +  ## NeXT
30638 +  m68*-next-* | m68k-*-nextstep* )
30639 +    machine=m68k opsys=nextstep
30640 +  ;;
30641 +
30642 +  ## The complete machine from National Semiconductor
30643 +  ns32k-ns-genix* )
30644 +    machine=ns32000 opsys=usg5-2
30645 +  ;;
30646 +
30647 +  ## NCR machines
30648 +  m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
30649 +    machine=tower32 opsys=usg5-2-2
30650 +  ;;
30651 +  m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
30652 +    machine=tower32v3 opsys=usg5-3
30653 +  ;;
30654 +
30655 +  ## NEC EWS4800
30656 +  mips-nec-sysv4*)
30657 +  machine=ews4800 opsys=ux4800
30658 +  ;;
30659 +
30660 +  ## Nixdorf Targon 31
30661 +  m68*-nixdorf-sysv* )
30662 +    machine=targon31 opsys=usg5-2-2
30663 +  ;;
30664 +
30665 +  ## Nu (TI or LMI)
30666 +  m68*-nu-sysv* )
30667 +    machine=nu opsys=usg5-2
30668 +  ;;
30669 +
30670 +  ## Plexus
30671 +  m68*-plexus-sysv* )
30672 +    machine=plexus opsys=usg5-2
30673 +  ;;
30674 +
30675 +  ## PowerPC reference platform
30676 +  powerpcle-*-solaris2* )
30677 +    machine=prep
30678 +    opsys=sol2-5
30679 +  ;;
30680 +
30681 +  ## Pyramid machines
30682 +  ## I don't really have any idea what sort of processor the Pyramid has,
30683 +  ## so I'm assuming it is its own architecture.
30684 +  pyramid-pyramid-bsd* )
30685 +    machine=pyramid opsys=bsd4-2
30686 +  ;;
30687 +
30688 +  ## Sequent Balance
30689 +  ns32k-sequent-bsd4.2* )
30690 +    machine=sequent opsys=bsd4-2
30691 +  ;;
30692 +  ns32k-sequent-bsd4.3* )
30693 +    machine=sequent opsys=bsd4-3
30694 +  ;;
30695 +
30696 +  ## Siemens Nixdorf
30697 +  mips-siemens-sysv* | mips-sni-sysv*)
30698 +    machine=mips-siemens opsys=usg5-4
30699 +    NON_GNU_CC=/usr/ccs/bin/cc
30700 +    NON_GNU_CPP=/usr/ccs/lib/cpp
30701 +  ;;
30702 +
30703 +  ## Silicon Graphics machines
30704 +  ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
30705 +  m68*-sgi-iris3.5* )
30706 +    machine=irist opsys=iris3-5
30707 +  ;;
30708 +  m68*-sgi-iris3.6* | m68*-sgi-iris*)
30709 +    machine=irist opsys=iris3-6
30710 +  ;;
30711 +  ## Iris 4D
30712 +  mips-sgi-irix3* )
30713 +    machine=iris4d opsys=irix3-3
30714 +  ;;
30715 +  mips-sgi-irix4* )
30716 +    machine=iris4d opsys=irix4-0
30717 +  ;;
30718 +  mips-sgi-irix6.5 )
30719 +    machine=iris4d opsys=irix6-5
30720 +    # Without defining _LANGUAGE_C, things get masked out in the headers
30721 +    # so that, for instance, grepping for `free' in stdlib.h fails and
30722 +    # AC_HEADER_STD_C fails.   (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
30723 +    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
30724 +    NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
30725 +  ;;
30726 +  mips-sgi-irix6* )
30727 +    machine=iris4d opsys=irix6-0
30728 +    # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
30729 +    # but presumably it does no harm.
30730 +    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
30731 +    # -32 probably isn't necessary in later v.6s -- anyone know which?
30732 +    NON_GCC_TEST_OPTIONS=-32
30733 +  ;;
30734 +  mips-sgi-irix5.[01]* )
30735 +    machine=iris4d opsys=irix5-0
30736 +  ;;
30737 +  mips-sgi-irix5* | mips-sgi-irix* )
30738 +    machine=iris4d opsys=irix5-2
30739 +  ;;
30740 +
30741 +  ## SONY machines
30742 +  m68*-sony-bsd4.2* )
30743 +    machine=news opsys=bsd4-2
30744 +  ;;
30745 +  m68*-sony-bsd4.3* )
30746 +    machine=news opsys=bsd4-3
30747 +  ;;
30748 +  m68*-sony-newsos3* | m68*-sony-news3*)
30749 +    machine=news opsys=bsd4-3
30750 +  ;;
30751 +  mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
30752 +    machine=news-risc opsys=bsd4-3
30753 +  ;;
30754 +  mips-sony-newsos6* )
30755 +    machine=news-r6 opsys=newsos6
30756 +  ;;
30757 +  mips-sony-news* )
30758 +    machine=news-risc opsys=newsos5
30759 +  ;;
30760 +
30761 +  ## Stride
30762 +  m68*-stride-sysv* )
30763 +    machine=stride opsys=usg5-2
30764 +  ;;
30765 +
30766 +  ## Suns
30767 +  sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
30768 +    machine=sparc opsys=gnu-linux
30769 +  ;;
30770 +
30771 +  *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
30772 +    | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
30773 +    | rs6000-*-solaris2*)
30774 +    case "${canonical}" in
30775 +      m68*-sunos1* )   machine=sun1 ;;
30776 +      m68*-sunos2* )   machine=sun2 ;;
30777 +      m68* )           machine=sun3 ;;
30778 +      i[3456]86-sun-sunos[34]* )       machine=sun386 ;;
30779 +      i[3456]86-*-* )     machine=intel386 ;;
30780 +      powerpcle* )      machine=powerpcle ;;
30781 +      powerpc* | rs6000* )  machine=ibmrs6000 ;;
30782 +      sparc* )         machine=sparc ;;
30783 +      * )              unported=yes ;;
30784 +    esac
30785 +    case "${canonical}" in
30786 +      ## The Sun386 didn't get past 4.0.
30787 +      i[3456]86-*-sunos4         ) opsys=sunos4-0 ;;
30788 +      *-sunos4.0*        ) opsys=sunos4-0 ;;
30789 +      *-sunos4.1.[3-9]*noshare )
30790 +               ## This name is sunos413 instead of sunos4-1-3
30791 +               ## to avoid a file name conflict on MSDOS.
30792 +               opsys=sunos413
30793 +               NON_GNU_CPP=/usr/lib/cpp
30794 +               NON_GCC_TEST_OPTIONS=-Bstatic
30795 +               GCC_TEST_OPTIONS=-static
30796 +               ;;
30797 +      *-sunos4.1.[3-9]* | *-sunos4shr*)
30798 +               opsys=sunos4shr
30799 +               NON_GNU_CPP=/usr/lib/cpp
30800 +               ;;
30801 +      *-sunos4* | *-sunos )
30802 +               opsys=sunos4-1
30803 +               NON_GCC_TEST_OPTIONS=-Bstatic
30804 +               GCC_TEST_OPTIONS=-static
30805 +               ;;
30806 +      *-sunos5.3* | *-solaris2.3* )
30807 +               opsys=sol2-3
30808 +               NON_GNU_CPP=/usr/ccs/lib/cpp
30809 +               ;;
30810 +      *-sunos5.4* | *-solaris2.4* )
30811 +               opsys=sol2-4
30812 +               NON_GNU_CPP=/usr/ccs/lib/cpp
30813 +               RANLIB="ar -ts"
30814 +               ;;
30815 +      *-sunos5.5* | *-solaris2.5* )
30816 +               opsys=sol2-5
30817 +               NON_GNU_CPP=/usr/ccs/lib/cpp
30818 +               RANLIB="ar -ts"
30819 +               ;;
30820 +      *-sunos5* | *-solaris* )
30821 +               opsys=sol2-5
30822 +               NON_GNU_CPP=/usr/ccs/lib/cpp
30823 +               ;;
30824 +      *                          ) opsys=bsd4-2   ;;
30825 +    esac
30826 +    ## Watch out for a compiler that we know will not work.
30827 +    case "${canonical}" in
30828 +     *-solaris* | *-sunos5* )
30829 +               if [ "x$CC" = x/usr/ucb/cc ]; then
30830 +                 ## /usr/ucb/cc doesn't work;
30831 +                 ## we should find some other compiler that does work.
30832 +                 unset CC
30833 +               fi
30834 +               ;;
30835 +      *) ;;
30836 +    esac
30837 +  ;;
30838 +  sparc-*-nextstep* )
30839 +    machine=sparc opsys=nextstep
30840 +  ;;
30841 +
30842 +  ## Tadpole 68k
30843 +  m68*-tadpole-sysv* )
30844 +    machine=tad68k opsys=usg5-3
30845 +  ;;
30846 +
30847 +  ## Tahoe machines
30848 +  tahoe-tahoe-bsd4.2* )
30849 +    machine=tahoe opsys=bsd4-2
30850 +  ;;
30851 +  tahoe-tahoe-bsd4.3* )
30852 +    machine=tahoe opsys=bsd4-3
30853 +  ;;
30854 +
30855 +  ## Tandem Integrity S2
30856 +  mips-tandem-sysv* )
30857 +    machine=tandem-s2 opsys=usg5-3
30858 +  ;;
30859 +
30860 +  ## Tektronix XD88
30861 +  m88k-tektronix-sysv3* )
30862 +  machine=tekxd88 opsys=usg5-3
30863 +  ;;
30864 +
30865 +  ## Tektronix 16000 box (6130?)
30866 +  ns16k-tektronix-bsd* )
30867 +    machine=ns16000 opsys=bsd4-2
30868 +  ;;
30869 +  ## Tektronix 4300
30870 +  ## src/m/tek4300.h hints that this is a m68k machine.
30871 +  m68*-tektronix-bsd* )
30872 +    machine=tek4300 opsys=bsd4-3
30873 +  ;;
30874 +
30875 +  ## Titan P2 or P3
30876 +  ## We seem to have lost the machine-description file titan.h!
30877 +  titan-titan-sysv* )
30878 +    machine=titan opsys=usg5-3
30879 +  ;;
30880 +
30881 +  ## Ustation E30 (SS5E)
30882 +  m68*-unisys-uniplus* )
30883 +    machine=ustation opsystem=unipl5-2
30884 +  ;;
30885 +
30886 +  ## Vaxen.
30887 +  vax-dec-* )
30888 +    machine=vax
30889 +    case "${canonical}" in
30890 +      *-bsd4.1* )                                      opsys=bsd4-1 ;;
30891 +      *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )     opsys=bsd4-2 ;;
30892 +      *-bsd4.3* | *-ultrix* )                          opsys=bsd4-3 ;;
30893 +      *-sysv[01]* | *-sysvr[01]* )                     opsys=usg5-0 ;;
30894 +      *-sysv2* | *-sysvr2* )                           opsys=usg5-2 ;;
30895 +      *-vms* )                                                 opsys=vms ;;
30896 +      * )                                              unported=yes
30897 +    esac
30898 +  ;;
30899 +
30900 +  ## Whitechapel MG1
30901 +  ns16k-whitechapel-* )
30902 +    machine=mg1
30903 +    ## We don't know what sort of OS runs on these; we'll let the
30904 +    ## operating system guessing code below try.
30905 +  ;;
30906 +
30907 +  ## Wicat
30908 +  m68*-wicat-sysv* )
30909 +    machine=wicat opsys=usg5-2
30910 +  ;;
30911 +
30912 +  ## IA-64
30913 +  ia64*-*-linux* )
30914 +    machine=ia64 opsys=gnu-linux
30915 +  ;;
30916 +
30917 +  ## Intel 386 machines where we don't care about the manufacturer
30918 +  i[3456]86-*-* )
30919 +    machine=intel386
30920 +    case "${canonical}" in
30921 +      *-lynxos* )               opsys=lynxos ;;
30922 +      *-isc1.* | *-isc2.[01]* )        opsys=386-ix ;;
30923 +      *-isc2.2* )              opsys=isc2-2 ;;
30924 +      *-isc4.0* )              opsys=isc4-0 ;;
30925 +      *-isc4.* )               opsys=isc4-1
30926 +                               GCC_TEST_OPTIONS=-posix
30927 +                               NON_GCC_TEST_OPTIONS=-Xp
30928 +                               ;;
30929 +      *-isc* )                 opsys=isc3-0 ;;
30930 +      *-esix5* )               opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
30931 +      *-esix* )                        opsys=esix ;;
30932 +      *-xenix* )               opsys=xenix ;;
30933 +      *-linux-gnu* )           opsys=gnu-linux ;;
30934 +      *-sco3.2v4* )            opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
30935 +      *-sco3.2v5* )            opsys=sco5
30936 +                               NON_GNU_CPP=/lib/cpp
30937 +                               # Prevent -belf from being passed to $CPP.
30938 +                               # /lib/cpp does not accept it.
30939 +                               OVERRIDE_CPPFLAGS=" "
30940 +                               ;;
30941 +      *-sysv4.2uw* )           opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
30942 +      *-386bsd* )              opsys=386bsd ;;
30943 +      *-freebsd* )             opsys=freebsd ;;
30944 +      *-nextstep* )             opsys=nextstep ;;
30945 +      ## Otherwise, we'll fall through to the generic opsys code at the bottom.
30946 +    esac
30947 +  ;;
30948 +
30949 +  ## m68k Linux-based GNU system
30950 +  m68k-*-linux-gnu* )
30951 +    machine=m68k opsys=gnu-linux
30952 +  ;;
30953 +
30954 +  ## Mips Linux-based GNU system
30955 +  mips-*-linux-gnu* | mipsel-*-linux-gnu* )
30956 +    machine=mips opsys=gnu-linux
30957 +  ;;
30958 +
30959 +  ## Mipsel (little endian) Linux-based GNU system
30960 +  mipsel-*-linux-gnu* )
30961 +    machine=mipsel opsys=gnu-linux
30962 +  ;;
30963 +
30964 +  ## UXP/DS
30965 +  sparc-fujitsu-sysv4* )
30966 +    machine=sparc opsys=uxpds
30967 +    NON_GNU_CPP=/usr/ccs/lib/cpp
30968 +    RANLIB="ar -ts"
30969 +  ;;
30970 +
30971 +  ## UXP/V
30972 +  f301-fujitsu-uxpv4.1)
30973 +    machine=f301 opsys=uxpv
30974 +  ;;
30975 +
30976 +  ## AMD x86-64 Linux-based GNU system
30977 +  x86_64-*-linux-gnu* )
30978 +    machine=amdx86-64 opsys=gnu-linux
30979 +  ;;
30980 +
30981 +  * )
30982 +    unported=yes
30983 +  ;;
30984 +esac
30985 +
30986 +### If the code above didn't choose an operating system, just choose
30987 +### an operating system based on the configuration name.  You really
30988 +### only want to use this when you have no idea what the right
30989 +### operating system is; if you know what operating systems a machine
30990 +### runs, it's cleaner to make it explicit in the case statement
30991 +### above.
30992 +if test x"${opsys}" = x; then
30993 +  case "${canonical}" in
30994 +    *-gnu* )                           opsys=gnu ;;
30995 +    *-bsd4.[01] )                      opsys=bsd4-1 ;;
30996 +    *-bsd4.2 )                         opsys=bsd4-2 ;;
30997 +    *-bsd4.3 )                         opsys=bsd4-3 ;;
30998 +    *-sysv0 | *-sysvr0 )               opsys=usg5-0 ;;
30999 +    *-sysv2 | *-sysvr2 )               opsys=usg5-2 ;;
31000 +    *-sysv2.2 | *-sysvr2.2 )           opsys=usg5-2-2 ;;
31001 +    *-sysv3* | *-sysvr3* )             opsys=usg5-3 ;;
31002 +    *-sysv4.2uw* )                     opsys=unixware ;;
31003 +    *-sysv4.1* | *-sysvr4.1* )
31004 +       NON_GNU_CPP=/usr/lib/cpp
31005 +       opsys=usg5-4 ;;
31006 +    *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
31007 +       if [ x$NON_GNU_CPP = x ]; then
31008 +         if [ -f /usr/ccs/lib/cpp ]; then
31009 +           NON_GNU_CPP=/usr/ccs/lib/cpp
31010 +         else
31011 +           NON_GNU_CPP=/lib/cpp
31012 +         fi
31013 +       fi
31014 +       opsys=usg5-4-2 ;;
31015 +    *-sysv4* | *-sysvr4* )             opsys=usg5-4 ;;
31016 +    * )
31017 +      unported=yes
31018 +    ;;
31019 +  esac
31020 +fi
31021 +
31022 +
31023 +if test $unported = yes; then
31024 +  { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
31025 +Check \`etc/MACHINES' for recognized configuration names." >&5
31026 +echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
31027 +Check \`etc/MACHINES' for recognized configuration names." >&2;}
31028 +   { (exit 1); exit 1; }; }
31029 +fi
31030 +
31031 +machfile="m/${machine}.h"
31032 +opsysfile="s/${opsys}.h"
31033 +
31034 +
31035 +#### Choose a compiler.
31036 +test -n "$CC" && cc_specified=yes
31037 +
31038 +# Save the value of CFLAGS that the user specified.
31039 +SPECIFIED_CFLAGS="$CFLAGS"
31040 +
31041 +case ${with_gcc} in
31042 +  "yes" ) CC="gcc" GCC=yes ;;
31043 +  "no"  ) : ${CC=cc} ;;
31044 +  * ) ac_ext=c
31045 +ac_cpp='$CPP $CPPFLAGS'
31046 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31049 +if test -n "$ac_tool_prefix"; then
31050 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31051 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
31052 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31053 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31054 +if test "${ac_cv_prog_CC+set}" = set; then
31055 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31056 +else
31057 +  if test -n "$CC"; then
31058 +  ac_cv_prog_CC="$CC" # Let the user override the test.
31059 +else
31060 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31061 +for as_dir in $PATH
31062 +do
31063 +  IFS=$as_save_IFS
31064 +  test -z "$as_dir" && as_dir=.
31065 +  for ac_exec_ext in '' $ac_executable_extensions; do
31066 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31067 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
31068 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31069 +    break 2
31070 +  fi
31071 +done
31072 +done
31073 +
31074 +fi
31075 +fi
31076 +CC=$ac_cv_prog_CC
31077 +if test -n "$CC"; then
31078 +  echo "$as_me:$LINENO: result: $CC" >&5
31079 +echo "${ECHO_T}$CC" >&6
31080 +else
31081 +  echo "$as_me:$LINENO: result: no" >&5
31082 +echo "${ECHO_T}no" >&6
31083 +fi
31084 +
31085 +fi
31086 +if test -z "$ac_cv_prog_CC"; then
31087 +  ac_ct_CC=$CC
31088 +  # Extract the first word of "gcc", so it can be a program name with args.
31089 +set dummy gcc; ac_word=$2
31090 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31091 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31092 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31093 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31094 +else
31095 +  if test -n "$ac_ct_CC"; then
31096 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31097 +else
31098 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31099 +for as_dir in $PATH
31100 +do
31101 +  IFS=$as_save_IFS
31102 +  test -z "$as_dir" && as_dir=.
31103 +  for ac_exec_ext in '' $ac_executable_extensions; do
31104 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31105 +    ac_cv_prog_ac_ct_CC="gcc"
31106 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31107 +    break 2
31108 +  fi
31109 +done
31110 +done
31111 +
31112 +fi
31113 +fi
31114 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31115 +if test -n "$ac_ct_CC"; then
31116 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31117 +echo "${ECHO_T}$ac_ct_CC" >&6
31118 +else
31119 +  echo "$as_me:$LINENO: result: no" >&5
31120 +echo "${ECHO_T}no" >&6
31121 +fi
31122 +
31123 +  CC=$ac_ct_CC
31124 +else
31125 +  CC="$ac_cv_prog_CC"
31126 +fi
31127 +
31128 +if test -z "$CC"; then
31129 +  if test -n "$ac_tool_prefix"; then
31130 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31131 +set dummy ${ac_tool_prefix}cc; ac_word=$2
31132 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31133 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31134 +if test "${ac_cv_prog_CC+set}" = set; then
31135 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31136 +else
31137 +  if test -n "$CC"; then
31138 +  ac_cv_prog_CC="$CC" # Let the user override the test.
31139 +else
31140 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31141 +for as_dir in $PATH
31142 +do
31143 +  IFS=$as_save_IFS
31144 +  test -z "$as_dir" && as_dir=.
31145 +  for ac_exec_ext in '' $ac_executable_extensions; do
31146 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31147 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
31148 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31149 +    break 2
31150 +  fi
31151 +done
31152 +done
31153 +
31154 +fi
31155 +fi
31156 +CC=$ac_cv_prog_CC
31157 +if test -n "$CC"; then
31158 +  echo "$as_me:$LINENO: result: $CC" >&5
31159 +echo "${ECHO_T}$CC" >&6
31160 +else
31161 +  echo "$as_me:$LINENO: result: no" >&5
31162 +echo "${ECHO_T}no" >&6
31163 +fi
31164 +
31165 +fi
31166 +if test -z "$ac_cv_prog_CC"; then
31167 +  ac_ct_CC=$CC
31168 +  # Extract the first word of "cc", so it can be a program name with args.
31169 +set dummy cc; ac_word=$2
31170 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31171 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31172 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31173 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31174 +else
31175 +  if test -n "$ac_ct_CC"; then
31176 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31177 +else
31178 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31179 +for as_dir in $PATH
31180 +do
31181 +  IFS=$as_save_IFS
31182 +  test -z "$as_dir" && as_dir=.
31183 +  for ac_exec_ext in '' $ac_executable_extensions; do
31184 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31185 +    ac_cv_prog_ac_ct_CC="cc"
31186 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31187 +    break 2
31188 +  fi
31189 +done
31190 +done
31191 +
31192 +fi
31193 +fi
31194 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31195 +if test -n "$ac_ct_CC"; then
31196 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31197 +echo "${ECHO_T}$ac_ct_CC" >&6
31198 +else
31199 +  echo "$as_me:$LINENO: result: no" >&5
31200 +echo "${ECHO_T}no" >&6
31201 +fi
31202 +
31203 +  CC=$ac_ct_CC
31204 +else
31205 +  CC="$ac_cv_prog_CC"
31206 +fi
31207 +
31208 +fi
31209 +if test -z "$CC"; then
31210 +  # Extract the first word of "cc", so it can be a program name with args.
31211 +set dummy cc; ac_word=$2
31212 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31213 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31214 +if test "${ac_cv_prog_CC+set}" = set; then
31215 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31216 +else
31217 +  if test -n "$CC"; then
31218 +  ac_cv_prog_CC="$CC" # Let the user override the test.
31219 +else
31220 +  ac_prog_rejected=no
31221 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31222 +for as_dir in $PATH
31223 +do
31224 +  IFS=$as_save_IFS
31225 +  test -z "$as_dir" && as_dir=.
31226 +  for ac_exec_ext in '' $ac_executable_extensions; do
31227 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31228 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31229 +       ac_prog_rejected=yes
31230 +       continue
31231 +     fi
31232 +    ac_cv_prog_CC="cc"
31233 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31234 +    break 2
31235 +  fi
31236 +done
31237 +done
31238 +
31239 +if test $ac_prog_rejected = yes; then
31240 +  # We found a bogon in the path, so make sure we never use it.
31241 +  set dummy $ac_cv_prog_CC
31242 +  shift
31243 +  if test $# != 0; then
31244 +    # We chose a different compiler from the bogus one.
31245 +    # However, it has the same basename, so the bogon will be chosen
31246 +    # first if we set CC to just the basename; use the full file name.
31247 +    shift
31248 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31249 +  fi
31250 +fi
31251 +fi
31252 +fi
31253 +CC=$ac_cv_prog_CC
31254 +if test -n "$CC"; then
31255 +  echo "$as_me:$LINENO: result: $CC" >&5
31256 +echo "${ECHO_T}$CC" >&6
31257 +else
31258 +  echo "$as_me:$LINENO: result: no" >&5
31259 +echo "${ECHO_T}no" >&6
31260 +fi
31261 +
31262 +fi
31263 +if test -z "$CC"; then
31264 +  if test -n "$ac_tool_prefix"; then
31265 +  for ac_prog in cl
31266 +  do
31267 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31268 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31269 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31270 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31271 +if test "${ac_cv_prog_CC+set}" = set; then
31272 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31273 +else
31274 +  if test -n "$CC"; then
31275 +  ac_cv_prog_CC="$CC" # Let the user override the test.
31276 +else
31277 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31278 +for as_dir in $PATH
31279 +do
31280 +  IFS=$as_save_IFS
31281 +  test -z "$as_dir" && as_dir=.
31282 +  for ac_exec_ext in '' $ac_executable_extensions; do
31283 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31284 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31285 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31286 +    break 2
31287 +  fi
31288 +done
31289 +done
31290 +
31291 +fi
31292 +fi
31293 +CC=$ac_cv_prog_CC
31294 +if test -n "$CC"; then
31295 +  echo "$as_me:$LINENO: result: $CC" >&5
31296 +echo "${ECHO_T}$CC" >&6
31297 +else
31298 +  echo "$as_me:$LINENO: result: no" >&5
31299 +echo "${ECHO_T}no" >&6
31300 +fi
31301 +
31302 +    test -n "$CC" && break
31303 +  done
31304 +fi
31305 +if test -z "$CC"; then
31306 +  ac_ct_CC=$CC
31307 +  for ac_prog in cl
31308 +do
31309 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
31310 +set dummy $ac_prog; ac_word=$2
31311 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31312 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31313 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31314 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31315 +else
31316 +  if test -n "$ac_ct_CC"; then
31317 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31318 +else
31319 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320 +for as_dir in $PATH
31321 +do
31322 +  IFS=$as_save_IFS
31323 +  test -z "$as_dir" && as_dir=.
31324 +  for ac_exec_ext in '' $ac_executable_extensions; do
31325 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31326 +    ac_cv_prog_ac_ct_CC="$ac_prog"
31327 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31328 +    break 2
31329 +  fi
31330 +done
31331 +done
31332 +
31333 +fi
31334 +fi
31335 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31336 +if test -n "$ac_ct_CC"; then
31337 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31338 +echo "${ECHO_T}$ac_ct_CC" >&6
31339 +else
31340 +  echo "$as_me:$LINENO: result: no" >&5
31341 +echo "${ECHO_T}no" >&6
31342 +fi
31343 +
31344 +  test -n "$ac_ct_CC" && break
31345 +done
31346 +
31347 +  CC=$ac_ct_CC
31348 +fi
31349 +
31350 +fi
31351 +
31352 +
31353 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
31354 +See \`config.log' for more details." >&5
31355 +echo "$as_me: error: no acceptable C compiler found in \$PATH
31356 +See \`config.log' for more details." >&2;}
31357 +   { (exit 1); exit 1; }; }
31358 +
31359 +# Provide some information about the compiler.
31360 +echo "$as_me:$LINENO:" \
31361 +     "checking for C compiler version" >&5
31362 +ac_compiler=`set X $ac_compile; echo $2`
31363 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
31364 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
31365 +  ac_status=$?
31366 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 +  (exit $ac_status); }
31368 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
31369 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
31370 +  ac_status=$?
31371 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 +  (exit $ac_status); }
31373 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
31374 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
31375 +  ac_status=$?
31376 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 +  (exit $ac_status); }
31378 +
31379 +cat >conftest.$ac_ext <<_ACEOF
31380 +/* confdefs.h.  */
31381 +_ACEOF
31382 +cat confdefs.h >>conftest.$ac_ext
31383 +cat >>conftest.$ac_ext <<_ACEOF
31384 +/* end confdefs.h.  */
31385 +
31386 +int
31387 +main ()
31388 +{
31389 +
31390 +  ;
31391 +  return 0;
31392 +}
31393 +_ACEOF
31394 +ac_clean_files_save=$ac_clean_files
31395 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
31396 +# Try to create an executable without -o first, disregard a.out.
31397 +# It will help us diagnose broken compilers, and finding out an intuition
31398 +# of exeext.
31399 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
31400 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
31401 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31402 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
31403 +  (eval $ac_link_default) 2>&5
31404 +  ac_status=$?
31405 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 +  (exit $ac_status); }; then
31407 +  # Find the output, starting from the most likely.  This scheme is
31408 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
31409 +# resort.
31410 +
31411 +# Be careful to initialize this variable, since it used to be cached.
31412 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
31413 +ac_cv_exeext=
31414 +# b.out is created by i960 compilers.
31415 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
31416 +do
31417 +  test -f "$ac_file" || continue
31418 +  case $ac_file in
31419 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
31420 +       ;;
31421 +    conftest.$ac_ext )
31422 +       # This is the source file.
31423 +       ;;
31424 +    [ab].out )
31425 +       # We found the default executable, but exeext='' is most
31426 +       # certainly right.
31427 +       break;;
31428 +    *.* )
31429 +       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31430 +       # FIXME: I believe we export ac_cv_exeext for Libtool,
31431 +       # but it would be cool to find out if it's true.  Does anybody
31432 +       # maintain Libtool? --akim.
31433 +       export ac_cv_exeext
31434 +       break;;
31435 +    * )
31436 +       break;;
31437 +  esac
31438 +done
31439 +else
31440 +  echo "$as_me: failed program was:" >&5
31441 +sed 's/^/| /' conftest.$ac_ext >&5
31442 +
31443 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
31444 +See \`config.log' for more details." >&5
31445 +echo "$as_me: error: C compiler cannot create executables
31446 +See \`config.log' for more details." >&2;}
31447 +   { (exit 77); exit 77; }; }
31448 +fi
31449 +
31450 +ac_exeext=$ac_cv_exeext
31451 +echo "$as_me:$LINENO: result: $ac_file" >&5
31452 +echo "${ECHO_T}$ac_file" >&6
31453 +
31454 +# Check the compiler produces executables we can run.  If not, either
31455 +# the compiler is broken, or we cross compile.
31456 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
31457 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
31458 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
31459 +# If not cross compiling, check that we can run a simple program.
31460 +if test "$cross_compiling" != yes; then
31461 +  if { ac_try='./$ac_file'
31462 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31463 +  (eval $ac_try) 2>&5
31464 +  ac_status=$?
31465 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466 +  (exit $ac_status); }; }; then
31467 +    cross_compiling=no
31468 +  else
31469 +    if test "$cross_compiling" = maybe; then
31470 +       cross_compiling=yes
31471 +    else
31472 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
31473 +If you meant to cross compile, use \`--host'.
31474 +See \`config.log' for more details." >&5
31475 +echo "$as_me: error: cannot run C compiled programs.
31476 +If you meant to cross compile, use \`--host'.
31477 +See \`config.log' for more details." >&2;}
31478 +   { (exit 1); exit 1; }; }
31479 +    fi
31480 +  fi
31481 +fi
31482 +echo "$as_me:$LINENO: result: yes" >&5
31483 +echo "${ECHO_T}yes" >&6
31484 +
31485 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
31486 +ac_clean_files=$ac_clean_files_save
31487 +# Check the compiler produces executables we can run.  If not, either
31488 +# the compiler is broken, or we cross compile.
31489 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
31490 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
31491 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
31492 +echo "${ECHO_T}$cross_compiling" >&6
31493 +
31494 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
31495 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
31496 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497 +  (eval $ac_link) 2>&5
31498 +  ac_status=$?
31499 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 +  (exit $ac_status); }; then
31501 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
31502 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
31503 +# work properly (i.e., refer to `conftest.exe'), while it won't with
31504 +# `rm'.
31505 +for ac_file in conftest.exe conftest conftest.*; do
31506 +  test -f "$ac_file" || continue
31507 +  case $ac_file in
31508 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
31509 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31510 +         export ac_cv_exeext
31511 +         break;;
31512 +    * ) break;;
31513 +  esac
31514 +done
31515 +else
31516 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
31517 +See \`config.log' for more details." >&5
31518 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
31519 +See \`config.log' for more details." >&2;}
31520 +   { (exit 1); exit 1; }; }
31521 +fi
31522 +
31523 +rm -f conftest$ac_cv_exeext
31524 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
31525 +echo "${ECHO_T}$ac_cv_exeext" >&6
31526 +
31527 +rm -f conftest.$ac_ext
31528 +EXEEXT=$ac_cv_exeext
31529 +ac_exeext=$EXEEXT
31530 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
31531 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
31532 +if test "${ac_cv_objext+set}" = set; then
31533 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31534 +else
31535 +  cat >conftest.$ac_ext <<_ACEOF
31536 +/* confdefs.h.  */
31537 +_ACEOF
31538 +cat confdefs.h >>conftest.$ac_ext
31539 +cat >>conftest.$ac_ext <<_ACEOF
31540 +/* end confdefs.h.  */
31541 +
31542 +int
31543 +main ()
31544 +{
31545 +
31546 +  ;
31547 +  return 0;
31548 +}
31549 +_ACEOF
31550 +rm -f conftest.o conftest.obj
31551 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31552 +  (eval $ac_compile) 2>&5
31553 +  ac_status=$?
31554 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 +  (exit $ac_status); }; then
31556 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
31557 +  case $ac_file in
31558 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
31559 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
31560 +       break;;
31561 +  esac
31562 +done
31563 +else
31564 +  echo "$as_me: failed program was:" >&5
31565 +sed 's/^/| /' conftest.$ac_ext >&5
31566 +
31567 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
31568 +See \`config.log' for more details." >&5
31569 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
31570 +See \`config.log' for more details." >&2;}
31571 +   { (exit 1); exit 1; }; }
31572 +fi
31573 +
31574 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
31575 +fi
31576 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
31577 +echo "${ECHO_T}$ac_cv_objext" >&6
31578 +OBJEXT=$ac_cv_objext
31579 +ac_objext=$OBJEXT
31580 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
31581 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
31582 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
31583 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31584 +else
31585 +  cat >conftest.$ac_ext <<_ACEOF
31586 +/* confdefs.h.  */
31587 +_ACEOF
31588 +cat confdefs.h >>conftest.$ac_ext
31589 +cat >>conftest.$ac_ext <<_ACEOF
31590 +/* end confdefs.h.  */
31591 +
31592 +int
31593 +main ()
31594 +{
31595 +#ifndef __GNUC__
31596 +       choke me
31597 +#endif
31598 +
31599 +  ;
31600 +  return 0;
31601 +}
31602 +_ACEOF
31603 +rm -f conftest.$ac_objext
31604 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31605 +  (eval $ac_compile) 2>conftest.er1
31606 +  ac_status=$?
31607 +  grep -v '^ *+' conftest.er1 >conftest.err
31608 +  rm -f conftest.er1
31609 +  cat conftest.err >&5
31610 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 +  (exit $ac_status); } &&
31612 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31613 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 +  (eval $ac_try) 2>&5
31615 +  ac_status=$?
31616 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 +  (exit $ac_status); }; } &&
31618 +        { ac_try='test -s conftest.$ac_objext'
31619 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 +  (eval $ac_try) 2>&5
31621 +  ac_status=$?
31622 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 +  (exit $ac_status); }; }; then
31624 +  ac_compiler_gnu=yes
31625 +else
31626 +  echo "$as_me: failed program was:" >&5
31627 +sed 's/^/| /' conftest.$ac_ext >&5
31628 +
31629 +ac_compiler_gnu=no
31630 +fi
31631 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31632 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
31633 +
31634 +fi
31635 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31636 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
31637 +GCC=`test $ac_compiler_gnu = yes && echo yes`
31638 +ac_test_CFLAGS=${CFLAGS+set}
31639 +ac_save_CFLAGS=$CFLAGS
31640 +CFLAGS="-g"
31641 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
31642 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
31643 +if test "${ac_cv_prog_cc_g+set}" = set; then
31644 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31645 +else
31646 +  cat >conftest.$ac_ext <<_ACEOF
31647 +/* confdefs.h.  */
31648 +_ACEOF
31649 +cat confdefs.h >>conftest.$ac_ext
31650 +cat >>conftest.$ac_ext <<_ACEOF
31651 +/* end confdefs.h.  */
31652 +
31653 +int
31654 +main ()
31655 +{
31656 +
31657 +  ;
31658 +  return 0;
31659 +}
31660 +_ACEOF
31661 +rm -f conftest.$ac_objext
31662 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31663 +  (eval $ac_compile) 2>conftest.er1
31664 +  ac_status=$?
31665 +  grep -v '^ *+' conftest.er1 >conftest.err
31666 +  rm -f conftest.er1
31667 +  cat conftest.err >&5
31668 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 +  (exit $ac_status); } &&
31670 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31671 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31672 +  (eval $ac_try) 2>&5
31673 +  ac_status=$?
31674 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 +  (exit $ac_status); }; } &&
31676 +        { ac_try='test -s conftest.$ac_objext'
31677 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678 +  (eval $ac_try) 2>&5
31679 +  ac_status=$?
31680 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 +  (exit $ac_status); }; }; then
31682 +  ac_cv_prog_cc_g=yes
31683 +else
31684 +  echo "$as_me: failed program was:" >&5
31685 +sed 's/^/| /' conftest.$ac_ext >&5
31686 +
31687 +ac_cv_prog_cc_g=no
31688 +fi
31689 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31690 +fi
31691 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
31692 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
31693 +if test "$ac_test_CFLAGS" = set; then
31694 +  CFLAGS=$ac_save_CFLAGS
31695 +elif test $ac_cv_prog_cc_g = yes; then
31696 +  if test "$GCC" = yes; then
31697 +    CFLAGS="-g -O2"
31698 +  else
31699 +    CFLAGS="-g"
31700 +  fi
31701 +else
31702 +  if test "$GCC" = yes; then
31703 +    CFLAGS="-O2"
31704 +  else
31705 +    CFLAGS=
31706 +  fi
31707 +fi
31708 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
31709 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
31710 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
31711 +  echo $ECHO_N "(cached) $ECHO_C" >&6
31712 +else
31713 +  ac_cv_prog_cc_stdc=no
31714 +ac_save_CC=$CC
31715 +cat >conftest.$ac_ext <<_ACEOF
31716 +/* confdefs.h.  */
31717 +_ACEOF
31718 +cat confdefs.h >>conftest.$ac_ext
31719 +cat >>conftest.$ac_ext <<_ACEOF
31720 +/* end confdefs.h.  */
31721 +#include <stdarg.h>
31722 +#include <stdio.h>
31723 +#include <sys/types.h>
31724 +#include <sys/stat.h>
31725 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
31726 +struct buf { int x; };
31727 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
31728 +static char *e (p, i)
31729 +     char **p;
31730 +     int i;
31731 +{
31732 +  return p[i];
31733 +}
31734 +static char *f (char * (*g) (char **, int), char **p, ...)
31735 +{
31736 +  char *s;
31737 +  va_list v;
31738 +  va_start (v,p);
31739 +  s = g (p, va_arg (v,int));
31740 +  va_end (v);
31741 +  return s;
31742 +}
31743 +
31744 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
31745 +   function prototypes and stuff, but not '\xHH' hex character constants.
31746 +   These don't provoke an error unfortunately, instead are silently treated
31747 +   as 'x'.  The following induces an error, until -std1 is added to get
31748 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
31749 +   array size at least.  It's necessary to write '\x00'==0 to get something
31750 +   that's true only with -std1.  */
31751 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
31752 +
31753 +int test (int i, double x);
31754 +struct s1 {int (*f) (int a);};
31755 +struct s2 {int (*f) (double a);};
31756 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
31757 +int argc;
31758 +char **argv;
31759 +int
31760 +main ()
31761 +{
31762 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
31763 +  ;
31764 +  return 0;
31765 +}
31766 +_ACEOF
31767 +# Don't try gcc -ansi; that turns off useful extensions and
31768 +# breaks some systems' header files.
31769 +# AIX                  -qlanglvl=ansi
31770 +# Ultrix and OSF/1     -std1
31771 +# HP-UX 10.20 and later        -Ae
31772 +# HP-UX older versions -Aa -D_HPUX_SOURCE
31773 +# SVR4                 -Xc -D__EXTENSIONS__
31774 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
31775 +do
31776 +  CC="$ac_save_CC $ac_arg"
31777 +  rm -f conftest.$ac_objext
31778 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31779 +  (eval $ac_compile) 2>conftest.er1
31780 +  ac_status=$?
31781 +  grep -v '^ *+' conftest.er1 >conftest.err
31782 +  rm -f conftest.er1
31783 +  cat conftest.err >&5
31784 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 +  (exit $ac_status); } &&
31786 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31787 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788 +  (eval $ac_try) 2>&5
31789 +  ac_status=$?
31790 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 +  (exit $ac_status); }; } &&
31792 +        { ac_try='test -s conftest.$ac_objext'
31793 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 +  (eval $ac_try) 2>&5
31795 +  ac_status=$?
31796 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 +  (exit $ac_status); }; }; then
31798 +  ac_cv_prog_cc_stdc=$ac_arg
31799 +break
31800 +else
31801 +  echo "$as_me: failed program was:" >&5
31802 +sed 's/^/| /' conftest.$ac_ext >&5
31803 +
31804 +fi
31805 +rm -f conftest.err conftest.$ac_objext
31806 +done
31807 +rm -f conftest.$ac_ext conftest.$ac_objext
31808 +CC=$ac_save_CC
31809 +
31810 +fi
31811 +
31812 +case "x$ac_cv_prog_cc_stdc" in
31813 +  x|xno)
31814 +    echo "$as_me:$LINENO: result: none needed" >&5
31815 +echo "${ECHO_T}none needed" >&6 ;;
31816 +  *)
31817 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
31818 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
31819 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
31820 +esac
31821 +
31822 +# Some people use a C++ compiler to compile C.  Since we use `exit',
31823 +# in C++ we need to declare it.  In case someone uses the same compiler
31824 +# for both compiling C and C++ we need to have the C++ compiler decide
31825 +# the declaration of exit, since it's the most demanding environment.
31826 +cat >conftest.$ac_ext <<_ACEOF
31827 +#ifndef __cplusplus
31828 +  choke me
31829 +#endif
31830 +_ACEOF
31831 +rm -f conftest.$ac_objext
31832 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31833 +  (eval $ac_compile) 2>conftest.er1
31834 +  ac_status=$?
31835 +  grep -v '^ *+' conftest.er1 >conftest.err
31836 +  rm -f conftest.er1
31837 +  cat conftest.err >&5
31838 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 +  (exit $ac_status); } &&
31840 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31841 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 +  (eval $ac_try) 2>&5
31843 +  ac_status=$?
31844 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 +  (exit $ac_status); }; } &&
31846 +        { ac_try='test -s conftest.$ac_objext'
31847 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848 +  (eval $ac_try) 2>&5
31849 +  ac_status=$?
31850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 +  (exit $ac_status); }; }; then
31852 +  for ac_declaration in \
31853 +   '' \
31854 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
31855 +   'extern "C" void std::exit (int); using std::exit;' \
31856 +   'extern "C" void exit (int) throw ();' \
31857 +   'extern "C" void exit (int);' \
31858 +   'void exit (int);'
31859 +do
31860 +  cat >conftest.$ac_ext <<_ACEOF
31861 +/* confdefs.h.  */
31862 +_ACEOF
31863 +cat confdefs.h >>conftest.$ac_ext
31864 +cat >>conftest.$ac_ext <<_ACEOF
31865 +/* end confdefs.h.  */
31866 +$ac_declaration
31867 +#include <stdlib.h>
31868 +int
31869 +main ()
31870 +{
31871 +exit (42);
31872 +  ;
31873 +  return 0;
31874 +}
31875 +_ACEOF
31876 +rm -f conftest.$ac_objext
31877 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31878 +  (eval $ac_compile) 2>conftest.er1
31879 +  ac_status=$?
31880 +  grep -v '^ *+' conftest.er1 >conftest.err
31881 +  rm -f conftest.er1
31882 +  cat conftest.err >&5
31883 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 +  (exit $ac_status); } &&
31885 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31886 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31887 +  (eval $ac_try) 2>&5
31888 +  ac_status=$?
31889 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 +  (exit $ac_status); }; } &&
31891 +        { ac_try='test -s conftest.$ac_objext'
31892 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31893 +  (eval $ac_try) 2>&5
31894 +  ac_status=$?
31895 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896 +  (exit $ac_status); }; }; then
31897 +  :
31898 +else
31899 +  echo "$as_me: failed program was:" >&5
31900 +sed 's/^/| /' conftest.$ac_ext >&5
31901 +
31902 +continue
31903 +fi
31904 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31905 +  cat >conftest.$ac_ext <<_ACEOF
31906 +/* confdefs.h.  */
31907 +_ACEOF
31908 +cat confdefs.h >>conftest.$ac_ext
31909 +cat >>conftest.$ac_ext <<_ACEOF
31910 +/* end confdefs.h.  */
31911 +$ac_declaration
31912 +int
31913 +main ()
31914 +{
31915 +exit (42);
31916 +  ;
31917 +  return 0;
31918 +}
31919 +_ACEOF
31920 +rm -f conftest.$ac_objext
31921 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31922 +  (eval $ac_compile) 2>conftest.er1
31923 +  ac_status=$?
31924 +  grep -v '^ *+' conftest.er1 >conftest.err
31925 +  rm -f conftest.er1
31926 +  cat conftest.err >&5
31927 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 +  (exit $ac_status); } &&
31929 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31930 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931 +  (eval $ac_try) 2>&5
31932 +  ac_status=$?
31933 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 +  (exit $ac_status); }; } &&
31935 +        { ac_try='test -s conftest.$ac_objext'
31936 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 +  (eval $ac_try) 2>&5
31938 +  ac_status=$?
31939 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 +  (exit $ac_status); }; }; then
31941 +  break
31942 +else
31943 +  echo "$as_me: failed program was:" >&5
31944 +sed 's/^/| /' conftest.$ac_ext >&5
31945 +
31946 +fi
31947 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31948 +done
31949 +rm -f conftest*
31950 +if test -n "$ac_declaration"; then
31951 +  echo '#ifdef __cplusplus' >>confdefs.h
31952 +  echo $ac_declaration      >>confdefs.h
31953 +  echo '#endif'             >>confdefs.h
31954 +fi
31955 +
31956 +else
31957 +  echo "$as_me: failed program was:" >&5
31958 +sed 's/^/| /' conftest.$ac_ext >&5
31959 +
31960 +fi
31961 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31962 +ac_ext=c
31963 +ac_cpp='$CPP $CPPFLAGS'
31964 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31965 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31966 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31967 +
31968 +esac
31969 +
31970 +# On Suns, sometimes $CPP names a directory.
31971 +if test -n "$CPP" && test -d "$CPP"; then
31972 +  CPP=
31973 +fi
31974 +
31975 +#### Some systems specify a CPP to use unless we are using GCC.
31976 +#### Now that we know whether we are using GCC, we can decide whether
31977 +#### to use that one.
31978 +if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
31979 +then
31980 +  CPP="$NON_GNU_CPP"
31981 +fi
31982 +
31983 +#### Some systems specify a CC to use unless we are using GCC.
31984 +#### Now that we know whether we are using GCC, we can decide whether
31985 +#### to use that one.
31986 +if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
31987 +  test x$cc_specified != xyes
31988 +then
31989 +  CC="$NON_GNU_CC"
31990 +fi
31991 +
31992 +if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
31993 +then
31994 +  CC="$CC $GCC_TEST_OPTIONS"
31995 +fi
31996 +
31997 +if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
31998 +then
31999 +  CC="$CC $NON_GCC_TEST_OPTIONS"
32000 +fi
32001 +
32002 +if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
32003 +then
32004 +  ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
32005 +fi
32006 +
32007 +if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
32008 +then
32009 +  ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
32010 +fi
32011 +
32012 +#### Some other nice autoconf tests.  If you add a test here which
32013 +#### should make an entry in src/config.h, don't forget to add an
32014 +#### #undef clause to src/config.h.in for autoconf to modify.
32015 +
32016 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
32017 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
32018 +LN_S=$as_ln_s
32019 +if test "$LN_S" = "ln -s"; then
32020 +  echo "$as_me:$LINENO: result: yes" >&5
32021 +echo "${ECHO_T}yes" >&6
32022 +else
32023 +  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
32024 +echo "${ECHO_T}no, using $LN_S" >&6
32025 +fi
32026 +
32027 +ac_ext=c
32028 +ac_cpp='$CPP $CPPFLAGS'
32029 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32030 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32031 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
32032 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
32033 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
32034 +# On Suns, sometimes $CPP names a directory.
32035 +if test -n "$CPP" && test -d "$CPP"; then
32036 +  CPP=
32037 +fi
32038 +if test -z "$CPP"; then
32039 +  if test "${ac_cv_prog_CPP+set}" = set; then
32040 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32041 +else
32042 +      # Double quotes because CPP needs to be expanded
32043 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
32044 +    do
32045 +      ac_preproc_ok=false
32046 +for ac_c_preproc_warn_flag in '' yes
32047 +do
32048 +  # Use a header file that comes with gcc, so configuring glibc
32049 +  # with a fresh cross-compiler works.
32050 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32051 +  # <limits.h> exists even on freestanding compilers.
32052 +  # On the NeXT, cc -E runs the code through the compiler's parser,
32053 +  # not just through cpp. "Syntax error" is here to catch this case.
32054 +  cat >conftest.$ac_ext <<_ACEOF
32055 +/* confdefs.h.  */
32056 +_ACEOF
32057 +cat confdefs.h >>conftest.$ac_ext
32058 +cat >>conftest.$ac_ext <<_ACEOF
32059 +/* end confdefs.h.  */
32060 +#ifdef __STDC__
32061 +# include <limits.h>
32062 +#else
32063 +# include <assert.h>
32064 +#endif
32065 +                    Syntax error
32066 +_ACEOF
32067 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32068 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32069 +  ac_status=$?
32070 +  grep -v '^ *+' conftest.er1 >conftest.err
32071 +  rm -f conftest.er1
32072 +  cat conftest.err >&5
32073 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 +  (exit $ac_status); } >/dev/null; then
32075 +  if test -s conftest.err; then
32076 +    ac_cpp_err=$ac_c_preproc_warn_flag
32077 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32078 +  else
32079 +    ac_cpp_err=
32080 +  fi
32081 +else
32082 +  ac_cpp_err=yes
32083 +fi
32084 +if test -z "$ac_cpp_err"; then
32085 +  :
32086 +else
32087 +  echo "$as_me: failed program was:" >&5
32088 +sed 's/^/| /' conftest.$ac_ext >&5
32089 +
32090 +  # Broken: fails on valid input.
32091 +continue
32092 +fi
32093 +rm -f conftest.err conftest.$ac_ext
32094 +
32095 +  # OK, works on sane cases.  Now check whether non-existent headers
32096 +  # can be detected and how.
32097 +  cat >conftest.$ac_ext <<_ACEOF
32098 +/* confdefs.h.  */
32099 +_ACEOF
32100 +cat confdefs.h >>conftest.$ac_ext
32101 +cat >>conftest.$ac_ext <<_ACEOF
32102 +/* end confdefs.h.  */
32103 +#include <ac_nonexistent.h>
32104 +_ACEOF
32105 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32106 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32107 +  ac_status=$?
32108 +  grep -v '^ *+' conftest.er1 >conftest.err
32109 +  rm -f conftest.er1
32110 +  cat conftest.err >&5
32111 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 +  (exit $ac_status); } >/dev/null; then
32113 +  if test -s conftest.err; then
32114 +    ac_cpp_err=$ac_c_preproc_warn_flag
32115 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32116 +  else
32117 +    ac_cpp_err=
32118 +  fi
32119 +else
32120 +  ac_cpp_err=yes
32121 +fi
32122 +if test -z "$ac_cpp_err"; then
32123 +  # Broken: success on invalid input.
32124 +continue
32125 +else
32126 +  echo "$as_me: failed program was:" >&5
32127 +sed 's/^/| /' conftest.$ac_ext >&5
32128 +
32129 +  # Passes both tests.
32130 +ac_preproc_ok=:
32131 +break
32132 +fi
32133 +rm -f conftest.err conftest.$ac_ext
32134 +
32135 +done
32136 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32137 +rm -f conftest.err conftest.$ac_ext
32138 +if $ac_preproc_ok; then
32139 +  break
32140 +fi
32141 +
32142 +    done
32143 +    ac_cv_prog_CPP=$CPP
32144 +
32145 +fi
32146 +  CPP=$ac_cv_prog_CPP
32147 +else
32148 +  ac_cv_prog_CPP=$CPP
32149 +fi
32150 +echo "$as_me:$LINENO: result: $CPP" >&5
32151 +echo "${ECHO_T}$CPP" >&6
32152 +ac_preproc_ok=false
32153 +for ac_c_preproc_warn_flag in '' yes
32154 +do
32155 +  # Use a header file that comes with gcc, so configuring glibc
32156 +  # with a fresh cross-compiler works.
32157 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32158 +  # <limits.h> exists even on freestanding compilers.
32159 +  # On the NeXT, cc -E runs the code through the compiler's parser,
32160 +  # not just through cpp. "Syntax error" is here to catch this case.
32161 +  cat >conftest.$ac_ext <<_ACEOF
32162 +/* confdefs.h.  */
32163 +_ACEOF
32164 +cat confdefs.h >>conftest.$ac_ext
32165 +cat >>conftest.$ac_ext <<_ACEOF
32166 +/* end confdefs.h.  */
32167 +#ifdef __STDC__
32168 +# include <limits.h>
32169 +#else
32170 +# include <assert.h>
32171 +#endif
32172 +                    Syntax error
32173 +_ACEOF
32174 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32175 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32176 +  ac_status=$?
32177 +  grep -v '^ *+' conftest.er1 >conftest.err
32178 +  rm -f conftest.er1
32179 +  cat conftest.err >&5
32180 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 +  (exit $ac_status); } >/dev/null; then
32182 +  if test -s conftest.err; then
32183 +    ac_cpp_err=$ac_c_preproc_warn_flag
32184 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32185 +  else
32186 +    ac_cpp_err=
32187 +  fi
32188 +else
32189 +  ac_cpp_err=yes
32190 +fi
32191 +if test -z "$ac_cpp_err"; then
32192 +  :
32193 +else
32194 +  echo "$as_me: failed program was:" >&5
32195 +sed 's/^/| /' conftest.$ac_ext >&5
32196 +
32197 +  # Broken: fails on valid input.
32198 +continue
32199 +fi
32200 +rm -f conftest.err conftest.$ac_ext
32201 +
32202 +  # OK, works on sane cases.  Now check whether non-existent headers
32203 +  # can be detected and how.
32204 +  cat >conftest.$ac_ext <<_ACEOF
32205 +/* confdefs.h.  */
32206 +_ACEOF
32207 +cat confdefs.h >>conftest.$ac_ext
32208 +cat >>conftest.$ac_ext <<_ACEOF
32209 +/* end confdefs.h.  */
32210 +#include <ac_nonexistent.h>
32211 +_ACEOF
32212 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32213 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32214 +  ac_status=$?
32215 +  grep -v '^ *+' conftest.er1 >conftest.err
32216 +  rm -f conftest.er1
32217 +  cat conftest.err >&5
32218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 +  (exit $ac_status); } >/dev/null; then
32220 +  if test -s conftest.err; then
32221 +    ac_cpp_err=$ac_c_preproc_warn_flag
32222 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32223 +  else
32224 +    ac_cpp_err=
32225 +  fi
32226 +else
32227 +  ac_cpp_err=yes
32228 +fi
32229 +if test -z "$ac_cpp_err"; then
32230 +  # Broken: success on invalid input.
32231 +continue
32232 +else
32233 +  echo "$as_me: failed program was:" >&5
32234 +sed 's/^/| /' conftest.$ac_ext >&5
32235 +
32236 +  # Passes both tests.
32237 +ac_preproc_ok=:
32238 +break
32239 +fi
32240 +rm -f conftest.err conftest.$ac_ext
32241 +
32242 +done
32243 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
32244 +rm -f conftest.err conftest.$ac_ext
32245 +if $ac_preproc_ok; then
32246 +  :
32247 +else
32248 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
32249 +See \`config.log' for more details." >&5
32250 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
32251 +See \`config.log' for more details." >&2;}
32252 +   { (exit 1); exit 1; }; }
32253 +fi
32254 +
32255 +ac_ext=c
32256 +ac_cpp='$CPP $CPPFLAGS'
32257 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32258 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32259 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
32260 +
32261 +# Find a good install program.  We prefer a C program (faster),
32262 +# so one script is as good as another.  But avoid the broken or
32263 +# incompatible versions:
32264 +# SysV /etc/install, /usr/sbin/install
32265 +# SunOS /usr/etc/install
32266 +# IRIX /sbin/install
32267 +# AIX /bin/install
32268 +# AmigaOS /C/install, which installs bootblocks on floppy discs
32269 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
32270 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
32271 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32272 +# OS/2's system install, which has a completely different semantic
32273 +# ./install, which can be erroneously created by make from ./install.sh.
32274 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
32275 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
32276 +if test -z "$INSTALL"; then
32277 +if test "${ac_cv_path_install+set}" = set; then
32278 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32279 +else
32280 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32281 +for as_dir in $PATH
32282 +do
32283 +  IFS=$as_save_IFS
32284 +  test -z "$as_dir" && as_dir=.
32285 +  # Account for people who put trailing slashes in PATH elements.
32286 +case $as_dir/ in
32287 +  ./ | .// | /cC/* | \
32288 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32289 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
32290 +  /usr/ucb/* ) ;;
32291 +  *)
32292 +    # OSF1 and SCO ODT 3.0 have their own names for install.
32293 +    # Don't use installbsd from OSF since it installs stuff as root
32294 +    # by default.
32295 +    for ac_prog in ginstall scoinst install; do
32296 +      for ac_exec_ext in '' $ac_executable_extensions; do
32297 +       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
32298 +         if test $ac_prog = install &&
32299 +           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
32300 +           # AIX install.  It has an incompatible calling convention.
32301 +           :
32302 +         elif test $ac_prog = install &&
32303 +           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
32304 +           # program-specific install script used by HP pwplus--don't use.
32305 +           :
32306 +         else
32307 +           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
32308 +           break 3
32309 +         fi
32310 +       fi
32311 +      done
32312 +    done
32313 +    ;;
32314 +esac
32315 +done
32316 +
32317 +
32318 +fi
32319 +  if test "${ac_cv_path_install+set}" = set; then
32320 +    INSTALL=$ac_cv_path_install
32321 +  else
32322 +    # As a last resort, use the slow shell script.  We don't cache a
32323 +    # path for INSTALL within a source directory, because that will
32324 +    # break other packages using the cache if that directory is
32325 +    # removed, or if the path is relative.
32326 +    INSTALL=$ac_install_sh
32327 +  fi
32328 +fi
32329 +echo "$as_me:$LINENO: result: $INSTALL" >&5
32330 +echo "${ECHO_T}$INSTALL" >&6
32331 +
32332 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
32333 +# It thinks the first close brace ends the variable substitution.
32334 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
32335 +
32336 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
32337 +
32338 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
32339 +
32340 +for ac_prog in 'bison -y' byacc
32341 +do
32342 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
32343 +set dummy $ac_prog; ac_word=$2
32344 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32345 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32346 +if test "${ac_cv_prog_YACC+set}" = set; then
32347 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32348 +else
32349 +  if test -n "$YACC"; then
32350 +  ac_cv_prog_YACC="$YACC" # Let the user override the test.
32351 +else
32352 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32353 +for as_dir in $PATH
32354 +do
32355 +  IFS=$as_save_IFS
32356 +  test -z "$as_dir" && as_dir=.
32357 +  for ac_exec_ext in '' $ac_executable_extensions; do
32358 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32359 +    ac_cv_prog_YACC="$ac_prog"
32360 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32361 +    break 2
32362 +  fi
32363 +done
32364 +done
32365 +
32366 +fi
32367 +fi
32368 +YACC=$ac_cv_prog_YACC
32369 +if test -n "$YACC"; then
32370 +  echo "$as_me:$LINENO: result: $YACC" >&5
32371 +echo "${ECHO_T}$YACC" >&6
32372 +else
32373 +  echo "$as_me:$LINENO: result: no" >&5
32374 +echo "${ECHO_T}no" >&6
32375 +fi
32376 +
32377 +  test -n "$YACC" && break
32378 +done
32379 +test -n "$YACC" || YACC="yacc"
32380 +
32381 +if test "x$RANLIB" = x; then
32382 +  if test -n "$ac_tool_prefix"; then
32383 +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
32384 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
32385 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32386 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32387 +if test "${ac_cv_prog_RANLIB+set}" = set; then
32388 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32389 +else
32390 +  if test -n "$RANLIB"; then
32391 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
32392 +else
32393 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32394 +for as_dir in $PATH
32395 +do
32396 +  IFS=$as_save_IFS
32397 +  test -z "$as_dir" && as_dir=.
32398 +  for ac_exec_ext in '' $ac_executable_extensions; do
32399 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32400 +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
32401 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32402 +    break 2
32403 +  fi
32404 +done
32405 +done
32406 +
32407 +fi
32408 +fi
32409 +RANLIB=$ac_cv_prog_RANLIB
32410 +if test -n "$RANLIB"; then
32411 +  echo "$as_me:$LINENO: result: $RANLIB" >&5
32412 +echo "${ECHO_T}$RANLIB" >&6
32413 +else
32414 +  echo "$as_me:$LINENO: result: no" >&5
32415 +echo "${ECHO_T}no" >&6
32416 +fi
32417 +
32418 +fi
32419 +if test -z "$ac_cv_prog_RANLIB"; then
32420 +  ac_ct_RANLIB=$RANLIB
32421 +  # Extract the first word of "ranlib", so it can be a program name with args.
32422 +set dummy ranlib; ac_word=$2
32423 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32424 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32425 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
32426 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32427 +else
32428 +  if test -n "$ac_ct_RANLIB"; then
32429 +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
32430 +else
32431 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32432 +for as_dir in $PATH
32433 +do
32434 +  IFS=$as_save_IFS
32435 +  test -z "$as_dir" && as_dir=.
32436 +  for ac_exec_ext in '' $ac_executable_extensions; do
32437 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32438 +    ac_cv_prog_ac_ct_RANLIB="ranlib"
32439 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32440 +    break 2
32441 +  fi
32442 +done
32443 +done
32444 +
32445 +  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
32446 +fi
32447 +fi
32448 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
32449 +if test -n "$ac_ct_RANLIB"; then
32450 +  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
32451 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
32452 +else
32453 +  echo "$as_me:$LINENO: result: no" >&5
32454 +echo "${ECHO_T}no" >&6
32455 +fi
32456 +
32457 +  RANLIB=$ac_ct_RANLIB
32458 +else
32459 +  RANLIB="$ac_cv_prog_RANLIB"
32460 +fi
32461 +
32462 +fi
32463 +
32464 +
32465 +
32466 +echo "$as_me:$LINENO: checking for egrep" >&5
32467 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
32468 +if test "${ac_cv_prog_egrep+set}" = set; then
32469 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32470 +else
32471 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
32472 +    then ac_cv_prog_egrep='grep -E'
32473 +    else ac_cv_prog_egrep='egrep'
32474 +    fi
32475 +fi
32476 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
32477 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
32478 + EGREP=$ac_cv_prog_egrep
32479 +
32480 +
32481 +
32482 +echo "$as_me:$LINENO: checking for AIX" >&5
32483 +echo $ECHO_N "checking for AIX... $ECHO_C" >&6
32484 +cat >conftest.$ac_ext <<_ACEOF
32485 +/* confdefs.h.  */
32486 +_ACEOF
32487 +cat confdefs.h >>conftest.$ac_ext
32488 +cat >>conftest.$ac_ext <<_ACEOF
32489 +/* end confdefs.h.  */
32490 +#ifdef _AIX
32491 +  yes
32492 +#endif
32493 +
32494 +_ACEOF
32495 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32496 +  $EGREP "yes" >/dev/null 2>&1; then
32497 +  echo "$as_me:$LINENO: result: yes" >&5
32498 +echo "${ECHO_T}yes" >&6
32499 +cat >>confdefs.h <<\_ACEOF
32500 +#define _ALL_SOURCE 1
32501 +_ACEOF
32502 +
32503 +else
32504 +  echo "$as_me:$LINENO: result: no" >&5
32505 +echo "${ECHO_T}no" >&6
32506 +fi
32507 +rm -f conftest*
32508 +
32509 +
32510 +
32511 +#### Extract some information from the operating system and machine files.
32512 +
32513 +{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
32514 + - which libraries the lib-src programs will want, and
32515 + - whether the GNU malloc routines are usable..." >&5
32516 +echo "$as_me: checking the machine- and system-dependent files to find out
32517 + - which libraries the lib-src programs will want, and
32518 + - whether the GNU malloc routines are usable..." >&6;}
32519 +
32520 +### First figure out CFLAGS (which we use for running the compiler here)
32521 +### and REAL_CFLAGS (which we use for real compilation).
32522 +### The two are the same except on a few systems, where they are made
32523 +### different to work around various lossages.  For example,
32524 +### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
32525 +### as implying static linking.
32526 +
32527 +### If the CFLAGS env var is specified, we use that value
32528 +### instead of the default.
32529 +
32530 +### It's not important that this name contain the PID; you can't run
32531 +### two configures in the same directory and have anything work
32532 +### anyway.
32533 +tempcname="conftest.c"
32534 +
32535 +echo '
32536 +#include "'${srcdir}'/src/'${opsysfile}'"
32537 +#include "'${srcdir}'/src/'${machfile}'"
32538 +#ifndef LIBS_MACHINE
32539 +#define LIBS_MACHINE
32540 +#endif
32541 +#ifndef LIBS_SYSTEM
32542 +#define LIBS_SYSTEM
32543 +#endif
32544 +#ifndef C_SWITCH_SYSTEM
32545 +#define C_SWITCH_SYSTEM
32546 +#endif
32547 +#ifndef C_SWITCH_MACHINE
32548 +#define C_SWITCH_MACHINE
32549 +#endif
32550 +configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
32551 +configure___ c_switch_system=C_SWITCH_SYSTEM
32552 +configure___ c_switch_machine=C_SWITCH_MACHINE
32553 +
32554 +#ifndef LIB_X11_LIB
32555 +#define LIB_X11_LIB -lX11
32556 +#endif
32557 +
32558 +#ifndef LIBX11_MACHINE
32559 +#define LIBX11_MACHINE
32560 +#endif
32561 +
32562 +#ifndef LIBX11_SYSTEM
32563 +#define LIBX11_SYSTEM
32564 +#endif
32565 +configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
32566 +
32567 +#ifdef UNEXEC
32568 +configure___ unexec=UNEXEC
32569 +#else
32570 +configure___ unexec=unexec.o
32571 +#endif
32572 +
32573 +#ifdef SYSTEM_MALLOC
32574 +configure___ system_malloc=yes
32575 +#else
32576 +configure___ system_malloc=no
32577 +#endif
32578 +
32579 +#ifdef USE_MMAP_FOR_BUFFERS
32580 +configure___ use_mmap_for_buffers=yes
32581 +#else
32582 +configure___ use_mmap_for_buffers=no
32583 +#endif
32584 +
32585 +#ifndef C_DEBUG_SWITCH
32586 +#define C_DEBUG_SWITCH -g
32587 +#endif
32588 +
32589 +#ifndef C_OPTIMIZE_SWITCH
32590 +#ifdef __GNUC__
32591 +#define C_OPTIMIZE_SWITCH -O2
32592 +#else
32593 +#define C_OPTIMIZE_SWITCH -O
32594 +#endif
32595 +#endif
32596 +
32597 +#ifndef LD_SWITCH_MACHINE
32598 +#define LD_SWITCH_MACHINE
32599 +#endif
32600 +
32601 +#ifndef LD_SWITCH_SYSTEM
32602 +#define LD_SWITCH_SYSTEM
32603 +#endif
32604 +
32605 +#ifndef LD_SWITCH_X_SITE_AUX
32606 +#define LD_SWITCH_X_SITE_AUX
32607 +#endif
32608 +
32609 +configure___ ld_switch_system=LD_SWITCH_SYSTEM
32610 +configure___ ld_switch_machine=LD_SWITCH_MACHINE
32611 +
32612 +#ifdef THIS_IS_CONFIGURE
32613 +
32614 +/* Get the CFLAGS for tests in configure.  */
32615 +#ifdef __GNUC__
32616 +configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
32617 +#else
32618 +configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
32619 +#endif
32620 +
32621 +#else /* not THIS_IS_CONFIGURE */
32622 +
32623 +/* Get the CFLAGS for real compilation.  */
32624 +#ifdef __GNUC__
32625 +configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
32626 +#else
32627 +configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
32628 +#endif
32629 +
32630 +#endif /* not THIS_IS_CONFIGURE */
32631 +' > ${tempcname}
32632 +
32633 +# The value of CPP is a quoted variable reference, so we need to do this
32634 +# to get its actual value...
32635 +CPP=`eval "echo $CPP"`
32636 +eval `${CPP} -Isrc ${tempcname} \
32637 +       | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
32638 +if test "x$SPECIFIED_CFLAGS" = x; then
32639 +  eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
32640 +        | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
32641 +else
32642 +  REAL_CFLAGS="$CFLAGS"
32643 +fi
32644 +rm ${tempcname}
32645 +
32646 +ac_link="$ac_link $ld_switch_machine $ld_switch_system"
32647 +
32648 +### Make sure subsequent tests use flags consistent with the build flags.
32649 +
32650 +if test x"${OVERRIDE_CPPFLAGS}" != x; then
32651 +  CPPFLAGS="${OVERRIDE_CPPFLAGS}"
32652 +else
32653 +  CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
32654 +fi
32655 +
32656 +# Check whether --enable-largefile or --disable-largefile was given.
32657 +if test "${enable_largefile+set}" = set; then
32658 +  enableval="$enable_largefile"
32659 +
32660 +fi;
32661 +if test "$enable_largefile" != no; then
32662 +
32663 +  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
32664 +echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
32665 +if test "${ac_cv_sys_largefile_CC+set}" = set; then
32666 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32667 +else
32668 +  ac_cv_sys_largefile_CC=no
32669 +     if test "$GCC" != yes; then
32670 +       ac_save_CC=$CC
32671 +       while :; do
32672 +        # IRIX 6.2 and later do not support large files by default,
32673 +        # so use the C compiler's -n32 option if that helps.
32674 +        cat >conftest.$ac_ext <<_ACEOF
32675 +/* confdefs.h.  */
32676 +_ACEOF
32677 +cat confdefs.h >>conftest.$ac_ext
32678 +cat >>conftest.$ac_ext <<_ACEOF
32679 +/* end confdefs.h.  */
32680 +#include <sys/types.h>
32681 + /* Check that off_t can represent 2**63 - 1 correctly.
32682 +    We can't simply define LARGE_OFF_T to be 9223372036854775807,
32683 +    since some C++ compilers masquerading as C compilers
32684 +    incorrectly reject 9223372036854775807.  */
32685 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32686 +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32687 +                      && LARGE_OFF_T % 2147483647 == 1)
32688 +                     ? 1 : -1];
32689 +int
32690 +main ()
32691 +{
32692 +
32693 +  ;
32694 +  return 0;
32695 +}
32696 +_ACEOF
32697 +        rm -f conftest.$ac_objext
32698 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32699 +  (eval $ac_compile) 2>conftest.er1
32700 +  ac_status=$?
32701 +  grep -v '^ *+' conftest.er1 >conftest.err
32702 +  rm -f conftest.er1
32703 +  cat conftest.err >&5
32704 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 +  (exit $ac_status); } &&
32706 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32707 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 +  (eval $ac_try) 2>&5
32709 +  ac_status=$?
32710 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 +  (exit $ac_status); }; } &&
32712 +        { ac_try='test -s conftest.$ac_objext'
32713 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 +  (eval $ac_try) 2>&5
32715 +  ac_status=$?
32716 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 +  (exit $ac_status); }; }; then
32718 +  break
32719 +else
32720 +  echo "$as_me: failed program was:" >&5
32721 +sed 's/^/| /' conftest.$ac_ext >&5
32722 +
32723 +fi
32724 +rm -f conftest.err conftest.$ac_objext
32725 +        CC="$CC -n32"
32726 +        rm -f conftest.$ac_objext
32727 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32728 +  (eval $ac_compile) 2>conftest.er1
32729 +  ac_status=$?
32730 +  grep -v '^ *+' conftest.er1 >conftest.err
32731 +  rm -f conftest.er1
32732 +  cat conftest.err >&5
32733 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 +  (exit $ac_status); } &&
32735 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32736 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 +  (eval $ac_try) 2>&5
32738 +  ac_status=$?
32739 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 +  (exit $ac_status); }; } &&
32741 +        { ac_try='test -s conftest.$ac_objext'
32742 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 +  (eval $ac_try) 2>&5
32744 +  ac_status=$?
32745 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 +  (exit $ac_status); }; }; then
32747 +  ac_cv_sys_largefile_CC=' -n32'; break
32748 +else
32749 +  echo "$as_me: failed program was:" >&5
32750 +sed 's/^/| /' conftest.$ac_ext >&5
32751 +
32752 +fi
32753 +rm -f conftest.err conftest.$ac_objext
32754 +        break
32755 +       done
32756 +       CC=$ac_save_CC
32757 +       rm -f conftest.$ac_ext
32758 +    fi
32759 +fi
32760 +echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
32761 +echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
32762 +  if test "$ac_cv_sys_largefile_CC" != no; then
32763 +    CC=$CC$ac_cv_sys_largefile_CC
32764 +  fi
32765 +
32766 +  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
32767 +echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
32768 +if test "${ac_cv_sys_file_offset_bits+set}" = set; then
32769 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32770 +else
32771 +  while :; do
32772 +  ac_cv_sys_file_offset_bits=no
32773 +  cat >conftest.$ac_ext <<_ACEOF
32774 +/* confdefs.h.  */
32775 +_ACEOF
32776 +cat confdefs.h >>conftest.$ac_ext
32777 +cat >>conftest.$ac_ext <<_ACEOF
32778 +/* end confdefs.h.  */
32779 +#include <sys/types.h>
32780 + /* Check that off_t can represent 2**63 - 1 correctly.
32781 +    We can't simply define LARGE_OFF_T to be 9223372036854775807,
32782 +    since some C++ compilers masquerading as C compilers
32783 +    incorrectly reject 9223372036854775807.  */
32784 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32785 +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32786 +                      && LARGE_OFF_T % 2147483647 == 1)
32787 +                     ? 1 : -1];
32788 +int
32789 +main ()
32790 +{
32791 +
32792 +  ;
32793 +  return 0;
32794 +}
32795 +_ACEOF
32796 +rm -f conftest.$ac_objext
32797 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32798 +  (eval $ac_compile) 2>conftest.er1
32799 +  ac_status=$?
32800 +  grep -v '^ *+' conftest.er1 >conftest.err
32801 +  rm -f conftest.er1
32802 +  cat conftest.err >&5
32803 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 +  (exit $ac_status); } &&
32805 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32806 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807 +  (eval $ac_try) 2>&5
32808 +  ac_status=$?
32809 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 +  (exit $ac_status); }; } &&
32811 +        { ac_try='test -s conftest.$ac_objext'
32812 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 +  (eval $ac_try) 2>&5
32814 +  ac_status=$?
32815 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 +  (exit $ac_status); }; }; then
32817 +  break
32818 +else
32819 +  echo "$as_me: failed program was:" >&5
32820 +sed 's/^/| /' conftest.$ac_ext >&5
32821 +
32822 +fi
32823 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32824 +  cat >conftest.$ac_ext <<_ACEOF
32825 +/* confdefs.h.  */
32826 +_ACEOF
32827 +cat confdefs.h >>conftest.$ac_ext
32828 +cat >>conftest.$ac_ext <<_ACEOF
32829 +/* end confdefs.h.  */
32830 +#define _FILE_OFFSET_BITS 64
32831 +#include <sys/types.h>
32832 + /* Check that off_t can represent 2**63 - 1 correctly.
32833 +    We can't simply define LARGE_OFF_T to be 9223372036854775807,
32834 +    since some C++ compilers masquerading as C compilers
32835 +    incorrectly reject 9223372036854775807.  */
32836 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32837 +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32838 +                      && LARGE_OFF_T % 2147483647 == 1)
32839 +                     ? 1 : -1];
32840 +int
32841 +main ()
32842 +{
32843 +
32844 +  ;
32845 +  return 0;
32846 +}
32847 +_ACEOF
32848 +rm -f conftest.$ac_objext
32849 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32850 +  (eval $ac_compile) 2>conftest.er1
32851 +  ac_status=$?
32852 +  grep -v '^ *+' conftest.er1 >conftest.err
32853 +  rm -f conftest.er1
32854 +  cat conftest.err >&5
32855 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 +  (exit $ac_status); } &&
32857 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32858 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 +  (eval $ac_try) 2>&5
32860 +  ac_status=$?
32861 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 +  (exit $ac_status); }; } &&
32863 +        { ac_try='test -s conftest.$ac_objext'
32864 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865 +  (eval $ac_try) 2>&5
32866 +  ac_status=$?
32867 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 +  (exit $ac_status); }; }; then
32869 +  ac_cv_sys_file_offset_bits=64; break
32870 +else
32871 +  echo "$as_me: failed program was:" >&5
32872 +sed 's/^/| /' conftest.$ac_ext >&5
32873 +
32874 +fi
32875 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32876 +  break
32877 +done
32878 +fi
32879 +echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
32880 +echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
32881 +if test "$ac_cv_sys_file_offset_bits" != no; then
32882 +
32883 +cat >>confdefs.h <<_ACEOF
32884 +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
32885 +_ACEOF
32886 +
32887 +fi
32888 +rm -f conftest*
32889 +  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
32890 +echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
32891 +if test "${ac_cv_sys_large_files+set}" = set; then
32892 +  echo $ECHO_N "(cached) $ECHO_C" >&6
32893 +else
32894 +  while :; do
32895 +  ac_cv_sys_large_files=no
32896 +  cat >conftest.$ac_ext <<_ACEOF
32897 +/* confdefs.h.  */
32898 +_ACEOF
32899 +cat confdefs.h >>conftest.$ac_ext
32900 +cat >>conftest.$ac_ext <<_ACEOF
32901 +/* end confdefs.h.  */
32902 +#include <sys/types.h>
32903 + /* Check that off_t can represent 2**63 - 1 correctly.
32904 +    We can't simply define LARGE_OFF_T to be 9223372036854775807,
32905 +    since some C++ compilers masquerading as C compilers
32906 +    incorrectly reject 9223372036854775807.  */
32907 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32908 +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32909 +                      && LARGE_OFF_T % 2147483647 == 1)
32910 +                     ? 1 : -1];
32911 +int
32912 +main ()
32913 +{
32914 +
32915 +  ;
32916 +  return 0;
32917 +}
32918 +_ACEOF
32919 +rm -f conftest.$ac_objext
32920 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32921 +  (eval $ac_compile) 2>conftest.er1
32922 +  ac_status=$?
32923 +  grep -v '^ *+' conftest.er1 >conftest.err
32924 +  rm -f conftest.er1
32925 +  cat conftest.err >&5
32926 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 +  (exit $ac_status); } &&
32928 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32929 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32930 +  (eval $ac_try) 2>&5
32931 +  ac_status=$?
32932 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 +  (exit $ac_status); }; } &&
32934 +        { ac_try='test -s conftest.$ac_objext'
32935 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 +  (eval $ac_try) 2>&5
32937 +  ac_status=$?
32938 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 +  (exit $ac_status); }; }; then
32940 +  break
32941 +else
32942 +  echo "$as_me: failed program was:" >&5
32943 +sed 's/^/| /' conftest.$ac_ext >&5
32944 +
32945 +fi
32946 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32947 +  cat >conftest.$ac_ext <<_ACEOF
32948 +/* confdefs.h.  */
32949 +_ACEOF
32950 +cat confdefs.h >>conftest.$ac_ext
32951 +cat >>conftest.$ac_ext <<_ACEOF
32952 +/* end confdefs.h.  */
32953 +#define _LARGE_FILES 1
32954 +#include <sys/types.h>
32955 + /* Check that off_t can represent 2**63 - 1 correctly.
32956 +    We can't simply define LARGE_OFF_T to be 9223372036854775807,
32957 +    since some C++ compilers masquerading as C compilers
32958 +    incorrectly reject 9223372036854775807.  */
32959 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
32960 +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
32961 +                      && LARGE_OFF_T % 2147483647 == 1)
32962 +                     ? 1 : -1];
32963 +int
32964 +main ()
32965 +{
32966 +
32967 +  ;
32968 +  return 0;
32969 +}
32970 +_ACEOF
32971 +rm -f conftest.$ac_objext
32972 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32973 +  (eval $ac_compile) 2>conftest.er1
32974 +  ac_status=$?
32975 +  grep -v '^ *+' conftest.er1 >conftest.err
32976 +  rm -f conftest.er1
32977 +  cat conftest.err >&5
32978 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 +  (exit $ac_status); } &&
32980 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32981 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 +  (eval $ac_try) 2>&5
32983 +  ac_status=$?
32984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 +  (exit $ac_status); }; } &&
32986 +        { ac_try='test -s conftest.$ac_objext'
32987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 +  (eval $ac_try) 2>&5
32989 +  ac_status=$?
32990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 +  (exit $ac_status); }; }; then
32992 +  ac_cv_sys_large_files=1; break
32993 +else
32994 +  echo "$as_me: failed program was:" >&5
32995 +sed 's/^/| /' conftest.$ac_ext >&5
32996 +
32997 +fi
32998 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32999 +  break
33000 +done
33001 +fi
33002 +echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
33003 +echo "${ECHO_T}$ac_cv_sys_large_files" >&6
33004 +if test "$ac_cv_sys_large_files" != no; then
33005 +
33006 +cat >>confdefs.h <<_ACEOF
33007 +#define _LARGE_FILES $ac_cv_sys_large_files
33008 +_ACEOF
33009 +
33010 +fi
33011 +rm -f conftest*
33012 +fi
33013 +
33014 +
33015 +# Sound support for GNU/Linux and the free BSDs.
33016 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
33017 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
33018 +if test "${ac_cv_header_stdc+set}" = set; then
33019 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33020 +else
33021 +  cat >conftest.$ac_ext <<_ACEOF
33022 +/* confdefs.h.  */
33023 +_ACEOF
33024 +cat confdefs.h >>conftest.$ac_ext
33025 +cat >>conftest.$ac_ext <<_ACEOF
33026 +/* end confdefs.h.  */
33027 +#include <stdlib.h>
33028 +#include <stdarg.h>
33029 +#include <string.h>
33030 +#include <float.h>
33031 +
33032 +int
33033 +main ()
33034 +{
33035 +
33036 +  ;
33037 +  return 0;
33038 +}
33039 +_ACEOF
33040 +rm -f conftest.$ac_objext
33041 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33042 +  (eval $ac_compile) 2>conftest.er1
33043 +  ac_status=$?
33044 +  grep -v '^ *+' conftest.er1 >conftest.err
33045 +  rm -f conftest.er1
33046 +  cat conftest.err >&5
33047 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 +  (exit $ac_status); } &&
33049 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33050 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 +  (eval $ac_try) 2>&5
33052 +  ac_status=$?
33053 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 +  (exit $ac_status); }; } &&
33055 +        { ac_try='test -s conftest.$ac_objext'
33056 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33057 +  (eval $ac_try) 2>&5
33058 +  ac_status=$?
33059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 +  (exit $ac_status); }; }; then
33061 +  ac_cv_header_stdc=yes
33062 +else
33063 +  echo "$as_me: failed program was:" >&5
33064 +sed 's/^/| /' conftest.$ac_ext >&5
33065 +
33066 +ac_cv_header_stdc=no
33067 +fi
33068 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33069 +
33070 +if test $ac_cv_header_stdc = yes; then
33071 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
33072 +  cat >conftest.$ac_ext <<_ACEOF
33073 +/* confdefs.h.  */
33074 +_ACEOF
33075 +cat confdefs.h >>conftest.$ac_ext
33076 +cat >>conftest.$ac_ext <<_ACEOF
33077 +/* end confdefs.h.  */
33078 +#include <string.h>
33079 +
33080 +_ACEOF
33081 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33082 +  $EGREP "memchr" >/dev/null 2>&1; then
33083 +  :
33084 +else
33085 +  ac_cv_header_stdc=no
33086 +fi
33087 +rm -f conftest*
33088 +
33089 +fi
33090 +
33091 +if test $ac_cv_header_stdc = yes; then
33092 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
33093 +  cat >conftest.$ac_ext <<_ACEOF
33094 +/* confdefs.h.  */
33095 +_ACEOF
33096 +cat confdefs.h >>conftest.$ac_ext
33097 +cat >>conftest.$ac_ext <<_ACEOF
33098 +/* end confdefs.h.  */
33099 +#include <stdlib.h>
33100 +
33101 +_ACEOF
33102 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33103 +  $EGREP "free" >/dev/null 2>&1; then
33104 +  :
33105 +else
33106 +  ac_cv_header_stdc=no
33107 +fi
33108 +rm -f conftest*
33109 +
33110 +fi
33111 +
33112 +if test $ac_cv_header_stdc = yes; then
33113 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
33114 +  if test "$cross_compiling" = yes; then
33115 +  :
33116 +else
33117 +  cat >conftest.$ac_ext <<_ACEOF
33118 +/* confdefs.h.  */
33119 +_ACEOF
33120 +cat confdefs.h >>conftest.$ac_ext
33121 +cat >>conftest.$ac_ext <<_ACEOF
33122 +/* end confdefs.h.  */
33123 +#include <ctype.h>
33124 +#if ((' ' & 0x0FF) == 0x020)
33125 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
33126 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
33127 +#else
33128 +# define ISLOWER(c) \
33129 +                  (('a' <= (c) && (c) <= 'i') \
33130 +                    || ('j' <= (c) && (c) <= 'r') \
33131 +                    || ('s' <= (c) && (c) <= 'z'))
33132 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
33133 +#endif
33134 +
33135 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
33136 +int
33137 +main ()
33138 +{
33139 +  int i;
33140 +  for (i = 0; i < 256; i++)
33141 +    if (XOR (islower (i), ISLOWER (i))
33142 +       || toupper (i) != TOUPPER (i))
33143 +      exit(2);
33144 +  exit (0);
33145 +}
33146 +_ACEOF
33147 +rm -f conftest$ac_exeext
33148 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33149 +  (eval $ac_link) 2>&5
33150 +  ac_status=$?
33151 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33153 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 +  (eval $ac_try) 2>&5
33155 +  ac_status=$?
33156 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 +  (exit $ac_status); }; }; then
33158 +  :
33159 +else
33160 +  echo "$as_me: program exited with status $ac_status" >&5
33161 +echo "$as_me: failed program was:" >&5
33162 +sed 's/^/| /' conftest.$ac_ext >&5
33163 +
33164 +( exit $ac_status )
33165 +ac_cv_header_stdc=no
33166 +fi
33167 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33168 +fi
33169 +fi
33170 +fi
33171 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
33172 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
33173 +if test $ac_cv_header_stdc = yes; then
33174 +
33175 +cat >>confdefs.h <<\_ACEOF
33176 +#define STDC_HEADERS 1
33177 +_ACEOF
33178 +
33179 +fi
33180 +
33181 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
33182 +
33183 +
33184 +
33185 +
33186 +
33187 +
33188 +
33189 +
33190 +
33191 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
33192 +                 inttypes.h stdint.h unistd.h
33193 +do
33194 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33195 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33196 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33197 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33198 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33199 +else
33200 +  cat >conftest.$ac_ext <<_ACEOF
33201 +/* confdefs.h.  */
33202 +_ACEOF
33203 +cat confdefs.h >>conftest.$ac_ext
33204 +cat >>conftest.$ac_ext <<_ACEOF
33205 +/* end confdefs.h.  */
33206 +$ac_includes_default
33207 +
33208 +#include <$ac_header>
33209 +_ACEOF
33210 +rm -f conftest.$ac_objext
33211 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33212 +  (eval $ac_compile) 2>conftest.er1
33213 +  ac_status=$?
33214 +  grep -v '^ *+' conftest.er1 >conftest.err
33215 +  rm -f conftest.er1
33216 +  cat conftest.err >&5
33217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 +  (exit $ac_status); } &&
33219 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33220 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 +  (eval $ac_try) 2>&5
33222 +  ac_status=$?
33223 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 +  (exit $ac_status); }; } &&
33225 +        { ac_try='test -s conftest.$ac_objext'
33226 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 +  (eval $ac_try) 2>&5
33228 +  ac_status=$?
33229 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 +  (exit $ac_status); }; }; then
33231 +  eval "$as_ac_Header=yes"
33232 +else
33233 +  echo "$as_me: failed program was:" >&5
33234 +sed 's/^/| /' conftest.$ac_ext >&5
33235 +
33236 +eval "$as_ac_Header=no"
33237 +fi
33238 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33239 +fi
33240 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33241 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33242 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33243 +  cat >>confdefs.h <<_ACEOF
33244 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33245 +_ACEOF
33246 +
33247 +fi
33248 +
33249 +done
33250 +
33251 +
33252 +
33253 +
33254 +
33255 +for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
33256 +do
33257 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33258 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33259 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
33260 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33261 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33262 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33263 +fi
33264 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33265 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33266 +else
33267 +  # Is the header compilable?
33268 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
33269 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33270 +cat >conftest.$ac_ext <<_ACEOF
33271 +/* confdefs.h.  */
33272 +_ACEOF
33273 +cat confdefs.h >>conftest.$ac_ext
33274 +cat >>conftest.$ac_ext <<_ACEOF
33275 +/* end confdefs.h.  */
33276 +$ac_includes_default
33277 +#include <$ac_header>
33278 +_ACEOF
33279 +rm -f conftest.$ac_objext
33280 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33281 +  (eval $ac_compile) 2>conftest.er1
33282 +  ac_status=$?
33283 +  grep -v '^ *+' conftest.er1 >conftest.err
33284 +  rm -f conftest.er1
33285 +  cat conftest.err >&5
33286 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 +  (exit $ac_status); } &&
33288 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33289 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 +  (eval $ac_try) 2>&5
33291 +  ac_status=$?
33292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 +  (exit $ac_status); }; } &&
33294 +        { ac_try='test -s conftest.$ac_objext'
33295 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 +  (eval $ac_try) 2>&5
33297 +  ac_status=$?
33298 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 +  (exit $ac_status); }; }; then
33300 +  ac_header_compiler=yes
33301 +else
33302 +  echo "$as_me: failed program was:" >&5
33303 +sed 's/^/| /' conftest.$ac_ext >&5
33304 +
33305 +ac_header_compiler=no
33306 +fi
33307 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33308 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33309 +echo "${ECHO_T}$ac_header_compiler" >&6
33310 +
33311 +# Is the header present?
33312 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
33313 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33314 +cat >conftest.$ac_ext <<_ACEOF
33315 +/* confdefs.h.  */
33316 +_ACEOF
33317 +cat confdefs.h >>conftest.$ac_ext
33318 +cat >>conftest.$ac_ext <<_ACEOF
33319 +/* end confdefs.h.  */
33320 +#include <$ac_header>
33321 +_ACEOF
33322 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33323 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33324 +  ac_status=$?
33325 +  grep -v '^ *+' conftest.er1 >conftest.err
33326 +  rm -f conftest.er1
33327 +  cat conftest.err >&5
33328 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 +  (exit $ac_status); } >/dev/null; then
33330 +  if test -s conftest.err; then
33331 +    ac_cpp_err=$ac_c_preproc_warn_flag
33332 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33333 +  else
33334 +    ac_cpp_err=
33335 +  fi
33336 +else
33337 +  ac_cpp_err=yes
33338 +fi
33339 +if test -z "$ac_cpp_err"; then
33340 +  ac_header_preproc=yes
33341 +else
33342 +  echo "$as_me: failed program was:" >&5
33343 +sed 's/^/| /' conftest.$ac_ext >&5
33344 +
33345 +  ac_header_preproc=no
33346 +fi
33347 +rm -f conftest.err conftest.$ac_ext
33348 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33349 +echo "${ECHO_T}$ac_header_preproc" >&6
33350 +
33351 +# So?  What about this header?
33352 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33353 +  yes:no: )
33354 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33355 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33356 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33357 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33358 +    ac_header_preproc=yes
33359 +    ;;
33360 +  no:yes:* )
33361 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33362 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33363 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33364 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33365 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33366 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33367 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33368 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33369 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33370 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33371 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33372 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33373 +    (
33374 +      cat <<\_ASBOX
33375 +## ------------------------------------------ ##
33376 +## Report this to the AC_PACKAGE_NAME lists.  ##
33377 +## ------------------------------------------ ##
33378 +_ASBOX
33379 +    ) |
33380 +      sed "s/^/$as_me: WARNING:     /" >&2
33381 +    ;;
33382 +esac
33383 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33384 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33385 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33386 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33387 +else
33388 +  eval "$as_ac_Header=\$ac_header_preproc"
33389 +fi
33390 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33391 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33392 +
33393 +fi
33394 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33395 +  cat >>confdefs.h <<_ACEOF
33396 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33397 +_ACEOF
33398 +
33399 +fi
33400 +
33401 +done
33402 +
33403 +# Emulation library used on NetBSD.
33404 +echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
33405 +echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
33406 +if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
33407 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33408 +else
33409 +  ac_check_lib_save_LIBS=$LIBS
33410 +LIBS="-lossaudio  $LIBS"
33411 +cat >conftest.$ac_ext <<_ACEOF
33412 +/* confdefs.h.  */
33413 +_ACEOF
33414 +cat confdefs.h >>conftest.$ac_ext
33415 +cat >>conftest.$ac_ext <<_ACEOF
33416 +/* end confdefs.h.  */
33417 +
33418 +/* Override any gcc2 internal prototype to avoid an error.  */
33419 +#ifdef __cplusplus
33420 +extern "C"
33421 +#endif
33422 +/* We use char because int might match the return type of a gcc2
33423 +   builtin and then its argument prototype would still apply.  */
33424 +char _oss_ioctl ();
33425 +int
33426 +main ()
33427 +{
33428 +_oss_ioctl ();
33429 +  ;
33430 +  return 0;
33431 +}
33432 +_ACEOF
33433 +rm -f conftest.$ac_objext conftest$ac_exeext
33434 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33435 +  (eval $ac_link) 2>conftest.er1
33436 +  ac_status=$?
33437 +  grep -v '^ *+' conftest.er1 >conftest.err
33438 +  rm -f conftest.er1
33439 +  cat conftest.err >&5
33440 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 +  (exit $ac_status); } &&
33442 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33443 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444 +  (eval $ac_try) 2>&5
33445 +  ac_status=$?
33446 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 +  (exit $ac_status); }; } &&
33448 +        { ac_try='test -s conftest$ac_exeext'
33449 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 +  (eval $ac_try) 2>&5
33451 +  ac_status=$?
33452 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 +  (exit $ac_status); }; }; then
33454 +  ac_cv_lib_ossaudio__oss_ioctl=yes
33455 +else
33456 +  echo "$as_me: failed program was:" >&5
33457 +sed 's/^/| /' conftest.$ac_ext >&5
33458 +
33459 +ac_cv_lib_ossaudio__oss_ioctl=no
33460 +fi
33461 +rm -f conftest.err conftest.$ac_objext \
33462 +      conftest$ac_exeext conftest.$ac_ext
33463 +LIBS=$ac_check_lib_save_LIBS
33464 +fi
33465 +echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
33466 +echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
33467 +if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
33468 +  LIBSOUND=-lossaudio
33469 +else
33470 +  LIBSOUND=
33471 +fi
33472 +
33473 +
33474 +
33475 +
33476 +
33477 +
33478 +
33479 +
33480 +
33481 +
33482 +
33483 +
33484 +
33485 +
33486 +
33487 +
33488 +
33489 +
33490 +
33491 +for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
33492 +  linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
33493 +  termcap.h stdio_ext.h fcntl.h term.h strings.h
33494 +do
33495 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33496 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33497 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
33498 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33499 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33500 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33501 +fi
33502 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33503 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33504 +else
33505 +  # Is the header compilable?
33506 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
33507 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33508 +cat >conftest.$ac_ext <<_ACEOF
33509 +/* confdefs.h.  */
33510 +_ACEOF
33511 +cat confdefs.h >>conftest.$ac_ext
33512 +cat >>conftest.$ac_ext <<_ACEOF
33513 +/* end confdefs.h.  */
33514 +$ac_includes_default
33515 +#include <$ac_header>
33516 +_ACEOF
33517 +rm -f conftest.$ac_objext
33518 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33519 +  (eval $ac_compile) 2>conftest.er1
33520 +  ac_status=$?
33521 +  grep -v '^ *+' conftest.er1 >conftest.err
33522 +  rm -f conftest.er1
33523 +  cat conftest.err >&5
33524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 +  (exit $ac_status); } &&
33526 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33527 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528 +  (eval $ac_try) 2>&5
33529 +  ac_status=$?
33530 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 +  (exit $ac_status); }; } &&
33532 +        { ac_try='test -s conftest.$ac_objext'
33533 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33534 +  (eval $ac_try) 2>&5
33535 +  ac_status=$?
33536 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 +  (exit $ac_status); }; }; then
33538 +  ac_header_compiler=yes
33539 +else
33540 +  echo "$as_me: failed program was:" >&5
33541 +sed 's/^/| /' conftest.$ac_ext >&5
33542 +
33543 +ac_header_compiler=no
33544 +fi
33545 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33546 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33547 +echo "${ECHO_T}$ac_header_compiler" >&6
33548 +
33549 +# Is the header present?
33550 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
33551 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33552 +cat >conftest.$ac_ext <<_ACEOF
33553 +/* confdefs.h.  */
33554 +_ACEOF
33555 +cat confdefs.h >>conftest.$ac_ext
33556 +cat >>conftest.$ac_ext <<_ACEOF
33557 +/* end confdefs.h.  */
33558 +#include <$ac_header>
33559 +_ACEOF
33560 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33561 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33562 +  ac_status=$?
33563 +  grep -v '^ *+' conftest.er1 >conftest.err
33564 +  rm -f conftest.er1
33565 +  cat conftest.err >&5
33566 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 +  (exit $ac_status); } >/dev/null; then
33568 +  if test -s conftest.err; then
33569 +    ac_cpp_err=$ac_c_preproc_warn_flag
33570 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33571 +  else
33572 +    ac_cpp_err=
33573 +  fi
33574 +else
33575 +  ac_cpp_err=yes
33576 +fi
33577 +if test -z "$ac_cpp_err"; then
33578 +  ac_header_preproc=yes
33579 +else
33580 +  echo "$as_me: failed program was:" >&5
33581 +sed 's/^/| /' conftest.$ac_ext >&5
33582 +
33583 +  ac_header_preproc=no
33584 +fi
33585 +rm -f conftest.err conftest.$ac_ext
33586 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33587 +echo "${ECHO_T}$ac_header_preproc" >&6
33588 +
33589 +# So?  What about this header?
33590 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33591 +  yes:no: )
33592 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33593 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33594 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33595 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33596 +    ac_header_preproc=yes
33597 +    ;;
33598 +  no:yes:* )
33599 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33600 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33601 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33602 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33603 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33604 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33605 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33606 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33607 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33608 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33609 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33610 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33611 +    (
33612 +      cat <<\_ASBOX
33613 +## ------------------------------------------ ##
33614 +## Report this to the AC_PACKAGE_NAME lists.  ##
33615 +## ------------------------------------------ ##
33616 +_ASBOX
33617 +    ) |
33618 +      sed "s/^/$as_me: WARNING:     /" >&2
33619 +    ;;
33620 +esac
33621 +echo "$as_me:$LINENO: checking for $ac_header" >&5
33622 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33623 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
33624 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33625 +else
33626 +  eval "$as_ac_Header=\$ac_header_preproc"
33627 +fi
33628 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33629 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33630 +
33631 +fi
33632 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
33633 +  cat >>confdefs.h <<_ACEOF
33634 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33635 +_ACEOF
33636 +
33637 +fi
33638 +
33639 +done
33640 +
33641 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
33642 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
33643 +if test "${ac_cv_header_stdc+set}" = set; then
33644 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33645 +else
33646 +  cat >conftest.$ac_ext <<_ACEOF
33647 +/* confdefs.h.  */
33648 +_ACEOF
33649 +cat confdefs.h >>conftest.$ac_ext
33650 +cat >>conftest.$ac_ext <<_ACEOF
33651 +/* end confdefs.h.  */
33652 +#include <stdlib.h>
33653 +#include <stdarg.h>
33654 +#include <string.h>
33655 +#include <float.h>
33656 +
33657 +int
33658 +main ()
33659 +{
33660 +
33661 +  ;
33662 +  return 0;
33663 +}
33664 +_ACEOF
33665 +rm -f conftest.$ac_objext
33666 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33667 +  (eval $ac_compile) 2>conftest.er1
33668 +  ac_status=$?
33669 +  grep -v '^ *+' conftest.er1 >conftest.err
33670 +  rm -f conftest.er1
33671 +  cat conftest.err >&5
33672 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 +  (exit $ac_status); } &&
33674 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33675 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676 +  (eval $ac_try) 2>&5
33677 +  ac_status=$?
33678 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 +  (exit $ac_status); }; } &&
33680 +        { ac_try='test -s conftest.$ac_objext'
33681 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 +  (eval $ac_try) 2>&5
33683 +  ac_status=$?
33684 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 +  (exit $ac_status); }; }; then
33686 +  ac_cv_header_stdc=yes
33687 +else
33688 +  echo "$as_me: failed program was:" >&5
33689 +sed 's/^/| /' conftest.$ac_ext >&5
33690 +
33691 +ac_cv_header_stdc=no
33692 +fi
33693 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33694 +
33695 +if test $ac_cv_header_stdc = yes; then
33696 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
33697 +  cat >conftest.$ac_ext <<_ACEOF
33698 +/* confdefs.h.  */
33699 +_ACEOF
33700 +cat confdefs.h >>conftest.$ac_ext
33701 +cat >>conftest.$ac_ext <<_ACEOF
33702 +/* end confdefs.h.  */
33703 +#include <string.h>
33704 +
33705 +_ACEOF
33706 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33707 +  $EGREP "memchr" >/dev/null 2>&1; then
33708 +  :
33709 +else
33710 +  ac_cv_header_stdc=no
33711 +fi
33712 +rm -f conftest*
33713 +
33714 +fi
33715 +
33716 +if test $ac_cv_header_stdc = yes; then
33717 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
33718 +  cat >conftest.$ac_ext <<_ACEOF
33719 +/* confdefs.h.  */
33720 +_ACEOF
33721 +cat confdefs.h >>conftest.$ac_ext
33722 +cat >>conftest.$ac_ext <<_ACEOF
33723 +/* end confdefs.h.  */
33724 +#include <stdlib.h>
33725 +
33726 +_ACEOF
33727 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33728 +  $EGREP "free" >/dev/null 2>&1; then
33729 +  :
33730 +else
33731 +  ac_cv_header_stdc=no
33732 +fi
33733 +rm -f conftest*
33734 +
33735 +fi
33736 +
33737 +if test $ac_cv_header_stdc = yes; then
33738 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
33739 +  if test "$cross_compiling" = yes; then
33740 +  :
33741 +else
33742 +  cat >conftest.$ac_ext <<_ACEOF
33743 +/* confdefs.h.  */
33744 +_ACEOF
33745 +cat confdefs.h >>conftest.$ac_ext
33746 +cat >>conftest.$ac_ext <<_ACEOF
33747 +/* end confdefs.h.  */
33748 +#include <ctype.h>
33749 +#if ((' ' & 0x0FF) == 0x020)
33750 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
33751 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
33752 +#else
33753 +# define ISLOWER(c) \
33754 +                  (('a' <= (c) && (c) <= 'i') \
33755 +                    || ('j' <= (c) && (c) <= 'r') \
33756 +                    || ('s' <= (c) && (c) <= 'z'))
33757 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
33758 +#endif
33759 +
33760 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
33761 +int
33762 +main ()
33763 +{
33764 +  int i;
33765 +  for (i = 0; i < 256; i++)
33766 +    if (XOR (islower (i), ISLOWER (i))
33767 +       || toupper (i) != TOUPPER (i))
33768 +      exit(2);
33769 +  exit (0);
33770 +}
33771 +_ACEOF
33772 +rm -f conftest$ac_exeext
33773 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33774 +  (eval $ac_link) 2>&5
33775 +  ac_status=$?
33776 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33778 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 +  (eval $ac_try) 2>&5
33780 +  ac_status=$?
33781 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 +  (exit $ac_status); }; }; then
33783 +  :
33784 +else
33785 +  echo "$as_me: program exited with status $ac_status" >&5
33786 +echo "$as_me: failed program was:" >&5
33787 +sed 's/^/| /' conftest.$ac_ext >&5
33788 +
33789 +( exit $ac_status )
33790 +ac_cv_header_stdc=no
33791 +fi
33792 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33793 +fi
33794 +fi
33795 +fi
33796 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
33797 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
33798 +if test $ac_cv_header_stdc = yes; then
33799 +
33800 +cat >>confdefs.h <<\_ACEOF
33801 +#define STDC_HEADERS 1
33802 +_ACEOF
33803 +
33804 +fi
33805 +
33806 +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
33807 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
33808 +if test "${ac_cv_header_time+set}" = set; then
33809 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33810 +else
33811 +  cat >conftest.$ac_ext <<_ACEOF
33812 +/* confdefs.h.  */
33813 +_ACEOF
33814 +cat confdefs.h >>conftest.$ac_ext
33815 +cat >>conftest.$ac_ext <<_ACEOF
33816 +/* end confdefs.h.  */
33817 +#include <sys/types.h>
33818 +#include <sys/time.h>
33819 +#include <time.h>
33820 +
33821 +int
33822 +main ()
33823 +{
33824 +if ((struct tm *) 0)
33825 +return 0;
33826 +  ;
33827 +  return 0;
33828 +}
33829 +_ACEOF
33830 +rm -f conftest.$ac_objext
33831 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33832 +  (eval $ac_compile) 2>conftest.er1
33833 +  ac_status=$?
33834 +  grep -v '^ *+' conftest.er1 >conftest.err
33835 +  rm -f conftest.er1
33836 +  cat conftest.err >&5
33837 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 +  (exit $ac_status); } &&
33839 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33840 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841 +  (eval $ac_try) 2>&5
33842 +  ac_status=$?
33843 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 +  (exit $ac_status); }; } &&
33845 +        { ac_try='test -s conftest.$ac_objext'
33846 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847 +  (eval $ac_try) 2>&5
33848 +  ac_status=$?
33849 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 +  (exit $ac_status); }; }; then
33851 +  ac_cv_header_time=yes
33852 +else
33853 +  echo "$as_me: failed program was:" >&5
33854 +sed 's/^/| /' conftest.$ac_ext >&5
33855 +
33856 +ac_cv_header_time=no
33857 +fi
33858 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33859 +fi
33860 +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33861 +echo "${ECHO_T}$ac_cv_header_time" >&6
33862 +if test $ac_cv_header_time = yes; then
33863 +
33864 +cat >>confdefs.h <<\_ACEOF
33865 +#define TIME_WITH_SYS_TIME 1
33866 +_ACEOF
33867 +
33868 +fi
33869 +
33870 +echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
33871 +echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
33872 +if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
33873 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33874 +else
33875 +  cat >conftest.$ac_ext <<_ACEOF
33876 +/* confdefs.h.  */
33877 +_ACEOF
33878 +cat confdefs.h >>conftest.$ac_ext
33879 +cat >>conftest.$ac_ext <<_ACEOF
33880 +/* end confdefs.h.  */
33881 +#include <signal.h>
33882 +/* NetBSD declares sys_siglist in unistd.h.  */
33883 +#if HAVE_UNISTD_H
33884 +# include <unistd.h>
33885 +#endif
33886 +
33887 +
33888 +int
33889 +main ()
33890 +{
33891 +#ifndef sys_siglist
33892 +  char *p = (char *) sys_siglist;
33893 +#endif
33894 +
33895 +  ;
33896 +  return 0;
33897 +}
33898 +_ACEOF
33899 +rm -f conftest.$ac_objext
33900 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33901 +  (eval $ac_compile) 2>conftest.er1
33902 +  ac_status=$?
33903 +  grep -v '^ *+' conftest.er1 >conftest.err
33904 +  rm -f conftest.er1
33905 +  cat conftest.err >&5
33906 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 +  (exit $ac_status); } &&
33908 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33909 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33910 +  (eval $ac_try) 2>&5
33911 +  ac_status=$?
33912 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 +  (exit $ac_status); }; } &&
33914 +        { ac_try='test -s conftest.$ac_objext'
33915 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33916 +  (eval $ac_try) 2>&5
33917 +  ac_status=$?
33918 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 +  (exit $ac_status); }; }; then
33920 +  ac_cv_have_decl_sys_siglist=yes
33921 +else
33922 +  echo "$as_me: failed program was:" >&5
33923 +sed 's/^/| /' conftest.$ac_ext >&5
33924 +
33925 +ac_cv_have_decl_sys_siglist=no
33926 +fi
33927 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33928 +fi
33929 +echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
33930 +echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
33931 +if test $ac_cv_have_decl_sys_siglist = yes; then
33932 +
33933 +cat >>confdefs.h <<_ACEOF
33934 +#define HAVE_DECL_SYS_SIGLIST 1
33935 +_ACEOF
33936 +
33937 +
33938 +else
33939 +  cat >>confdefs.h <<_ACEOF
33940 +#define HAVE_DECL_SYS_SIGLIST 0
33941 +_ACEOF
33942 +
33943 +
33944 +fi
33945 +
33946 +
33947 +
33948 +echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
33949 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
33950 +if test "${ac_cv_header_sys_wait_h+set}" = set; then
33951 +  echo $ECHO_N "(cached) $ECHO_C" >&6
33952 +else
33953 +  cat >conftest.$ac_ext <<_ACEOF
33954 +/* confdefs.h.  */
33955 +_ACEOF
33956 +cat confdefs.h >>conftest.$ac_ext
33957 +cat >>conftest.$ac_ext <<_ACEOF
33958 +/* end confdefs.h.  */
33959 +#include <sys/types.h>
33960 +#include <sys/wait.h>
33961 +#ifndef WEXITSTATUS
33962 +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
33963 +#endif
33964 +#ifndef WIFEXITED
33965 +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
33966 +#endif
33967 +
33968 +int
33969 +main ()
33970 +{
33971 +  int s;
33972 +  wait (&s);
33973 +  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
33974 +  ;
33975 +  return 0;
33976 +}
33977 +_ACEOF
33978 +rm -f conftest.$ac_objext
33979 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33980 +  (eval $ac_compile) 2>conftest.er1
33981 +  ac_status=$?
33982 +  grep -v '^ *+' conftest.er1 >conftest.err
33983 +  rm -f conftest.er1
33984 +  cat conftest.err >&5
33985 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 +  (exit $ac_status); } &&
33987 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33988 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 +  (eval $ac_try) 2>&5
33990 +  ac_status=$?
33991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 +  (exit $ac_status); }; } &&
33993 +        { ac_try='test -s conftest.$ac_objext'
33994 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33995 +  (eval $ac_try) 2>&5
33996 +  ac_status=$?
33997 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 +  (exit $ac_status); }; }; then
33999 +  ac_cv_header_sys_wait_h=yes
34000 +else
34001 +  echo "$as_me: failed program was:" >&5
34002 +sed 's/^/| /' conftest.$ac_ext >&5
34003 +
34004 +ac_cv_header_sys_wait_h=no
34005 +fi
34006 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34007 +fi
34008 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
34009 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
34010 +if test $ac_cv_header_sys_wait_h = yes; then
34011 +
34012 +cat >>confdefs.h <<\_ACEOF
34013 +#define HAVE_SYS_WAIT_H 1
34014 +_ACEOF
34015 +
34016 +fi
34017 +
34018 +
34019 +echo "$as_me:$LINENO: checking for struct utimbuf" >&5
34020 +echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
34021 +if test "${emacs_cv_struct_utimbuf+set}" = set; then
34022 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34023 +else
34024 +  cat >conftest.$ac_ext <<_ACEOF
34025 +/* confdefs.h.  */
34026 +_ACEOF
34027 +cat confdefs.h >>conftest.$ac_ext
34028 +cat >>conftest.$ac_ext <<_ACEOF
34029 +/* end confdefs.h.  */
34030 +#ifdef TIME_WITH_SYS_TIME
34031 +#include <sys/time.h>
34032 +#include <time.h>
34033 +#else
34034 +#ifdef HAVE_SYS_TIME_H
34035 +#include <sys/time.h>
34036 +#else
34037 +#include <time.h>
34038 +#endif
34039 +#endif
34040 +#ifdef HAVE_UTIME_H
34041 +#include <utime.h>
34042 +#endif
34043 +int
34044 +main ()
34045 +{
34046 +static struct utimbuf x; x.actime = x.modtime;
34047 +  ;
34048 +  return 0;
34049 +}
34050 +_ACEOF
34051 +rm -f conftest.$ac_objext
34052 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34053 +  (eval $ac_compile) 2>conftest.er1
34054 +  ac_status=$?
34055 +  grep -v '^ *+' conftest.er1 >conftest.err
34056 +  rm -f conftest.er1
34057 +  cat conftest.err >&5
34058 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059 +  (exit $ac_status); } &&
34060 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34061 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34062 +  (eval $ac_try) 2>&5
34063 +  ac_status=$?
34064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 +  (exit $ac_status); }; } &&
34066 +        { ac_try='test -s conftest.$ac_objext'
34067 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068 +  (eval $ac_try) 2>&5
34069 +  ac_status=$?
34070 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 +  (exit $ac_status); }; }; then
34072 +  emacs_cv_struct_utimbuf=yes
34073 +else
34074 +  echo "$as_me: failed program was:" >&5
34075 +sed 's/^/| /' conftest.$ac_ext >&5
34076 +
34077 +emacs_cv_struct_utimbuf=no
34078 +fi
34079 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34080 +fi
34081 +echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
34082 +echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
34083 +if test $emacs_cv_struct_utimbuf = yes; then
34084 +  cat >>confdefs.h <<\_ACEOF
34085 +#define HAVE_STRUCT_UTIMBUF 1
34086 +_ACEOF
34087 +
34088 +fi
34089 +
34090 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34091 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34092 +if test "${ac_cv_type_signal+set}" = set; then
34093 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34094 +else
34095 +  cat >conftest.$ac_ext <<_ACEOF
34096 +/* confdefs.h.  */
34097 +_ACEOF
34098 +cat confdefs.h >>conftest.$ac_ext
34099 +cat >>conftest.$ac_ext <<_ACEOF
34100 +/* end confdefs.h.  */
34101 +#include <sys/types.h>
34102 +#include <signal.h>
34103 +#ifdef signal
34104 +# undef signal
34105 +#endif
34106 +#ifdef __cplusplus
34107 +extern "C" void (*signal (int, void (*)(int)))(int);
34108 +#else
34109 +void (*signal ()) ();
34110 +#endif
34111 +
34112 +int
34113 +main ()
34114 +{
34115 +int i;
34116 +  ;
34117 +  return 0;
34118 +}
34119 +_ACEOF
34120 +rm -f conftest.$ac_objext
34121 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34122 +  (eval $ac_compile) 2>conftest.er1
34123 +  ac_status=$?
34124 +  grep -v '^ *+' conftest.er1 >conftest.err
34125 +  rm -f conftest.er1
34126 +  cat conftest.err >&5
34127 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 +  (exit $ac_status); } &&
34129 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34130 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 +  (eval $ac_try) 2>&5
34132 +  ac_status=$?
34133 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 +  (exit $ac_status); }; } &&
34135 +        { ac_try='test -s conftest.$ac_objext'
34136 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 +  (eval $ac_try) 2>&5
34138 +  ac_status=$?
34139 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 +  (exit $ac_status); }; }; then
34141 +  ac_cv_type_signal=void
34142 +else
34143 +  echo "$as_me: failed program was:" >&5
34144 +sed 's/^/| /' conftest.$ac_ext >&5
34145 +
34146 +ac_cv_type_signal=int
34147 +fi
34148 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34149 +fi
34150 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34151 +echo "${ECHO_T}$ac_cv_type_signal" >&6
34152 +
34153 +cat >>confdefs.h <<_ACEOF
34154 +#define RETSIGTYPE $ac_cv_type_signal
34155 +_ACEOF
34156 +
34157 +
34158 +
34159 +echo "$as_me:$LINENO: checking for speed_t" >&5
34160 +echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
34161 +if test "${emacs_cv_speed_t+set}" = set; then
34162 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34163 +else
34164 +  cat >conftest.$ac_ext <<_ACEOF
34165 +/* confdefs.h.  */
34166 +_ACEOF
34167 +cat confdefs.h >>conftest.$ac_ext
34168 +cat >>conftest.$ac_ext <<_ACEOF
34169 +/* end confdefs.h.  */
34170 +#include <termios.h>
34171 +int
34172 +main ()
34173 +{
34174 +speed_t x = 1;
34175 +  ;
34176 +  return 0;
34177 +}
34178 +_ACEOF
34179 +rm -f conftest.$ac_objext
34180 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34181 +  (eval $ac_compile) 2>conftest.er1
34182 +  ac_status=$?
34183 +  grep -v '^ *+' conftest.er1 >conftest.err
34184 +  rm -f conftest.er1
34185 +  cat conftest.err >&5
34186 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187 +  (exit $ac_status); } &&
34188 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34189 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 +  (eval $ac_try) 2>&5
34191 +  ac_status=$?
34192 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 +  (exit $ac_status); }; } &&
34194 +        { ac_try='test -s conftest.$ac_objext'
34195 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 +  (eval $ac_try) 2>&5
34197 +  ac_status=$?
34198 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 +  (exit $ac_status); }; }; then
34200 +  emacs_cv_speed_t=yes
34201 +else
34202 +  echo "$as_me: failed program was:" >&5
34203 +sed 's/^/| /' conftest.$ac_ext >&5
34204 +
34205 +emacs_cv_speed_t=no
34206 +fi
34207 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34208 +fi
34209 +echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
34210 +echo "${ECHO_T}$emacs_cv_speed_t" >&6
34211 +if test $emacs_cv_speed_t = yes; then
34212 +  cat >>confdefs.h <<\_ACEOF
34213 +#define HAVE_SPEED_T 1
34214 +_ACEOF
34215 +
34216 +fi
34217 +
34218 +echo "$as_me:$LINENO: checking for struct timeval" >&5
34219 +echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
34220 +if test "${emacs_cv_struct_timeval+set}" = set; then
34221 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34222 +else
34223 +  cat >conftest.$ac_ext <<_ACEOF
34224 +/* confdefs.h.  */
34225 +_ACEOF
34226 +cat confdefs.h >>conftest.$ac_ext
34227 +cat >>conftest.$ac_ext <<_ACEOF
34228 +/* end confdefs.h.  */
34229 +#ifdef TIME_WITH_SYS_TIME
34230 +#include <sys/time.h>
34231 +#include <time.h>
34232 +#else
34233 +#ifdef HAVE_SYS_TIME_H
34234 +#include <sys/time.h>
34235 +#else
34236 +#include <time.h>
34237 +#endif
34238 +#endif
34239 +int
34240 +main ()
34241 +{
34242 +static struct timeval x; x.tv_sec = x.tv_usec;
34243 +  ;
34244 +  return 0;
34245 +}
34246 +_ACEOF
34247 +rm -f conftest.$ac_objext
34248 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34249 +  (eval $ac_compile) 2>conftest.er1
34250 +  ac_status=$?
34251 +  grep -v '^ *+' conftest.er1 >conftest.err
34252 +  rm -f conftest.er1
34253 +  cat conftest.err >&5
34254 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 +  (exit $ac_status); } &&
34256 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34257 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 +  (eval $ac_try) 2>&5
34259 +  ac_status=$?
34260 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 +  (exit $ac_status); }; } &&
34262 +        { ac_try='test -s conftest.$ac_objext'
34263 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 +  (eval $ac_try) 2>&5
34265 +  ac_status=$?
34266 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 +  (exit $ac_status); }; }; then
34268 +  emacs_cv_struct_timeval=yes
34269 +else
34270 +  echo "$as_me: failed program was:" >&5
34271 +sed 's/^/| /' conftest.$ac_ext >&5
34272 +
34273 +emacs_cv_struct_timeval=no
34274 +fi
34275 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34276 +fi
34277 +echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
34278 +echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
34279 +HAVE_TIMEVAL=$emacs_cv_struct_timeval
34280 +if test $emacs_cv_struct_timeval = yes; then
34281 +  cat >>confdefs.h <<\_ACEOF
34282 +#define HAVE_TIMEVAL 1
34283 +_ACEOF
34284 +
34285 +fi
34286 +
34287 +echo "$as_me:$LINENO: checking for struct exception" >&5
34288 +echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
34289 +if test "${emacs_cv_struct_exception+set}" = set; then
34290 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34291 +else
34292 +  cat >conftest.$ac_ext <<_ACEOF
34293 +/* confdefs.h.  */
34294 +_ACEOF
34295 +cat confdefs.h >>conftest.$ac_ext
34296 +cat >>conftest.$ac_ext <<_ACEOF
34297 +/* end confdefs.h.  */
34298 +#include <math.h>
34299 +int
34300 +main ()
34301 +{
34302 +static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
34303 +  ;
34304 +  return 0;
34305 +}
34306 +_ACEOF
34307 +rm -f conftest.$ac_objext
34308 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34309 +  (eval $ac_compile) 2>conftest.er1
34310 +  ac_status=$?
34311 +  grep -v '^ *+' conftest.er1 >conftest.err
34312 +  rm -f conftest.er1
34313 +  cat conftest.err >&5
34314 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 +  (exit $ac_status); } &&
34316 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34317 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 +  (eval $ac_try) 2>&5
34319 +  ac_status=$?
34320 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 +  (exit $ac_status); }; } &&
34322 +        { ac_try='test -s conftest.$ac_objext'
34323 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34324 +  (eval $ac_try) 2>&5
34325 +  ac_status=$?
34326 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 +  (exit $ac_status); }; }; then
34328 +  emacs_cv_struct_exception=yes
34329 +else
34330 +  echo "$as_me: failed program was:" >&5
34331 +sed 's/^/| /' conftest.$ac_ext >&5
34332 +
34333 +emacs_cv_struct_exception=no
34334 +fi
34335 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34336 +fi
34337 +echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
34338 +echo "${ECHO_T}$emacs_cv_struct_exception" >&6
34339 +HAVE_EXCEPTION=$emacs_cv_struct_exception
34340 +if test $emacs_cv_struct_exception != yes; then
34341 +  cat >>confdefs.h <<\_ACEOF
34342 +#define NO_MATHERR 1
34343 +_ACEOF
34344 +
34345 +fi
34346 +
34347 +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34348 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34349 +if test "${ac_cv_struct_tm+set}" = set; then
34350 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34351 +else
34352 +  cat >conftest.$ac_ext <<_ACEOF
34353 +/* confdefs.h.  */
34354 +_ACEOF
34355 +cat confdefs.h >>conftest.$ac_ext
34356 +cat >>conftest.$ac_ext <<_ACEOF
34357 +/* end confdefs.h.  */
34358 +#include <sys/types.h>
34359 +#include <time.h>
34360 +
34361 +int
34362 +main ()
34363 +{
34364 +struct tm *tp; tp->tm_sec;
34365 +  ;
34366 +  return 0;
34367 +}
34368 +_ACEOF
34369 +rm -f conftest.$ac_objext
34370 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34371 +  (eval $ac_compile) 2>conftest.er1
34372 +  ac_status=$?
34373 +  grep -v '^ *+' conftest.er1 >conftest.err
34374 +  rm -f conftest.er1
34375 +  cat conftest.err >&5
34376 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 +  (exit $ac_status); } &&
34378 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34379 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 +  (eval $ac_try) 2>&5
34381 +  ac_status=$?
34382 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 +  (exit $ac_status); }; } &&
34384 +        { ac_try='test -s conftest.$ac_objext'
34385 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 +  (eval $ac_try) 2>&5
34387 +  ac_status=$?
34388 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 +  (exit $ac_status); }; }; then
34390 +  ac_cv_struct_tm=time.h
34391 +else
34392 +  echo "$as_me: failed program was:" >&5
34393 +sed 's/^/| /' conftest.$ac_ext >&5
34394 +
34395 +ac_cv_struct_tm=sys/time.h
34396 +fi
34397 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34398 +fi
34399 +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34400 +echo "${ECHO_T}$ac_cv_struct_tm" >&6
34401 +if test $ac_cv_struct_tm = sys/time.h; then
34402 +
34403 +cat >>confdefs.h <<\_ACEOF
34404 +#define TM_IN_SYS_TIME 1
34405 +_ACEOF
34406 +
34407 +fi
34408 +
34409 +echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
34410 +echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
34411 +if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
34412 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34413 +else
34414 +  cat >conftest.$ac_ext <<_ACEOF
34415 +/* confdefs.h.  */
34416 +_ACEOF
34417 +cat confdefs.h >>conftest.$ac_ext
34418 +cat >>conftest.$ac_ext <<_ACEOF
34419 +/* end confdefs.h.  */
34420 +#include <sys/types.h>
34421 +#include <$ac_cv_struct_tm>
34422 +
34423 +
34424 +int
34425 +main ()
34426 +{
34427 +static struct tm ac_aggr;
34428 +if (ac_aggr.tm_zone)
34429 +return 0;
34430 +  ;
34431 +  return 0;
34432 +}
34433 +_ACEOF
34434 +rm -f conftest.$ac_objext
34435 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34436 +  (eval $ac_compile) 2>conftest.er1
34437 +  ac_status=$?
34438 +  grep -v '^ *+' conftest.er1 >conftest.err
34439 +  rm -f conftest.er1
34440 +  cat conftest.err >&5
34441 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 +  (exit $ac_status); } &&
34443 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34444 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445 +  (eval $ac_try) 2>&5
34446 +  ac_status=$?
34447 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 +  (exit $ac_status); }; } &&
34449 +        { ac_try='test -s conftest.$ac_objext'
34450 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34451 +  (eval $ac_try) 2>&5
34452 +  ac_status=$?
34453 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 +  (exit $ac_status); }; }; then
34455 +  ac_cv_member_struct_tm_tm_zone=yes
34456 +else
34457 +  echo "$as_me: failed program was:" >&5
34458 +sed 's/^/| /' conftest.$ac_ext >&5
34459 +
34460 +cat >conftest.$ac_ext <<_ACEOF
34461 +/* confdefs.h.  */
34462 +_ACEOF
34463 +cat confdefs.h >>conftest.$ac_ext
34464 +cat >>conftest.$ac_ext <<_ACEOF
34465 +/* end confdefs.h.  */
34466 +#include <sys/types.h>
34467 +#include <$ac_cv_struct_tm>
34468 +
34469 +
34470 +int
34471 +main ()
34472 +{
34473 +static struct tm ac_aggr;
34474 +if (sizeof ac_aggr.tm_zone)
34475 +return 0;
34476 +  ;
34477 +  return 0;
34478 +}
34479 +_ACEOF
34480 +rm -f conftest.$ac_objext
34481 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34482 +  (eval $ac_compile) 2>conftest.er1
34483 +  ac_status=$?
34484 +  grep -v '^ *+' conftest.er1 >conftest.err
34485 +  rm -f conftest.er1
34486 +  cat conftest.err >&5
34487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488 +  (exit $ac_status); } &&
34489 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34490 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 +  (eval $ac_try) 2>&5
34492 +  ac_status=$?
34493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 +  (exit $ac_status); }; } &&
34495 +        { ac_try='test -s conftest.$ac_objext'
34496 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 +  (eval $ac_try) 2>&5
34498 +  ac_status=$?
34499 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 +  (exit $ac_status); }; }; then
34501 +  ac_cv_member_struct_tm_tm_zone=yes
34502 +else
34503 +  echo "$as_me: failed program was:" >&5
34504 +sed 's/^/| /' conftest.$ac_ext >&5
34505 +
34506 +ac_cv_member_struct_tm_tm_zone=no
34507 +fi
34508 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34509 +fi
34510 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34511 +fi
34512 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
34513 +echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
34514 +if test $ac_cv_member_struct_tm_tm_zone = yes; then
34515 +
34516 +cat >>confdefs.h <<_ACEOF
34517 +#define HAVE_STRUCT_TM_TM_ZONE 1
34518 +_ACEOF
34519 +
34520 +
34521 +fi
34522 +
34523 +if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
34524 +
34525 +cat >>confdefs.h <<\_ACEOF
34526 +#define HAVE_TM_ZONE 1
34527 +_ACEOF
34528 +
34529 +else
34530 +  echo "$as_me:$LINENO: checking for tzname" >&5
34531 +echo $ECHO_N "checking for tzname... $ECHO_C" >&6
34532 +if test "${ac_cv_var_tzname+set}" = set; then
34533 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34534 +else
34535 +  cat >conftest.$ac_ext <<_ACEOF
34536 +/* confdefs.h.  */
34537 +_ACEOF
34538 +cat confdefs.h >>conftest.$ac_ext
34539 +cat >>conftest.$ac_ext <<_ACEOF
34540 +/* end confdefs.h.  */
34541 +#include <time.h>
34542 +#ifndef tzname /* For SGI.  */
34543 +extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
34544 +#endif
34545 +
34546 +int
34547 +main ()
34548 +{
34549 +atoi(*tzname);
34550 +  ;
34551 +  return 0;
34552 +}
34553 +_ACEOF
34554 +rm -f conftest.$ac_objext conftest$ac_exeext
34555 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556 +  (eval $ac_link) 2>conftest.er1
34557 +  ac_status=$?
34558 +  grep -v '^ *+' conftest.er1 >conftest.err
34559 +  rm -f conftest.er1
34560 +  cat conftest.err >&5
34561 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 +  (exit $ac_status); } &&
34563 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34564 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565 +  (eval $ac_try) 2>&5
34566 +  ac_status=$?
34567 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 +  (exit $ac_status); }; } &&
34569 +        { ac_try='test -s conftest$ac_exeext'
34570 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 +  (eval $ac_try) 2>&5
34572 +  ac_status=$?
34573 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 +  (exit $ac_status); }; }; then
34575 +  ac_cv_var_tzname=yes
34576 +else
34577 +  echo "$as_me: failed program was:" >&5
34578 +sed 's/^/| /' conftest.$ac_ext >&5
34579 +
34580 +ac_cv_var_tzname=no
34581 +fi
34582 +rm -f conftest.err conftest.$ac_objext \
34583 +      conftest$ac_exeext conftest.$ac_ext
34584 +fi
34585 +echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
34586 +echo "${ECHO_T}$ac_cv_var_tzname" >&6
34587 +  if test $ac_cv_var_tzname = yes; then
34588 +
34589 +cat >>confdefs.h <<\_ACEOF
34590 +#define HAVE_TZNAME 1
34591 +_ACEOF
34592 +
34593 +  fi
34594 +fi
34595 +
34596 +echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34597 +echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34598 +if test "${emacs_cv_tm_gmtoff+set}" = set; then
34599 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34600 +else
34601 +  cat >conftest.$ac_ext <<_ACEOF
34602 +/* confdefs.h.  */
34603 +_ACEOF
34604 +cat confdefs.h >>conftest.$ac_ext
34605 +cat >>conftest.$ac_ext <<_ACEOF
34606 +/* end confdefs.h.  */
34607 +#include <time.h>
34608 +int
34609 +main ()
34610 +{
34611 +struct tm t; t.tm_gmtoff = 0
34612 +  ;
34613 +  return 0;
34614 +}
34615 +_ACEOF
34616 +rm -f conftest.$ac_objext conftest$ac_exeext
34617 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34618 +  (eval $ac_link) 2>conftest.er1
34619 +  ac_status=$?
34620 +  grep -v '^ *+' conftest.er1 >conftest.err
34621 +  rm -f conftest.er1
34622 +  cat conftest.err >&5
34623 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 +  (exit $ac_status); } &&
34625 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34626 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 +  (eval $ac_try) 2>&5
34628 +  ac_status=$?
34629 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 +  (exit $ac_status); }; } &&
34631 +        { ac_try='test -s conftest$ac_exeext'
34632 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 +  (eval $ac_try) 2>&5
34634 +  ac_status=$?
34635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 +  (exit $ac_status); }; }; then
34637 +  emacs_cv_tm_gmtoff=yes
34638 +else
34639 +  echo "$as_me: failed program was:" >&5
34640 +sed 's/^/| /' conftest.$ac_ext >&5
34641 +
34642 +emacs_cv_tm_gmtoff=no
34643 +fi
34644 +rm -f conftest.err conftest.$ac_objext \
34645 +      conftest$ac_exeext conftest.$ac_ext
34646 +fi
34647 +echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
34648 +echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
34649 +if test $emacs_cv_tm_gmtoff = yes; then
34650 +  cat >>confdefs.h <<\_ACEOF
34651 +#define HAVE_TM_GMTOFF 1
34652 +_ACEOF
34653 +
34654 +fi
34655 +
34656 +
34657 +echo "$as_me:$LINENO: checking for function prototypes" >&5
34658 +echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
34659 +if test "$ac_cv_prog_cc_stdc" != no; then
34660 +  echo "$as_me:$LINENO: result: yes" >&5
34661 +echo "${ECHO_T}yes" >&6
34662 +
34663 +cat >>confdefs.h <<\_ACEOF
34664 +#define PROTOTYPES 1
34665 +_ACEOF
34666 +
34667 +
34668 +cat >>confdefs.h <<\_ACEOF
34669 +#define __PROTOTYPES 1
34670 +_ACEOF
34671 +
34672 +else
34673 +  echo "$as_me:$LINENO: result: no" >&5
34674 +echo "${ECHO_T}no" >&6
34675 +fi
34676 +
34677 +echo "$as_me:$LINENO: checking for working volatile" >&5
34678 +echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
34679 +if test "${ac_cv_c_volatile+set}" = set; then
34680 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34681 +else
34682 +  cat >conftest.$ac_ext <<_ACEOF
34683 +/* confdefs.h.  */
34684 +_ACEOF
34685 +cat confdefs.h >>conftest.$ac_ext
34686 +cat >>conftest.$ac_ext <<_ACEOF
34687 +/* end confdefs.h.  */
34688 +
34689 +int
34690 +main ()
34691 +{
34692 +
34693 +volatile int x;
34694 +int * volatile y;
34695 +  ;
34696 +  return 0;
34697 +}
34698 +_ACEOF
34699 +rm -f conftest.$ac_objext
34700 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34701 +  (eval $ac_compile) 2>conftest.er1
34702 +  ac_status=$?
34703 +  grep -v '^ *+' conftest.er1 >conftest.err
34704 +  rm -f conftest.er1
34705 +  cat conftest.err >&5
34706 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 +  (exit $ac_status); } &&
34708 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34709 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 +  (eval $ac_try) 2>&5
34711 +  ac_status=$?
34712 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 +  (exit $ac_status); }; } &&
34714 +        { ac_try='test -s conftest.$ac_objext'
34715 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 +  (eval $ac_try) 2>&5
34717 +  ac_status=$?
34718 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 +  (exit $ac_status); }; }; then
34720 +  ac_cv_c_volatile=yes
34721 +else
34722 +  echo "$as_me: failed program was:" >&5
34723 +sed 's/^/| /' conftest.$ac_ext >&5
34724 +
34725 +ac_cv_c_volatile=no
34726 +fi
34727 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34728 +fi
34729 +echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
34730 +echo "${ECHO_T}$ac_cv_c_volatile" >&6
34731 +if test $ac_cv_c_volatile = no; then
34732 +
34733 +cat >>confdefs.h <<\_ACEOF
34734 +#define volatile
34735 +_ACEOF
34736 +
34737 +fi
34738 +
34739 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34740 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34741 +if test "${ac_cv_c_const+set}" = set; then
34742 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34743 +else
34744 +  cat >conftest.$ac_ext <<_ACEOF
34745 +/* confdefs.h.  */
34746 +_ACEOF
34747 +cat confdefs.h >>conftest.$ac_ext
34748 +cat >>conftest.$ac_ext <<_ACEOF
34749 +/* end confdefs.h.  */
34750 +
34751 +int
34752 +main ()
34753 +{
34754 +/* FIXME: Include the comments suggested by Paul. */
34755 +#ifndef __cplusplus
34756 +  /* Ultrix mips cc rejects this.  */
34757 +  typedef int charset[2];
34758 +  const charset x;
34759 +  /* SunOS 4.1.1 cc rejects this.  */
34760 +  char const *const *ccp;
34761 +  char **p;
34762 +  /* NEC SVR4.0.2 mips cc rejects this.  */
34763 +  struct point {int x, y;};
34764 +  static struct point const zero = {0,0};
34765 +  /* AIX XL C 1.02.0.0 rejects this.
34766 +     It does not let you subtract one const X* pointer from another in
34767 +     an arm of an if-expression whose if-part is not a constant
34768 +     expression */
34769 +  const char *g = "string";
34770 +  ccp = &g + (g ? g-g : 0);
34771 +  /* HPUX 7.0 cc rejects these. */
34772 +  ++ccp;
34773 +  p = (char**) ccp;
34774 +  ccp = (char const *const *) p;
34775 +  { /* SCO 3.2v4 cc rejects this.  */
34776 +    char *t;
34777 +    char const *s = 0 ? (char *) 0 : (char const *) 0;
34778 +
34779 +    *t++ = 0;
34780 +  }
34781 +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34782 +    int x[] = {25, 17};
34783 +    const int *foo = &x[0];
34784 +    ++foo;
34785 +  }
34786 +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34787 +    typedef const int *iptr;
34788 +    iptr p = 0;
34789 +    ++p;
34790 +  }
34791 +  { /* AIX XL C 1.02.0.0 rejects this saying
34792 +       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34793 +    struct s { int j; const int *ap[3]; };
34794 +    struct s *b; b->j = 5;
34795 +  }
34796 +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34797 +    const int foo = 10;
34798 +  }
34799 +#endif
34800 +
34801 +  ;
34802 +  return 0;
34803 +}
34804 +_ACEOF
34805 +rm -f conftest.$ac_objext
34806 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34807 +  (eval $ac_compile) 2>conftest.er1
34808 +  ac_status=$?
34809 +  grep -v '^ *+' conftest.er1 >conftest.err
34810 +  rm -f conftest.er1
34811 +  cat conftest.err >&5
34812 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 +  (exit $ac_status); } &&
34814 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34815 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816 +  (eval $ac_try) 2>&5
34817 +  ac_status=$?
34818 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 +  (exit $ac_status); }; } &&
34820 +        { ac_try='test -s conftest.$ac_objext'
34821 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34822 +  (eval $ac_try) 2>&5
34823 +  ac_status=$?
34824 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 +  (exit $ac_status); }; }; then
34826 +  ac_cv_c_const=yes
34827 +else
34828 +  echo "$as_me: failed program was:" >&5
34829 +sed 's/^/| /' conftest.$ac_ext >&5
34830 +
34831 +ac_cv_c_const=no
34832 +fi
34833 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34834 +fi
34835 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34836 +echo "${ECHO_T}$ac_cv_c_const" >&6
34837 +if test $ac_cv_c_const = no; then
34838 +
34839 +cat >>confdefs.h <<\_ACEOF
34840 +#define const
34841 +_ACEOF
34842 +
34843 +fi
34844 +
34845 +echo "$as_me:$LINENO: checking for void * support" >&5
34846 +echo $ECHO_N "checking for void * support... $ECHO_C" >&6
34847 +if test "${emacs_cv_void_star+set}" = set; then
34848 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34849 +else
34850 +  cat >conftest.$ac_ext <<_ACEOF
34851 +/* confdefs.h.  */
34852 +_ACEOF
34853 +cat confdefs.h >>conftest.$ac_ext
34854 +cat >>conftest.$ac_ext <<_ACEOF
34855 +/* end confdefs.h.  */
34856 +
34857 +int
34858 +main ()
34859 +{
34860 +void * foo;
34861 +  ;
34862 +  return 0;
34863 +}
34864 +_ACEOF
34865 +rm -f conftest.$ac_objext
34866 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867 +  (eval $ac_compile) 2>conftest.er1
34868 +  ac_status=$?
34869 +  grep -v '^ *+' conftest.er1 >conftest.err
34870 +  rm -f conftest.er1
34871 +  cat conftest.err >&5
34872 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 +  (exit $ac_status); } &&
34874 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 +  (eval $ac_try) 2>&5
34877 +  ac_status=$?
34878 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 +  (exit $ac_status); }; } &&
34880 +        { ac_try='test -s conftest.$ac_objext'
34881 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882 +  (eval $ac_try) 2>&5
34883 +  ac_status=$?
34884 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 +  (exit $ac_status); }; }; then
34886 +  emacs_cv_void_star=yes
34887 +else
34888 +  echo "$as_me: failed program was:" >&5
34889 +sed 's/^/| /' conftest.$ac_ext >&5
34890 +
34891 +emacs_cv_void_star=no
34892 +fi
34893 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34894 +fi
34895 +echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
34896 +echo "${ECHO_T}$emacs_cv_void_star" >&6
34897 +if test $emacs_cv_void_star = yes; then
34898 +  cat >>confdefs.h <<\_ACEOF
34899 +#define POINTER_TYPE void
34900 +_ACEOF
34901 +
34902 +else
34903 +  cat >>confdefs.h <<\_ACEOF
34904 +#define POINTER_TYPE char
34905 +_ACEOF
34906 +
34907 +fi
34908 +
34909 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34910 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34911 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
34912 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34913 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34914 +else
34915 +  cat >conftest.make <<\_ACEOF
34916 +all:
34917 +       @echo 'ac_maketemp="$(MAKE)"'
34918 +_ACEOF
34919 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34920 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34921 +if test -n "$ac_maketemp"; then
34922 +  eval ac_cv_prog_make_${ac_make}_set=yes
34923 +else
34924 +  eval ac_cv_prog_make_${ac_make}_set=no
34925 +fi
34926 +rm -f conftest.make
34927 +fi
34928 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34929 +  echo "$as_me:$LINENO: result: yes" >&5
34930 +echo "${ECHO_T}yes" >&6
34931 +  SET_MAKE=
34932 +else
34933 +  echo "$as_me:$LINENO: result: no" >&5
34934 +echo "${ECHO_T}no" >&6
34935 +  SET_MAKE="MAKE=${MAKE-make}"
34936 +fi
34937 +
34938 +
34939 +echo "$as_me:$LINENO: checking for long file names" >&5
34940 +echo $ECHO_N "checking for long file names... $ECHO_C" >&6
34941 +if test "${ac_cv_sys_long_file_names+set}" = set; then
34942 +  echo $ECHO_N "(cached) $ECHO_C" >&6
34943 +else
34944 +  ac_cv_sys_long_file_names=yes
34945 +# Test for long file names in all the places we know might matter:
34946 +#      .               the current directory, where building will happen
34947 +#      $prefix/lib     where we will be installing things
34948 +#      $exec_prefix/lib        likewise
34949 +# eval it to expand exec_prefix.
34950 +#      $TMPDIR         if set, where it might want to write temporary files
34951 +# if $TMPDIR is not set:
34952 +#      /tmp            where it might want to write temporary files
34953 +#      /var/tmp                likewise
34954 +#      /usr/tmp                likewise
34955 +if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
34956 +  ac_tmpdirs=$TMPDIR
34957 +else
34958 +  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
34959 +fi
34960 +for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
34961 +  test -d $ac_dir || continue
34962 +  test -w $ac_dir || continue # It is less confusing to not echo anything here.
34963 +  ac_xdir=$ac_dir/cf$$
34964 +  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
34965 +  ac_tf1=$ac_xdir/conftest9012345
34966 +  ac_tf2=$ac_xdir/conftest9012346
34967 +  (echo 1 >$ac_tf1) 2>/dev/null
34968 +  (echo 2 >$ac_tf2) 2>/dev/null
34969 +  ac_val=`cat $ac_tf1 2>/dev/null`
34970 +  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
34971 +    ac_cv_sys_long_file_names=no
34972 +    rm -rf $ac_xdir 2>/dev/null
34973 +    break
34974 +  fi
34975 +  rm -rf $ac_xdir 2>/dev/null
34976 +done
34977 +fi
34978 +echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
34979 +echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
34980 +if test $ac_cv_sys_long_file_names = yes; then
34981 +
34982 +cat >>confdefs.h <<\_ACEOF
34983 +#define HAVE_LONG_FILE_NAMES 1
34984 +_ACEOF
34985 +
34986 +fi
34987 +
34988 +
34989 +#### Choose a window system.
34990 +
34991 +echo "$as_me:$LINENO: checking for X" >&5
34992 +echo $ECHO_N "checking for X... $ECHO_C" >&6
34993 +
34994 +ac_path_x_has_been_run=yes
34995 +
34996 +# Check whether --with-x or --without-x was given.
34997 +if test "${with_x+set}" = set; then
34998 +  withval="$with_x"
34999 +
35000 +fi;
35001 +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
35002 +if test "x$with_x" = xno; then
35003 +  # The user explicitly disabled X.
35004 +  have_x=disabled
35005 +else
35006 +  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
35007 +    # Both variables are already set.
35008 +    have_x=yes
35009 +  else
35010 +    if test "${ac_cv_have_x+set}" = set; then
35011 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35012 +else
35013 +  # One or both of the vars are not set, and there is no cached value.
35014 +ac_x_includes=no ac_x_libraries=no
35015 +rm -fr conftest.dir
35016 +if mkdir conftest.dir; then
35017 +  cd conftest.dir
35018 +  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
35019 +  cat >Imakefile <<'_ACEOF'
35020 +acfindx:
35021 +       @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
35022 +_ACEOF
35023 +  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
35024 +    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35025 +    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
35026 +    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
35027 +    for ac_extension in a so sl; do
35028 +      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
35029 +        test -f $ac_im_libdir/libX11.$ac_extension; then
35030 +       ac_im_usrlibdir=$ac_im_libdir; break
35031 +      fi
35032 +    done
35033 +    # Screen out bogus values from the imake configuration.  They are
35034 +    # bogus both because they are the default anyway, and because
35035 +    # using them would break gcc on systems where it needs fixed includes.
35036 +    case $ac_im_incroot in
35037 +       /usr/include) ;;
35038 +       *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
35039 +    esac
35040 +    case $ac_im_usrlibdir in
35041 +       /usr/lib | /lib) ;;
35042 +       *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
35043 +    esac
35044 +  fi
35045 +  cd ..
35046 +  rm -fr conftest.dir
35047 +fi
35048 +
35049 +# Standard set of common directories for X headers.
35050 +# Check X11 before X11Rn because it is often a symlink to the current release.
35051 +ac_x_header_dirs='
35052 +/usr/X11/include
35053 +/usr/X11R6/include
35054 +/usr/X11R5/include
35055 +/usr/X11R4/include
35056 +
35057 +/usr/include/X11
35058 +/usr/include/X11R6
35059 +/usr/include/X11R5
35060 +/usr/include/X11R4
35061 +
35062 +/usr/local/X11/include
35063 +/usr/local/X11R6/include
35064 +/usr/local/X11R5/include
35065 +/usr/local/X11R4/include
35066 +
35067 +/usr/local/include/X11
35068 +/usr/local/include/X11R6
35069 +/usr/local/include/X11R5
35070 +/usr/local/include/X11R4
35071 +
35072 +/usr/X386/include
35073 +/usr/x386/include
35074 +/usr/XFree86/include/X11
35075 +
35076 +/usr/include
35077 +/usr/local/include
35078 +/usr/unsupported/include
35079 +/usr/athena/include
35080 +/usr/local/x11r5/include
35081 +/usr/lpp/Xamples/include
35082 +
35083 +/usr/openwin/include
35084 +/usr/openwin/share/include'
35085 +
35086 +if test "$ac_x_includes" = no; then
35087 +  # Guess where to find include files, by looking for a specified header file.
35088 +  # First, try using that file with no special directory specified.
35089 +  cat >conftest.$ac_ext <<_ACEOF
35090 +/* confdefs.h.  */
35091 +_ACEOF
35092 +cat confdefs.h >>conftest.$ac_ext
35093 +cat >>conftest.$ac_ext <<_ACEOF
35094 +/* end confdefs.h.  */
35095 +#include <X11/Intrinsic.h>
35096 +_ACEOF
35097 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35098 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35099 +  ac_status=$?
35100 +  grep -v '^ *+' conftest.er1 >conftest.err
35101 +  rm -f conftest.er1
35102 +  cat conftest.err >&5
35103 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 +  (exit $ac_status); } >/dev/null; then
35105 +  if test -s conftest.err; then
35106 +    ac_cpp_err=$ac_c_preproc_warn_flag
35107 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35108 +  else
35109 +    ac_cpp_err=
35110 +  fi
35111 +else
35112 +  ac_cpp_err=yes
35113 +fi
35114 +if test -z "$ac_cpp_err"; then
35115 +  # We can compile using X headers with no special include directory.
35116 +ac_x_includes=
35117 +else
35118 +  echo "$as_me: failed program was:" >&5
35119 +sed 's/^/| /' conftest.$ac_ext >&5
35120 +
35121 +  for ac_dir in $ac_x_header_dirs; do
35122 +  if test -r "$ac_dir/X11/Intrinsic.h"; then
35123 +    ac_x_includes=$ac_dir
35124 +    break
35125 +  fi
35126 +done
35127 +fi
35128 +rm -f conftest.err conftest.$ac_ext
35129 +fi # $ac_x_includes = no
35130 +
35131 +if test "$ac_x_libraries" = no; then
35132 +  # Check for the libraries.
35133 +  # See if we find them without any special options.
35134 +  # Don't add to $LIBS permanently.
35135 +  ac_save_LIBS=$LIBS
35136 +  LIBS="-lXt $LIBS"
35137 +  cat >conftest.$ac_ext <<_ACEOF
35138 +/* confdefs.h.  */
35139 +_ACEOF
35140 +cat confdefs.h >>conftest.$ac_ext
35141 +cat >>conftest.$ac_ext <<_ACEOF
35142 +/* end confdefs.h.  */
35143 +#include <X11/Intrinsic.h>
35144 +int
35145 +main ()
35146 +{
35147 +XtMalloc (0)
35148 +  ;
35149 +  return 0;
35150 +}
35151 +_ACEOF
35152 +rm -f conftest.$ac_objext conftest$ac_exeext
35153 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35154 +  (eval $ac_link) 2>conftest.er1
35155 +  ac_status=$?
35156 +  grep -v '^ *+' conftest.er1 >conftest.err
35157 +  rm -f conftest.er1
35158 +  cat conftest.err >&5
35159 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 +  (exit $ac_status); } &&
35161 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35162 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35163 +  (eval $ac_try) 2>&5
35164 +  ac_status=$?
35165 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 +  (exit $ac_status); }; } &&
35167 +        { ac_try='test -s conftest$ac_exeext'
35168 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 +  (eval $ac_try) 2>&5
35170 +  ac_status=$?
35171 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 +  (exit $ac_status); }; }; then
35173 +  LIBS=$ac_save_LIBS
35174 +# We can link X programs with no special library path.
35175 +ac_x_libraries=
35176 +else
35177 +  echo "$as_me: failed program was:" >&5
35178 +sed 's/^/| /' conftest.$ac_ext >&5
35179 +
35180 +LIBS=$ac_save_LIBS
35181 +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
35182 +do
35183 +  # Don't even attempt the hair of trying to link an X program!
35184 +  for ac_extension in a so sl; do
35185 +    if test -r $ac_dir/libXt.$ac_extension; then
35186 +      ac_x_libraries=$ac_dir
35187 +      break 2
35188 +    fi
35189 +  done
35190 +done
35191 +fi
35192 +rm -f conftest.err conftest.$ac_objext \
35193 +      conftest$ac_exeext conftest.$ac_ext
35194 +fi # $ac_x_libraries = no
35195 +
35196 +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
35197 +  # Didn't find X anywhere.  Cache the known absence of X.
35198 +  ac_cv_have_x="have_x=no"
35199 +else
35200 +  # Record where we found X for the cache.
35201 +  ac_cv_have_x="have_x=yes \
35202 +               ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
35203 +fi
35204 +fi
35205 +
35206 +  fi
35207 +  eval "$ac_cv_have_x"
35208 +fi # $with_x != no
35209 +
35210 +if test "$have_x" != yes; then
35211 +  echo "$as_me:$LINENO: result: $have_x" >&5
35212 +echo "${ECHO_T}$have_x" >&6
35213 +  no_x=yes
35214 +else
35215 +  # If each of the values was on the command line, it overrides each guess.
35216 +  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
35217 +  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
35218 +  # Update the cache value to reflect the command line values.
35219 +  ac_cv_have_x="have_x=yes \
35220 +               ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
35221 +  # It might be that x_includes is empty (headers are found in the
35222 +  # standard search path. Then output the corresponding message
35223 +  ac_out_x_includes=$x_includes
35224 +  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
35225 +  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
35226 +echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
35227 +fi
35228 +
35229 +if test "$no_x" = yes; then
35230 +  window_system=none
35231 +else
35232 +  window_system=x11
35233 +fi
35234 +
35235 +if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
35236 +  LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
35237 +  LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
35238 +  x_default_search_path=""
35239 +  for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
35240 +    x_search_path="\
35241 +${x_library}/X11/%L/%T/%N%C%S:\
35242 +${x_library}/X11/%l/%T/%N%C%S:\
35243 +${x_library}/X11/%T/%N%C%S:\
35244 +${x_library}/X11/%L/%T/%N%S:\
35245 +${x_library}/X11/%l/%T/%N%S:\
35246 +${x_library}/X11/%T/%N%S"
35247 +    if test x"${x_default_search_path}" = x; then
35248 +      x_default_search_path=${x_search_path}
35249 +    else
35250 +      x_default_search_path="${x_search_path}:${x_default_search_path}"
35251 +    fi
35252 +  done
35253 +fi
35254 +if test "${x_includes}" != NONE && test -n "${x_includes}"; then
35255 +  C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
35256 +fi
35257 +
35258 +if test x"${x_includes}" = x; then
35259 +  bitmapdir=/usr/include/X11/bitmaps
35260 +else
35261 +  # accumulate include directories that have X11 bitmap subdirectories
35262 +  bmd_acc="dummyval"
35263 +  for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
35264 +    if test -d "${bmd}/X11/bitmaps"; then
35265 +      bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
35266 +    fi
35267 +    if test -d "${bmd}/bitmaps"; then
35268 +      bmd_acc="${bmd_acc}:${bmd}/bitmaps"
35269 +    fi
35270 +  done
35271 +  if test ${bmd_acc} != "dummyval"; then
35272 +    bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
35273 +  fi
35274 +fi
35275 +
35276 +case "${window_system}" in
35277 +  x11 )
35278 +    HAVE_X_WINDOWS=yes
35279 +    HAVE_X11=yes
35280 +    case "${with_x_toolkit}" in
35281 +      athena | lucid ) USE_X_TOOLKIT=LUCID ;;
35282 +      motif ) USE_X_TOOLKIT=MOTIF ;;
35283 +      no ) USE_X_TOOLKIT=none ;;
35284 +      * ) USE_X_TOOLKIT=maybe ;;
35285 +    esac
35286 +  ;;
35287 +  none )
35288 +    HAVE_X_WINDOWS=no
35289 +    HAVE_X11=no
35290 +    USE_X_TOOLKIT=none
35291 +  ;;
35292 +esac
35293 +
35294 +### If we're using X11, we should use the X menu package.
35295 +HAVE_MENUS=no
35296 +case ${HAVE_X11} in
35297 +  yes ) HAVE_MENUS=yes ;;
35298 +esac
35299 +
35300 +if test "${opsys}" = "hpux9"; then
35301 +  case "${x_libraries}" in
35302 +    *X11R4* )
35303 +      opsysfile="s/hpux9-x11r4.h"
35304 +      ;;
35305 +  esac
35306 +fi
35307 +
35308 +if test "${opsys}" = "hpux9shr"; then
35309 +  case "${x_libraries}" in
35310 +    *X11R4* )
35311 +      opsysfile="s/hpux9shxr4.h"
35312 +      ;;
35313 +  esac
35314 +fi
35315 +
35316 +### Compute the unexec source name from the object name.
35317 +UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
35318 +
35319 +# Do the opsystem or machine files prohibit the use of the GNU malloc?
35320 +# Assume not, until told otherwise.
35321 +GNU_MALLOC=yes
35322 +doug_lea_malloc=yes
35323 +echo "$as_me:$LINENO: checking for malloc_get_state" >&5
35324 +echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
35325 +if test "${ac_cv_func_malloc_get_state+set}" = set; then
35326 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35327 +else
35328 +  cat >conftest.$ac_ext <<_ACEOF
35329 +/* confdefs.h.  */
35330 +_ACEOF
35331 +cat confdefs.h >>conftest.$ac_ext
35332 +cat >>conftest.$ac_ext <<_ACEOF
35333 +/* end confdefs.h.  */
35334 +/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
35335 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35336 +#define malloc_get_state innocuous_malloc_get_state
35337 +
35338 +/* System header to define __stub macros and hopefully few prototypes,
35339 +    which can conflict with char malloc_get_state (); below.
35340 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35341 +    <limits.h> exists even on freestanding compilers.  */
35342 +
35343 +#ifdef __STDC__
35344 +# include <limits.h>
35345 +#else
35346 +# include <assert.h>
35347 +#endif
35348 +
35349 +#undef malloc_get_state
35350 +
35351 +/* Override any gcc2 internal prototype to avoid an error.  */
35352 +#ifdef __cplusplus
35353 +extern "C"
35354 +{
35355 +#endif
35356 +/* We use char because int might match the return type of a gcc2
35357 +   builtin and then its argument prototype would still apply.  */
35358 +char malloc_get_state ();
35359 +/* The GNU C library defines this for functions which it implements
35360 +    to always fail with ENOSYS.  Some functions are actually named
35361 +    something starting with __ and the normal name is an alias.  */
35362 +#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
35363 +choke me
35364 +#else
35365 +char (*f) () = malloc_get_state;
35366 +#endif
35367 +#ifdef __cplusplus
35368 +}
35369 +#endif
35370 +
35371 +int
35372 +main ()
35373 +{
35374 +return f != malloc_get_state;
35375 +  ;
35376 +  return 0;
35377 +}
35378 +_ACEOF
35379 +rm -f conftest.$ac_objext conftest$ac_exeext
35380 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35381 +  (eval $ac_link) 2>conftest.er1
35382 +  ac_status=$?
35383 +  grep -v '^ *+' conftest.er1 >conftest.err
35384 +  rm -f conftest.er1
35385 +  cat conftest.err >&5
35386 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 +  (exit $ac_status); } &&
35388 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35389 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 +  (eval $ac_try) 2>&5
35391 +  ac_status=$?
35392 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 +  (exit $ac_status); }; } &&
35394 +        { ac_try='test -s conftest$ac_exeext'
35395 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 +  (eval $ac_try) 2>&5
35397 +  ac_status=$?
35398 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 +  (exit $ac_status); }; }; then
35400 +  ac_cv_func_malloc_get_state=yes
35401 +else
35402 +  echo "$as_me: failed program was:" >&5
35403 +sed 's/^/| /' conftest.$ac_ext >&5
35404 +
35405 +ac_cv_func_malloc_get_state=no
35406 +fi
35407 +rm -f conftest.err conftest.$ac_objext \
35408 +      conftest$ac_exeext conftest.$ac_ext
35409 +fi
35410 +echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
35411 +echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
35412 +if test $ac_cv_func_malloc_get_state = yes; then
35413 +  :
35414 +else
35415 +  doug_lea_malloc=no
35416 +fi
35417 +
35418 +echo "$as_me:$LINENO: checking for malloc_set_state" >&5
35419 +echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
35420 +if test "${ac_cv_func_malloc_set_state+set}" = set; then
35421 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35422 +else
35423 +  cat >conftest.$ac_ext <<_ACEOF
35424 +/* confdefs.h.  */
35425 +_ACEOF
35426 +cat confdefs.h >>conftest.$ac_ext
35427 +cat >>conftest.$ac_ext <<_ACEOF
35428 +/* end confdefs.h.  */
35429 +/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
35430 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35431 +#define malloc_set_state innocuous_malloc_set_state
35432 +
35433 +/* System header to define __stub macros and hopefully few prototypes,
35434 +    which can conflict with char malloc_set_state (); below.
35435 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35436 +    <limits.h> exists even on freestanding compilers.  */
35437 +
35438 +#ifdef __STDC__
35439 +# include <limits.h>
35440 +#else
35441 +# include <assert.h>
35442 +#endif
35443 +
35444 +#undef malloc_set_state
35445 +
35446 +/* Override any gcc2 internal prototype to avoid an error.  */
35447 +#ifdef __cplusplus
35448 +extern "C"
35449 +{
35450 +#endif
35451 +/* We use char because int might match the return type of a gcc2
35452 +   builtin and then its argument prototype would still apply.  */
35453 +char malloc_set_state ();
35454 +/* The GNU C library defines this for functions which it implements
35455 +    to always fail with ENOSYS.  Some functions are actually named
35456 +    something starting with __ and the normal name is an alias.  */
35457 +#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
35458 +choke me
35459 +#else
35460 +char (*f) () = malloc_set_state;
35461 +#endif
35462 +#ifdef __cplusplus
35463 +}
35464 +#endif
35465 +
35466 +int
35467 +main ()
35468 +{
35469 +return f != malloc_set_state;
35470 +  ;
35471 +  return 0;
35472 +}
35473 +_ACEOF
35474 +rm -f conftest.$ac_objext conftest$ac_exeext
35475 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35476 +  (eval $ac_link) 2>conftest.er1
35477 +  ac_status=$?
35478 +  grep -v '^ *+' conftest.er1 >conftest.err
35479 +  rm -f conftest.er1
35480 +  cat conftest.err >&5
35481 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 +  (exit $ac_status); } &&
35483 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35484 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485 +  (eval $ac_try) 2>&5
35486 +  ac_status=$?
35487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 +  (exit $ac_status); }; } &&
35489 +        { ac_try='test -s conftest$ac_exeext'
35490 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35491 +  (eval $ac_try) 2>&5
35492 +  ac_status=$?
35493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 +  (exit $ac_status); }; }; then
35495 +  ac_cv_func_malloc_set_state=yes
35496 +else
35497 +  echo "$as_me: failed program was:" >&5
35498 +sed 's/^/| /' conftest.$ac_ext >&5
35499 +
35500 +ac_cv_func_malloc_set_state=no
35501 +fi
35502 +rm -f conftest.err conftest.$ac_objext \
35503 +      conftest$ac_exeext conftest.$ac_ext
35504 +fi
35505 +echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
35506 +echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
35507 +if test $ac_cv_func_malloc_set_state = yes; then
35508 +  :
35509 +else
35510 +  doug_lea_malloc=no
35511 +fi
35512 +
35513 +echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
35514 +echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
35515 +if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
35516 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35517 +else
35518 +  cat >conftest.$ac_ext <<_ACEOF
35519 +/* confdefs.h.  */
35520 +_ACEOF
35521 +cat confdefs.h >>conftest.$ac_ext
35522 +cat >>conftest.$ac_ext <<_ACEOF
35523 +/* end confdefs.h.  */
35524 +extern void (* __after_morecore_hook)();
35525 +int
35526 +main ()
35527 +{
35528 +__after_morecore_hook = 0
35529 +  ;
35530 +  return 0;
35531 +}
35532 +_ACEOF
35533 +rm -f conftest.$ac_objext conftest$ac_exeext
35534 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35535 +  (eval $ac_link) 2>conftest.er1
35536 +  ac_status=$?
35537 +  grep -v '^ *+' conftest.er1 >conftest.err
35538 +  rm -f conftest.er1
35539 +  cat conftest.err >&5
35540 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 +  (exit $ac_status); } &&
35542 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35543 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35544 +  (eval $ac_try) 2>&5
35545 +  ac_status=$?
35546 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547 +  (exit $ac_status); }; } &&
35548 +        { ac_try='test -s conftest$ac_exeext'
35549 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550 +  (eval $ac_try) 2>&5
35551 +  ac_status=$?
35552 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 +  (exit $ac_status); }; }; then
35554 +  emacs_cv_var___after_morecore_hook=yes
35555 +else
35556 +  echo "$as_me: failed program was:" >&5
35557 +sed 's/^/| /' conftest.$ac_ext >&5
35558 +
35559 +emacs_cv_var___after_morecore_hook=no
35560 +fi
35561 +rm -f conftest.err conftest.$ac_objext \
35562 +      conftest$ac_exeext conftest.$ac_ext
35563 +fi
35564 +echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
35565 +echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
35566 +if test $emacs_cv_var___after_morecore_hook = no; then
35567 +  doug_lea_malloc=no
35568 +fi
35569 +if test "${system_malloc}" = "yes"; then
35570 +  GNU_MALLOC=no
35571 +  GNU_MALLOC_reason="
35572 +    (The GNU allocators don't work with this system configuration.)"
35573 +fi
35574 +if test "$doug_lea_malloc" = "yes" ; then
35575 +  if test "$GNU_MALLOC" = yes ; then
35576 +    GNU_MALLOC_reason="
35577 +      (Using Doug Lea's new malloc from the GNU C Library.)"
35578 +  fi
35579 +  cat >>confdefs.h <<\_ACEOF
35580 +#define DOUG_LEA_MALLOC 1
35581 +_ACEOF
35582 +
35583 +fi
35584 +
35585 +if test x"${REL_ALLOC}" = x; then
35586 +  REL_ALLOC=${GNU_MALLOC}
35587 +fi
35588 +
35589 +
35590 +
35591 +
35592 +for ac_header in stdlib.h unistd.h
35593 +do
35594 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35595 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35596 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
35597 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35598 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35599 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35600 +fi
35601 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35602 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35603 +else
35604 +  # Is the header compilable?
35605 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
35606 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35607 +cat >conftest.$ac_ext <<_ACEOF
35608 +/* confdefs.h.  */
35609 +_ACEOF
35610 +cat confdefs.h >>conftest.$ac_ext
35611 +cat >>conftest.$ac_ext <<_ACEOF
35612 +/* end confdefs.h.  */
35613 +$ac_includes_default
35614 +#include <$ac_header>
35615 +_ACEOF
35616 +rm -f conftest.$ac_objext
35617 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35618 +  (eval $ac_compile) 2>conftest.er1
35619 +  ac_status=$?
35620 +  grep -v '^ *+' conftest.er1 >conftest.err
35621 +  rm -f conftest.er1
35622 +  cat conftest.err >&5
35623 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 +  (exit $ac_status); } &&
35625 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35626 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627 +  (eval $ac_try) 2>&5
35628 +  ac_status=$?
35629 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 +  (exit $ac_status); }; } &&
35631 +        { ac_try='test -s conftest.$ac_objext'
35632 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35633 +  (eval $ac_try) 2>&5
35634 +  ac_status=$?
35635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 +  (exit $ac_status); }; }; then
35637 +  ac_header_compiler=yes
35638 +else
35639 +  echo "$as_me: failed program was:" >&5
35640 +sed 's/^/| /' conftest.$ac_ext >&5
35641 +
35642 +ac_header_compiler=no
35643 +fi
35644 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35645 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35646 +echo "${ECHO_T}$ac_header_compiler" >&6
35647 +
35648 +# Is the header present?
35649 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
35650 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35651 +cat >conftest.$ac_ext <<_ACEOF
35652 +/* confdefs.h.  */
35653 +_ACEOF
35654 +cat confdefs.h >>conftest.$ac_ext
35655 +cat >>conftest.$ac_ext <<_ACEOF
35656 +/* end confdefs.h.  */
35657 +#include <$ac_header>
35658 +_ACEOF
35659 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35660 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35661 +  ac_status=$?
35662 +  grep -v '^ *+' conftest.er1 >conftest.err
35663 +  rm -f conftest.er1
35664 +  cat conftest.err >&5
35665 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 +  (exit $ac_status); } >/dev/null; then
35667 +  if test -s conftest.err; then
35668 +    ac_cpp_err=$ac_c_preproc_warn_flag
35669 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35670 +  else
35671 +    ac_cpp_err=
35672 +  fi
35673 +else
35674 +  ac_cpp_err=yes
35675 +fi
35676 +if test -z "$ac_cpp_err"; then
35677 +  ac_header_preproc=yes
35678 +else
35679 +  echo "$as_me: failed program was:" >&5
35680 +sed 's/^/| /' conftest.$ac_ext >&5
35681 +
35682 +  ac_header_preproc=no
35683 +fi
35684 +rm -f conftest.err conftest.$ac_ext
35685 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35686 +echo "${ECHO_T}$ac_header_preproc" >&6
35687 +
35688 +# So?  What about this header?
35689 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35690 +  yes:no: )
35691 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35692 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35693 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35694 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35695 +    ac_header_preproc=yes
35696 +    ;;
35697 +  no:yes:* )
35698 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35699 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35700 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35701 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35702 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35703 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35704 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35705 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35706 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35707 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35708 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35709 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35710 +    (
35711 +      cat <<\_ASBOX
35712 +## ------------------------------------------ ##
35713 +## Report this to the AC_PACKAGE_NAME lists.  ##
35714 +## ------------------------------------------ ##
35715 +_ASBOX
35716 +    ) |
35717 +      sed "s/^/$as_me: WARNING:     /" >&2
35718 +    ;;
35719 +esac
35720 +echo "$as_me:$LINENO: checking for $ac_header" >&5
35721 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35722 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35723 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35724 +else
35725 +  eval "$as_ac_Header=\$ac_header_preproc"
35726 +fi
35727 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35728 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35729 +
35730 +fi
35731 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
35732 +  cat >>confdefs.h <<_ACEOF
35733 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35734 +_ACEOF
35735 +
35736 +fi
35737 +
35738 +done
35739 +
35740 +
35741 +for ac_func in getpagesize
35742 +do
35743 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35744 +echo "$as_me:$LINENO: checking for $ac_func" >&5
35745 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35746 +if eval "test \"\${$as_ac_var+set}\" = set"; then
35747 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35748 +else
35749 +  cat >conftest.$ac_ext <<_ACEOF
35750 +/* confdefs.h.  */
35751 +_ACEOF
35752 +cat confdefs.h >>conftest.$ac_ext
35753 +cat >>conftest.$ac_ext <<_ACEOF
35754 +/* end confdefs.h.  */
35755 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35756 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35757 +#define $ac_func innocuous_$ac_func
35758 +
35759 +/* System header to define __stub macros and hopefully few prototypes,
35760 +    which can conflict with char $ac_func (); below.
35761 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35762 +    <limits.h> exists even on freestanding compilers.  */
35763 +
35764 +#ifdef __STDC__
35765 +# include <limits.h>
35766 +#else
35767 +# include <assert.h>
35768 +#endif
35769 +
35770 +#undef $ac_func
35771 +
35772 +/* Override any gcc2 internal prototype to avoid an error.  */
35773 +#ifdef __cplusplus
35774 +extern "C"
35775 +{
35776 +#endif
35777 +/* We use char because int might match the return type of a gcc2
35778 +   builtin and then its argument prototype would still apply.  */
35779 +char $ac_func ();
35780 +/* The GNU C library defines this for functions which it implements
35781 +    to always fail with ENOSYS.  Some functions are actually named
35782 +    something starting with __ and the normal name is an alias.  */
35783 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35784 +choke me
35785 +#else
35786 +char (*f) () = $ac_func;
35787 +#endif
35788 +#ifdef __cplusplus
35789 +}
35790 +#endif
35791 +
35792 +int
35793 +main ()
35794 +{
35795 +return f != $ac_func;
35796 +  ;
35797 +  return 0;
35798 +}
35799 +_ACEOF
35800 +rm -f conftest.$ac_objext conftest$ac_exeext
35801 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35802 +  (eval $ac_link) 2>conftest.er1
35803 +  ac_status=$?
35804 +  grep -v '^ *+' conftest.er1 >conftest.err
35805 +  rm -f conftest.er1
35806 +  cat conftest.err >&5
35807 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 +  (exit $ac_status); } &&
35809 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35810 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 +  (eval $ac_try) 2>&5
35812 +  ac_status=$?
35813 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 +  (exit $ac_status); }; } &&
35815 +        { ac_try='test -s conftest$ac_exeext'
35816 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 +  (eval $ac_try) 2>&5
35818 +  ac_status=$?
35819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 +  (exit $ac_status); }; }; then
35821 +  eval "$as_ac_var=yes"
35822 +else
35823 +  echo "$as_me: failed program was:" >&5
35824 +sed 's/^/| /' conftest.$ac_ext >&5
35825 +
35826 +eval "$as_ac_var=no"
35827 +fi
35828 +rm -f conftest.err conftest.$ac_objext \
35829 +      conftest$ac_exeext conftest.$ac_ext
35830 +fi
35831 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35832 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35833 +if test `eval echo '${'$as_ac_var'}'` = yes; then
35834 +  cat >>confdefs.h <<_ACEOF
35835 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35836 +_ACEOF
35837 +
35838 +fi
35839 +done
35840 +
35841 +echo "$as_me:$LINENO: checking for working mmap" >&5
35842 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
35843 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
35844 +  echo $ECHO_N "(cached) $ECHO_C" >&6
35845 +else
35846 +  if test "$cross_compiling" = yes; then
35847 +  ac_cv_func_mmap_fixed_mapped=no
35848 +else
35849 +  cat >conftest.$ac_ext <<_ACEOF
35850 +/* confdefs.h.  */
35851 +_ACEOF
35852 +cat confdefs.h >>conftest.$ac_ext
35853 +cat >>conftest.$ac_ext <<_ACEOF
35854 +/* end confdefs.h.  */
35855 +$ac_includes_default
35856 +/* malloc might have been renamed as rpl_malloc. */
35857 +#undef malloc
35858 +
35859 +/* Thanks to Mike Haertel and Jim Avera for this test.
35860 +   Here is a matrix of mmap possibilities:
35861 +       mmap private not fixed
35862 +       mmap private fixed at somewhere currently unmapped
35863 +       mmap private fixed at somewhere already mapped
35864 +       mmap shared not fixed
35865 +       mmap shared fixed at somewhere currently unmapped
35866 +       mmap shared fixed at somewhere already mapped
35867 +   For private mappings, we should verify that changes cannot be read()
35868 +   back from the file, nor mmap's back from the file at a different
35869 +   address.  (There have been systems where private was not correctly
35870 +   implemented like the infamous i386 svr4.0, and systems where the
35871 +   VM page cache was not coherent with the file system buffer cache
35872 +   like early versions of FreeBSD and possibly contemporary NetBSD.)
35873 +   For shared mappings, we should conversely verify that changes get
35874 +   propagated back to all the places they're supposed to be.
35875 +
35876 +   Grep wants private fixed already mapped.
35877 +   The main things grep needs to know about mmap are:
35878 +   * does it exist and is it safe to write into the mmap'd area
35879 +   * how to use it (BSD variants)  */
35880 +
35881 +#include <fcntl.h>
35882 +#include <sys/mman.h>
35883 +
35884 +#if !STDC_HEADERS && !HAVE_STDLIB_H
35885 +char *malloc ();
35886 +#endif
35887 +
35888 +/* This mess was copied from the GNU getpagesize.h.  */
35889 +#if !HAVE_GETPAGESIZE
35890 +/* Assume that all systems that can run configure have sys/param.h.  */
35891 +# if !HAVE_SYS_PARAM_H
35892 +#  define HAVE_SYS_PARAM_H 1
35893 +# endif
35894 +
35895 +# ifdef _SC_PAGESIZE
35896 +#  define getpagesize() sysconf(_SC_PAGESIZE)
35897 +# else /* no _SC_PAGESIZE */
35898 +#  if HAVE_SYS_PARAM_H
35899 +#   include <sys/param.h>
35900 +#   ifdef EXEC_PAGESIZE
35901 +#    define getpagesize() EXEC_PAGESIZE
35902 +#   else /* no EXEC_PAGESIZE */
35903 +#    ifdef NBPG
35904 +#     define getpagesize() NBPG * CLSIZE
35905 +#     ifndef CLSIZE
35906 +#      define CLSIZE 1
35907 +#     endif /* no CLSIZE */
35908 +#    else /* no NBPG */
35909 +#     ifdef NBPC
35910 +#      define getpagesize() NBPC
35911 +#     else /* no NBPC */
35912 +#      ifdef PAGESIZE
35913 +#       define getpagesize() PAGESIZE
35914 +#      endif /* PAGESIZE */
35915 +#     endif /* no NBPC */
35916 +#    endif /* no NBPG */
35917 +#   endif /* no EXEC_PAGESIZE */
35918 +#  else /* no HAVE_SYS_PARAM_H */
35919 +#   define getpagesize() 8192  /* punt totally */
35920 +#  endif /* no HAVE_SYS_PARAM_H */
35921 +# endif /* no _SC_PAGESIZE */
35922 +
35923 +#endif /* no HAVE_GETPAGESIZE */
35924 +
35925 +int
35926 +main ()
35927 +{
35928 +  char *data, *data2, *data3;
35929 +  int i, pagesize;
35930 +  int fd;
35931 +
35932 +  pagesize = getpagesize ();
35933 +
35934 +  /* First, make a file with some known garbage in it. */
35935 +  data = (char *) malloc (pagesize);
35936 +  if (!data)
35937 +    exit (1);
35938 +  for (i = 0; i < pagesize; ++i)
35939 +    *(data + i) = rand ();
35940 +  umask (0);
35941 +  fd = creat ("conftest.mmap", 0600);
35942 +  if (fd < 0)
35943 +    exit (1);
35944 +  if (write (fd, data, pagesize) != pagesize)
35945 +    exit (1);
35946 +  close (fd);
35947 +
35948 +  /* Next, try to mmap the file at a fixed address which already has
35949 +     something else allocated at it.  If we can, also make sure that
35950 +     we see the same garbage.  */
35951 +  fd = open ("conftest.mmap", O_RDWR);
35952 +  if (fd < 0)
35953 +    exit (1);
35954 +  data2 = (char *) malloc (2 * pagesize);
35955 +  if (!data2)
35956 +    exit (1);
35957 +  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
35958 +  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
35959 +                    MAP_PRIVATE | MAP_FIXED, fd, 0L))
35960 +    exit (1);
35961 +  for (i = 0; i < pagesize; ++i)
35962 +    if (*(data + i) != *(data2 + i))
35963 +      exit (1);
35964 +
35965 +  /* Finally, make sure that changes to the mapped area do not
35966 +     percolate back to the file as seen by read().  (This is a bug on
35967 +     some variants of i386 svr4.0.)  */
35968 +  for (i = 0; i < pagesize; ++i)
35969 +    *(data2 + i) = *(data2 + i) + 1;
35970 +  data3 = (char *) malloc (pagesize);
35971 +  if (!data3)
35972 +    exit (1);
35973 +  if (read (fd, data3, pagesize) != pagesize)
35974 +    exit (1);
35975 +  for (i = 0; i < pagesize; ++i)
35976 +    if (*(data + i) != *(data3 + i))
35977 +      exit (1);
35978 +  close (fd);
35979 +  exit (0);
35980 +}
35981 +_ACEOF
35982 +rm -f conftest$ac_exeext
35983 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35984 +  (eval $ac_link) 2>&5
35985 +  ac_status=$?
35986 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35988 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35989 +  (eval $ac_try) 2>&5
35990 +  ac_status=$?
35991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 +  (exit $ac_status); }; }; then
35993 +  ac_cv_func_mmap_fixed_mapped=yes
35994 +else
35995 +  echo "$as_me: program exited with status $ac_status" >&5
35996 +echo "$as_me: failed program was:" >&5
35997 +sed 's/^/| /' conftest.$ac_ext >&5
35998 +
35999 +( exit $ac_status )
36000 +ac_cv_func_mmap_fixed_mapped=no
36001 +fi
36002 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36003 +fi
36004 +fi
36005 +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
36006 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
36007 +if test $ac_cv_func_mmap_fixed_mapped = yes; then
36008 +
36009 +cat >>confdefs.h <<\_ACEOF
36010 +#define HAVE_MMAP 1
36011 +_ACEOF
36012 +
36013 +fi
36014 +rm -f conftest.mmap
36015 +
36016 +if test $use_mmap_for_buffers = yes; then
36017 +  REL_ALLOC=no
36018 +fi
36019 +
36020 +LIBS="$libsrc_libs $LIBS"
36021 +
36022 +
36023 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
36024 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
36025 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
36026 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36027 +else
36028 +  ac_check_lib_save_LIBS=$LIBS
36029 +LIBS="-ldnet  $LIBS"
36030 +cat >conftest.$ac_ext <<_ACEOF
36031 +/* confdefs.h.  */
36032 +_ACEOF
36033 +cat confdefs.h >>conftest.$ac_ext
36034 +cat >>conftest.$ac_ext <<_ACEOF
36035 +/* end confdefs.h.  */
36036 +
36037 +/* Override any gcc2 internal prototype to avoid an error.  */
36038 +#ifdef __cplusplus
36039 +extern "C"
36040 +#endif
36041 +/* We use char because int might match the return type of a gcc2
36042 +   builtin and then its argument prototype would still apply.  */
36043 +char dnet_ntoa ();
36044 +int
36045 +main ()
36046 +{
36047 +dnet_ntoa ();
36048 +  ;
36049 +  return 0;
36050 +}
36051 +_ACEOF
36052 +rm -f conftest.$ac_objext conftest$ac_exeext
36053 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36054 +  (eval $ac_link) 2>conftest.er1
36055 +  ac_status=$?
36056 +  grep -v '^ *+' conftest.er1 >conftest.err
36057 +  rm -f conftest.er1
36058 +  cat conftest.err >&5
36059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 +  (exit $ac_status); } &&
36061 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36062 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 +  (eval $ac_try) 2>&5
36064 +  ac_status=$?
36065 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 +  (exit $ac_status); }; } &&
36067 +        { ac_try='test -s conftest$ac_exeext'
36068 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 +  (eval $ac_try) 2>&5
36070 +  ac_status=$?
36071 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 +  (exit $ac_status); }; }; then
36073 +  ac_cv_lib_dnet_dnet_ntoa=yes
36074 +else
36075 +  echo "$as_me: failed program was:" >&5
36076 +sed 's/^/| /' conftest.$ac_ext >&5
36077 +
36078 +ac_cv_lib_dnet_dnet_ntoa=no
36079 +fi
36080 +rm -f conftest.err conftest.$ac_objext \
36081 +      conftest$ac_exeext conftest.$ac_ext
36082 +LIBS=$ac_check_lib_save_LIBS
36083 +fi
36084 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
36085 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
36086 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
36087 +  cat >>confdefs.h <<_ACEOF
36088 +#define HAVE_LIBDNET 1
36089 +_ACEOF
36090 +
36091 +  LIBS="-ldnet $LIBS"
36092 +
36093 +fi
36094 +
36095 +
36096 +echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
36097 +echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
36098 +if test "${ac_cv_lib_Xbsd_main+set}" = set; then
36099 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36100 +else
36101 +  ac_check_lib_save_LIBS=$LIBS
36102 +LIBS="-lXbsd  $LIBS"
36103 +cat >conftest.$ac_ext <<_ACEOF
36104 +/* confdefs.h.  */
36105 +_ACEOF
36106 +cat confdefs.h >>conftest.$ac_ext
36107 +cat >>conftest.$ac_ext <<_ACEOF
36108 +/* end confdefs.h.  */
36109 +
36110 +
36111 +int
36112 +main ()
36113 +{
36114 +main ();
36115 +  ;
36116 +  return 0;
36117 +}
36118 +_ACEOF
36119 +rm -f conftest.$ac_objext conftest$ac_exeext
36120 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36121 +  (eval $ac_link) 2>conftest.er1
36122 +  ac_status=$?
36123 +  grep -v '^ *+' conftest.er1 >conftest.err
36124 +  rm -f conftest.er1
36125 +  cat conftest.err >&5
36126 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 +  (exit $ac_status); } &&
36128 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36129 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 +  (eval $ac_try) 2>&5
36131 +  ac_status=$?
36132 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 +  (exit $ac_status); }; } &&
36134 +        { ac_try='test -s conftest$ac_exeext'
36135 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36136 +  (eval $ac_try) 2>&5
36137 +  ac_status=$?
36138 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 +  (exit $ac_status); }; }; then
36140 +  ac_cv_lib_Xbsd_main=yes
36141 +else
36142 +  echo "$as_me: failed program was:" >&5
36143 +sed 's/^/| /' conftest.$ac_ext >&5
36144 +
36145 +ac_cv_lib_Xbsd_main=no
36146 +fi
36147 +rm -f conftest.err conftest.$ac_objext \
36148 +      conftest$ac_exeext conftest.$ac_ext
36149 +LIBS=$ac_check_lib_save_LIBS
36150 +fi
36151 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
36152 +echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
36153 +if test $ac_cv_lib_Xbsd_main = yes; then
36154 +  LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
36155 +fi
36156 +
36157 +
36158 +
36159 +echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
36160 +echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
36161 +if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
36162 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36163 +else
36164 +  ac_check_lib_save_LIBS=$LIBS
36165 +LIBS="-lpthreads  $LIBS"
36166 +cat >conftest.$ac_ext <<_ACEOF
36167 +/* confdefs.h.  */
36168 +_ACEOF
36169 +cat confdefs.h >>conftest.$ac_ext
36170 +cat >>conftest.$ac_ext <<_ACEOF
36171 +/* end confdefs.h.  */
36172 +
36173 +/* Override any gcc2 internal prototype to avoid an error.  */
36174 +#ifdef __cplusplus
36175 +extern "C"
36176 +#endif
36177 +/* We use char because int might match the return type of a gcc2
36178 +   builtin and then its argument prototype would still apply.  */
36179 +char cma_open ();
36180 +int
36181 +main ()
36182 +{
36183 +cma_open ();
36184 +  ;
36185 +  return 0;
36186 +}
36187 +_ACEOF
36188 +rm -f conftest.$ac_objext conftest$ac_exeext
36189 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36190 +  (eval $ac_link) 2>conftest.er1
36191 +  ac_status=$?
36192 +  grep -v '^ *+' conftest.er1 >conftest.err
36193 +  rm -f conftest.er1
36194 +  cat conftest.err >&5
36195 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 +  (exit $ac_status); } &&
36197 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36198 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 +  (eval $ac_try) 2>&5
36200 +  ac_status=$?
36201 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 +  (exit $ac_status); }; } &&
36203 +        { ac_try='test -s conftest$ac_exeext'
36204 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205 +  (eval $ac_try) 2>&5
36206 +  ac_status=$?
36207 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 +  (exit $ac_status); }; }; then
36209 +  ac_cv_lib_pthreads_cma_open=yes
36210 +else
36211 +  echo "$as_me: failed program was:" >&5
36212 +sed 's/^/| /' conftest.$ac_ext >&5
36213 +
36214 +ac_cv_lib_pthreads_cma_open=no
36215 +fi
36216 +rm -f conftest.err conftest.$ac_objext \
36217 +      conftest$ac_exeext conftest.$ac_ext
36218 +LIBS=$ac_check_lib_save_LIBS
36219 +fi
36220 +echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
36221 +echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
36222 +if test $ac_cv_lib_pthreads_cma_open = yes; then
36223 +  cat >>confdefs.h <<_ACEOF
36224 +#define HAVE_LIBPTHREADS 1
36225 +_ACEOF
36226 +
36227 +  LIBS="-lpthreads $LIBS"
36228 +
36229 +fi
36230 +
36231 +
36232 +echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
36233 +echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
36234 +if test -d /usr/X386/include; then
36235 +  HAVE_XFREE386=yes
36236 +  : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
36237 +else
36238 +  HAVE_XFREE386=no
36239 +fi
36240 +echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
36241 +echo "${ECHO_T}$HAVE_XFREE386" >&6
36242 +
36243 +
36244 +case ${host_os} in
36245 +aix*)
36246 +  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
36247 +echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
36248 +if test "${gdb_cv_bigtoc+set}" = set; then
36249 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36250 +else
36251 +
36252 +    case $GCC in
36253 +    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
36254 +    *) gdb_cv_bigtoc=-bbigtoc ;;
36255 +    esac
36256 +
36257 +    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
36258 +    cat >conftest.$ac_ext <<_ACEOF
36259 +/* confdefs.h.  */
36260 +_ACEOF
36261 +cat confdefs.h >>conftest.$ac_ext
36262 +cat >>conftest.$ac_ext <<_ACEOF
36263 +/* end confdefs.h.  */
36264 +
36265 +int
36266 +main ()
36267 +{
36268 +int i;
36269 +  ;
36270 +  return 0;
36271 +}
36272 +_ACEOF
36273 +rm -f conftest.$ac_objext conftest$ac_exeext
36274 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36275 +  (eval $ac_link) 2>conftest.er1
36276 +  ac_status=$?
36277 +  grep -v '^ *+' conftest.er1 >conftest.err
36278 +  rm -f conftest.er1
36279 +  cat conftest.err >&5
36280 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281 +  (exit $ac_status); } &&
36282 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36283 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 +  (eval $ac_try) 2>&5
36285 +  ac_status=$?
36286 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 +  (exit $ac_status); }; } &&
36288 +        { ac_try='test -s conftest$ac_exeext'
36289 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 +  (eval $ac_try) 2>&5
36291 +  ac_status=$?
36292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 +  (exit $ac_status); }; }; then
36294 +  :
36295 +else
36296 +  echo "$as_me: failed program was:" >&5
36297 +sed 's/^/| /' conftest.$ac_ext >&5
36298 +
36299 +gdb_cv_bigtoc=
36300 +fi
36301 +rm -f conftest.err conftest.$ac_objext \
36302 +      conftest$ac_exeext conftest.$ac_ext
36303 +
36304 +fi
36305 +echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
36306 +echo "${ECHO_T}$gdb_cv_bigtoc" >&6
36307 +  ;;
36308 +esac
36309 +
36310 +# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
36311 +# for the tests that follow.  We set it back to REAL_CFLAGS later on.
36312 +
36313 +REAL_CPPFLAGS="$CPPFLAGS"
36314 +
36315 +if test "${HAVE_X11}" = "yes"; then
36316 +  DEFS="$C_SWITCH_X_SITE $DEFS"
36317 +  LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
36318 +  LIBS="$LIBX $LIBS"
36319 +  CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
36320 +  CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
36321 +
36322 +  # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
36323 +  # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
36324 +  # but it's more convenient here to set LD_RUN_PATH
36325 +  # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
36326 +  if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
36327 +    LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
36328 +    export LD_RUN_PATH
36329 +  fi
36330 +
36331 +  if test "${opsys}" = "gnu-linux"; then
36332 +    echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
36333 +echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
36334 +    cat >conftest.$ac_ext <<_ACEOF
36335 +/* confdefs.h.  */
36336 +_ACEOF
36337 +cat confdefs.h >>conftest.$ac_ext
36338 +cat >>conftest.$ac_ext <<_ACEOF
36339 +/* end confdefs.h.  */
36340 +
36341 +int
36342 +main ()
36343 +{
36344 +XOpenDisplay ("foo");
36345 +  ;
36346 +  return 0;
36347 +}
36348 +_ACEOF
36349 +rm -f conftest.$ac_objext conftest$ac_exeext
36350 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36351 +  (eval $ac_link) 2>conftest.er1
36352 +  ac_status=$?
36353 +  grep -v '^ *+' conftest.er1 >conftest.err
36354 +  rm -f conftest.er1
36355 +  cat conftest.err >&5
36356 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357 +  (exit $ac_status); } &&
36358 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36359 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360 +  (eval $ac_try) 2>&5
36361 +  ac_status=$?
36362 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 +  (exit $ac_status); }; } &&
36364 +        { ac_try='test -s conftest$ac_exeext'
36365 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366 +  (eval $ac_try) 2>&5
36367 +  ac_status=$?
36368 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 +  (exit $ac_status); }; }; then
36370 +  xlinux_first_failure=no
36371 +else
36372 +  echo "$as_me: failed program was:" >&5
36373 +sed 's/^/| /' conftest.$ac_ext >&5
36374 +
36375 +xlinux_first_failure=yes
36376 +fi
36377 +rm -f conftest.err conftest.$ac_objext \
36378 +      conftest$ac_exeext conftest.$ac_ext
36379 +    if test "${xlinux_first_failure}" = "yes"; then
36380 +      OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
36381 +      OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
36382 +      OLD_CPPFLAGS="$CPPFLAGS"
36383 +      OLD_LIBS="$LIBS"
36384 +      LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
36385 +      C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
36386 +      CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
36387 +      LIBS="$LIBS -b i486-linuxaout"
36388 +      cat >conftest.$ac_ext <<_ACEOF
36389 +/* confdefs.h.  */
36390 +_ACEOF
36391 +cat confdefs.h >>conftest.$ac_ext
36392 +cat >>conftest.$ac_ext <<_ACEOF
36393 +/* end confdefs.h.  */
36394 +
36395 +int
36396 +main ()
36397 +{
36398 +XOpenDisplay ("foo");
36399 +  ;
36400 +  return 0;
36401 +}
36402 +_ACEOF
36403 +rm -f conftest.$ac_objext conftest$ac_exeext
36404 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36405 +  (eval $ac_link) 2>conftest.er1
36406 +  ac_status=$?
36407 +  grep -v '^ *+' conftest.er1 >conftest.err
36408 +  rm -f conftest.er1
36409 +  cat conftest.err >&5
36410 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 +  (exit $ac_status); } &&
36412 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36413 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36414 +  (eval $ac_try) 2>&5
36415 +  ac_status=$?
36416 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 +  (exit $ac_status); }; } &&
36418 +        { ac_try='test -s conftest$ac_exeext'
36419 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36420 +  (eval $ac_try) 2>&5
36421 +  ac_status=$?
36422 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 +  (exit $ac_status); }; }; then
36424 +  xlinux_second_failure=no
36425 +else
36426 +  echo "$as_me: failed program was:" >&5
36427 +sed 's/^/| /' conftest.$ac_ext >&5
36428 +
36429 +xlinux_second_failure=yes
36430 +fi
36431 +rm -f conftest.err conftest.$ac_objext \
36432 +      conftest$ac_exeext conftest.$ac_ext
36433 +      if test "${xlinux_second_failure}" = "yes"; then
36434 +       # If we get the same failure with -b, there is no use adding -b.
36435 +       # So take it out.  This plays safe.
36436 +       LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
36437 +       C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
36438 +       CPPFLAGS="$OLD_CPPFLAGS"
36439 +       LIBS="$OLD_LIBS"
36440 +        echo "$as_me:$LINENO: result: no" >&5
36441 +echo "${ECHO_T}no" >&6
36442 +      else
36443 +        echo "$as_me:$LINENO: result: yes" >&5
36444 +echo "${ECHO_T}yes" >&6
36445 +      fi
36446 +    else
36447 +      echo "$as_me:$LINENO: result: no" >&5
36448 +echo "${ECHO_T}no" >&6
36449 +    fi
36450 +  fi
36451 +
36452 +  # Reportedly, some broken Solaris systems have XKBlib.h but are missing
36453 +  # header files included from there.
36454 +  echo "$as_me:$LINENO: checking for Xkb" >&5
36455 +echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
36456 +  cat >conftest.$ac_ext <<_ACEOF
36457 +/* confdefs.h.  */
36458 +_ACEOF
36459 +cat confdefs.h >>conftest.$ac_ext
36460 +cat >>conftest.$ac_ext <<_ACEOF
36461 +/* end confdefs.h.  */
36462 +#include <X11/Xlib.h>
36463 +#include <X11/XKBlib.h>
36464 +int
36465 +main ()
36466 +{
36467 +XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
36468 +  ;
36469 +  return 0;
36470 +}
36471 +_ACEOF
36472 +rm -f conftest.$ac_objext conftest$ac_exeext
36473 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36474 +  (eval $ac_link) 2>conftest.er1
36475 +  ac_status=$?
36476 +  grep -v '^ *+' conftest.er1 >conftest.err
36477 +  rm -f conftest.er1
36478 +  cat conftest.err >&5
36479 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 +  (exit $ac_status); } &&
36481 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36482 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 +  (eval $ac_try) 2>&5
36484 +  ac_status=$?
36485 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 +  (exit $ac_status); }; } &&
36487 +        { ac_try='test -s conftest$ac_exeext'
36488 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 +  (eval $ac_try) 2>&5
36490 +  ac_status=$?
36491 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 +  (exit $ac_status); }; }; then
36493 +  emacs_xkb=yes
36494 +else
36495 +  echo "$as_me: failed program was:" >&5
36496 +sed 's/^/| /' conftest.$ac_ext >&5
36497 +
36498 +emacs_xkb=no
36499 +fi
36500 +rm -f conftest.err conftest.$ac_objext \
36501 +      conftest$ac_exeext conftest.$ac_ext
36502 +  echo "$as_me:$LINENO: result: $emacs_xkb" >&5
36503 +echo "${ECHO_T}$emacs_xkb" >&6
36504 +  if test $emacs_xkb = yes; then
36505 +    cat >>confdefs.h <<\_ACEOF
36506 +#define HAVE_XKBGETKEYBOARD 1
36507 +_ACEOF
36508 +
36509 +  fi
36510 +
36511 +
36512 +
36513 +
36514 +
36515 +for ac_func in XrmSetDatabase XScreenResourceString \
36516 +XScreenNumberOfScreen XSetWMProtocols
36517 +do
36518 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36519 +echo "$as_me:$LINENO: checking for $ac_func" >&5
36520 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36521 +if eval "test \"\${$as_ac_var+set}\" = set"; then
36522 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36523 +else
36524 +  cat >conftest.$ac_ext <<_ACEOF
36525 +/* confdefs.h.  */
36526 +_ACEOF
36527 +cat confdefs.h >>conftest.$ac_ext
36528 +cat >>conftest.$ac_ext <<_ACEOF
36529 +/* end confdefs.h.  */
36530 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36531 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36532 +#define $ac_func innocuous_$ac_func
36533 +
36534 +/* System header to define __stub macros and hopefully few prototypes,
36535 +    which can conflict with char $ac_func (); below.
36536 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36537 +    <limits.h> exists even on freestanding compilers.  */
36538 +
36539 +#ifdef __STDC__
36540 +# include <limits.h>
36541 +#else
36542 +# include <assert.h>
36543 +#endif
36544 +
36545 +#undef $ac_func
36546 +
36547 +/* Override any gcc2 internal prototype to avoid an error.  */
36548 +#ifdef __cplusplus
36549 +extern "C"
36550 +{
36551 +#endif
36552 +/* We use char because int might match the return type of a gcc2
36553 +   builtin and then its argument prototype would still apply.  */
36554 +char $ac_func ();
36555 +/* The GNU C library defines this for functions which it implements
36556 +    to always fail with ENOSYS.  Some functions are actually named
36557 +    something starting with __ and the normal name is an alias.  */
36558 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36559 +choke me
36560 +#else
36561 +char (*f) () = $ac_func;
36562 +#endif
36563 +#ifdef __cplusplus
36564 +}
36565 +#endif
36566 +
36567 +int
36568 +main ()
36569 +{
36570 +return f != $ac_func;
36571 +  ;
36572 +  return 0;
36573 +}
36574 +_ACEOF
36575 +rm -f conftest.$ac_objext conftest$ac_exeext
36576 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36577 +  (eval $ac_link) 2>conftest.er1
36578 +  ac_status=$?
36579 +  grep -v '^ *+' conftest.er1 >conftest.err
36580 +  rm -f conftest.er1
36581 +  cat conftest.err >&5
36582 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 +  (exit $ac_status); } &&
36584 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36585 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 +  (eval $ac_try) 2>&5
36587 +  ac_status=$?
36588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 +  (exit $ac_status); }; } &&
36590 +        { ac_try='test -s conftest$ac_exeext'
36591 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 +  (eval $ac_try) 2>&5
36593 +  ac_status=$?
36594 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 +  (exit $ac_status); }; }; then
36596 +  eval "$as_ac_var=yes"
36597 +else
36598 +  echo "$as_me: failed program was:" >&5
36599 +sed 's/^/| /' conftest.$ac_ext >&5
36600 +
36601 +eval "$as_ac_var=no"
36602 +fi
36603 +rm -f conftest.err conftest.$ac_objext \
36604 +      conftest$ac_exeext conftest.$ac_ext
36605 +fi
36606 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36607 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36608 +if test `eval echo '${'$as_ac_var'}'` = yes; then
36609 +  cat >>confdefs.h <<_ACEOF
36610 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36611 +_ACEOF
36612 +
36613 +fi
36614 +done
36615 +
36616 +fi
36617 +
36618 +if test "${window_system}" = "x11"; then
36619 +  echo "$as_me:$LINENO: checking X11 version 6" >&5
36620 +echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
36621 +  if test "${emacs_cv_x11_version_6+set}" = set; then
36622 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36623 +else
36624 +  cat >conftest.$ac_ext <<_ACEOF
36625 +/* confdefs.h.  */
36626 +_ACEOF
36627 +cat confdefs.h >>conftest.$ac_ext
36628 +cat >>conftest.$ac_ext <<_ACEOF
36629 +/* end confdefs.h.  */
36630 +#include <X11/Xlib.h>
36631 +int
36632 +main ()
36633 +{
36634 +#if XlibSpecificationRelease < 6
36635 +fail;
36636 +#endif
36637 +
36638 +  ;
36639 +  return 0;
36640 +}
36641 +_ACEOF
36642 +rm -f conftest.$ac_objext conftest$ac_exeext
36643 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36644 +  (eval $ac_link) 2>conftest.er1
36645 +  ac_status=$?
36646 +  grep -v '^ *+' conftest.er1 >conftest.err
36647 +  rm -f conftest.er1
36648 +  cat conftest.err >&5
36649 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650 +  (exit $ac_status); } &&
36651 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36652 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 +  (eval $ac_try) 2>&5
36654 +  ac_status=$?
36655 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 +  (exit $ac_status); }; } &&
36657 +        { ac_try='test -s conftest$ac_exeext'
36658 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 +  (eval $ac_try) 2>&5
36660 +  ac_status=$?
36661 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 +  (exit $ac_status); }; }; then
36663 +  emacs_cv_x11_version_6=yes
36664 +else
36665 +  echo "$as_me: failed program was:" >&5
36666 +sed 's/^/| /' conftest.$ac_ext >&5
36667 +
36668 +emacs_cv_x11_version_6=no
36669 +fi
36670 +rm -f conftest.err conftest.$ac_objext \
36671 +      conftest$ac_exeext conftest.$ac_ext
36672 +fi
36673 +
36674 +  if test $emacs_cv_x11_version_6 = yes; then
36675 +    echo "$as_me:$LINENO: result: 6 or newer" >&5
36676 +echo "${ECHO_T}6 or newer" >&6
36677 +    cat >>confdefs.h <<\_ACEOF
36678 +#define HAVE_X11R6 1
36679 +_ACEOF
36680 +
36681 +  else
36682 +    echo "$as_me:$LINENO: result: before 6" >&5
36683 +echo "${ECHO_T}before 6" >&6
36684 +  fi
36685 +fi
36686 +
36687 +if test "${window_system}" = "x11"; then
36688 +  echo "$as_me:$LINENO: checking X11 version 5" >&5
36689 +echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
36690 +  if test "${emacs_cv_x11_version_5+set}" = set; then
36691 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36692 +else
36693 +  cat >conftest.$ac_ext <<_ACEOF
36694 +/* confdefs.h.  */
36695 +_ACEOF
36696 +cat confdefs.h >>conftest.$ac_ext
36697 +cat >>conftest.$ac_ext <<_ACEOF
36698 +/* end confdefs.h.  */
36699 +#include <X11/Xlib.h>
36700 +int
36701 +main ()
36702 +{
36703 +#if XlibSpecificationRelease < 5
36704 +fail;
36705 +#endif
36706 +
36707 +  ;
36708 +  return 0;
36709 +}
36710 +_ACEOF
36711 +rm -f conftest.$ac_objext conftest$ac_exeext
36712 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36713 +  (eval $ac_link) 2>conftest.er1
36714 +  ac_status=$?
36715 +  grep -v '^ *+' conftest.er1 >conftest.err
36716 +  rm -f conftest.er1
36717 +  cat conftest.err >&5
36718 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 +  (exit $ac_status); } &&
36720 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36721 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36722 +  (eval $ac_try) 2>&5
36723 +  ac_status=$?
36724 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 +  (exit $ac_status); }; } &&
36726 +        { ac_try='test -s conftest$ac_exeext'
36727 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728 +  (eval $ac_try) 2>&5
36729 +  ac_status=$?
36730 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 +  (exit $ac_status); }; }; then
36732 +  emacs_cv_x11_version_5=yes
36733 +else
36734 +  echo "$as_me: failed program was:" >&5
36735 +sed 's/^/| /' conftest.$ac_ext >&5
36736 +
36737 +emacs_cv_x11_version_5=no
36738 +fi
36739 +rm -f conftest.err conftest.$ac_objext \
36740 +      conftest$ac_exeext conftest.$ac_ext
36741 +fi
36742 +
36743 +  if test $emacs_cv_x11_version_5 = yes; then
36744 +    echo "$as_me:$LINENO: result: 5 or newer" >&5
36745 +echo "${ECHO_T}5 or newer" >&6
36746 +    HAVE_X11R5=yes
36747 +    cat >>confdefs.h <<\_ACEOF
36748 +#define HAVE_X11R5 1
36749 +_ACEOF
36750 +
36751 +  else
36752 +    HAVE_X11R5=no
36753 +    echo "$as_me:$LINENO: result: before 5" >&5
36754 +echo "${ECHO_T}before 5" >&6
36755 +  fi
36756 +fi
36757 +
36758 +if test x"${USE_X_TOOLKIT}" = xmaybe; then
36759 +  if test x"${HAVE_X11R5}" = xyes; then
36760 +    echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
36761 +echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
36762 +    if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
36763 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36764 +else
36765 +  cat >conftest.$ac_ext <<_ACEOF
36766 +/* confdefs.h.  */
36767 +_ACEOF
36768 +cat confdefs.h >>conftest.$ac_ext
36769 +cat >>conftest.$ac_ext <<_ACEOF
36770 +/* end confdefs.h.  */
36771 +
36772 +#include <X11/Intrinsic.h>
36773 +#include <X11/Xaw/Simple.h>
36774 +int
36775 +main ()
36776 +{
36777 +
36778 +  ;
36779 +  return 0;
36780 +}
36781 +_ACEOF
36782 +rm -f conftest.$ac_objext conftest$ac_exeext
36783 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36784 +  (eval $ac_link) 2>conftest.er1
36785 +  ac_status=$?
36786 +  grep -v '^ *+' conftest.er1 >conftest.err
36787 +  rm -f conftest.er1
36788 +  cat conftest.err >&5
36789 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 +  (exit $ac_status); } &&
36791 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36792 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 +  (eval $ac_try) 2>&5
36794 +  ac_status=$?
36795 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 +  (exit $ac_status); }; } &&
36797 +        { ac_try='test -s conftest$ac_exeext'
36798 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 +  (eval $ac_try) 2>&5
36800 +  ac_status=$?
36801 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 +  (exit $ac_status); }; }; then
36803 +  emacs_cv_x11_version_5_with_xaw=yes
36804 +else
36805 +  echo "$as_me: failed program was:" >&5
36806 +sed 's/^/| /' conftest.$ac_ext >&5
36807 +
36808 +emacs_cv_x11_version_5_with_xaw=no
36809 +fi
36810 +rm -f conftest.err conftest.$ac_objext \
36811 +      conftest$ac_exeext conftest.$ac_ext
36812 +fi
36813 +
36814 +    if test $emacs_cv_x11_version_5_with_xaw = yes; then
36815 +      echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
36816 +echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
36817 +      USE_X_TOOLKIT=LUCID
36818 +    else
36819 +      echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
36820 +echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
36821 +      USE_X_TOOLKIT=none
36822 +    fi
36823 +  else
36824 +    USE_X_TOOLKIT=none
36825 +  fi
36826 +fi
36827 +
36828 +X_TOOLKIT_TYPE=$USE_X_TOOLKIT
36829 +
36830 +if test "${USE_X_TOOLKIT}" != "none"; then
36831 +  echo "$as_me:$LINENO: checking X11 toolkit version" >&5
36832 +echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
36833 +  if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
36834 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36835 +else
36836 +  cat >conftest.$ac_ext <<_ACEOF
36837 +/* confdefs.h.  */
36838 +_ACEOF
36839 +cat confdefs.h >>conftest.$ac_ext
36840 +cat >>conftest.$ac_ext <<_ACEOF
36841 +/* end confdefs.h.  */
36842 +#include <X11/Intrinsic.h>
36843 +int
36844 +main ()
36845 +{
36846 +#if XtSpecificationRelease < 6
36847 +fail;
36848 +#endif
36849 +
36850 +  ;
36851 +  return 0;
36852 +}
36853 +_ACEOF
36854 +rm -f conftest.$ac_objext conftest$ac_exeext
36855 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36856 +  (eval $ac_link) 2>conftest.er1
36857 +  ac_status=$?
36858 +  grep -v '^ *+' conftest.er1 >conftest.err
36859 +  rm -f conftest.er1
36860 +  cat conftest.err >&5
36861 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 +  (exit $ac_status); } &&
36863 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36864 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36865 +  (eval $ac_try) 2>&5
36866 +  ac_status=$?
36867 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 +  (exit $ac_status); }; } &&
36869 +        { ac_try='test -s conftest$ac_exeext'
36870 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871 +  (eval $ac_try) 2>&5
36872 +  ac_status=$?
36873 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874 +  (exit $ac_status); }; }; then
36875 +  emacs_cv_x11_toolkit_version_6=yes
36876 +else
36877 +  echo "$as_me: failed program was:" >&5
36878 +sed 's/^/| /' conftest.$ac_ext >&5
36879 +
36880 +emacs_cv_x11_toolkit_version_6=no
36881 +fi
36882 +rm -f conftest.err conftest.$ac_objext \
36883 +      conftest$ac_exeext conftest.$ac_ext
36884 +fi
36885 +
36886 +  HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
36887 +  if test $emacs_cv_x11_toolkit_version_6 = yes; then
36888 +    echo "$as_me:$LINENO: result: 6 or newer" >&5
36889 +echo "${ECHO_T}6 or newer" >&6
36890 +    cat >>confdefs.h <<\_ACEOF
36891 +#define HAVE_X11XTR6 1
36892 +_ACEOF
36893 +
36894 +  else
36895 +    echo "$as_me:$LINENO: result: before 6" >&5
36896 +echo "${ECHO_T}before 6" >&6
36897 +  fi
36898 +
36899 +  OLDLIBS="$LIBS"
36900 +  if test x$HAVE_X11XTR6 = xyes; then
36901 +    LIBS="-lXt -lSM -lICE $LIBS"
36902 +  else
36903 +    LIBS="-lXt $LIBS"
36904 +  fi
36905 +
36906 +echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
36907 +echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
36908 +if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
36909 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36910 +else
36911 +  ac_check_lib_save_LIBS=$LIBS
36912 +LIBS="-lXmu  $LIBS"
36913 +cat >conftest.$ac_ext <<_ACEOF
36914 +/* confdefs.h.  */
36915 +_ACEOF
36916 +cat confdefs.h >>conftest.$ac_ext
36917 +cat >>conftest.$ac_ext <<_ACEOF
36918 +/* end confdefs.h.  */
36919 +
36920 +/* Override any gcc2 internal prototype to avoid an error.  */
36921 +#ifdef __cplusplus
36922 +extern "C"
36923 +#endif
36924 +/* We use char because int might match the return type of a gcc2
36925 +   builtin and then its argument prototype would still apply.  */
36926 +char XmuConvertStandardSelection ();
36927 +int
36928 +main ()
36929 +{
36930 +XmuConvertStandardSelection ();
36931 +  ;
36932 +  return 0;
36933 +}
36934 +_ACEOF
36935 +rm -f conftest.$ac_objext conftest$ac_exeext
36936 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36937 +  (eval $ac_link) 2>conftest.er1
36938 +  ac_status=$?
36939 +  grep -v '^ *+' conftest.er1 >conftest.err
36940 +  rm -f conftest.er1
36941 +  cat conftest.err >&5
36942 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 +  (exit $ac_status); } &&
36944 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36945 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 +  (eval $ac_try) 2>&5
36947 +  ac_status=$?
36948 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 +  (exit $ac_status); }; } &&
36950 +        { ac_try='test -s conftest$ac_exeext'
36951 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 +  (eval $ac_try) 2>&5
36953 +  ac_status=$?
36954 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 +  (exit $ac_status); }; }; then
36956 +  ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
36957 +else
36958 +  echo "$as_me: failed program was:" >&5
36959 +sed 's/^/| /' conftest.$ac_ext >&5
36960 +
36961 +ac_cv_lib_Xmu_XmuConvertStandardSelection=no
36962 +fi
36963 +rm -f conftest.err conftest.$ac_objext \
36964 +      conftest$ac_exeext conftest.$ac_ext
36965 +LIBS=$ac_check_lib_save_LIBS
36966 +fi
36967 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
36968 +echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
36969 +if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
36970 +  cat >>confdefs.h <<_ACEOF
36971 +#define HAVE_LIBXMU 1
36972 +_ACEOF
36973 +
36974 +  LIBS="-lXmu $LIBS"
36975 +
36976 +fi
36977 +
36978 +  test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
36979 +fi
36980 +
36981 +# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
36982 +if test "${HAVE_X11}" = "yes"; then
36983 +  if test "${USE_X_TOOLKIT}" != "none"; then
36984 +
36985 +echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
36986 +echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
36987 +if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
36988 +  echo $ECHO_N "(cached) $ECHO_C" >&6
36989 +else
36990 +  ac_check_lib_save_LIBS=$LIBS
36991 +LIBS="-lXext  $LIBS"
36992 +cat >conftest.$ac_ext <<_ACEOF
36993 +/* confdefs.h.  */
36994 +_ACEOF
36995 +cat confdefs.h >>conftest.$ac_ext
36996 +cat >>conftest.$ac_ext <<_ACEOF
36997 +/* end confdefs.h.  */
36998 +
36999 +/* Override any gcc2 internal prototype to avoid an error.  */
37000 +#ifdef __cplusplus
37001 +extern "C"
37002 +#endif
37003 +/* We use char because int might match the return type of a gcc2
37004 +   builtin and then its argument prototype would still apply.  */
37005 +char XShapeQueryExtension ();
37006 +int
37007 +main ()
37008 +{
37009 +XShapeQueryExtension ();
37010 +  ;
37011 +  return 0;
37012 +}
37013 +_ACEOF
37014 +rm -f conftest.$ac_objext conftest$ac_exeext
37015 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37016 +  (eval $ac_link) 2>conftest.er1
37017 +  ac_status=$?
37018 +  grep -v '^ *+' conftest.er1 >conftest.err
37019 +  rm -f conftest.er1
37020 +  cat conftest.err >&5
37021 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 +  (exit $ac_status); } &&
37023 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37024 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37025 +  (eval $ac_try) 2>&5
37026 +  ac_status=$?
37027 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 +  (exit $ac_status); }; } &&
37029 +        { ac_try='test -s conftest$ac_exeext'
37030 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37031 +  (eval $ac_try) 2>&5
37032 +  ac_status=$?
37033 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 +  (exit $ac_status); }; }; then
37035 +  ac_cv_lib_Xext_XShapeQueryExtension=yes
37036 +else
37037 +  echo "$as_me: failed program was:" >&5
37038 +sed 's/^/| /' conftest.$ac_ext >&5
37039 +
37040 +ac_cv_lib_Xext_XShapeQueryExtension=no
37041 +fi
37042 +rm -f conftest.err conftest.$ac_objext \
37043 +      conftest$ac_exeext conftest.$ac_ext
37044 +LIBS=$ac_check_lib_save_LIBS
37045 +fi
37046 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
37047 +echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
37048 +if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
37049 +  cat >>confdefs.h <<_ACEOF
37050 +#define HAVE_LIBXEXT 1
37051 +_ACEOF
37052 +
37053 +  LIBS="-lXext $LIBS"
37054 +
37055 +fi
37056 +
37057 +  fi
37058 +fi
37059 +
37060 +if test "${USE_X_TOOLKIT}" = "MOTIF"; then
37061 +  echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
37062 +echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
37063 +if test "${emacs_cv_motif_version_2_1+set}" = set; then
37064 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37065 +else
37066 +  cat >conftest.$ac_ext <<_ACEOF
37067 +/* confdefs.h.  */
37068 +_ACEOF
37069 +cat confdefs.h >>conftest.$ac_ext
37070 +cat >>conftest.$ac_ext <<_ACEOF
37071 +/* end confdefs.h.  */
37072 +#include <Xm/Xm.h>
37073 +int
37074 +main ()
37075 +{
37076 +#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
37077 +int x = 5;
37078 +#else
37079 +Motif version prior to 2.1.
37080 +#endif
37081 +  ;
37082 +  return 0;
37083 +}
37084 +_ACEOF
37085 +rm -f conftest.$ac_objext
37086 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37087 +  (eval $ac_compile) 2>conftest.er1
37088 +  ac_status=$?
37089 +  grep -v '^ *+' conftest.er1 >conftest.err
37090 +  rm -f conftest.er1
37091 +  cat conftest.err >&5
37092 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 +  (exit $ac_status); } &&
37094 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37095 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37096 +  (eval $ac_try) 2>&5
37097 +  ac_status=$?
37098 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 +  (exit $ac_status); }; } &&
37100 +        { ac_try='test -s conftest.$ac_objext'
37101 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 +  (eval $ac_try) 2>&5
37103 +  ac_status=$?
37104 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 +  (exit $ac_status); }; }; then
37106 +  emacs_cv_motif_version_2_1=yes
37107 +else
37108 +  echo "$as_me: failed program was:" >&5
37109 +sed 's/^/| /' conftest.$ac_ext >&5
37110 +
37111 +emacs_cv_motif_version_2_1=no
37112 +fi
37113 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37114 +fi
37115 +echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
37116 +echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
37117 +  HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
37118 +  if test $emacs_cv_motif_version_2_1 = yes; then
37119 +    HAVE_LIBXP=no
37120 +    cat >>confdefs.h <<\_ACEOF
37121 +#define HAVE_MOTIF_2_1 1
37122 +_ACEOF
37123 +
37124 +    echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
37125 +echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
37126 +if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
37127 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37128 +else
37129 +  ac_check_lib_save_LIBS=$LIBS
37130 +LIBS="-lXp  $LIBS"
37131 +cat >conftest.$ac_ext <<_ACEOF
37132 +/* confdefs.h.  */
37133 +_ACEOF
37134 +cat confdefs.h >>conftest.$ac_ext
37135 +cat >>conftest.$ac_ext <<_ACEOF
37136 +/* end confdefs.h.  */
37137 +
37138 +/* Override any gcc2 internal prototype to avoid an error.  */
37139 +#ifdef __cplusplus
37140 +extern "C"
37141 +#endif
37142 +/* We use char because int might match the return type of a gcc2
37143 +   builtin and then its argument prototype would still apply.  */
37144 +char XpCreateContext ();
37145 +int
37146 +main ()
37147 +{
37148 +XpCreateContext ();
37149 +  ;
37150 +  return 0;
37151 +}
37152 +_ACEOF
37153 +rm -f conftest.$ac_objext conftest$ac_exeext
37154 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37155 +  (eval $ac_link) 2>conftest.er1
37156 +  ac_status=$?
37157 +  grep -v '^ *+' conftest.er1 >conftest.err
37158 +  rm -f conftest.er1
37159 +  cat conftest.err >&5
37160 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 +  (exit $ac_status); } &&
37162 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37163 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 +  (eval $ac_try) 2>&5
37165 +  ac_status=$?
37166 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 +  (exit $ac_status); }; } &&
37168 +        { ac_try='test -s conftest$ac_exeext'
37169 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 +  (eval $ac_try) 2>&5
37171 +  ac_status=$?
37172 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 +  (exit $ac_status); }; }; then
37174 +  ac_cv_lib_Xp_XpCreateContext=yes
37175 +else
37176 +  echo "$as_me: failed program was:" >&5
37177 +sed 's/^/| /' conftest.$ac_ext >&5
37178 +
37179 +ac_cv_lib_Xp_XpCreateContext=no
37180 +fi
37181 +rm -f conftest.err conftest.$ac_objext \
37182 +      conftest$ac_exeext conftest.$ac_ext
37183 +LIBS=$ac_check_lib_save_LIBS
37184 +fi
37185 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
37186 +echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
37187 +if test $ac_cv_lib_Xp_XpCreateContext = yes; then
37188 +  HAVE_LIBXP=yes
37189 +fi
37190 +
37191 +    if test ${HAVE_LIBXP} = yes; then
37192 +      cat >>confdefs.h <<\_ACEOF
37193 +#define HAVE_LIBXP 1
37194 +_ACEOF
37195 +
37196 +    fi
37197 +  fi
37198 +fi
37199 +
37200 +### Is -lXaw3d available?
37201 +HAVE_XAW3D=no
37202 +if test "${HAVE_X11}" = "yes"; then
37203 +  if test "${USE_X_TOOLKIT}" != "none"; then
37204 +    if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37205 +  echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
37206 +echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
37207 +if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37208 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37209 +fi
37210 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
37211 +echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
37212 +else
37213 +  # Is the header compilable?
37214 +echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
37215 +echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
37216 +cat >conftest.$ac_ext <<_ACEOF
37217 +/* confdefs.h.  */
37218 +_ACEOF
37219 +cat confdefs.h >>conftest.$ac_ext
37220 +cat >>conftest.$ac_ext <<_ACEOF
37221 +/* end confdefs.h.  */
37222 +$ac_includes_default
37223 +#include <X11/Xaw3d/Scrollbar.h>
37224 +_ACEOF
37225 +rm -f conftest.$ac_objext
37226 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37227 +  (eval $ac_compile) 2>conftest.er1
37228 +  ac_status=$?
37229 +  grep -v '^ *+' conftest.er1 >conftest.err
37230 +  rm -f conftest.er1
37231 +  cat conftest.err >&5
37232 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 +  (exit $ac_status); } &&
37234 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37235 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37236 +  (eval $ac_try) 2>&5
37237 +  ac_status=$?
37238 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239 +  (exit $ac_status); }; } &&
37240 +        { ac_try='test -s conftest.$ac_objext'
37241 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37242 +  (eval $ac_try) 2>&5
37243 +  ac_status=$?
37244 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 +  (exit $ac_status); }; }; then
37246 +  ac_header_compiler=yes
37247 +else
37248 +  echo "$as_me: failed program was:" >&5
37249 +sed 's/^/| /' conftest.$ac_ext >&5
37250 +
37251 +ac_header_compiler=no
37252 +fi
37253 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37254 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37255 +echo "${ECHO_T}$ac_header_compiler" >&6
37256 +
37257 +# Is the header present?
37258 +echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
37259 +echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
37260 +cat >conftest.$ac_ext <<_ACEOF
37261 +/* confdefs.h.  */
37262 +_ACEOF
37263 +cat confdefs.h >>conftest.$ac_ext
37264 +cat >>conftest.$ac_ext <<_ACEOF
37265 +/* end confdefs.h.  */
37266 +#include <X11/Xaw3d/Scrollbar.h>
37267 +_ACEOF
37268 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37269 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37270 +  ac_status=$?
37271 +  grep -v '^ *+' conftest.er1 >conftest.err
37272 +  rm -f conftest.er1
37273 +  cat conftest.err >&5
37274 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 +  (exit $ac_status); } >/dev/null; then
37276 +  if test -s conftest.err; then
37277 +    ac_cpp_err=$ac_c_preproc_warn_flag
37278 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37279 +  else
37280 +    ac_cpp_err=
37281 +  fi
37282 +else
37283 +  ac_cpp_err=yes
37284 +fi
37285 +if test -z "$ac_cpp_err"; then
37286 +  ac_header_preproc=yes
37287 +else
37288 +  echo "$as_me: failed program was:" >&5
37289 +sed 's/^/| /' conftest.$ac_ext >&5
37290 +
37291 +  ac_header_preproc=no
37292 +fi
37293 +rm -f conftest.err conftest.$ac_ext
37294 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37295 +echo "${ECHO_T}$ac_header_preproc" >&6
37296 +
37297 +# So?  What about this header?
37298 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37299 +  yes:no: )
37300 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
37301 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37302 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
37303 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
37304 +    ac_header_preproc=yes
37305 +    ;;
37306 +  no:yes:* )
37307 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
37308 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
37309 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&5
37310 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&2;}
37311 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
37312 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
37313 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&5
37314 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37315 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
37316 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
37317 +    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
37318 +echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
37319 +    (
37320 +      cat <<\_ASBOX
37321 +## ------------------------------------------ ##
37322 +## Report this to the AC_PACKAGE_NAME lists.  ##
37323 +## ------------------------------------------ ##
37324 +_ASBOX
37325 +    ) |
37326 +      sed "s/^/$as_me: WARNING:     /" >&2
37327 +    ;;
37328 +esac
37329 +echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
37330 +echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
37331 +if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
37332 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37333 +else
37334 +  ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
37335 +fi
37336 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
37337 +echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
37338 +
37339 +fi
37340 +if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
37341 +  echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
37342 +echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
37343 +if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
37344 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37345 +else
37346 +  ac_check_lib_save_LIBS=$LIBS
37347 +LIBS="-lXaw3d  $LIBS"
37348 +cat >conftest.$ac_ext <<_ACEOF
37349 +/* confdefs.h.  */
37350 +_ACEOF
37351 +cat confdefs.h >>conftest.$ac_ext
37352 +cat >>conftest.$ac_ext <<_ACEOF
37353 +/* end confdefs.h.  */
37354 +
37355 +/* Override any gcc2 internal prototype to avoid an error.  */
37356 +#ifdef __cplusplus
37357 +extern "C"
37358 +#endif
37359 +/* We use char because int might match the return type of a gcc2
37360 +   builtin and then its argument prototype would still apply.  */
37361 +char XawScrollbarSetThumb ();
37362 +int
37363 +main ()
37364 +{
37365 +XawScrollbarSetThumb ();
37366 +  ;
37367 +  return 0;
37368 +}
37369 +_ACEOF
37370 +rm -f conftest.$ac_objext conftest$ac_exeext
37371 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37372 +  (eval $ac_link) 2>conftest.er1
37373 +  ac_status=$?
37374 +  grep -v '^ *+' conftest.er1 >conftest.err
37375 +  rm -f conftest.er1
37376 +  cat conftest.err >&5
37377 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378 +  (exit $ac_status); } &&
37379 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37380 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37381 +  (eval $ac_try) 2>&5
37382 +  ac_status=$?
37383 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384 +  (exit $ac_status); }; } &&
37385 +        { ac_try='test -s conftest$ac_exeext'
37386 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37387 +  (eval $ac_try) 2>&5
37388 +  ac_status=$?
37389 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 +  (exit $ac_status); }; }; then
37391 +  ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
37392 +else
37393 +  echo "$as_me: failed program was:" >&5
37394 +sed 's/^/| /' conftest.$ac_ext >&5
37395 +
37396 +ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
37397 +fi
37398 +rm -f conftest.err conftest.$ac_objext \
37399 +      conftest$ac_exeext conftest.$ac_ext
37400 +LIBS=$ac_check_lib_save_LIBS
37401 +fi
37402 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
37403 +echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
37404 +if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
37405 +  HAVE_XAW3D=yes
37406 +fi
37407 +
37408 +fi
37409 +
37410 +
37411 +    if test "${HAVE_XAW3D}" = "yes"; then
37412 +       cat >>confdefs.h <<\_ACEOF
37413 +#define HAVE_XAW3D 1
37414 +_ACEOF
37415 +
37416 +    fi
37417 +  fi
37418 +fi
37419 +
37420 +
37421 +USE_TOOLKIT_SCROLL_BARS=no
37422 +if test "${with_toolkit_scroll_bars}" != "no"; then
37423 +  if test "${USE_X_TOOLKIT}" != "none"; then
37424 +    if test "${USE_X_TOOLKIT}" = "MOTIF"; then
37425 +      cat >>confdefs.h <<\_ACEOF
37426 +#define USE_TOOLKIT_SCROLL_BARS 1
37427 +_ACEOF
37428 +
37429 +      HAVE_XAW3D=no
37430 +      USE_TOOLKIT_SCROLL_BARS=yes
37431 +    elif test "${HAVE_XAW3D}" = "yes"; then
37432 +      cat >>confdefs.h <<\_ACEOF
37433 +#define USE_TOOLKIT_SCROLL_BARS 1
37434 +_ACEOF
37435 +
37436 +      USE_TOOLKIT_SCROLL_BARS=yes
37437 +    fi
37438 +  fi
37439 +fi
37440 +
37441 +
37442 +if test "${with_xim}" != "no"; then
37443 +  cat >>confdefs.h <<\_ACEOF
37444 +#define USE_XIM 1
37445 +_ACEOF
37446 +
37447 +fi
37448 +
37449 +### Use -lXpm if available, unless `--with-xpm=no'.
37450 +HAVE_XPM=no
37451 +if test "${HAVE_X11}" = "yes"; then
37452 +  if test "${with_xpm}" != "no"; then
37453 +    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37454 +  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37455 +echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
37456 +if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37457 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37458 +fi
37459 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37460 +echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
37461 +else
37462 +  # Is the header compilable?
37463 +echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
37464 +echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
37465 +cat >conftest.$ac_ext <<_ACEOF
37466 +/* confdefs.h.  */
37467 +_ACEOF
37468 +cat confdefs.h >>conftest.$ac_ext
37469 +cat >>conftest.$ac_ext <<_ACEOF
37470 +/* end confdefs.h.  */
37471 +$ac_includes_default
37472 +#include <X11/xpm.h>
37473 +_ACEOF
37474 +rm -f conftest.$ac_objext
37475 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37476 +  (eval $ac_compile) 2>conftest.er1
37477 +  ac_status=$?
37478 +  grep -v '^ *+' conftest.er1 >conftest.err
37479 +  rm -f conftest.er1
37480 +  cat conftest.err >&5
37481 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 +  (exit $ac_status); } &&
37483 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37484 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 +  (eval $ac_try) 2>&5
37486 +  ac_status=$?
37487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 +  (exit $ac_status); }; } &&
37489 +        { ac_try='test -s conftest.$ac_objext'
37490 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491 +  (eval $ac_try) 2>&5
37492 +  ac_status=$?
37493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 +  (exit $ac_status); }; }; then
37495 +  ac_header_compiler=yes
37496 +else
37497 +  echo "$as_me: failed program was:" >&5
37498 +sed 's/^/| /' conftest.$ac_ext >&5
37499 +
37500 +ac_header_compiler=no
37501 +fi
37502 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37503 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37504 +echo "${ECHO_T}$ac_header_compiler" >&6
37505 +
37506 +# Is the header present?
37507 +echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
37508 +echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
37509 +cat >conftest.$ac_ext <<_ACEOF
37510 +/* confdefs.h.  */
37511 +_ACEOF
37512 +cat confdefs.h >>conftest.$ac_ext
37513 +cat >>conftest.$ac_ext <<_ACEOF
37514 +/* end confdefs.h.  */
37515 +#include <X11/xpm.h>
37516 +_ACEOF
37517 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37518 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37519 +  ac_status=$?
37520 +  grep -v '^ *+' conftest.er1 >conftest.err
37521 +  rm -f conftest.er1
37522 +  cat conftest.err >&5
37523 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 +  (exit $ac_status); } >/dev/null; then
37525 +  if test -s conftest.err; then
37526 +    ac_cpp_err=$ac_c_preproc_warn_flag
37527 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37528 +  else
37529 +    ac_cpp_err=
37530 +  fi
37531 +else
37532 +  ac_cpp_err=yes
37533 +fi
37534 +if test -z "$ac_cpp_err"; then
37535 +  ac_header_preproc=yes
37536 +else
37537 +  echo "$as_me: failed program was:" >&5
37538 +sed 's/^/| /' conftest.$ac_ext >&5
37539 +
37540 +  ac_header_preproc=no
37541 +fi
37542 +rm -f conftest.err conftest.$ac_ext
37543 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37544 +echo "${ECHO_T}$ac_header_preproc" >&6
37545 +
37546 +# So?  What about this header?
37547 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37548 +  yes:no: )
37549 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
37550 +echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37551 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
37552 +echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
37553 +    ac_header_preproc=yes
37554 +    ;;
37555 +  no:yes:* )
37556 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
37557 +echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
37558 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
37559 +echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
37560 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
37561 +echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
37562 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
37563 +echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37564 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
37565 +echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
37566 +    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
37567 +echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
37568 +    (
37569 +      cat <<\_ASBOX
37570 +## ------------------------------------------ ##
37571 +## Report this to the AC_PACKAGE_NAME lists.  ##
37572 +## ------------------------------------------ ##
37573 +_ASBOX
37574 +    ) |
37575 +      sed "s/^/$as_me: WARNING:     /" >&2
37576 +    ;;
37577 +esac
37578 +echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37579 +echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
37580 +if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37581 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37582 +else
37583 +  ac_cv_header_X11_xpm_h=$ac_header_preproc
37584 +fi
37585 +echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37586 +echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
37587 +
37588 +fi
37589 +if test $ac_cv_header_X11_xpm_h = yes; then
37590 +  echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
37591 +echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
37592 +if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
37593 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37594 +else
37595 +  ac_check_lib_save_LIBS=$LIBS
37596 +LIBS="-lXpm -lX11 $LIBS"
37597 +cat >conftest.$ac_ext <<_ACEOF
37598 +/* confdefs.h.  */
37599 +_ACEOF
37600 +cat confdefs.h >>conftest.$ac_ext
37601 +cat >>conftest.$ac_ext <<_ACEOF
37602 +/* end confdefs.h.  */
37603 +
37604 +/* Override any gcc2 internal prototype to avoid an error.  */
37605 +#ifdef __cplusplus
37606 +extern "C"
37607 +#endif
37608 +/* We use char because int might match the return type of a gcc2
37609 +   builtin and then its argument prototype would still apply.  */
37610 +char XpmReadFileToPixmap ();
37611 +int
37612 +main ()
37613 +{
37614 +XpmReadFileToPixmap ();
37615 +  ;
37616 +  return 0;
37617 +}
37618 +_ACEOF
37619 +rm -f conftest.$ac_objext conftest$ac_exeext
37620 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37621 +  (eval $ac_link) 2>conftest.er1
37622 +  ac_status=$?
37623 +  grep -v '^ *+' conftest.er1 >conftest.err
37624 +  rm -f conftest.er1
37625 +  cat conftest.err >&5
37626 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 +  (exit $ac_status); } &&
37628 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37629 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630 +  (eval $ac_try) 2>&5
37631 +  ac_status=$?
37632 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633 +  (exit $ac_status); }; } &&
37634 +        { ac_try='test -s conftest$ac_exeext'
37635 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 +  (eval $ac_try) 2>&5
37637 +  ac_status=$?
37638 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 +  (exit $ac_status); }; }; then
37640 +  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
37641 +else
37642 +  echo "$as_me: failed program was:" >&5
37643 +sed 's/^/| /' conftest.$ac_ext >&5
37644 +
37645 +ac_cv_lib_Xpm_XpmReadFileToPixmap=no
37646 +fi
37647 +rm -f conftest.err conftest.$ac_objext \
37648 +      conftest$ac_exeext conftest.$ac_ext
37649 +LIBS=$ac_check_lib_save_LIBS
37650 +fi
37651 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
37652 +echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
37653 +if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
37654 +  HAVE_XPM=yes
37655 +fi
37656 +
37657 +fi
37658 +
37659 +
37660 +    if test "${HAVE_XPM}" = "yes"; then
37661 +      echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
37662 +echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
37663 +      cat >conftest.$ac_ext <<_ACEOF
37664 +/* confdefs.h.  */
37665 +_ACEOF
37666 +cat confdefs.h >>conftest.$ac_ext
37667 +cat >>conftest.$ac_ext <<_ACEOF
37668 +/* end confdefs.h.  */
37669 +#include "X11/xpm.h"
37670 +#ifndef XpmReturnAllocPixels
37671 +no_return_alloc_pixels
37672 +#endif
37673 +
37674 +_ACEOF
37675 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37676 +  $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
37677 +  HAVE_XPM=no
37678 +else
37679 +  HAVE_XPM=yes
37680 +fi
37681 +rm -f conftest*
37682 +
37683 +
37684 +      if test "${HAVE_XPM}" = "yes"; then
37685 +       echo "$as_me:$LINENO: result: yes" >&5
37686 +echo "${ECHO_T}yes" >&6
37687 +      else
37688 +       echo "$as_me:$LINENO: result: no" >&5
37689 +echo "${ECHO_T}no" >&6
37690 +      fi
37691 +    fi
37692 +  fi
37693 +
37694 +  if test "${HAVE_XPM}" = "yes"; then
37695 +    cat >>confdefs.h <<\_ACEOF
37696 +#define HAVE_XPM 1
37697 +_ACEOF
37698 +
37699 +  fi
37700 +fi
37701 +
37702 +### Use -ljpeg if available, unless `--with-jpeg=no'.
37703 +HAVE_JPEG=no
37704 +if test "${HAVE_X11}" = "yes"; then
37705 +  if test "${with_jpeg}" != "no"; then
37706 +            if test "${ac_cv_header_jerror_h+set}" = set; then
37707 +  echo "$as_me:$LINENO: checking for jerror.h" >&5
37708 +echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
37709 +if test "${ac_cv_header_jerror_h+set}" = set; then
37710 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37711 +fi
37712 +echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
37713 +echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
37714 +else
37715 +  # Is the header compilable?
37716 +echo "$as_me:$LINENO: checking jerror.h usability" >&5
37717 +echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
37718 +cat >conftest.$ac_ext <<_ACEOF
37719 +/* confdefs.h.  */
37720 +_ACEOF
37721 +cat confdefs.h >>conftest.$ac_ext
37722 +cat >>conftest.$ac_ext <<_ACEOF
37723 +/* end confdefs.h.  */
37724 +$ac_includes_default
37725 +#include <jerror.h>
37726 +_ACEOF
37727 +rm -f conftest.$ac_objext
37728 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37729 +  (eval $ac_compile) 2>conftest.er1
37730 +  ac_status=$?
37731 +  grep -v '^ *+' conftest.er1 >conftest.err
37732 +  rm -f conftest.er1
37733 +  cat conftest.err >&5
37734 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 +  (exit $ac_status); } &&
37736 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37737 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 +  (eval $ac_try) 2>&5
37739 +  ac_status=$?
37740 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 +  (exit $ac_status); }; } &&
37742 +        { ac_try='test -s conftest.$ac_objext'
37743 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 +  (eval $ac_try) 2>&5
37745 +  ac_status=$?
37746 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 +  (exit $ac_status); }; }; then
37748 +  ac_header_compiler=yes
37749 +else
37750 +  echo "$as_me: failed program was:" >&5
37751 +sed 's/^/| /' conftest.$ac_ext >&5
37752 +
37753 +ac_header_compiler=no
37754 +fi
37755 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37756 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37757 +echo "${ECHO_T}$ac_header_compiler" >&6
37758 +
37759 +# Is the header present?
37760 +echo "$as_me:$LINENO: checking jerror.h presence" >&5
37761 +echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
37762 +cat >conftest.$ac_ext <<_ACEOF
37763 +/* confdefs.h.  */
37764 +_ACEOF
37765 +cat confdefs.h >>conftest.$ac_ext
37766 +cat >>conftest.$ac_ext <<_ACEOF
37767 +/* end confdefs.h.  */
37768 +#include <jerror.h>
37769 +_ACEOF
37770 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37771 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37772 +  ac_status=$?
37773 +  grep -v '^ *+' conftest.er1 >conftest.err
37774 +  rm -f conftest.er1
37775 +  cat conftest.err >&5
37776 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 +  (exit $ac_status); } >/dev/null; then
37778 +  if test -s conftest.err; then
37779 +    ac_cpp_err=$ac_c_preproc_warn_flag
37780 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37781 +  else
37782 +    ac_cpp_err=
37783 +  fi
37784 +else
37785 +  ac_cpp_err=yes
37786 +fi
37787 +if test -z "$ac_cpp_err"; then
37788 +  ac_header_preproc=yes
37789 +else
37790 +  echo "$as_me: failed program was:" >&5
37791 +sed 's/^/| /' conftest.$ac_ext >&5
37792 +
37793 +  ac_header_preproc=no
37794 +fi
37795 +rm -f conftest.err conftest.$ac_ext
37796 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37797 +echo "${ECHO_T}$ac_header_preproc" >&6
37798 +
37799 +# So?  What about this header?
37800 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37801 +  yes:no: )
37802 +    { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
37803 +echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37804 +    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
37805 +echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
37806 +    ac_header_preproc=yes
37807 +    ;;
37808 +  no:yes:* )
37809 +    { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
37810 +echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
37811 +    { echo "$as_me:$LINENO: WARNING: jerror.h:     check for missing prerequisite headers?" >&5
37812 +echo "$as_me: WARNING: jerror.h:     check for missing prerequisite headers?" >&2;}
37813 +    { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
37814 +echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
37815 +    { echo "$as_me:$LINENO: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&5
37816 +echo "$as_me: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37817 +    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
37818 +echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
37819 +    { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
37820 +echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
37821 +    (
37822 +      cat <<\_ASBOX
37823 +## ------------------------------------------ ##
37824 +## Report this to the AC_PACKAGE_NAME lists.  ##
37825 +## ------------------------------------------ ##
37826 +_ASBOX
37827 +    ) |
37828 +      sed "s/^/$as_me: WARNING:     /" >&2
37829 +    ;;
37830 +esac
37831 +echo "$as_me:$LINENO: checking for jerror.h" >&5
37832 +echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
37833 +if test "${ac_cv_header_jerror_h+set}" = set; then
37834 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37835 +else
37836 +  ac_cv_header_jerror_h=$ac_header_preproc
37837 +fi
37838 +echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
37839 +echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
37840 +
37841 +fi
37842 +if test $ac_cv_header_jerror_h = yes; then
37843 +  echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
37844 +echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
37845 +if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
37846 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37847 +else
37848 +  ac_check_lib_save_LIBS=$LIBS
37849 +LIBS="-ljpeg  $LIBS"
37850 +cat >conftest.$ac_ext <<_ACEOF
37851 +/* confdefs.h.  */
37852 +_ACEOF
37853 +cat confdefs.h >>conftest.$ac_ext
37854 +cat >>conftest.$ac_ext <<_ACEOF
37855 +/* end confdefs.h.  */
37856 +
37857 +/* Override any gcc2 internal prototype to avoid an error.  */
37858 +#ifdef __cplusplus
37859 +extern "C"
37860 +#endif
37861 +/* We use char because int might match the return type of a gcc2
37862 +   builtin and then its argument prototype would still apply.  */
37863 +char jpeg_destroy_compress ();
37864 +int
37865 +main ()
37866 +{
37867 +jpeg_destroy_compress ();
37868 +  ;
37869 +  return 0;
37870 +}
37871 +_ACEOF
37872 +rm -f conftest.$ac_objext conftest$ac_exeext
37873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37874 +  (eval $ac_link) 2>conftest.er1
37875 +  ac_status=$?
37876 +  grep -v '^ *+' conftest.er1 >conftest.err
37877 +  rm -f conftest.er1
37878 +  cat conftest.err >&5
37879 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 +  (exit $ac_status); } &&
37881 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37882 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 +  (eval $ac_try) 2>&5
37884 +  ac_status=$?
37885 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 +  (exit $ac_status); }; } &&
37887 +        { ac_try='test -s conftest$ac_exeext'
37888 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889 +  (eval $ac_try) 2>&5
37890 +  ac_status=$?
37891 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892 +  (exit $ac_status); }; }; then
37893 +  ac_cv_lib_jpeg_jpeg_destroy_compress=yes
37894 +else
37895 +  echo "$as_me: failed program was:" >&5
37896 +sed 's/^/| /' conftest.$ac_ext >&5
37897 +
37898 +ac_cv_lib_jpeg_jpeg_destroy_compress=no
37899 +fi
37900 +rm -f conftest.err conftest.$ac_objext \
37901 +      conftest$ac_exeext conftest.$ac_ext
37902 +LIBS=$ac_check_lib_save_LIBS
37903 +fi
37904 +echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
37905 +echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
37906 +if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
37907 +  HAVE_JPEG=yes
37908 +fi
37909 +
37910 +fi
37911 +
37912 +
37913 +  fi
37914 +
37915 +  if test "${HAVE_JPEG}" = "yes"; then
37916 +    cat >>confdefs.h <<\_ACEOF
37917 +#define HAVE_JPEG 1
37918 +_ACEOF
37919 +
37920 +    cat >conftest.$ac_ext <<_ACEOF
37921 +/* confdefs.h.  */
37922 +_ACEOF
37923 +cat confdefs.h >>conftest.$ac_ext
37924 +cat >>conftest.$ac_ext <<_ACEOF
37925 +/* end confdefs.h.  */
37926 +        #include <jpeglib.h>
37927 +        version=JPEG_LIB_VERSION
37928 +
37929 +_ACEOF
37930 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37931 +  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
37932 +  cat >>confdefs.h <<\_ACEOF
37933 +#define HAVE_JPEG 1
37934 +_ACEOF
37935 +
37936 +else
37937 +  { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
37938 +echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
37939 +        HAVE_JPEG=no
37940 +fi
37941 +rm -f conftest*
37942 +
37943 +  fi
37944 +fi
37945 +
37946 +### Use -lpng if available, unless `--with-png=no'.
37947 +HAVE_PNG=no
37948 +if test "${HAVE_X11}" = "yes"; then
37949 +  if test "${with_png}" != "no"; then
37950 +    if test "${ac_cv_header_png_h+set}" = set; then
37951 +  echo "$as_me:$LINENO: checking for png.h" >&5
37952 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
37953 +if test "${ac_cv_header_png_h+set}" = set; then
37954 +  echo $ECHO_N "(cached) $ECHO_C" >&6
37955 +fi
37956 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
37957 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
37958 +else
37959 +  # Is the header compilable?
37960 +echo "$as_me:$LINENO: checking png.h usability" >&5
37961 +echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
37962 +cat >conftest.$ac_ext <<_ACEOF
37963 +/* confdefs.h.  */
37964 +_ACEOF
37965 +cat confdefs.h >>conftest.$ac_ext
37966 +cat >>conftest.$ac_ext <<_ACEOF
37967 +/* end confdefs.h.  */
37968 +$ac_includes_default
37969 +#include <png.h>
37970 +_ACEOF
37971 +rm -f conftest.$ac_objext
37972 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37973 +  (eval $ac_compile) 2>conftest.er1
37974 +  ac_status=$?
37975 +  grep -v '^ *+' conftest.er1 >conftest.err
37976 +  rm -f conftest.er1
37977 +  cat conftest.err >&5
37978 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 +  (exit $ac_status); } &&
37980 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37981 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982 +  (eval $ac_try) 2>&5
37983 +  ac_status=$?
37984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 +  (exit $ac_status); }; } &&
37986 +        { ac_try='test -s conftest.$ac_objext'
37987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 +  (eval $ac_try) 2>&5
37989 +  ac_status=$?
37990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 +  (exit $ac_status); }; }; then
37992 +  ac_header_compiler=yes
37993 +else
37994 +  echo "$as_me: failed program was:" >&5
37995 +sed 's/^/| /' conftest.$ac_ext >&5
37996 +
37997 +ac_header_compiler=no
37998 +fi
37999 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38000 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38001 +echo "${ECHO_T}$ac_header_compiler" >&6
38002 +
38003 +# Is the header present?
38004 +echo "$as_me:$LINENO: checking png.h presence" >&5
38005 +echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
38006 +cat >conftest.$ac_ext <<_ACEOF
38007 +/* confdefs.h.  */
38008 +_ACEOF
38009 +cat confdefs.h >>conftest.$ac_ext
38010 +cat >>conftest.$ac_ext <<_ACEOF
38011 +/* end confdefs.h.  */
38012 +#include <png.h>
38013 +_ACEOF
38014 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38015 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38016 +  ac_status=$?
38017 +  grep -v '^ *+' conftest.er1 >conftest.err
38018 +  rm -f conftest.er1
38019 +  cat conftest.err >&5
38020 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021 +  (exit $ac_status); } >/dev/null; then
38022 +  if test -s conftest.err; then
38023 +    ac_cpp_err=$ac_c_preproc_warn_flag
38024 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38025 +  else
38026 +    ac_cpp_err=
38027 +  fi
38028 +else
38029 +  ac_cpp_err=yes
38030 +fi
38031 +if test -z "$ac_cpp_err"; then
38032 +  ac_header_preproc=yes
38033 +else
38034 +  echo "$as_me: failed program was:" >&5
38035 +sed 's/^/| /' conftest.$ac_ext >&5
38036 +
38037 +  ac_header_preproc=no
38038 +fi
38039 +rm -f conftest.err conftest.$ac_ext
38040 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38041 +echo "${ECHO_T}$ac_header_preproc" >&6
38042 +
38043 +# So?  What about this header?
38044 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38045 +  yes:no: )
38046 +    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
38047 +echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38048 +    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
38049 +echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
38050 +    ac_header_preproc=yes
38051 +    ;;
38052 +  no:yes:* )
38053 +    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
38054 +echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
38055 +    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
38056 +echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
38057 +    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
38058 +echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
38059 +    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
38060 +echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38061 +    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
38062 +echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
38063 +    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
38064 +echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
38065 +    (
38066 +      cat <<\_ASBOX
38067 +## ------------------------------------------ ##
38068 +## Report this to the AC_PACKAGE_NAME lists.  ##
38069 +## ------------------------------------------ ##
38070 +_ASBOX
38071 +    ) |
38072 +      sed "s/^/$as_me: WARNING:     /" >&2
38073 +    ;;
38074 +esac
38075 +echo "$as_me:$LINENO: checking for png.h" >&5
38076 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
38077 +if test "${ac_cv_header_png_h+set}" = set; then
38078 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38079 +else
38080 +  ac_cv_header_png_h=$ac_header_preproc
38081 +fi
38082 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
38083 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
38084 +
38085 +fi
38086 +if test $ac_cv_header_png_h = yes; then
38087 +  echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
38088 +echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
38089 +if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
38090 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38091 +else
38092 +  ac_check_lib_save_LIBS=$LIBS
38093 +LIBS="-lpng -lz -lm $LIBS"
38094 +cat >conftest.$ac_ext <<_ACEOF
38095 +/* confdefs.h.  */
38096 +_ACEOF
38097 +cat confdefs.h >>conftest.$ac_ext
38098 +cat >>conftest.$ac_ext <<_ACEOF
38099 +/* end confdefs.h.  */
38100 +
38101 +/* Override any gcc2 internal prototype to avoid an error.  */
38102 +#ifdef __cplusplus
38103 +extern "C"
38104 +#endif
38105 +/* We use char because int might match the return type of a gcc2
38106 +   builtin and then its argument prototype would still apply.  */
38107 +char png_get_channels ();
38108 +int
38109 +main ()
38110 +{
38111 +png_get_channels ();
38112 +  ;
38113 +  return 0;
38114 +}
38115 +_ACEOF
38116 +rm -f conftest.$ac_objext conftest$ac_exeext
38117 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38118 +  (eval $ac_link) 2>conftest.er1
38119 +  ac_status=$?
38120 +  grep -v '^ *+' conftest.er1 >conftest.err
38121 +  rm -f conftest.er1
38122 +  cat conftest.err >&5
38123 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 +  (exit $ac_status); } &&
38125 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38126 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38127 +  (eval $ac_try) 2>&5
38128 +  ac_status=$?
38129 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130 +  (exit $ac_status); }; } &&
38131 +        { ac_try='test -s conftest$ac_exeext'
38132 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133 +  (eval $ac_try) 2>&5
38134 +  ac_status=$?
38135 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 +  (exit $ac_status); }; }; then
38137 +  ac_cv_lib_png_png_get_channels=yes
38138 +else
38139 +  echo "$as_me: failed program was:" >&5
38140 +sed 's/^/| /' conftest.$ac_ext >&5
38141 +
38142 +ac_cv_lib_png_png_get_channels=no
38143 +fi
38144 +rm -f conftest.err conftest.$ac_objext \
38145 +      conftest$ac_exeext conftest.$ac_ext
38146 +LIBS=$ac_check_lib_save_LIBS
38147 +fi
38148 +echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
38149 +echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
38150 +if test $ac_cv_lib_png_png_get_channels = yes; then
38151 +  HAVE_PNG=yes
38152 +fi
38153 +
38154 +fi
38155 +
38156 +
38157 +  fi
38158 +
38159 +  if test "${HAVE_PNG}" = "yes"; then
38160 +    cat >>confdefs.h <<\_ACEOF
38161 +#define HAVE_PNG 1
38162 +_ACEOF
38163 +
38164 +  fi
38165 +fi
38166 +
38167 +### Use -ltiff if available, unless `--with-tiff=no'.
38168 +HAVE_TIFF=no
38169 +if test "${HAVE_X11}" = "yes"; then
38170 +  if test "${with_tiff}" != "no"; then
38171 +    if test "${ac_cv_header_tiffio_h+set}" = set; then
38172 +  echo "$as_me:$LINENO: checking for tiffio.h" >&5
38173 +echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
38174 +if test "${ac_cv_header_tiffio_h+set}" = set; then
38175 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38176 +fi
38177 +echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
38178 +echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
38179 +else
38180 +  # Is the header compilable?
38181 +echo "$as_me:$LINENO: checking tiffio.h usability" >&5
38182 +echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
38183 +cat >conftest.$ac_ext <<_ACEOF
38184 +/* confdefs.h.  */
38185 +_ACEOF
38186 +cat confdefs.h >>conftest.$ac_ext
38187 +cat >>conftest.$ac_ext <<_ACEOF
38188 +/* end confdefs.h.  */
38189 +$ac_includes_default
38190 +#include <tiffio.h>
38191 +_ACEOF
38192 +rm -f conftest.$ac_objext
38193 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38194 +  (eval $ac_compile) 2>conftest.er1
38195 +  ac_status=$?
38196 +  grep -v '^ *+' conftest.er1 >conftest.err
38197 +  rm -f conftest.er1
38198 +  cat conftest.err >&5
38199 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 +  (exit $ac_status); } &&
38201 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38202 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 +  (eval $ac_try) 2>&5
38204 +  ac_status=$?
38205 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 +  (exit $ac_status); }; } &&
38207 +        { ac_try='test -s conftest.$ac_objext'
38208 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 +  (eval $ac_try) 2>&5
38210 +  ac_status=$?
38211 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 +  (exit $ac_status); }; }; then
38213 +  ac_header_compiler=yes
38214 +else
38215 +  echo "$as_me: failed program was:" >&5
38216 +sed 's/^/| /' conftest.$ac_ext >&5
38217 +
38218 +ac_header_compiler=no
38219 +fi
38220 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38221 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38222 +echo "${ECHO_T}$ac_header_compiler" >&6
38223 +
38224 +# Is the header present?
38225 +echo "$as_me:$LINENO: checking tiffio.h presence" >&5
38226 +echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
38227 +cat >conftest.$ac_ext <<_ACEOF
38228 +/* confdefs.h.  */
38229 +_ACEOF
38230 +cat confdefs.h >>conftest.$ac_ext
38231 +cat >>conftest.$ac_ext <<_ACEOF
38232 +/* end confdefs.h.  */
38233 +#include <tiffio.h>
38234 +_ACEOF
38235 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38236 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38237 +  ac_status=$?
38238 +  grep -v '^ *+' conftest.er1 >conftest.err
38239 +  rm -f conftest.er1
38240 +  cat conftest.err >&5
38241 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 +  (exit $ac_status); } >/dev/null; then
38243 +  if test -s conftest.err; then
38244 +    ac_cpp_err=$ac_c_preproc_warn_flag
38245 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38246 +  else
38247 +    ac_cpp_err=
38248 +  fi
38249 +else
38250 +  ac_cpp_err=yes
38251 +fi
38252 +if test -z "$ac_cpp_err"; then
38253 +  ac_header_preproc=yes
38254 +else
38255 +  echo "$as_me: failed program was:" >&5
38256 +sed 's/^/| /' conftest.$ac_ext >&5
38257 +
38258 +  ac_header_preproc=no
38259 +fi
38260 +rm -f conftest.err conftest.$ac_ext
38261 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38262 +echo "${ECHO_T}$ac_header_preproc" >&6
38263 +
38264 +# So?  What about this header?
38265 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38266 +  yes:no: )
38267 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38268 +echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38269 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
38270 +echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
38271 +    ac_header_preproc=yes
38272 +    ;;
38273 +  no:yes:* )
38274 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
38275 +echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
38276 +    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
38277 +echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
38278 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
38279 +echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
38280 +    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
38281 +echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38282 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
38283 +echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
38284 +    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
38285 +echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
38286 +    (
38287 +      cat <<\_ASBOX
38288 +## ------------------------------------------ ##
38289 +## Report this to the AC_PACKAGE_NAME lists.  ##
38290 +## ------------------------------------------ ##
38291 +_ASBOX
38292 +    ) |
38293 +      sed "s/^/$as_me: WARNING:     /" >&2
38294 +    ;;
38295 +esac
38296 +echo "$as_me:$LINENO: checking for tiffio.h" >&5
38297 +echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
38298 +if test "${ac_cv_header_tiffio_h+set}" = set; then
38299 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38300 +else
38301 +  ac_cv_header_tiffio_h=$ac_header_preproc
38302 +fi
38303 +echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
38304 +echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
38305 +
38306 +fi
38307 +if test $ac_cv_header_tiffio_h = yes; then
38308 +  tifflibs="-lz -lm"
38309 +      # At least one tiff package requires the jpeg library.
38310 +      if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
38311 +      echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
38312 +echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
38313 +if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
38314 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38315 +else
38316 +  ac_check_lib_save_LIBS=$LIBS
38317 +LIBS="-ltiff $tifflibs $LIBS"
38318 +cat >conftest.$ac_ext <<_ACEOF
38319 +/* confdefs.h.  */
38320 +_ACEOF
38321 +cat confdefs.h >>conftest.$ac_ext
38322 +cat >>conftest.$ac_ext <<_ACEOF
38323 +/* end confdefs.h.  */
38324 +
38325 +/* Override any gcc2 internal prototype to avoid an error.  */
38326 +#ifdef __cplusplus
38327 +extern "C"
38328 +#endif
38329 +/* We use char because int might match the return type of a gcc2
38330 +   builtin and then its argument prototype would still apply.  */
38331 +char TIFFGetVersion ();
38332 +int
38333 +main ()
38334 +{
38335 +TIFFGetVersion ();
38336 +  ;
38337 +  return 0;
38338 +}
38339 +_ACEOF
38340 +rm -f conftest.$ac_objext conftest$ac_exeext
38341 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38342 +  (eval $ac_link) 2>conftest.er1
38343 +  ac_status=$?
38344 +  grep -v '^ *+' conftest.er1 >conftest.err
38345 +  rm -f conftest.er1
38346 +  cat conftest.err >&5
38347 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348 +  (exit $ac_status); } &&
38349 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38350 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 +  (eval $ac_try) 2>&5
38352 +  ac_status=$?
38353 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 +  (exit $ac_status); }; } &&
38355 +        { ac_try='test -s conftest$ac_exeext'
38356 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 +  (eval $ac_try) 2>&5
38358 +  ac_status=$?
38359 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 +  (exit $ac_status); }; }; then
38361 +  ac_cv_lib_tiff_TIFFGetVersion=yes
38362 +else
38363 +  echo "$as_me: failed program was:" >&5
38364 +sed 's/^/| /' conftest.$ac_ext >&5
38365 +
38366 +ac_cv_lib_tiff_TIFFGetVersion=no
38367 +fi
38368 +rm -f conftest.err conftest.$ac_objext \
38369 +      conftest$ac_exeext conftest.$ac_ext
38370 +LIBS=$ac_check_lib_save_LIBS
38371 +fi
38372 +echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
38373 +echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
38374 +if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
38375 +  HAVE_TIFF=yes
38376 +fi
38377 +
38378 +fi
38379 +
38380 +
38381 +  fi
38382 +
38383 +  if test "${HAVE_TIFF}" = "yes"; then
38384 +    cat >>confdefs.h <<\_ACEOF
38385 +#define HAVE_TIFF 1
38386 +_ACEOF
38387 +
38388 +  fi
38389 +fi
38390 +
38391 +### Use -lgif if available, unless `--with-gif=no'.
38392 +HAVE_GIF=no
38393 +if test "${HAVE_X11}" = "yes"; then
38394 +  if test "${with_gif}" != "no"; then
38395 +    if test "${ac_cv_header_gif_lib_h+set}" = set; then
38396 +  echo "$as_me:$LINENO: checking for gif_lib.h" >&5
38397 +echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
38398 +if test "${ac_cv_header_gif_lib_h+set}" = set; then
38399 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38400 +fi
38401 +echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
38402 +echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
38403 +else
38404 +  # Is the header compilable?
38405 +echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
38406 +echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
38407 +cat >conftest.$ac_ext <<_ACEOF
38408 +/* confdefs.h.  */
38409 +_ACEOF
38410 +cat confdefs.h >>conftest.$ac_ext
38411 +cat >>conftest.$ac_ext <<_ACEOF
38412 +/* end confdefs.h.  */
38413 +$ac_includes_default
38414 +#include <gif_lib.h>
38415 +_ACEOF
38416 +rm -f conftest.$ac_objext
38417 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38418 +  (eval $ac_compile) 2>conftest.er1
38419 +  ac_status=$?
38420 +  grep -v '^ *+' conftest.er1 >conftest.err
38421 +  rm -f conftest.er1
38422 +  cat conftest.err >&5
38423 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 +  (exit $ac_status); } &&
38425 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38426 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427 +  (eval $ac_try) 2>&5
38428 +  ac_status=$?
38429 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 +  (exit $ac_status); }; } &&
38431 +        { ac_try='test -s conftest.$ac_objext'
38432 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433 +  (eval $ac_try) 2>&5
38434 +  ac_status=$?
38435 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 +  (exit $ac_status); }; }; then
38437 +  ac_header_compiler=yes
38438 +else
38439 +  echo "$as_me: failed program was:" >&5
38440 +sed 's/^/| /' conftest.$ac_ext >&5
38441 +
38442 +ac_header_compiler=no
38443 +fi
38444 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38445 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38446 +echo "${ECHO_T}$ac_header_compiler" >&6
38447 +
38448 +# Is the header present?
38449 +echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
38450 +echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
38451 +cat >conftest.$ac_ext <<_ACEOF
38452 +/* confdefs.h.  */
38453 +_ACEOF
38454 +cat confdefs.h >>conftest.$ac_ext
38455 +cat >>conftest.$ac_ext <<_ACEOF
38456 +/* end confdefs.h.  */
38457 +#include <gif_lib.h>
38458 +_ACEOF
38459 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38460 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38461 +  ac_status=$?
38462 +  grep -v '^ *+' conftest.er1 >conftest.err
38463 +  rm -f conftest.er1
38464 +  cat conftest.err >&5
38465 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 +  (exit $ac_status); } >/dev/null; then
38467 +  if test -s conftest.err; then
38468 +    ac_cpp_err=$ac_c_preproc_warn_flag
38469 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38470 +  else
38471 +    ac_cpp_err=
38472 +  fi
38473 +else
38474 +  ac_cpp_err=yes
38475 +fi
38476 +if test -z "$ac_cpp_err"; then
38477 +  ac_header_preproc=yes
38478 +else
38479 +  echo "$as_me: failed program was:" >&5
38480 +sed 's/^/| /' conftest.$ac_ext >&5
38481 +
38482 +  ac_header_preproc=no
38483 +fi
38484 +rm -f conftest.err conftest.$ac_ext
38485 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38486 +echo "${ECHO_T}$ac_header_preproc" >&6
38487 +
38488 +# So?  What about this header?
38489 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38490 +  yes:no: )
38491 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38492 +echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38493 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
38494 +echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
38495 +    ac_header_preproc=yes
38496 +    ;;
38497 +  no:yes:* )
38498 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
38499 +echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
38500 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&5
38501 +echo "$as_me: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&2;}
38502 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
38503 +echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
38504 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
38505 +echo "$as_me: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38506 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
38507 +echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
38508 +    { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
38509 +echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
38510 +    (
38511 +      cat <<\_ASBOX
38512 +## ------------------------------------------ ##
38513 +## Report this to the AC_PACKAGE_NAME lists.  ##
38514 +## ------------------------------------------ ##
38515 +_ASBOX
38516 +    ) |
38517 +      sed "s/^/$as_me: WARNING:     /" >&2
38518 +    ;;
38519 +esac
38520 +echo "$as_me:$LINENO: checking for gif_lib.h" >&5
38521 +echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
38522 +if test "${ac_cv_header_gif_lib_h+set}" = set; then
38523 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38524 +else
38525 +  ac_cv_header_gif_lib_h=$ac_header_preproc
38526 +fi
38527 +echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
38528 +echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
38529 +
38530 +fi
38531 +if test $ac_cv_header_gif_lib_h = yes; then
38532 +  # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
38533 +# Earlier versions can crash Emacs.
38534 +      echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
38535 +echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
38536 +if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
38537 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38538 +else
38539 +  ac_check_lib_save_LIBS=$LIBS
38540 +LIBS="-lungif  $LIBS"
38541 +cat >conftest.$ac_ext <<_ACEOF
38542 +/* confdefs.h.  */
38543 +_ACEOF
38544 +cat confdefs.h >>conftest.$ac_ext
38545 +cat >>conftest.$ac_ext <<_ACEOF
38546 +/* end confdefs.h.  */
38547 +
38548 +/* Override any gcc2 internal prototype to avoid an error.  */
38549 +#ifdef __cplusplus
38550 +extern "C"
38551 +#endif
38552 +/* We use char because int might match the return type of a gcc2
38553 +   builtin and then its argument prototype would still apply.  */
38554 +char EGifPutExtensionLast ();
38555 +int
38556 +main ()
38557 +{
38558 +EGifPutExtensionLast ();
38559 +  ;
38560 +  return 0;
38561 +}
38562 +_ACEOF
38563 +rm -f conftest.$ac_objext conftest$ac_exeext
38564 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38565 +  (eval $ac_link) 2>conftest.er1
38566 +  ac_status=$?
38567 +  grep -v '^ *+' conftest.er1 >conftest.err
38568 +  rm -f conftest.er1
38569 +  cat conftest.err >&5
38570 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 +  (exit $ac_status); } &&
38572 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38573 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 +  (eval $ac_try) 2>&5
38575 +  ac_status=$?
38576 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 +  (exit $ac_status); }; } &&
38578 +        { ac_try='test -s conftest$ac_exeext'
38579 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 +  (eval $ac_try) 2>&5
38581 +  ac_status=$?
38582 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 +  (exit $ac_status); }; }; then
38584 +  ac_cv_lib_ungif_EGifPutExtensionLast=yes
38585 +else
38586 +  echo "$as_me: failed program was:" >&5
38587 +sed 's/^/| /' conftest.$ac_ext >&5
38588 +
38589 +ac_cv_lib_ungif_EGifPutExtensionLast=no
38590 +fi
38591 +rm -f conftest.err conftest.$ac_objext \
38592 +      conftest$ac_exeext conftest.$ac_ext
38593 +LIBS=$ac_check_lib_save_LIBS
38594 +fi
38595 +echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
38596 +echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
38597 +if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
38598 +  HAVE_GIF=yes
38599 +fi
38600 +
38601 +fi
38602 +
38603 +
38604 +  fi
38605 +
38606 +  if test "${HAVE_GIF}" = "yes"; then
38607 +    cat >>confdefs.h <<\_ACEOF
38608 +#define HAVE_GIF 1
38609 +_ACEOF
38610 +
38611 +  fi
38612 +fi
38613 +
38614 +# If netdb.h doesn't declare h_errno, we must declare it by hand.
38615 +echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
38616 +echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
38617 +if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
38618 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38619 +else
38620 +  cat >conftest.$ac_ext <<_ACEOF
38621 +/* confdefs.h.  */
38622 +_ACEOF
38623 +cat confdefs.h >>conftest.$ac_ext
38624 +cat >>conftest.$ac_ext <<_ACEOF
38625 +/* end confdefs.h.  */
38626 +#include <netdb.h>
38627 +int
38628 +main ()
38629 +{
38630 +return h_errno;
38631 +  ;
38632 +  return 0;
38633 +}
38634 +_ACEOF
38635 +rm -f conftest.$ac_objext conftest$ac_exeext
38636 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38637 +  (eval $ac_link) 2>conftest.er1
38638 +  ac_status=$?
38639 +  grep -v '^ *+' conftest.er1 >conftest.err
38640 +  rm -f conftest.er1
38641 +  cat conftest.err >&5
38642 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 +  (exit $ac_status); } &&
38644 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38645 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 +  (eval $ac_try) 2>&5
38647 +  ac_status=$?
38648 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 +  (exit $ac_status); }; } &&
38650 +        { ac_try='test -s conftest$ac_exeext'
38651 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 +  (eval $ac_try) 2>&5
38653 +  ac_status=$?
38654 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 +  (exit $ac_status); }; }; then
38656 +  emacs_cv_netdb_declares_h_errno=yes
38657 +else
38658 +  echo "$as_me: failed program was:" >&5
38659 +sed 's/^/| /' conftest.$ac_ext >&5
38660 +
38661 +emacs_cv_netdb_declares_h_errno=no
38662 +fi
38663 +rm -f conftest.err conftest.$ac_objext \
38664 +      conftest$ac_exeext conftest.$ac_ext
38665 +fi
38666 +echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
38667 +echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
38668 +if test $emacs_cv_netdb_declares_h_errno = yes; then
38669 +  cat >>confdefs.h <<\_ACEOF
38670 +#define HAVE_H_ERRNO 1
38671 +_ACEOF
38672 +
38673 +fi
38674 +
38675 +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38676 +# for constant arguments.  Useless!
38677 +echo "$as_me:$LINENO: checking for working alloca.h" >&5
38678 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
38679 +if test "${ac_cv_working_alloca_h+set}" = set; then
38680 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38681 +else
38682 +  cat >conftest.$ac_ext <<_ACEOF
38683 +/* confdefs.h.  */
38684 +_ACEOF
38685 +cat confdefs.h >>conftest.$ac_ext
38686 +cat >>conftest.$ac_ext <<_ACEOF
38687 +/* end confdefs.h.  */
38688 +#include <alloca.h>
38689 +int
38690 +main ()
38691 +{
38692 +char *p = (char *) alloca (2 * sizeof (int));
38693 +  ;
38694 +  return 0;
38695 +}
38696 +_ACEOF
38697 +rm -f conftest.$ac_objext conftest$ac_exeext
38698 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38699 +  (eval $ac_link) 2>conftest.er1
38700 +  ac_status=$?
38701 +  grep -v '^ *+' conftest.er1 >conftest.err
38702 +  rm -f conftest.er1
38703 +  cat conftest.err >&5
38704 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 +  (exit $ac_status); } &&
38706 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38707 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38708 +  (eval $ac_try) 2>&5
38709 +  ac_status=$?
38710 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 +  (exit $ac_status); }; } &&
38712 +        { ac_try='test -s conftest$ac_exeext'
38713 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38714 +  (eval $ac_try) 2>&5
38715 +  ac_status=$?
38716 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38717 +  (exit $ac_status); }; }; then
38718 +  ac_cv_working_alloca_h=yes
38719 +else
38720 +  echo "$as_me: failed program was:" >&5
38721 +sed 's/^/| /' conftest.$ac_ext >&5
38722 +
38723 +ac_cv_working_alloca_h=no
38724 +fi
38725 +rm -f conftest.err conftest.$ac_objext \
38726 +      conftest$ac_exeext conftest.$ac_ext
38727 +fi
38728 +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
38729 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
38730 +if test $ac_cv_working_alloca_h = yes; then
38731 +
38732 +cat >>confdefs.h <<\_ACEOF
38733 +#define HAVE_ALLOCA_H 1
38734 +_ACEOF
38735 +
38736 +fi
38737 +
38738 +echo "$as_me:$LINENO: checking for alloca" >&5
38739 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6
38740 +if test "${ac_cv_func_alloca_works+set}" = set; then
38741 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38742 +else
38743 +  cat >conftest.$ac_ext <<_ACEOF
38744 +/* confdefs.h.  */
38745 +_ACEOF
38746 +cat confdefs.h >>conftest.$ac_ext
38747 +cat >>conftest.$ac_ext <<_ACEOF
38748 +/* end confdefs.h.  */
38749 +#ifdef __GNUC__
38750 +# define alloca __builtin_alloca
38751 +#else
38752 +# ifdef _MSC_VER
38753 +#  include <malloc.h>
38754 +#  define alloca _alloca
38755 +# else
38756 +#  if HAVE_ALLOCA_H
38757 +#   include <alloca.h>
38758 +#  else
38759 +#   ifdef _AIX
38760 + #pragma alloca
38761 +#   else
38762 +#    ifndef alloca /* predefined by HP cc +Olibcalls */
38763 +char *alloca ();
38764 +#    endif
38765 +#   endif
38766 +#  endif
38767 +# endif
38768 +#endif
38769 +
38770 +int
38771 +main ()
38772 +{
38773 +char *p = (char *) alloca (1);
38774 +  ;
38775 +  return 0;
38776 +}
38777 +_ACEOF
38778 +rm -f conftest.$ac_objext conftest$ac_exeext
38779 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38780 +  (eval $ac_link) 2>conftest.er1
38781 +  ac_status=$?
38782 +  grep -v '^ *+' conftest.er1 >conftest.err
38783 +  rm -f conftest.er1
38784 +  cat conftest.err >&5
38785 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 +  (exit $ac_status); } &&
38787 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38788 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 +  (eval $ac_try) 2>&5
38790 +  ac_status=$?
38791 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 +  (exit $ac_status); }; } &&
38793 +        { ac_try='test -s conftest$ac_exeext'
38794 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795 +  (eval $ac_try) 2>&5
38796 +  ac_status=$?
38797 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 +  (exit $ac_status); }; }; then
38799 +  ac_cv_func_alloca_works=yes
38800 +else
38801 +  echo "$as_me: failed program was:" >&5
38802 +sed 's/^/| /' conftest.$ac_ext >&5
38803 +
38804 +ac_cv_func_alloca_works=no
38805 +fi
38806 +rm -f conftest.err conftest.$ac_objext \
38807 +      conftest$ac_exeext conftest.$ac_ext
38808 +fi
38809 +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
38810 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
38811 +
38812 +if test $ac_cv_func_alloca_works = yes; then
38813 +
38814 +cat >>confdefs.h <<\_ACEOF
38815 +#define HAVE_ALLOCA 1
38816 +_ACEOF
38817 +
38818 +else
38819 +  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38820 +# that cause trouble.  Some versions do not even contain alloca or
38821 +# contain a buggy version.  If you still want to use their alloca,
38822 +# use ar to extract alloca.o from them instead of compiling alloca.c.
38823 +
38824 +ALLOCA=alloca.$ac_objext
38825 +
38826 +cat >>confdefs.h <<\_ACEOF
38827 +#define C_ALLOCA 1
38828 +_ACEOF
38829 +
38830 +
38831 +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
38832 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
38833 +if test "${ac_cv_os_cray+set}" = set; then
38834 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38835 +else
38836 +  cat >conftest.$ac_ext <<_ACEOF
38837 +/* confdefs.h.  */
38838 +_ACEOF
38839 +cat confdefs.h >>conftest.$ac_ext
38840 +cat >>conftest.$ac_ext <<_ACEOF
38841 +/* end confdefs.h.  */
38842 +#if defined(CRAY) && ! defined(CRAY2)
38843 +webecray
38844 +#else
38845 +wenotbecray
38846 +#endif
38847 +
38848 +_ACEOF
38849 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38850 +  $EGREP "webecray" >/dev/null 2>&1; then
38851 +  ac_cv_os_cray=yes
38852 +else
38853 +  ac_cv_os_cray=no
38854 +fi
38855 +rm -f conftest*
38856 +
38857 +fi
38858 +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
38859 +echo "${ECHO_T}$ac_cv_os_cray" >&6
38860 +if test $ac_cv_os_cray = yes; then
38861 +  for ac_func in _getb67 GETB67 getb67; do
38862 +    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38863 +echo "$as_me:$LINENO: checking for $ac_func" >&5
38864 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38865 +if eval "test \"\${$as_ac_var+set}\" = set"; then
38866 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38867 +else
38868 +  cat >conftest.$ac_ext <<_ACEOF
38869 +/* confdefs.h.  */
38870 +_ACEOF
38871 +cat confdefs.h >>conftest.$ac_ext
38872 +cat >>conftest.$ac_ext <<_ACEOF
38873 +/* end confdefs.h.  */
38874 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38875 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38876 +#define $ac_func innocuous_$ac_func
38877 +
38878 +/* System header to define __stub macros and hopefully few prototypes,
38879 +    which can conflict with char $ac_func (); below.
38880 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38881 +    <limits.h> exists even on freestanding compilers.  */
38882 +
38883 +#ifdef __STDC__
38884 +# include <limits.h>
38885 +#else
38886 +# include <assert.h>
38887 +#endif
38888 +
38889 +#undef $ac_func
38890 +
38891 +/* Override any gcc2 internal prototype to avoid an error.  */
38892 +#ifdef __cplusplus
38893 +extern "C"
38894 +{
38895 +#endif
38896 +/* We use char because int might match the return type of a gcc2
38897 +   builtin and then its argument prototype would still apply.  */
38898 +char $ac_func ();
38899 +/* The GNU C library defines this for functions which it implements
38900 +    to always fail with ENOSYS.  Some functions are actually named
38901 +    something starting with __ and the normal name is an alias.  */
38902 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38903 +choke me
38904 +#else
38905 +char (*f) () = $ac_func;
38906 +#endif
38907 +#ifdef __cplusplus
38908 +}
38909 +#endif
38910 +
38911 +int
38912 +main ()
38913 +{
38914 +return f != $ac_func;
38915 +  ;
38916 +  return 0;
38917 +}
38918 +_ACEOF
38919 +rm -f conftest.$ac_objext conftest$ac_exeext
38920 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38921 +  (eval $ac_link) 2>conftest.er1
38922 +  ac_status=$?
38923 +  grep -v '^ *+' conftest.er1 >conftest.err
38924 +  rm -f conftest.er1
38925 +  cat conftest.err >&5
38926 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 +  (exit $ac_status); } &&
38928 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38929 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38930 +  (eval $ac_try) 2>&5
38931 +  ac_status=$?
38932 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 +  (exit $ac_status); }; } &&
38934 +        { ac_try='test -s conftest$ac_exeext'
38935 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38936 +  (eval $ac_try) 2>&5
38937 +  ac_status=$?
38938 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939 +  (exit $ac_status); }; }; then
38940 +  eval "$as_ac_var=yes"
38941 +else
38942 +  echo "$as_me: failed program was:" >&5
38943 +sed 's/^/| /' conftest.$ac_ext >&5
38944 +
38945 +eval "$as_ac_var=no"
38946 +fi
38947 +rm -f conftest.err conftest.$ac_objext \
38948 +      conftest$ac_exeext conftest.$ac_ext
38949 +fi
38950 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38951 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38952 +if test `eval echo '${'$as_ac_var'}'` = yes; then
38953 +
38954 +cat >>confdefs.h <<_ACEOF
38955 +#define CRAY_STACKSEG_END $ac_func
38956 +_ACEOF
38957 +
38958 +    break
38959 +fi
38960 +
38961 +  done
38962 +fi
38963 +
38964 +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
38965 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
38966 +if test "${ac_cv_c_stack_direction+set}" = set; then
38967 +  echo $ECHO_N "(cached) $ECHO_C" >&6
38968 +else
38969 +  if test "$cross_compiling" = yes; then
38970 +  ac_cv_c_stack_direction=0
38971 +else
38972 +  cat >conftest.$ac_ext <<_ACEOF
38973 +/* confdefs.h.  */
38974 +_ACEOF
38975 +cat confdefs.h >>conftest.$ac_ext
38976 +cat >>conftest.$ac_ext <<_ACEOF
38977 +/* end confdefs.h.  */
38978 +int
38979 +find_stack_direction ()
38980 +{
38981 +  static char *addr = 0;
38982 +  auto char dummy;
38983 +  if (addr == 0)
38984 +    {
38985 +      addr = &dummy;
38986 +      return find_stack_direction ();
38987 +    }
38988 +  else
38989 +    return (&dummy > addr) ? 1 : -1;
38990 +}
38991 +
38992 +int
38993 +main ()
38994 +{
38995 +  exit (find_stack_direction () < 0);
38996 +}
38997 +_ACEOF
38998 +rm -f conftest$ac_exeext
38999 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39000 +  (eval $ac_link) 2>&5
39001 +  ac_status=$?
39002 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39004 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 +  (eval $ac_try) 2>&5
39006 +  ac_status=$?
39007 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 +  (exit $ac_status); }; }; then
39009 +  ac_cv_c_stack_direction=1
39010 +else
39011 +  echo "$as_me: program exited with status $ac_status" >&5
39012 +echo "$as_me: failed program was:" >&5
39013 +sed 's/^/| /' conftest.$ac_ext >&5
39014 +
39015 +( exit $ac_status )
39016 +ac_cv_c_stack_direction=-1
39017 +fi
39018 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39019 +fi
39020 +fi
39021 +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39022 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
39023 +
39024 +cat >>confdefs.h <<_ACEOF
39025 +#define STACK_DIRECTION $ac_cv_c_stack_direction
39026 +_ACEOF
39027 +
39028 +
39029 +fi
39030 +
39031 +
39032 +# fmod, logb, and frexp are found in -lm on most systems.
39033 +# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
39034 +
39035 +echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
39036 +echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
39037 +if test "${ac_cv_lib_m_sqrt+set}" = set; then
39038 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39039 +else
39040 +  ac_check_lib_save_LIBS=$LIBS
39041 +LIBS="-lm  $LIBS"
39042 +cat >conftest.$ac_ext <<_ACEOF
39043 +/* confdefs.h.  */
39044 +_ACEOF
39045 +cat confdefs.h >>conftest.$ac_ext
39046 +cat >>conftest.$ac_ext <<_ACEOF
39047 +/* end confdefs.h.  */
39048 +
39049 +/* Override any gcc2 internal prototype to avoid an error.  */
39050 +#ifdef __cplusplus
39051 +extern "C"
39052 +#endif
39053 +/* We use char because int might match the return type of a gcc2
39054 +   builtin and then its argument prototype would still apply.  */
39055 +char sqrt ();
39056 +int
39057 +main ()
39058 +{
39059 +sqrt ();
39060 +  ;
39061 +  return 0;
39062 +}
39063 +_ACEOF
39064 +rm -f conftest.$ac_objext conftest$ac_exeext
39065 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39066 +  (eval $ac_link) 2>conftest.er1
39067 +  ac_status=$?
39068 +  grep -v '^ *+' conftest.er1 >conftest.err
39069 +  rm -f conftest.er1
39070 +  cat conftest.err >&5
39071 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 +  (exit $ac_status); } &&
39073 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39074 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 +  (eval $ac_try) 2>&5
39076 +  ac_status=$?
39077 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 +  (exit $ac_status); }; } &&
39079 +        { ac_try='test -s conftest$ac_exeext'
39080 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 +  (eval $ac_try) 2>&5
39082 +  ac_status=$?
39083 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 +  (exit $ac_status); }; }; then
39085 +  ac_cv_lib_m_sqrt=yes
39086 +else
39087 +  echo "$as_me: failed program was:" >&5
39088 +sed 's/^/| /' conftest.$ac_ext >&5
39089 +
39090 +ac_cv_lib_m_sqrt=no
39091 +fi
39092 +rm -f conftest.err conftest.$ac_objext \
39093 +      conftest$ac_exeext conftest.$ac_ext
39094 +LIBS=$ac_check_lib_save_LIBS
39095 +fi
39096 +echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
39097 +echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
39098 +if test $ac_cv_lib_m_sqrt = yes; then
39099 +  cat >>confdefs.h <<_ACEOF
39100 +#define HAVE_LIBM 1
39101 +_ACEOF
39102 +
39103 +  LIBS="-lm $LIBS"
39104 +
39105 +fi
39106 +
39107 +
39108 +# Check for mail-locking functions in a "mail" library Check for
39109 +# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
39110 +# for touchlock because we don't want to have to put the lock libs
39111 +# into LIBS and AC_CHECK_FUNCS would require that.
39112 +
39113 +echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
39114 +echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
39115 +if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
39116 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39117 +else
39118 +  ac_check_lib_save_LIBS=$LIBS
39119 +LIBS="-llockfile  $LIBS"
39120 +cat >conftest.$ac_ext <<_ACEOF
39121 +/* confdefs.h.  */
39122 +_ACEOF
39123 +cat confdefs.h >>conftest.$ac_ext
39124 +cat >>conftest.$ac_ext <<_ACEOF
39125 +/* end confdefs.h.  */
39126 +
39127 +/* Override any gcc2 internal prototype to avoid an error.  */
39128 +#ifdef __cplusplus
39129 +extern "C"
39130 +#endif
39131 +/* We use char because int might match the return type of a gcc2
39132 +   builtin and then its argument prototype would still apply.  */
39133 +char maillock ();
39134 +int
39135 +main ()
39136 +{
39137 +maillock ();
39138 +  ;
39139 +  return 0;
39140 +}
39141 +_ACEOF
39142 +rm -f conftest.$ac_objext conftest$ac_exeext
39143 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39144 +  (eval $ac_link) 2>conftest.er1
39145 +  ac_status=$?
39146 +  grep -v '^ *+' conftest.er1 >conftest.err
39147 +  rm -f conftest.er1
39148 +  cat conftest.err >&5
39149 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 +  (exit $ac_status); } &&
39151 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39152 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39153 +  (eval $ac_try) 2>&5
39154 +  ac_status=$?
39155 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 +  (exit $ac_status); }; } &&
39157 +        { ac_try='test -s conftest$ac_exeext'
39158 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39159 +  (eval $ac_try) 2>&5
39160 +  ac_status=$?
39161 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39162 +  (exit $ac_status); }; }; then
39163 +  ac_cv_lib_lockfile_maillock=yes
39164 +else
39165 +  echo "$as_me: failed program was:" >&5
39166 +sed 's/^/| /' conftest.$ac_ext >&5
39167 +
39168 +ac_cv_lib_lockfile_maillock=no
39169 +fi
39170 +rm -f conftest.err conftest.$ac_objext \
39171 +      conftest$ac_exeext conftest.$ac_ext
39172 +LIBS=$ac_check_lib_save_LIBS
39173 +fi
39174 +echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
39175 +echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
39176 +if test $ac_cv_lib_lockfile_maillock = yes; then
39177 +   cat >>confdefs.h <<\_ACEOF
39178 +#define HAVE_LIBMAIL 1
39179 +_ACEOF
39180 +
39181 +    MOVEMAIL_LOCK_LIBS="-llockfile"
39182 +    echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
39183 +echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
39184 +if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
39185 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39186 +else
39187 +  ac_check_lib_save_LIBS=$LIBS
39188 +LIBS="-llockfile  $LIBS"
39189 +cat >conftest.$ac_ext <<_ACEOF
39190 +/* confdefs.h.  */
39191 +_ACEOF
39192 +cat confdefs.h >>conftest.$ac_ext
39193 +cat >>conftest.$ac_ext <<_ACEOF
39194 +/* end confdefs.h.  */
39195 +
39196 +/* Override any gcc2 internal prototype to avoid an error.  */
39197 +#ifdef __cplusplus
39198 +extern "C"
39199 +#endif
39200 +/* We use char because int might match the return type of a gcc2
39201 +   builtin and then its argument prototype would still apply.  */
39202 +char touchlock ();
39203 +int
39204 +main ()
39205 +{
39206 +touchlock ();
39207 +  ;
39208 +  return 0;
39209 +}
39210 +_ACEOF
39211 +rm -f conftest.$ac_objext conftest$ac_exeext
39212 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39213 +  (eval $ac_link) 2>conftest.er1
39214 +  ac_status=$?
39215 +  grep -v '^ *+' conftest.er1 >conftest.err
39216 +  rm -f conftest.er1
39217 +  cat conftest.err >&5
39218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 +  (exit $ac_status); } &&
39220 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39221 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 +  (eval $ac_try) 2>&5
39223 +  ac_status=$?
39224 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 +  (exit $ac_status); }; } &&
39226 +        { ac_try='test -s conftest$ac_exeext'
39227 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 +  (eval $ac_try) 2>&5
39229 +  ac_status=$?
39230 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 +  (exit $ac_status); }; }; then
39232 +  ac_cv_lib_lockfile_touchlock=yes
39233 +else
39234 +  echo "$as_me: failed program was:" >&5
39235 +sed 's/^/| /' conftest.$ac_ext >&5
39236 +
39237 +ac_cv_lib_lockfile_touchlock=no
39238 +fi
39239 +rm -f conftest.err conftest.$ac_objext \
39240 +      conftest$ac_exeext conftest.$ac_ext
39241 +LIBS=$ac_check_lib_save_LIBS
39242 +fi
39243 +echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
39244 +echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
39245 +if test $ac_cv_lib_lockfile_touchlock = yes; then
39246 +  cat >>confdefs.h <<\_ACEOF
39247 +#define HAVE_TOUCHLOCK 1
39248 +_ACEOF
39249 +
39250 +fi
39251 +
39252 +
39253 +for ac_header in maillock.h
39254 +do
39255 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39256 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39257 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
39258 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39259 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39260 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39261 +fi
39262 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39263 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39264 +else
39265 +  # Is the header compilable?
39266 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
39267 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39268 +cat >conftest.$ac_ext <<_ACEOF
39269 +/* confdefs.h.  */
39270 +_ACEOF
39271 +cat confdefs.h >>conftest.$ac_ext
39272 +cat >>conftest.$ac_ext <<_ACEOF
39273 +/* end confdefs.h.  */
39274 +$ac_includes_default
39275 +#include <$ac_header>
39276 +_ACEOF
39277 +rm -f conftest.$ac_objext
39278 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39279 +  (eval $ac_compile) 2>conftest.er1
39280 +  ac_status=$?
39281 +  grep -v '^ *+' conftest.er1 >conftest.err
39282 +  rm -f conftest.er1
39283 +  cat conftest.err >&5
39284 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 +  (exit $ac_status); } &&
39286 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39287 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 +  (eval $ac_try) 2>&5
39289 +  ac_status=$?
39290 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 +  (exit $ac_status); }; } &&
39292 +        { ac_try='test -s conftest.$ac_objext'
39293 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294 +  (eval $ac_try) 2>&5
39295 +  ac_status=$?
39296 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 +  (exit $ac_status); }; }; then
39298 +  ac_header_compiler=yes
39299 +else
39300 +  echo "$as_me: failed program was:" >&5
39301 +sed 's/^/| /' conftest.$ac_ext >&5
39302 +
39303 +ac_header_compiler=no
39304 +fi
39305 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39306 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39307 +echo "${ECHO_T}$ac_header_compiler" >&6
39308 +
39309 +# Is the header present?
39310 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
39311 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39312 +cat >conftest.$ac_ext <<_ACEOF
39313 +/* confdefs.h.  */
39314 +_ACEOF
39315 +cat confdefs.h >>conftest.$ac_ext
39316 +cat >>conftest.$ac_ext <<_ACEOF
39317 +/* end confdefs.h.  */
39318 +#include <$ac_header>
39319 +_ACEOF
39320 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39321 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39322 +  ac_status=$?
39323 +  grep -v '^ *+' conftest.er1 >conftest.err
39324 +  rm -f conftest.er1
39325 +  cat conftest.err >&5
39326 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 +  (exit $ac_status); } >/dev/null; then
39328 +  if test -s conftest.err; then
39329 +    ac_cpp_err=$ac_c_preproc_warn_flag
39330 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39331 +  else
39332 +    ac_cpp_err=
39333 +  fi
39334 +else
39335 +  ac_cpp_err=yes
39336 +fi
39337 +if test -z "$ac_cpp_err"; then
39338 +  ac_header_preproc=yes
39339 +else
39340 +  echo "$as_me: failed program was:" >&5
39341 +sed 's/^/| /' conftest.$ac_ext >&5
39342 +
39343 +  ac_header_preproc=no
39344 +fi
39345 +rm -f conftest.err conftest.$ac_ext
39346 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39347 +echo "${ECHO_T}$ac_header_preproc" >&6
39348 +
39349 +# So?  What about this header?
39350 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39351 +  yes:no: )
39352 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39353 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39354 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39355 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39356 +    ac_header_preproc=yes
39357 +    ;;
39358 +  no:yes:* )
39359 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39360 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39361 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39362 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39363 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39364 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39365 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39366 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39367 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39368 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39369 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39370 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39371 +    (
39372 +      cat <<\_ASBOX
39373 +## ------------------------------------------ ##
39374 +## Report this to the AC_PACKAGE_NAME lists.  ##
39375 +## ------------------------------------------ ##
39376 +_ASBOX
39377 +    ) |
39378 +      sed "s/^/$as_me: WARNING:     /" >&2
39379 +    ;;
39380 +esac
39381 +echo "$as_me:$LINENO: checking for $ac_header" >&5
39382 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39383 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39384 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39385 +else
39386 +  eval "$as_ac_Header=\$ac_header_preproc"
39387 +fi
39388 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39389 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39390 +
39391 +fi
39392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
39393 +  cat >>confdefs.h <<_ACEOF
39394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39395 +_ACEOF
39396 +
39397 +fi
39398 +
39399 +done
39400 +
39401 +else
39402 +   echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
39403 +echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
39404 +if test "${ac_cv_lib_mail_maillock+set}" = set; then
39405 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39406 +else
39407 +  ac_check_lib_save_LIBS=$LIBS
39408 +LIBS="-lmail  $LIBS"
39409 +cat >conftest.$ac_ext <<_ACEOF
39410 +/* confdefs.h.  */
39411 +_ACEOF
39412 +cat confdefs.h >>conftest.$ac_ext
39413 +cat >>conftest.$ac_ext <<_ACEOF
39414 +/* end confdefs.h.  */
39415 +
39416 +/* Override any gcc2 internal prototype to avoid an error.  */
39417 +#ifdef __cplusplus
39418 +extern "C"
39419 +#endif
39420 +/* We use char because int might match the return type of a gcc2
39421 +   builtin and then its argument prototype would still apply.  */
39422 +char maillock ();
39423 +int
39424 +main ()
39425 +{
39426 +maillock ();
39427 +  ;
39428 +  return 0;
39429 +}
39430 +_ACEOF
39431 +rm -f conftest.$ac_objext conftest$ac_exeext
39432 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39433 +  (eval $ac_link) 2>conftest.er1
39434 +  ac_status=$?
39435 +  grep -v '^ *+' conftest.er1 >conftest.err
39436 +  rm -f conftest.er1
39437 +  cat conftest.err >&5
39438 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 +  (exit $ac_status); } &&
39440 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39441 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39442 +  (eval $ac_try) 2>&5
39443 +  ac_status=$?
39444 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 +  (exit $ac_status); }; } &&
39446 +        { ac_try='test -s conftest$ac_exeext'
39447 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39448 +  (eval $ac_try) 2>&5
39449 +  ac_status=$?
39450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 +  (exit $ac_status); }; }; then
39452 +  ac_cv_lib_mail_maillock=yes
39453 +else
39454 +  echo "$as_me: failed program was:" >&5
39455 +sed 's/^/| /' conftest.$ac_ext >&5
39456 +
39457 +ac_cv_lib_mail_maillock=no
39458 +fi
39459 +rm -f conftest.err conftest.$ac_objext \
39460 +      conftest$ac_exeext conftest.$ac_ext
39461 +LIBS=$ac_check_lib_save_LIBS
39462 +fi
39463 +echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
39464 +echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
39465 +if test $ac_cv_lib_mail_maillock = yes; then
39466 +   cat >>confdefs.h <<\_ACEOF
39467 +#define HAVE_LIBMAIL 1
39468 +_ACEOF
39469 +
39470 +               MOVEMAIL_LOCK_LIBS="-lmail"
39471 +               echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
39472 +echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
39473 +if test "${ac_cv_lib_mail_touchlock+set}" = set; then
39474 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39475 +else
39476 +  ac_check_lib_save_LIBS=$LIBS
39477 +LIBS="-lmail  $LIBS"
39478 +cat >conftest.$ac_ext <<_ACEOF
39479 +/* confdefs.h.  */
39480 +_ACEOF
39481 +cat confdefs.h >>conftest.$ac_ext
39482 +cat >>conftest.$ac_ext <<_ACEOF
39483 +/* end confdefs.h.  */
39484 +
39485 +/* Override any gcc2 internal prototype to avoid an error.  */
39486 +#ifdef __cplusplus
39487 +extern "C"
39488 +#endif
39489 +/* We use char because int might match the return type of a gcc2
39490 +   builtin and then its argument prototype would still apply.  */
39491 +char touchlock ();
39492 +int
39493 +main ()
39494 +{
39495 +touchlock ();
39496 +  ;
39497 +  return 0;
39498 +}
39499 +_ACEOF
39500 +rm -f conftest.$ac_objext conftest$ac_exeext
39501 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39502 +  (eval $ac_link) 2>conftest.er1
39503 +  ac_status=$?
39504 +  grep -v '^ *+' conftest.er1 >conftest.err
39505 +  rm -f conftest.er1
39506 +  cat conftest.err >&5
39507 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39508 +  (exit $ac_status); } &&
39509 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39510 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39511 +  (eval $ac_try) 2>&5
39512 +  ac_status=$?
39513 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 +  (exit $ac_status); }; } &&
39515 +        { ac_try='test -s conftest$ac_exeext'
39516 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39517 +  (eval $ac_try) 2>&5
39518 +  ac_status=$?
39519 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 +  (exit $ac_status); }; }; then
39521 +  ac_cv_lib_mail_touchlock=yes
39522 +else
39523 +  echo "$as_me: failed program was:" >&5
39524 +sed 's/^/| /' conftest.$ac_ext >&5
39525 +
39526 +ac_cv_lib_mail_touchlock=no
39527 +fi
39528 +rm -f conftest.err conftest.$ac_objext \
39529 +      conftest$ac_exeext conftest.$ac_ext
39530 +LIBS=$ac_check_lib_save_LIBS
39531 +fi
39532 +echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
39533 +echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
39534 +if test $ac_cv_lib_mail_touchlock = yes; then
39535 +  cat >>confdefs.h <<\_ACEOF
39536 +#define HAVE_TOUCHLOCK 1
39537 +_ACEOF
39538 +
39539 +fi
39540 +
39541 +
39542 +for ac_func in touchlock
39543 +do
39544 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39545 +echo "$as_me:$LINENO: checking for $ac_func" >&5
39546 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39547 +if eval "test \"\${$as_ac_var+set}\" = set"; then
39548 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39549 +else
39550 +  cat >conftest.$ac_ext <<_ACEOF
39551 +/* confdefs.h.  */
39552 +_ACEOF
39553 +cat confdefs.h >>conftest.$ac_ext
39554 +cat >>conftest.$ac_ext <<_ACEOF
39555 +/* end confdefs.h.  */
39556 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39557 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39558 +#define $ac_func innocuous_$ac_func
39559 +
39560 +/* System header to define __stub macros and hopefully few prototypes,
39561 +    which can conflict with char $ac_func (); below.
39562 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39563 +    <limits.h> exists even on freestanding compilers.  */
39564 +
39565 +#ifdef __STDC__
39566 +# include <limits.h>
39567 +#else
39568 +# include <assert.h>
39569 +#endif
39570 +
39571 +#undef $ac_func
39572 +
39573 +/* Override any gcc2 internal prototype to avoid an error.  */
39574 +#ifdef __cplusplus
39575 +extern "C"
39576 +{
39577 +#endif
39578 +/* We use char because int might match the return type of a gcc2
39579 +   builtin and then its argument prototype would still apply.  */
39580 +char $ac_func ();
39581 +/* The GNU C library defines this for functions which it implements
39582 +    to always fail with ENOSYS.  Some functions are actually named
39583 +    something starting with __ and the normal name is an alias.  */
39584 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39585 +choke me
39586 +#else
39587 +char (*f) () = $ac_func;
39588 +#endif
39589 +#ifdef __cplusplus
39590 +}
39591 +#endif
39592 +
39593 +int
39594 +main ()
39595 +{
39596 +return f != $ac_func;
39597 +  ;
39598 +  return 0;
39599 +}
39600 +_ACEOF
39601 +rm -f conftest.$ac_objext conftest$ac_exeext
39602 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39603 +  (eval $ac_link) 2>conftest.er1
39604 +  ac_status=$?
39605 +  grep -v '^ *+' conftest.er1 >conftest.err
39606 +  rm -f conftest.er1
39607 +  cat conftest.err >&5
39608 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 +  (exit $ac_status); } &&
39610 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39611 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 +  (eval $ac_try) 2>&5
39613 +  ac_status=$?
39614 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 +  (exit $ac_status); }; } &&
39616 +        { ac_try='test -s conftest$ac_exeext'
39617 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 +  (eval $ac_try) 2>&5
39619 +  ac_status=$?
39620 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 +  (exit $ac_status); }; }; then
39622 +  eval "$as_ac_var=yes"
39623 +else
39624 +  echo "$as_me: failed program was:" >&5
39625 +sed 's/^/| /' conftest.$ac_ext >&5
39626 +
39627 +eval "$as_ac_var=no"
39628 +fi
39629 +rm -f conftest.err conftest.$ac_objext \
39630 +      conftest$ac_exeext conftest.$ac_ext
39631 +fi
39632 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39633 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39634 +if test `eval echo '${'$as_ac_var'}'` = yes; then
39635 +  cat >>confdefs.h <<_ACEOF
39636 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39637 +_ACEOF
39638 +
39639 +fi
39640 +done
39641 +
39642 +
39643 +for ac_header in maillock.h
39644 +do
39645 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39646 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39647 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
39648 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39649 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39650 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39651 +fi
39652 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39653 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39654 +else
39655 +  # Is the header compilable?
39656 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
39657 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39658 +cat >conftest.$ac_ext <<_ACEOF
39659 +/* confdefs.h.  */
39660 +_ACEOF
39661 +cat confdefs.h >>conftest.$ac_ext
39662 +cat >>conftest.$ac_ext <<_ACEOF
39663 +/* end confdefs.h.  */
39664 +$ac_includes_default
39665 +#include <$ac_header>
39666 +_ACEOF
39667 +rm -f conftest.$ac_objext
39668 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39669 +  (eval $ac_compile) 2>conftest.er1
39670 +  ac_status=$?
39671 +  grep -v '^ *+' conftest.er1 >conftest.err
39672 +  rm -f conftest.er1
39673 +  cat conftest.err >&5
39674 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 +  (exit $ac_status); } &&
39676 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39677 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 +  (eval $ac_try) 2>&5
39679 +  ac_status=$?
39680 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 +  (exit $ac_status); }; } &&
39682 +        { ac_try='test -s conftest.$ac_objext'
39683 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 +  (eval $ac_try) 2>&5
39685 +  ac_status=$?
39686 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 +  (exit $ac_status); }; }; then
39688 +  ac_header_compiler=yes
39689 +else
39690 +  echo "$as_me: failed program was:" >&5
39691 +sed 's/^/| /' conftest.$ac_ext >&5
39692 +
39693 +ac_header_compiler=no
39694 +fi
39695 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39696 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39697 +echo "${ECHO_T}$ac_header_compiler" >&6
39698 +
39699 +# Is the header present?
39700 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
39701 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39702 +cat >conftest.$ac_ext <<_ACEOF
39703 +/* confdefs.h.  */
39704 +_ACEOF
39705 +cat confdefs.h >>conftest.$ac_ext
39706 +cat >>conftest.$ac_ext <<_ACEOF
39707 +/* end confdefs.h.  */
39708 +#include <$ac_header>
39709 +_ACEOF
39710 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39711 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39712 +  ac_status=$?
39713 +  grep -v '^ *+' conftest.er1 >conftest.err
39714 +  rm -f conftest.er1
39715 +  cat conftest.err >&5
39716 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717 +  (exit $ac_status); } >/dev/null; then
39718 +  if test -s conftest.err; then
39719 +    ac_cpp_err=$ac_c_preproc_warn_flag
39720 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39721 +  else
39722 +    ac_cpp_err=
39723 +  fi
39724 +else
39725 +  ac_cpp_err=yes
39726 +fi
39727 +if test -z "$ac_cpp_err"; then
39728 +  ac_header_preproc=yes
39729 +else
39730 +  echo "$as_me: failed program was:" >&5
39731 +sed 's/^/| /' conftest.$ac_ext >&5
39732 +
39733 +  ac_header_preproc=no
39734 +fi
39735 +rm -f conftest.err conftest.$ac_ext
39736 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39737 +echo "${ECHO_T}$ac_header_preproc" >&6
39738 +
39739 +# So?  What about this header?
39740 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39741 +  yes:no: )
39742 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39743 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39744 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39745 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39746 +    ac_header_preproc=yes
39747 +    ;;
39748 +  no:yes:* )
39749 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39750 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39751 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39752 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39753 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39754 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39755 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39756 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39757 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39758 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39759 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39760 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39761 +    (
39762 +      cat <<\_ASBOX
39763 +## ------------------------------------------ ##
39764 +## Report this to the AC_PACKAGE_NAME lists.  ##
39765 +## ------------------------------------------ ##
39766 +_ASBOX
39767 +    ) |
39768 +      sed "s/^/$as_me: WARNING:     /" >&2
39769 +    ;;
39770 +esac
39771 +echo "$as_me:$LINENO: checking for $ac_header" >&5
39772 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39773 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
39774 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39775 +else
39776 +  eval "$as_ac_Header=\$ac_header_preproc"
39777 +fi
39778 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39779 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39780 +
39781 +fi
39782 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
39783 +  cat >>confdefs.h <<_ACEOF
39784 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39785 +_ACEOF
39786 +
39787 +fi
39788 +
39789 +done
39790 +
39791 +fi
39792 +
39793 +fi
39794 +
39795 +
39796 +
39797 +# Tests borrowed (and slightly rearranged) from old paths.el
39798 +# rmail-spool-directory tests.  They should be in the order most
39799 +# likely to get the right answer.  You can always override them on the
39800 +# system level in src/s/* and on a one-shot basis with
39801 +# --with-mail-spool-directory.
39802 +
39803 +echo "$as_me:$LINENO: checking for mail spool location" >&5
39804 +echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
39805 +if test "${with_mail_spool+set}" = set; then
39806 +  echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
39807 +echo "${ECHO_T}${with_mail_spool}" >&6
39808 +elif test -d /var/mail/; then
39809 +  cat >>confdefs.h <<_ACEOF
39810 +#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
39811 +_ACEOF
39812 +
39813 +  echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
39814 +echo "${ECHO_T}\"/var/mail\"" >&6
39815 +elif test -d /var/spool/mail/; then
39816 +  cat >>confdefs.h <<_ACEOF
39817 +#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
39818 +_ACEOF
39819 +
39820 +  echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
39821 +echo "${ECHO_T}\"/var/spool/mail\"" >&6
39822 +elif test -d /usr/mail/; then
39823 +  cat >>confdefs.h <<_ACEOF
39824 +#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
39825 +_ACEOF
39826 +
39827 +  echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
39828 +echo "${ECHO_T}\"/usr/mail\"" >&6
39829 +elif test -d /usr/spool/mail/; then
39830 +  cat >>confdefs.h <<_ACEOF
39831 +#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
39832 +_ACEOF
39833 +
39834 +  echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
39835 +echo "${ECHO_T}\"/usr/spool/mail\"" >&6
39836 +else
39837 +  echo "$as_me:$LINENO: result: not found" >&5
39838 +echo "${ECHO_T}not found" >&6
39839 +fi
39840 +
39841 +# Find the location of "mail".  This is critical for fakemail at
39842 +# least.  before fakemail would silently fail if this was wrong, so
39843 +# insist on finding it.
39844 +echo "$as_me:$LINENO: checking for mail binary" >&5
39845 +echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
39846 +if test -x /bin/mail; then
39847 +  cat >>confdefs.h <<_ACEOF
39848 +#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
39849 +_ACEOF
39850 +
39851 +  echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
39852 +echo "${ECHO_T}\"/bin/mail\"" >&6
39853 +elif test -x /usr/bin/mail; then
39854 +  cat >>confdefs.h <<_ACEOF
39855 +#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
39856 +_ACEOF
39857 +
39858 +  echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
39859 +echo "${ECHO_T}\"/usr/bin/mail\"" >&6
39860 +else
39861 +  { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
39862 +echo "$as_me: error: could not find mail binary" >&2;}
39863 +   { (exit 1); exit 1; }; }
39864 +fi
39865 +
39866 +
39867 +
39868 +
39869 +
39870 +
39871 +
39872 +
39873 +
39874 +
39875 +
39876 +
39877 +
39878 +
39879 +
39880 +
39881 +
39882 +
39883 +
39884 +
39885 +
39886 +
39887 +
39888 +
39889 +
39890 +
39891 +
39892 +
39893 +
39894 +
39895 +
39896 +
39897 +
39898 +
39899 +
39900 +
39901 +
39902 +
39903 +
39904 +
39905 +
39906 +
39907 +
39908 +
39909 +
39910 +
39911 +
39912 +for ac_func in gethostname getdomainname dup2 \
39913 +rename closedir mkdir rmdir sysinfo \
39914 +random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
39915 +strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
39916 +utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
39917 +__fpending mblen mbrlen strsignal setitimer ualarm index rindex \
39918 +gai_strerror mkstemp
39919 +do
39920 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39921 +echo "$as_me:$LINENO: checking for $ac_func" >&5
39922 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39923 +if eval "test \"\${$as_ac_var+set}\" = set"; then
39924 +  echo $ECHO_N "(cached) $ECHO_C" >&6
39925 +else
39926 +  cat >conftest.$ac_ext <<_ACEOF
39927 +/* confdefs.h.  */
39928 +_ACEOF
39929 +cat confdefs.h >>conftest.$ac_ext
39930 +cat >>conftest.$ac_ext <<_ACEOF
39931 +/* end confdefs.h.  */
39932 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39933 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39934 +#define $ac_func innocuous_$ac_func
39935 +
39936 +/* System header to define __stub macros and hopefully few prototypes,
39937 +    which can conflict with char $ac_func (); below.
39938 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39939 +    <limits.h> exists even on freestanding compilers.  */
39940 +
39941 +#ifdef __STDC__
39942 +# include <limits.h>
39943 +#else
39944 +# include <assert.h>
39945 +#endif
39946 +
39947 +#undef $ac_func
39948 +
39949 +/* Override any gcc2 internal prototype to avoid an error.  */
39950 +#ifdef __cplusplus
39951 +extern "C"
39952 +{
39953 +#endif
39954 +/* We use char because int might match the return type of a gcc2
39955 +   builtin and then its argument prototype would still apply.  */
39956 +char $ac_func ();
39957 +/* The GNU C library defines this for functions which it implements
39958 +    to always fail with ENOSYS.  Some functions are actually named
39959 +    something starting with __ and the normal name is an alias.  */
39960 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39961 +choke me
39962 +#else
39963 +char (*f) () = $ac_func;
39964 +#endif
39965 +#ifdef __cplusplus
39966 +}
39967 +#endif
39968 +
39969 +int
39970 +main ()
39971 +{
39972 +return f != $ac_func;
39973 +  ;
39974 +  return 0;
39975 +}
39976 +_ACEOF
39977 +rm -f conftest.$ac_objext conftest$ac_exeext
39978 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39979 +  (eval $ac_link) 2>conftest.er1
39980 +  ac_status=$?
39981 +  grep -v '^ *+' conftest.er1 >conftest.err
39982 +  rm -f conftest.er1
39983 +  cat conftest.err >&5
39984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985 +  (exit $ac_status); } &&
39986 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39988 +  (eval $ac_try) 2>&5
39989 +  ac_status=$?
39990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 +  (exit $ac_status); }; } &&
39992 +        { ac_try='test -s conftest$ac_exeext'
39993 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 +  (eval $ac_try) 2>&5
39995 +  ac_status=$?
39996 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 +  (exit $ac_status); }; }; then
39998 +  eval "$as_ac_var=yes"
39999 +else
40000 +  echo "$as_me: failed program was:" >&5
40001 +sed 's/^/| /' conftest.$ac_ext >&5
40002 +
40003 +eval "$as_ac_var=no"
40004 +fi
40005 +rm -f conftest.err conftest.$ac_objext \
40006 +      conftest$ac_exeext conftest.$ac_ext
40007 +fi
40008 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40009 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40010 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40011 +  cat >>confdefs.h <<_ACEOF
40012 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40013 +_ACEOF
40014 +
40015 +fi
40016 +done
40017 +
40018 +
40019 +
40020 +
40021 +
40022 +for ac_header in stdlib.h sys/time.h unistd.h
40023 +do
40024 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40025 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40026 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
40027 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40028 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40029 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40030 +fi
40031 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40032 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40033 +else
40034 +  # Is the header compilable?
40035 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
40036 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40037 +cat >conftest.$ac_ext <<_ACEOF
40038 +/* confdefs.h.  */
40039 +_ACEOF
40040 +cat confdefs.h >>conftest.$ac_ext
40041 +cat >>conftest.$ac_ext <<_ACEOF
40042 +/* end confdefs.h.  */
40043 +$ac_includes_default
40044 +#include <$ac_header>
40045 +_ACEOF
40046 +rm -f conftest.$ac_objext
40047 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40048 +  (eval $ac_compile) 2>conftest.er1
40049 +  ac_status=$?
40050 +  grep -v '^ *+' conftest.er1 >conftest.err
40051 +  rm -f conftest.er1
40052 +  cat conftest.err >&5
40053 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 +  (exit $ac_status); } &&
40055 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40056 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 +  (eval $ac_try) 2>&5
40058 +  ac_status=$?
40059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 +  (exit $ac_status); }; } &&
40061 +        { ac_try='test -s conftest.$ac_objext'
40062 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063 +  (eval $ac_try) 2>&5
40064 +  ac_status=$?
40065 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 +  (exit $ac_status); }; }; then
40067 +  ac_header_compiler=yes
40068 +else
40069 +  echo "$as_me: failed program was:" >&5
40070 +sed 's/^/| /' conftest.$ac_ext >&5
40071 +
40072 +ac_header_compiler=no
40073 +fi
40074 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40075 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40076 +echo "${ECHO_T}$ac_header_compiler" >&6
40077 +
40078 +# Is the header present?
40079 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
40080 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40081 +cat >conftest.$ac_ext <<_ACEOF
40082 +/* confdefs.h.  */
40083 +_ACEOF
40084 +cat confdefs.h >>conftest.$ac_ext
40085 +cat >>conftest.$ac_ext <<_ACEOF
40086 +/* end confdefs.h.  */
40087 +#include <$ac_header>
40088 +_ACEOF
40089 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40090 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40091 +  ac_status=$?
40092 +  grep -v '^ *+' conftest.er1 >conftest.err
40093 +  rm -f conftest.er1
40094 +  cat conftest.err >&5
40095 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 +  (exit $ac_status); } >/dev/null; then
40097 +  if test -s conftest.err; then
40098 +    ac_cpp_err=$ac_c_preproc_warn_flag
40099 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40100 +  else
40101 +    ac_cpp_err=
40102 +  fi
40103 +else
40104 +  ac_cpp_err=yes
40105 +fi
40106 +if test -z "$ac_cpp_err"; then
40107 +  ac_header_preproc=yes
40108 +else
40109 +  echo "$as_me: failed program was:" >&5
40110 +sed 's/^/| /' conftest.$ac_ext >&5
40111 +
40112 +  ac_header_preproc=no
40113 +fi
40114 +rm -f conftest.err conftest.$ac_ext
40115 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40116 +echo "${ECHO_T}$ac_header_preproc" >&6
40117 +
40118 +# So?  What about this header?
40119 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40120 +  yes:no: )
40121 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40122 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40123 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40124 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40125 +    ac_header_preproc=yes
40126 +    ;;
40127 +  no:yes:* )
40128 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40129 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40130 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40131 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40132 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40133 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40134 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40135 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40136 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40137 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40138 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40139 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40140 +    (
40141 +      cat <<\_ASBOX
40142 +## ------------------------------------------ ##
40143 +## Report this to the AC_PACKAGE_NAME lists.  ##
40144 +## ------------------------------------------ ##
40145 +_ASBOX
40146 +    ) |
40147 +      sed "s/^/$as_me: WARNING:     /" >&2
40148 +    ;;
40149 +esac
40150 +echo "$as_me:$LINENO: checking for $ac_header" >&5
40151 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40152 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
40153 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40154 +else
40155 +  eval "$as_ac_Header=\$ac_header_preproc"
40156 +fi
40157 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40158 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40159 +
40160 +fi
40161 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
40162 +  cat >>confdefs.h <<_ACEOF
40163 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40164 +_ACEOF
40165 +
40166 +fi
40167 +
40168 +done
40169 +
40170 +
40171 +for ac_func in alarm
40172 +do
40173 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40174 +echo "$as_me:$LINENO: checking for $ac_func" >&5
40175 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40176 +if eval "test \"\${$as_ac_var+set}\" = set"; then
40177 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40178 +else
40179 +  cat >conftest.$ac_ext <<_ACEOF
40180 +/* confdefs.h.  */
40181 +_ACEOF
40182 +cat confdefs.h >>conftest.$ac_ext
40183 +cat >>conftest.$ac_ext <<_ACEOF
40184 +/* end confdefs.h.  */
40185 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40186 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40187 +#define $ac_func innocuous_$ac_func
40188 +
40189 +/* System header to define __stub macros and hopefully few prototypes,
40190 +    which can conflict with char $ac_func (); below.
40191 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40192 +    <limits.h> exists even on freestanding compilers.  */
40193 +
40194 +#ifdef __STDC__
40195 +# include <limits.h>
40196 +#else
40197 +# include <assert.h>
40198 +#endif
40199 +
40200 +#undef $ac_func
40201 +
40202 +/* Override any gcc2 internal prototype to avoid an error.  */
40203 +#ifdef __cplusplus
40204 +extern "C"
40205 +{
40206 +#endif
40207 +/* We use char because int might match the return type of a gcc2
40208 +   builtin and then its argument prototype would still apply.  */
40209 +char $ac_func ();
40210 +/* The GNU C library defines this for functions which it implements
40211 +    to always fail with ENOSYS.  Some functions are actually named
40212 +    something starting with __ and the normal name is an alias.  */
40213 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40214 +choke me
40215 +#else
40216 +char (*f) () = $ac_func;
40217 +#endif
40218 +#ifdef __cplusplus
40219 +}
40220 +#endif
40221 +
40222 +int
40223 +main ()
40224 +{
40225 +return f != $ac_func;
40226 +  ;
40227 +  return 0;
40228 +}
40229 +_ACEOF
40230 +rm -f conftest.$ac_objext conftest$ac_exeext
40231 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40232 +  (eval $ac_link) 2>conftest.er1
40233 +  ac_status=$?
40234 +  grep -v '^ *+' conftest.er1 >conftest.err
40235 +  rm -f conftest.er1
40236 +  cat conftest.err >&5
40237 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238 +  (exit $ac_status); } &&
40239 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40240 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 +  (eval $ac_try) 2>&5
40242 +  ac_status=$?
40243 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 +  (exit $ac_status); }; } &&
40245 +        { ac_try='test -s conftest$ac_exeext'
40246 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40247 +  (eval $ac_try) 2>&5
40248 +  ac_status=$?
40249 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250 +  (exit $ac_status); }; }; then
40251 +  eval "$as_ac_var=yes"
40252 +else
40253 +  echo "$as_me: failed program was:" >&5
40254 +sed 's/^/| /' conftest.$ac_ext >&5
40255 +
40256 +eval "$as_ac_var=no"
40257 +fi
40258 +rm -f conftest.err conftest.$ac_objext \
40259 +      conftest$ac_exeext conftest.$ac_ext
40260 +fi
40261 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40262 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40263 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40264 +  cat >>confdefs.h <<_ACEOF
40265 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40266 +_ACEOF
40267 +
40268 +fi
40269 +done
40270 +
40271 +echo "$as_me:$LINENO: checking for working mktime" >&5
40272 +echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
40273 +if test "${ac_cv_func_working_mktime+set}" = set; then
40274 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40275 +else
40276 +  if test "$cross_compiling" = yes; then
40277 +  ac_cv_func_working_mktime=no
40278 +else
40279 +  cat >conftest.$ac_ext <<_ACEOF
40280 +/* confdefs.h.  */
40281 +_ACEOF
40282 +cat confdefs.h >>conftest.$ac_ext
40283 +cat >>conftest.$ac_ext <<_ACEOF
40284 +/* end confdefs.h.  */
40285 +/* Test program from Paul Eggert and Tony Leneis.  */
40286 +#if TIME_WITH_SYS_TIME
40287 +# include <sys/time.h>
40288 +# include <time.h>
40289 +#else
40290 +# if HAVE_SYS_TIME_H
40291 +#  include <sys/time.h>
40292 +# else
40293 +#  include <time.h>
40294 +# endif
40295 +#endif
40296 +
40297 +#if HAVE_STDLIB_H
40298 +# include <stdlib.h>
40299 +#endif
40300 +
40301 +#if HAVE_UNISTD_H
40302 +# include <unistd.h>
40303 +#endif
40304 +
40305 +#if !HAVE_ALARM
40306 +# define alarm(X) /* empty */
40307 +#endif
40308 +
40309 +/* Work around redefinition to rpl_putenv by other config tests.  */
40310 +#undef putenv
40311 +
40312 +static time_t time_t_max;
40313 +static time_t time_t_min;
40314 +
40315 +/* Values we'll use to set the TZ environment variable.  */
40316 +static char *tz_strings[] = {
40317 +  (char *) 0, "TZ=GMT0", "TZ=JST-9",
40318 +  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
40319 +};
40320 +#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
40321 +
40322 +/* Fail if mktime fails to convert a date in the spring-forward gap.
40323 +   Based on a problem report from Andreas Jaeger.  */
40324 +static void
40325 +spring_forward_gap ()
40326 +{
40327 +  /* glibc (up to about 1998-10-07) failed this test. */
40328 +  struct tm tm;
40329 +
40330 +  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
40331 +     instead of "TZ=America/Vancouver" in order to detect the bug even
40332 +     on systems that don't support the Olson extension, or don't have the
40333 +     full zoneinfo tables installed.  */
40334 +  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
40335 +
40336 +  tm.tm_year = 98;
40337 +  tm.tm_mon = 3;
40338 +  tm.tm_mday = 5;
40339 +  tm.tm_hour = 2;
40340 +  tm.tm_min = 0;
40341 +  tm.tm_sec = 0;
40342 +  tm.tm_isdst = -1;
40343 +  if (mktime (&tm) == (time_t)-1)
40344 +    exit (1);
40345 +}
40346 +
40347 +static void
40348 +mktime_test1 (now)
40349 +     time_t now;
40350 +{
40351 +  struct tm *lt;
40352 +  if ((lt = localtime (&now)) && mktime (lt) != now)
40353 +    exit (1);
40354 +}
40355 +
40356 +static void
40357 +mktime_test (now)
40358 +     time_t now;
40359 +{
40360 +  mktime_test1 (now);
40361 +  mktime_test1 ((time_t) (time_t_max - now));
40362 +  mktime_test1 ((time_t) (time_t_min + now));
40363 +}
40364 +
40365 +static void
40366 +irix_6_4_bug ()
40367 +{
40368 +  /* Based on code from Ariel Faigon.  */
40369 +  struct tm tm;
40370 +  tm.tm_year = 96;
40371 +  tm.tm_mon = 3;
40372 +  tm.tm_mday = 0;
40373 +  tm.tm_hour = 0;
40374 +  tm.tm_min = 0;
40375 +  tm.tm_sec = 0;
40376 +  tm.tm_isdst = -1;
40377 +  mktime (&tm);
40378 +  if (tm.tm_mon != 2 || tm.tm_mday != 31)
40379 +    exit (1);
40380 +}
40381 +
40382 +static void
40383 +bigtime_test (j)
40384 +     int j;
40385 +{
40386 +  struct tm tm;
40387 +  time_t now;
40388 +  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
40389 +  now = mktime (&tm);
40390 +  if (now != (time_t) -1)
40391 +    {
40392 +      struct tm *lt = localtime (&now);
40393 +      if (! (lt
40394 +            && lt->tm_year == tm.tm_year
40395 +            && lt->tm_mon == tm.tm_mon
40396 +            && lt->tm_mday == tm.tm_mday
40397 +            && lt->tm_hour == tm.tm_hour
40398 +            && lt->tm_min == tm.tm_min
40399 +            && lt->tm_sec == tm.tm_sec
40400 +            && lt->tm_yday == tm.tm_yday
40401 +            && lt->tm_wday == tm.tm_wday
40402 +            && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
40403 +                 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
40404 +       exit (1);
40405 +    }
40406 +}
40407 +
40408 +int
40409 +main ()
40410 +{
40411 +  time_t t, delta;
40412 +  int i, j;
40413 +
40414 +  /* This test makes some buggy mktime implementations loop.
40415 +     Give up after 60 seconds; a mktime slower than that
40416 +     isn't worth using anyway.  */
40417 +  alarm (60);
40418 +
40419 +  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
40420 +    continue;
40421 +  time_t_max--;
40422 +  if ((time_t) -1 < 0)
40423 +    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
40424 +      continue;
40425 +  delta = time_t_max / 997; /* a suitable prime number */
40426 +  for (i = 0; i < N_STRINGS; i++)
40427 +    {
40428 +      if (tz_strings[i])
40429 +       putenv (tz_strings[i]);
40430 +
40431 +      for (t = 0; t <= time_t_max - delta; t += delta)
40432 +       mktime_test (t);
40433 +      mktime_test ((time_t) 1);
40434 +      mktime_test ((time_t) (60 * 60));
40435 +      mktime_test ((time_t) (60 * 60 * 24));
40436 +
40437 +      for (j = 1; 0 < j; j *= 2)
40438 +       bigtime_test (j);
40439 +      bigtime_test (j - 1);
40440 +    }
40441 +  irix_6_4_bug ();
40442 +  spring_forward_gap ();
40443 +  exit (0);
40444 +}
40445 +_ACEOF
40446 +rm -f conftest$ac_exeext
40447 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40448 +  (eval $ac_link) 2>&5
40449 +  ac_status=$?
40450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40452 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40453 +  (eval $ac_try) 2>&5
40454 +  ac_status=$?
40455 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 +  (exit $ac_status); }; }; then
40457 +  ac_cv_func_working_mktime=yes
40458 +else
40459 +  echo "$as_me: program exited with status $ac_status" >&5
40460 +echo "$as_me: failed program was:" >&5
40461 +sed 's/^/| /' conftest.$ac_ext >&5
40462 +
40463 +( exit $ac_status )
40464 +ac_cv_func_working_mktime=no
40465 +fi
40466 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40467 +fi
40468 +fi
40469 +echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
40470 +echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
40471 +if test $ac_cv_func_working_mktime = no; then
40472 +  case $LIBOBJS in
40473 +    "mktime.$ac_objext"   | \
40474 +  *" mktime.$ac_objext"   | \
40475 +    "mktime.$ac_objext "* | \
40476 +  *" mktime.$ac_objext "* ) ;;
40477 +  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
40478 +esac
40479 +
40480 +fi
40481 +
40482 +if test "$ac_cv_func_working_mktime" = no; then
40483 +  cat >>confdefs.h <<\_ACEOF
40484 +#define BROKEN_MKTIME 1
40485 +_ACEOF
40486 +
40487 +fi
40488 +
40489 +ac_have_func=no # yes means we've found a way to get the load average.
40490 +
40491 +# Make sure getloadavg.c is where it belongs, at configure-time.
40492 +test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
40493 +  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
40494 +echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
40495 +   { (exit 1); exit 1; }; }
40496 +
40497 +ac_save_LIBS=$LIBS
40498 +
40499 +# Check for getloadavg, but be sure not to touch the cache variable.
40500 +(echo "$as_me:$LINENO: checking for getloadavg" >&5
40501 +echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
40502 +if test "${ac_cv_func_getloadavg+set}" = set; then
40503 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40504 +else
40505 +  cat >conftest.$ac_ext <<_ACEOF
40506 +/* confdefs.h.  */
40507 +_ACEOF
40508 +cat confdefs.h >>conftest.$ac_ext
40509 +cat >>conftest.$ac_ext <<_ACEOF
40510 +/* end confdefs.h.  */
40511 +/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
40512 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40513 +#define getloadavg innocuous_getloadavg
40514 +
40515 +/* System header to define __stub macros and hopefully few prototypes,
40516 +    which can conflict with char getloadavg (); below.
40517 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40518 +    <limits.h> exists even on freestanding compilers.  */
40519 +
40520 +#ifdef __STDC__
40521 +# include <limits.h>
40522 +#else
40523 +# include <assert.h>
40524 +#endif
40525 +
40526 +#undef getloadavg
40527 +
40528 +/* Override any gcc2 internal prototype to avoid an error.  */
40529 +#ifdef __cplusplus
40530 +extern "C"
40531 +{
40532 +#endif
40533 +/* We use char because int might match the return type of a gcc2
40534 +   builtin and then its argument prototype would still apply.  */
40535 +char getloadavg ();
40536 +/* The GNU C library defines this for functions which it implements
40537 +    to always fail with ENOSYS.  Some functions are actually named
40538 +    something starting with __ and the normal name is an alias.  */
40539 +#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
40540 +choke me
40541 +#else
40542 +char (*f) () = getloadavg;
40543 +#endif
40544 +#ifdef __cplusplus
40545 +}
40546 +#endif
40547 +
40548 +int
40549 +main ()
40550 +{
40551 +return f != getloadavg;
40552 +  ;
40553 +  return 0;
40554 +}
40555 +_ACEOF
40556 +rm -f conftest.$ac_objext conftest$ac_exeext
40557 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40558 +  (eval $ac_link) 2>conftest.er1
40559 +  ac_status=$?
40560 +  grep -v '^ *+' conftest.er1 >conftest.err
40561 +  rm -f conftest.er1
40562 +  cat conftest.err >&5
40563 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 +  (exit $ac_status); } &&
40565 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40566 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567 +  (eval $ac_try) 2>&5
40568 +  ac_status=$?
40569 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 +  (exit $ac_status); }; } &&
40571 +        { ac_try='test -s conftest$ac_exeext'
40572 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 +  (eval $ac_try) 2>&5
40574 +  ac_status=$?
40575 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 +  (exit $ac_status); }; }; then
40577 +  ac_cv_func_getloadavg=yes
40578 +else
40579 +  echo "$as_me: failed program was:" >&5
40580 +sed 's/^/| /' conftest.$ac_ext >&5
40581 +
40582 +ac_cv_func_getloadavg=no
40583 +fi
40584 +rm -f conftest.err conftest.$ac_objext \
40585 +      conftest$ac_exeext conftest.$ac_ext
40586 +fi
40587 +echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
40588 +echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
40589 +if test $ac_cv_func_getloadavg = yes; then
40590 +  exit 0
40591 +else
40592 +  exit 1
40593 +fi
40594 +) && ac_have_func=yes
40595 +
40596 +# On HPUX9, an unprivileged user can get load averages through this function.
40597 +
40598 +for ac_func in pstat_getdynamic
40599 +do
40600 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40601 +echo "$as_me:$LINENO: checking for $ac_func" >&5
40602 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40603 +if eval "test \"\${$as_ac_var+set}\" = set"; then
40604 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40605 +else
40606 +  cat >conftest.$ac_ext <<_ACEOF
40607 +/* confdefs.h.  */
40608 +_ACEOF
40609 +cat confdefs.h >>conftest.$ac_ext
40610 +cat >>conftest.$ac_ext <<_ACEOF
40611 +/* end confdefs.h.  */
40612 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40613 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40614 +#define $ac_func innocuous_$ac_func
40615 +
40616 +/* System header to define __stub macros and hopefully few prototypes,
40617 +    which can conflict with char $ac_func (); below.
40618 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40619 +    <limits.h> exists even on freestanding compilers.  */
40620 +
40621 +#ifdef __STDC__
40622 +# include <limits.h>
40623 +#else
40624 +# include <assert.h>
40625 +#endif
40626 +
40627 +#undef $ac_func
40628 +
40629 +/* Override any gcc2 internal prototype to avoid an error.  */
40630 +#ifdef __cplusplus
40631 +extern "C"
40632 +{
40633 +#endif
40634 +/* We use char because int might match the return type of a gcc2
40635 +   builtin and then its argument prototype would still apply.  */
40636 +char $ac_func ();
40637 +/* The GNU C library defines this for functions which it implements
40638 +    to always fail with ENOSYS.  Some functions are actually named
40639 +    something starting with __ and the normal name is an alias.  */
40640 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40641 +choke me
40642 +#else
40643 +char (*f) () = $ac_func;
40644 +#endif
40645 +#ifdef __cplusplus
40646 +}
40647 +#endif
40648 +
40649 +int
40650 +main ()
40651 +{
40652 +return f != $ac_func;
40653 +  ;
40654 +  return 0;
40655 +}
40656 +_ACEOF
40657 +rm -f conftest.$ac_objext conftest$ac_exeext
40658 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40659 +  (eval $ac_link) 2>conftest.er1
40660 +  ac_status=$?
40661 +  grep -v '^ *+' conftest.er1 >conftest.err
40662 +  rm -f conftest.er1
40663 +  cat conftest.err >&5
40664 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 +  (exit $ac_status); } &&
40666 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40667 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 +  (eval $ac_try) 2>&5
40669 +  ac_status=$?
40670 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 +  (exit $ac_status); }; } &&
40672 +        { ac_try='test -s conftest$ac_exeext'
40673 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40674 +  (eval $ac_try) 2>&5
40675 +  ac_status=$?
40676 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677 +  (exit $ac_status); }; }; then
40678 +  eval "$as_ac_var=yes"
40679 +else
40680 +  echo "$as_me: failed program was:" >&5
40681 +sed 's/^/| /' conftest.$ac_ext >&5
40682 +
40683 +eval "$as_ac_var=no"
40684 +fi
40685 +rm -f conftest.err conftest.$ac_objext \
40686 +      conftest$ac_exeext conftest.$ac_ext
40687 +fi
40688 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40689 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40690 +if test `eval echo '${'$as_ac_var'}'` = yes; then
40691 +  cat >>confdefs.h <<_ACEOF
40692 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40693 +_ACEOF
40694 +
40695 +fi
40696 +done
40697 +
40698 +
40699 +# Solaris has libkstat which does not require root.
40700 +
40701 +echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
40702 +echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
40703 +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
40704 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40705 +else
40706 +  ac_check_lib_save_LIBS=$LIBS
40707 +LIBS="-lkstat  $LIBS"
40708 +cat >conftest.$ac_ext <<_ACEOF
40709 +/* confdefs.h.  */
40710 +_ACEOF
40711 +cat confdefs.h >>conftest.$ac_ext
40712 +cat >>conftest.$ac_ext <<_ACEOF
40713 +/* end confdefs.h.  */
40714 +
40715 +/* Override any gcc2 internal prototype to avoid an error.  */
40716 +#ifdef __cplusplus
40717 +extern "C"
40718 +#endif
40719 +/* We use char because int might match the return type of a gcc2
40720 +   builtin and then its argument prototype would still apply.  */
40721 +char kstat_open ();
40722 +int
40723 +main ()
40724 +{
40725 +kstat_open ();
40726 +  ;
40727 +  return 0;
40728 +}
40729 +_ACEOF
40730 +rm -f conftest.$ac_objext conftest$ac_exeext
40731 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40732 +  (eval $ac_link) 2>conftest.er1
40733 +  ac_status=$?
40734 +  grep -v '^ *+' conftest.er1 >conftest.err
40735 +  rm -f conftest.er1
40736 +  cat conftest.err >&5
40737 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 +  (exit $ac_status); } &&
40739 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40740 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40741 +  (eval $ac_try) 2>&5
40742 +  ac_status=$?
40743 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 +  (exit $ac_status); }; } &&
40745 +        { ac_try='test -s conftest$ac_exeext'
40746 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40747 +  (eval $ac_try) 2>&5
40748 +  ac_status=$?
40749 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750 +  (exit $ac_status); }; }; then
40751 +  ac_cv_lib_kstat_kstat_open=yes
40752 +else
40753 +  echo "$as_me: failed program was:" >&5
40754 +sed 's/^/| /' conftest.$ac_ext >&5
40755 +
40756 +ac_cv_lib_kstat_kstat_open=no
40757 +fi
40758 +rm -f conftest.err conftest.$ac_objext \
40759 +      conftest$ac_exeext conftest.$ac_ext
40760 +LIBS=$ac_check_lib_save_LIBS
40761 +fi
40762 +echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
40763 +echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
40764 +if test $ac_cv_lib_kstat_kstat_open = yes; then
40765 +  cat >>confdefs.h <<_ACEOF
40766 +#define HAVE_LIBKSTAT 1
40767 +_ACEOF
40768 +
40769 +  LIBS="-lkstat $LIBS"
40770 +
40771 +fi
40772 +
40773 +test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
40774 +
40775 +# Some systems with -lutil have (and need) -lkvm as well, some do not.
40776 +# On Solaris, -lkvm requires nlist from -lelf, so check that first
40777 +# to get the right answer into the cache.
40778 +# For kstat on solaris, we need libelf to force the definition of SVR4 below.
40779 +if test $ac_have_func = no; then
40780 +  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
40781 +echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
40782 +if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
40783 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40784 +else
40785 +  ac_check_lib_save_LIBS=$LIBS
40786 +LIBS="-lelf  $LIBS"
40787 +cat >conftest.$ac_ext <<_ACEOF
40788 +/* confdefs.h.  */
40789 +_ACEOF
40790 +cat confdefs.h >>conftest.$ac_ext
40791 +cat >>conftest.$ac_ext <<_ACEOF
40792 +/* end confdefs.h.  */
40793 +
40794 +/* Override any gcc2 internal prototype to avoid an error.  */
40795 +#ifdef __cplusplus
40796 +extern "C"
40797 +#endif
40798 +/* We use char because int might match the return type of a gcc2
40799 +   builtin and then its argument prototype would still apply.  */
40800 +char elf_begin ();
40801 +int
40802 +main ()
40803 +{
40804 +elf_begin ();
40805 +  ;
40806 +  return 0;
40807 +}
40808 +_ACEOF
40809 +rm -f conftest.$ac_objext conftest$ac_exeext
40810 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40811 +  (eval $ac_link) 2>conftest.er1
40812 +  ac_status=$?
40813 +  grep -v '^ *+' conftest.er1 >conftest.err
40814 +  rm -f conftest.er1
40815 +  cat conftest.err >&5
40816 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817 +  (exit $ac_status); } &&
40818 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40819 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40820 +  (eval $ac_try) 2>&5
40821 +  ac_status=$?
40822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40823 +  (exit $ac_status); }; } &&
40824 +        { ac_try='test -s conftest$ac_exeext'
40825 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40826 +  (eval $ac_try) 2>&5
40827 +  ac_status=$?
40828 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 +  (exit $ac_status); }; }; then
40830 +  ac_cv_lib_elf_elf_begin=yes
40831 +else
40832 +  echo "$as_me: failed program was:" >&5
40833 +sed 's/^/| /' conftest.$ac_ext >&5
40834 +
40835 +ac_cv_lib_elf_elf_begin=no
40836 +fi
40837 +rm -f conftest.err conftest.$ac_objext \
40838 +      conftest$ac_exeext conftest.$ac_ext
40839 +LIBS=$ac_check_lib_save_LIBS
40840 +fi
40841 +echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
40842 +echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
40843 +if test $ac_cv_lib_elf_elf_begin = yes; then
40844 +  LIBS="-lelf $LIBS"
40845 +fi
40846 +
40847 +fi
40848 +if test $ac_have_func = no; then
40849 +  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
40850 +echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
40851 +if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
40852 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40853 +else
40854 +  ac_check_lib_save_LIBS=$LIBS
40855 +LIBS="-lkvm  $LIBS"
40856 +cat >conftest.$ac_ext <<_ACEOF
40857 +/* confdefs.h.  */
40858 +_ACEOF
40859 +cat confdefs.h >>conftest.$ac_ext
40860 +cat >>conftest.$ac_ext <<_ACEOF
40861 +/* end confdefs.h.  */
40862 +
40863 +/* Override any gcc2 internal prototype to avoid an error.  */
40864 +#ifdef __cplusplus
40865 +extern "C"
40866 +#endif
40867 +/* We use char because int might match the return type of a gcc2
40868 +   builtin and then its argument prototype would still apply.  */
40869 +char kvm_open ();
40870 +int
40871 +main ()
40872 +{
40873 +kvm_open ();
40874 +  ;
40875 +  return 0;
40876 +}
40877 +_ACEOF
40878 +rm -f conftest.$ac_objext conftest$ac_exeext
40879 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40880 +  (eval $ac_link) 2>conftest.er1
40881 +  ac_status=$?
40882 +  grep -v '^ *+' conftest.er1 >conftest.err
40883 +  rm -f conftest.er1
40884 +  cat conftest.err >&5
40885 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886 +  (exit $ac_status); } &&
40887 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40888 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40889 +  (eval $ac_try) 2>&5
40890 +  ac_status=$?
40891 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40892 +  (exit $ac_status); }; } &&
40893 +        { ac_try='test -s conftest$ac_exeext'
40894 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40895 +  (eval $ac_try) 2>&5
40896 +  ac_status=$?
40897 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 +  (exit $ac_status); }; }; then
40899 +  ac_cv_lib_kvm_kvm_open=yes
40900 +else
40901 +  echo "$as_me: failed program was:" >&5
40902 +sed 's/^/| /' conftest.$ac_ext >&5
40903 +
40904 +ac_cv_lib_kvm_kvm_open=no
40905 +fi
40906 +rm -f conftest.err conftest.$ac_objext \
40907 +      conftest$ac_exeext conftest.$ac_ext
40908 +LIBS=$ac_check_lib_save_LIBS
40909 +fi
40910 +echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
40911 +echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
40912 +if test $ac_cv_lib_kvm_kvm_open = yes; then
40913 +  LIBS="-lkvm $LIBS"
40914 +fi
40915 +
40916 +  # Check for the 4.4BSD definition of getloadavg.
40917 +  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
40918 +echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
40919 +if test "${ac_cv_lib_util_getloadavg+set}" = set; then
40920 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40921 +else
40922 +  ac_check_lib_save_LIBS=$LIBS
40923 +LIBS="-lutil  $LIBS"
40924 +cat >conftest.$ac_ext <<_ACEOF
40925 +/* confdefs.h.  */
40926 +_ACEOF
40927 +cat confdefs.h >>conftest.$ac_ext
40928 +cat >>conftest.$ac_ext <<_ACEOF
40929 +/* end confdefs.h.  */
40930 +
40931 +/* Override any gcc2 internal prototype to avoid an error.  */
40932 +#ifdef __cplusplus
40933 +extern "C"
40934 +#endif
40935 +/* We use char because int might match the return type of a gcc2
40936 +   builtin and then its argument prototype would still apply.  */
40937 +char getloadavg ();
40938 +int
40939 +main ()
40940 +{
40941 +getloadavg ();
40942 +  ;
40943 +  return 0;
40944 +}
40945 +_ACEOF
40946 +rm -f conftest.$ac_objext conftest$ac_exeext
40947 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40948 +  (eval $ac_link) 2>conftest.er1
40949 +  ac_status=$?
40950 +  grep -v '^ *+' conftest.er1 >conftest.err
40951 +  rm -f conftest.er1
40952 +  cat conftest.err >&5
40953 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 +  (exit $ac_status); } &&
40955 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40956 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40957 +  (eval $ac_try) 2>&5
40958 +  ac_status=$?
40959 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 +  (exit $ac_status); }; } &&
40961 +        { ac_try='test -s conftest$ac_exeext'
40962 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 +  (eval $ac_try) 2>&5
40964 +  ac_status=$?
40965 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 +  (exit $ac_status); }; }; then
40967 +  ac_cv_lib_util_getloadavg=yes
40968 +else
40969 +  echo "$as_me: failed program was:" >&5
40970 +sed 's/^/| /' conftest.$ac_ext >&5
40971 +
40972 +ac_cv_lib_util_getloadavg=no
40973 +fi
40974 +rm -f conftest.err conftest.$ac_objext \
40975 +      conftest$ac_exeext conftest.$ac_ext
40976 +LIBS=$ac_check_lib_save_LIBS
40977 +fi
40978 +echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
40979 +echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
40980 +if test $ac_cv_lib_util_getloadavg = yes; then
40981 +  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
40982 +fi
40983 +
40984 +fi
40985 +
40986 +if test $ac_have_func = no; then
40987 +  # There is a commonly available library for RS/6000 AIX.
40988 +  # Since it is not a standard part of AIX, it might be installed locally.
40989 +  ac_getloadavg_LIBS=$LIBS
40990 +  LIBS="-L/usr/local/lib $LIBS"
40991 +  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
40992 +echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
40993 +if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
40994 +  echo $ECHO_N "(cached) $ECHO_C" >&6
40995 +else
40996 +  ac_check_lib_save_LIBS=$LIBS
40997 +LIBS="-lgetloadavg  $LIBS"
40998 +cat >conftest.$ac_ext <<_ACEOF
40999 +/* confdefs.h.  */
41000 +_ACEOF
41001 +cat confdefs.h >>conftest.$ac_ext
41002 +cat >>conftest.$ac_ext <<_ACEOF
41003 +/* end confdefs.h.  */
41004 +
41005 +/* Override any gcc2 internal prototype to avoid an error.  */
41006 +#ifdef __cplusplus
41007 +extern "C"
41008 +#endif
41009 +/* We use char because int might match the return type of a gcc2
41010 +   builtin and then its argument prototype would still apply.  */
41011 +char getloadavg ();
41012 +int
41013 +main ()
41014 +{
41015 +getloadavg ();
41016 +  ;
41017 +  return 0;
41018 +}
41019 +_ACEOF
41020 +rm -f conftest.$ac_objext conftest$ac_exeext
41021 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41022 +  (eval $ac_link) 2>conftest.er1
41023 +  ac_status=$?
41024 +  grep -v '^ *+' conftest.er1 >conftest.err
41025 +  rm -f conftest.er1
41026 +  cat conftest.err >&5
41027 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 +  (exit $ac_status); } &&
41029 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41030 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41031 +  (eval $ac_try) 2>&5
41032 +  ac_status=$?
41033 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 +  (exit $ac_status); }; } &&
41035 +        { ac_try='test -s conftest$ac_exeext'
41036 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41037 +  (eval $ac_try) 2>&5
41038 +  ac_status=$?
41039 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41040 +  (exit $ac_status); }; }; then
41041 +  ac_cv_lib_getloadavg_getloadavg=yes
41042 +else
41043 +  echo "$as_me: failed program was:" >&5
41044 +sed 's/^/| /' conftest.$ac_ext >&5
41045 +
41046 +ac_cv_lib_getloadavg_getloadavg=no
41047 +fi
41048 +rm -f conftest.err conftest.$ac_objext \
41049 +      conftest$ac_exeext conftest.$ac_ext
41050 +LIBS=$ac_check_lib_save_LIBS
41051 +fi
41052 +echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
41053 +echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
41054 +if test $ac_cv_lib_getloadavg_getloadavg = yes; then
41055 +  LIBS="-lgetloadavg $LIBS"
41056 +else
41057 +  LIBS=$ac_getloadavg_LIBS
41058 +fi
41059 +
41060 +fi
41061 +
41062 +# Make sure it is really in the library, if we think we found it,
41063 +# otherwise set up the replacement function.
41064 +
41065 +for ac_func in getloadavg
41066 +do
41067 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41068 +echo "$as_me:$LINENO: checking for $ac_func" >&5
41069 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41070 +if eval "test \"\${$as_ac_var+set}\" = set"; then
41071 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41072 +else
41073 +  cat >conftest.$ac_ext <<_ACEOF
41074 +/* confdefs.h.  */
41075 +_ACEOF
41076 +cat confdefs.h >>conftest.$ac_ext
41077 +cat >>conftest.$ac_ext <<_ACEOF
41078 +/* end confdefs.h.  */
41079 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41080 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41081 +#define $ac_func innocuous_$ac_func
41082 +
41083 +/* System header to define __stub macros and hopefully few prototypes,
41084 +    which can conflict with char $ac_func (); below.
41085 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41086 +    <limits.h> exists even on freestanding compilers.  */
41087 +
41088 +#ifdef __STDC__
41089 +# include <limits.h>
41090 +#else
41091 +# include <assert.h>
41092 +#endif
41093 +
41094 +#undef $ac_func
41095 +
41096 +/* Override any gcc2 internal prototype to avoid an error.  */
41097 +#ifdef __cplusplus
41098 +extern "C"
41099 +{
41100 +#endif
41101 +/* We use char because int might match the return type of a gcc2
41102 +   builtin and then its argument prototype would still apply.  */
41103 +char $ac_func ();
41104 +/* The GNU C library defines this for functions which it implements
41105 +    to always fail with ENOSYS.  Some functions are actually named
41106 +    something starting with __ and the normal name is an alias.  */
41107 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41108 +choke me
41109 +#else
41110 +char (*f) () = $ac_func;
41111 +#endif
41112 +#ifdef __cplusplus
41113 +}
41114 +#endif
41115 +
41116 +int
41117 +main ()
41118 +{
41119 +return f != $ac_func;
41120 +  ;
41121 +  return 0;
41122 +}
41123 +_ACEOF
41124 +rm -f conftest.$ac_objext conftest$ac_exeext
41125 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126 +  (eval $ac_link) 2>conftest.er1
41127 +  ac_status=$?
41128 +  grep -v '^ *+' conftest.er1 >conftest.err
41129 +  rm -f conftest.er1
41130 +  cat conftest.err >&5
41131 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 +  (exit $ac_status); } &&
41133 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41134 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41135 +  (eval $ac_try) 2>&5
41136 +  ac_status=$?
41137 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138 +  (exit $ac_status); }; } &&
41139 +        { ac_try='test -s conftest$ac_exeext'
41140 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 +  (eval $ac_try) 2>&5
41142 +  ac_status=$?
41143 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 +  (exit $ac_status); }; }; then
41145 +  eval "$as_ac_var=yes"
41146 +else
41147 +  echo "$as_me: failed program was:" >&5
41148 +sed 's/^/| /' conftest.$ac_ext >&5
41149 +
41150 +eval "$as_ac_var=no"
41151 +fi
41152 +rm -f conftest.err conftest.$ac_objext \
41153 +      conftest$ac_exeext conftest.$ac_ext
41154 +fi
41155 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41156 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41157 +if test `eval echo '${'$as_ac_var'}'` = yes; then
41158 +  cat >>confdefs.h <<_ACEOF
41159 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41160 +_ACEOF
41161 +
41162 +else
41163 +  case $LIBOBJS in
41164 +    "getloadavg.$ac_objext"   | \
41165 +  *" getloadavg.$ac_objext"   | \
41166 +    "getloadavg.$ac_objext "* | \
41167 +  *" getloadavg.$ac_objext "* ) ;;
41168 +  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
41169 +esac
41170 +
41171 +
41172 +cat >>confdefs.h <<\_ACEOF
41173 +#define C_GETLOADAVG 1
41174 +_ACEOF
41175 +
41176 +# Figure out what our getloadavg.c needs.
41177 +ac_have_func=no
41178 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41179 +  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
41180 +echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
41181 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41182 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41183 +fi
41184 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
41185 +echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
41186 +else
41187 +  # Is the header compilable?
41188 +echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
41189 +echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
41190 +cat >conftest.$ac_ext <<_ACEOF
41191 +/* confdefs.h.  */
41192 +_ACEOF
41193 +cat confdefs.h >>conftest.$ac_ext
41194 +cat >>conftest.$ac_ext <<_ACEOF
41195 +/* end confdefs.h.  */
41196 +$ac_includes_default
41197 +#include <sys/dg_sys_info.h>
41198 +_ACEOF
41199 +rm -f conftest.$ac_objext
41200 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41201 +  (eval $ac_compile) 2>conftest.er1
41202 +  ac_status=$?
41203 +  grep -v '^ *+' conftest.er1 >conftest.err
41204 +  rm -f conftest.er1
41205 +  cat conftest.err >&5
41206 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 +  (exit $ac_status); } &&
41208 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41209 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41210 +  (eval $ac_try) 2>&5
41211 +  ac_status=$?
41212 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 +  (exit $ac_status); }; } &&
41214 +        { ac_try='test -s conftest.$ac_objext'
41215 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41216 +  (eval $ac_try) 2>&5
41217 +  ac_status=$?
41218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 +  (exit $ac_status); }; }; then
41220 +  ac_header_compiler=yes
41221 +else
41222 +  echo "$as_me: failed program was:" >&5
41223 +sed 's/^/| /' conftest.$ac_ext >&5
41224 +
41225 +ac_header_compiler=no
41226 +fi
41227 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41228 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41229 +echo "${ECHO_T}$ac_header_compiler" >&6
41230 +
41231 +# Is the header present?
41232 +echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
41233 +echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
41234 +cat >conftest.$ac_ext <<_ACEOF
41235 +/* confdefs.h.  */
41236 +_ACEOF
41237 +cat confdefs.h >>conftest.$ac_ext
41238 +cat >>conftest.$ac_ext <<_ACEOF
41239 +/* end confdefs.h.  */
41240 +#include <sys/dg_sys_info.h>
41241 +_ACEOF
41242 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41243 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41244 +  ac_status=$?
41245 +  grep -v '^ *+' conftest.er1 >conftest.err
41246 +  rm -f conftest.er1
41247 +  cat conftest.err >&5
41248 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 +  (exit $ac_status); } >/dev/null; then
41250 +  if test -s conftest.err; then
41251 +    ac_cpp_err=$ac_c_preproc_warn_flag
41252 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41253 +  else
41254 +    ac_cpp_err=
41255 +  fi
41256 +else
41257 +  ac_cpp_err=yes
41258 +fi
41259 +if test -z "$ac_cpp_err"; then
41260 +  ac_header_preproc=yes
41261 +else
41262 +  echo "$as_me: failed program was:" >&5
41263 +sed 's/^/| /' conftest.$ac_ext >&5
41264 +
41265 +  ac_header_preproc=no
41266 +fi
41267 +rm -f conftest.err conftest.$ac_ext
41268 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41269 +echo "${ECHO_T}$ac_header_preproc" >&6
41270 +
41271 +# So?  What about this header?
41272 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41273 +  yes:no: )
41274 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
41275 +echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41276 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
41277 +echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
41278 +    ac_header_preproc=yes
41279 +    ;;
41280 +  no:yes:* )
41281 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
41282 +echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
41283 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
41284 +echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
41285 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
41286 +echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
41287 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
41288 +echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41289 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
41290 +echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
41291 +    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
41292 +echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
41293 +    (
41294 +      cat <<\_ASBOX
41295 +## ------------------------------------------ ##
41296 +## Report this to the AC_PACKAGE_NAME lists.  ##
41297 +## ------------------------------------------ ##
41298 +_ASBOX
41299 +    ) |
41300 +      sed "s/^/$as_me: WARNING:     /" >&2
41301 +    ;;
41302 +esac
41303 +echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
41304 +echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
41305 +if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
41306 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41307 +else
41308 +  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
41309 +fi
41310 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
41311 +echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
41312 +
41313 +fi
41314 +if test $ac_cv_header_sys_dg_sys_info_h = yes; then
41315 +  ac_have_func=yes
41316 +
41317 +cat >>confdefs.h <<\_ACEOF
41318 +#define DGUX 1
41319 +_ACEOF
41320 +
41321 +
41322 +echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
41323 +echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
41324 +if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
41325 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41326 +else
41327 +  ac_check_lib_save_LIBS=$LIBS
41328 +LIBS="-ldgc  $LIBS"
41329 +cat >conftest.$ac_ext <<_ACEOF
41330 +/* confdefs.h.  */
41331 +_ACEOF
41332 +cat confdefs.h >>conftest.$ac_ext
41333 +cat >>conftest.$ac_ext <<_ACEOF
41334 +/* end confdefs.h.  */
41335 +
41336 +/* Override any gcc2 internal prototype to avoid an error.  */
41337 +#ifdef __cplusplus
41338 +extern "C"
41339 +#endif
41340 +/* We use char because int might match the return type of a gcc2
41341 +   builtin and then its argument prototype would still apply.  */
41342 +char dg_sys_info ();
41343 +int
41344 +main ()
41345 +{
41346 +dg_sys_info ();
41347 +  ;
41348 +  return 0;
41349 +}
41350 +_ACEOF
41351 +rm -f conftest.$ac_objext conftest$ac_exeext
41352 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41353 +  (eval $ac_link) 2>conftest.er1
41354 +  ac_status=$?
41355 +  grep -v '^ *+' conftest.er1 >conftest.err
41356 +  rm -f conftest.er1
41357 +  cat conftest.err >&5
41358 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 +  (exit $ac_status); } &&
41360 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41361 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362 +  (eval $ac_try) 2>&5
41363 +  ac_status=$?
41364 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 +  (exit $ac_status); }; } &&
41366 +        { ac_try='test -s conftest$ac_exeext'
41367 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 +  (eval $ac_try) 2>&5
41369 +  ac_status=$?
41370 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 +  (exit $ac_status); }; }; then
41372 +  ac_cv_lib_dgc_dg_sys_info=yes
41373 +else
41374 +  echo "$as_me: failed program was:" >&5
41375 +sed 's/^/| /' conftest.$ac_ext >&5
41376 +
41377 +ac_cv_lib_dgc_dg_sys_info=no
41378 +fi
41379 +rm -f conftest.err conftest.$ac_objext \
41380 +      conftest$ac_exeext conftest.$ac_ext
41381 +LIBS=$ac_check_lib_save_LIBS
41382 +fi
41383 +echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
41384 +echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
41385 +if test $ac_cv_lib_dgc_dg_sys_info = yes; then
41386 +  cat >>confdefs.h <<_ACEOF
41387 +#define HAVE_LIBDGC 1
41388 +_ACEOF
41389 +
41390 +  LIBS="-ldgc $LIBS"
41391 +
41392 +fi
41393 +
41394 +fi
41395 +
41396 +
41397 +
41398 +if test "${ac_cv_header_locale_h+set}" = set; then
41399 +  echo "$as_me:$LINENO: checking for locale.h" >&5
41400 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
41401 +if test "${ac_cv_header_locale_h+set}" = set; then
41402 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41403 +fi
41404 +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
41405 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6
41406 +else
41407 +  # Is the header compilable?
41408 +echo "$as_me:$LINENO: checking locale.h usability" >&5
41409 +echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
41410 +cat >conftest.$ac_ext <<_ACEOF
41411 +/* confdefs.h.  */
41412 +_ACEOF
41413 +cat confdefs.h >>conftest.$ac_ext
41414 +cat >>conftest.$ac_ext <<_ACEOF
41415 +/* end confdefs.h.  */
41416 +$ac_includes_default
41417 +#include <locale.h>
41418 +_ACEOF
41419 +rm -f conftest.$ac_objext
41420 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41421 +  (eval $ac_compile) 2>conftest.er1
41422 +  ac_status=$?
41423 +  grep -v '^ *+' conftest.er1 >conftest.err
41424 +  rm -f conftest.er1
41425 +  cat conftest.err >&5
41426 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 +  (exit $ac_status); } &&
41428 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41429 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41430 +  (eval $ac_try) 2>&5
41431 +  ac_status=$?
41432 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 +  (exit $ac_status); }; } &&
41434 +        { ac_try='test -s conftest.$ac_objext'
41435 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41436 +  (eval $ac_try) 2>&5
41437 +  ac_status=$?
41438 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 +  (exit $ac_status); }; }; then
41440 +  ac_header_compiler=yes
41441 +else
41442 +  echo "$as_me: failed program was:" >&5
41443 +sed 's/^/| /' conftest.$ac_ext >&5
41444 +
41445 +ac_header_compiler=no
41446 +fi
41447 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41448 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41449 +echo "${ECHO_T}$ac_header_compiler" >&6
41450 +
41451 +# Is the header present?
41452 +echo "$as_me:$LINENO: checking locale.h presence" >&5
41453 +echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
41454 +cat >conftest.$ac_ext <<_ACEOF
41455 +/* confdefs.h.  */
41456 +_ACEOF
41457 +cat confdefs.h >>conftest.$ac_ext
41458 +cat >>conftest.$ac_ext <<_ACEOF
41459 +/* end confdefs.h.  */
41460 +#include <locale.h>
41461 +_ACEOF
41462 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41463 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41464 +  ac_status=$?
41465 +  grep -v '^ *+' conftest.er1 >conftest.err
41466 +  rm -f conftest.er1
41467 +  cat conftest.err >&5
41468 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469 +  (exit $ac_status); } >/dev/null; then
41470 +  if test -s conftest.err; then
41471 +    ac_cpp_err=$ac_c_preproc_warn_flag
41472 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41473 +  else
41474 +    ac_cpp_err=
41475 +  fi
41476 +else
41477 +  ac_cpp_err=yes
41478 +fi
41479 +if test -z "$ac_cpp_err"; then
41480 +  ac_header_preproc=yes
41481 +else
41482 +  echo "$as_me: failed program was:" >&5
41483 +sed 's/^/| /' conftest.$ac_ext >&5
41484 +
41485 +  ac_header_preproc=no
41486 +fi
41487 +rm -f conftest.err conftest.$ac_ext
41488 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41489 +echo "${ECHO_T}$ac_header_preproc" >&6
41490 +
41491 +# So?  What about this header?
41492 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41493 +  yes:no: )
41494 +    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
41495 +echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41496 +    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
41497 +echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
41498 +    ac_header_preproc=yes
41499 +    ;;
41500 +  no:yes:* )
41501 +    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
41502 +echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
41503 +    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
41504 +echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
41505 +    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
41506 +echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
41507 +    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
41508 +echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41509 +    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
41510 +echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
41511 +    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
41512 +echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
41513 +    (
41514 +      cat <<\_ASBOX
41515 +## ------------------------------------------ ##
41516 +## Report this to the AC_PACKAGE_NAME lists.  ##
41517 +## ------------------------------------------ ##
41518 +_ASBOX
41519 +    ) |
41520 +      sed "s/^/$as_me: WARNING:     /" >&2
41521 +    ;;
41522 +esac
41523 +echo "$as_me:$LINENO: checking for locale.h" >&5
41524 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
41525 +if test "${ac_cv_header_locale_h+set}" = set; then
41526 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41527 +else
41528 +  ac_cv_header_locale_h=$ac_header_preproc
41529 +fi
41530 +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
41531 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6
41532 +
41533 +fi
41534 +
41535 +
41536 +
41537 +for ac_func in setlocale
41538 +do
41539 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41540 +echo "$as_me:$LINENO: checking for $ac_func" >&5
41541 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41542 +if eval "test \"\${$as_ac_var+set}\" = set"; then
41543 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41544 +else
41545 +  cat >conftest.$ac_ext <<_ACEOF
41546 +/* confdefs.h.  */
41547 +_ACEOF
41548 +cat confdefs.h >>conftest.$ac_ext
41549 +cat >>conftest.$ac_ext <<_ACEOF
41550 +/* end confdefs.h.  */
41551 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41552 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41553 +#define $ac_func innocuous_$ac_func
41554 +
41555 +/* System header to define __stub macros and hopefully few prototypes,
41556 +    which can conflict with char $ac_func (); below.
41557 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41558 +    <limits.h> exists even on freestanding compilers.  */
41559 +
41560 +#ifdef __STDC__
41561 +# include <limits.h>
41562 +#else
41563 +# include <assert.h>
41564 +#endif
41565 +
41566 +#undef $ac_func
41567 +
41568 +/* Override any gcc2 internal prototype to avoid an error.  */
41569 +#ifdef __cplusplus
41570 +extern "C"
41571 +{
41572 +#endif
41573 +/* We use char because int might match the return type of a gcc2
41574 +   builtin and then its argument prototype would still apply.  */
41575 +char $ac_func ();
41576 +/* The GNU C library defines this for functions which it implements
41577 +    to always fail with ENOSYS.  Some functions are actually named
41578 +    something starting with __ and the normal name is an alias.  */
41579 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41580 +choke me
41581 +#else
41582 +char (*f) () = $ac_func;
41583 +#endif
41584 +#ifdef __cplusplus
41585 +}
41586 +#endif
41587 +
41588 +int
41589 +main ()
41590 +{
41591 +return f != $ac_func;
41592 +  ;
41593 +  return 0;
41594 +}
41595 +_ACEOF
41596 +rm -f conftest.$ac_objext conftest$ac_exeext
41597 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41598 +  (eval $ac_link) 2>conftest.er1
41599 +  ac_status=$?
41600 +  grep -v '^ *+' conftest.er1 >conftest.err
41601 +  rm -f conftest.er1
41602 +  cat conftest.err >&5
41603 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604 +  (exit $ac_status); } &&
41605 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41606 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41607 +  (eval $ac_try) 2>&5
41608 +  ac_status=$?
41609 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 +  (exit $ac_status); }; } &&
41611 +        { ac_try='test -s conftest$ac_exeext'
41612 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41613 +  (eval $ac_try) 2>&5
41614 +  ac_status=$?
41615 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 +  (exit $ac_status); }; }; then
41617 +  eval "$as_ac_var=yes"
41618 +else
41619 +  echo "$as_me: failed program was:" >&5
41620 +sed 's/^/| /' conftest.$ac_ext >&5
41621 +
41622 +eval "$as_ac_var=no"
41623 +fi
41624 +rm -f conftest.err conftest.$ac_objext \
41625 +      conftest$ac_exeext conftest.$ac_ext
41626 +fi
41627 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41628 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41629 +if test `eval echo '${'$as_ac_var'}'` = yes; then
41630 +  cat >>confdefs.h <<_ACEOF
41631 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41632 +_ACEOF
41633 +
41634 +fi
41635 +done
41636 +
41637 +
41638 +# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
41639 +# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
41640 +# Irix 4.0.5F has the header but not the library.
41641 +if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
41642 +  ac_have_func=yes
41643 +
41644 +cat >>confdefs.h <<\_ACEOF
41645 +#define SVR4 1
41646 +_ACEOF
41647 +
41648 +fi
41649 +
41650 +if test $ac_have_func = no; then
41651 +  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41652 +  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
41653 +echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
41654 +if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41655 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41656 +fi
41657 +echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
41658 +echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
41659 +else
41660 +  # Is the header compilable?
41661 +echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
41662 +echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
41663 +cat >conftest.$ac_ext <<_ACEOF
41664 +/* confdefs.h.  */
41665 +_ACEOF
41666 +cat confdefs.h >>conftest.$ac_ext
41667 +cat >>conftest.$ac_ext <<_ACEOF
41668 +/* end confdefs.h.  */
41669 +$ac_includes_default
41670 +#include <inq_stats/cpustats.h>
41671 +_ACEOF
41672 +rm -f conftest.$ac_objext
41673 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41674 +  (eval $ac_compile) 2>conftest.er1
41675 +  ac_status=$?
41676 +  grep -v '^ *+' conftest.er1 >conftest.err
41677 +  rm -f conftest.er1
41678 +  cat conftest.err >&5
41679 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680 +  (exit $ac_status); } &&
41681 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41682 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41683 +  (eval $ac_try) 2>&5
41684 +  ac_status=$?
41685 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 +  (exit $ac_status); }; } &&
41687 +        { ac_try='test -s conftest.$ac_objext'
41688 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41689 +  (eval $ac_try) 2>&5
41690 +  ac_status=$?
41691 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692 +  (exit $ac_status); }; }; then
41693 +  ac_header_compiler=yes
41694 +else
41695 +  echo "$as_me: failed program was:" >&5
41696 +sed 's/^/| /' conftest.$ac_ext >&5
41697 +
41698 +ac_header_compiler=no
41699 +fi
41700 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41701 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41702 +echo "${ECHO_T}$ac_header_compiler" >&6
41703 +
41704 +# Is the header present?
41705 +echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
41706 +echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
41707 +cat >conftest.$ac_ext <<_ACEOF
41708 +/* confdefs.h.  */
41709 +_ACEOF
41710 +cat confdefs.h >>conftest.$ac_ext
41711 +cat >>conftest.$ac_ext <<_ACEOF
41712 +/* end confdefs.h.  */
41713 +#include <inq_stats/cpustats.h>
41714 +_ACEOF
41715 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41716 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41717 +  ac_status=$?
41718 +  grep -v '^ *+' conftest.er1 >conftest.err
41719 +  rm -f conftest.er1
41720 +  cat conftest.err >&5
41721 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 +  (exit $ac_status); } >/dev/null; then
41723 +  if test -s conftest.err; then
41724 +    ac_cpp_err=$ac_c_preproc_warn_flag
41725 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41726 +  else
41727 +    ac_cpp_err=
41728 +  fi
41729 +else
41730 +  ac_cpp_err=yes
41731 +fi
41732 +if test -z "$ac_cpp_err"; then
41733 +  ac_header_preproc=yes
41734 +else
41735 +  echo "$as_me: failed program was:" >&5
41736 +sed 's/^/| /' conftest.$ac_ext >&5
41737 +
41738 +  ac_header_preproc=no
41739 +fi
41740 +rm -f conftest.err conftest.$ac_ext
41741 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41742 +echo "${ECHO_T}$ac_header_preproc" >&6
41743 +
41744 +# So?  What about this header?
41745 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41746 +  yes:no: )
41747 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
41748 +echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41749 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
41750 +echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
41751 +    ac_header_preproc=yes
41752 +    ;;
41753 +  no:yes:* )
41754 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
41755 +echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
41756 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
41757 +echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
41758 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
41759 +echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
41760 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
41761 +echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41762 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
41763 +echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
41764 +    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
41765 +echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
41766 +    (
41767 +      cat <<\_ASBOX
41768 +## ------------------------------------------ ##
41769 +## Report this to the AC_PACKAGE_NAME lists.  ##
41770 +## ------------------------------------------ ##
41771 +_ASBOX
41772 +    ) |
41773 +      sed "s/^/$as_me: WARNING:     /" >&2
41774 +    ;;
41775 +esac
41776 +echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
41777 +echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
41778 +if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
41779 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41780 +else
41781 +  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
41782 +fi
41783 +echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
41784 +echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
41785 +
41786 +fi
41787 +if test $ac_cv_header_inq_stats_cpustats_h = yes; then
41788 +  ac_have_func=yes
41789 +
41790 +cat >>confdefs.h <<\_ACEOF
41791 +#define UMAX 1
41792 +_ACEOF
41793 +
41794 +
41795 +cat >>confdefs.h <<\_ACEOF
41796 +#define UMAX4_3 1
41797 +_ACEOF
41798 +
41799 +fi
41800 +
41801 +
41802 +fi
41803 +
41804 +if test $ac_have_func = no; then
41805 +  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41806 +  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
41807 +echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
41808 +if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41809 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41810 +fi
41811 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
41812 +echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
41813 +else
41814 +  # Is the header compilable?
41815 +echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
41816 +echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
41817 +cat >conftest.$ac_ext <<_ACEOF
41818 +/* confdefs.h.  */
41819 +_ACEOF
41820 +cat confdefs.h >>conftest.$ac_ext
41821 +cat >>conftest.$ac_ext <<_ACEOF
41822 +/* end confdefs.h.  */
41823 +$ac_includes_default
41824 +#include <sys/cpustats.h>
41825 +_ACEOF
41826 +rm -f conftest.$ac_objext
41827 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41828 +  (eval $ac_compile) 2>conftest.er1
41829 +  ac_status=$?
41830 +  grep -v '^ *+' conftest.er1 >conftest.err
41831 +  rm -f conftest.er1
41832 +  cat conftest.err >&5
41833 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 +  (exit $ac_status); } &&
41835 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41836 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41837 +  (eval $ac_try) 2>&5
41838 +  ac_status=$?
41839 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 +  (exit $ac_status); }; } &&
41841 +        { ac_try='test -s conftest.$ac_objext'
41842 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 +  (eval $ac_try) 2>&5
41844 +  ac_status=$?
41845 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 +  (exit $ac_status); }; }; then
41847 +  ac_header_compiler=yes
41848 +else
41849 +  echo "$as_me: failed program was:" >&5
41850 +sed 's/^/| /' conftest.$ac_ext >&5
41851 +
41852 +ac_header_compiler=no
41853 +fi
41854 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41855 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41856 +echo "${ECHO_T}$ac_header_compiler" >&6
41857 +
41858 +# Is the header present?
41859 +echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
41860 +echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
41861 +cat >conftest.$ac_ext <<_ACEOF
41862 +/* confdefs.h.  */
41863 +_ACEOF
41864 +cat confdefs.h >>conftest.$ac_ext
41865 +cat >>conftest.$ac_ext <<_ACEOF
41866 +/* end confdefs.h.  */
41867 +#include <sys/cpustats.h>
41868 +_ACEOF
41869 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41870 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41871 +  ac_status=$?
41872 +  grep -v '^ *+' conftest.er1 >conftest.err
41873 +  rm -f conftest.er1
41874 +  cat conftest.err >&5
41875 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876 +  (exit $ac_status); } >/dev/null; then
41877 +  if test -s conftest.err; then
41878 +    ac_cpp_err=$ac_c_preproc_warn_flag
41879 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41880 +  else
41881 +    ac_cpp_err=
41882 +  fi
41883 +else
41884 +  ac_cpp_err=yes
41885 +fi
41886 +if test -z "$ac_cpp_err"; then
41887 +  ac_header_preproc=yes
41888 +else
41889 +  echo "$as_me: failed program was:" >&5
41890 +sed 's/^/| /' conftest.$ac_ext >&5
41891 +
41892 +  ac_header_preproc=no
41893 +fi
41894 +rm -f conftest.err conftest.$ac_ext
41895 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41896 +echo "${ECHO_T}$ac_header_preproc" >&6
41897 +
41898 +# So?  What about this header?
41899 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41900 +  yes:no: )
41901 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
41902 +echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41903 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
41904 +echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
41905 +    ac_header_preproc=yes
41906 +    ;;
41907 +  no:yes:* )
41908 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
41909 +echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
41910 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
41911 +echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
41912 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
41913 +echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
41914 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
41915 +echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41916 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
41917 +echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
41918 +    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
41919 +echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
41920 +    (
41921 +      cat <<\_ASBOX
41922 +## ------------------------------------------ ##
41923 +## Report this to the AC_PACKAGE_NAME lists.  ##
41924 +## ------------------------------------------ ##
41925 +_ASBOX
41926 +    ) |
41927 +      sed "s/^/$as_me: WARNING:     /" >&2
41928 +    ;;
41929 +esac
41930 +echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
41931 +echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
41932 +if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
41933 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41934 +else
41935 +  ac_cv_header_sys_cpustats_h=$ac_header_preproc
41936 +fi
41937 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
41938 +echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
41939 +
41940 +fi
41941 +if test $ac_cv_header_sys_cpustats_h = yes; then
41942 +  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
41943 +#define UMAX 1
41944 +_ACEOF
41945 +
41946 +fi
41947 +
41948 +
41949 +fi
41950 +
41951 +if test $ac_have_func = no; then
41952 +
41953 +for ac_header in mach/mach.h
41954 +do
41955 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41956 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
41957 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
41958 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41959 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
41960 +  echo $ECHO_N "(cached) $ECHO_C" >&6
41961 +fi
41962 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41963 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41964 +else
41965 +  # Is the header compilable?
41966 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
41967 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41968 +cat >conftest.$ac_ext <<_ACEOF
41969 +/* confdefs.h.  */
41970 +_ACEOF
41971 +cat confdefs.h >>conftest.$ac_ext
41972 +cat >>conftest.$ac_ext <<_ACEOF
41973 +/* end confdefs.h.  */
41974 +$ac_includes_default
41975 +#include <$ac_header>
41976 +_ACEOF
41977 +rm -f conftest.$ac_objext
41978 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41979 +  (eval $ac_compile) 2>conftest.er1
41980 +  ac_status=$?
41981 +  grep -v '^ *+' conftest.er1 >conftest.err
41982 +  rm -f conftest.er1
41983 +  cat conftest.err >&5
41984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985 +  (exit $ac_status); } &&
41986 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41988 +  (eval $ac_try) 2>&5
41989 +  ac_status=$?
41990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41991 +  (exit $ac_status); }; } &&
41992 +        { ac_try='test -s conftest.$ac_objext'
41993 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41994 +  (eval $ac_try) 2>&5
41995 +  ac_status=$?
41996 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997 +  (exit $ac_status); }; }; then
41998 +  ac_header_compiler=yes
41999 +else
42000 +  echo "$as_me: failed program was:" >&5
42001 +sed 's/^/| /' conftest.$ac_ext >&5
42002 +
42003 +ac_header_compiler=no
42004 +fi
42005 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42006 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42007 +echo "${ECHO_T}$ac_header_compiler" >&6
42008 +
42009 +# Is the header present?
42010 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
42011 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42012 +cat >conftest.$ac_ext <<_ACEOF
42013 +/* confdefs.h.  */
42014 +_ACEOF
42015 +cat confdefs.h >>conftest.$ac_ext
42016 +cat >>conftest.$ac_ext <<_ACEOF
42017 +/* end confdefs.h.  */
42018 +#include <$ac_header>
42019 +_ACEOF
42020 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42021 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42022 +  ac_status=$?
42023 +  grep -v '^ *+' conftest.er1 >conftest.err
42024 +  rm -f conftest.er1
42025 +  cat conftest.err >&5
42026 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 +  (exit $ac_status); } >/dev/null; then
42028 +  if test -s conftest.err; then
42029 +    ac_cpp_err=$ac_c_preproc_warn_flag
42030 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42031 +  else
42032 +    ac_cpp_err=
42033 +  fi
42034 +else
42035 +  ac_cpp_err=yes
42036 +fi
42037 +if test -z "$ac_cpp_err"; then
42038 +  ac_header_preproc=yes
42039 +else
42040 +  echo "$as_me: failed program was:" >&5
42041 +sed 's/^/| /' conftest.$ac_ext >&5
42042 +
42043 +  ac_header_preproc=no
42044 +fi
42045 +rm -f conftest.err conftest.$ac_ext
42046 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42047 +echo "${ECHO_T}$ac_header_preproc" >&6
42048 +
42049 +# So?  What about this header?
42050 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42051 +  yes:no: )
42052 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42053 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42054 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42055 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42056 +    ac_header_preproc=yes
42057 +    ;;
42058 +  no:yes:* )
42059 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42060 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42061 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42062 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42063 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42064 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42065 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42066 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42067 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42068 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42069 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42070 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42071 +    (
42072 +      cat <<\_ASBOX
42073 +## ------------------------------------------ ##
42074 +## Report this to the AC_PACKAGE_NAME lists.  ##
42075 +## ------------------------------------------ ##
42076 +_ASBOX
42077 +    ) |
42078 +      sed "s/^/$as_me: WARNING:     /" >&2
42079 +    ;;
42080 +esac
42081 +echo "$as_me:$LINENO: checking for $ac_header" >&5
42082 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42083 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42084 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42085 +else
42086 +  eval "$as_ac_Header=\$ac_header_preproc"
42087 +fi
42088 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42089 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42090 +
42091 +fi
42092 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
42093 +  cat >>confdefs.h <<_ACEOF
42094 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42095 +_ACEOF
42096 +
42097 +fi
42098 +
42099 +done
42100 +
42101 +fi
42102 +
42103 +
42104 +for ac_header in nlist.h
42105 +do
42106 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42107 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42108 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
42109 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42110 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42111 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42112 +fi
42113 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42114 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42115 +else
42116 +  # Is the header compilable?
42117 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
42118 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42119 +cat >conftest.$ac_ext <<_ACEOF
42120 +/* confdefs.h.  */
42121 +_ACEOF
42122 +cat confdefs.h >>conftest.$ac_ext
42123 +cat >>conftest.$ac_ext <<_ACEOF
42124 +/* end confdefs.h.  */
42125 +$ac_includes_default
42126 +#include <$ac_header>
42127 +_ACEOF
42128 +rm -f conftest.$ac_objext
42129 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42130 +  (eval $ac_compile) 2>conftest.er1
42131 +  ac_status=$?
42132 +  grep -v '^ *+' conftest.er1 >conftest.err
42133 +  rm -f conftest.er1
42134 +  cat conftest.err >&5
42135 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136 +  (exit $ac_status); } &&
42137 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42138 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139 +  (eval $ac_try) 2>&5
42140 +  ac_status=$?
42141 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 +  (exit $ac_status); }; } &&
42143 +        { ac_try='test -s conftest.$ac_objext'
42144 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145 +  (eval $ac_try) 2>&5
42146 +  ac_status=$?
42147 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148 +  (exit $ac_status); }; }; then
42149 +  ac_header_compiler=yes
42150 +else
42151 +  echo "$as_me: failed program was:" >&5
42152 +sed 's/^/| /' conftest.$ac_ext >&5
42153 +
42154 +ac_header_compiler=no
42155 +fi
42156 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42157 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42158 +echo "${ECHO_T}$ac_header_compiler" >&6
42159 +
42160 +# Is the header present?
42161 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
42162 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42163 +cat >conftest.$ac_ext <<_ACEOF
42164 +/* confdefs.h.  */
42165 +_ACEOF
42166 +cat confdefs.h >>conftest.$ac_ext
42167 +cat >>conftest.$ac_ext <<_ACEOF
42168 +/* end confdefs.h.  */
42169 +#include <$ac_header>
42170 +_ACEOF
42171 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42172 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42173 +  ac_status=$?
42174 +  grep -v '^ *+' conftest.er1 >conftest.err
42175 +  rm -f conftest.er1
42176 +  cat conftest.err >&5
42177 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178 +  (exit $ac_status); } >/dev/null; then
42179 +  if test -s conftest.err; then
42180 +    ac_cpp_err=$ac_c_preproc_warn_flag
42181 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42182 +  else
42183 +    ac_cpp_err=
42184 +  fi
42185 +else
42186 +  ac_cpp_err=yes
42187 +fi
42188 +if test -z "$ac_cpp_err"; then
42189 +  ac_header_preproc=yes
42190 +else
42191 +  echo "$as_me: failed program was:" >&5
42192 +sed 's/^/| /' conftest.$ac_ext >&5
42193 +
42194 +  ac_header_preproc=no
42195 +fi
42196 +rm -f conftest.err conftest.$ac_ext
42197 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42198 +echo "${ECHO_T}$ac_header_preproc" >&6
42199 +
42200 +# So?  What about this header?
42201 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42202 +  yes:no: )
42203 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42204 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42205 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42206 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42207 +    ac_header_preproc=yes
42208 +    ;;
42209 +  no:yes:* )
42210 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42211 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42212 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42213 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42214 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42215 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42216 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42217 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42218 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42219 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42220 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42221 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42222 +    (
42223 +      cat <<\_ASBOX
42224 +## ------------------------------------------ ##
42225 +## Report this to the AC_PACKAGE_NAME lists.  ##
42226 +## ------------------------------------------ ##
42227 +_ASBOX
42228 +    ) |
42229 +      sed "s/^/$as_me: WARNING:     /" >&2
42230 +    ;;
42231 +esac
42232 +echo "$as_me:$LINENO: checking for $ac_header" >&5
42233 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42234 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
42235 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42236 +else
42237 +  eval "$as_ac_Header=\$ac_header_preproc"
42238 +fi
42239 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42240 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42241 +
42242 +fi
42243 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
42244 +  cat >>confdefs.h <<_ACEOF
42245 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42246 +_ACEOF
42247 + echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
42248 +echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
42249 +if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
42250 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42251 +else
42252 +  cat >conftest.$ac_ext <<_ACEOF
42253 +/* confdefs.h.  */
42254 +_ACEOF
42255 +cat confdefs.h >>conftest.$ac_ext
42256 +cat >>conftest.$ac_ext <<_ACEOF
42257 +/* end confdefs.h.  */
42258 +#include <nlist.h>
42259 +
42260 +int
42261 +main ()
42262 +{
42263 +static struct nlist ac_aggr;
42264 +if (ac_aggr.n_un.n_name)
42265 +return 0;
42266 +  ;
42267 +  return 0;
42268 +}
42269 +_ACEOF
42270 +rm -f conftest.$ac_objext
42271 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42272 +  (eval $ac_compile) 2>conftest.er1
42273 +  ac_status=$?
42274 +  grep -v '^ *+' conftest.er1 >conftest.err
42275 +  rm -f conftest.er1
42276 +  cat conftest.err >&5
42277 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 +  (exit $ac_status); } &&
42279 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42280 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42281 +  (eval $ac_try) 2>&5
42282 +  ac_status=$?
42283 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42284 +  (exit $ac_status); }; } &&
42285 +        { ac_try='test -s conftest.$ac_objext'
42286 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42287 +  (eval $ac_try) 2>&5
42288 +  ac_status=$?
42289 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 +  (exit $ac_status); }; }; then
42291 +  ac_cv_member_struct_nlist_n_un_n_name=yes
42292 +else
42293 +  echo "$as_me: failed program was:" >&5
42294 +sed 's/^/| /' conftest.$ac_ext >&5
42295 +
42296 +cat >conftest.$ac_ext <<_ACEOF
42297 +/* confdefs.h.  */
42298 +_ACEOF
42299 +cat confdefs.h >>conftest.$ac_ext
42300 +cat >>conftest.$ac_ext <<_ACEOF
42301 +/* end confdefs.h.  */
42302 +#include <nlist.h>
42303 +
42304 +int
42305 +main ()
42306 +{
42307 +static struct nlist ac_aggr;
42308 +if (sizeof ac_aggr.n_un.n_name)
42309 +return 0;
42310 +  ;
42311 +  return 0;
42312 +}
42313 +_ACEOF
42314 +rm -f conftest.$ac_objext
42315 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42316 +  (eval $ac_compile) 2>conftest.er1
42317 +  ac_status=$?
42318 +  grep -v '^ *+' conftest.er1 >conftest.err
42319 +  rm -f conftest.er1
42320 +  cat conftest.err >&5
42321 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 +  (exit $ac_status); } &&
42323 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42324 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42325 +  (eval $ac_try) 2>&5
42326 +  ac_status=$?
42327 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 +  (exit $ac_status); }; } &&
42329 +        { ac_try='test -s conftest.$ac_objext'
42330 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 +  (eval $ac_try) 2>&5
42332 +  ac_status=$?
42333 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 +  (exit $ac_status); }; }; then
42335 +  ac_cv_member_struct_nlist_n_un_n_name=yes
42336 +else
42337 +  echo "$as_me: failed program was:" >&5
42338 +sed 's/^/| /' conftest.$ac_ext >&5
42339 +
42340 +ac_cv_member_struct_nlist_n_un_n_name=no
42341 +fi
42342 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42343 +fi
42344 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42345 +fi
42346 +echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
42347 +echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
42348 +if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
42349 +
42350 +cat >>confdefs.h <<_ACEOF
42351 +#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
42352 +_ACEOF
42353 +
42354 +
42355 +cat >>confdefs.h <<\_ACEOF
42356 +#define NLIST_NAME_UNION 1
42357 +_ACEOF
42358 +
42359 +fi
42360 +
42361 +
42362 +fi
42363 +
42364 +done
42365 +
42366 +fi
42367 +done
42368 +
42369 +
42370 +# Some definitions of getloadavg require that the program be installed setgid.
42371 +echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
42372 +echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
42373 +if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
42374 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42375 +else
42376 +  cat >conftest.$ac_ext <<_ACEOF
42377 +/* confdefs.h.  */
42378 +_ACEOF
42379 +cat confdefs.h >>conftest.$ac_ext
42380 +cat >>conftest.$ac_ext <<_ACEOF
42381 +/* end confdefs.h.  */
42382 +#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
42383 +#ifdef LDAV_PRIVILEGED
42384 +Yowza Am I SETGID yet
42385 +#endif
42386 +_ACEOF
42387 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42388 +  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
42389 +  ac_cv_func_getloadavg_setgid=yes
42390 +else
42391 +  ac_cv_func_getloadavg_setgid=no
42392 +fi
42393 +rm -f conftest*
42394 +
42395 +fi
42396 +echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
42397 +echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
42398 +if test $ac_cv_func_getloadavg_setgid = yes; then
42399 +  NEED_SETGID=true
42400 +
42401 +cat >>confdefs.h <<\_ACEOF
42402 +#define GETLOADAVG_PRIVILEGED 1
42403 +_ACEOF
42404 +
42405 +else
42406 +  NEED_SETGID=false
42407 +fi
42408 +
42409 +if test $ac_cv_func_getloadavg_setgid = yes; then
42410 +  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
42411 +echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
42412 +if test "${ac_cv_group_kmem+set}" = set; then
42413 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42414 +else
42415 +   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
42416 +  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
42417 +  # If we got an error (system does not support symlinks), try without -L.
42418 +  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
42419 +  ac_cv_group_kmem=`echo $ac_ls_output \
42420 +    | sed -ne 's/[      ][      ]*/ /g;
42421 +              s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
42422 +              / /s/.* //;p;'`
42423 +
42424 +fi
42425 +echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
42426 +echo "${ECHO_T}$ac_cv_group_kmem" >&6
42427 +  KMEM_GROUP=$ac_cv_group_kmem
42428 +fi
42429 +if test "x$ac_save_LIBS" = x; then
42430 +  GETLOADAVG_LIBS=$LIBS
42431 +else
42432 +  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
42433 +fi
42434 +LIBS=$ac_save_LIBS
42435 +
42436 +
42437 +
42438 +echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
42439 +echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
42440 +if test "${ac_cv_sys_largefile_source+set}" = set; then
42441 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42442 +else
42443 +  while :; do
42444 +  ac_cv_sys_largefile_source=no
42445 +  cat >conftest.$ac_ext <<_ACEOF
42446 +/* confdefs.h.  */
42447 +_ACEOF
42448 +cat confdefs.h >>conftest.$ac_ext
42449 +cat >>conftest.$ac_ext <<_ACEOF
42450 +/* end confdefs.h.  */
42451 +#include <stdio.h>
42452 +int
42453 +main ()
42454 +{
42455 +return !fseeko;
42456 +  ;
42457 +  return 0;
42458 +}
42459 +_ACEOF
42460 +rm -f conftest.$ac_objext
42461 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42462 +  (eval $ac_compile) 2>conftest.er1
42463 +  ac_status=$?
42464 +  grep -v '^ *+' conftest.er1 >conftest.err
42465 +  rm -f conftest.er1
42466 +  cat conftest.err >&5
42467 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 +  (exit $ac_status); } &&
42469 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42470 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42471 +  (eval $ac_try) 2>&5
42472 +  ac_status=$?
42473 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42474 +  (exit $ac_status); }; } &&
42475 +        { ac_try='test -s conftest.$ac_objext'
42476 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42477 +  (eval $ac_try) 2>&5
42478 +  ac_status=$?
42479 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 +  (exit $ac_status); }; }; then
42481 +  break
42482 +else
42483 +  echo "$as_me: failed program was:" >&5
42484 +sed 's/^/| /' conftest.$ac_ext >&5
42485 +
42486 +fi
42487 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42488 +  cat >conftest.$ac_ext <<_ACEOF
42489 +/* confdefs.h.  */
42490 +_ACEOF
42491 +cat confdefs.h >>conftest.$ac_ext
42492 +cat >>conftest.$ac_ext <<_ACEOF
42493 +/* end confdefs.h.  */
42494 +#define _LARGEFILE_SOURCE 1
42495 +#include <stdio.h>
42496 +int
42497 +main ()
42498 +{
42499 +return !fseeko;
42500 +  ;
42501 +  return 0;
42502 +}
42503 +_ACEOF
42504 +rm -f conftest.$ac_objext
42505 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42506 +  (eval $ac_compile) 2>conftest.er1
42507 +  ac_status=$?
42508 +  grep -v '^ *+' conftest.er1 >conftest.err
42509 +  rm -f conftest.er1
42510 +  cat conftest.err >&5
42511 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42512 +  (exit $ac_status); } &&
42513 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42514 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515 +  (eval $ac_try) 2>&5
42516 +  ac_status=$?
42517 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518 +  (exit $ac_status); }; } &&
42519 +        { ac_try='test -s conftest.$ac_objext'
42520 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521 +  (eval $ac_try) 2>&5
42522 +  ac_status=$?
42523 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 +  (exit $ac_status); }; }; then
42525 +  ac_cv_sys_largefile_source=1; break
42526 +else
42527 +  echo "$as_me: failed program was:" >&5
42528 +sed 's/^/| /' conftest.$ac_ext >&5
42529 +
42530 +fi
42531 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42532 +  break
42533 +done
42534 +fi
42535 +echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
42536 +echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
42537 +if test "$ac_cv_sys_largefile_source" != no; then
42538 +
42539 +cat >>confdefs.h <<_ACEOF
42540 +#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
42541 +_ACEOF
42542 +
42543 +fi
42544 +rm -f conftest*
42545 +
42546 +# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
42547 +# in glibc 2.1.3, but that breaks too many other things.
42548 +# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
42549 +echo "$as_me:$LINENO: checking for fseeko" >&5
42550 +echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
42551 +if test "${ac_cv_func_fseeko+set}" = set; then
42552 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42553 +else
42554 +  cat >conftest.$ac_ext <<_ACEOF
42555 +/* confdefs.h.  */
42556 +_ACEOF
42557 +cat confdefs.h >>conftest.$ac_ext
42558 +cat >>conftest.$ac_ext <<_ACEOF
42559 +/* end confdefs.h.  */
42560 +#include <stdio.h>
42561 +int
42562 +main ()
42563 +{
42564 +return fseeko && fseeko (stdin, 0, 0);
42565 +  ;
42566 +  return 0;
42567 +}
42568 +_ACEOF
42569 +rm -f conftest.$ac_objext conftest$ac_exeext
42570 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42571 +  (eval $ac_link) 2>conftest.er1
42572 +  ac_status=$?
42573 +  grep -v '^ *+' conftest.er1 >conftest.err
42574 +  rm -f conftest.er1
42575 +  cat conftest.err >&5
42576 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577 +  (exit $ac_status); } &&
42578 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42579 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580 +  (eval $ac_try) 2>&5
42581 +  ac_status=$?
42582 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 +  (exit $ac_status); }; } &&
42584 +        { ac_try='test -s conftest$ac_exeext'
42585 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586 +  (eval $ac_try) 2>&5
42587 +  ac_status=$?
42588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 +  (exit $ac_status); }; }; then
42590 +  ac_cv_func_fseeko=yes
42591 +else
42592 +  echo "$as_me: failed program was:" >&5
42593 +sed 's/^/| /' conftest.$ac_ext >&5
42594 +
42595 +ac_cv_func_fseeko=no
42596 +fi
42597 +rm -f conftest.err conftest.$ac_objext \
42598 +      conftest$ac_exeext conftest.$ac_ext
42599 +fi
42600 +echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
42601 +echo "${ECHO_T}$ac_cv_func_fseeko" >&6
42602 +if test $ac_cv_func_fseeko = yes; then
42603 +
42604 +cat >>confdefs.h <<\_ACEOF
42605 +#define HAVE_FSEEKO 1
42606 +_ACEOF
42607 +
42608 +fi
42609 +
42610 +
42611 +# UNIX98 PTYs.
42612 +
42613 +for ac_func in grantpt
42614 +do
42615 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42616 +echo "$as_me:$LINENO: checking for $ac_func" >&5
42617 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42618 +if eval "test \"\${$as_ac_var+set}\" = set"; then
42619 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42620 +else
42621 +  cat >conftest.$ac_ext <<_ACEOF
42622 +/* confdefs.h.  */
42623 +_ACEOF
42624 +cat confdefs.h >>conftest.$ac_ext
42625 +cat >>conftest.$ac_ext <<_ACEOF
42626 +/* end confdefs.h.  */
42627 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42628 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42629 +#define $ac_func innocuous_$ac_func
42630 +
42631 +/* System header to define __stub macros and hopefully few prototypes,
42632 +    which can conflict with char $ac_func (); below.
42633 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42634 +    <limits.h> exists even on freestanding compilers.  */
42635 +
42636 +#ifdef __STDC__
42637 +# include <limits.h>
42638 +#else
42639 +# include <assert.h>
42640 +#endif
42641 +
42642 +#undef $ac_func
42643 +
42644 +/* Override any gcc2 internal prototype to avoid an error.  */
42645 +#ifdef __cplusplus
42646 +extern "C"
42647 +{
42648 +#endif
42649 +/* We use char because int might match the return type of a gcc2
42650 +   builtin and then its argument prototype would still apply.  */
42651 +char $ac_func ();
42652 +/* The GNU C library defines this for functions which it implements
42653 +    to always fail with ENOSYS.  Some functions are actually named
42654 +    something starting with __ and the normal name is an alias.  */
42655 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42656 +choke me
42657 +#else
42658 +char (*f) () = $ac_func;
42659 +#endif
42660 +#ifdef __cplusplus
42661 +}
42662 +#endif
42663 +
42664 +int
42665 +main ()
42666 +{
42667 +return f != $ac_func;
42668 +  ;
42669 +  return 0;
42670 +}
42671 +_ACEOF
42672 +rm -f conftest.$ac_objext conftest$ac_exeext
42673 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42674 +  (eval $ac_link) 2>conftest.er1
42675 +  ac_status=$?
42676 +  grep -v '^ *+' conftest.er1 >conftest.err
42677 +  rm -f conftest.er1
42678 +  cat conftest.err >&5
42679 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42680 +  (exit $ac_status); } &&
42681 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42682 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42683 +  (eval $ac_try) 2>&5
42684 +  ac_status=$?
42685 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42686 +  (exit $ac_status); }; } &&
42687 +        { ac_try='test -s conftest$ac_exeext'
42688 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42689 +  (eval $ac_try) 2>&5
42690 +  ac_status=$?
42691 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42692 +  (exit $ac_status); }; }; then
42693 +  eval "$as_ac_var=yes"
42694 +else
42695 +  echo "$as_me: failed program was:" >&5
42696 +sed 's/^/| /' conftest.$ac_ext >&5
42697 +
42698 +eval "$as_ac_var=no"
42699 +fi
42700 +rm -f conftest.err conftest.$ac_objext \
42701 +      conftest$ac_exeext conftest.$ac_ext
42702 +fi
42703 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42704 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42705 +if test `eval echo '${'$as_ac_var'}'` = yes; then
42706 +  cat >>confdefs.h <<_ACEOF
42707 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42708 +_ACEOF
42709 +
42710 +fi
42711 +done
42712 +
42713 +
42714 +# PTY-related GNU extensions.
42715 +
42716 +for ac_func in getpt
42717 +do
42718 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42719 +echo "$as_me:$LINENO: checking for $ac_func" >&5
42720 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42721 +if eval "test \"\${$as_ac_var+set}\" = set"; then
42722 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42723 +else
42724 +  cat >conftest.$ac_ext <<_ACEOF
42725 +/* confdefs.h.  */
42726 +_ACEOF
42727 +cat confdefs.h >>conftest.$ac_ext
42728 +cat >>conftest.$ac_ext <<_ACEOF
42729 +/* end confdefs.h.  */
42730 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42731 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42732 +#define $ac_func innocuous_$ac_func
42733 +
42734 +/* System header to define __stub macros and hopefully few prototypes,
42735 +    which can conflict with char $ac_func (); below.
42736 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42737 +    <limits.h> exists even on freestanding compilers.  */
42738 +
42739 +#ifdef __STDC__
42740 +# include <limits.h>
42741 +#else
42742 +# include <assert.h>
42743 +#endif
42744 +
42745 +#undef $ac_func
42746 +
42747 +/* Override any gcc2 internal prototype to avoid an error.  */
42748 +#ifdef __cplusplus
42749 +extern "C"
42750 +{
42751 +#endif
42752 +/* We use char because int might match the return type of a gcc2
42753 +   builtin and then its argument prototype would still apply.  */
42754 +char $ac_func ();
42755 +/* The GNU C library defines this for functions which it implements
42756 +    to always fail with ENOSYS.  Some functions are actually named
42757 +    something starting with __ and the normal name is an alias.  */
42758 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42759 +choke me
42760 +#else
42761 +char (*f) () = $ac_func;
42762 +#endif
42763 +#ifdef __cplusplus
42764 +}
42765 +#endif
42766 +
42767 +int
42768 +main ()
42769 +{
42770 +return f != $ac_func;
42771 +  ;
42772 +  return 0;
42773 +}
42774 +_ACEOF
42775 +rm -f conftest.$ac_objext conftest$ac_exeext
42776 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42777 +  (eval $ac_link) 2>conftest.er1
42778 +  ac_status=$?
42779 +  grep -v '^ *+' conftest.er1 >conftest.err
42780 +  rm -f conftest.er1
42781 +  cat conftest.err >&5
42782 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783 +  (exit $ac_status); } &&
42784 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42785 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786 +  (eval $ac_try) 2>&5
42787 +  ac_status=$?
42788 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 +  (exit $ac_status); }; } &&
42790 +        { ac_try='test -s conftest$ac_exeext'
42791 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42792 +  (eval $ac_try) 2>&5
42793 +  ac_status=$?
42794 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795 +  (exit $ac_status); }; }; then
42796 +  eval "$as_ac_var=yes"
42797 +else
42798 +  echo "$as_me: failed program was:" >&5
42799 +sed 's/^/| /' conftest.$ac_ext >&5
42800 +
42801 +eval "$as_ac_var=no"
42802 +fi
42803 +rm -f conftest.err conftest.$ac_objext \
42804 +      conftest$ac_exeext conftest.$ac_ext
42805 +fi
42806 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42807 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42808 +if test `eval echo '${'$as_ac_var'}'` = yes; then
42809 +  cat >>confdefs.h <<_ACEOF
42810 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42811 +_ACEOF
42812 +
42813 +fi
42814 +done
42815 +
42816 +
42817 +# Check this now, so that we will NOT find the above functions in ncurses.
42818 +# That is because we have not set up to link ncurses in lib-src.
42819 +# It's better to believe a function is not available
42820 +# than to expect to find it in ncurses.
42821 +
42822 +echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
42823 +echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
42824 +if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
42825 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42826 +else
42827 +  ac_check_lib_save_LIBS=$LIBS
42828 +LIBS="-lncurses  $LIBS"
42829 +cat >conftest.$ac_ext <<_ACEOF
42830 +/* confdefs.h.  */
42831 +_ACEOF
42832 +cat confdefs.h >>conftest.$ac_ext
42833 +cat >>conftest.$ac_ext <<_ACEOF
42834 +/* end confdefs.h.  */
42835 +
42836 +/* Override any gcc2 internal prototype to avoid an error.  */
42837 +#ifdef __cplusplus
42838 +extern "C"
42839 +#endif
42840 +/* We use char because int might match the return type of a gcc2
42841 +   builtin and then its argument prototype would still apply.  */
42842 +char tparm ();
42843 +int
42844 +main ()
42845 +{
42846 +tparm ();
42847 +  ;
42848 +  return 0;
42849 +}
42850 +_ACEOF
42851 +rm -f conftest.$ac_objext conftest$ac_exeext
42852 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42853 +  (eval $ac_link) 2>conftest.er1
42854 +  ac_status=$?
42855 +  grep -v '^ *+' conftest.er1 >conftest.err
42856 +  rm -f conftest.er1
42857 +  cat conftest.err >&5
42858 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 +  (exit $ac_status); } &&
42860 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42861 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42862 +  (eval $ac_try) 2>&5
42863 +  ac_status=$?
42864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42865 +  (exit $ac_status); }; } &&
42866 +        { ac_try='test -s conftest$ac_exeext'
42867 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42868 +  (eval $ac_try) 2>&5
42869 +  ac_status=$?
42870 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42871 +  (exit $ac_status); }; }; then
42872 +  ac_cv_lib_ncurses_tparm=yes
42873 +else
42874 +  echo "$as_me: failed program was:" >&5
42875 +sed 's/^/| /' conftest.$ac_ext >&5
42876 +
42877 +ac_cv_lib_ncurses_tparm=no
42878 +fi
42879 +rm -f conftest.err conftest.$ac_objext \
42880 +      conftest$ac_exeext conftest.$ac_ext
42881 +LIBS=$ac_check_lib_save_LIBS
42882 +fi
42883 +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
42884 +echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
42885 +if test $ac_cv_lib_ncurses_tparm = yes; then
42886 +  cat >>confdefs.h <<_ACEOF
42887 +#define HAVE_LIBNCURSES 1
42888 +_ACEOF
42889 +
42890 +  LIBS="-lncurses $LIBS"
42891 +
42892 +fi
42893 +
42894 +
42895 +# Do we need the Hesiod library to provide the support routines?
42896 +if test "$with_hesiod" = yes ; then
42897 +  # Don't set $LIBS here -- see comments above.
42898 +  resolv=no
42899 +  echo "$as_me:$LINENO: checking for res_send" >&5
42900 +echo $ECHO_N "checking for res_send... $ECHO_C" >&6
42901 +if test "${ac_cv_func_res_send+set}" = set; then
42902 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42903 +else
42904 +  cat >conftest.$ac_ext <<_ACEOF
42905 +/* confdefs.h.  */
42906 +_ACEOF
42907 +cat confdefs.h >>conftest.$ac_ext
42908 +cat >>conftest.$ac_ext <<_ACEOF
42909 +/* end confdefs.h.  */
42910 +/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
42911 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42912 +#define res_send innocuous_res_send
42913 +
42914 +/* System header to define __stub macros and hopefully few prototypes,
42915 +    which can conflict with char res_send (); below.
42916 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42917 +    <limits.h> exists even on freestanding compilers.  */
42918 +
42919 +#ifdef __STDC__
42920 +# include <limits.h>
42921 +#else
42922 +# include <assert.h>
42923 +#endif
42924 +
42925 +#undef res_send
42926 +
42927 +/* Override any gcc2 internal prototype to avoid an error.  */
42928 +#ifdef __cplusplus
42929 +extern "C"
42930 +{
42931 +#endif
42932 +/* We use char because int might match the return type of a gcc2
42933 +   builtin and then its argument prototype would still apply.  */
42934 +char res_send ();
42935 +/* The GNU C library defines this for functions which it implements
42936 +    to always fail with ENOSYS.  Some functions are actually named
42937 +    something starting with __ and the normal name is an alias.  */
42938 +#if defined (__stub_res_send) || defined (__stub___res_send)
42939 +choke me
42940 +#else
42941 +char (*f) () = res_send;
42942 +#endif
42943 +#ifdef __cplusplus
42944 +}
42945 +#endif
42946 +
42947 +int
42948 +main ()
42949 +{
42950 +return f != res_send;
42951 +  ;
42952 +  return 0;
42953 +}
42954 +_ACEOF
42955 +rm -f conftest.$ac_objext conftest$ac_exeext
42956 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42957 +  (eval $ac_link) 2>conftest.er1
42958 +  ac_status=$?
42959 +  grep -v '^ *+' conftest.er1 >conftest.err
42960 +  rm -f conftest.er1
42961 +  cat conftest.err >&5
42962 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 +  (exit $ac_status); } &&
42964 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42965 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42966 +  (eval $ac_try) 2>&5
42967 +  ac_status=$?
42968 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969 +  (exit $ac_status); }; } &&
42970 +        { ac_try='test -s conftest$ac_exeext'
42971 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42972 +  (eval $ac_try) 2>&5
42973 +  ac_status=$?
42974 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 +  (exit $ac_status); }; }; then
42976 +  ac_cv_func_res_send=yes
42977 +else
42978 +  echo "$as_me: failed program was:" >&5
42979 +sed 's/^/| /' conftest.$ac_ext >&5
42980 +
42981 +ac_cv_func_res_send=no
42982 +fi
42983 +rm -f conftest.err conftest.$ac_objext \
42984 +      conftest$ac_exeext conftest.$ac_ext
42985 +fi
42986 +echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
42987 +echo "${ECHO_T}$ac_cv_func_res_send" >&6
42988 +if test $ac_cv_func_res_send = yes; then
42989 +  :
42990 +else
42991 +  echo "$as_me:$LINENO: checking for __res_send" >&5
42992 +echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
42993 +if test "${ac_cv_func___res_send+set}" = set; then
42994 +  echo $ECHO_N "(cached) $ECHO_C" >&6
42995 +else
42996 +  cat >conftest.$ac_ext <<_ACEOF
42997 +/* confdefs.h.  */
42998 +_ACEOF
42999 +cat confdefs.h >>conftest.$ac_ext
43000 +cat >>conftest.$ac_ext <<_ACEOF
43001 +/* end confdefs.h.  */
43002 +/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
43003 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43004 +#define __res_send innocuous___res_send
43005 +
43006 +/* System header to define __stub macros and hopefully few prototypes,
43007 +    which can conflict with char __res_send (); below.
43008 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43009 +    <limits.h> exists even on freestanding compilers.  */
43010 +
43011 +#ifdef __STDC__
43012 +# include <limits.h>
43013 +#else
43014 +# include <assert.h>
43015 +#endif
43016 +
43017 +#undef __res_send
43018 +
43019 +/* Override any gcc2 internal prototype to avoid an error.  */
43020 +#ifdef __cplusplus
43021 +extern "C"
43022 +{
43023 +#endif
43024 +/* We use char because int might match the return type of a gcc2
43025 +   builtin and then its argument prototype would still apply.  */
43026 +char __res_send ();
43027 +/* The GNU C library defines this for functions which it implements
43028 +    to always fail with ENOSYS.  Some functions are actually named
43029 +    something starting with __ and the normal name is an alias.  */
43030 +#if defined (__stub___res_send) || defined (__stub_____res_send)
43031 +choke me
43032 +#else
43033 +char (*f) () = __res_send;
43034 +#endif
43035 +#ifdef __cplusplus
43036 +}
43037 +#endif
43038 +
43039 +int
43040 +main ()
43041 +{
43042 +return f != __res_send;
43043 +  ;
43044 +  return 0;
43045 +}
43046 +_ACEOF
43047 +rm -f conftest.$ac_objext conftest$ac_exeext
43048 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43049 +  (eval $ac_link) 2>conftest.er1
43050 +  ac_status=$?
43051 +  grep -v '^ *+' conftest.er1 >conftest.err
43052 +  rm -f conftest.er1
43053 +  cat conftest.err >&5
43054 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43055 +  (exit $ac_status); } &&
43056 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43057 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43058 +  (eval $ac_try) 2>&5
43059 +  ac_status=$?
43060 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43061 +  (exit $ac_status); }; } &&
43062 +        { ac_try='test -s conftest$ac_exeext'
43063 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43064 +  (eval $ac_try) 2>&5
43065 +  ac_status=$?
43066 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 +  (exit $ac_status); }; }; then
43068 +  ac_cv_func___res_send=yes
43069 +else
43070 +  echo "$as_me: failed program was:" >&5
43071 +sed 's/^/| /' conftest.$ac_ext >&5
43072 +
43073 +ac_cv_func___res_send=no
43074 +fi
43075 +rm -f conftest.err conftest.$ac_objext \
43076 +      conftest$ac_exeext conftest.$ac_ext
43077 +fi
43078 +echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
43079 +echo "${ECHO_T}$ac_cv_func___res_send" >&6
43080 +if test $ac_cv_func___res_send = yes; then
43081 +  :
43082 +else
43083 +  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
43084 +echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
43085 +if test "${ac_cv_lib_resolv_res_send+set}" = set; then
43086 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43087 +else
43088 +  ac_check_lib_save_LIBS=$LIBS
43089 +LIBS="-lresolv  $LIBS"
43090 +cat >conftest.$ac_ext <<_ACEOF
43091 +/* confdefs.h.  */
43092 +_ACEOF
43093 +cat confdefs.h >>conftest.$ac_ext
43094 +cat >>conftest.$ac_ext <<_ACEOF
43095 +/* end confdefs.h.  */
43096 +
43097 +/* Override any gcc2 internal prototype to avoid an error.  */
43098 +#ifdef __cplusplus
43099 +extern "C"
43100 +#endif
43101 +/* We use char because int might match the return type of a gcc2
43102 +   builtin and then its argument prototype would still apply.  */
43103 +char res_send ();
43104 +int
43105 +main ()
43106 +{
43107 +res_send ();
43108 +  ;
43109 +  return 0;
43110 +}
43111 +_ACEOF
43112 +rm -f conftest.$ac_objext conftest$ac_exeext
43113 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43114 +  (eval $ac_link) 2>conftest.er1
43115 +  ac_status=$?
43116 +  grep -v '^ *+' conftest.er1 >conftest.err
43117 +  rm -f conftest.er1
43118 +  cat conftest.err >&5
43119 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43120 +  (exit $ac_status); } &&
43121 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43122 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123 +  (eval $ac_try) 2>&5
43124 +  ac_status=$?
43125 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126 +  (exit $ac_status); }; } &&
43127 +        { ac_try='test -s conftest$ac_exeext'
43128 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129 +  (eval $ac_try) 2>&5
43130 +  ac_status=$?
43131 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132 +  (exit $ac_status); }; }; then
43133 +  ac_cv_lib_resolv_res_send=yes
43134 +else
43135 +  echo "$as_me: failed program was:" >&5
43136 +sed 's/^/| /' conftest.$ac_ext >&5
43137 +
43138 +ac_cv_lib_resolv_res_send=no
43139 +fi
43140 +rm -f conftest.err conftest.$ac_objext \
43141 +      conftest$ac_exeext conftest.$ac_ext
43142 +LIBS=$ac_check_lib_save_LIBS
43143 +fi
43144 +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
43145 +echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
43146 +if test $ac_cv_lib_resolv_res_send = yes; then
43147 +  resolv=yes
43148 +else
43149 +  echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
43150 +echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
43151 +if test "${ac_cv_lib_resolv___res_send+set}" = set; then
43152 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43153 +else
43154 +  ac_check_lib_save_LIBS=$LIBS
43155 +LIBS="-lresolv  $LIBS"
43156 +cat >conftest.$ac_ext <<_ACEOF
43157 +/* confdefs.h.  */
43158 +_ACEOF
43159 +cat confdefs.h >>conftest.$ac_ext
43160 +cat >>conftest.$ac_ext <<_ACEOF
43161 +/* end confdefs.h.  */
43162 +
43163 +/* Override any gcc2 internal prototype to avoid an error.  */
43164 +#ifdef __cplusplus
43165 +extern "C"
43166 +#endif
43167 +/* We use char because int might match the return type of a gcc2
43168 +   builtin and then its argument prototype would still apply.  */
43169 +char __res_send ();
43170 +int
43171 +main ()
43172 +{
43173 +__res_send ();
43174 +  ;
43175 +  return 0;
43176 +}
43177 +_ACEOF
43178 +rm -f conftest.$ac_objext conftest$ac_exeext
43179 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43180 +  (eval $ac_link) 2>conftest.er1
43181 +  ac_status=$?
43182 +  grep -v '^ *+' conftest.er1 >conftest.err
43183 +  rm -f conftest.er1
43184 +  cat conftest.err >&5
43185 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186 +  (exit $ac_status); } &&
43187 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43188 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43189 +  (eval $ac_try) 2>&5
43190 +  ac_status=$?
43191 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43192 +  (exit $ac_status); }; } &&
43193 +        { ac_try='test -s conftest$ac_exeext'
43194 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43195 +  (eval $ac_try) 2>&5
43196 +  ac_status=$?
43197 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43198 +  (exit $ac_status); }; }; then
43199 +  ac_cv_lib_resolv___res_send=yes
43200 +else
43201 +  echo "$as_me: failed program was:" >&5
43202 +sed 's/^/| /' conftest.$ac_ext >&5
43203 +
43204 +ac_cv_lib_resolv___res_send=no
43205 +fi
43206 +rm -f conftest.err conftest.$ac_objext \
43207 +      conftest$ac_exeext conftest.$ac_ext
43208 +LIBS=$ac_check_lib_save_LIBS
43209 +fi
43210 +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
43211 +echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
43212 +if test $ac_cv_lib_resolv___res_send = yes; then
43213 +  resolv=yes
43214 +fi
43215 +
43216 +fi
43217 +
43218 +fi
43219 +
43220 +fi
43221 +
43222 +  if test "$resolv" = yes ; then
43223 +    RESOLVLIB=-lresolv
43224 +    cat >>confdefs.h <<\_ACEOF
43225 +#define HAVE_LIBRESOLV 1
43226 +_ACEOF
43227 +
43228 +  else
43229 +    RESOLVLIB=
43230 +  fi
43231 +  echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
43232 +echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
43233 +if test "${ac_cv_func_hes_getmailhost+set}" = set; then
43234 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43235 +else
43236 +  cat >conftest.$ac_ext <<_ACEOF
43237 +/* confdefs.h.  */
43238 +_ACEOF
43239 +cat confdefs.h >>conftest.$ac_ext
43240 +cat >>conftest.$ac_ext <<_ACEOF
43241 +/* end confdefs.h.  */
43242 +/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
43243 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43244 +#define hes_getmailhost innocuous_hes_getmailhost
43245 +
43246 +/* System header to define __stub macros and hopefully few prototypes,
43247 +    which can conflict with char hes_getmailhost (); below.
43248 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43249 +    <limits.h> exists even on freestanding compilers.  */
43250 +
43251 +#ifdef __STDC__
43252 +# include <limits.h>
43253 +#else
43254 +# include <assert.h>
43255 +#endif
43256 +
43257 +#undef hes_getmailhost
43258 +
43259 +/* Override any gcc2 internal prototype to avoid an error.  */
43260 +#ifdef __cplusplus
43261 +extern "C"
43262 +{
43263 +#endif
43264 +/* We use char because int might match the return type of a gcc2
43265 +   builtin and then its argument prototype would still apply.  */
43266 +char hes_getmailhost ();
43267 +/* The GNU C library defines this for functions which it implements
43268 +    to always fail with ENOSYS.  Some functions are actually named
43269 +    something starting with __ and the normal name is an alias.  */
43270 +#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
43271 +choke me
43272 +#else
43273 +char (*f) () = hes_getmailhost;
43274 +#endif
43275 +#ifdef __cplusplus
43276 +}
43277 +#endif
43278 +
43279 +int
43280 +main ()
43281 +{
43282 +return f != hes_getmailhost;
43283 +  ;
43284 +  return 0;
43285 +}
43286 +_ACEOF
43287 +rm -f conftest.$ac_objext conftest$ac_exeext
43288 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43289 +  (eval $ac_link) 2>conftest.er1
43290 +  ac_status=$?
43291 +  grep -v '^ *+' conftest.er1 >conftest.err
43292 +  rm -f conftest.er1
43293 +  cat conftest.err >&5
43294 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295 +  (exit $ac_status); } &&
43296 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43297 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43298 +  (eval $ac_try) 2>&5
43299 +  ac_status=$?
43300 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 +  (exit $ac_status); }; } &&
43302 +        { ac_try='test -s conftest$ac_exeext'
43303 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 +  (eval $ac_try) 2>&5
43305 +  ac_status=$?
43306 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 +  (exit $ac_status); }; }; then
43308 +  ac_cv_func_hes_getmailhost=yes
43309 +else
43310 +  echo "$as_me: failed program was:" >&5
43311 +sed 's/^/| /' conftest.$ac_ext >&5
43312 +
43313 +ac_cv_func_hes_getmailhost=no
43314 +fi
43315 +rm -f conftest.err conftest.$ac_objext \
43316 +      conftest$ac_exeext conftest.$ac_ext
43317 +fi
43318 +echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
43319 +echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
43320 +if test $ac_cv_func_hes_getmailhost = yes; then
43321 +  :
43322 +else
43323 +  echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
43324 +echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
43325 +if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
43326 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43327 +else
43328 +  ac_check_lib_save_LIBS=$LIBS
43329 +LIBS="-lhesiod $RESOLVLIB $LIBS"
43330 +cat >conftest.$ac_ext <<_ACEOF
43331 +/* confdefs.h.  */
43332 +_ACEOF
43333 +cat confdefs.h >>conftest.$ac_ext
43334 +cat >>conftest.$ac_ext <<_ACEOF
43335 +/* end confdefs.h.  */
43336 +
43337 +/* Override any gcc2 internal prototype to avoid an error.  */
43338 +#ifdef __cplusplus
43339 +extern "C"
43340 +#endif
43341 +/* We use char because int might match the return type of a gcc2
43342 +   builtin and then its argument prototype would still apply.  */
43343 +char hes_getmailhost ();
43344 +int
43345 +main ()
43346 +{
43347 +hes_getmailhost ();
43348 +  ;
43349 +  return 0;
43350 +}
43351 +_ACEOF
43352 +rm -f conftest.$ac_objext conftest$ac_exeext
43353 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43354 +  (eval $ac_link) 2>conftest.er1
43355 +  ac_status=$?
43356 +  grep -v '^ *+' conftest.er1 >conftest.err
43357 +  rm -f conftest.er1
43358 +  cat conftest.err >&5
43359 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43360 +  (exit $ac_status); } &&
43361 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43362 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43363 +  (eval $ac_try) 2>&5
43364 +  ac_status=$?
43365 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366 +  (exit $ac_status); }; } &&
43367 +        { ac_try='test -s conftest$ac_exeext'
43368 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43369 +  (eval $ac_try) 2>&5
43370 +  ac_status=$?
43371 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372 +  (exit $ac_status); }; }; then
43373 +  ac_cv_lib_hesiod_hes_getmailhost=yes
43374 +else
43375 +  echo "$as_me: failed program was:" >&5
43376 +sed 's/^/| /' conftest.$ac_ext >&5
43377 +
43378 +ac_cv_lib_hesiod_hes_getmailhost=no
43379 +fi
43380 +rm -f conftest.err conftest.$ac_objext \
43381 +      conftest$ac_exeext conftest.$ac_ext
43382 +LIBS=$ac_check_lib_save_LIBS
43383 +fi
43384 +echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
43385 +echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
43386 +if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
43387 +  cat >>confdefs.h <<\_ACEOF
43388 +#define HAVE_LIBHESIOD 1
43389 +_ACEOF
43390 +
43391 +else
43392 +  :
43393 +fi
43394 +
43395 +fi
43396 +
43397 +fi
43398 +
43399 +# These tell us which Kerberos-related libraries to use.
43400 +if test "${with_kerberos+set}" = set; then
43401 +
43402 +echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
43403 +echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
43404 +if test "${ac_cv_lib_com_err_com_err+set}" = set; then
43405 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43406 +else
43407 +  ac_check_lib_save_LIBS=$LIBS
43408 +LIBS="-lcom_err  $LIBS"
43409 +cat >conftest.$ac_ext <<_ACEOF
43410 +/* confdefs.h.  */
43411 +_ACEOF
43412 +cat confdefs.h >>conftest.$ac_ext
43413 +cat >>conftest.$ac_ext <<_ACEOF
43414 +/* end confdefs.h.  */
43415 +
43416 +/* Override any gcc2 internal prototype to avoid an error.  */
43417 +#ifdef __cplusplus
43418 +extern "C"
43419 +#endif
43420 +/* We use char because int might match the return type of a gcc2
43421 +   builtin and then its argument prototype would still apply.  */
43422 +char com_err ();
43423 +int
43424 +main ()
43425 +{
43426 +com_err ();
43427 +  ;
43428 +  return 0;
43429 +}
43430 +_ACEOF
43431 +rm -f conftest.$ac_objext conftest$ac_exeext
43432 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43433 +  (eval $ac_link) 2>conftest.er1
43434 +  ac_status=$?
43435 +  grep -v '^ *+' conftest.er1 >conftest.err
43436 +  rm -f conftest.er1
43437 +  cat conftest.err >&5
43438 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43439 +  (exit $ac_status); } &&
43440 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43441 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43442 +  (eval $ac_try) 2>&5
43443 +  ac_status=$?
43444 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43445 +  (exit $ac_status); }; } &&
43446 +        { ac_try='test -s conftest$ac_exeext'
43447 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43448 +  (eval $ac_try) 2>&5
43449 +  ac_status=$?
43450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43451 +  (exit $ac_status); }; }; then
43452 +  ac_cv_lib_com_err_com_err=yes
43453 +else
43454 +  echo "$as_me: failed program was:" >&5
43455 +sed 's/^/| /' conftest.$ac_ext >&5
43456 +
43457 +ac_cv_lib_com_err_com_err=no
43458 +fi
43459 +rm -f conftest.err conftest.$ac_objext \
43460 +      conftest$ac_exeext conftest.$ac_ext
43461 +LIBS=$ac_check_lib_save_LIBS
43462 +fi
43463 +echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
43464 +echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
43465 +if test $ac_cv_lib_com_err_com_err = yes; then
43466 +  cat >>confdefs.h <<_ACEOF
43467 +#define HAVE_LIBCOM_ERR 1
43468 +_ACEOF
43469 +
43470 +  LIBS="-lcom_err $LIBS"
43471 +
43472 +fi
43473 +
43474 +
43475 +echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
43476 +echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
43477 +if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
43478 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43479 +else
43480 +  ac_check_lib_save_LIBS=$LIBS
43481 +LIBS="-lk5crypto  $LIBS"
43482 +cat >conftest.$ac_ext <<_ACEOF
43483 +/* confdefs.h.  */
43484 +_ACEOF
43485 +cat confdefs.h >>conftest.$ac_ext
43486 +cat >>conftest.$ac_ext <<_ACEOF
43487 +/* end confdefs.h.  */
43488 +
43489 +/* Override any gcc2 internal prototype to avoid an error.  */
43490 +#ifdef __cplusplus
43491 +extern "C"
43492 +#endif
43493 +/* We use char because int might match the return type of a gcc2
43494 +   builtin and then its argument prototype would still apply.  */
43495 +char mit_des_cbc_encrypt ();
43496 +int
43497 +main ()
43498 +{
43499 +mit_des_cbc_encrypt ();
43500 +  ;
43501 +  return 0;
43502 +}
43503 +_ACEOF
43504 +rm -f conftest.$ac_objext conftest$ac_exeext
43505 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43506 +  (eval $ac_link) 2>conftest.er1
43507 +  ac_status=$?
43508 +  grep -v '^ *+' conftest.er1 >conftest.err
43509 +  rm -f conftest.er1
43510 +  cat conftest.err >&5
43511 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43512 +  (exit $ac_status); } &&
43513 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43514 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43515 +  (eval $ac_try) 2>&5
43516 +  ac_status=$?
43517 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43518 +  (exit $ac_status); }; } &&
43519 +        { ac_try='test -s conftest$ac_exeext'
43520 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43521 +  (eval $ac_try) 2>&5
43522 +  ac_status=$?
43523 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43524 +  (exit $ac_status); }; }; then
43525 +  ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
43526 +else
43527 +  echo "$as_me: failed program was:" >&5
43528 +sed 's/^/| /' conftest.$ac_ext >&5
43529 +
43530 +ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
43531 +fi
43532 +rm -f conftest.err conftest.$ac_objext \
43533 +      conftest$ac_exeext conftest.$ac_ext
43534 +LIBS=$ac_check_lib_save_LIBS
43535 +fi
43536 +echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
43537 +echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
43538 +if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
43539 +  cat >>confdefs.h <<_ACEOF
43540 +#define HAVE_LIBK5CRYPTO 1
43541 +_ACEOF
43542 +
43543 +  LIBS="-lk5crypto $LIBS"
43544 +
43545 +fi
43546 +
43547 +
43548 +echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
43549 +echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
43550 +if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
43551 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43552 +else
43553 +  ac_check_lib_save_LIBS=$LIBS
43554 +LIBS="-lcrypto  $LIBS"
43555 +cat >conftest.$ac_ext <<_ACEOF
43556 +/* confdefs.h.  */
43557 +_ACEOF
43558 +cat confdefs.h >>conftest.$ac_ext
43559 +cat >>conftest.$ac_ext <<_ACEOF
43560 +/* end confdefs.h.  */
43561 +
43562 +/* Override any gcc2 internal prototype to avoid an error.  */
43563 +#ifdef __cplusplus
43564 +extern "C"
43565 +#endif
43566 +/* We use char because int might match the return type of a gcc2
43567 +   builtin and then its argument prototype would still apply.  */
43568 +char mit_des_cbc_encrypt ();
43569 +int
43570 +main ()
43571 +{
43572 +mit_des_cbc_encrypt ();
43573 +  ;
43574 +  return 0;
43575 +}
43576 +_ACEOF
43577 +rm -f conftest.$ac_objext conftest$ac_exeext
43578 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43579 +  (eval $ac_link) 2>conftest.er1
43580 +  ac_status=$?
43581 +  grep -v '^ *+' conftest.er1 >conftest.err
43582 +  rm -f conftest.er1
43583 +  cat conftest.err >&5
43584 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585 +  (exit $ac_status); } &&
43586 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43587 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43588 +  (eval $ac_try) 2>&5
43589 +  ac_status=$?
43590 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591 +  (exit $ac_status); }; } &&
43592 +        { ac_try='test -s conftest$ac_exeext'
43593 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594 +  (eval $ac_try) 2>&5
43595 +  ac_status=$?
43596 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597 +  (exit $ac_status); }; }; then
43598 +  ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
43599 +else
43600 +  echo "$as_me: failed program was:" >&5
43601 +sed 's/^/| /' conftest.$ac_ext >&5
43602 +
43603 +ac_cv_lib_crypto_mit_des_cbc_encrypt=no
43604 +fi
43605 +rm -f conftest.err conftest.$ac_objext \
43606 +      conftest$ac_exeext conftest.$ac_ext
43607 +LIBS=$ac_check_lib_save_LIBS
43608 +fi
43609 +echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
43610 +echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
43611 +if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
43612 +  cat >>confdefs.h <<_ACEOF
43613 +#define HAVE_LIBCRYPTO 1
43614 +_ACEOF
43615 +
43616 +  LIBS="-lcrypto $LIBS"
43617 +
43618 +fi
43619 +
43620 +
43621 +echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
43622 +echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
43623 +if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
43624 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43625 +else
43626 +  ac_check_lib_save_LIBS=$LIBS
43627 +LIBS="-lkrb5  $LIBS"
43628 +cat >conftest.$ac_ext <<_ACEOF
43629 +/* confdefs.h.  */
43630 +_ACEOF
43631 +cat confdefs.h >>conftest.$ac_ext
43632 +cat >>conftest.$ac_ext <<_ACEOF
43633 +/* end confdefs.h.  */
43634 +
43635 +/* Override any gcc2 internal prototype to avoid an error.  */
43636 +#ifdef __cplusplus
43637 +extern "C"
43638 +#endif
43639 +/* We use char because int might match the return type of a gcc2
43640 +   builtin and then its argument prototype would still apply.  */
43641 +char krb5_init_context ();
43642 +int
43643 +main ()
43644 +{
43645 +krb5_init_context ();
43646 +  ;
43647 +  return 0;
43648 +}
43649 +_ACEOF
43650 +rm -f conftest.$ac_objext conftest$ac_exeext
43651 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43652 +  (eval $ac_link) 2>conftest.er1
43653 +  ac_status=$?
43654 +  grep -v '^ *+' conftest.er1 >conftest.err
43655 +  rm -f conftest.er1
43656 +  cat conftest.err >&5
43657 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43658 +  (exit $ac_status); } &&
43659 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43660 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43661 +  (eval $ac_try) 2>&5
43662 +  ac_status=$?
43663 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664 +  (exit $ac_status); }; } &&
43665 +        { ac_try='test -s conftest$ac_exeext'
43666 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667 +  (eval $ac_try) 2>&5
43668 +  ac_status=$?
43669 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 +  (exit $ac_status); }; }; then
43671 +  ac_cv_lib_krb5_krb5_init_context=yes
43672 +else
43673 +  echo "$as_me: failed program was:" >&5
43674 +sed 's/^/| /' conftest.$ac_ext >&5
43675 +
43676 +ac_cv_lib_krb5_krb5_init_context=no
43677 +fi
43678 +rm -f conftest.err conftest.$ac_objext \
43679 +      conftest$ac_exeext conftest.$ac_ext
43680 +LIBS=$ac_check_lib_save_LIBS
43681 +fi
43682 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
43683 +echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
43684 +if test $ac_cv_lib_krb5_krb5_init_context = yes; then
43685 +  cat >>confdefs.h <<_ACEOF
43686 +#define HAVE_LIBKRB5 1
43687 +_ACEOF
43688 +
43689 +  LIBS="-lkrb5 $LIBS"
43690 +
43691 +fi
43692 +
43693 +  if test "${with_kerberos5+set}" != set; then
43694 +
43695 +echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
43696 +echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
43697 +if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
43698 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43699 +else
43700 +  ac_check_lib_save_LIBS=$LIBS
43701 +LIBS="-ldes425  $LIBS"
43702 +cat >conftest.$ac_ext <<_ACEOF
43703 +/* confdefs.h.  */
43704 +_ACEOF
43705 +cat confdefs.h >>conftest.$ac_ext
43706 +cat >>conftest.$ac_ext <<_ACEOF
43707 +/* end confdefs.h.  */
43708 +
43709 +/* Override any gcc2 internal prototype to avoid an error.  */
43710 +#ifdef __cplusplus
43711 +extern "C"
43712 +#endif
43713 +/* We use char because int might match the return type of a gcc2
43714 +   builtin and then its argument prototype would still apply.  */
43715 +char des_cbc_encrypt ();
43716 +int
43717 +main ()
43718 +{
43719 +des_cbc_encrypt ();
43720 +  ;
43721 +  return 0;
43722 +}
43723 +_ACEOF
43724 +rm -f conftest.$ac_objext conftest$ac_exeext
43725 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43726 +  (eval $ac_link) 2>conftest.er1
43727 +  ac_status=$?
43728 +  grep -v '^ *+' conftest.er1 >conftest.err
43729 +  rm -f conftest.er1
43730 +  cat conftest.err >&5
43731 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43732 +  (exit $ac_status); } &&
43733 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43734 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43735 +  (eval $ac_try) 2>&5
43736 +  ac_status=$?
43737 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 +  (exit $ac_status); }; } &&
43739 +        { ac_try='test -s conftest$ac_exeext'
43740 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 +  (eval $ac_try) 2>&5
43742 +  ac_status=$?
43743 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 +  (exit $ac_status); }; }; then
43745 +  ac_cv_lib_des425_des_cbc_encrypt=yes
43746 +else
43747 +  echo "$as_me: failed program was:" >&5
43748 +sed 's/^/| /' conftest.$ac_ext >&5
43749 +
43750 +ac_cv_lib_des425_des_cbc_encrypt=no
43751 +fi
43752 +rm -f conftest.err conftest.$ac_objext \
43753 +      conftest$ac_exeext conftest.$ac_ext
43754 +LIBS=$ac_check_lib_save_LIBS
43755 +fi
43756 +echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
43757 +echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
43758 +if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
43759 +  cat >>confdefs.h <<_ACEOF
43760 +#define HAVE_LIBDES425 1
43761 +_ACEOF
43762 +
43763 +  LIBS="-ldes425 $LIBS"
43764 +
43765 +else
43766 +
43767 +echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
43768 +echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
43769 +if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
43770 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43771 +else
43772 +  ac_check_lib_save_LIBS=$LIBS
43773 +LIBS="-ldes  $LIBS"
43774 +cat >conftest.$ac_ext <<_ACEOF
43775 +/* confdefs.h.  */
43776 +_ACEOF
43777 +cat confdefs.h >>conftest.$ac_ext
43778 +cat >>conftest.$ac_ext <<_ACEOF
43779 +/* end confdefs.h.  */
43780 +
43781 +/* Override any gcc2 internal prototype to avoid an error.  */
43782 +#ifdef __cplusplus
43783 +extern "C"
43784 +#endif
43785 +/* We use char because int might match the return type of a gcc2
43786 +   builtin and then its argument prototype would still apply.  */
43787 +char des_cbc_encrypt ();
43788 +int
43789 +main ()
43790 +{
43791 +des_cbc_encrypt ();
43792 +  ;
43793 +  return 0;
43794 +}
43795 +_ACEOF
43796 +rm -f conftest.$ac_objext conftest$ac_exeext
43797 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43798 +  (eval $ac_link) 2>conftest.er1
43799 +  ac_status=$?
43800 +  grep -v '^ *+' conftest.er1 >conftest.err
43801 +  rm -f conftest.er1
43802 +  cat conftest.err >&5
43803 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804 +  (exit $ac_status); } &&
43805 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43806 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43807 +  (eval $ac_try) 2>&5
43808 +  ac_status=$?
43809 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810 +  (exit $ac_status); }; } &&
43811 +        { ac_try='test -s conftest$ac_exeext'
43812 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813 +  (eval $ac_try) 2>&5
43814 +  ac_status=$?
43815 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816 +  (exit $ac_status); }; }; then
43817 +  ac_cv_lib_des_des_cbc_encrypt=yes
43818 +else
43819 +  echo "$as_me: failed program was:" >&5
43820 +sed 's/^/| /' conftest.$ac_ext >&5
43821 +
43822 +ac_cv_lib_des_des_cbc_encrypt=no
43823 +fi
43824 +rm -f conftest.err conftest.$ac_objext \
43825 +      conftest$ac_exeext conftest.$ac_ext
43826 +LIBS=$ac_check_lib_save_LIBS
43827 +fi
43828 +echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
43829 +echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
43830 +if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
43831 +  cat >>confdefs.h <<_ACEOF
43832 +#define HAVE_LIBDES 1
43833 +_ACEOF
43834 +
43835 +  LIBS="-ldes $LIBS"
43836 +
43837 +fi
43838 +
43839 +fi
43840 +
43841 +
43842 +echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
43843 +echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
43844 +if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
43845 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43846 +else
43847 +  ac_check_lib_save_LIBS=$LIBS
43848 +LIBS="-lkrb4  $LIBS"
43849 +cat >conftest.$ac_ext <<_ACEOF
43850 +/* confdefs.h.  */
43851 +_ACEOF
43852 +cat confdefs.h >>conftest.$ac_ext
43853 +cat >>conftest.$ac_ext <<_ACEOF
43854 +/* end confdefs.h.  */
43855 +
43856 +/* Override any gcc2 internal prototype to avoid an error.  */
43857 +#ifdef __cplusplus
43858 +extern "C"
43859 +#endif
43860 +/* We use char because int might match the return type of a gcc2
43861 +   builtin and then its argument prototype would still apply.  */
43862 +char krb_get_cred ();
43863 +int
43864 +main ()
43865 +{
43866 +krb_get_cred ();
43867 +  ;
43868 +  return 0;
43869 +}
43870 +_ACEOF
43871 +rm -f conftest.$ac_objext conftest$ac_exeext
43872 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43873 +  (eval $ac_link) 2>conftest.er1
43874 +  ac_status=$?
43875 +  grep -v '^ *+' conftest.er1 >conftest.err
43876 +  rm -f conftest.er1
43877 +  cat conftest.err >&5
43878 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 +  (exit $ac_status); } &&
43880 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43881 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43882 +  (eval $ac_try) 2>&5
43883 +  ac_status=$?
43884 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43885 +  (exit $ac_status); }; } &&
43886 +        { ac_try='test -s conftest$ac_exeext'
43887 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888 +  (eval $ac_try) 2>&5
43889 +  ac_status=$?
43890 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 +  (exit $ac_status); }; }; then
43892 +  ac_cv_lib_krb4_krb_get_cred=yes
43893 +else
43894 +  echo "$as_me: failed program was:" >&5
43895 +sed 's/^/| /' conftest.$ac_ext >&5
43896 +
43897 +ac_cv_lib_krb4_krb_get_cred=no
43898 +fi
43899 +rm -f conftest.err conftest.$ac_objext \
43900 +      conftest$ac_exeext conftest.$ac_ext
43901 +LIBS=$ac_check_lib_save_LIBS
43902 +fi
43903 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
43904 +echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
43905 +if test $ac_cv_lib_krb4_krb_get_cred = yes; then
43906 +  cat >>confdefs.h <<_ACEOF
43907 +#define HAVE_LIBKRB4 1
43908 +_ACEOF
43909 +
43910 +  LIBS="-lkrb4 $LIBS"
43911 +
43912 +else
43913 +
43914 +echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
43915 +echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
43916 +if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
43917 +  echo $ECHO_N "(cached) $ECHO_C" >&6
43918 +else
43919 +  ac_check_lib_save_LIBS=$LIBS
43920 +LIBS="-lkrb  $LIBS"
43921 +cat >conftest.$ac_ext <<_ACEOF
43922 +/* confdefs.h.  */
43923 +_ACEOF
43924 +cat confdefs.h >>conftest.$ac_ext
43925 +cat >>conftest.$ac_ext <<_ACEOF
43926 +/* end confdefs.h.  */
43927 +
43928 +/* Override any gcc2 internal prototype to avoid an error.  */
43929 +#ifdef __cplusplus
43930 +extern "C"
43931 +#endif
43932 +/* We use char because int might match the return type of a gcc2
43933 +   builtin and then its argument prototype would still apply.  */
43934 +char krb_get_cred ();
43935 +int
43936 +main ()
43937 +{
43938 +krb_get_cred ();
43939 +  ;
43940 +  return 0;
43941 +}
43942 +_ACEOF
43943 +rm -f conftest.$ac_objext conftest$ac_exeext
43944 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43945 +  (eval $ac_link) 2>conftest.er1
43946 +  ac_status=$?
43947 +  grep -v '^ *+' conftest.er1 >conftest.err
43948 +  rm -f conftest.er1
43949 +  cat conftest.err >&5
43950 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951 +  (exit $ac_status); } &&
43952 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43953 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43954 +  (eval $ac_try) 2>&5
43955 +  ac_status=$?
43956 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43957 +  (exit $ac_status); }; } &&
43958 +        { ac_try='test -s conftest$ac_exeext'
43959 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43960 +  (eval $ac_try) 2>&5
43961 +  ac_status=$?
43962 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43963 +  (exit $ac_status); }; }; then
43964 +  ac_cv_lib_krb_krb_get_cred=yes
43965 +else
43966 +  echo "$as_me: failed program was:" >&5
43967 +sed 's/^/| /' conftest.$ac_ext >&5
43968 +
43969 +ac_cv_lib_krb_krb_get_cred=no
43970 +fi
43971 +rm -f conftest.err conftest.$ac_objext \
43972 +      conftest$ac_exeext conftest.$ac_ext
43973 +LIBS=$ac_check_lib_save_LIBS
43974 +fi
43975 +echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
43976 +echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
43977 +if test $ac_cv_lib_krb_krb_get_cred = yes; then
43978 +  cat >>confdefs.h <<_ACEOF
43979 +#define HAVE_LIBKRB 1
43980 +_ACEOF
43981 +
43982 +  LIBS="-lkrb $LIBS"
43983 +
43984 +fi
43985 +
43986 +fi
43987 +
43988 +  fi
43989 +
43990 +  if test "${with_kerberos5+set}" = set; then
43991 +
43992 +for ac_header in krb5.h
43993 +do
43994 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43995 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
43996 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
43997 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43998 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
43999 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44000 +fi
44001 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44002 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44003 +else
44004 +  # Is the header compilable?
44005 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44006 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44007 +cat >conftest.$ac_ext <<_ACEOF
44008 +/* confdefs.h.  */
44009 +_ACEOF
44010 +cat confdefs.h >>conftest.$ac_ext
44011 +cat >>conftest.$ac_ext <<_ACEOF
44012 +/* end confdefs.h.  */
44013 +$ac_includes_default
44014 +#include <$ac_header>
44015 +_ACEOF
44016 +rm -f conftest.$ac_objext
44017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44018 +  (eval $ac_compile) 2>conftest.er1
44019 +  ac_status=$?
44020 +  grep -v '^ *+' conftest.er1 >conftest.err
44021 +  rm -f conftest.er1
44022 +  cat conftest.err >&5
44023 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 +  (exit $ac_status); } &&
44025 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44026 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027 +  (eval $ac_try) 2>&5
44028 +  ac_status=$?
44029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 +  (exit $ac_status); }; } &&
44031 +        { ac_try='test -s conftest.$ac_objext'
44032 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033 +  (eval $ac_try) 2>&5
44034 +  ac_status=$?
44035 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 +  (exit $ac_status); }; }; then
44037 +  ac_header_compiler=yes
44038 +else
44039 +  echo "$as_me: failed program was:" >&5
44040 +sed 's/^/| /' conftest.$ac_ext >&5
44041 +
44042 +ac_header_compiler=no
44043 +fi
44044 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44045 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44046 +echo "${ECHO_T}$ac_header_compiler" >&6
44047 +
44048 +# Is the header present?
44049 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44050 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44051 +cat >conftest.$ac_ext <<_ACEOF
44052 +/* confdefs.h.  */
44053 +_ACEOF
44054 +cat confdefs.h >>conftest.$ac_ext
44055 +cat >>conftest.$ac_ext <<_ACEOF
44056 +/* end confdefs.h.  */
44057 +#include <$ac_header>
44058 +_ACEOF
44059 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44060 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44061 +  ac_status=$?
44062 +  grep -v '^ *+' conftest.er1 >conftest.err
44063 +  rm -f conftest.er1
44064 +  cat conftest.err >&5
44065 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066 +  (exit $ac_status); } >/dev/null; then
44067 +  if test -s conftest.err; then
44068 +    ac_cpp_err=$ac_c_preproc_warn_flag
44069 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44070 +  else
44071 +    ac_cpp_err=
44072 +  fi
44073 +else
44074 +  ac_cpp_err=yes
44075 +fi
44076 +if test -z "$ac_cpp_err"; then
44077 +  ac_header_preproc=yes
44078 +else
44079 +  echo "$as_me: failed program was:" >&5
44080 +sed 's/^/| /' conftest.$ac_ext >&5
44081 +
44082 +  ac_header_preproc=no
44083 +fi
44084 +rm -f conftest.err conftest.$ac_ext
44085 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44086 +echo "${ECHO_T}$ac_header_preproc" >&6
44087 +
44088 +# So?  What about this header?
44089 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44090 +  yes:no: )
44091 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44092 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44093 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44094 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44095 +    ac_header_preproc=yes
44096 +    ;;
44097 +  no:yes:* )
44098 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44099 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44100 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44101 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44102 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44103 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44104 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44105 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44106 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44107 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44108 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44109 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44110 +    (
44111 +      cat <<\_ASBOX
44112 +## ------------------------------------------ ##
44113 +## Report this to the AC_PACKAGE_NAME lists.  ##
44114 +## ------------------------------------------ ##
44115 +_ASBOX
44116 +    ) |
44117 +      sed "s/^/$as_me: WARNING:     /" >&2
44118 +    ;;
44119 +esac
44120 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44121 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44122 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44123 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44124 +else
44125 +  eval "$as_ac_Header=\$ac_header_preproc"
44126 +fi
44127 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44128 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44129 +
44130 +fi
44131 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44132 +  cat >>confdefs.h <<_ACEOF
44133 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44134 +_ACEOF
44135 +
44136 +fi
44137 +
44138 +done
44139 +
44140 +  else
44141 +
44142 +
44143 +
44144 +for ac_header in des.h kerberosIV/des.h kerberos/des.h
44145 +do
44146 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44147 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
44149 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44150 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44151 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44152 +fi
44153 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44154 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44155 +else
44156 +  # Is the header compilable?
44157 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44158 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44159 +cat >conftest.$ac_ext <<_ACEOF
44160 +/* confdefs.h.  */
44161 +_ACEOF
44162 +cat confdefs.h >>conftest.$ac_ext
44163 +cat >>conftest.$ac_ext <<_ACEOF
44164 +/* end confdefs.h.  */
44165 +$ac_includes_default
44166 +#include <$ac_header>
44167 +_ACEOF
44168 +rm -f conftest.$ac_objext
44169 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44170 +  (eval $ac_compile) 2>conftest.er1
44171 +  ac_status=$?
44172 +  grep -v '^ *+' conftest.er1 >conftest.err
44173 +  rm -f conftest.er1
44174 +  cat conftest.err >&5
44175 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44176 +  (exit $ac_status); } &&
44177 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44178 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179 +  (eval $ac_try) 2>&5
44180 +  ac_status=$?
44181 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 +  (exit $ac_status); }; } &&
44183 +        { ac_try='test -s conftest.$ac_objext'
44184 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44185 +  (eval $ac_try) 2>&5
44186 +  ac_status=$?
44187 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188 +  (exit $ac_status); }; }; then
44189 +  ac_header_compiler=yes
44190 +else
44191 +  echo "$as_me: failed program was:" >&5
44192 +sed 's/^/| /' conftest.$ac_ext >&5
44193 +
44194 +ac_header_compiler=no
44195 +fi
44196 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44197 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44198 +echo "${ECHO_T}$ac_header_compiler" >&6
44199 +
44200 +# Is the header present?
44201 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44202 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44203 +cat >conftest.$ac_ext <<_ACEOF
44204 +/* confdefs.h.  */
44205 +_ACEOF
44206 +cat confdefs.h >>conftest.$ac_ext
44207 +cat >>conftest.$ac_ext <<_ACEOF
44208 +/* end confdefs.h.  */
44209 +#include <$ac_header>
44210 +_ACEOF
44211 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44212 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44213 +  ac_status=$?
44214 +  grep -v '^ *+' conftest.er1 >conftest.err
44215 +  rm -f conftest.er1
44216 +  cat conftest.err >&5
44217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218 +  (exit $ac_status); } >/dev/null; then
44219 +  if test -s conftest.err; then
44220 +    ac_cpp_err=$ac_c_preproc_warn_flag
44221 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44222 +  else
44223 +    ac_cpp_err=
44224 +  fi
44225 +else
44226 +  ac_cpp_err=yes
44227 +fi
44228 +if test -z "$ac_cpp_err"; then
44229 +  ac_header_preproc=yes
44230 +else
44231 +  echo "$as_me: failed program was:" >&5
44232 +sed 's/^/| /' conftest.$ac_ext >&5
44233 +
44234 +  ac_header_preproc=no
44235 +fi
44236 +rm -f conftest.err conftest.$ac_ext
44237 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44238 +echo "${ECHO_T}$ac_header_preproc" >&6
44239 +
44240 +# So?  What about this header?
44241 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44242 +  yes:no: )
44243 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44244 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44245 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44246 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44247 +    ac_header_preproc=yes
44248 +    ;;
44249 +  no:yes:* )
44250 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44251 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44252 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44253 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44254 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44255 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44256 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44257 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44258 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44259 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44260 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44261 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44262 +    (
44263 +      cat <<\_ASBOX
44264 +## ------------------------------------------ ##
44265 +## Report this to the AC_PACKAGE_NAME lists.  ##
44266 +## ------------------------------------------ ##
44267 +_ASBOX
44268 +    ) |
44269 +      sed "s/^/$as_me: WARNING:     /" >&2
44270 +    ;;
44271 +esac
44272 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44273 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44274 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44275 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44276 +else
44277 +  eval "$as_ac_Header=\$ac_header_preproc"
44278 +fi
44279 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44280 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44281 +
44282 +fi
44283 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44284 +  cat >>confdefs.h <<_ACEOF
44285 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44286 +_ACEOF
44287 + break
44288 +fi
44289 +
44290 +done
44291 +
44292 +
44293 +
44294 +
44295 +for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
44296 +do
44297 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44298 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44299 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
44300 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44301 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44302 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44303 +fi
44304 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44305 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44306 +else
44307 +  # Is the header compilable?
44308 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44309 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44310 +cat >conftest.$ac_ext <<_ACEOF
44311 +/* confdefs.h.  */
44312 +_ACEOF
44313 +cat confdefs.h >>conftest.$ac_ext
44314 +cat >>conftest.$ac_ext <<_ACEOF
44315 +/* end confdefs.h.  */
44316 +$ac_includes_default
44317 +#include <$ac_header>
44318 +_ACEOF
44319 +rm -f conftest.$ac_objext
44320 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44321 +  (eval $ac_compile) 2>conftest.er1
44322 +  ac_status=$?
44323 +  grep -v '^ *+' conftest.er1 >conftest.err
44324 +  rm -f conftest.er1
44325 +  cat conftest.err >&5
44326 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44327 +  (exit $ac_status); } &&
44328 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44329 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44330 +  (eval $ac_try) 2>&5
44331 +  ac_status=$?
44332 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 +  (exit $ac_status); }; } &&
44334 +        { ac_try='test -s conftest.$ac_objext'
44335 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44336 +  (eval $ac_try) 2>&5
44337 +  ac_status=$?
44338 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339 +  (exit $ac_status); }; }; then
44340 +  ac_header_compiler=yes
44341 +else
44342 +  echo "$as_me: failed program was:" >&5
44343 +sed 's/^/| /' conftest.$ac_ext >&5
44344 +
44345 +ac_header_compiler=no
44346 +fi
44347 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44348 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44349 +echo "${ECHO_T}$ac_header_compiler" >&6
44350 +
44351 +# Is the header present?
44352 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44353 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44354 +cat >conftest.$ac_ext <<_ACEOF
44355 +/* confdefs.h.  */
44356 +_ACEOF
44357 +cat confdefs.h >>conftest.$ac_ext
44358 +cat >>conftest.$ac_ext <<_ACEOF
44359 +/* end confdefs.h.  */
44360 +#include <$ac_header>
44361 +_ACEOF
44362 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44363 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44364 +  ac_status=$?
44365 +  grep -v '^ *+' conftest.er1 >conftest.err
44366 +  rm -f conftest.er1
44367 +  cat conftest.err >&5
44368 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369 +  (exit $ac_status); } >/dev/null; then
44370 +  if test -s conftest.err; then
44371 +    ac_cpp_err=$ac_c_preproc_warn_flag
44372 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44373 +  else
44374 +    ac_cpp_err=
44375 +  fi
44376 +else
44377 +  ac_cpp_err=yes
44378 +fi
44379 +if test -z "$ac_cpp_err"; then
44380 +  ac_header_preproc=yes
44381 +else
44382 +  echo "$as_me: failed program was:" >&5
44383 +sed 's/^/| /' conftest.$ac_ext >&5
44384 +
44385 +  ac_header_preproc=no
44386 +fi
44387 +rm -f conftest.err conftest.$ac_ext
44388 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44389 +echo "${ECHO_T}$ac_header_preproc" >&6
44390 +
44391 +# So?  What about this header?
44392 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44393 +  yes:no: )
44394 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44395 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44396 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44397 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44398 +    ac_header_preproc=yes
44399 +    ;;
44400 +  no:yes:* )
44401 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44402 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44403 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44404 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44405 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44406 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44407 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44408 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44409 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44410 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44411 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44412 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44413 +    (
44414 +      cat <<\_ASBOX
44415 +## ------------------------------------------ ##
44416 +## Report this to the AC_PACKAGE_NAME lists.  ##
44417 +## ------------------------------------------ ##
44418 +_ASBOX
44419 +    ) |
44420 +      sed "s/^/$as_me: WARNING:     /" >&2
44421 +    ;;
44422 +esac
44423 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44424 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44425 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44426 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44427 +else
44428 +  eval "$as_ac_Header=\$ac_header_preproc"
44429 +fi
44430 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44431 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44432 +
44433 +fi
44434 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44435 +  cat >>confdefs.h <<_ACEOF
44436 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44437 +_ACEOF
44438 + break
44439 +fi
44440 +
44441 +done
44442 +
44443 +  fi
44444 +
44445 +for ac_header in com_err.h
44446 +do
44447 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44448 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44449 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
44450 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44451 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44452 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44453 +fi
44454 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44455 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44456 +else
44457 +  # Is the header compilable?
44458 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
44459 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44460 +cat >conftest.$ac_ext <<_ACEOF
44461 +/* confdefs.h.  */
44462 +_ACEOF
44463 +cat confdefs.h >>conftest.$ac_ext
44464 +cat >>conftest.$ac_ext <<_ACEOF
44465 +/* end confdefs.h.  */
44466 +$ac_includes_default
44467 +#include <$ac_header>
44468 +_ACEOF
44469 +rm -f conftest.$ac_objext
44470 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44471 +  (eval $ac_compile) 2>conftest.er1
44472 +  ac_status=$?
44473 +  grep -v '^ *+' conftest.er1 >conftest.err
44474 +  rm -f conftest.er1
44475 +  cat conftest.err >&5
44476 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44477 +  (exit $ac_status); } &&
44478 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44479 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44480 +  (eval $ac_try) 2>&5
44481 +  ac_status=$?
44482 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483 +  (exit $ac_status); }; } &&
44484 +        { ac_try='test -s conftest.$ac_objext'
44485 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486 +  (eval $ac_try) 2>&5
44487 +  ac_status=$?
44488 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 +  (exit $ac_status); }; }; then
44490 +  ac_header_compiler=yes
44491 +else
44492 +  echo "$as_me: failed program was:" >&5
44493 +sed 's/^/| /' conftest.$ac_ext >&5
44494 +
44495 +ac_header_compiler=no
44496 +fi
44497 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44498 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44499 +echo "${ECHO_T}$ac_header_compiler" >&6
44500 +
44501 +# Is the header present?
44502 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
44503 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44504 +cat >conftest.$ac_ext <<_ACEOF
44505 +/* confdefs.h.  */
44506 +_ACEOF
44507 +cat confdefs.h >>conftest.$ac_ext
44508 +cat >>conftest.$ac_ext <<_ACEOF
44509 +/* end confdefs.h.  */
44510 +#include <$ac_header>
44511 +_ACEOF
44512 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44513 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44514 +  ac_status=$?
44515 +  grep -v '^ *+' conftest.er1 >conftest.err
44516 +  rm -f conftest.er1
44517 +  cat conftest.err >&5
44518 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 +  (exit $ac_status); } >/dev/null; then
44520 +  if test -s conftest.err; then
44521 +    ac_cpp_err=$ac_c_preproc_warn_flag
44522 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44523 +  else
44524 +    ac_cpp_err=
44525 +  fi
44526 +else
44527 +  ac_cpp_err=yes
44528 +fi
44529 +if test -z "$ac_cpp_err"; then
44530 +  ac_header_preproc=yes
44531 +else
44532 +  echo "$as_me: failed program was:" >&5
44533 +sed 's/^/| /' conftest.$ac_ext >&5
44534 +
44535 +  ac_header_preproc=no
44536 +fi
44537 +rm -f conftest.err conftest.$ac_ext
44538 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44539 +echo "${ECHO_T}$ac_header_preproc" >&6
44540 +
44541 +# So?  What about this header?
44542 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44543 +  yes:no: )
44544 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44545 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44546 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44547 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44548 +    ac_header_preproc=yes
44549 +    ;;
44550 +  no:yes:* )
44551 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44552 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44553 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44554 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44555 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44556 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44557 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44558 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44559 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44560 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44561 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44562 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44563 +    (
44564 +      cat <<\_ASBOX
44565 +## ------------------------------------------ ##
44566 +## Report this to the AC_PACKAGE_NAME lists.  ##
44567 +## ------------------------------------------ ##
44568 +_ASBOX
44569 +    ) |
44570 +      sed "s/^/$as_me: WARNING:     /" >&2
44571 +    ;;
44572 +esac
44573 +echo "$as_me:$LINENO: checking for $ac_header" >&5
44574 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44575 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
44576 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44577 +else
44578 +  eval "$as_ac_Header=\$ac_header_preproc"
44579 +fi
44580 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44581 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44582 +
44583 +fi
44584 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
44585 +  cat >>confdefs.h <<_ACEOF
44586 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44587 +_ACEOF
44588 +
44589 +fi
44590 +
44591 +done
44592 +
44593 +fi
44594 +
44595 +# Solaris requires -lintl if you want strerror (which calls dgettext)
44596 +# to return localized messages.
44597 +
44598 +echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
44599 +echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
44600 +if test "${ac_cv_lib_intl_dgettext+set}" = set; then
44601 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44602 +else
44603 +  ac_check_lib_save_LIBS=$LIBS
44604 +LIBS="-lintl  $LIBS"
44605 +cat >conftest.$ac_ext <<_ACEOF
44606 +/* confdefs.h.  */
44607 +_ACEOF
44608 +cat confdefs.h >>conftest.$ac_ext
44609 +cat >>conftest.$ac_ext <<_ACEOF
44610 +/* end confdefs.h.  */
44611 +
44612 +/* Override any gcc2 internal prototype to avoid an error.  */
44613 +#ifdef __cplusplus
44614 +extern "C"
44615 +#endif
44616 +/* We use char because int might match the return type of a gcc2
44617 +   builtin and then its argument prototype would still apply.  */
44618 +char dgettext ();
44619 +int
44620 +main ()
44621 +{
44622 +dgettext ();
44623 +  ;
44624 +  return 0;
44625 +}
44626 +_ACEOF
44627 +rm -f conftest.$ac_objext conftest$ac_exeext
44628 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44629 +  (eval $ac_link) 2>conftest.er1
44630 +  ac_status=$?
44631 +  grep -v '^ *+' conftest.er1 >conftest.err
44632 +  rm -f conftest.er1
44633 +  cat conftest.err >&5
44634 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44635 +  (exit $ac_status); } &&
44636 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44637 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44638 +  (eval $ac_try) 2>&5
44639 +  ac_status=$?
44640 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44641 +  (exit $ac_status); }; } &&
44642 +        { ac_try='test -s conftest$ac_exeext'
44643 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44644 +  (eval $ac_try) 2>&5
44645 +  ac_status=$?
44646 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44647 +  (exit $ac_status); }; }; then
44648 +  ac_cv_lib_intl_dgettext=yes
44649 +else
44650 +  echo "$as_me: failed program was:" >&5
44651 +sed 's/^/| /' conftest.$ac_ext >&5
44652 +
44653 +ac_cv_lib_intl_dgettext=no
44654 +fi
44655 +rm -f conftest.err conftest.$ac_objext \
44656 +      conftest$ac_exeext conftest.$ac_ext
44657 +LIBS=$ac_check_lib_save_LIBS
44658 +fi
44659 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
44660 +echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
44661 +if test $ac_cv_lib_intl_dgettext = yes; then
44662 +  cat >>confdefs.h <<_ACEOF
44663 +#define HAVE_LIBINTL 1
44664 +_ACEOF
44665 +
44666 +  LIBS="-lintl $LIBS"
44667 +
44668 +fi
44669 +
44670 +
44671 +echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
44672 +echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
44673 +if test "${emacs_cv_localtime_cache+set}" = set; then
44674 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44675 +else
44676 +  if test x$ac_cv_func_tzset = xyes; then
44677 +if test "$cross_compiling" = yes; then
44678 +  # If we have tzset, assume the worst when cross-compiling.
44679 +emacs_cv_localtime_cache=yes
44680 +else
44681 +  cat >conftest.$ac_ext <<_ACEOF
44682 +/* confdefs.h.  */
44683 +_ACEOF
44684 +cat confdefs.h >>conftest.$ac_ext
44685 +cat >>conftest.$ac_ext <<_ACEOF
44686 +/* end confdefs.h.  */
44687 +#include <time.h>
44688 +extern char **environ;
44689 +unset_TZ ()
44690 +{
44691 +  char **from, **to;
44692 +  for (to = from = environ; (*to = *from); from++)
44693 +    if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
44694 +      to++;
44695 +}
44696 +char TZ_GMT0[] = "TZ=GMT0";
44697 +char TZ_PST8[] = "TZ=PST8";
44698 +main()
44699 +{
44700 +  time_t now = time ((time_t *) 0);
44701 +  int hour_GMT0, hour_unset;
44702 +  if (putenv (TZ_GMT0) != 0)
44703 +    exit (1);
44704 +  hour_GMT0 = localtime (&now)->tm_hour;
44705 +  unset_TZ ();
44706 +  hour_unset = localtime (&now)->tm_hour;
44707 +  if (putenv (TZ_PST8) != 0)
44708 +    exit (1);
44709 +  if (localtime (&now)->tm_hour == hour_GMT0)
44710 +    exit (1);
44711 +  unset_TZ ();
44712 +  if (localtime (&now)->tm_hour != hour_unset)
44713 +    exit (1);
44714 +  exit (0);
44715 +}
44716 +_ACEOF
44717 +rm -f conftest$ac_exeext
44718 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44719 +  (eval $ac_link) 2>&5
44720 +  ac_status=$?
44721 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44723 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 +  (eval $ac_try) 2>&5
44725 +  ac_status=$?
44726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 +  (exit $ac_status); }; }; then
44728 +  emacs_cv_localtime_cache=no
44729 +else
44730 +  echo "$as_me: program exited with status $ac_status" >&5
44731 +echo "$as_me: failed program was:" >&5
44732 +sed 's/^/| /' conftest.$ac_ext >&5
44733 +
44734 +( exit $ac_status )
44735 +emacs_cv_localtime_cache=yes
44736 +fi
44737 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44738 +fi
44739 +else
44740 +       # If we lack tzset, report that localtime does not cache TZ,
44741 +       # since we can't invalidate the cache if we don't have tzset.
44742 +       emacs_cv_localtime_cache=no
44743 +fi
44744 +fi
44745 +echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
44746 +echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
44747 +if test $emacs_cv_localtime_cache = yes; then
44748 +  cat >>confdefs.h <<\_ACEOF
44749 +#define LOCALTIME_CACHE 1
44750 +_ACEOF
44751 +
44752 +fi
44753 +
44754 +if test "x$HAVE_TIMEVAL" = xyes; then
44755 +
44756 +for ac_func in gettimeofday
44757 +do
44758 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44759 +echo "$as_me:$LINENO: checking for $ac_func" >&5
44760 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44761 +if eval "test \"\${$as_ac_var+set}\" = set"; then
44762 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44763 +else
44764 +  cat >conftest.$ac_ext <<_ACEOF
44765 +/* confdefs.h.  */
44766 +_ACEOF
44767 +cat confdefs.h >>conftest.$ac_ext
44768 +cat >>conftest.$ac_ext <<_ACEOF
44769 +/* end confdefs.h.  */
44770 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44771 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44772 +#define $ac_func innocuous_$ac_func
44773 +
44774 +/* System header to define __stub macros and hopefully few prototypes,
44775 +    which can conflict with char $ac_func (); below.
44776 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44777 +    <limits.h> exists even on freestanding compilers.  */
44778 +
44779 +#ifdef __STDC__
44780 +# include <limits.h>
44781 +#else
44782 +# include <assert.h>
44783 +#endif
44784 +
44785 +#undef $ac_func
44786 +
44787 +/* Override any gcc2 internal prototype to avoid an error.  */
44788 +#ifdef __cplusplus
44789 +extern "C"
44790 +{
44791 +#endif
44792 +/* We use char because int might match the return type of a gcc2
44793 +   builtin and then its argument prototype would still apply.  */
44794 +char $ac_func ();
44795 +/* The GNU C library defines this for functions which it implements
44796 +    to always fail with ENOSYS.  Some functions are actually named
44797 +    something starting with __ and the normal name is an alias.  */
44798 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44799 +choke me
44800 +#else
44801 +char (*f) () = $ac_func;
44802 +#endif
44803 +#ifdef __cplusplus
44804 +}
44805 +#endif
44806 +
44807 +int
44808 +main ()
44809 +{
44810 +return f != $ac_func;
44811 +  ;
44812 +  return 0;
44813 +}
44814 +_ACEOF
44815 +rm -f conftest.$ac_objext conftest$ac_exeext
44816 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44817 +  (eval $ac_link) 2>conftest.er1
44818 +  ac_status=$?
44819 +  grep -v '^ *+' conftest.er1 >conftest.err
44820 +  rm -f conftest.er1
44821 +  cat conftest.err >&5
44822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44823 +  (exit $ac_status); } &&
44824 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44825 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44826 +  (eval $ac_try) 2>&5
44827 +  ac_status=$?
44828 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44829 +  (exit $ac_status); }; } &&
44830 +        { ac_try='test -s conftest$ac_exeext'
44831 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44832 +  (eval $ac_try) 2>&5
44833 +  ac_status=$?
44834 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44835 +  (exit $ac_status); }; }; then
44836 +  eval "$as_ac_var=yes"
44837 +else
44838 +  echo "$as_me: failed program was:" >&5
44839 +sed 's/^/| /' conftest.$ac_ext >&5
44840 +
44841 +eval "$as_ac_var=no"
44842 +fi
44843 +rm -f conftest.err conftest.$ac_objext \
44844 +      conftest$ac_exeext conftest.$ac_ext
44845 +fi
44846 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44847 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44848 +if test `eval echo '${'$as_ac_var'}'` = yes; then
44849 +  cat >>confdefs.h <<_ACEOF
44850 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44851 +_ACEOF
44852 +
44853 +fi
44854 +done
44855 +
44856 +  echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
44857 +echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
44858 +if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
44859 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44860 +else
44861 +  cat >conftest.$ac_ext <<_ACEOF
44862 +/* confdefs.h.  */
44863 +_ACEOF
44864 +cat confdefs.h >>conftest.$ac_ext
44865 +cat >>conftest.$ac_ext <<_ACEOF
44866 +/* end confdefs.h.  */
44867 +
44868 +#ifdef TIME_WITH_SYS_TIME
44869 +#include <sys/time.h>
44870 +#include <time.h>
44871 +#else
44872 +#ifdef HAVE_SYS_TIME_H
44873 +#include <sys/time.h>
44874 +#else
44875 +#include <time.h>
44876 +#endif
44877 +#endif
44878 +int
44879 +main ()
44880 +{
44881 +struct timeval time;
44882 +     gettimeofday (&time, 0);
44883 +  ;
44884 +  return 0;
44885 +}
44886 +_ACEOF
44887 +rm -f conftest.$ac_objext
44888 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44889 +  (eval $ac_compile) 2>conftest.er1
44890 +  ac_status=$?
44891 +  grep -v '^ *+' conftest.er1 >conftest.err
44892 +  rm -f conftest.er1
44893 +  cat conftest.err >&5
44894 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895 +  (exit $ac_status); } &&
44896 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44897 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44898 +  (eval $ac_try) 2>&5
44899 +  ac_status=$?
44900 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 +  (exit $ac_status); }; } &&
44902 +        { ac_try='test -s conftest.$ac_objext'
44903 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904 +  (eval $ac_try) 2>&5
44905 +  ac_status=$?
44906 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 +  (exit $ac_status); }; }; then
44908 +  emacs_cv_gettimeofday_two_arguments=yes
44909 +else
44910 +  echo "$as_me: failed program was:" >&5
44911 +sed 's/^/| /' conftest.$ac_ext >&5
44912 +
44913 +emacs_cv_gettimeofday_two_arguments=no
44914 +fi
44915 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44916 +fi
44917 +echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
44918 +echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
44919 +  if test $emacs_cv_gettimeofday_two_arguments = no; then
44920 +    cat >>confdefs.h <<\_ACEOF
44921 +#define GETTIMEOFDAY_ONE_ARGUMENT 1
44922 +_ACEOF
44923 +
44924 +  fi
44925 +fi
44926 +
44927 +if test "$ac_cv_func_gettimeofday" = yes; then
44928 +  echo "$as_me:$LINENO: checking for struct timezone" >&5
44929 +echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
44930 +if test "${emacs_cv_struct_timezone+set}" = set; then
44931 +  echo $ECHO_N "(cached) $ECHO_C" >&6
44932 +else
44933 +  cat >conftest.$ac_ext <<_ACEOF
44934 +/* confdefs.h.  */
44935 +_ACEOF
44936 +cat confdefs.h >>conftest.$ac_ext
44937 +cat >>conftest.$ac_ext <<_ACEOF
44938 +/* end confdefs.h.  */
44939 +#include <sys/time.h>
44940 +int
44941 +main ()
44942 +{
44943 +struct timezone tz;
44944 +  ;
44945 +  return 0;
44946 +}
44947 +_ACEOF
44948 +rm -f conftest.$ac_objext
44949 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44950 +  (eval $ac_compile) 2>conftest.er1
44951 +  ac_status=$?
44952 +  grep -v '^ *+' conftest.er1 >conftest.err
44953 +  rm -f conftest.er1
44954 +  cat conftest.err >&5
44955 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44956 +  (exit $ac_status); } &&
44957 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44958 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44959 +  (eval $ac_try) 2>&5
44960 +  ac_status=$?
44961 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44962 +  (exit $ac_status); }; } &&
44963 +        { ac_try='test -s conftest.$ac_objext'
44964 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44965 +  (eval $ac_try) 2>&5
44966 +  ac_status=$?
44967 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968 +  (exit $ac_status); }; }; then
44969 +              if test "$cross_compiling" = yes; then
44970 +  emacs_cv_struct_timezone=yes
44971 +else
44972 +  cat >conftest.$ac_ext <<_ACEOF
44973 +/* confdefs.h.  */
44974 +_ACEOF
44975 +cat confdefs.h >>conftest.$ac_ext
44976 +cat >>conftest.$ac_ext <<_ACEOF
44977 +/* end confdefs.h.  */
44978 +
44979 +#ifdef TIME_WITH_SYS_TIME
44980 +#include <sys/time.h>
44981 +#include <time.h>
44982 +#else
44983 +#ifdef HAVE_SYS_TIME_H
44984 +#include <sys/time.h>
44985 +#else
44986 +#include <time.h>
44987 +#endif
44988 +#endif
44989 +main () {
44990 +  struct timeval time;
44991 +  struct timezone dummy;
44992 +  exit (gettimeofday (&time, &dummy));
44993 +}
44994 +_ACEOF
44995 +rm -f conftest$ac_exeext
44996 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44997 +  (eval $ac_link) 2>&5
44998 +  ac_status=$?
44999 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45000 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45001 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45002 +  (eval $ac_try) 2>&5
45003 +  ac_status=$?
45004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45005 +  (exit $ac_status); }; }; then
45006 +  emacs_cv_struct_timezone=yes
45007 +else
45008 +  echo "$as_me: program exited with status $ac_status" >&5
45009 +echo "$as_me: failed program was:" >&5
45010 +sed 's/^/| /' conftest.$ac_ext >&5
45011 +
45012 +( exit $ac_status )
45013 +emacs_cv_struct_timezone=no
45014 +fi
45015 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45016 +fi
45017 +else
45018 +  echo "$as_me: failed program was:" >&5
45019 +sed 's/^/| /' conftest.$ac_ext >&5
45020 +
45021 +emacs_cv_struct_timezone=no
45022 +fi
45023 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45024 +fi
45025 +echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
45026 +echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
45027 +fi
45028 +
45029 +ok_so_far=yes
45030 +echo "$as_me:$LINENO: checking for socket" >&5
45031 +echo $ECHO_N "checking for socket... $ECHO_C" >&6
45032 +if test "${ac_cv_func_socket+set}" = set; then
45033 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45034 +else
45035 +  cat >conftest.$ac_ext <<_ACEOF
45036 +/* confdefs.h.  */
45037 +_ACEOF
45038 +cat confdefs.h >>conftest.$ac_ext
45039 +cat >>conftest.$ac_ext <<_ACEOF
45040 +/* end confdefs.h.  */
45041 +/* Define socket to an innocuous variant, in case <limits.h> declares socket.
45042 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45043 +#define socket innocuous_socket
45044 +
45045 +/* System header to define __stub macros and hopefully few prototypes,
45046 +    which can conflict with char socket (); below.
45047 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45048 +    <limits.h> exists even on freestanding compilers.  */
45049 +
45050 +#ifdef __STDC__
45051 +# include <limits.h>
45052 +#else
45053 +# include <assert.h>
45054 +#endif
45055 +
45056 +#undef socket
45057 +
45058 +/* Override any gcc2 internal prototype to avoid an error.  */
45059 +#ifdef __cplusplus
45060 +extern "C"
45061 +{
45062 +#endif
45063 +/* We use char because int might match the return type of a gcc2
45064 +   builtin and then its argument prototype would still apply.  */
45065 +char socket ();
45066 +/* The GNU C library defines this for functions which it implements
45067 +    to always fail with ENOSYS.  Some functions are actually named
45068 +    something starting with __ and the normal name is an alias.  */
45069 +#if defined (__stub_socket) || defined (__stub___socket)
45070 +choke me
45071 +#else
45072 +char (*f) () = socket;
45073 +#endif
45074 +#ifdef __cplusplus
45075 +}
45076 +#endif
45077 +
45078 +int
45079 +main ()
45080 +{
45081 +return f != socket;
45082 +  ;
45083 +  return 0;
45084 +}
45085 +_ACEOF
45086 +rm -f conftest.$ac_objext conftest$ac_exeext
45087 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45088 +  (eval $ac_link) 2>conftest.er1
45089 +  ac_status=$?
45090 +  grep -v '^ *+' conftest.er1 >conftest.err
45091 +  rm -f conftest.er1
45092 +  cat conftest.err >&5
45093 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45094 +  (exit $ac_status); } &&
45095 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45096 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45097 +  (eval $ac_try) 2>&5
45098 +  ac_status=$?
45099 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45100 +  (exit $ac_status); }; } &&
45101 +        { ac_try='test -s conftest$ac_exeext'
45102 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45103 +  (eval $ac_try) 2>&5
45104 +  ac_status=$?
45105 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 +  (exit $ac_status); }; }; then
45107 +  ac_cv_func_socket=yes
45108 +else
45109 +  echo "$as_me: failed program was:" >&5
45110 +sed 's/^/| /' conftest.$ac_ext >&5
45111 +
45112 +ac_cv_func_socket=no
45113 +fi
45114 +rm -f conftest.err conftest.$ac_objext \
45115 +      conftest$ac_exeext conftest.$ac_ext
45116 +fi
45117 +echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45118 +echo "${ECHO_T}$ac_cv_func_socket" >&6
45119 +if test $ac_cv_func_socket = yes; then
45120 +  :
45121 +else
45122 +  ok_so_far=no
45123 +fi
45124 +
45125 +if test $ok_so_far = yes; then
45126 +  if test "${ac_cv_header_netinet_in_h+set}" = set; then
45127 +  echo "$as_me:$LINENO: checking for netinet/in.h" >&5
45128 +echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
45129 +if test "${ac_cv_header_netinet_in_h+set}" = set; then
45130 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45131 +fi
45132 +echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
45133 +echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
45134 +else
45135 +  # Is the header compilable?
45136 +echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
45137 +echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
45138 +cat >conftest.$ac_ext <<_ACEOF
45139 +/* confdefs.h.  */
45140 +_ACEOF
45141 +cat confdefs.h >>conftest.$ac_ext
45142 +cat >>conftest.$ac_ext <<_ACEOF
45143 +/* end confdefs.h.  */
45144 +$ac_includes_default
45145 +#include <netinet/in.h>
45146 +_ACEOF
45147 +rm -f conftest.$ac_objext
45148 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45149 +  (eval $ac_compile) 2>conftest.er1
45150 +  ac_status=$?
45151 +  grep -v '^ *+' conftest.er1 >conftest.err
45152 +  rm -f conftest.er1
45153 +  cat conftest.err >&5
45154 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45155 +  (exit $ac_status); } &&
45156 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45157 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45158 +  (eval $ac_try) 2>&5
45159 +  ac_status=$?
45160 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45161 +  (exit $ac_status); }; } &&
45162 +        { ac_try='test -s conftest.$ac_objext'
45163 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45164 +  (eval $ac_try) 2>&5
45165 +  ac_status=$?
45166 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167 +  (exit $ac_status); }; }; then
45168 +  ac_header_compiler=yes
45169 +else
45170 +  echo "$as_me: failed program was:" >&5
45171 +sed 's/^/| /' conftest.$ac_ext >&5
45172 +
45173 +ac_header_compiler=no
45174 +fi
45175 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45176 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45177 +echo "${ECHO_T}$ac_header_compiler" >&6
45178 +
45179 +# Is the header present?
45180 +echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
45181 +echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
45182 +cat >conftest.$ac_ext <<_ACEOF
45183 +/* confdefs.h.  */
45184 +_ACEOF
45185 +cat confdefs.h >>conftest.$ac_ext
45186 +cat >>conftest.$ac_ext <<_ACEOF
45187 +/* end confdefs.h.  */
45188 +#include <netinet/in.h>
45189 +_ACEOF
45190 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45191 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45192 +  ac_status=$?
45193 +  grep -v '^ *+' conftest.er1 >conftest.err
45194 +  rm -f conftest.er1
45195 +  cat conftest.err >&5
45196 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197 +  (exit $ac_status); } >/dev/null; then
45198 +  if test -s conftest.err; then
45199 +    ac_cpp_err=$ac_c_preproc_warn_flag
45200 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45201 +  else
45202 +    ac_cpp_err=
45203 +  fi
45204 +else
45205 +  ac_cpp_err=yes
45206 +fi
45207 +if test -z "$ac_cpp_err"; then
45208 +  ac_header_preproc=yes
45209 +else
45210 +  echo "$as_me: failed program was:" >&5
45211 +sed 's/^/| /' conftest.$ac_ext >&5
45212 +
45213 +  ac_header_preproc=no
45214 +fi
45215 +rm -f conftest.err conftest.$ac_ext
45216 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45217 +echo "${ECHO_T}$ac_header_preproc" >&6
45218 +
45219 +# So?  What about this header?
45220 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45221 +  yes:no: )
45222 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
45223 +echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45224 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
45225 +echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
45226 +    ac_header_preproc=yes
45227 +    ;;
45228 +  no:yes:* )
45229 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
45230 +echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
45231 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
45232 +echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
45233 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
45234 +echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
45235 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
45236 +echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45237 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
45238 +echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
45239 +    { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
45240 +echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
45241 +    (
45242 +      cat <<\_ASBOX
45243 +## ------------------------------------------ ##
45244 +## Report this to the AC_PACKAGE_NAME lists.  ##
45245 +## ------------------------------------------ ##
45246 +_ASBOX
45247 +    ) |
45248 +      sed "s/^/$as_me: WARNING:     /" >&2
45249 +    ;;
45250 +esac
45251 +echo "$as_me:$LINENO: checking for netinet/in.h" >&5
45252 +echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
45253 +if test "${ac_cv_header_netinet_in_h+set}" = set; then
45254 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45255 +else
45256 +  ac_cv_header_netinet_in_h=$ac_header_preproc
45257 +fi
45258 +echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
45259 +echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
45260 +
45261 +fi
45262 +if test $ac_cv_header_netinet_in_h = yes; then
45263 +  :
45264 +else
45265 +  ok_so_far=no
45266 +fi
45267 +
45268 +
45269 +fi
45270 +if test $ok_so_far = yes; then
45271 +  if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45272 +  echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
45273 +echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
45274 +if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45275 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45276 +fi
45277 +echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
45278 +echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
45279 +else
45280 +  # Is the header compilable?
45281 +echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
45282 +echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
45283 +cat >conftest.$ac_ext <<_ACEOF
45284 +/* confdefs.h.  */
45285 +_ACEOF
45286 +cat confdefs.h >>conftest.$ac_ext
45287 +cat >>conftest.$ac_ext <<_ACEOF
45288 +/* end confdefs.h.  */
45289 +$ac_includes_default
45290 +#include <arpa/inet.h>
45291 +_ACEOF
45292 +rm -f conftest.$ac_objext
45293 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45294 +  (eval $ac_compile) 2>conftest.er1
45295 +  ac_status=$?
45296 +  grep -v '^ *+' conftest.er1 >conftest.err
45297 +  rm -f conftest.er1
45298 +  cat conftest.err >&5
45299 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45300 +  (exit $ac_status); } &&
45301 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45302 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45303 +  (eval $ac_try) 2>&5
45304 +  ac_status=$?
45305 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45306 +  (exit $ac_status); }; } &&
45307 +        { ac_try='test -s conftest.$ac_objext'
45308 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45309 +  (eval $ac_try) 2>&5
45310 +  ac_status=$?
45311 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45312 +  (exit $ac_status); }; }; then
45313 +  ac_header_compiler=yes
45314 +else
45315 +  echo "$as_me: failed program was:" >&5
45316 +sed 's/^/| /' conftest.$ac_ext >&5
45317 +
45318 +ac_header_compiler=no
45319 +fi
45320 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45321 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45322 +echo "${ECHO_T}$ac_header_compiler" >&6
45323 +
45324 +# Is the header present?
45325 +echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
45326 +echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
45327 +cat >conftest.$ac_ext <<_ACEOF
45328 +/* confdefs.h.  */
45329 +_ACEOF
45330 +cat confdefs.h >>conftest.$ac_ext
45331 +cat >>conftest.$ac_ext <<_ACEOF
45332 +/* end confdefs.h.  */
45333 +#include <arpa/inet.h>
45334 +_ACEOF
45335 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45336 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45337 +  ac_status=$?
45338 +  grep -v '^ *+' conftest.er1 >conftest.err
45339 +  rm -f conftest.er1
45340 +  cat conftest.err >&5
45341 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342 +  (exit $ac_status); } >/dev/null; then
45343 +  if test -s conftest.err; then
45344 +    ac_cpp_err=$ac_c_preproc_warn_flag
45345 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45346 +  else
45347 +    ac_cpp_err=
45348 +  fi
45349 +else
45350 +  ac_cpp_err=yes
45351 +fi
45352 +if test -z "$ac_cpp_err"; then
45353 +  ac_header_preproc=yes
45354 +else
45355 +  echo "$as_me: failed program was:" >&5
45356 +sed 's/^/| /' conftest.$ac_ext >&5
45357 +
45358 +  ac_header_preproc=no
45359 +fi
45360 +rm -f conftest.err conftest.$ac_ext
45361 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45362 +echo "${ECHO_T}$ac_header_preproc" >&6
45363 +
45364 +# So?  What about this header?
45365 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45366 +  yes:no: )
45367 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
45368 +echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45369 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
45370 +echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
45371 +    ac_header_preproc=yes
45372 +    ;;
45373 +  no:yes:* )
45374 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
45375 +echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
45376 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
45377 +echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
45378 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
45379 +echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
45380 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
45381 +echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
45382 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
45383 +echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
45384 +    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
45385 +echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
45386 +    (
45387 +      cat <<\_ASBOX
45388 +## ------------------------------------------ ##
45389 +## Report this to the AC_PACKAGE_NAME lists.  ##
45390 +## ------------------------------------------ ##
45391 +_ASBOX
45392 +    ) |
45393 +      sed "s/^/$as_me: WARNING:     /" >&2
45394 +    ;;
45395 +esac
45396 +echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
45397 +echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
45398 +if test "${ac_cv_header_arpa_inet_h+set}" = set; then
45399 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45400 +else
45401 +  ac_cv_header_arpa_inet_h=$ac_header_preproc
45402 +fi
45403 +echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
45404 +echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
45405 +
45406 +fi
45407 +if test $ac_cv_header_arpa_inet_h = yes; then
45408 +  :
45409 +else
45410 +  ok_so_far=no
45411 +fi
45412 +
45413 +
45414 +fi
45415 +if test $ok_so_far = yes; then
45416 +  cat >>confdefs.h <<\_ACEOF
45417 +#define HAVE_INET_SOCKETS 1
45418 +_ACEOF
45419 +
45420 +fi
45421 +
45422 +if test -f /usr/lpp/X11/bin/smt.exp; then
45423 +  cat >>confdefs.h <<\_ACEOF
45424 +#define HAVE_AIX_SMT_EXP 1
45425 +_ACEOF
45426 +
45427 +fi
45428 +
45429 +echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
45430 +echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
45431 +if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
45432 +  echo "$as_me:$LINENO: result: yes" >&5
45433 +echo "${ECHO_T}yes" >&6
45434 +  cat >>confdefs.h <<\_ACEOF
45435 +#define HAVE_DEV_PTMX 1
45436 +_ACEOF
45437 +
45438 +else
45439 +  echo "$as_me:$LINENO: result: no" >&5
45440 +echo "${ECHO_T}no" >&6
45441 +fi
45442 +
45443 +echo "$as_me:$LINENO: checking for pid_t" >&5
45444 +echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
45445 +if test "${ac_cv_type_pid_t+set}" = set; then
45446 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45447 +else
45448 +  cat >conftest.$ac_ext <<_ACEOF
45449 +/* confdefs.h.  */
45450 +_ACEOF
45451 +cat confdefs.h >>conftest.$ac_ext
45452 +cat >>conftest.$ac_ext <<_ACEOF
45453 +/* end confdefs.h.  */
45454 +$ac_includes_default
45455 +int
45456 +main ()
45457 +{
45458 +if ((pid_t *) 0)
45459 +  return 0;
45460 +if (sizeof (pid_t))
45461 +  return 0;
45462 +  ;
45463 +  return 0;
45464 +}
45465 +_ACEOF
45466 +rm -f conftest.$ac_objext
45467 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45468 +  (eval $ac_compile) 2>conftest.er1
45469 +  ac_status=$?
45470 +  grep -v '^ *+' conftest.er1 >conftest.err
45471 +  rm -f conftest.er1
45472 +  cat conftest.err >&5
45473 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45474 +  (exit $ac_status); } &&
45475 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45476 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45477 +  (eval $ac_try) 2>&5
45478 +  ac_status=$?
45479 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45480 +  (exit $ac_status); }; } &&
45481 +        { ac_try='test -s conftest.$ac_objext'
45482 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45483 +  (eval $ac_try) 2>&5
45484 +  ac_status=$?
45485 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45486 +  (exit $ac_status); }; }; then
45487 +  ac_cv_type_pid_t=yes
45488 +else
45489 +  echo "$as_me: failed program was:" >&5
45490 +sed 's/^/| /' conftest.$ac_ext >&5
45491 +
45492 +ac_cv_type_pid_t=no
45493 +fi
45494 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45495 +fi
45496 +echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
45497 +echo "${ECHO_T}$ac_cv_type_pid_t" >&6
45498 +if test $ac_cv_type_pid_t = yes; then
45499 +  :
45500 +else
45501 +
45502 +cat >>confdefs.h <<_ACEOF
45503 +#define pid_t int
45504 +_ACEOF
45505 +
45506 +fi
45507 +
45508 +
45509 +
45510 +for ac_header in unistd.h vfork.h
45511 +do
45512 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45513 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45514 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
45515 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45516 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45517 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45518 +fi
45519 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45520 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45521 +else
45522 +  # Is the header compilable?
45523 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
45524 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45525 +cat >conftest.$ac_ext <<_ACEOF
45526 +/* confdefs.h.  */
45527 +_ACEOF
45528 +cat confdefs.h >>conftest.$ac_ext
45529 +cat >>conftest.$ac_ext <<_ACEOF
45530 +/* end confdefs.h.  */
45531 +$ac_includes_default
45532 +#include <$ac_header>
45533 +_ACEOF
45534 +rm -f conftest.$ac_objext
45535 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45536 +  (eval $ac_compile) 2>conftest.er1
45537 +  ac_status=$?
45538 +  grep -v '^ *+' conftest.er1 >conftest.err
45539 +  rm -f conftest.er1
45540 +  cat conftest.err >&5
45541 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45542 +  (exit $ac_status); } &&
45543 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45544 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 +  (eval $ac_try) 2>&5
45546 +  ac_status=$?
45547 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 +  (exit $ac_status); }; } &&
45549 +        { ac_try='test -s conftest.$ac_objext'
45550 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45551 +  (eval $ac_try) 2>&5
45552 +  ac_status=$?
45553 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45554 +  (exit $ac_status); }; }; then
45555 +  ac_header_compiler=yes
45556 +else
45557 +  echo "$as_me: failed program was:" >&5
45558 +sed 's/^/| /' conftest.$ac_ext >&5
45559 +
45560 +ac_header_compiler=no
45561 +fi
45562 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45563 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45564 +echo "${ECHO_T}$ac_header_compiler" >&6
45565 +
45566 +# Is the header present?
45567 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
45568 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45569 +cat >conftest.$ac_ext <<_ACEOF
45570 +/* confdefs.h.  */
45571 +_ACEOF
45572 +cat confdefs.h >>conftest.$ac_ext
45573 +cat >>conftest.$ac_ext <<_ACEOF
45574 +/* end confdefs.h.  */
45575 +#include <$ac_header>
45576 +_ACEOF
45577 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45578 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45579 +  ac_status=$?
45580 +  grep -v '^ *+' conftest.er1 >conftest.err
45581 +  rm -f conftest.er1
45582 +  cat conftest.err >&5
45583 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45584 +  (exit $ac_status); } >/dev/null; then
45585 +  if test -s conftest.err; then
45586 +    ac_cpp_err=$ac_c_preproc_warn_flag
45587 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45588 +  else
45589 +    ac_cpp_err=
45590 +  fi
45591 +else
45592 +  ac_cpp_err=yes
45593 +fi
45594 +if test -z "$ac_cpp_err"; then
45595 +  ac_header_preproc=yes
45596 +else
45597 +  echo "$as_me: failed program was:" >&5
45598 +sed 's/^/| /' conftest.$ac_ext >&5
45599 +
45600 +  ac_header_preproc=no
45601 +fi
45602 +rm -f conftest.err conftest.$ac_ext
45603 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45604 +echo "${ECHO_T}$ac_header_preproc" >&6
45605 +
45606 +# So?  What about this header?
45607 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45608 +  yes:no: )
45609 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45610 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45611 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45612 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45613 +    ac_header_preproc=yes
45614 +    ;;
45615 +  no:yes:* )
45616 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45617 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45618 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45619 +echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45620 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45621 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45622 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45623 +echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45624 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45625 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45626 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45627 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45628 +    (
45629 +      cat <<\_ASBOX
45630 +## ------------------------------------------ ##
45631 +## Report this to the AC_PACKAGE_NAME lists.  ##
45632 +## ------------------------------------------ ##
45633 +_ASBOX
45634 +    ) |
45635 +      sed "s/^/$as_me: WARNING:     /" >&2
45636 +    ;;
45637 +esac
45638 +echo "$as_me:$LINENO: checking for $ac_header" >&5
45639 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45640 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
45641 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45642 +else
45643 +  eval "$as_ac_Header=\$ac_header_preproc"
45644 +fi
45645 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45646 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45647 +
45648 +fi
45649 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
45650 +  cat >>confdefs.h <<_ACEOF
45651 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45652 +_ACEOF
45653 +
45654 +fi
45655 +
45656 +done
45657 +
45658 +
45659 +
45660 +for ac_func in fork vfork
45661 +do
45662 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45663 +echo "$as_me:$LINENO: checking for $ac_func" >&5
45664 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45665 +if eval "test \"\${$as_ac_var+set}\" = set"; then
45666 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45667 +else
45668 +  cat >conftest.$ac_ext <<_ACEOF
45669 +/* confdefs.h.  */
45670 +_ACEOF
45671 +cat confdefs.h >>conftest.$ac_ext
45672 +cat >>conftest.$ac_ext <<_ACEOF
45673 +/* end confdefs.h.  */
45674 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45675 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45676 +#define $ac_func innocuous_$ac_func
45677 +
45678 +/* System header to define __stub macros and hopefully few prototypes,
45679 +    which can conflict with char $ac_func (); below.
45680 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45681 +    <limits.h> exists even on freestanding compilers.  */
45682 +
45683 +#ifdef __STDC__
45684 +# include <limits.h>
45685 +#else
45686 +# include <assert.h>
45687 +#endif
45688 +
45689 +#undef $ac_func
45690 +
45691 +/* Override any gcc2 internal prototype to avoid an error.  */
45692 +#ifdef __cplusplus
45693 +extern "C"
45694 +{
45695 +#endif
45696 +/* We use char because int might match the return type of a gcc2
45697 +   builtin and then its argument prototype would still apply.  */
45698 +char $ac_func ();
45699 +/* The GNU C library defines this for functions which it implements
45700 +    to always fail with ENOSYS.  Some functions are actually named
45701 +    something starting with __ and the normal name is an alias.  */
45702 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45703 +choke me
45704 +#else
45705 +char (*f) () = $ac_func;
45706 +#endif
45707 +#ifdef __cplusplus
45708 +}
45709 +#endif
45710 +
45711 +int
45712 +main ()
45713 +{
45714 +return f != $ac_func;
45715 +  ;
45716 +  return 0;
45717 +}
45718 +_ACEOF
45719 +rm -f conftest.$ac_objext conftest$ac_exeext
45720 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45721 +  (eval $ac_link) 2>conftest.er1
45722 +  ac_status=$?
45723 +  grep -v '^ *+' conftest.er1 >conftest.err
45724 +  rm -f conftest.er1
45725 +  cat conftest.err >&5
45726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45727 +  (exit $ac_status); } &&
45728 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45729 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45730 +  (eval $ac_try) 2>&5
45731 +  ac_status=$?
45732 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45733 +  (exit $ac_status); }; } &&
45734 +        { ac_try='test -s conftest$ac_exeext'
45735 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736 +  (eval $ac_try) 2>&5
45737 +  ac_status=$?
45738 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 +  (exit $ac_status); }; }; then
45740 +  eval "$as_ac_var=yes"
45741 +else
45742 +  echo "$as_me: failed program was:" >&5
45743 +sed 's/^/| /' conftest.$ac_ext >&5
45744 +
45745 +eval "$as_ac_var=no"
45746 +fi
45747 +rm -f conftest.err conftest.$ac_objext \
45748 +      conftest$ac_exeext conftest.$ac_ext
45749 +fi
45750 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45751 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45752 +if test `eval echo '${'$as_ac_var'}'` = yes; then
45753 +  cat >>confdefs.h <<_ACEOF
45754 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45755 +_ACEOF
45756 +
45757 +fi
45758 +done
45759 +
45760 +if test "x$ac_cv_func_fork" = xyes; then
45761 +  echo "$as_me:$LINENO: checking for working fork" >&5
45762 +echo $ECHO_N "checking for working fork... $ECHO_C" >&6
45763 +if test "${ac_cv_func_fork_works+set}" = set; then
45764 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45765 +else
45766 +  if test "$cross_compiling" = yes; then
45767 +  ac_cv_func_fork_works=cross
45768 +else
45769 +  cat >conftest.$ac_ext <<_ACEOF
45770 +/* By Ruediger Kuhlmann. */
45771 +      #include <sys/types.h>
45772 +      #if HAVE_UNISTD_H
45773 +      # include <unistd.h>
45774 +      #endif
45775 +      /* Some systems only have a dummy stub for fork() */
45776 +      int main ()
45777 +      {
45778 +       if (fork() < 0)
45779 +         exit (1);
45780 +       exit (0);
45781 +      }
45782 +_ACEOF
45783 +rm -f conftest$ac_exeext
45784 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45785 +  (eval $ac_link) 2>&5
45786 +  ac_status=$?
45787 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45789 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45790 +  (eval $ac_try) 2>&5
45791 +  ac_status=$?
45792 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793 +  (exit $ac_status); }; }; then
45794 +  ac_cv_func_fork_works=yes
45795 +else
45796 +  echo "$as_me: program exited with status $ac_status" >&5
45797 +echo "$as_me: failed program was:" >&5
45798 +sed 's/^/| /' conftest.$ac_ext >&5
45799 +
45800 +( exit $ac_status )
45801 +ac_cv_func_fork_works=no
45802 +fi
45803 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45804 +fi
45805 +fi
45806 +echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
45807 +echo "${ECHO_T}$ac_cv_func_fork_works" >&6
45808 +
45809 +else
45810 +  ac_cv_func_fork_works=$ac_cv_func_fork
45811 +fi
45812 +if test "x$ac_cv_func_fork_works" = xcross; then
45813 +  case $host in
45814 +    *-*-amigaos* | *-*-msdosdjgpp*)
45815 +      # Override, as these systems have only a dummy fork() stub
45816 +      ac_cv_func_fork_works=no
45817 +      ;;
45818 +    *)
45819 +      ac_cv_func_fork_works=yes
45820 +      ;;
45821 +  esac
45822 +  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
45823 +echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
45824 +fi
45825 +ac_cv_func_vfork_works=$ac_cv_func_vfork
45826 +if test "x$ac_cv_func_vfork" = xyes; then
45827 +  echo "$as_me:$LINENO: checking for working vfork" >&5
45828 +echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
45829 +if test "${ac_cv_func_vfork_works+set}" = set; then
45830 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45831 +else
45832 +  if test "$cross_compiling" = yes; then
45833 +  ac_cv_func_vfork_works=cross
45834 +else
45835 +  cat >conftest.$ac_ext <<_ACEOF
45836 +/* confdefs.h.  */
45837 +_ACEOF
45838 +cat confdefs.h >>conftest.$ac_ext
45839 +cat >>conftest.$ac_ext <<_ACEOF
45840 +/* end confdefs.h.  */
45841 +/* Thanks to Paul Eggert for this test.  */
45842 +#include <stdio.h>
45843 +#include <stdlib.h>
45844 +#include <sys/types.h>
45845 +#include <sys/stat.h>
45846 +#include <sys/wait.h>
45847 +#if HAVE_UNISTD_H
45848 +# include <unistd.h>
45849 +#endif
45850 +#if HAVE_VFORK_H
45851 +# include <vfork.h>
45852 +#endif
45853 +/* On some sparc systems, changes by the child to local and incoming
45854 +   argument registers are propagated back to the parent.  The compiler
45855 +   is told about this with #include <vfork.h>, but some compilers
45856 +   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
45857 +   static variable whose address is put into a register that is
45858 +   clobbered by the vfork.  */
45859 +static void
45860 +#ifdef __cplusplus
45861 +sparc_address_test (int arg)
45862 +# else
45863 +sparc_address_test (arg) int arg;
45864 +#endif
45865 +{
45866 +  static pid_t child;
45867 +  if (!child) {
45868 +    child = vfork ();
45869 +    if (child < 0) {
45870 +      perror ("vfork");
45871 +      _exit(2);
45872 +    }
45873 +    if (!child) {
45874 +      arg = getpid();
45875 +      write(-1, "", 0);
45876 +      _exit (arg);
45877 +    }
45878 +  }
45879 +}
45880 +
45881 +int
45882 +main ()
45883 +{
45884 +  pid_t parent = getpid ();
45885 +  pid_t child;
45886 +
45887 +  sparc_address_test (0);
45888 +
45889 +  child = vfork ();
45890 +
45891 +  if (child == 0) {
45892 +    /* Here is another test for sparc vfork register problems.  This
45893 +       test uses lots of local variables, at least as many local
45894 +       variables as main has allocated so far including compiler
45895 +       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
45896 +       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
45897 +       reuse the register of parent for one of the local variables,
45898 +       since it will think that parent can't possibly be used any more
45899 +       in this routine.  Assigning to the local variable will thus
45900 +       munge parent in the parent process.  */
45901 +    pid_t
45902 +      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
45903 +      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
45904 +    /* Convince the compiler that p..p7 are live; otherwise, it might
45905 +       use the same hardware register for all 8 local variables.  */
45906 +    if (p != p1 || p != p2 || p != p3 || p != p4
45907 +       || p != p5 || p != p6 || p != p7)
45908 +      _exit(1);
45909 +
45910 +    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
45911 +       from child file descriptors.  If the child closes a descriptor
45912 +       before it execs or exits, this munges the parent's descriptor
45913 +       as well.  Test for this by closing stdout in the child.  */
45914 +    _exit(close(fileno(stdout)) != 0);
45915 +  } else {
45916 +    int status;
45917 +    struct stat st;
45918 +
45919 +    while (wait(&status) != child)
45920 +      ;
45921 +    exit(
45922 +        /* Was there some problem with vforking?  */
45923 +        child < 0
45924 +
45925 +        /* Did the child fail?  (This shouldn't happen.)  */
45926 +        || status
45927 +
45928 +        /* Did the vfork/compiler bug occur?  */
45929 +        || parent != getpid()
45930 +
45931 +        /* Did the file descriptor bug occur?  */
45932 +        || fstat(fileno(stdout), &st) != 0
45933 +        );
45934 +  }
45935 +}
45936 +_ACEOF
45937 +rm -f conftest$ac_exeext
45938 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45939 +  (eval $ac_link) 2>&5
45940 +  ac_status=$?
45941 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45943 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45944 +  (eval $ac_try) 2>&5
45945 +  ac_status=$?
45946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947 +  (exit $ac_status); }; }; then
45948 +  ac_cv_func_vfork_works=yes
45949 +else
45950 +  echo "$as_me: program exited with status $ac_status" >&5
45951 +echo "$as_me: failed program was:" >&5
45952 +sed 's/^/| /' conftest.$ac_ext >&5
45953 +
45954 +( exit $ac_status )
45955 +ac_cv_func_vfork_works=no
45956 +fi
45957 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45958 +fi
45959 +fi
45960 +echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
45961 +echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
45962 +
45963 +fi;
45964 +if test "x$ac_cv_func_fork_works" = xcross; then
45965 +  ac_cv_func_vfork_works=$ac_cv_func_vfork
45966 +  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
45967 +echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
45968 +fi
45969 +
45970 +if test "x$ac_cv_func_vfork_works" = xyes; then
45971 +
45972 +cat >>confdefs.h <<\_ACEOF
45973 +#define HAVE_WORKING_VFORK 1
45974 +_ACEOF
45975 +
45976 +else
45977 +
45978 +cat >>confdefs.h <<\_ACEOF
45979 +#define vfork fork
45980 +_ACEOF
45981 +
45982 +fi
45983 +if test "x$ac_cv_func_fork_works" = xyes; then
45984 +
45985 +cat >>confdefs.h <<\_ACEOF
45986 +#define HAVE_WORKING_FORK 1
45987 +_ACEOF
45988 +
45989 +fi
45990 +
45991 +
45992 +# Fixme: This should be replaced when we have autoconf 2.14.
45993 +echo "$as_me:$LINENO: checking for size_t" >&5
45994 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
45995 +if test "${ac_cv_type_size_t+set}" = set; then
45996 +  echo $ECHO_N "(cached) $ECHO_C" >&6
45997 +else
45998 +  cat >conftest.$ac_ext <<_ACEOF
45999 +/* confdefs.h.  */
46000 +_ACEOF
46001 +cat confdefs.h >>conftest.$ac_ext
46002 +cat >>conftest.$ac_ext <<_ACEOF
46003 +/* end confdefs.h.  */
46004 +$ac_includes_default
46005 +int
46006 +main ()
46007 +{
46008 +if ((size_t *) 0)
46009 +  return 0;
46010 +if (sizeof (size_t))
46011 +  return 0;
46012 +  ;
46013 +  return 0;
46014 +}
46015 +_ACEOF
46016 +rm -f conftest.$ac_objext
46017 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46018 +  (eval $ac_compile) 2>conftest.er1
46019 +  ac_status=$?
46020 +  grep -v '^ *+' conftest.er1 >conftest.err
46021 +  rm -f conftest.er1
46022 +  cat conftest.err >&5
46023 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46024 +  (exit $ac_status); } &&
46025 +        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46026 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46027 +  (eval $ac_try) 2>&5
46028 +  ac_status=$?
46029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46030 +  (exit $ac_status); }; } &&
46031 +        { ac_try='test -s conftest.$ac_objext'
46032 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46033 +  (eval $ac_try) 2>&5
46034 +  ac_status=$?
46035 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46036 +  (exit $ac_status); }; }; then
46037 +  ac_cv_type_size_t=yes
46038 +else
46039 +  echo "$as_me: failed program was:" >&5
46040 +sed 's/^/| /' conftest.$ac_ext >&5
46041 +
46042 +ac_cv_type_size_t=no
46043 +fi
46044 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46045 +fi
46046 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
46047 +echo "${ECHO_T}$ac_cv_type_size_t" >&6
46048 +if test $ac_cv_type_size_t = yes; then
46049 +  :
46050 +else
46051 +
46052 +cat >>confdefs.h <<_ACEOF
46053 +#define size_t unsigned
46054 +_ACEOF
46055 +
46056 +fi
46057 +
46058 +
46059 +# Set up the CFLAGS for real compilation, so we can substitute it.
46060 +CFLAGS="$REAL_CFLAGS"
46061 +CPPFLAGS="$REAL_CPPFLAGS"
46062 +
46063 +#### Find out which version of Emacs this is.
46064 +version=`grep 'defconst[        ]*emacs-version' ${srcdir}/lisp/version.el \
46065 +        | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
46066 +if test x"${version}" = x; then
46067 +  { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
46068 +echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
46069 +   { (exit 1); exit 1; }; }
46070 +fi
46071 +
46072 +### Specify what sort of things we'll be editing into Makefile and config.h.
46073 +### Use configuration here uncanonicalized to avoid exceeding size limits.
46074 +
46075 +
46076 +
46077 +
46078 +
46079 +
46080 +
46081 +
46082 +
46083 +
46084 +
46085 +
46086 +
46087 +
46088 +
46089 +
46090 +
46091 +
46092 +
46093 +
46094 +
46095 +
46096 +
46097 +
46098 +
46099 +
46100 +
46101 +
46102 +
46103 +
46104 +
46105 +
46106 +cat >>confdefs.h <<_ACEOF
46107 +#define EMACS_CONFIGURATION "${canonical}"
46108 +_ACEOF
46109 +
46110 +cat >>confdefs.h <<_ACEOF
46111 +#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
46112 +_ACEOF
46113 +
46114 +cat >>confdefs.h <<_ACEOF
46115 +#define config_machfile "${machfile}"
46116 +_ACEOF
46117 +
46118 +cat >>confdefs.h <<_ACEOF
46119 +#define config_opsysfile "${opsysfile}"
46120 +_ACEOF
46121 +
46122 +cat >>confdefs.h <<_ACEOF
46123 +#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
46124 +_ACEOF
46125 +
46126 +cat >>confdefs.h <<_ACEOF
46127 +#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
46128 +_ACEOF
46129 +
46130 +cat >>confdefs.h <<_ACEOF
46131 +#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
46132 +_ACEOF
46133 +
46134 +cat >>confdefs.h <<_ACEOF
46135 +#define UNEXEC_SRC ${UNEXEC_SRC}
46136 +_ACEOF
46137 +
46138 +
46139 +if test "${HAVE_X_WINDOWS}" = "yes" ; then
46140 +  cat >>confdefs.h <<\_ACEOF
46141 +#define HAVE_X_WINDOWS 1
46142 +_ACEOF
46143 +
46144 +fi
46145 +if test "${USE_X_TOOLKIT}" != "none" ; then
46146 +  cat >>confdefs.h <<\_ACEOF
46147 +#define USE_X_TOOLKIT 1
46148 +_ACEOF
46149 +
46150 +fi
46151 +if test "${HAVE_X11}" = "yes" ; then
46152 +  cat >>confdefs.h <<\_ACEOF
46153 +#define HAVE_X11 1
46154 +_ACEOF
46155 +
46156 +fi
46157 +if test "${HAVE_XFREE386}" = "yes" ; then
46158 +  cat >>confdefs.h <<\_ACEOF
46159 +#define HAVE_XFREE386 1
46160 +_ACEOF
46161 +
46162 +fi
46163 +if test "${HAVE_MENUS}" = "yes" ; then
46164 +  cat >>confdefs.h <<\_ACEOF
46165 +#define HAVE_MENUS 1
46166 +_ACEOF
46167 +
46168 +fi
46169 +if test "${GNU_MALLOC}" = "yes" ; then
46170 +  cat >>confdefs.h <<\_ACEOF
46171 +#define GNU_MALLOC 1
46172 +_ACEOF
46173 +
46174 +fi
46175 +if test "${REL_ALLOC}" = "yes" ; then
46176 +  cat >>confdefs.h <<\_ACEOF
46177 +#define REL_ALLOC 1
46178 +_ACEOF
46179 +
46180 +fi
46181 +
46182 +#### Report on what we decided to do.
46183 +echo "
46184 +Configured for \`${canonical}'.
46185 +
46186 +  Where should the build process find the source code?    ${srcdir}
46187 +  What operating system and machine description files should Emacs use?
46188 +        \`${opsysfile}' and \`${machfile}'
46189 +  What compiler should emacs be built with?               ${CC} ${CFLAGS}
46190 +  Should Emacs use the GNU version of malloc?             ${GNU_MALLOC}${GNU_MALLOC_reason}
46191 +  Should Emacs use a relocating allocator for buffers?    ${REL_ALLOC}
46192 +  Should Emacs use mmap(2) for buffer allocation?         $use_mmap_for_buffers
46193 +  What window system should Emacs use?                    ${window_system}
46194 +  What toolkit should Emacs use?                          ${USE_X_TOOLKIT}"
46195 +
46196 +if test -n "${x_includes}"; then
46197 +echo "  Where do we find X Windows header files?                ${x_includes}"
46198 +else
46199 +echo "  Where do we find X Windows header files?                Standard dirs"
46200 +fi
46201 +if test -n "${x_libraries}"; then
46202 +echo "  Where do we find X Windows libraries?                   ${x_libraries}"
46203 +else
46204 +echo "  Where do we find X Windows libraries?                   Standard dirs"
46205 +fi
46206 +
46207 +echo "  Does Emacs use -lXaw3d?                                 ${HAVE_XAW3D}"
46208 +echo "  Does Emacs use -lXpm?                                   ${HAVE_XPM}"
46209 +echo "  Does Emacs use -ljpeg?                                  ${HAVE_JPEG}"
46210 +echo "  Does Emacs use -ltiff?                                  ${HAVE_TIFF}"
46211 +echo "  Does Emacs use -lungif?                                 ${HAVE_GIF}"
46212 +echo "  Does Emacs use -lpng?                                   ${HAVE_PNG}"
46213 +echo "  Does Emacs use X toolkit scroll bars?                   ${USE_TOOLKIT_SCROLL_BARS}"
46214 +echo
46215 +
46216 +# Remove any trailing slashes in these variables.
46217 +test "${prefix}" != NONE &&
46218 +  prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
46219 +test "${exec_prefix}" != NONE &&
46220 +  exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
46221 +
46222 +## Check if the C preprocessor will convert `..' to `. .'.  If so, set
46223 +## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
46224 +## from Makefile.c can correctly provide the arg `-traditional' to the
46225 +## C preprocessor.
46226 +
46227 +cat >conftest.$ac_ext <<_ACEOF
46228 +/* confdefs.h.  */
46229 +_ACEOF
46230 +cat confdefs.h >>conftest.$ac_ext
46231 +cat >>conftest.$ac_ext <<_ACEOF
46232 +/* end confdefs.h.  */
46233 +yes..yes
46234 +_ACEOF
46235 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46236 +  $EGREP "yes..yes" >/dev/null 2>&1; then
46237 +  CPP_NEED_TRADITIONAL=no
46238 +else
46239 +  CPP_NEED_TRADITIONAL=yes
46240 +fi
46241 +rm -f conftest*
46242 +
46243 +
46244 +                                                                                ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile"
46245 +          ac_config_commands="$ac_config_commands default"
46246 +cat >confcache <<\_ACEOF
46247 +# This file is a shell script that caches the results of configure
46248 +# tests run on this system so they can be shared between configure
46249 +# scripts and configure runs, see configure's option --config-cache.
46250 +# It is not useful on other systems.  If it contains results you don't
46251 +# want to keep, you may remove or edit it.
46252 +#
46253 +# config.status only pays attention to the cache file if you give it
46254 +# the --recheck option to rerun configure.
46255 +#
46256 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
46257 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
46258 +# following values.
46259 +
46260 +_ACEOF
46261 +
46262 +# The following way of writing the cache mishandles newlines in values,
46263 +# but we know of no workaround that is simple, portable, and efficient.
46264 +# So, don't put newlines in cache variables' values.
46265 +# Ultrix sh set writes to stderr and can't be redirected directly,
46266 +# and sets the high bit in the cache file unless we assign to the vars.
46267 +{
46268 +  (set) 2>&1 |
46269 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
46270 +    *ac_space=\ *)
46271 +      # `set' does not quote correctly, so add quotes (double-quote
46272 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
46273 +      sed -n \
46274 +       "s/'/'\\\\''/g;
46275 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46276 +      ;;
46277 +    *)
46278 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
46279 +      sed -n \
46280 +       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
46281 +      ;;
46282 +    esac;
46283 +} |
46284 +  sed '
46285 +     t clear
46286 +     : clear
46287 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46288 +     t end
46289 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46290 +     : end' >>confcache
46291 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
46292 +  if test -w $cache_file; then
46293 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46294 +    cat confcache >$cache_file
46295 +  else
46296 +    echo "not updating unwritable cache $cache_file"
46297 +  fi
46298 +fi
46299 +rm -f confcache
46300 +
46301 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
46302 +# Let make expand exec_prefix.
46303 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46304 +
46305 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
46306 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46307 +# trailing colons and then remove the whole line if VPATH becomes empty
46308 +# (actually we leave an empty line to preserve line numbers).
46309 +if test "x$srcdir" = x.; then
46310 +  ac_vpsub='/^[         ]*VPATH[        ]*=/{
46311 +s/:*\$(srcdir):*/:/;
46312 +s/:*\${srcdir}:*/:/;
46313 +s/:*@srcdir@:*/:/;
46314 +s/^\([^=]*=[    ]*\):*/\1/;
46315 +s/:*$//;
46316 +s/^[^=]*=[      ]*$//;
46317 +}'
46318 +fi
46319 +
46320 +DEFS=-DHAVE_CONFIG_H
46321 +
46322 +ac_libobjs=
46323 +ac_ltlibobjs=
46324 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46325 +  # 1. Remove the extension, and $U if already installed.
46326 +  ac_i=`echo "$ac_i" |
46327 +        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
46328 +  # 2. Add them.
46329 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46330 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46331 +done
46332 +LIBOBJS=$ac_libobjs
46333 +
46334 +LTLIBOBJS=$ac_ltlibobjs
46335 +
46336 +
46337 +
46338 +: ${CONFIG_STATUS=./config.status}
46339 +ac_clean_files_save=$ac_clean_files
46340 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46341 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46342 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
46343 +cat >$CONFIG_STATUS <<_ACEOF
46344 +#! $SHELL
46345 +# Generated by $as_me.
46346 +# Run this file to recreate the current configuration.
46347 +# Compiler output produced by configure, useful for debugging
46348 +# configure, is in config.log if it exists.
46349 +
46350 +debug=false
46351 +ac_cs_recheck=false
46352 +ac_cs_silent=false
46353 +SHELL=\${CONFIG_SHELL-$SHELL}
46354 +_ACEOF
46355 +
46356 +cat >>$CONFIG_STATUS <<\_ACEOF
46357 +## --------------------- ##
46358 +## M4sh Initialization.  ##
46359 +## --------------------- ##
46360 +
46361 +# Be Bourne compatible
46362 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46363 +  emulate sh
46364 +  NULLCMD=:
46365 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46366 +  # is contrary to our usage.  Disable this feature.
46367 +  alias -g '${1+"$@"}'='"$@"'
46368 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46369 +  set -o posix
46370 +fi
46371 +DUALCASE=1; export DUALCASE # for MKS sh
46372 +
46373 +# Support unset when possible.
46374 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46375 +  as_unset=unset
46376 +else
46377 +  as_unset=false
46378 +fi
46379 +
46380 +
46381 +# Work around bugs in pre-3.0 UWIN ksh.
46382 +$as_unset ENV MAIL MAILPATH
46383 +PS1='$ '
46384 +PS2='> '
46385 +PS4='+ '
46386 +
46387 +# NLS nuisances.
46388 +for as_var in \
46389 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46390 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46391 +  LC_TELEPHONE LC_TIME
46392 +do
46393 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46394 +    eval $as_var=C; export $as_var
46395 +  else
46396 +    $as_unset $as_var
46397 +  fi
46398 +done
46399 +
46400 +# Required to use basename.
46401 +if expr a : '\(a\)' >/dev/null 2>&1; then
46402 +  as_expr=expr
46403 +else
46404 +  as_expr=false
46405 +fi
46406 +
46407 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46408 +  as_basename=basename
46409 +else
46410 +  as_basename=false
46411 +fi
46412 +
46413 +
46414 +# Name of the executable.
46415 +as_me=`$as_basename "$0" ||
46416 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46417 +        X"$0" : 'X\(//\)$' \| \
46418 +        X"$0" : 'X\(/\)$' \| \
46419 +        .     : '\(.\)' 2>/dev/null ||
46420 +echo X/"$0" |
46421 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46422 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
46423 +         /^X\/\(\/\).*/{ s//\1/; q; }
46424 +         s/.*/./; q'`
46425 +
46426 +
46427 +# PATH needs CR, and LINENO needs CR and PATH.
46428 +# Avoid depending upon Character Ranges.
46429 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46430 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46431 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46432 +as_cr_digits='0123456789'
46433 +as_cr_alnum=$as_cr_Letters$as_cr_digits
46434 +
46435 +# The user is always right.
46436 +if test "${PATH_SEPARATOR+set}" != set; then
46437 +  echo "#! /bin/sh" >conf$$.sh
46438 +  echo  "exit 0"   >>conf$$.sh
46439 +  chmod +x conf$$.sh
46440 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46441 +    PATH_SEPARATOR=';'
46442 +  else
46443 +    PATH_SEPARATOR=:
46444 +  fi
46445 +  rm -f conf$$.sh
46446 +fi
46447 +
46448 +
46449 +  as_lineno_1=$LINENO
46450 +  as_lineno_2=$LINENO
46451 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46452 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
46453 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
46454 +  # Find who we are.  Look in the path if we contain no path at all
46455 +  # relative or not.
46456 +  case $0 in
46457 +    *[\\/]* ) as_myself=$0 ;;
46458 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46459 +for as_dir in $PATH
46460 +do
46461 +  IFS=$as_save_IFS
46462 +  test -z "$as_dir" && as_dir=.
46463 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46464 +done
46465 +
46466 +       ;;
46467 +  esac
46468 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
46469 +  # in which case we are not to be found in the path.
46470 +  if test "x$as_myself" = x; then
46471 +    as_myself=$0
46472 +  fi
46473 +  if test ! -f "$as_myself"; then
46474 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46475 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46476 +   { (exit 1); exit 1; }; }
46477 +  fi
46478 +  case $CONFIG_SHELL in
46479 +  '')
46480 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46481 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46482 +do
46483 +  IFS=$as_save_IFS
46484 +  test -z "$as_dir" && as_dir=.
46485 +  for as_base in sh bash ksh sh5; do
46486 +        case $as_dir in
46487 +        /*)
46488 +          if ("$as_dir/$as_base" -c '
46489 +  as_lineno_1=$LINENO
46490 +  as_lineno_2=$LINENO
46491 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46492 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
46493 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
46494 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46495 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46496 +            CONFIG_SHELL=$as_dir/$as_base
46497 +            export CONFIG_SHELL
46498 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46499 +          fi;;
46500 +        esac
46501 +       done
46502 +done
46503 +;;
46504 +  esac
46505 +
46506 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46507 +  # uniformly replaced by the line number.  The first 'sed' inserts a
46508 +  # line-number line before each line; the second 'sed' does the real
46509 +  # work.  The second script uses 'N' to pair each line-number line
46510 +  # with the numbered line, and appends trailing '-' during
46511 +  # substitution so that $LINENO is not a special case at line end.
46512 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46513 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
46514 +  sed '=' <$as_myself |
46515 +    sed '
46516 +      N
46517 +      s,$,-,
46518 +      : loop
46519 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46520 +      t loop
46521 +      s,-$,,
46522 +      s,^['$as_cr_digits']*\n,,
46523 +    ' >$as_me.lineno &&
46524 +  chmod +x $as_me.lineno ||
46525 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46526 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46527 +   { (exit 1); exit 1; }; }
46528 +
46529 +  # Don't try to exec as it changes $[0], causing all sort of problems
46530 +  # (the dirname of $[0] is not the place where we might find the
46531 +  # original and so on.  Autoconf is especially sensible to this).
46532 +  . ./$as_me.lineno
46533 +  # Exit status is that of the last command.
46534 +  exit
46535 +}
46536 +
46537 +
46538 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46539 +  *c*,-n*) ECHO_N= ECHO_C='
46540 +' ECHO_T='     ' ;;
46541 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46542 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
46543 +esac
46544 +
46545 +if expr a : '\(a\)' >/dev/null 2>&1; then
46546 +  as_expr=expr
46547 +else
46548 +  as_expr=false
46549 +fi
46550 +
46551 +rm -f conf$$ conf$$.exe conf$$.file
46552 +echo >conf$$.file
46553 +if ln -s conf$$.file conf$$ 2>/dev/null; then
46554 +  # We could just check for DJGPP; but this test a) works b) is more generic
46555 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46556 +  if test -f conf$$.exe; then
46557 +    # Don't use ln at all; we don't have any links
46558 +    as_ln_s='cp -p'
46559 +  else
46560 +    as_ln_s='ln -s'
46561 +  fi
46562 +elif ln conf$$.file conf$$ 2>/dev/null; then
46563 +  as_ln_s=ln
46564 +else
46565 +  as_ln_s='cp -p'
46566 +fi
46567 +rm -f conf$$ conf$$.exe conf$$.file
46568 +
46569 +if mkdir -p . 2>/dev/null; then
46570 +  as_mkdir_p=:
46571 +else
46572 +  test -d ./-p && rmdir ./-p
46573 +  as_mkdir_p=false
46574 +fi
46575 +
46576 +as_executable_p="test -f"
46577 +
46578 +# Sed expression to map a string onto a valid CPP name.
46579 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46580 +
46581 +# Sed expression to map a string onto a valid variable name.
46582 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46583 +
46584 +
46585 +# IFS
46586 +# We need space, tab and new line, in precisely that order.
46587 +as_nl='
46588 +'
46589 +IFS="  $as_nl"
46590 +
46591 +# CDPATH.
46592 +$as_unset CDPATH
46593 +
46594 +exec 6>&1
46595 +
46596 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
46597 +# report actual input values of CONFIG_FILES etc. instead of their
46598 +# values after options handling.  Logging --version etc. is OK.
46599 +exec 5>>config.log
46600 +{
46601 +  echo
46602 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46603 +## Running $as_me. ##
46604 +_ASBOX
46605 +} >&5
46606 +cat >&5 <<_CSEOF
46607 +
46608 +This file was extended by $as_me, which was
46609 +generated by GNU Autoconf 2.59.  Invocation command line was
46610 +
46611 +  CONFIG_FILES    = $CONFIG_FILES
46612 +  CONFIG_HEADERS  = $CONFIG_HEADERS
46613 +  CONFIG_LINKS    = $CONFIG_LINKS
46614 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
46615 +  $ $0 $@
46616 +
46617 +_CSEOF
46618 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46619 +echo >&5
46620 +_ACEOF
46621 +
46622 +# Files that config.status was made for.
46623 +if test -n "$ac_config_files"; then
46624 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46625 +fi
46626 +
46627 +if test -n "$ac_config_headers"; then
46628 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46629 +fi
46630 +
46631 +if test -n "$ac_config_links"; then
46632 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46633 +fi
46634 +
46635 +if test -n "$ac_config_commands"; then
46636 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46637 +fi
46638 +
46639 +cat >>$CONFIG_STATUS <<\_ACEOF
46640 +
46641 +ac_cs_usage="\
46642 +\`$as_me' instantiates files from templates according to the
46643 +current configuration.
46644 +
46645 +Usage: $0 [OPTIONS] [FILE]...
46646 +
46647 +  -h, --help       print this help, then exit
46648 +  -V, --version    print version number, then exit
46649 +  -q, --quiet      do not print progress messages
46650 +  -d, --debug      don't remove temporary files
46651 +      --recheck    update $as_me by reconfiguring in the same conditions
46652 +  --file=FILE[:TEMPLATE]
46653 +                  instantiate the configuration file FILE
46654 +  --header=FILE[:TEMPLATE]
46655 +                  instantiate the configuration header FILE
46656 +
46657 +Configuration files:
46658 +$config_files
46659 +
46660 +Configuration headers:
46661 +$config_headers
46662 +
46663 +Configuration commands:
46664 +$config_commands
46665 +
46666 +Report bugs to <bug-autoconf@gnu.org>."
46667 +_ACEOF
46668 +
46669 +cat >>$CONFIG_STATUS <<_ACEOF
46670 +ac_cs_version="\\
46671 +config.status
46672 +configured by $0, generated by GNU Autoconf 2.59,
46673 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46674 +
46675 +Copyright (C) 2003 Free Software Foundation, Inc.
46676 +This config.status script is free software; the Free Software Foundation
46677 +gives unlimited permission to copy, distribute and modify it."
46678 +srcdir=$srcdir
46679 +INSTALL="$INSTALL"
46680 +_ACEOF
46681 +
46682 +cat >>$CONFIG_STATUS <<\_ACEOF
46683 +# If no file are specified by the user, then we need to provide default
46684 +# value.  By we need to know if files were specified by the user.
46685 +ac_need_defaults=:
46686 +while test $# != 0
46687 +do
46688 +  case $1 in
46689 +  --*=*)
46690 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
46691 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46692 +    ac_shift=:
46693 +    ;;
46694 +  -*)
46695 +    ac_option=$1
46696 +    ac_optarg=$2
46697 +    ac_shift=shift
46698 +    ;;
46699 +  *) # This is not an option, so the user has probably given explicit
46700 +     # arguments.
46701 +     ac_option=$1
46702 +     ac_need_defaults=false;;
46703 +  esac
46704 +
46705 +  case $ac_option in
46706 +  # Handling of the options.
46707 +_ACEOF
46708 +cat >>$CONFIG_STATUS <<\_ACEOF
46709 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46710 +    ac_cs_recheck=: ;;
46711 +  --version | --vers* | -V )
46712 +    echo "$ac_cs_version"; exit 0 ;;
46713 +  --he | --h)
46714 +    # Conflict between --help and --header
46715 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
46716 +Try \`$0 --help' for more information." >&5
46717 +echo "$as_me: error: ambiguous option: $1
46718 +Try \`$0 --help' for more information." >&2;}
46719 +   { (exit 1); exit 1; }; };;
46720 +  --help | --hel | -h )
46721 +    echo "$ac_cs_usage"; exit 0 ;;
46722 +  --debug | --d* | -d )
46723 +    debug=: ;;
46724 +  --file | --fil | --fi | --f )
46725 +    $ac_shift
46726 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46727 +    ac_need_defaults=false;;
46728 +  --header | --heade | --head | --hea )
46729 +    $ac_shift
46730 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46731 +    ac_need_defaults=false;;
46732 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46733 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
46734 +    ac_cs_silent=: ;;
46735 +
46736 +  # This is an error.
46737 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46738 +Try \`$0 --help' for more information." >&5
46739 +echo "$as_me: error: unrecognized option: $1
46740 +Try \`$0 --help' for more information." >&2;}
46741 +   { (exit 1); exit 1; }; } ;;
46742 +
46743 +  *) ac_config_targets="$ac_config_targets $1" ;;
46744 +
46745 +  esac
46746 +  shift
46747 +done
46748 +
46749 +ac_configure_extra_args=
46750 +
46751 +if $ac_cs_silent; then
46752 +  exec 6>/dev/null
46753 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
46754 +fi
46755 +
46756 +_ACEOF
46757 +cat >>$CONFIG_STATUS <<_ACEOF
46758 +if \$ac_cs_recheck; then
46759 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46760 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46761 +fi
46762 +
46763 +_ACEOF
46764 +
46765 +cat >>$CONFIG_STATUS <<_ACEOF
46766 +#
46767 +# INIT-COMMANDS section.
46768 +#
46769 +
46770 +GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
46771 +
46772 +_ACEOF
46773 +
46774 +
46775 +
46776 +cat >>$CONFIG_STATUS <<\_ACEOF
46777 +for ac_config_target in $ac_config_targets
46778 +do
46779 +  case "$ac_config_target" in
46780 +  # Handling of arguments.
46781 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46782 +  "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
46783 +  "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
46784 +  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46785 +  "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
46786 +  "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
46787 +  "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
46788 +  "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
46789 +  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
46790 +  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
46791 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46792 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46793 +   { (exit 1); exit 1; }; };;
46794 +  esac
46795 +done
46796 +
46797 +# If the user did not use the arguments to specify the items to instantiate,
46798 +# then the envvar interface is used.  Set only those that are not.
46799 +# We use the long form for the default assignment because of an extremely
46800 +# bizarre bug on SunOS 4.1.3.
46801 +if $ac_need_defaults; then
46802 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46803 +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46804 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46805 +fi
46806 +
46807 +# Have a temporary directory for convenience.  Make it in the build tree
46808 +# simply because there is no reason to put it here, and in addition,
46809 +# creating and moving files from /tmp can sometimes cause problems.
46810 +# Create a temporary directory, and hook for its removal unless debugging.
46811 +$debug ||
46812 +{
46813 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46814 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
46815 +}
46816 +
46817 +# Create a (secure) tmp directory for tmp files.
46818 +
46819 +{
46820 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46821 +  test -n "$tmp" && test -d "$tmp"
46822 +}  ||
46823 +{
46824 +  tmp=./confstat$$-$RANDOM
46825 +  (umask 077 && mkdir $tmp)
46826 +} ||
46827 +{
46828 +   echo "$me: cannot create a temporary directory in ." >&2
46829 +   { (exit 1); exit 1; }
46830 +}
46831 +
46832 +_ACEOF
46833 +
46834 +cat >>$CONFIG_STATUS <<_ACEOF
46835 +
46836 +#
46837 +# CONFIG_FILES section.
46838 +#
46839 +
46840 +# No need to generate the scripts if there are no CONFIG_FILES.
46841 +# This happens for instance when ./config.status config.h
46842 +if test -n "\$CONFIG_FILES"; then
46843 +  # Protect against being on the right side of a sed subst in config.status.
46844 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46845 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46846 +s,@SHELL@,$SHELL,;t t
46847 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46848 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46849 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46850 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46851 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46852 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46853 +s,@exec_prefix@,$exec_prefix,;t t
46854 +s,@prefix@,$prefix,;t t
46855 +s,@program_transform_name@,$program_transform_name,;t t
46856 +s,@bindir@,$bindir,;t t
46857 +s,@sbindir@,$sbindir,;t t
46858 +s,@libexecdir@,$libexecdir,;t t
46859 +s,@datadir@,$datadir,;t t
46860 +s,@sysconfdir@,$sysconfdir,;t t
46861 +s,@sharedstatedir@,$sharedstatedir,;t t
46862 +s,@localstatedir@,$localstatedir,;t t
46863 +s,@libdir@,$libdir,;t t
46864 +s,@includedir@,$includedir,;t t
46865 +s,@oldincludedir@,$oldincludedir,;t t
46866 +s,@infodir@,$infodir,;t t
46867 +s,@mandir@,$mandir,;t t
46868 +s,@build_alias@,$build_alias,;t t
46869 +s,@host_alias@,$host_alias,;t t
46870 +s,@target_alias@,$target_alias,;t t
46871 +s,@DEFS@,$DEFS,;t t
46872 +s,@ECHO_C@,$ECHO_C,;t t
46873 +s,@ECHO_N@,$ECHO_N,;t t
46874 +s,@ECHO_T@,$ECHO_T,;t t
46875 +s,@LIBS@,$LIBS,;t t
46876 +s,@build@,$build,;t t
46877 +s,@build_cpu@,$build_cpu,;t t
46878 +s,@build_vendor@,$build_vendor,;t t
46879 +s,@build_os@,$build_os,;t t
46880 +s,@host@,$host,;t t
46881 +s,@host_cpu@,$host_cpu,;t t
46882 +s,@host_vendor@,$host_vendor,;t t
46883 +s,@host_os@,$host_os,;t t
46884 +s,@CC@,$CC,;t t
46885 +s,@CFLAGS@,$CFLAGS,;t t
46886 +s,@LDFLAGS@,$LDFLAGS,;t t
46887 +s,@CPPFLAGS@,$CPPFLAGS,;t t
46888 +s,@ac_ct_CC@,$ac_ct_CC,;t t
46889 +s,@EXEEXT@,$EXEEXT,;t t
46890 +s,@OBJEXT@,$OBJEXT,;t t
46891 +s,@LN_S@,$LN_S,;t t
46892 +s,@CPP@,$CPP,;t t
46893 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46894 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46895 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46896 +s,@YACC@,$YACC,;t t
46897 +s,@RANLIB@,$RANLIB,;t t
46898 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46899 +s,@EGREP@,$EGREP,;t t
46900 +s,@LIBSOUND@,$LIBSOUND,;t t
46901 +s,@SET_MAKE@,$SET_MAKE,;t t
46902 +s,@ALLOCA@,$ALLOCA,;t t
46903 +s,@LIBOBJS@,$LIBOBJS,;t t
46904 +s,@NEED_SETGID@,$NEED_SETGID,;t t
46905 +s,@KMEM_GROUP@,$KMEM_GROUP,;t t
46906 +s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
46907 +s,@version@,$version,;t t
46908 +s,@configuration@,$configuration,;t t
46909 +s,@canonical@,$canonical,;t t
46910 +s,@srcdir@,$srcdir,;t t
46911 +s,@lispdir@,$lispdir,;t t
46912 +s,@locallisppath@,$locallisppath,;t t
46913 +s,@lisppath@,$lisppath,;t t
46914 +s,@x_default_search_path@,$x_default_search_path,;t t
46915 +s,@etcdir@,$etcdir,;t t
46916 +s,@archlibdir@,$archlibdir,;t t
46917 +s,@docdir@,$docdir,;t t
46918 +s,@bitmapdir@,$bitmapdir,;t t
46919 +s,@c_switch_system@,$c_switch_system,;t t
46920 +s,@c_switch_machine@,$c_switch_machine,;t t
46921 +s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
46922 +s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
46923 +s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
46924 +s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
46925 +s,@machfile@,$machfile,;t t
46926 +s,@opsysfile@,$opsysfile,;t t
46927 +s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
46928 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46929 +CEOF
46930 +
46931 +_ACEOF
46932 +
46933 +  cat >>$CONFIG_STATUS <<\_ACEOF
46934 +  # Split the substitutions into bite-sized pieces for seds with
46935 +  # small command number limits, like on Digital OSF/1 and HP-UX.
46936 +  ac_max_sed_lines=48
46937 +  ac_sed_frag=1 # Number of current file.
46938 +  ac_beg=1 # First line for current file.
46939 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
46940 +  ac_more_lines=:
46941 +  ac_sed_cmds=
46942 +  while $ac_more_lines; do
46943 +    if test $ac_beg -gt 1; then
46944 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46945 +    else
46946 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46947 +    fi
46948 +    if test ! -s $tmp/subs.frag; then
46949 +      ac_more_lines=false
46950 +    else
46951 +      # The purpose of the label and of the branching condition is to
46952 +      # speed up the sed processing (if there are no `@' at all, there
46953 +      # is no need to browse any of the substitutions).
46954 +      # These are the two extra sed commands mentioned above.
46955 +      (echo ':t
46956 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46957 +      if test -z "$ac_sed_cmds"; then
46958 +       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46959 +      else
46960 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46961 +      fi
46962 +      ac_sed_frag=`expr $ac_sed_frag + 1`
46963 +      ac_beg=$ac_end
46964 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
46965 +    fi
46966 +  done
46967 +  if test -z "$ac_sed_cmds"; then
46968 +    ac_sed_cmds=cat
46969 +  fi
46970 +fi # test -n "$CONFIG_FILES"
46971 +
46972 +_ACEOF
46973 +cat >>$CONFIG_STATUS <<\_ACEOF
46974 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46975 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46976 +  case $ac_file in
46977 +  - | *:- | *:-:* ) # input from stdin
46978 +       cat >$tmp/stdin
46979 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46980 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46981 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46982 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46983 +  * )   ac_file_in=$ac_file.in ;;
46984 +  esac
46985 +
46986 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46987 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46988 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46989 +        X"$ac_file" : 'X\(//\)[^/]' \| \
46990 +        X"$ac_file" : 'X\(//\)$' \| \
46991 +        X"$ac_file" : 'X\(/\)' \| \
46992 +        .     : '\(.\)' 2>/dev/null ||
46993 +echo X"$ac_file" |
46994 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46995 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46996 +         /^X\(\/\/\)$/{ s//\1/; q; }
46997 +         /^X\(\/\).*/{ s//\1/; q; }
46998 +         s/.*/./; q'`
46999 +  { if $as_mkdir_p; then
47000 +    mkdir -p "$ac_dir"
47001 +  else
47002 +    as_dir="$ac_dir"
47003 +    as_dirs=
47004 +    while test ! -d "$as_dir"; do
47005 +      as_dirs="$as_dir $as_dirs"
47006 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
47007 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47008 +        X"$as_dir" : 'X\(//\)[^/]' \| \
47009 +        X"$as_dir" : 'X\(//\)$' \| \
47010 +        X"$as_dir" : 'X\(/\)' \| \
47011 +        .     : '\(.\)' 2>/dev/null ||
47012 +echo X"$as_dir" |
47013 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47014 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47015 +         /^X\(\/\/\)$/{ s//\1/; q; }
47016 +         /^X\(\/\).*/{ s//\1/; q; }
47017 +         s/.*/./; q'`
47018 +    done
47019 +    test ! -n "$as_dirs" || mkdir $as_dirs
47020 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47021 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47022 +   { (exit 1); exit 1; }; }; }
47023 +
47024 +  ac_builddir=.
47025 +
47026 +if test "$ac_dir" != .; then
47027 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47028 +  # A "../" for each directory in $ac_dir_suffix.
47029 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47030 +else
47031 +  ac_dir_suffix= ac_top_builddir=
47032 +fi
47033 +
47034 +case $srcdir in
47035 +  .)  # No --srcdir option.  We are building in place.
47036 +    ac_srcdir=.
47037 +    if test -z "$ac_top_builddir"; then
47038 +       ac_top_srcdir=.
47039 +    else
47040 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47041 +    fi ;;
47042 +  [\\/]* | ?:[\\/]* )  # Absolute path.
47043 +    ac_srcdir=$srcdir$ac_dir_suffix;
47044 +    ac_top_srcdir=$srcdir ;;
47045 +  *) # Relative path.
47046 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47047 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
47048 +esac
47049 +
47050 +# Do not use `cd foo && pwd` to compute absolute paths, because
47051 +# the directories may not exist.
47052 +case `pwd` in
47053 +.) ac_abs_builddir="$ac_dir";;
47054 +*)
47055 +  case "$ac_dir" in
47056 +  .) ac_abs_builddir=`pwd`;;
47057 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47058 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
47059 +  esac;;
47060 +esac
47061 +case $ac_abs_builddir in
47062 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
47063 +*)
47064 +  case ${ac_top_builddir}. in
47065 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
47066 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47067 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47068 +  esac;;
47069 +esac
47070 +case $ac_abs_builddir in
47071 +.) ac_abs_srcdir=$ac_srcdir;;
47072 +*)
47073 +  case $ac_srcdir in
47074 +  .) ac_abs_srcdir=$ac_abs_builddir;;
47075 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47076 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47077 +  esac;;
47078 +esac
47079 +case $ac_abs_builddir in
47080 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
47081 +*)
47082 +  case $ac_top_srcdir in
47083 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
47084 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47085 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47086 +  esac;;
47087 +esac
47088 +
47089 +
47090 +  case $INSTALL in
47091 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47092 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47093 +  esac
47094 +
47095 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
47096 +  # use $as_me), people would be surprised to read:
47097 +  #    /* config.h.  Generated by config.status.  */
47098 +  if test x"$ac_file" = x-; then
47099 +    configure_input=
47100 +  else
47101 +    configure_input="$ac_file.  "
47102 +  fi
47103 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
47104 +                                    sed 's,.*/,,'` by configure."
47105 +
47106 +  # First look for the input files in the build tree, otherwise in the
47107 +  # src tree.
47108 +  ac_file_inputs=`IFS=:
47109 +    for f in $ac_file_in; do
47110 +      case $f in
47111 +      -) echo $tmp/stdin ;;
47112 +      [\\/$]*)
47113 +        # Absolute (can't be DOS-style, as IFS=:)
47114 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47115 +echo "$as_me: error: cannot find input file: $f" >&2;}
47116 +   { (exit 1); exit 1; }; }
47117 +        echo "$f";;
47118 +      *) # Relative
47119 +        if test -f "$f"; then
47120 +          # Build tree
47121 +          echo "$f"
47122 +        elif test -f "$srcdir/$f"; then
47123 +          # Source tree
47124 +          echo "$srcdir/$f"
47125 +        else
47126 +          # /dev/null tree
47127 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47128 +echo "$as_me: error: cannot find input file: $f" >&2;}
47129 +   { (exit 1); exit 1; }; }
47130 +        fi;;
47131 +      esac
47132 +    done` || { (exit 1); exit 1; }
47133 +
47134 +  if test x"$ac_file" != x-; then
47135 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
47136 +echo "$as_me: creating $ac_file" >&6;}
47137 +    rm -f "$ac_file"
47138 +  fi
47139 +_ACEOF
47140 +cat >>$CONFIG_STATUS <<_ACEOF
47141 +  sed "$ac_vpsub
47142 +$extrasub
47143 +_ACEOF
47144 +cat >>$CONFIG_STATUS <<\_ACEOF
47145 +:t
47146 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47147 +s,@configure_input@,$configure_input,;t t
47148 +s,@srcdir@,$ac_srcdir,;t t
47149 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
47150 +s,@top_srcdir@,$ac_top_srcdir,;t t
47151 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47152 +s,@builddir@,$ac_builddir,;t t
47153 +s,@abs_builddir@,$ac_abs_builddir,;t t
47154 +s,@top_builddir@,$ac_top_builddir,;t t
47155 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47156 +s,@INSTALL@,$ac_INSTALL,;t t
47157 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47158 +  rm -f $tmp/stdin
47159 +  if test x"$ac_file" != x-; then
47160 +    mv $tmp/out $ac_file
47161 +  else
47162 +    cat $tmp/out
47163 +    rm -f $tmp/out
47164 +  fi
47165 +
47166 +done
47167 +_ACEOF
47168 +cat >>$CONFIG_STATUS <<\_ACEOF
47169 +
47170 +#
47171 +# CONFIG_HEADER section.
47172 +#
47173 +
47174 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47175 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
47176 +#
47177 +# ac_d sets the value in "#define NAME VALUE" lines.
47178 +ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
47179 +ac_dB='[        ].*$,\1#\2'
47180 +ac_dC=' '
47181 +ac_dD=',;t'
47182 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
47183 +ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
47184 +ac_uB='$,\1#\2define\3'
47185 +ac_uC=' '
47186 +ac_uD=',;t'
47187 +
47188 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47189 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47190 +  case $ac_file in
47191 +  - | *:- | *:-:* ) # input from stdin
47192 +       cat >$tmp/stdin
47193 +       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47194 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47195 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47196 +       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47197 +  * )   ac_file_in=$ac_file.in ;;
47198 +  esac
47199 +
47200 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47201 +echo "$as_me: creating $ac_file" >&6;}
47202 +
47203 +  # First look for the input files in the build tree, otherwise in the
47204 +  # src tree.
47205 +  ac_file_inputs=`IFS=:
47206 +    for f in $ac_file_in; do
47207 +      case $f in
47208 +      -) echo $tmp/stdin ;;
47209 +      [\\/$]*)
47210 +        # Absolute (can't be DOS-style, as IFS=:)
47211 +        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47212 +echo "$as_me: error: cannot find input file: $f" >&2;}
47213 +   { (exit 1); exit 1; }; }
47214 +        # Do quote $f, to prevent DOS paths from being IFS'd.
47215 +        echo "$f";;
47216 +      *) # Relative
47217 +        if test -f "$f"; then
47218 +          # Build tree
47219 +          echo "$f"
47220 +        elif test -f "$srcdir/$f"; then
47221 +          # Source tree
47222 +          echo "$srcdir/$f"
47223 +        else
47224 +          # /dev/null tree
47225 +          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47226 +echo "$as_me: error: cannot find input file: $f" >&2;}
47227 +   { (exit 1); exit 1; }; }
47228 +        fi;;
47229 +      esac
47230 +    done` || { (exit 1); exit 1; }
47231 +  # Remove the trailing spaces.
47232 +  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
47233 +
47234 +_ACEOF
47235 +
47236 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
47237 +# `conftest.undefs', that substitutes the proper values into
47238 +# config.h.in to produce config.h.  The first handles `#define'
47239 +# templates, and the second `#undef' templates.
47240 +# And first: Protect against being on the right side of a sed subst in
47241 +# config.status.  Protect against being in an unquoted here document
47242 +# in config.status.
47243 +rm -f conftest.defines conftest.undefs
47244 +# Using a here document instead of a string reduces the quoting nightmare.
47245 +# Putting comments in sed scripts is not portable.
47246 +#
47247 +# `end' is used to avoid that the second main sed command (meant for
47248 +# 0-ary CPP macros) applies to n-ary macro definitions.
47249 +# See the Autoconf documentation for `clear'.
47250 +cat >confdef2sed.sed <<\_ACEOF
47251 +s/[\\&,]/\\&/g
47252 +s,[\\$`],\\&,g
47253 +t clear
47254 +: clear
47255 +s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
47256 +t end
47257 +s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
47258 +: end
47259 +_ACEOF
47260 +# If some macros were called several times there might be several times
47261 +# the same #defines, which is useless.  Nevertheless, we may not want to
47262 +# sort them, since we want the *last* AC-DEFINE to be honored.
47263 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47264 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47265 +rm -f confdef2sed.sed
47266 +
47267 +# This sed command replaces #undef with comments.  This is necessary, for
47268 +# example, in the case of _POSIX_SOURCE, which is predefined and required
47269 +# on some systems where configure will not decide to define it.
47270 +cat >>conftest.undefs <<\_ACEOF
47271 +s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47272 +_ACEOF
47273 +
47274 +# Break up conftest.defines because some shells have a limit on the size
47275 +# of here documents, and old seds have small limits too (100 cmds).
47276 +echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
47277 +echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
47278 +echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47279 +echo '  :' >>$CONFIG_STATUS
47280 +rm -f conftest.tail
47281 +while grep . conftest.defines >/dev/null
47282 +do
47283 +  # Write a limited-size here document to $tmp/defines.sed.
47284 +  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47285 +  # Speed up: don't consider the non `#define' lines.
47286 +  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
47287 +  # Work around the forget-to-reset-the-flag bug.
47288 +  echo 't clr' >>$CONFIG_STATUS
47289 +  echo ': clr' >>$CONFIG_STATUS
47290 +  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47291 +  echo 'CEOF
47292 +  sed -f $tmp/defines.sed $tmp/in >$tmp/out
47293 +  rm -f $tmp/in
47294 +  mv $tmp/out $tmp/in
47295 +' >>$CONFIG_STATUS
47296 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47297 +  rm -f conftest.defines
47298 +  mv conftest.tail conftest.defines
47299 +done
47300 +rm -f conftest.defines
47301 +echo '  fi # grep' >>$CONFIG_STATUS
47302 +echo >>$CONFIG_STATUS
47303 +
47304 +# Break up conftest.undefs because some shells have a limit on the size
47305 +# of here documents, and old seds have small limits too (100 cmds).
47306 +echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
47307 +rm -f conftest.tail
47308 +while grep . conftest.undefs >/dev/null
47309 +do
47310 +  # Write a limited-size here document to $tmp/undefs.sed.
47311 +  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47312 +  # Speed up: don't consider the non `#undef'
47313 +  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
47314 +  # Work around the forget-to-reset-the-flag bug.
47315 +  echo 't clr' >>$CONFIG_STATUS
47316 +  echo ': clr' >>$CONFIG_STATUS
47317 +  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47318 +  echo 'CEOF
47319 +  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47320 +  rm -f $tmp/in
47321 +  mv $tmp/out $tmp/in
47322 +' >>$CONFIG_STATUS
47323 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47324 +  rm -f conftest.undefs
47325 +  mv conftest.tail conftest.undefs
47326 +done
47327 +rm -f conftest.undefs
47328 +
47329 +cat >>$CONFIG_STATUS <<\_ACEOF
47330 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
47331 +  # use $as_me), people would be surprised to read:
47332 +  #    /* config.h.  Generated by config.status.  */
47333 +  if test x"$ac_file" = x-; then
47334 +    echo "/* Generated by configure.  */" >$tmp/config.h
47335 +  else
47336 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
47337 +  fi
47338 +  cat $tmp/in >>$tmp/config.h
47339 +  rm -f $tmp/in
47340 +  if test x"$ac_file" != x-; then
47341 +    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47342 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47343 +echo "$as_me: $ac_file is unchanged" >&6;}
47344 +    else
47345 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47346 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47347 +        X"$ac_file" : 'X\(//\)[^/]' \| \
47348 +        X"$ac_file" : 'X\(//\)$' \| \
47349 +        X"$ac_file" : 'X\(/\)' \| \
47350 +        .     : '\(.\)' 2>/dev/null ||
47351 +echo X"$ac_file" |
47352 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47353 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47354 +         /^X\(\/\/\)$/{ s//\1/; q; }
47355 +         /^X\(\/\).*/{ s//\1/; q; }
47356 +         s/.*/./; q'`
47357 +      { if $as_mkdir_p; then
47358 +    mkdir -p "$ac_dir"
47359 +  else
47360 +    as_dir="$ac_dir"
47361 +    as_dirs=
47362 +    while test ! -d "$as_dir"; do
47363 +      as_dirs="$as_dir $as_dirs"
47364 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
47365 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47366 +        X"$as_dir" : 'X\(//\)[^/]' \| \
47367 +        X"$as_dir" : 'X\(//\)$' \| \
47368 +        X"$as_dir" : 'X\(/\)' \| \
47369 +        .     : '\(.\)' 2>/dev/null ||
47370 +echo X"$as_dir" |
47371 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47372 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47373 +         /^X\(\/\/\)$/{ s//\1/; q; }
47374 +         /^X\(\/\).*/{ s//\1/; q; }
47375 +         s/.*/./; q'`
47376 +    done
47377 +    test ! -n "$as_dirs" || mkdir $as_dirs
47378 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47379 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47380 +   { (exit 1); exit 1; }; }; }
47381 +
47382 +      rm -f $ac_file
47383 +      mv $tmp/config.h $ac_file
47384 +    fi
47385 +  else
47386 +    cat $tmp/config.h
47387 +    rm -f $tmp/config.h
47388 +  fi
47389 +done
47390 +_ACEOF
47391 +cat >>$CONFIG_STATUS <<\_ACEOF
47392 +
47393 +#
47394 +# CONFIG_COMMANDS section.
47395 +#
47396 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47397 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47398 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47399 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47400 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47401 +        X"$ac_dest" : 'X\(//\)[^/]' \| \
47402 +        X"$ac_dest" : 'X\(//\)$' \| \
47403 +        X"$ac_dest" : 'X\(/\)' \| \
47404 +        .     : '\(.\)' 2>/dev/null ||
47405 +echo X"$ac_dest" |
47406 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47407 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47408 +         /^X\(\/\/\)$/{ s//\1/; q; }
47409 +         /^X\(\/\).*/{ s//\1/; q; }
47410 +         s/.*/./; q'`
47411 +  { if $as_mkdir_p; then
47412 +    mkdir -p "$ac_dir"
47413 +  else
47414 +    as_dir="$ac_dir"
47415 +    as_dirs=
47416 +    while test ! -d "$as_dir"; do
47417 +      as_dirs="$as_dir $as_dirs"
47418 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
47419 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47420 +        X"$as_dir" : 'X\(//\)[^/]' \| \
47421 +        X"$as_dir" : 'X\(//\)$' \| \
47422 +        X"$as_dir" : 'X\(/\)' \| \
47423 +        .     : '\(.\)' 2>/dev/null ||
47424 +echo X"$as_dir" |
47425 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47426 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47427 +         /^X\(\/\/\)$/{ s//\1/; q; }
47428 +         /^X\(\/\).*/{ s//\1/; q; }
47429 +         s/.*/./; q'`
47430 +    done
47431 +    test ! -n "$as_dirs" || mkdir $as_dirs
47432 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47433 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47434 +   { (exit 1); exit 1; }; }; }
47435 +
47436 +  ac_builddir=.
47437 +
47438 +if test "$ac_dir" != .; then
47439 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47440 +  # A "../" for each directory in $ac_dir_suffix.
47441 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47442 +else
47443 +  ac_dir_suffix= ac_top_builddir=
47444 +fi
47445 +
47446 +case $srcdir in
47447 +  .)  # No --srcdir option.  We are building in place.
47448 +    ac_srcdir=.
47449 +    if test -z "$ac_top_builddir"; then
47450 +       ac_top_srcdir=.
47451 +    else
47452 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47453 +    fi ;;
47454 +  [\\/]* | ?:[\\/]* )  # Absolute path.
47455 +    ac_srcdir=$srcdir$ac_dir_suffix;
47456 +    ac_top_srcdir=$srcdir ;;
47457 +  *) # Relative path.
47458 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47459 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
47460 +esac
47461 +
47462 +# Do not use `cd foo && pwd` to compute absolute paths, because
47463 +# the directories may not exist.
47464 +case `pwd` in
47465 +.) ac_abs_builddir="$ac_dir";;
47466 +*)
47467 +  case "$ac_dir" in
47468 +  .) ac_abs_builddir=`pwd`;;
47469 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47470 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
47471 +  esac;;
47472 +esac
47473 +case $ac_abs_builddir in
47474 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
47475 +*)
47476 +  case ${ac_top_builddir}. in
47477 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
47478 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47479 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47480 +  esac;;
47481 +esac
47482 +case $ac_abs_builddir in
47483 +.) ac_abs_srcdir=$ac_srcdir;;
47484 +*)
47485 +  case $ac_srcdir in
47486 +  .) ac_abs_srcdir=$ac_abs_builddir;;
47487 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47488 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47489 +  esac;;
47490 +esac
47491 +case $ac_abs_builddir in
47492 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
47493 +*)
47494 +  case $ac_top_srcdir in
47495 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
47496 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47497 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47498 +  esac;;
47499 +esac
47500 +
47501 +
47502 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47503 +echo "$as_me: executing $ac_dest commands" >&6;}
47504 +  case $ac_dest in
47505 +    default )
47506 +
47507 +### Make the necessary directories, if they don't exist.
47508 +for dir in etc lisp ; do
47509 +  test -d ${dir} || mkdir ${dir}
47510 +done
47511 +
47512 +# Build src/Makefile from ${srcdir}/src/Makefile.c
47513 +# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
47514 +# This must be done after src/config.h is built, since we rely on that file.
47515 +
47516 +# Now get this: Some word that is part of the ${srcdir} directory name
47517 +# or the ${configuration} value might, just might, happen to be an
47518 +# identifier like `sun4' or `i386' or something, and be predefined by
47519 +# the C preprocessor to some helpful value like 1, or maybe the empty
47520 +# string.  Needless to say consequent macro substitutions are less
47521 +# than conducive to the makefile finding the correct directory.
47522 +undefs="`echo $ac_top_srcdir $configuration $canonical |
47523 +sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
47524 +    -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
47525 +`"
47526 +
47527 +echo creating src/epaths.h
47528 +${MAKE-make} epaths-force
47529 +
47530 +# As of 2000-11-19, newest development versions of GNU cpp preprocess
47531 +# `..' to `. .'  unless invoked with -traditional
47532 +
47533 +if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
47534 +  CPPFLAGS="$CPPFLAGS -traditional"
47535 +fi
47536 +
47537 +echo creating lib-src/Makefile
47538 +( cd lib-src
47539 +  rm -f junk.c junk1.c junk2.c
47540 +  sed -e '/start of cpp stuff/q' \
47541 +      < Makefile.c > junk1.c
47542 +  sed -e '1,/start of cpp stuff/d'\
47543 +      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
47544 +      < Makefile.c > junk.c
47545 +  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
47546 +      sed -e 's/^ /    /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
47547 +  cat junk1.c junk2.c > Makefile.new
47548 +  rm -f junk.c junk1.c junk2.c
47549 +  chmod 444 Makefile.new
47550 +  mv -f Makefile.new Makefile
47551 +)
47552 +
47553 +echo creating src/Makefile
47554 +( cd src
47555 +  rm -f junk.c junk1.c junk2.c
47556 +  sed -e '/start of cpp stuff/q' \
47557 +      < Makefile.c > junk1.c
47558 +  sed -e '1,/start of cpp stuff/d'\
47559 +      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
47560 +      < Makefile.c > junk.c
47561 +  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
47562 +      sed -e 's/^ /    /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
47563 +  cat junk1.c junk2.c > Makefile.new
47564 +  rm -f junk.c junk1.c junk2.c
47565 +  chmod 444 Makefile.new
47566 +  mv -f Makefile.new Makefile
47567 +)
47568 +
47569 +if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
47570 +  echo creating src/.gdbinit
47571 +  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
47572 +fi
47573 +
47574 +# This is how we know whether to re-run configure in certain cases.
47575 +touch src/config.stamp
47576 +
47577 + ;;
47578 +  esac
47579 +done
47580 +_ACEOF
47581 +
47582 +cat >>$CONFIG_STATUS <<\_ACEOF
47583 +
47584 +{ (exit 0); exit 0; }
47585 +_ACEOF
47586 +chmod +x $CONFIG_STATUS
47587 +ac_clean_files=$ac_clean_files_save
47588 +
47589 +
47590 +# configure is writing to config.log, and then calls config.status.
47591 +# config.status does its own redirection, appending to config.log.
47592 +# Unfortunately, on DOS this fails, as config.log is still kept open
47593 +# by configure, so config.status won't be able to write to it; its
47594 +# output is simply discarded.  So we exec the FD to /dev/null,
47595 +# effectively closing config.log, so it can be properly (re)opened and
47596 +# appended to by config.status.  When coming back to configure, we
47597 +# need to make the FD available again.
47598 +if test "$no_create" != yes; then
47599 +  ac_cs_success=:
47600 +  ac_config_status_args=
47601 +  test "$silent" = yes &&
47602 +    ac_config_status_args="$ac_config_status_args --quiet"
47603 +  exec 5>/dev/null
47604 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47605 +  exec 5>>config.log
47606 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47607 +  # would make configure fail if this is the last instruction.
47608 +  $ac_cs_success || { (exit 1); exit 1; }
47609 +fi
47610 +
47611 +
This page took 4.117811 seconds and 4 git commands to generate.