]> git.pld-linux.org Git - packages/emacs.git/commitdiff
- Format string vulnerability in the movemail utility
authorkrolik <krolik@pld-linux.org>
Thu, 10 Feb 2005 23:53:45 +0000 (23:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0100

Changed files:
    emacs-CAN_2005_0100.patch -> 1.1

emacs-CAN_2005_0100.patch [new file with mode: 0644]

diff --git a/emacs-CAN_2005_0100.patch b/emacs-CAN_2005_0100.patch
new file mode 100644 (file)
index 0000000..d8ab90f
--- /dev/null
@@ -0,0 +1,47611 @@
+--- emacs-21.3.orig/configure
++++ emacs-21.3/configure
+@@ -1686,6 +1686,11 @@
+     machine=f301 opsys=uxpv
+   ;;
++  ## AMD x86-64 Linux-based GNU system
++  x86_64-*-linux-gnu* )
++    machine=amdx86-64 opsys=gnu-linux
++  ;;
++
+   * )
+     unported=yes
+   ;;
+--- emacs-21.3.orig/configure.in
++++ emacs-21.3/configure.in
+@@ -1060,6 +1060,11 @@
+     machine=f301 opsys=uxpv
+   ;;
++  ## AMD x86-64 Linux-based GNU system
++  x86_64-*-linux-gnu* )
++    machine=amdx86-64 opsys=gnu-linux
++  ;;
++
+   * )
+     unported=yes
+   ;;
+--- emacs-21.3.orig/src/m/amdx86-64.h
++++ emacs-21.3/src/m/amdx86-64.h
+@@ -0,0 +1,241 @@
++/* machine description file For the alpha chip.
++   Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
++
++This file is part of GNU Emacs.
++
++GNU Emacs is free software; you can redistribute it and/or modify
++it under the terms of the GNU General Public License as published by
++the Free Software Foundation; either version 1, or (at your option)
++any later version.
++
++GNU Emacs is distributed in the hope that it will be useful,
++but WITHOUT ANY WARRANTY; without even the implied warranty of
++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++GNU General Public License for more details.
++
++You should have received a copy of the GNU General Public License
++along with GNU Emacs; see the file COPYING.  If not, write to
++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
++Boston, MA 02111-1307, USA.  */
++
++
++/* The following line tells the configuration script what sort of 
++   operating system this machine is likely to run.
++   USUAL-OPSYS="note"
++
++NOTE-START
++Use -opsystem=linux
++NOTE-END
++
++*/
++
++#define BITS_PER_LONG 64
++#define BITS_PER_EMACS_INT 64
++
++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
++   is the most significant byte.  */
++
++#undef WORDS_BIG_ENDIAN
++
++/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
++ * group of arguments and treat it as an array of the arguments.  */
++
++#define NO_ARG_ARRAY
++
++/* Now define a symbol for the cpu type, if your compiler
++   does not define it automatically:
++   Ones defined so far include vax, m68000, ns16000, pyramid,
++   orion, tahoe, APOLLO and many others */
++
++/* do we need any? */
++
++
++/* Use type EMACS_INT rather than a union, to represent Lisp_Object */
++/* This is desirable for most machines.  */
++
++#define NO_UNION_TYPE
++
++/* Define the type to use.  */
++#define EMACS_INT long
++#define EMACS_UINT unsigned long
++#define SPECIAL_EMACS_INT
++
++/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
++   the 24-bit bit field into an int.  In other words, if bit fields
++   are always unsigned.
++
++   If you use NO_UNION_TYPE, this flag does not matter.  */
++
++#define EXPLICIT_SIGN_EXTEND
++
++/* Data type of load average, as read out of kmem.  */
++
++#define LOAD_AVE_TYPE long
++
++/* Convert that into an integer that is 100 for a load average of 1.0  */
++
++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
++
++/* Define C_ALLOCA if this machine does not support a true alloca
++   and the one written in C should be used instead.
++   Define HAVE_ALLOCA to say that the system provides a properly
++   working alloca function and it should be used.
++   Define neither one if an assembler-language alloca
++   in the file alloca.s should be used.  */
++
++#define HAVE_ALLOCA
++
++/* GNU malloc and the relocating allocator do not work together
++   with X.   [Who wrote that?]  */
++
++/* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
++   system and the gnu malloc system work with "alpha-dec-osf3.0" and
++   "alpha-dec-osf3.2".  */
++
++/* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
++   mallocs work with "alpha-dec-osf2.0", but I daren't break anything
++   right now.  Feel free to play if you want.  */
++
++/* #define SYSTEM_MALLOC */
++
++#ifdef __ELF__
++/* With ELF, make sure that all common symbols get allocated to in the
++   data section.  Otherwise, the dump of temacs may miss variables in
++   the shared library that have been initialized.  For example, with
++   GNU libc, __malloc_initialized would normally be resolved to the
++   shared library's .bss section, which is fatal.  */
++# ifdef __GNUC__
++#  define C_SWITCH_MACHINE    -fno-common
++# else
++#  error What gives?  Fix me if DEC Unix supports ELF now.
++# endif
++#endif
++
++#if defined(__OpenBSD__)
++#define ORDINARY_LINK
++#endif
++
++#ifdef __ELF__
++#undef UNEXEC
++#define UNEXEC unexelf.o
++#endif
++
++#ifndef __ELF__
++
++/* Describe layout of the address space in an executing process.  */
++
++#define TEXT_START    0x120000000
++#define DATA_START    0x140000000
++
++/* This is necessary for mem-limits.h, so that start_of_data gives
++   the correct value */
++
++#define DATA_SEG_BITS 0x140000000
++
++/* The program to be used for unexec. */
++
++// #define UNEXEC unexalpha.o
++
++#endif /* notdef __ELF__ */
++
++#ifdef OSF1
++#define ORDINARY_LINK
++
++/* Some systems seem to have this, others don't.  */
++#ifdef HAVE_LIBDNET
++#define LIBS_MACHINE -ldnet
++#else
++#define LIBS_MACHINE -ldnet_stub
++#endif
++#endif /* OSF1 */
++
++#if 0 /* Rainer Schoepf <schoepf@uni-mainz.de> says this loses with X11R6
++       since it has only shared libraries.  */
++#ifndef __GNUC__
++/* This apparently is for the system ld as opposed to Gnu ld.  */
++#ifdef OSF1
++#define LD_SWITCH_MACHINE      -non_shared
++#endif
++#endif
++#endif /* 0 */
++
++#ifdef OSF1
++#define LIBS_DEBUG
++#define START_FILES pre-crt0.o
++#endif
++
++#if defined (LINUX) && __GNU_LIBRARY__ - 0 < 6
++/* This controls a conditional in main.  */
++#define LINUX_SBRK_BUG
++#endif
++
++
++#define PNTR_COMPARISON_TYPE unsigned long
++
++/* On the 64 bit architecture, we can use 60 bits for addresses */
++
++#define VALBITS         60
++
++
++/* This definition of MARKBIT is necessary because of the comparison of
++   ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
++
++#define MARKBIT         0x8000000000000000L
++
++
++/* Define XINT and XUINT so that they can take arguments of type int */
++
++#define XINT(a)  (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
++#define XUINT(a) ((long) (a) & VALMASK)
++
++/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
++
++#define XPNTR(a) XUINT (a)
++
++#ifndef NOT_C_CODE
++/* We need these because pointers are larger than the default ints.  */
++#if !defined(__NetBSD__) && !defined(__OpenBSD__)
++#include <alloca.h>
++#endif
++
++#endif /* not NOT_C_CODE */
++
++#ifdef OSF1
++#define PTY_ITERATION         for (i = 0; i < 1; i++) /* ick */
++#define PTY_NAME_SPRINTF      /* none */
++#define PTY_TTY_NAME_SPRINTF  /* none */
++#define PTY_OPEN                                      \
++  do                                                  \
++    {                                                 \
++      int dummy;                                      \
++      SIGMASKTYPE mask;                                       \
++      mask = sigblock (sigmask (SIGCHLD));            \
++      if (-1 == openpty (&fd, &dummy, pty_name, 0, 0))        \
++      fd = -1;                                        \
++      sigsetmask (mask);                              \
++      emacs_close (dummy);                            \
++    }                                                 \
++  while (0)
++#endif
++
++/* On the Alpha it's best to avoid including TERMIO since struct
++   termio and struct termios are mutually incompatible.  */
++#define NO_TERMIO
++
++#if defined (LINUX) || defined (__NetBSD__) || defined (__OpenBSD__)
++# define TEXT_END ({ extern int _etext; &_etext; })
++# ifndef __ELF__
++#  define COFF
++#  define DATA_END ({ extern int _EDATA; &_EDATA; })
++# endif /* notdef __ELF__ */
++#endif
++
++#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__)
++#define HAVE_TEXT_START
++#endif
++
++/* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN:
++   they generate code that uses a signaling NaN instead of DBL_MIN.
++   Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN:
++   this avoids the assembler bug.  */
++#define DBL_MIN_REPLACEMENT 2.2250738585072019e-308
+--- emacs-21.3.orig/debian/copyright.in
++++ emacs-21.3/debian/copyright.in
+@@ -0,0 +1,36 @@
++-*-text-*-
++
++This package was debianized by Rob Browning <rlb@defaultvalue.org> on
++Tue, 16 Dec 1997 00:05:45 -0600.
++
++The source is a combination of the following files:
++
++  prep.ai.mit.edu:/pub/gnu/emacs/emacs-@NOMINAL_VERSION@.tar.gz
++  prep.ai.mit.edu:/pub/gnu/emacs/leim-@NOMINAL_VERSION@.tar.gz
++
++Copyright:
++
++  GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
++  1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
++  59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
++  under the terms of the GPL.  See the file
++  /usr/share/common-licenses/GPL for more information.
++
++  The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
++  1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
++  Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
++  USA.  It is covered under the terms of the GNU Free Documentation
++  License, version 1.1 or later.  See node `GNU Free Documentation
++  License' in the Info manual (emacs) for details.
++
++  The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
++  Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
++  1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
++  Place, Suite 330 Boston, MA 02111-1307 USA.  They are covered under
++  the terms of the GNU Free Documentation License, version 1.1 or
++  later.  See node `GNU Free Documentation License' in the Info manual
++  (emacs) for details.
++ 
++Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/README.Debian.gz for a
++description of the Debian specific differences from the upstream
++version.
+--- emacs-21.3.orig/debian/changelog
++++ emacs-21.3/debian/changelog
+@@ -0,0 +1,777 @@
++emacs21 (21.3+1-5ubuntu4.2) warty-security; urgency=low
++
++  * Fixed CAN-2005-0100.dpatch to work with Warty's dpatch version.
++
++ -- Martin Pitt <martin.pitt@ubuntu.com>  Fri,  4 Feb 2005 11:53:51 +0000
++
++emacs21 (21.3+1-5ubuntu4.1) warty-security; urgency=low
++
++  * SECURITY UPDATE: fix remote privilege escalation to group 'mail'.
++  * Added patch CAN-2005-0100.dpatch:
++    - lib-src/movemail.c: Fix format string vulnerability in error message
++      output.
++  * References:
++    CAN-2005-0100
++
++ -- Martin Pitt <martin.pitt@ubuntu.com>  Fri,  4 Feb 2005 10:41:30 +0000
++
++emacs21 (21.3+1-5ubuntu4) warty; urgency=low
++
++  * Add patch to fix local file creation permissions.
++    (Closes: #2191)
++
++ -- Fabio M. Di Nitto <fabbione@fabbione.net>  Sun, 10 Oct 2004 07:22:56 +0200
++
++emacs21 (21.3+1-5ubuntu3) warty; urgency=low
++
++  * debian/control.in:
++    - Build-Depends on libtiff4-dev.
++
++ -- Sebastien Bacher <seb128@debian.org>  Mon,  2 Aug 2004 12:23:36 +0200
++
++emacs21 (21.3+1-5ubuntu2) warty; urgency=low
++
++  * Import debian/patches/fix-batch-mode-signal-handling.dpatch
++    from 21.3+1-6 to fix Warty bug #58
++
++ -- Matt Zimmerman <mdz@alcor.net>  Mon, 26 Jul 2004 11:06:23 -0700
++
++emacs21 (21.3+1-5ubuntu1) warty; urgency=low
++
++  * Apply amd64 patch aggregated from #248796
++
++ -- LaMont Jones <lamont@mmjgroup.com>  Wed, 14 Jul 2004 01:34:05 +0000
++
++emacs21 (21.3+1-5) unstable; urgency=low
++
++  * Apply patch allowing emacsclient to handle ALTERNATE_EDITOR properly
++    when the command is run without any parameter [Jérôme Marant]
++    (closes: #219658)
++    - debian/patches/emacsclient-alternate-editor.dpatch: new file.
++
++  * Provide the `editor' virtual package. [Jérôme Marant]
++    (closes: #66243, #90154, #158807) 
++    - debian/control.in: emacs and emacs-nox now provide the `editor'
++      virtual package. 
++    - debian/control: synchronized with debian/control.in.
++    - debian/emacs.postinst: adding an `editor' alternative with a priority
++      of 0 as discussed in
++      http://lists.debian.org/debian-policy/2000/debian-policy-200006/msg00122.html
++    - debian/emacs.prerm: removing the `editor' alternative on package
++      removal.
++
++  * Added automatic switching to UTF-8 encoding when editing the debian
++    changelog file. [Jérôme Marant]
++    - debian/changelog: added Emacs local variables forcing coding
++      to UTF-8.
++
++  * Fix handling of menu entry for text version of Emacs [Jérôme Marant]
++    (closes: #221171)
++    - debian/menu.in: call the text version of emacs with the `-nw'
++      parameter.
++
++  * Install the emacsclient manpage [Jérôme Marant] (closes: #222767) 
++    - debian/build-common-pkg: install missing emacsclient manpage.
++    - debian/emacs-common.postinst: install alternative for emacsclient
++      manpage.
++  
++  * Install .desktop entry in order to make Emacs easy to start in
++    both GNOME and KDE. Thanks to Adam C Powell IV <hazelsct@debian.org>
++    [Jérôme Marant] (closes: #233711)
++    - emacs.desktop: new template file for desktop entries
++    - debian/rules: generate desktop file from emacs.desktop template
++      and install it for emacs21.
++
++  * test -n "${major_ver}" in a few places so that we don't accidentally
++    generate bad output files from our .in files. [rlb]
++    - debian/rules
++
++  * truncate aclocal.m4 during autofiles-sync so that old bits won't kill new
++    autoconf run.  Also ignore autom4te.cache when generating
++    autofiles.diff. [rlb]
++    - debian/rules
++  
++  * fix bug in prepare-release autodiff prompt handling. [rlb]
++    - debian/rules
++
++  * update configure.in for newer autoconf versions. [rlb]
++    - autoconf-updates.dpatch
++
++  * add an emacsXY-bin-common package containing all the architecture
++    specific bits, so that emacsXY-common can be architecture independent.
++    This should save many megabytes * architectures in the debian pool.
++    [rlb] (closes: #232888, #233345)
++    - debian/rules: move some build-* code from debian/ scripts to rules
++      and adjust to build emacsXY-bin-common.
++    - debian/emacs-common.postinst debian/emacs-common.prerm: some code
++      moved to new emacs-bin-common scripts.
++    - debian/emacs-common.postrm: deleted.
++    - debian/emacs-bin-common.postinst: new file.
++    - debian/emacs-bin-common.prerm: new file.
++    - debian/emacs-bin-common.postrm: new file.
++    - debian/build-common-pkg: deleted - code now in debian/rules.
++    - debian/build--pkg: deleted - code now in debian/rules.
++    - debian/emacs-el.postinst: deleted - was empty.
++    - debian/control.in: add emacsXY-bin-common and adjust other entries.
++    - debian/fix-debian-scripts: deleted - no longer used.
++    - debian/build-binary-pkg: adjusted to handle more of the common code.
++  
++  * Add support for linux 2.6 to ACPI in lisp/battery.el. Thanks to
++    Mario Lang <mlang@debian.org> [Jérôme Marant] (closes: #228658)
++    - debian/patches/battery-acpi-support.dpatch: updated.
++  
++  * Generate md5sums file for every package [Jérôme Marant] (closes: #22590)
++    - debian/rules: generate md5sums file just before building packages.
++    - debian/build-binary-pkg: likewise.
++  
++  * no point in byte-compiling fns-*.el according to upstream authors
++    (closes: #189277)
++
++  * fix configure args (--build alone doesn't seem to work anymore). [rlb]
++    - debian/rules
++  
++  * re-enable gif support via libungif. [rlb]
++    - debian/rules
++
++  * re-enable toolkit scrollbars, but make it really easy for people to
++    disable them in debian/rules.  Search for
++    --without-toolkit-scrollbars.  [rlb]
++    - debian/rules
++    - debian/README.in
++
++  * fix problem with upgrades by adding emacs21-common (<< 21.3+1-4) to
++    Replaces for the common packages. [rlb]
++    - debian/control.in
++    - debian/control
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue,  6 Apr 2004 18:07:38 -0500
++
++emacs21 (21.3+1-4) unstable; urgency=medium
++
++  * debian/changelog: converted to UTF-8 as per Policy. [Jérôme Marant]
++  * debian/control.in:
++    - Bumped Standards-Version to 3.6.1. [Jérôme Marant]
++    - Added versioned build-dependency on dpatch >= 1.23 since this version
++      no longer requires numerial prefixes to dpatches. [Jérôme Marant]
++  * debian/patches/*.dpatch: removed numerical prefix since the patch order
++    is specified in debian/patches/00list. [Jérôme Marant]
++  * debian/patches/hurd-libio-glibc.dpatch: new patch allowing Emacs
++    to be built on Hurd systems using a libio-based glibc.
++    Thanks to Markus Brinkmann <marcus@gnu.org>.
++    (closes: #143220) [Jérôme Marant]
++  * debian/patches/battery-acpi-support.dpatch: new patch adding ACPI
++    support to lisp/battery.el. Thanks to Mario Lang <mlang@debian.org>.
++    (closes: #208812) [Jérôme Marant]
++  * debian/patches/scroll-margin.dpatch: new patch preventing emacs
++    to hang with a non-0 scroll-margin set.
++    (closes: #175658) [Jérôme Marant]
++  * debian/patches/save-buffer.dpatch: new patch fixing a bug which
++    makes a file being removed when the coding system of its buffer
++    has changed and saving the changes was canceled.
++    (closes: #194171) [Jérôme Marant]
++  * debian/patches/00list: updated with respect to new patches.
++    [Jérôme Marant]
++  * debian/menu.in:
++    - Added hints to menu entries. (closes: #144282) [Jérôme Marant]
++    - Changed titles for both text and X11 entries in order to
++      differenciate them. (closes: #197527, #188598) [Jérôme Marant]
++  * debian/patches/browse-url.dpatch:
++    - Updated patch fixing a wrong call to galeon. Thanks to
++      Mikael Hedin <micce@debian.org>. (closes: #208206) [Jérôme Marant]
++    - Updated patch fixing browse-url's invocation of Mozilla.
++      Thanks to Jeff Sheinberg <jeffsh@erols.com>,
++      Martin Pool <mbp@sourcefrog.net> and KATO Kazuyoshi <kzys@users.sf.net>.
++      (closes: #148408, #216067) [Jérôme Marant]
++  * Use -O1 rather than -O2 on m68k.  Fixes a build failure (looks like a
++    broken byte compiler) with newer versions of gcc.  (closes: #207580)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Fri, 31 Oct 2003 00:00:10 -0600
++
++emacs21 (21.3+1-3) unstable; urgency=low
++
++  * create debian/stmap it doesn't exist. (closes: #210802)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Sat, 13 Sep 2003 14:49:18 -0500
++
++emacs21 (21.3+1-2) unstable; urgency=low
++
++  * add back accidentally removed dpatch Build-Depends. (closes: #210627)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Fri, 12 Sep 2003 10:30:21 -0500
++
++emacs21 (21.3+1-1) unstable; urgency=low
++
++  * repackage without .elc files since we regenerate all of them anyway.
++    This will save space, and will also allow us to use dpatch in a
++    straightforward way.
++  * modify debian/rules computation of version numbers to handle
++    (i.e. ignore) the +1 in 21.3+1.
++  * rework to use dpatch and to patch/unpatch the debian source in-place
++    rather than using a debian/build-src copy of the whole source tree.
++  * incorporated patch (500-detect-coding-iso2022.dpatch) to fix raw-text
++    coding problem.  Thanks to Kenichi Handa <handa@etl.go.jp>.
++    (closes: #198736)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu, 11 Sep 2003 23:15:44 -0500
++
++emacs21 (21.3-2) unstable; urgency=low
++
++  * Compile --without-toolkit-scroll-bars for now (my pref, and to avoid
++    xaw3d issues for the moment).
++  * Update copyright to reflect documentation licenses. (closes: #161500)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Wed, 13 Aug 2003 08:53:35 -0500
++
++emacs21 (21.3-1) unstable; urgency=low
++
++  * new upstream version.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Wed, 23 Apr 2003 13:16:06 -0500
++
++emacs21 (21.2-6) unstable; urgency=low
++
++  * changed sort behavior for x-vs-no-x fix in cus-dep.el based on
++    suggestion from Matt Kraai <kraai@alumni.cmu.edu>. (closes: #166139)
++  * finish breaking up most of the debian/patch/* files.
++  * set up automatic generation for autofiles.diff which contains all the
++    diffs to automatically generated files and is applied after all of the
++    debian/patch/*.diff files.
++  * add an apply-patches-upto command so it's easier to create partially
++    patched trees for editing.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu,  6 Feb 2003 18:12:41 -0600
++
++emacs21 (21.2-5) unstable; urgency=low
++
++  * fix bug in rules and binary-pkg generation. (closes: #164770)
++  * fix problem with config.sub and config.guess updates. (closes: #164763)
++  * time to stop creating the /usr/doc symlinks...
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue, 15 Oct 2002 16:34:52 -0500
++
++emacs21 (21.2-4) unstable; urgency=low
++
++  * create debian/patches/ and start migrating to represent
++    changes as patches against the upstream source.  Don't edit the main
++    tree anymore.
++  * rework tree and packaging to have emacs21-common, emacs21, and
++    emacs21-nox packages with emacs21-common containing nearly all the
++    data.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Sat, 12 Oct 2002 15:09:37 -0500
++
++emacs21 (21.2-3) unstable; urgency=low
++
++  * Update emacs21-nox package description.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Wed, 29 May 2002 14:04:57 -0500
++
++emacs21 (21.2-2) unstable; urgency=low
++
++  * fix control file priorities to match overrides.
++  * fix rules to handle autotools more correctly.  See
++    /usr/share/doc/autotools-dev/README.Debian.gz for details.
++    (closes: #139998)
++  * firewall, headless box, and anti-X users everywhere rejoice!
++    Introducing emacs21-nox package :>
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue, 28 May 2002 12:09:48 -0500
++
++emacs21 (21.2-1) unstable; urgency=low
++
++  * new upstream release.
++  * move outline of Debian specific Emacs changes to
++    /usr/share/doc/*/README.Debian.gz.x
++
++ -- Rob Browning <rlb@defaultvalue.org>  Fri, 22 Mar 2002 11:41:17 -0600
++
++emacs21 (21.1-9) unstable; urgency=low
++
++  * fix control.in to use ${Source-Version}. (closes: #138994)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Mon, 18 Mar 2002 21:54:47 -0600
++
++emacs21 (21.1-8) unstable; urgency=low
++
++  * Fix .texi problems with upstream patch. (closes: #138236)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Sun, 17 Mar 2002 11:58:59 -0600
++
++emacs21 (21.1-7) unstable; urgency=high
++
++  * fix vc-path to be correct for a Debian system. (closes: #107251)
++  * re-add lost hppa and s390 patches. (closes: #120079)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu,  6 Dec 2001 14:10:45 -0600
++
++emacs21 (21.1-6) unstable; urgency=medium
++
++  * modify order in browse-url.el.
++  * added upstream iso-acc.el patch to fix accent bug. (closes: #119852)
++  * fix ppc nocombreloc bug with upstream patch. (closes: #117557)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue,  4 Dec 2001 08:43:38 -0600
++
++emacs21 (21.1-5) unstable; urgency=low
++
++  * Run autoconf to remove stale ppc code. (closes: #119189)
++  * Write new browse-url.el code with support for galeon and to default to
++    searching for a suitable browser, free browsers first.  (closes: #116822)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue, 13 Nov 2001 09:51:31 -0600
++
++emacs21 (21.1-4) unstable; urgency=low
++
++  * Really fix alternatives problem this time.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Fri,  9 Nov 2001 10:24:49 -0600
++
++emacs21 (21.1-3) unstable; urgency=low
++
++  * Fix but in grep in postinst. (closes: #117251, #117256, #117415, #118792)
++  * Remove vestigal ppc bits and add upstream patch for ppc nocombreloc
++    problem. (closes: #117557)
++  * fix bug in upstream-files.tar handling.
++  * don't configure gif support until our libungif is new enough.  See bug
++    #117729.
++  * Fix manpage to list correct default window size. (closes: #118641)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu,  8 Nov 2001 21:15:20 -0600
++
++emacs21 (21.1-2) unstable; urgency=low
++
++  * change to priority optional.
++  * use xaw3d scrollbars after checking upstream preferences.
++    (closes: #116831, #116911, #116638)
++  * added some build-depends. (closes: #116981)
++  * fixed typo in NEWS. (closes: #116814)
++  * fixed alternatives bug in postinst/prerm for emacsclient (closes: #116915)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu, 25 Oct 2001 16:02:45 -0500
++
++emacs21 (21.1-1) unstable; urgency=low
++
++  * New emacs21 packages.  Many changes -- reviewed all Debian files.
++
++ -- Rob Browning <rlb@defaultvalue.org>  Thu, 18 Oct 2001 17:28:03 -0500
++
++emacs20 (20.7-10) unstable; urgency=medium
++
++  * Add arch header for mipsel and fix configure.in and
++    configure. (closes: #103959)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Mon, 23 Jul 2001 09:23:06 -0500
++
++emacs20 (20.7-9) unstable; urgency=low
++
++  * Added more Build-Depends. (closes: #101832)
++  * Disable ralloc on Hurd.  Thanks to Robert Bihlmeyer
++    <robbe@orcus.priv.at>. (closes: #101926)
++
++ -- Rob Browning <rlb@defaultvalue.org>  Tue, 10 Jul 2001 12:48:22 -0500
++
++emacs20 (20.7-8) unstable; urgency=low
++
++  * Added ia64 patches from Bdale Garbee <bdale@gag.com> for ia64.h.
++    (closes: #90518)
++  * Added Build-Depends on mailx for now (though this is *wrong* for the
++    long run -- I need to fix my fakemail handling).
++    (closes: #95903, #96761)
++  * Fix fakeroot sgid problem (move movemail chmod +s in debian/rules).
++  * Remove emacs' overzealous dir.gz file.
++  * Shrink gnu.xpm to 32x32 and make it the menu icon. (closes: #20253, #21310)
++  * Update manpage to not refer to kitchen sink anymore -- though with
++    emacs21, we're going to move back to using whatever they choose.
++    (closes: #81682)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed, 13 Jun 2001 23:56:16 -0500
++
++emacs20 (20.7-7) unstable; urgency=low
++
++  * Fixed reftex-info problem. (closes: #44837).
++  * Fix install-strip target in Makefile.in.  Thanks to 
++    Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.  (closes: #51348)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat,  5 May 2001 23:50:50 -0500
++
++emacs20 (20.7-6) unstable; urgency=low
++
++  * Fix improper usage of dpkg-statoverride and make sure movemail is set
++    up right. (closes: #95953)
++  * Fix bad manpage location in postinst update-alternatives call.
++  * Fix bad .so in ctags manpage (closes: #88231, #45317, #65017, #74570)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat,  5 May 2001 09:47:40 -0500
++
++emacs20 (20.7-5) unstable; urgency=low
++
++  * configure.in: add detection of CONF_MAIL_PROGRAM_NAME.
++  * lib-src/fakemail.c: use CONF_MAIL_PROGRAM_NAME when appropriate
++    (closes: #72103) -- need to forward upstream.
++  * Add "modified by Debian" clause to (emacs-version) at RMS's request.
++  * Start Debian modifications section in copyright file as per policy.
++  * Add build fixes for hurd (closes: #78461).  Changes suggested by
++    Marcus.Brinkmann@ruhr-uni-bochum.de.  Thanks.
++  * Switch from Debian sendmail.el hack to Francesco's suggestion of
++    setting mail-from-style to 'system-default by default at startup
++    (closes: #35128).  This allows the user to override when desired in
++    the normal way.  This should be discussed with the upstream
++    maintainers.  They may be amenable to making this the default on
++    Debian systems.
++  * add dependency on dpkg (>= 1.9.0) for new install-info.
++  * info pages should finally work right (or at least closer to right).
++    They're now installed in /usr/share/info/emacs-20/ under their normal
++    names, and install-info can add the appropriate (emacs-20/emacs),
++    etc. entries to /usr/share/info/dir.  This hopefully closes a bunch of
++    old bugs.
++    (closes: #64994, #64512, #64025, #62155, #59332, #51163, #40443)
++  * No more files in /usr/doc. (closes: #91454, #63768)
++  * /usr/man moved to /usr/share/man. (closes: #91149)
++  * This should be fixed, in addition we've switched to dpkg-statoverride
++    (closes: #73007)
++  * /usr/share/info/dir.gz should be gone.
++    (closes: #75594, #68551, #65012)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sun, 29 Apr 2001 22:03:33 -0500
++
++emacs20 (20.7-4) unstable frozen; urgency=low
++
++  * Upload to unstable *and* frozen since this fixes outstanding grave
++    bugs.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Thu, 27 Jul 2000 16:21:15 -0500
++
++emacs20 (20.7-3) unstable; urgency=low
++
++  * Change code to rebuild *all* the install tree .elc files at build
++    time.  This should fix the grave problems with gnus trashing mail at
++    the expense of more CPU at build time.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed, 19 Jul 2000 20:27:27 -0500
++
++emacs20 (20.7-2) frozen unstable; urgency=low
++
++  * Revert to setting debian-emacs-flavor in startup.el as per recent
++    flip-flop in debian-emacs-policy :<  This was a *tiny* source change,
++    and definitely has to go into frozen - too much breaks otherwise.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue, 20 Jun 2000 11:31:29 -0500
++
++emacs20 (20.7-1) frozen unstable; urgency=low
++
++  * New upstream bug-fix version.  Fixes security bugs, among others.
++  * Removed some now redundant Debian patches.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat, 17 Jun 2000 12:59:48 -0500
++
++emacs20 (20.6-3) unstable frozen; urgency=medium
++
++  * Temp fix for alpha corruption problem in cm/src.h
++    src/termcap.c, src/terminfo.c, and src/sysdep.c (forwarded bug 63993).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Mon, 12 Jun 2000 18:55:22 -0500
++
++emacs20 (20.6-2) frozen unstable; urgency=low
++
++  * Make sure info files get registered after /usr/share migration.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 May 2000 15:30:02 -0500
++
++emacs20 (20.6-1) frozen unstable; urgency=low
++
++  * Let emacsen-common handle setting debian-emacs-flavor and modify
++    "Depends:" accordingly.
++  * Maintainer release of 20.6 - fixes same issues as 20.6-0.1, so it
++    should go into frozen.
++  * Move info files to /usr/share/info.
++  * Make sure .elc files for .el files we've modified are *always* rebuilt.
++  * Add new unexelf.c from Gerd Moellmann <gerd@gnu.org>.  Without this,
++    emacs20 will *not* build on either frozen or unstable x86 machines.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 May 2000 11:00:33 -0500
++
++emacs20 (20.6-0.1) frozen unstable; urgency=low
++
++  * Non-maintainer release.
++  * New upstream bug fix release (closes:#60931).
++  * ARM support merged upstream.
++  * Add security patches from RUS-CERT posting on BugTraq.
++  * postinst: Use 2775 as directory permissions in /usr/local (closes:#59919)
++
++ -- Joel Klecker <espy@debian.org>  Wed, 26 Apr 2000 11:26:28 -0700
++
++emacs20 (20.5a-2) unstable; urgency=low
++
++  * Check in a bogus modification to all the .el files that we modified
++    before 20.5a so that new .elc files with our changes will be generated
++    when we build.  This must be done every time an upstream change is
++    merged in.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue, 28 Dec 1999 19:51:14 -0600
++
++emacs20 (20.5a-1) unstable; urgency=high
++
++  * Upstream version number is just fine (20.5a *is* newer than 20.5).
++    Switch to use it.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed, 22 Dec 1999 11:12:44 -0600
++
++emacs20 (20.4.pre20.5a-1) unstable; urgency=high
++
++  * New upstream version, including some Y2K fixes.
++  * Use weird version to avoid epochs.  This is upstream 20.5a.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed, 22 Dec 1999 00:16:52 -0600
++
++emacs20 (20.4-3) unstable; urgency=low
++
++  * Fix mistake in this file.  Fix bug number in architecture
++    dependency "closes" in last revision.
++  * Powerpc configure.in patch from Susumu OSAWA <susumuo@debian.org>.
++    (Should close bug 48997, but marked forwarded instead until patch is
++    resolved upstream.)
++  * Jargon problems apparently fixed. (closes: #31103 #37030)
++  * Gnus printing problems apparently fixed (closes: #20760)
++  * Fix manpage to refer to more accurate Debian file locations.
++    (closes: #35267)
++  * cperl-mode problem apparently fixed. (closes: #46739)
++  * Fix build stripping problem (use INSTALL_STRIP=-s rather than
++    INSTALL_PROGRAM="install -s").
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat,  4 Dec 1999 19:24:07 -0600
++
++emacs20 (20.4-2) unstable; urgency=low
++
++  * Modify mail-spool-directory/movemail patch in preparation for upstream
++    inclusion.
++  * Fix architecture dependency. (closes: #48997)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri, 12 Nov 1999 17:59:01 -0600
++
++emacs20 (20.4-1) unstable; urgency=low
++
++  * New upstream version.
++  * I decided to go ahead and get this out without the major overhaul
++    that's coming, but I'm going to be working more tightly the core
++    upstream developers from now on, so there will be some more
++    substantial changes soon, including getting rid of more Debianisms and
++    double checking all our current patches.
++  * Fix movemail liblockfile detection to be non-Debian specific
++    (currently working out the appropriate upstream patch (see etc/NEWS)).
++  * Fix emacs to support a --with-mail-spool-directory configure option and to
++    automagically detect the right answer most of the time without it
++    (currently working out the appropriate upstream patch (see etc/NEWS)).
++  * Add the lisp-level variable mail-spool-directory which always contains
++    the location of the mail spool, and hack movemail, nnmail, rmail, and
++    friends to use it (currently working out the appropriate upstream
++    patch (see etc/NEWS)) .
++  * hexl-mode bug fixed upstream. (closes: #21762)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat, 30 Oct 1999 13:24:39 -0500
++
++emacs20 (20.3-11) unstable; urgency=low
++
++  * Fix liblockfile version skew. (closes: #43803 #45123)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Thu, 23 Sep 1999 13:27:00 -0500
++
++emacs20 (20.3-10) unstable; urgency=low
++
++  * Restructure debian/rules to build -el in binary-indep
++    (closes: #26761)
++  * Add emacsclient.1 manpage submitted ages ago. (closes: #22463)
++  * Handle duplicate DOC files (closes: #27668)
++  * Switch to gnu icon from old B&W drippy sink (closes: #33260)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue,  6 Jul 1999 23:21:44 -0500
++
++emacs20 (20.3-9) unstable; urgency=low
++
++  * Added HURD patch from Marcus Brinkmann <brinkmd@debian.org>.
++    (closes: #38571).
++  * Backed out (global-set-key [delete] 'delete-char) modification 
++    (Ref: #26366).  This is too controversial (think cross-platform)
++    and needs to be resolved by the Debian Keyboard Czar in concert with
++    others.  For now we revert to the upstream behavior...
++  * Add /usr/share/info to info search path (closes: #38285).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri, 11 Jun 1999 00:43:51 -0500
++
++emacs20 (20.3-8) unstable; urgency=low
++
++  * Added patch to emacs.c from Wolfram Gloger
++    <wmglo@dent.med.uni-muenchen.de> to fix exit segfaults.
++    (closes: #37745)
++  * Fixed suidregister inconsistency between postinst and postrm
++    (closes #36845)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sun, 30 May 1999 14:38:51 -0500
++
++emacs20 (20.3-7) unstable frozen; urgency=low
++
++  * Needed to go to frozen too: --print-architecture was an important
++    bug.  Should be OK since other fixes since -5 are minor and
++    important.
++  * Add conflict with w3-el (as per Ben Pfaff's <pfaffben@pilot.msu.edu>
++    request). (closes: #30413).
++  * Undo broken (and unneeded) "fix" for suidregister call in postrm.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Thu, 28 Jan 1999 14:49:27 -0600
++
++emacs20 (20.3-6) unstable; urgency=low
++
++  * Use --print-installation-architecture rather than --print-architecture
++    (closes: #28177).
++  * Remove "#undef SIGIO" from m/arm.h as indicated by David Welton
++    <davidw@debian.org> (closes: #31279).
++  * Fix call to suidunregister (I didn't realize that it can't take
++    multiple file arguments) (closes: #21243 #26886).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed, 27 Jan 1999 11:50:14 -0600
++
++emacs20 (20.3-5) frozen unstable; urgency=low
++
++  * Added NetWinder patches (closes: #28277).  (Thanks to David Welton)
++  * Rebuilt emacs20-el so the versions coincide.  In the future, people
++    need to be sure to build *both* binary packages when doing a
++    non-maintainer binary release.  (This fix justifies inclusion into
++    frozen).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sun,  1 Nov 1998 20:14:36 -0600
++
++emacs20 (20.3-4) unstable; urgency=low
++
++  * Fix gnus to default to /var/spool/mail rather than /usr/spool/mail for
++    mailbox locations (closes: #21364).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat, 17 Oct 1998 14:28:45 -0500
++
++emacs20 (20.3-3) unstable; urgency=low
++
++  * Fixed leim.  All the input methods should work now (closes: #27398).
++  * Made (global-set-key [delete] 'delete-char) the default (closes: #26366).
++  * Fix ownership on emacs20-el files (closes: #27398).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue, 13 Oct 1998 16:57:51 -0500
++
++emacs20 (20.3-2) unstable; urgency=low
++
++  * Added 20.2 patches for powerpc.  I omitted the patches to the
++    following files because it looks like equivalent fixes have already
++    made it into 20.3.  If anyone who understands that code better knows
++    differently, please let me know.  The rest of the patches applied
++    cleanly.
++      src/callproc.c.rej
++      src/dired.c.rej
++      src/fileio.c.rej
++      src/process.c.rej
++      src/regex.c.rej
++    I also modified src/m/powerpc.h to fix problems calling the ldscript.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Mon,  7 Sep 1998 18:20:41 -0500
++
++emacs20 (20.3-1) unstable; urgency=low
++
++  * New upstream version.
++  * Modify all the debian/* stuff to automatically track version changes.
++  * Major changes to info page handling.  Emacs20 info is now integrated into
++    the main info page.  This was the best way I could think of to handle
++    cross references, etc. without major source changes.
++  * Locked emacs20-el and emacs20 package versions together with dependencies.
++  * Add info direntries for widget, info, and customize.
++  * Fix handling of /usr/local/share (which was badly broken).
++  * Turn stripping back on.  It appears to work.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue,  1 Sep 1998 11:44:04 -0500
++
++emacs20 (20.2-9) unstable; urgency=low
++
++  * Fixes for leim problems (closes: #25536).  Thanks to
++    Junio Hamano <junio@twinsun.com>
++  * update-elc now made executable (closes: #25899).  Thanks to
++    Junio Hamano <junio@twinsun.com>
++  * Fix problem with package including dirs in /usr/local/share
++    (closes: #23431).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat, 22 Aug 1998 11:45:16 -0500
++
++emacs20 (20.2-8) unstable; urgency=low
++
++  * Regenerate .elc files for .el files we've modified.  I didn't realize
++    that some of the .elc files were in the upstream tar file.  Hope this
++    doesn't break anything.  We haven't been using our sendmail and
++    message modifications until now.  (closes: #21079).
++  * Fix i386ism in debian scripts use "dpkg --print-architecture"
++    instead. (closes: #20548).
++  * Fixed reference in README.add-on-package-maintainers
++    (closes: #23445)
++  * Fix some alpha problems (closes: #21834).
++  * Had to add Replaces: emacs20 to emacs20-el to fix problem with
++    copyright files being in the wrong package (closes: #21531).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri,  7 Aug 1998 20:39:59 -0500
++
++emacs20 (20.2-7) frozen unstable; urgency=low
++
++  * Changed emacs20-el from standard to optional.
++  * Fixed broken postrm (release critical) (closes: #24236)
++  * Don't strip emacs binary (strip is broken see binutils #23153).
++  * Since we can't strip, don't compile or link with "-g".
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Thu, 16 Jul 1998 16:58:04 -0500
++
++emacs20 (20.2-6) frozen unstable; urgency=low
++
++  * Gack.  Fix reject due to changed .tar.gz file (./leim added to tar).
++      
++ -- Rob Browning <rlb@cs.utexas.edu>  Wed,  8 Apr 1998 14:04:54 -0500
++
++emacs20 (20.2-5) frozen unstable; urgency=low
++
++  * Make sure to preserve timestamps on .el files in emacs20-el
++    (closes: #20274)
++  * Add leim support for alternate input methods.  May close several
++    bugs.
++      
++ -- Rob Browning <rlb@cs.utexas.edu>  Sun,  5 Apr 1998 10:38:20 -0500
++
++emacs20 (20.2-4) frozen unstable; urgency=low
++
++  * Added copright file to emacs20-el package (closes: #19300)
++  * suidmanager doesn't understand symbolic perms
++    (closes: #18448, #19213)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Fri, 13 Mar 1998 13:01:07 -0600
++
++emacs20 (20.2-3) unstable; urgency=low
++
++  * Fixed problem with permissions on /usr/share/emacs/20.2/site-lisp/
++    (closes: #18717)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Mon,  2 Mar 1998 12:02:33 -0600
++
++emacs20 (20.2-2) unstable; urgency=low
++
++  * fixed bad menu line (closes: #18362).
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Thu, 19 Feb 1998 10:52:58 -0600
++
++emacs20 (20.2-2) unstable; urgency=low
++
++  * Explicit dependency on liblockfile0 until bug is fixed
++    (closes #18186)
++  * added lisp/site-lisp.el to fix info path problem (closes #18190)
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Sat, 14 Feb 1998 19:19:09 -0600
++
++emacs20 (20.2-1) unstable; urgency=low
++
++  * movemail no longer suid -- not needed.
++  * start from scratch with emacs-20.2 source and old emacs-19.34 and
++    xemacs patches.
++
++ -- Rob Browning <rlb@cs.utexas.edu>  Tue, 16 Dec 1997 01:20:27 -0600
++
++Local Variables:
++coding: utf-8
++End:
+--- emacs-21.3.orig/debian/control.in
++++ emacs-21.3/debian/control.in
+@@ -0,0 +1,64 @@
++Source: emacs@MAJOR_VERSION@
++Section: editors
++Priority: optional
++Maintainer: Rob Browning <rlb@defaultvalue.org>
++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)
++Standards-Version: 3.6.1 
++
++Package: emacs@MAJOR_VERSION@
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
++Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
++Conflicts: emacs@MAJOR_VERSION@-nox, w3-el
++Replaces: emacs@MAJOR_VERSION@-nox
++Description: The GNU Emacs editor
++ GNU Emacs is the extensible self-documenting text editor.
++
++Package: emacs@MAJOR_VERSION@-nox
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs@MAJOR_VERSION@-bin-common (= ${Source-Version}), ${shlibs:Depends}
++Provides: emacs@MAJOR_VERSION@, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
++Conflicts: emacs@MAJOR_VERSION@, w3-el
++Replaces: emacs@MAJOR_VERSION@
++Description: The GNU Emacs editor (without X support)
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains a version of Emacs compiled without support for X.
++
++Package: emacs@MAJOR_VERSION@-bin-common
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version}), ${shlibs:Depends}
++Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
++Description: The GNU Emacs editor's shared, architecture dependent files
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the architecture dependent infrastructure
++ that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
++
++Package: emacs@MAJOR_VERSION@-common
++Section: editors
++Priority: optional
++Architecture: all
++Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
++Suggests: emacs@MAJOR_VERSION@-el
++Conflicts: emacs@MAJOR_VERSION@-el (<< ${Source-Version}), w3-el
++Replaces: emacs21 (<< 21.2-4)
++Description: The GNU Emacs editor's shared, architecture independent infrastructure
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the architecture independent infrastructure
++ that's shared by emacs@MAJOR_VERSION@ and emacs@MAJOR_VERSION@-nox.
++
++Package: emacs@MAJOR_VERSION@-el
++Section: editors
++Priority: optional
++Architecture: all
++Depends: emacs@MAJOR_VERSION@-common (= ${Source-Version})
++Replaces: emacs@MAJOR_VERSION@ (<< 21.2-4)
++Description: GNU Emacs LISP (.el) files
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the elisp sources for the convenience of users,
++ saving space in the main package for small systems.
+--- emacs-21.3.orig/debian/emacs-common.postinst
++++ emacs-21.3/debian/emacs-common.postinst
+@@ -0,0 +1,106 @@
++#!/bin/sh -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++INFOFILES="@INFOFILES@"
++
++PRIORITY=24
++
++# Fix from Manoj so we don't clean up more than we should.
++if [ -f /usr/share/info/gnus.gz ]; then
++    CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms info mh-e reftex sc \
++                     vip viper widget"
++else
++    CRUFT_INFOFILES="ccmode cl dired-x ediff emacs forms gnus info message \
++                     mh-e reftex sc vip viper widget"
++fi
++
++# We have to clean these up because the old package didn't.  The info
++# files were being removed in the postinst, not the prerm, and so
++# install-info wasn't doing anything because the files weren't there..
++for file in ${CRUFT_INFOFILES}
++do
++  install-info --quiet --remove-exactly ${file} || true
++done
++
++for file in ${INFOFILES}
++do
++  install-info --quiet --section Emacs Emacs \
++    /usr/share/info/emacs-${MAJOR}/${file}.gz || true
++done
++
++# Create the site-lisp dir for this flavor if we're allowed
++
++#### Begin Bug fix hack for old emacs20 package brain damage.
++#
++# We have to handle /usr/local/share and /usr/local/share/emacs here
++# because emacs20 used to contain /usr/local/share :< .  Normally
++# these dirs should have been handled exclusively by emacsen-common.
++
++parentdir=/usr/local
++newdir=share
++
++if [ -d ${parentdir} ]
++then
++  if mkdir ${parentdir}/${newdir} 2>/dev/null
++  then
++    chown root:staff ${parentdir}/${newdir}
++    chmod 2775 ${parentdir}/${newdir}
++  fi
++fi
++
++parentdir=/usr/local/share
++newdir=emacs
++
++if [ -d ${parentdir} ]
++then
++  if mkdir ${parentdir}/${newdir} 2>/dev/null
++  then
++    chown root:staff ${parentdir}/${newdir}
++    chmod 2775 ${parentdir}/${newdir}
++  fi
++fi
++
++parentdir=/usr/local/share/emacs
++newdir=site-lisp
++
++if [ -d ${parentdir} ]
++then
++  if mkdir ${parentdir}/${newdir} 2>/dev/null
++  then
++    chown root:staff ${parentdir}/${newdir}
++    chmod 2775 ${parentdir}/${newdir}
++  fi
++fi
++
++#### End Bug fix hack for old emacs20 package brain damage.
++
++
++parentdir=/usr/local/share/emacs
++newdir=${FULL}
++
++if [ -d ${parentdir} ]
++then
++  if mkdir ${parentdir}/${newdir} 2>/dev/null
++  then
++    chown root:staff ${parentdir}/${newdir}
++    chmod 2775 ${parentdir}/${newdir}
++  fi
++fi
++
++parentdir=/usr/local/share/emacs/${FULL}
++newdir=site-lisp
++
++if [ -d ${parentdir} ]
++then
++  if mkdir ${parentdir}/${newdir} 2>/dev/null
++  then
++    chown root:staff ${parentdir}/${newdir}
++    chmod 2775 ${parentdir}/${newdir}
++  fi
++fi
++
++# emacsen-common/emacs-install used to be here.
++
++exit 0
+--- emacs-21.3.orig/debian/control
++++ emacs-21.3/debian/control
+@@ -0,0 +1,64 @@
++Source: emacs21
++Section: editors
++Priority: optional
++Maintainer: Rob Browning <rlb@defaultvalue.org>
++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)
++Standards-Version: 3.6.1 
++
++Package: emacs21
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
++Provides: emacsen, editor, info-browser, mail-reader, news-reader, www-browser
++Conflicts: emacs21-nox, w3-el
++Replaces: emacs21-nox
++Description: The GNU Emacs editor
++ GNU Emacs is the extensible self-documenting text editor.
++
++Package: emacs21-nox
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs21-bin-common (= ${Source-Version}), ${shlibs:Depends}
++Provides: emacs21, editor, emacsen, info-browser, mail-reader, news-reader, www-browser
++Conflicts: emacs21, w3-el
++Replaces: emacs21
++Description: The GNU Emacs editor (without X support)
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains a version of Emacs compiled without support for X.
++
++Package: emacs21-bin-common
++Section: editors
++Priority: optional
++Architecture: any
++Depends: emacs21-common (= ${Source-Version}), ${shlibs:Depends}
++Replaces: emacs21 (<< 21.2-4), emacs21-common (<< 21.3+1-4)
++Description: The GNU Emacs editor's shared, architecture dependent files
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the architecture dependent infrastructure
++ that's shared by emacs21 and emacs21-nox.
++
++Package: emacs21-common
++Section: editors
++Priority: optional
++Architecture: all
++Depends: emacsen-common (>= 1.4.10), dpkg (>= 1.9.0), ${shlibs:Depends}
++Suggests: emacs21-el
++Conflicts: emacs21-el (<< ${Source-Version}), w3-el
++Replaces: emacs21 (<< 21.2-4)
++Description: The GNU Emacs editor's shared, architecture independent infrastructure
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the architecture independent infrastructure
++ that's shared by emacs21 and emacs21-nox.
++
++Package: emacs21-el
++Section: editors
++Priority: optional
++Architecture: all
++Depends: emacs21-common (= ${Source-Version})
++Replaces: emacs21 (<< 21.2-4)
++Description: GNU Emacs LISP (.el) files
++ GNU Emacs is the extensible self-documenting text editor.
++ This package contains the elisp sources for the convenience of users,
++ saving space in the main package for small systems.
+--- emacs-21.3.orig/debian/emacs-bin-common.postinst
++++ emacs-21.3/debian/emacs-bin-common.postinst
+@@ -0,0 +1,30 @@
++#!/bin/sh -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++INFOFILES="@INFOFILES@"
++ALTERNATIVES="@ALTERNATIVES@"
++
++PRIORITY=24
++
++# update-alternatives on things that collide with xemacs, other editors
++for i in ctags etags emacsclient
++do
++  update-alternatives \
++    --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} ${PRIORITY} \
++    --slave /usr/share/man/man1/$i.1.gz $i.1.gz \
++            /usr/share/man/man1/$i.1emacs${MAJOR}.gz 
++done
++
++for i in ${ALTERNATIVES}
++do
++  test $i = ctags && continue
++  test $i = etags && continue
++  test $i = emacs && continue
++  test $i = emacsclient && continue
++  update-alternatives --install /usr/bin/$i $i /usr/bin/$i.emacs${MAJOR} \
++    ${PRIORITY}
++done
++
++exit 0
+--- emacs-21.3.orig/debian/emacs-bin-common.prerm
++++ emacs-21.3/debian/emacs-bin-common.prerm
+@@ -0,0 +1,25 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++INFOFILES="@INFOFILES@"
++ALTERNATIVES="@ALTERNATIVES@"
++
++if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
++then
++  rm -f /usr/doc/@PKG_NAME@
++fi
++
++# update-alternatives on things that collide with xemacs, other editors
++if [ "$1" != "upgrade" ]
++then
++  for i in `echo ${ALTERNATIVES} | grep -v emacs`
++  do
++    update-alternatives --remove $i /usr/bin/$i.emacs${MAJOR}
++  done
++fi
++
++exit 0
+--- emacs-21.3.orig/debian/emacsclient-plus
++++ emacs-21.3/debian/emacsclient-plus
+@@ -0,0 +1,31 @@
++#!/usr/bin/perl
++
++# If there is an Emacs server, runs emacsclient.
++# Otherwise, launches Emacs.
++# Only for systems with Berkeley sockets (like Debian GNU/Linux).
++
++$real_emacsclient = "/usr/bin/emacsclient";
++$socket_prefix = "esrv";
++$id = `id --user`;
++chomp $id;
++$socket_dir = "/tmp/";
++$hostname = `hostname`;
++chomp $hostname;
++
++if (-S "$socket_dir$socket_prefix$id-$hostname") {
++    exec ("$real_emacsclient " . join (" ", @ARGV));            
++    die "Cannot run $real_emacsclient: $!";
++}
++else {
++    if ($ENV{'DISPLAY'}) {
++        system "emacs &";
++        # Wait the server (Emacs is slow)
++        sleep 2;
++        exec ("$real_emacsclient " . join (" ", @ARGV));                
++        die "Cannot run $real_emacsclient: $!";
++    }
++    else {
++        exec ("emacs " . join (" ", @ARGV));            
++        die "Cannot run emacs: $!";
++    }
++}
+--- emacs-21.3.orig/debian/patches/00list
++++ emacs-21.3/debian/patches/00list
+@@ -0,0 +1,19 @@
++autoconf-updates
++misc-unseparated
++arch-hppa
++arch-mipsel
++arch-s390
++browse-url
++bzero-and-have-stdlib
++detect-coding-iso2022
++movemail-mailspool
++version-mention-debian
++hurd-libio-glibc
++battery-acpi-support
++scroll-margin
++save-buffer
++emacsclient-alternate-editor
++fix-x-vs-no-x-diffs
++fix-batch-mode-signal-handling
++fix-insecure-permissions-on-restore
++CAN-2005-0100
+--- emacs-21.3.orig/debian/patches/arch-hppa.dpatch
++++ emacs-21.3/debian/patches/arch-hppa.dpatch
+@@ -0,0 +1,105 @@
++#! /bin/sh -e
++## 500-arch-hppa.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Support for the hppa architecture has been added.
++## DP: Status: appears to be incorporated upstream
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++--- emacs21-21.2.orig/configure.in
+++++ emacs21-21.2/configure.in
++@@ -552,6 +552,9 @@
++   hppa*-*-nextstep* )
++     machine=hp800 opsys=nextstep
++   ;;
+++  hppa*-*-linux-gnu* )
+++    machine=hp800 opsys=gnu-linux
+++  ;;
++ 
++   ## Orion machines
++   orion-orion-bsd* )
++--- emacs21-21.2.orig/src/m/hp800.h
+++++ emacs21-21.2/src/m/hp800.h
++@@ -85,7 +85,7 @@
++ #define bcmp         memcmp
++ #endif
++ \f
++-#ifdef __hpux
+++#if defined(__hpux) || defined(__linux__)
++ /* Now define a symbol for the cpu type, if your compiler
++    does not define it automatically:
++    Ones defined so far include vax, m68000, ns16000, pyramid,
++@@ -94,6 +94,15 @@
++ #     define hp9000s800
++ #endif
++ 
+++#ifdef __linux__
+++/* Data type of load average, as read out of kmem.  */
+++
+++#define LOAD_AVE_TYPE long
+++
+++/* Convert that into an integer that is 100 for a load average of 1.0  */
+++
+++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
+++#else
++ /* Data type of load average, as read out of kmem.  */
++ 
++ #define LOAD_AVE_TYPE double
++@@ -101,7 +110,7 @@
++ /* Convert that into an integer that is 100 for a load average of 1.0  */
++ 
++ #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
++-
+++#endif
++ 
++ /* Define CANNOT_DUMP on machines where unexec does not work.
++    Then the function dump-emacs will not be defined
++@@ -116,6 +125,7 @@
++    Otherwise Emacs assumes that text space precedes data space,
++    numerically.  */
++ 
+++#ifdef __hpux
++ #define VIRT_ADDR_VARIES
++ 
++ /* Define C_ALLOCA if this machine does not support a true alloca
++@@ -134,6 +144,9 @@
++ 
++ #define DATA_START    0x40000000
++ #define TEXT_START    0x00000000
+++#else
+++#define HAVE_ALLOCA
+++#endif
++ 
++ #define STACK_DIRECTION 1 
++ 
++@@ -147,6 +160,7 @@
++ /* This machine requires completely different unexec code
++    which lives in a separate file.  Specify the file name.  */
++ 
+++#ifdef __hpux
++ #define UNEXEC unexhp9k800.o
++ 
++ #define LIBS_MACHINE
++@@ -179,5 +193,5 @@
++ 
++ #define index strchr
++ #define rindex strrchr
++-
++-#endif /* __hpux */
+++#endif
+++#endif
+--- emacs-21.3.orig/debian/patches/CAN-2005-0100.dpatch
++++ emacs-21.3/debian/patches/CAN-2005-0100.dpatch
+@@ -0,0 +1,35 @@
++#! /bin/sh -e
++## CAN-2005-0100.dpatch by  <martin.pitt@ubuntu.com>
++##
++## All lines beginning with `## DP:' are a description of the patch.
++## DP: Fix format string vulnerability in movemal (CAN-2005-0100).
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -urNad emacs-21.3/lib-src/movemail.c /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c
++--- emacs-21.3/lib-src/movemail.c     2005-02-04 10:07:21.636219680 +0000
+++++ /tmp/dpep.yMvw2I/emacs-21.3/lib-src/movemail.c    2005-02-04 10:08:17.325885034 +0000
++@@ -786,7 +786,7 @@
++       mbx_delimit_begin (mbf);
++       if (pop_retr (server, i, mbf) != OK)
++      {
++-       error (Errmsg, 0, 0);
+++       error ("%s", Errmsg, 0);
++        close (mbfi);
++        return (1);
++      }
+--- emacs-21.3.orig/debian/patches/misc-unseparated.dpatch
++++ emacs-21.3/debian/patches/misc-unseparated.dpatch
+@@ -0,0 +1,248 @@
++#! /bin/sh -e
++## 400-misc-unseparated.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Some documentation references to /usr/local/ have been changed to /usr.
++## DP: 
++## DP: ** Emacs runs debian-startup
++## DP: Emacs runs debian-startup during the startup process unless
++## DP: site-run-file is false.
++## DP: 
++## DP: ** The default for message-sendmail-f-is-evil has been changed to t.
++## DP: This is correct for Debian systems where we know the MTA should be
++## DP: trusted.
++## DP: 
++## DP: ** mail-from-style changed from 'angles to 'system-default by default.
++## DP: 
++## DP: ** debian-emacs-flavor is a global variable bound to 'emacs21.
++## DP: Author: rlb
++## DP: 
++## DP: ** Info-default-directory-list includes /usr/share/info/emacs-MAJOR
++## DP: Author: rlb
++## DP: Info-default-directory-list was modified to reflect the install
++## DP: location of the info files.  This location allows multiple emacsen to
++## DP: coexist on the same Debian system.
++## DP: 
++## DP: ** The build process was modified to accommodate Debian packaging.
++## DP: Author: rlb
++## DP: Emacs has to be able to install into a directory that will
++## DP: not be the eventual run directory without embedding the install
++## DP: directory in any of the resulting files.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs21/trunk/Makefile.in trunk/Makefile.in
++--- /home/rlb/deb/emacs21/trunk/Makefile.in   2003-09-11 01:16:07.000000000 -0500
+++++ trunk/Makefile.in 2003-09-11 01:16:53.000000000 -0500
++@@ -474,11 +474,16 @@
++        $(srcdir)/mkinstalldirs ${datadir}; \
++        chmod a+r ${datadir};\
++      fi
+++     test "${debepkgdir}"
++      $(srcdir)/mkinstalldirs ${COPYDESTS} ${infodir} ${man1dir} \
++        ${bindir} ${docdir} ${libexecdir} \
++        ${datadir}/emacs/site-lisp \
++        ${datadir}/emacs/${version}/site-lisp \
++-       `echo ${locallisppath} | sed 's/:/ /g'`
+++       `echo ${debepkgdir}${locallisppath} | sed 's|:| ${debepkgdir}|g'`
+++
+++# debepkgdir (above) is set in debian/rules
+++
+++#      `echo debian/tmp-emacs${locallisppath} | sed 's/:/ debian\/tmp-emacs/g'`
++ 
++ ### Delete all the installed files that the `install' target would
++ ### create (but not the noninstalled files such as `make all' would
++diff -urNad /home/rlb/deb/emacs21/trunk/etc/NEWS trunk/etc/NEWS
++--- /home/rlb/deb/emacs21/trunk/etc/NEWS      2003-09-11 01:16:07.000000000 -0500
+++++ trunk/etc/NEWS    2003-09-11 01:16:53.000000000 -0500
++@@ -6,6 +6,11 @@
++ For older news, see the file ONEWS
++ 
++ \f
+++* Debian specific changes to Emacs
+++
+++Please see /usr/share/doc/emacs21/README.Debian.gz.
+++
+++\f
++ * Installation changes in Emacs 21.3
++ 
++ ** Support for GNU/Linux on little-endian MIPS and on IBM S390 has
++diff -urNad /home/rlb/deb/emacs21/trunk/etc/emacs.1 trunk/etc/emacs.1
++--- /home/rlb/deb/emacs21/trunk/etc/emacs.1   2003-09-11 01:16:07.000000000 -0500
+++++ trunk/etc/emacs.1 2003-09-11 01:16:53.000000000 -0500
++@@ -169,7 +169,7 @@
++ window in reverse video.
++ .TP
++ .B \-i
++-Use the "kitchen sink" bitmap icon when iconifying the
+++Use the Emacs icon when iconifying the
++ .I Emacs
++ window.
++ .TP
++@@ -221,7 +221,7 @@
++ .IR X (1)
++ for more information.
++ The width and height are specified in characters; the default is 80 by
++-24.
+++40.
++ .PP
++ .TP 8
++ .BI \-fg " color"
++@@ -411,29 +411,29 @@
++ manual is also included in the Emacs source distribution.
++ .PP
++ .SH FILES
++-/usr/local/info - files for the Info documentation browser
+++/usr/info - files for the Info documentation browser
++ (a subsystem of Emacs) to refer to.  Currently not much of Unix
++ is documented here, but the complete text of the Emacs reference
++ manual is included in a convenient tree structured form.
++ 
++-/usr/local/share/emacs/$VERSION/src - C source files and object files
+++/usr/share/emacs/$VERSION/src - C source files and object files
++ 
++-/usr/local/share/emacs/$VERSION/lisp - Lisp source files and compiled files
+++/usr/share/emacs/$VERSION/lisp - Lisp source files and compiled files
++ that define most editing commands.  Some are preloaded;
++ others are autoloaded from this directory when used.
++   
++-/usr/local/share/emacs/$VERSION/etc - various programs that are used with
+++/usr/share/emacs/$VERSION/etc - various programs that are used with
++ GNU Emacs, and some files of information.
++ 
++-/usr/local/share/emacs/$VERSION/etc/DOC.* - contains the documentation
+++/usr/share/emacs/$VERSION/etc/DOC.* - contains the documentation
++ strings for the Lisp primitives and preloaded Lisp functions
++ of GNU Emacs.  They are stored here to reduce the size of
++ Emacs proper.
++ 
++-/usr/local/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
+++/usr/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
++ vs. other versions of Emacs.
++ .br
++-/usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
+++/usr/share/emacs/$VERSION/etc/SERVICE lists people offering
++ various services to assist users of GNU Emacs, including education,
++ troubleshooting, porting and customization.
++ .br
++@@ -441,7 +441,7 @@
++ programs in the Emacs Lisp extension language, which has not yet been fully
++ documented.
++ 
++-/usr/local/com/emacs/lock - holds lock files that are made for all
+++/usr/com/emacs/lock - holds lock files that are made for all
++ files being modified in Emacs, to prevent simultaneous modification
++ of one file by two users.
++ 
++@@ -468,7 +468,7 @@
++ Send requests to be added to mailing lists to the special list
++ info-gnu-emacs-request@prep.ai.mit.edu (or the corresponding UUCP
++ address).  For more information about Emacs mailing lists, see the
++-file /usr/local/emacs/etc/MAILINGLISTS.  Bugs tend actually to be
+++file /usr/emacs/etc/MAILINGLISTS.  Bugs tend actually to be
++ fixed if they can be isolated, so it is in your interest to report
++ them in such a way that they can be easily reproduced.
++ .PP
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el trunk/lisp/gnus/message.el
++--- /home/rlb/deb/emacs21/trunk/lisp/gnus/message.el  2003-09-11 01:16:07.000000000 -0500
+++++ trunk/lisp/gnus/message.el        2003-09-11 01:16:53.000000000 -0500
++@@ -402,9 +402,14 @@
++               (const use)
++               (const ask)))
++ 
++-(defcustom message-sendmail-f-is-evil nil
++-  "*Non-nil means don't add \"-f username\" to the sendmail command line.
++-Doing so would be even more evil than leaving it out."
+++;; message-sendmail-f-is-evil is nil here in the upstream source, but
+++;; sendmail works right under Debian Linux, so we want t. [was
+++;; orignally reported for emacs 19 as debian#7051]
+++(defcustom message-sendmail-f-is-evil t
+++  "*Non-nil means don't add \"-f username\" to the sendmail command
+++line, because adding it would be more evil than leaving it out.  Under
+++Debian/GNU/Linux, sendmail works right, so it should be safe for this
+++to be set to true."
++   :group 'message-sending
++   :type 'boolean)
++ 
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el trunk/lisp/mail/sendmail.el
++--- /home/rlb/deb/emacs21/trunk/lisp/mail/sendmail.el 2003-09-11 01:16:07.000000000 -0500
+++++ trunk/lisp/mail/sendmail.el       2003-09-11 01:16:53.000000000 -0500
++@@ -43,7 +43,7 @@
++   :group 'mail)
++ 
++ ;;;###autoload
++-(defcustom mail-from-style 'angles "\
+++(defcustom mail-from-style 'system-default "\
++ *Specifies how \"From:\" fields look.
++ 
++ If `nil', they contain just the return address like:
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/site-init.el trunk/lisp/site-init.el
++--- /home/rlb/deb/emacs21/trunk/lisp/site-init.el     1969-12-31 18:00:00.000000000 -0600
+++++ trunk/lisp/site-init.el   2003-09-11 01:16:53.000000000 -0500
++@@ -0,0 +1,3 @@
+++(setq Info-default-directory-list
+++      ;; the command line info doesn't seem to need this, but emacs does.
+++      (append Info-default-directory-list '("/usr/share/info/emacs-21/")))
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/startup.el trunk/lisp/startup.el
++--- /home/rlb/deb/emacs21/trunk/lisp/startup.el       2003-09-11 01:16:07.000000000 -0500
+++++ trunk/lisp/startup.el     2003-09-11 01:16:53.000000000 -0500
++@@ -339,6 +339,10 @@
++ 
++ (defvar normal-top-level-add-subdirs-inode-list nil)
++ 
+++(defconst debian-emacs-flavor 'emacs21
+++  "A symbol representing the particular debian flavor of emacs running.
+++Something like 'emacs20, 'xemacs20, etc.")
+++
++ (defun normal-top-level-add-subdirs-to-load-path ()
++   "Add all subdirectories of current directory to `load-path'.
++ More precisely, this uses only the subdirectories whose names
++@@ -848,8 +852,18 @@
++     ;; Run the site-start library if it exists.  The point of this file is
++     ;; that it is run before .emacs.  There is no point in doing this after
++     ;; .emacs; that is useless.
++-    (if site-run-file 
++-     (load site-run-file t t))
+++    ;; (if site-run-file 
+++    ;;     (load site-run-file t t))
+++
+++    ;; Debian version of site-start.
+++    (if site-run-file
+++        (progn
+++          ;; Load all the debian package snippets.
+++          ;; It's in here because we want -q to kill it too.
+++          (if (load "debian-startup" t t nil)
+++              (debian-startup debian-emacs-flavor))
+++          ;; Now the normal site file...
+++          (load site-run-file t t nil)))
++ 
++     ;; Sites should not disable this.  Only individuals should disable
++     ;; the startup message.
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el trunk/lisp/vc-hooks.el
++--- /home/rlb/deb/emacs21/trunk/lisp/vc-hooks.el      2003-09-11 01:16:07.000000000 -0500
+++++ trunk/lisp/vc-hooks.el    2003-09-11 01:16:53.000000000 -0500
++@@ -54,8 +54,8 @@
++   :group 'vc)
++ 
++ (defcustom vc-path
++-  (if (file-directory-p "/usr/sccs")
++-      '("/usr/sccs")
+++  (if (file-directory-p "/usr/lib/cssc")
+++      '("/usr/lib/cssc")
++     nil)
++   "*List of extra directories to search for version control commands."
++   :type '(repeat directory)
+--- emacs-21.3.orig/debian/patches/fix-insecure-permissions-on-restore.dpatch
++++ emacs-21.3/debian/patches/fix-insecure-permissions-on-restore.dpatch
+@@ -0,0 +1,35 @@
++#! /bin/sh -e
++## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** (version) has been modified to indicate Debian modifications.
++## DP: Author: rlb
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -Narud emacs-21.3.orig/src/fileio.c emacs-21.3/src/fileio.c
++--- emacs-21.3.orig/src/fileio.c      2003-02-04 11:52:40.000000000 +0100
+++++ emacs-21.3/src/fileio.c   2004-10-10 07:14:11.891375352 +0200
++@@ -5438,6 +5438,8 @@
++       && stat (XSTRING (current_buffer->filename)->data, &st) >= 0)
++     /* But make sure we can overwrite it later!  */
++     auto_save_mode_bits = st.st_mode | 0600;
+++  else if (! NILP (current_buffer->filename))
+++    auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) | 0600;
++   else
++     auto_save_mode_bits = 0666;
++ 
+--- emacs-21.3.orig/debian/patches/fix-batch-mode-signal-handling.dpatch
++++ emacs-21.3/debian/patches/fix-batch-mode-signal-handling.dpatch
+@@ -0,0 +1,57 @@
++#! /bin/sh -e
++## fix-batch-mode-signal-handling.dpatch by  <rlb@defaultvalue.org>
++##
++## DP: ** A problem with emacs non-interactive signal handling has been fixed.
++## DP: An upstream patch from 2003-06-21 was backported to fix Bug#253887.
++## DP: Under certain conditions running "emacs --batch ... < /dev/null" would
++## DP: trigger a process exit via SIGIO or SIGHUP.  This has been fixed.
++## DP: Status: patch backported from upstream.
++
++if [ $# -lt 1 ]; then
++    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
++
++case "$1" in
++    -patch) patch -p1 ${patch_opts} < $0;;
++    -unpatch) patch -R -p1 ${patch_opts} < $0;;
++    *)
++        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
++        exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs/trunk-21/src/keyboard.c trunk-21/src/keyboard.c
++--- /home/rlb/deb/emacs/trunk-21/src/keyboard.c       2003-09-09 17:26:14.000000000 -0500
+++++ trunk-21/src/keyboard.c   2004-07-18 17:10:35.000000000 -0500
++@@ -6186,7 +6186,12 @@
++      /* ??? Is it really right to send the signal just to this process
++         rather than to the whole process group?
++         Perhaps on systems with FIONREAD Emacs is alone in its group.  */
++-     kill (getpid (), SIGHUP);
+++        {
+++          if (! noninteractive)
+++            kill (getpid (), SIGHUP);
+++          else
+++            n_to_read = 0;
+++        }
++       if (n_to_read == 0)
++      return 0;
++       if (n_to_read > sizeof cbuf)
++diff -urNad /home/rlb/deb/emacs/trunk-21/src/process.c trunk-21/src/process.c
++--- /home/rlb/deb/emacs/trunk-21/src/process.c        2003-09-09 17:28:35.000000000 -0500
+++++ trunk-21/src/process.c    2004-07-18 17:11:21.000000000 -0500
++@@ -2734,7 +2734,7 @@
++       but select says there is input.  */
++ 
++       if (XINT (read_kbd) && interrupt_input
++-       && keyboard_bit_set (&Available))
+++       && keyboard_bit_set (&Available) && ! noninteractive)
++      kill (getpid (), SIGIO);
++ #endif
++ 
+--- emacs-21.3.orig/debian/patches/browse-url.dpatch
++++ emacs-21.3/debian/patches/browse-url.dpatch
+@@ -0,0 +1,312 @@
++#! /bin/sh -e
++## 500-browse-url.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Added new browse-url.el code.
++## DP: Fixes support for mozilla, adds support for galeon, and defaults to
++## DP: free browsers when available, rather than just trying netscape.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++--- emacs21-21.2.orig/lisp/net/browse-url.el
+++++ emacs21-21.2/lisp/net/browse-url.el
++@@ -4,7 +4,7 @@
++ ;;   Free Software Foundation, Inc.
++ 
++ ;; Author: Denis Howe <dbh@doc.ic.ac.uk>
++-;; Maintainer: Dave Love <fx@gnu.org>
+++;; Maintainer: FSF
++ ;; Created: 03 Apr 1995
++ ;; Keywords: hypertext, hypermedia, mouse
++ 
++@@ -66,14 +66,6 @@
++ ;; control but which window DO you want to control and how do you
++ ;; discover its id?
++ 
++-;; If using XMosaic before version 2.5, check the definition of
++-;; browse-url-usr1-signal below.
++-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/remote-control.html>
++-
++-;; XMosaic version 2.5 introduced Common Client Interface allowing you
++-;; to control mosaic through Unix sockets.
++-;; <URL:http://www.ncsa.uiuc.edu/SDG/Software/XMosaic/CCI/cci-spec.html>
++-
++ ;; William M. Perry's excellent "w3" WWW browser for
++ ;; Emacs <URL:ftp://cs.indiana.edu/pub/elisp/w3/>
++ ;; has a function w3-follow-url-at-point, but that
++@@ -90,10 +82,6 @@
++ ;; Python see <url:http://www.python.org/>.  Grail support in
++ ;; browse-url.el written by Barry Warsaw <bwarsaw@python.org>.
++ 
++-;; MMM is a semi-free WWW browser implemented in Objective Caml, an
++-;; interesting impure functional programming language.  See
++-;; <URL:http://pauillac.inria.fr/%7Erouaix/mmm/>.
++-
++ ;; Lynx is now distributed by the FSF.  See also
++ ;; <URL:http://lynx.browser.org/>.
++ 
++@@ -226,8 +214,10 @@
++ (eval-when-compile (require 'thingatpt)
++                    (require 'term)
++                 (require 'dired)
+++                   (require 'executable)
++                 (require 'w3-auto nil t))
++ 
+++
++ (defgroup browse-url nil
++   "Use a web browser to look at a URL."
++   :prefix "browse-url-"
++@@ -238,7 +228,8 @@
++ (defcustom browse-url-browser-function
++   (if (memq system-type '(windows-nt ms-dos))
++       'browse-url-default-windows-browser
++-    'browse-url-netscape)
+++    'browse-url-default-browser)
+++
++   "*Function to display the current buffer in a WWW browser.
++ This is used by the `browse-url-at-point', `browse-url-at-mouse', and
++ `browse-url-of-file' commands.
++@@ -252,6 +243,8 @@
++        (function-item :tag "Emacs W3" :value  browse-url-w3)
++        (function-item :tag "W3 in another Emacs via `gnudoit'"
++                       :value  browse-url-w3-gnudoit)
+++       (function-item :tag "Mozilla" :value  browse-url-mozilla)
+++       (function-item :tag "Galeon" :value  browse-url-galeon)
++        (function-item :tag "Netscape" :value  browse-url-netscape)
++        (function-item :tag "Mosaic" :value  browse-url-mosaic)
++        (function-item :tag "Mosaic using CCI" :value  browse-url-cci)
++@@ -269,6 +262,8 @@
++                       :value browse-url-default-windows-browser)
++        (function-item :tag "GNOME invoking Mozilla"
++                       :value browse-url-gnome-moz)
+++       (function-item :tag "Default browser"
+++                      :value browse-url-default-browser)
++        (function :tag "Your own function")
++        (alist :tag "Regexp/function association list"
++               :key-type regexp :value-type function))
++@@ -300,6 +295,47 @@
++   :group 'browse-url)
++ 
++ ;;;###autoload
+++(defcustom browse-url-browser-display nil
+++  "*The X display for running the browser, if not same as Emacs'."
+++  :type '(choice string (const :tag "Default" nil))
+++  :group 'browse-url)
+++
+++(defcustom browse-url-mozilla-program "mozilla"
+++  "The name by which to invoke Mozilla."
+++  :type 'string
+++  :group 'browse-url)
+++
+++(defcustom browse-url-mozilla-arguments nil
+++  "A list of strings to pass to Mozilla as arguments."
+++  :type '(repeat (string :tag "Argument"))
+++  :group 'browse-url)
+++
+++(defcustom browse-url-mozilla-startup-arguments browse-url-mozilla-arguments
+++  "A list of strings to pass to Mozilla when it starts up.
+++Defaults to the value of `browse-url-mozilla-arguments' at the time
+++`browse-url' is loaded."
+++  :type '(repeat (string :tag "Argument"))
+++  :group 'browse-url)
+++
+++;;;###autoload
+++(defcustom browse-url-galeon-program "galeon"
+++  "The name by which to invoke Galeon."
+++  :type 'string
+++  :group 'browse-url)
+++
+++(defcustom browse-url-galeon-arguments nil
+++  "A list of strings to pass to Galeon as arguments."
+++  :type '(repeat (string :tag "Argument"))
+++  :group 'browse-url)
+++
+++(defcustom browse-url-galeon-startup-arguments browse-url-galeon-arguments
+++  "A list of strings to pass to Galeon when it starts up.
+++Defaults to the value of `browse-url-galeon-arguments' at the time
+++`browse-url' is loaded."
+++  :type '(repeat (string :tag "Argument"))
+++  :group 'browse-url)
+++
+++;;;###autoload
++ (defcustom browse-url-new-window-flag nil
++   "*If non-nil, always open a new browser window with appropriate browsers.
++ Passing an interactive argument to \\[browse-url], or specific browser
++@@ -308,12 +344,6 @@
++   :type 'boolean
++   :group 'browse-url)
++ 
++-;;;###autoload
++-(defcustom browse-url-netscape-display nil
++-  "*The X display for running Netscape, if not same as Emacs'."
++-  :type '(choice string (const :tag "Default" nil))
++-  :group 'browse-url)
++-
++ (defcustom browse-url-mosaic-program "xmosaic"
++   "The name by which to invoke Mosaic (or mMosaic)."
++   :type 'string
++@@ -681,11 +711,11 @@
++ ;; --- Netscape ---
++ 
++ (defun browse-url-process-environment ()
++-  "Set DISPLAY in the environment to the X display Netscape is running on.
++-This is either the value of variable `browse-url-netscape-display' if
+++  "Set DISPLAY in the environment to the X display the browser will use.
+++This is either the value of variable `browse-url-browser-display' if
++ non-nil, or the same display as Emacs if different from the current
++ environment, otherwise just use the current environment."
++-  (let ((display (or browse-url-netscape-display (browse-url-emacs-display))))
+++  (let ((display (or browse-url-browser-display (browse-url-emacs-display))))
++     (if display
++      (cons (concat "DISPLAY=" display) process-environment)
++       process-environment)))
++@@ -701,6 +731,35 @@
++          display)))
++ 
++ ;;;###autoload
+++(defun browse-url-default-browser (url &rest args)
+++  "Find a suitable browser and ask it to load URL.
+++Default to the URL around or before point.
+++
+++When called interactively, if variable `browse-url-new-window-flag' is
+++non-nil, load the document in a new window, if possible, otherwise use
+++a random existing one.  A non-nil interactive prefix argument reverses
+++the effect of `browse-url-new-window-flag'.
+++
+++When called non-interactively, optional second argument NEW-WINDOW is
+++used instead of `browse-url-new-window-flag'.
+++
+++The order attempted is gnome-moz-remote, Mozilla, Galeon, Netscape,
+++Mosaic, IXI Mosaic, Lynx in an xterm, MMM, Konqueror, and then W3."
+++  (apply
+++    (cond
+++     ((executable-find "gnome-moz-remote") 'browse-url-gnome-moz)
+++     ((executable-find browse-url-mozilla-program) 'browse-url-mozilla)
+++     ((executable-find browse-url-galeon-program) 'browse-url-galeon)
+++     ((executable-find browse-url-kde-program) 'browse-url-kde)
+++     ((executable-find browse-url-netscape-program) 'browse-url-netscape)
+++     ((executable-find browse-url-mosaic-program) 'browse-url-mosaic)
+++     ((executable-find "tellw3b") 'browse-url-iximosaic)
+++     ((executable-find browse-url-xterm-program) 'browse-url-lynx-xterm)
+++     ((executable-find "mmm") 'browse-url-mmm)
+++     (t 'browse-url-w3))
+++     url args))
+++
+++;;;###autoload
++ (defun browse-url-netscape (url &optional new-window)
++   "Ask the Netscape WWW browser to load URL.
++ Default to the URL around or before point.  The strings in variable
++@@ -767,6 +826,50 @@
++            (append browse-url-netscape-arguments
++                    (list "-remote" command)))))
++ 
+++;;;###autoload
+++(defun browse-url-mozilla (url &optional new-window)
+++  "Ask the Mozilla WWW browser to load URL.
+++Default to the URL around or before point.  The strings in variable
+++`browse-url-mozilla-arguments' are also passed to Mozilla.
+++
+++When called interactively, if variable `browse-url-new-window-flag' is
+++non-nil, load the document in a new Mozilla window, otherwise use a
+++random existing one.  A non-nil interactive prefix argument reverses
+++the effect of `browse-url-new-window-flag'.
+++
+++When called non-interactively, optional second argument NEW-WINDOW is
+++used instead of `browse-url-new-window-flag'."
+++  (interactive (browse-url-interactive-arg "URL: "))
+++  ;; URL encode any `confusing' characters in the URL.  This needs to
+++  ;; include at least commas; presumably also close parens.
+++  (while (string-match "[,)]" url)
+++    (setq url (replace-match
+++            (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
+++  (let* ((process-environment (browse-url-process-environment))
+++         (process (apply 'start-process
+++                      (concat "mozilla " url) nil
+++                      browse-url-mozilla-program
+++                      (append
+++                       browse-url-mozilla-arguments
+++                       (list "-remote"
+++                             (concat "openurl("
+++                                     url
+++                                     (if new-window ",new-window" "")
+++                             ")"))))))
+++    (set-process-sentinel process
+++                       `(lambda (process change)
+++                          (browse-url-mozilla-sentinel process ,url)))))
+++
+++(defun browse-url-mozilla-sentinel (process url)
+++  "Handle a change to the process communicating with Mozilla."
+++  (or (eq (process-exit-status process) 0)
+++      (let* ((process-environment (browse-url-process-environment)))
+++     ;; Mozilla is not running - start it
+++     (message "Starting Mozilla...")
+++     (apply 'start-process (concat "mozilla " url) nil
+++            browse-url-mozilla-program
+++            (append browse-url-mozilla-startup-arguments (list url))))))
+++
++ ;; GNOME means of invoking either Mozilla or Netrape.
++ 
++ (defcustom browse-url-gnome-moz-arguments '()
++@@ -776,6 +880,48 @@
++   :group 'browse-url)
++ 
++ ;;;###autoload
+++(defun browse-url-galeon (url &optional new-window)
+++  "Ask the Galeon WWW browser to load URL.
+++Default to the URL around or before point.  The strings in variable
+++`browse-url-galeon-arguments' are also passed to Galeon.
+++
+++When called interactively, if variable `browse-url-new-window-flag' is
+++non-nil, load the document in a new Galeon window, otherwise use a
+++random existing one.  A non-nil interactive prefix argument reverses
+++the effect of `browse-url-new-window-flag'.
+++
+++When called non-interactively, optional second argument NEW-WINDOW is
+++used instead of `browse-url-new-window-flag'."
+++  (interactive (browse-url-interactive-arg "URL: "))
+++  ;; URL encode any `confusing' characters in the URL.  This needs to
+++  ;; include at least commas; presumably also close parens.
+++  (while (string-match "[,)]" url)
+++    (setq url (replace-match
+++            (format "%%%x" (string-to-char (match-string 0 url))) t t url)))
+++  (let* ((process-environment (browse-url-process-environment))
+++         (process (apply 'start-process
+++                      (concat "galeon " url) nil
+++                      browse-url-galeon-program
+++                      (append
+++                       browse-url-galeon-arguments
+++                          (if new-window '("-w" "--noraise")
+++                           '("-x"))
+++                          (list url)))))
+++    (set-process-sentinel process
+++                       `(lambda (process change)
+++                          (browse-url-galeon-sentinel process ,url)))))
+++
+++(defun browse-url-galeon-sentinel (process url)
+++  "Handle a change to the process communicating with Galeon."
+++  (or (eq (process-exit-status process) 0)
+++      (let* ((process-environment (browse-url-process-environment)))
+++     ;; Galeon is not running - start it
+++     (message "Starting Galeon...")
+++     (apply 'start-process (concat "galeon " url) nil
+++            browse-url-galeon-program
+++            (append browse-url-galeon-startup-arguments (list url))))))
+++
+++;;;###autoload
++ (defun browse-url-gnome-moz (url &optional new-window)
++   "Ask Mozilla/Netscape to load URL via the GNOME program `gnome-moz-remote'.
++ Default to the URL around or before point.  The strings in variable
+--- emacs-21.3.orig/debian/patches/battery-acpi-support.dpatch
++++ emacs-21.3/debian/patches/battery-acpi-support.dpatch
+@@ -0,0 +1,187 @@
++#!/bin/sh -e
++## battery-acpi-support.dpatch by Jerome Marant <jerome@debian.org>
++##
++## DP: ** Support for ACPI in battery.el has be added
++## DP: Status: appears to be incorporated upstream
++## DP: Provided by: Mario Lang <mlang@debian.org>
++## DP: Date: Fri, 26 Sep 2003 15:30:43 +0200
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el emacs/lisp/battery.el
++--- /home/jerome/pkg/emacs21/svn/emacs/lisp/battery.el        2003-09-26 19:57:43.000000000 +0200
+++++ emacs/lisp/battery.el     2003-09-28 17:19:22.000000000 +0200
++@@ -42,7 +42,10 @@
++ (defcustom battery-status-function
++   (cond ((and (eq system-type 'gnu/linux)
++            (file-readable-p "/proc/apm"))
++-      'battery-linux-proc-apm))
+++      'battery-linux-proc-apm)
+++     ((and (eq system-type 'gnu/linux)
+++           (file-directory-p "/proc/acpi/battery"))
+++      'battery-linux-proc-acpi))
++   "*Function for getting battery status information.
++ The function has to return an alist of conversion definitions.
++ Its cons cells are of the form
++@@ -56,7 +59,9 @@
++ 
++ (defcustom battery-echo-area-format
++   (cond ((eq battery-status-function 'battery-linux-proc-apm)
++-      "Power %L, battery %B (%p%% load, remaining time %t)"))
+++      "Power %L, battery %B (%p%% load, remaining time %t)")
+++     ((eq battery-status-function 'battery-linux-proc-acpi)
+++      "Power %L, battery %B at %r (%p%% load, remaining time %t)"))
++   "*Control string formatting the string to display in the echo area.
++ Ordinary characters in the control string are printed as-is, while
++ conversion specifications introduced by a `%' character in the control
++@@ -70,7 +75,9 @@
++ 
++ (defcustom battery-mode-line-format
++   (cond ((eq battery-status-function 'battery-linux-proc-apm)
++-      " [%b%p%%]"))
+++      " [%b%p%%]")
+++     ((eq battery-status-function 'battery-linux-proc-acpi)
+++      " [%b%p%%,%d°C]"))
++   "*Control string formatting the string to display in the mode line.
++ Ordinary characters in the control string are printed as-is, while
++ conversion specifications introduced by a `%' character in the control
++@@ -217,6 +224,122 @@
++        (cons ?h (or (and hours (number-to-string hours)) "N/A"))
++        (cons ?t (or remaining-time "N/A")))))
++ 
+++
+++;;; `/proc/acpi/' interface for Linux.
+++
+++(defun battery-linux-proc-acpi ()
+++  "Get ACPI status information from Linux kernel.
+++This function works only with the new `/proc/acpi/' format introduced
+++in Linux version 2.4.20 and 2.6.0.
+++
+++The following %-sequences are provided:
+++%c Current capacity (mAh)
+++%B Battery status (verbose)
+++%b Battery status, empty means high, `-' means low,
+++   `!' means critical, and `+' means charging
+++%d Temperature (in degrees Celsius)
+++%L AC line status (verbose)
+++%p battery load percentage
+++%m Remaining time in minutes
+++%h Remaining time in hours
+++%t Remaining time in the form `h:min'"
+++  (let (capacity design-capacity rate rate-type charging-state warn low
+++              minutes hours)
+++    ;; ACPI provides information about each battery present in the system in
+++    ;; a separate subdirectory.  We are going to merge the available
+++    ;; information together since displaying for a variable amount of
+++    ;; batteries seems overkill for format-strings.
+++    (mapc
+++     (lambda (dir)
+++       (with-temp-buffer
+++      (battery-insert-file-contents (expand-file-name "state" dir))
+++      (when (re-search-forward "present: +yes$" nil t)
+++        (and (re-search-forward "charging state: +\\(.*\\)$" nil t)
+++             (or (null charging-state) (string= charging-state
+++                                                "unknown"))
+++             ;; On most multi-battery systems, most of the time only one
+++             ;; battery is "charging"/"discharging", the others are
+++             ;; "unknown".
+++             (setq charging-state (match-string 1)))
+++        (when (re-search-forward "present rate: +\\([0-9]+\\) \\(m[AW]\\)$"
+++                                 nil t)
+++          (setq rate (+ (or rate 0) (string-to-int (match-string 1)))
+++                rate-type (or (and rate-type
+++                                   (if (string= rate-type (match-string 2))
+++                                       rate-type
+++                                     (error
+++                                      "Inconsistent rate types (%s vs. %s)"
+++                                      rate-type (match-string 2))))
+++                              (match-string 2))))
+++        (when (re-search-forward "remaining capacity: +\\([0-9]+\\) m[AW]h$"
+++                                 nil t)
+++          (setq capacity
+++                (+ (or capacity 0) (string-to-int (match-string 1))))))
+++      (goto-char (point-max))
+++      (battery-insert-file-contents (expand-file-name "info" dir))
+++      (when (re-search-forward "present: +yes$" nil t)
+++        (when (re-search-forward "design capacity: +\\([0-9]+\\) m[AW]h$"
+++                                 nil t)
+++          (setq design-capacity (+ (or design-capacity 0)
+++                                   (string-to-int (match-string 1)))))
+++        (when (re-search-forward "design capacity warning: +\\([0-9]+\\) m[AW]h$"
+++                                 nil t)
+++          (setq warn (+ (or warn 0) (string-to-int (match-string 1)))))
+++        (when (re-search-forward "design capacity low: +\\([0-9]+\\) m[AW]h$"
+++                                 nil t)
+++          (setq low (+ (or low 0)
+++                       (string-to-int (match-string 1))))))))
+++     (directory-files "/proc/acpi/battery/" t "BAT"))
+++    (and capacity rate
+++      (setq minutes (if (zerop rate) 0
+++                      (floor (* (/ (float (if (string= charging-state
+++                                                       "charging")
+++                                              (- design-capacity capacity)
+++                                            capacity)) rate) 60)))
+++            hours (/ minutes 60)))
+++    (list (cons ?c (or (and capacity (number-to-string capacity)) "N/A"))
+++       (cons ?L (or (when (file-exists-p "/proc/acpi/ac_adapter/AC/state")
+++                      (with-temp-buffer
+++                        (battery-insert-file-contents
+++                         "/proc/acpi/ac_adapter/AC/state")
+++                        (when (re-search-forward "state: +\\(.*\\)$" nil t)
+++                          (match-string 1))))
+++                    "N/A"))
+++       (cons ?d (or (when (file-exists-p
+++                           "/proc/acpi/thermal_zone/THRM/temperature")
+++                      (with-temp-buffer
+++                        (battery-insert-file-contents
+++                         "/proc/acpi/thermal_zone/THRM/temperature")
+++                        (when (re-search-forward
+++                               "temperature: +\\([0-9]+\\) C$" nil t)
+++                          (match-string 1))))
+++                    (when (file-exists-p
+++                           "/proc/acpi/thermal_zone/THM/temperature")
+++                      (with-temp-buffer
+++                        (battery-insert-file-contents
+++                         "/proc/acpi/thermal_zone/THM/temperature")
+++                        (when (re-search-forward
+++                               "temperature: +\\([0-9]+\\) C$" nil t)
+++                          (match-string 1))))
+++                    "N/A"))
+++       (cons ?r (or (and rate (concat (number-to-string rate) " "
+++                                      rate-type)) "N/A"))
+++       (cons ?B (or charging-state "N/A"))
+++       (cons ?b (or (and (string= charging-state "charging") "+")
+++                    (and low (< capacity low) "!")
+++                    (and warn (< capacity warn) "-")
+++                    ""))
+++       (cons ?h (or (and hours (number-to-string hours)) "N/A"))
+++       (cons ?m (or (and minutes (number-to-string minutes)) "N/A"))
+++       (cons ?t (or (and minutes
+++                         (format "%d:%02d" hours (- minutes (* 60 hours))))
+++                    "N/A"))
+++       (cons ?p (or (and design-capacity capacity
+++                         (number-to-string
+++                          (floor (/ capacity
+++                                    (/ (float design-capacity) 100)))))
+++                    "N/A")))))
+++
++ \f
++ ;;; Private functions.
++ 
+--- emacs-21.3.orig/debian/patches/arch-mipsel.dpatch
++++ emacs-21.3/debian/patches/arch-mipsel.dpatch
+@@ -0,0 +1,50 @@
++#! /bin/sh -e
++## 500-arch-mipsel.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Support for the mipsel architecture has been added.
++## DP: Status: appears to be incorporated upstream
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
++--- /home/rlb/deb/emacs21/trunk/configure.in  2003-09-11 01:12:30.000000000 -0500
+++++ trunk/configure.in        2003-09-11 01:12:32.000000000 -0500
++@@ -1051,6 +1051,11 @@
++     machine=mips opsys=gnu-linux
++   ;;
++ 
+++  ## Mipsel (little endian) Linux-based GNU system
+++  mipsel-*-linux-gnu* )
+++    machine=mipsel opsys=gnu-linux
+++  ;;
+++
++   ## UXP/DS
++   sparc-fujitsu-sysv4* )
++     machine=sparc opsys=uxpds
++diff -urNad /home/rlb/deb/emacs21/trunk/src/m/mipsel.h trunk/src/m/mipsel.h
++--- /home/rlb/deb/emacs21/trunk/src/m/mipsel.h        1969-12-31 18:00:00.000000000 -0600
+++++ trunk/src/m/mipsel.h      2003-09-11 01:12:32.000000000 -0500
++@@ -0,0 +1,8 @@
+++/* machine description file for Mipsel (mips little endian).  */
+++
+++#include "mips.h"
+++
+++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
+++   is the most significant byte.  */
+++
+++#undef WORDS_BIG_ENDIAN
+--- emacs-21.3.orig/debian/patches/scroll-margin.dpatch
++++ emacs-21.3/debian/patches/scroll-margin.dpatch
+@@ -0,0 +1,44 @@
++#!/bin/sh -e
++## scroll-margin.dpatch by Jerome Marant <jerome@debian.org>
++##
++## DP: ** Prevents Emacs to hang when a non-0 scroll-margin
++## DP: has been set.    
++## DP: Status: has been incorporated upstream
++## DP: Date: Sat, 18 Oct 2003 14:53:26 +0200
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/src/window.c emacs21/src/window.c
++--- /home/jerome/pkg/emacs21/svn/emacs21/src/window.c 2003-10-01 19:59:18.000000000 +0200
+++++ emacs21/src/window.c      2003-10-18 12:21:17.000000000 +0200
++@@ -4124,7 +4124,12 @@
++           in the scroll margin at the top.  */
++        move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
++        while (it.current_y < this_scroll_margin)
++-         move_it_by_lines (&it, 1, 1);
+++         {
+++           int prev = it.current_y;
+++           move_it_by_lines (&it, 1, 1);
+++           if (prev == it.current_y)
+++             break;
+++         }
++        SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
++      }
++       else if (n < 0)
+--- emacs-21.3.orig/debian/patches/movemail-mailspool.dpatch
++++ emacs-21.3/debian/patches/movemail-mailspool.dpatch
+@@ -0,0 +1,411 @@
++#! /bin/sh -e
++## 500-movemail-mailspool.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** The detection of the program "mail" has been enhanced.
++## DP: Author: rlb
++## DP: 
++## DP: We have added CONF_MAIL_PROGRAM_NAME to configure.in and use it in
++## DP: fakemail.c.  Either via this variable, or via a #define in an arch
++## DP: specific file, we now insist that this var be defined, and abort
++## DP: compilation otherwise.  We use #error, which is probably not
++## DP: portable, so we need a better solution long term.  This fix
++## DP: repairs a nasty bug where on sparc-linux-gnu at least,
++## DP: MAIL_PROGRAM_NAME pointed to /bin/mail, which didn't exist, and
++## DP: fakemail failed silently, losing mail.  In the long run, though,
++## DP: fakemail should be fixed to find the mail program at runtime, and
++## DP: do something smarter if/when detection fails.
++## DP: 
++## DP: ** The location of the mail spool has been centralized.
++## DP: Author: rlb
++## DP: 
++## DP: [ This modification is currently only available in the Debian source,
++## DP:   but the upstream authors and I are in the process of working out the
++## DP:   appropriate upstream patch.
++## DP: 
++## DP:   Please do *NOT* use mail-spool-directory in any public code until
++## DP:   and unless this variable makes it into the upstream source. ]
++## DP: 
++## DP: Determination of the location of the mail spool has now been
++## DP: centralized.  There is a new lisp-level variable mail-spool-directory
++## DP: that should always contain the location of the mail spool (normally a
++## DP: directory like /usr/spool/mail).
++## DP: 
++## DP: There is a related configure option --with-mail-spool-directory that
++## DP: allows you to override the default mail spool location detected, if
++## DP: any, at configure time.  The proper setting for a particular
++## DP: architecture may also be set in src/s/*.h with
++## DP: SYSTEM_MAIL_SPOOL_DIRECTORY, but note that --with-mail-spool-directory
++## DP: always takes precedence.
++## DP: 
++## DP: At the C level, the mail spool directory is available from
++## DP: lib-src/mailspool.h which provides a MAIL_SPOOL_DIRECTORY definition.
++## DP: 
++## DP: nnmail, rmail, and movemail have all been modified to respect this new
++## DP: arrangement.
++## DP: 
++## DP: ** Mailbox locking improved and brought into line with Debian policy.
++## DP: Author: rlb
++## DP: 
++## DP: [ This modification is currently only available in the Debian source,
++## DP:   but the upstream authors and I are in the process of working out the
++## DP:   appropriate upstream patch. ]
++## DP: 
++## DP: Configure now looks for liblockfile before libmail (liblockfile is a
++## DP: free software replacement for libmail).  Either library, if found, is
++## DP: propagated to the movemail (lib-src) Makefile through the
++## DP: MOVEMAIL_LOCK_LIBS variable.
++## DP: 
++## DP: Also MAIL_USE_FLOCK is disabled since it is wrong for a Debian system.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
++--- /home/rlb/deb/emacs21/trunk/configure.in  2003-09-11 01:15:10.000000000 -0500
+++++ trunk/configure.in        2003-09-11 01:15:14.000000000 -0500
++@@ -59,6 +59,9 @@
++ AC_ARG_WITH(hesiod,
++ [  --with-hesiod           support Hesiod to get the POP server host],
++ [AC_DEFINE(HESIOD)])
+++AC_ARG_WITH(mail-spool-directory,
+++[  --with-mail-spool-directory=DIR   system mail spool is DIR],
+++[AC_DEFINE_UNQUOTED(USE_MAIL_SPOOL_DIRECTORY,"${withval}")])
++ dnl This should be the last --with option, because --with-x is
++ dnl added later on when we find the path of X, and it's best to
++ dnl keep them together visually.
++@@ -1963,29 +1966,62 @@
++ # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
++ AC_CHECK_LIB(m, sqrt)
++ 
++-# Check for mail-locking functions in a "mail" library
++-AC_CHECK_LIB(mail, maillock)
++-dnl Debian, at least:
++-dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)])
++-AC_CHECK_LIB(lockfile, maillock)
++-# If we have the shared liblockfile, assume we must use it for mail
++-# locking (e.g. Debian).  If we couldn't link against liblockfile
++-# (no liblockfile.a installed), ensure that we don't need to.
++-if test "$ac_cv_lib_lockfile_maillock" = no; then
++-  dnl This works for files generally, not just executables.
++-  dnl Should we look elsewhere for it?  Maybe examine /etc/ld.so.conf?
++-  AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no,
++-                /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH)
++-  if test $ac_cv_prog_liblockfile = yes; then
++-    AC_MSG_ERROR([Shared liblockfile found but can't link against it.
++-This probably means that movemail could lose mail.
++-There may be a \`development' package to install containing liblockfile.])
++-  else AC_DEFINE(LIBMAIL, -llockfile)
++-  fi
++-  else :
+++# Check for mail-locking functions in a "mail" library Check for
+++# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
+++# for touchlock because we don't want to have to put the lock libs
+++# into LIBS and AC_CHECK_FUNCS would require that.
+++
+++AC_CHECK_LIB(lockfile, maillock,
+++  [ AC_DEFINE(HAVE_LIBMAIL)
+++    MOVEMAIL_LOCK_LIBS="-llockfile"
+++    AC_CHECK_LIB(lockfile, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
+++    AC_CHECK_HEADERS(maillock.h)],
+++    [ AC_CHECK_LIB(mail, maillock,
+++          [ AC_DEFINE(HAVE_LIBMAIL)
+++               MOVEMAIL_LOCK_LIBS="-lmail"
+++               AC_CHECK_LIB(mail, touchlock, AC_DEFINE(HAVE_TOUCHLOCK))
+++            AC_CHECK_FUNCS(touchlock)
+++            AC_CHECK_HEADERS(maillock.h)])])
+++
+++
+++# Tests borrowed (and slightly rearranged) from old paths.el
+++# rmail-spool-directory tests.  They should be in the order most
+++# likely to get the right answer.  You can always override them on the
+++# system level in src/s/* and on a one-shot basis with
+++# --with-mail-spool-directory.
+++
+++AC_MSG_CHECKING(for mail spool location)
+++if test "${with_mail_spool+set}" = set; then
+++  AC_MSG_RESULT(${with_mail_spool})
+++elif test -d /var/mail/; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/mail")
+++  AC_MSG_RESULT("/var/mail")
+++elif test -d /var/spool/mail/; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/var/spool/mail")
+++  AC_MSG_RESULT("/var/spool/mail")
+++elif test -d /usr/mail/; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/mail")
+++  AC_MSG_RESULT("/usr/mail")
+++elif test -d /usr/spool/mail/; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_SPOOL_DIRECTORY, "/usr/spool/mail")
+++  AC_MSG_RESULT("/usr/spool/mail")
+++else
+++  AC_MSG_RESULT(not found)
+++fi
+++
+++# Find the location of "mail".  This is critical for fakemail at
+++# least.  before fakemail would silently fail if this was wrong, so
+++# insist on finding it.
+++AC_MSG_CHECKING(for mail binary)
+++if test -x /bin/mail; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/bin/mail")
+++  AC_MSG_RESULT("/bin/mail")
+++elif test -x /usr/bin/mail; then
+++  AC_DEFINE_UNQUOTED(CONF_MAIL_PROGRAM_NAME, "/usr/bin/mail")
+++  AC_MSG_RESULT("/usr/bin/mail")
+++else
+++  AC_MSG_ERROR(could not find mail binary)
++ fi
++-AC_CHECK_FUNCS(touchlock)
++-AC_CHECK_HEADERS(maillock.h)
++ 
++ AC_CHECK_FUNCS(gethostname getdomainname dup2 \
++ rename closedir mkdir rmdir sysinfo \
++@@ -2234,6 +2270,7 @@
++ AC_SUBST(machfile)
++ AC_SUBST(opsysfile)
++ AC_SUBST(GETLOADAVG_LIBS)
+++AC_SUBST(MOVEMAIL_LOCK_LIBS)
++ 
++ AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION,  "${canonical}")
++ AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}")
++diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in trunk/lib-src/Makefile.in
++--- /home/rlb/deb/emacs21/trunk/lib-src/Makefile.in   2003-09-11 01:14:26.000000000 -0500
+++++ trunk/lib-src/Makefile.in 2003-09-11 01:15:13.000000000 -0500
++@@ -222,11 +222,10 @@
++ # endif
++ #endif
++ 
++-LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) $(HESIODLIB)
+++MOVEMAIL_LOCK_LIBS=@MOVEMAIL_LOCK_LIBS@
++ 
++-#ifdef HAVE_LIBMAIL
++-LIBS_MAIL=-lmail
++-#endif
+++LIBS_MOVE=$(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) $(COM_ERRLIB) \
+++  $(HESIODLIB) $(MOVEMAIL_LOCK_LIBS)
++ 
++ LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_STANDARD_LIBSRC
++ 
++diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c trunk/lib-src/fakemail.c
++--- /home/rlb/deb/emacs21/trunk/lib-src/fakemail.c    2003-09-11 01:14:26.000000000 -0500
+++++ trunk/lib-src/fakemail.c  2003-09-11 01:15:13.000000000 -0500
++@@ -126,7 +126,11 @@
++ #define INITIAL_LINE_SIZE 200
++ 
++ #ifndef MAIL_PROGRAM_NAME
++-#define MAIL_PROGRAM_NAME "/bin/mail"
+++#ifdef CONF_MAIL_PROGRAM_NAME
+++#define MAIL_PROGRAM_NAME CONF_MAIL_PROGRAM_NAME
+++#else
+++#error "MAIL_PROGRAM_NAME must be defined"
+++#endif
++ #endif
++ 
++ static char *my_name;
++diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h trunk/lib-src/mailspool.h
++--- /home/rlb/deb/emacs21/trunk/lib-src/mailspool.h   1969-12-31 18:00:00.000000000 -0600
+++++ trunk/lib-src/mailspool.h 2003-09-11 01:15:14.000000000 -0500
++@@ -0,0 +1,46 @@
+++/* mailspool.h -- record the location of the mail spool in MAIL_SPOOL_DIRECTORY
+++   Copyright (C) 1986, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
+++
+++This file is part of GNU Emacs.
+++
+++GNU Emacs is free software; you can redistribute it and/or modify
+++it under the terms of the GNU General Public License as published by
+++the Free Software Foundation; either version 2, or (at your option)
+++any later version.
+++
+++GNU Emacs is distributed in the hope that it will be useful,
+++but WITHOUT ANY WARRANTY; without even the implied warranty of
+++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+++GNU General Public License for more details.
+++
+++You should have received a copy of the GNU General Public License
+++along with GNU Emacs; see the file COPYING.  If not, write to
+++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+++Boston, MA 02111-1307, USA.  */
+++
+++#ifndef _MAILSPOOL_H
+++#define _MAILSPOOL_H 1
+++
+++#ifdef       __cplusplus
+++extern "C" {
+++#endif
+++
+++#define NO_SHORTNAMES   /* Tell config not to load remap.h */
+++#include <../src/config.h>
+++  
+++/* Final determination of mail spool location. */
+++#ifdef USE_MAIL_SPOOL_DIRECTORY
+++#define MAIL_SPOOL_DIRECTORY USE_MAIL_SPOOL_DIRECTORY
+++#elif defined(SYSTEM_MAIL_SPOOL_DIRECTORY)
+++#define MAIL_SPOOL_DIRECTORY SYSTEM_MAIL_SPOOL_DIRECTORY
+++#elif defined(MAILDIR)
+++#define MAIL_SPOOL_DIRECTORY MAILDIR
+++#elif defined(CONF_MAIL_SPOOL_DIRECTORY)
+++#define MAIL_SPOOL_DIRECTORY CONF_MAIL_SPOOL_DIRECTORY
+++#endif
+++
+++#ifdef       __cplusplus
+++}
+++#endif
+++
+++#endif /* mailspool.h */
++diff -urNad /home/rlb/deb/emacs21/trunk/lib-src/movemail.c trunk/lib-src/movemail.c
++--- /home/rlb/deb/emacs21/trunk/lib-src/movemail.c    2003-09-11 01:14:26.000000000 -0500
+++++ trunk/lib-src/movemail.c  2003-09-11 01:15:14.000000000 -0500
++@@ -54,6 +54,8 @@
++  *
++  */
++ 
+++#include "mailspool.h"
+++
++ #define NO_SHORTNAMES   /* Tell config not to load remap.h */
++ #include <config.h>
++ #include <sys/types.h>
++@@ -129,15 +131,12 @@
++ #endif
++ 
++ #if !defined (MAIL_USE_SYSTEM_LOCK) && !defined (MAIL_USE_MMDF) && \
++-     defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H)
+++     defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H) && \
+++     defined (MAIL_SPOOL_DIRECTORY)
++ #include <maillock.h>
++-/* We can't use maillock unless we know what directory system mail
++-   files appear in. */
++-#ifdef MAILDIR
++ #define MAIL_USE_MAILLOCK
++ static char *mail_spool_name ();
++ #endif
++-#endif
++ 
++ #ifndef errno
++ extern int errno;
++@@ -575,7 +574,7 @@
++ 
++   fname++;
++ 
++-  if (stat (MAILDIR, &stat1) < 0)
+++  if (stat (MAIL_SPOOL_DIRECTORY, &stat1) < 0)
++     return NULL;
++ 
++   indir = (char *) xmalloc (fname - inname + 1);
++diff -urNad /home/rlb/deb/emacs21/trunk/lisp/paths.el trunk/lisp/paths.el
++--- /home/rlb/deb/emacs21/trunk/lisp/paths.el 2003-09-11 01:14:26.000000000 -0500
+++++ trunk/lisp/paths.el       2003-09-11 01:15:13.000000000 -0500
++@@ -140,24 +140,7 @@
++   :group 'rmail
++   :version "21.1")
++ 
++-(defconst rmail-spool-directory
++-  (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
++-      "/usr/spool/mail/")
++-     ;; On The Bull DPX/2 /usr/spool/mail is used although 
++-     ;; it is usg-unix-v.
++-     ((string-match "^m68k-bull-sysv3" system-configuration)
++-      "/usr/spool/mail/")
++-     ;; SVR4 and recent BSD are said to use this.
++-     ;; Rather than trying to know precisely which systems use it,
++-     ;; let's assume this dir is never used for anything else.
++-     ((file-exists-p "/var/mail")
++-      "/var/mail/")
++-     ;; Many GNU/Linux systems use this name.
++-     ((file-exists-p "/var/spool/mail")
++-      "/var/spool/mail/")
++-     ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
++-      "/usr/mail/")
++-     (t "/usr/spool/mail/"))
+++(defconst rmail-spool-directory mail-spool-directory
++   "Name of directory used by system mailer for delivering new mail.
++ Its name should end with a slash.")
++ 
++diff -urNad /home/rlb/deb/emacs21/trunk/src/callproc.c trunk/src/callproc.c
++--- /home/rlb/deb/emacs21/trunk/src/callproc.c        2003-09-11 01:14:26.000000000 -0500
+++++ trunk/src/callproc.c      2003-09-11 01:15:13.000000000 -0500
++@@ -25,6 +25,8 @@
++ #include <errno.h>
++ #include <stdio.h>
++ 
+++#include "../lib-src/mailspool.h"
+++
++ #ifndef USE_CRT_DLL
++ extern int errno;
++ #endif
++@@ -113,6 +115,8 @@
++ 
++ Lisp_Object Vprocess_environment;
++ 
+++Lisp_Object Vmail_spool_directory;
+++
++ #ifdef DOS_NT
++ Lisp_Object Qbuffer_file_type;
++ #endif /* DOS_NT */
++@@ -1630,6 +1634,19 @@
++ The environment which Emacs inherits is placed in this variable\n\
++ when Emacs starts.");
++ 
+++  DEFVAR_LISP ("mail-spool-directory", &Vmail_spool_directory,
+++    "Location of the system mail spool.\n\
+++This is normally a directory like \"usr/spool/mail\".  This is\n\
+++currently a Debian extension.  Please do NOT use this in public code\n\
+++until/unless it makes it upstream.");
+++#ifdef MAIL_SPOOL_DIRECTORY
+++  Vmail_spool_directory =
+++    Ffile_name_as_directory (build_string (MAIL_SPOOL_DIRECTORY));
+++#else
+++  Vmail_spool_directory = Qnil;
+++#endif
+++
+++
++ #ifndef VMS
++   defsubr (&Scall_process);
++   defsubr (&Sgetenv_internal);
++diff -urNad /home/rlb/deb/emacs21/trunk/src/config.in trunk/src/config.in
++--- /home/rlb/deb/emacs21/trunk/src/config.in 2003-09-11 01:15:10.000000000 -0500
+++++ trunk/src/config.in       2003-09-11 01:15:13.000000000 -0500
++@@ -222,6 +222,13 @@
++ #undef HAVE_MAILLOCK_H
++ #undef HAVE_TOUCHLOCK
++ 
+++/* Mail spool information from the configure process.  See lib-src/mailspool.h */
+++#undef USE_MAIL_SPOOL_DIRECTORY
+++#undef CONF_MAIL_SPOOL_DIRECTORY
+++
+++/* Mail spool information from the configure process.  See lib-src/fakemail.c */
+++#undef CONF_MAIL_PROGRAM_NAME
+++
++ #undef HAVE_ALLOCA_H
++ 
++ #undef HAVE_DEV_PTMX
++diff -urNad /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h trunk/src/s/gnu-linux.h
++--- /home/rlb/deb/emacs21/trunk/src/s/gnu-linux.h     2003-09-11 01:14:26.000000000 -0500
+++++ trunk/src/s/gnu-linux.h   2003-09-11 01:15:13.000000000 -0500
++@@ -130,7 +130,14 @@
++    programs.  I assume that most people are using newer mailers that
++    have heard of flock.  Change this if you need to. */
++ 
++-#define MAIL_USE_FLOCK
+++/* On Debian/GNU/Linux systems, configure gets the right answers, and
+++   that means *NOT* using flock.  Using flock is guaranteed to be the
+++   wrong thing. See Debian Policy for details. */
+++#ifdef DEBIAN
+++#  undef MAIL_USE_FLOCK
+++#else
+++#  define MAIL_USE_FLOCK
+++#endif
++ 
++ /* Define CLASH_DETECTION if you want lock files to be written
++    so that Emacs can tell instantly when you try to modify
+--- emacs-21.3.orig/debian/patches/emacsclient-alternate-editor.dpatch
++++ emacs-21.3/debian/patches/emacsclient-alternate-editor.dpatch
+@@ -0,0 +1,49 @@
++#!/bin/sh -e
++## emacsclient-alternate-editor.dpatch by Jerome Marant <jerome@debian.org>
++##
++## DP: ** This patch allows emacsclient to take the ALTERNATE_EDITOR
++## DP: environment variable properly into account when the command
++## DP: is run without any parameter.
++## DP: Status: has been applied upstream
++## DP: Date: Sun, 25 Jan 2004 21:00:29 +0100
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c emacs21/lib-src/emacsclient.c
++--- /home/jerome/pkg/emacs21/svn/emacs21/lib-src/emacsclient.c        2004-01-25 19:45:54.000000000 +0100
+++++ emacs21/lib-src/emacsclient.c     2004-01-25 19:46:31.000000000 +0100
++@@ -75,6 +75,8 @@
++      int argc;
++      char **argv;
++ {
+++  alternate_editor = getenv ("ALTERNATE_EDITOR");
+++
++   while (1)
++     {
++       int opt = getopt_long (argc, argv,
++@@ -82,8 +84,6 @@
++ 
++       if (opt == EOF)
++      break;
++-
++-      alternate_editor = getenv ("ALTERNATE_EDITOR");
++       
++       switch (opt)
++      {
+--- emacs-21.3.orig/debian/patches/arch-s390.dpatch
++++ emacs-21.3/debian/patches/arch-s390.dpatch
+@@ -0,0 +1,164 @@
++#! /bin/sh -e
++## 500-arch-s390.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Support for the s390 architecture has been added.
++## DP: Status: appears to be incorporated upstream
++## DP: Provided by: Jochen =?iso-8859-1?Q?R=F6hrig?= <jr@debian.s390.org>
++## DP: Date: Tue, 31 Jul 2001 15:18:38 UTC.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs21/trunk/configure.in trunk/configure.in
++--- /home/rlb/deb/emacs21/trunk/configure.in  2003-09-11 01:04:22.000000000 -0500
+++++ trunk/configure.in        2003-09-11 01:04:46.000000000 -0500
++@@ -623,6 +623,10 @@
++     machine=ibmrt-aix opsys=usg5-2-2
++   ;;
++ 
+++  s390*-*-linux-gnu* )
+++    machine=s390 opsys=gnu-linux
+++  ;;
+++
++   ## Integrated Solutions `Optimum V'
++   m68*-isi-bsd4.2* )
++     machine=isi-ov opsys=bsd4-2
++diff -urNad /home/rlb/deb/emacs21/trunk/src/m/s390.h trunk/src/m/s390.h
++--- /home/rlb/deb/emacs21/trunk/src/m/s390.h  1969-12-31 18:00:00.000000000 -0600
+++++ trunk/src/m/s390.h        2003-09-11 01:04:46.000000000 -0500
++@@ -0,0 +1,121 @@
+++/* machine description file template.
+++   Copyright (C) 1985, 1986 Free Software Foundation, Inc.
+++
+++This file is part of GNU Emacs.
+++
+++GNU Emacs is free software; you can redistribute it and/or modify
+++it under the terms of the GNU General Public License as published by
+++the Free Software Foundation; either version 2, or (at your option)
+++any later version.
+++
+++GNU Emacs is distributed in the hope that it will be useful,
+++but WITHOUT ANY WARRANTY; without even the implied warranty of
+++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+++GNU General Public License for more details.
+++
+++You should have received a copy of the GNU General Public License
+++along with GNU Emacs; see the file COPYING.  If not, write to
+++the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+++Boston, MA 02111-1307, USA.  */
+++
+++/* The following line tells the configuration script what sort of
+++   operating system this machine is likely to run.
+++   USUAL-OPSYS="<name of system .h file here, without the s- or .h>"  */
+++
+++/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
+++   is the most significant byte.  */
+++
+++#define WORDS_BIG_ENDIAN
+++
+++/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
+++ * group of arguments and treat it as an array of the arguments.  */
+++
+++#define NO_ARG_ARRAY
+++
+++/* Define WORD_MACHINE if addresses and such have
+++ * to be corrected before they can be used as byte counts.  */
+++
+++/* #define WORD_MACHINE */
+++
+++/* Now define a symbol for the cpu type, if your compiler
+++   does not define it automatically:
+++   Ones defined so far include vax, m68000, ns16000, pyramid,
+++   orion, tahoe, APOLLO and many others */
+++
+++/* __s390__ defined already */
+++
+++/* Use type int rather than a union, to represent Lisp_Object */
+++/* This is desirable for most machines.  */
+++
+++#define NO_UNION_TYPE
+++
+++/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
+++   the 24-bit bit field into an int.  In other words, if bit fields
+++   are always unsigned.
+++
+++   If you use NO_UNION_TYPE, this flag does not matter.  */
+++
+++#define EXPLICIT_SIGN_EXTEND
+++
+++/* Data type of load average, as read out of kmem.  */
+++
+++#define LOAD_AVE_TYPE long
+++
+++/* Convert that into an integer that is 100 for a load average of 1.0  */
+++
+++#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
+++
+++/* Define CANNOT_DUMP on machines where unexec does not work.
+++   Then the function dump-emacs will not be defined
+++   and temacs will do (load "loadup") automatically unless told otherwise.  */
+++
+++/* #define CANNOT_DUMP */
+++
+++/* Define VIRT_ADDR_VARIES if the virtual addresses of
+++   pure and impure space as loaded can vary, and even their
+++   relative order cannot be relied on.
+++
+++   Otherwise Emacs assumes that text space precedes data space,
+++   numerically.  */
+++
+++#define VIRT_ADDR_VARIES
+++
+++/* Define C_ALLOCA if this machine does not support a true alloca
+++   and the one written in C should be used instead.
+++   Define HAVE_ALLOCA to say that the system provides a properly
+++   working alloca function and it should be used.
+++   Define neither one if an assembler-language alloca
+++   in the file alloca.s should be used.  */
+++
+++/* #define C_ALLOCA */
+++#define HAVE_ALLOCA
+++
+++/* Define NO_REMAP if memory segmentation makes it not work well
+++   to change the boundary between the text section and data section
+++   when Emacs is dumped.  If you define this, the preloaded Lisp
+++   code will not be sharable; but that's better than failing completely.  */
+++
+++/* #define NO_REMAP */
+++
+++/* Some really obscure 4.2-based systems (like Sequent DYNIX)
+++ * do not support asynchronous I/O (using SIGIO) on sockets,
+++ * even though it works fine on tty's.  If you have one of
+++ * these systems, define the following, and then use it in
+++ * config.h (or elsewhere) to decide when (not) to use SIGIO.
+++ *
+++ * You'd think this would go in an operating-system description file,
+++ * but since it only occurs on some, but not all, BSD systems, the
+++ * reasonable place to select for it is in the machine description
+++ * file.
+++ */
+++
+++/* #define NO_SOCK_SIGIO */
+++
+++/* After adding support for a new system, modify the large case
+++   statement in the `configure' script to recognize reasonable
+++   configuration names, and add a description of the system to
+++   `etc/MACHINES'.
+++
+++   If you've just fixed a problem in an existing configuration file,
+++   you should also check `etc/MACHINES' to make sure its descriptions
+++   of known problems in that configuration should be updated.  */
+--- emacs-21.3.orig/debian/patches/bzero-and-have-stdlib.dpatch
++++ emacs-21.3/debian/patches/bzero-and-have-stdlib.dpatch
+@@ -0,0 +1,83 @@
++#! /bin/sh -e
++## 500-bzero-and-have-stdlib.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Emacs uses memset, memcmp, and mmove rather than deprecated functions.
++## DP: Status: sent-upstream, pending (all but mem* fixes already fixed upstream)
++## DP: 
++## DP: #defines have been added to arrange for Emacs to use memset, memcmp,
++## DP: and memmove instead of bzero, bcmp, and bcopy.
++## DP: 
++## DP: ** HAVE_STDLIB_H checks have been added in various places.
++## DP: Author: rlb
++## DP: Status: sent-upstream, pending
++## DP: 
++## DP: Primarily in lib-src.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++--- emacs21-21.2.orig/src/config.in
+++++ emacs21-21.2/src/config.in
++@@ -531,6 +538,10 @@
++ #endif
++ #ifdef HAVE_STDLIB_H
++ #include <stdlib.h>
+++/* Don't use deprecated functions.  */
+++#define bzero(data, size) memset(data, '\0', size)
+++#define bcmp memcmp
+++#define bcopy(a,b,c) memmove(b,a,c)
++ #endif
++ #endif
++ 
++--- emacs21-21.2.orig/lib-src/yow.c
+++++ emacs21-21.2/lib-src/yow.c
++@@ -10,6 +10,7 @@
++  * With dynamic memory allocation.
++  */
++ 
+++#include "config.h"
++ #include <stdio.h>
++ #include <ctype.h>
++ #include <../src/epaths.h>      /* For PATH_DATA.  */
++@@ -33,7 +34,9 @@
++     &res;})
++ #endif
++ 
+++#ifndef HAVE_STDLIB_H                /* config.h includes stdlib.  */
++ char *malloc(), *realloc();
+++#endif
++ 
++ void yow();
++ void setup_yow();
++--- emacs21-21.2.orig/lib-src/cvtmail.c
+++++ emacs21-21.2/lib-src/cvtmail.c
++@@ -33,11 +33,14 @@
++  * Author: Larry Kolodney, 1985
++  */
++ 
++-
+++#include "config.h"
++ #include <stdio.h>
++ 
+++#ifndef HAVE_STDLIB_H                /* config.h includes stdlib.  */
++ char *malloc ();
++ char *realloc ();
+++#endif
+++
++ char *getenv ();
++ 
++ char *xmalloc ();
+--- emacs-21.3.orig/debian/patches/detect-coding-iso2022.dpatch
++++ emacs-21.3/debian/patches/detect-coding-iso2022.dpatch
+@@ -0,0 +1,60 @@
++#!/bin/sh -e
++## 500-detect-coding-iso2022.dpatch by Kenichi Handa <handa@etl.go.jp>
++##
++## All lines beginning with `## DP:' are a description of the patch.
++
++## DP: ** An upstream fix has been incorporated for cases where emacs
++## DP: might modify a binary file even when asked to use a raw-text
++## DP: encoding during a save.
++## DP: Author: Kenichi Handa <handa@etl.go.jp> 
++## DP: Status: backported from upstream fix of 2002-07-26
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs21/trunk/src/coding.c trunk/src/coding.c
++--- /home/rlb/deb/emacs21/trunk/src/coding.c  2003-09-09 17:28:48.000000000 -0500
+++++ trunk/src/coding.c        2003-09-11 22:16:16.000000000 -0500
++@@ -1359,6 +1359,7 @@
++   while (mask && src < src_end)
++     {
++       ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
+++    retry:
++       switch (c)
++      {
++      case ISO_CODE_ESC:
++@@ -1556,6 +1557,8 @@
++                && mask & CODING_CATEGORY_MASK_ISO_8_2)
++              {
++                int i = 1;
+++
+++               c = -1;
++                while (src < src_end)
++                  {
++                    ONE_MORE_BYTE_CHECK_MULTIBYTE (c, multibytep);
++@@ -1568,6 +1571,9 @@
++                  mask &= ~CODING_CATEGORY_MASK_ISO_8_2;
++                else
++                  mask_found |= CODING_CATEGORY_MASK_ISO_8_2;
+++               if (c >= 0)
+++                 /* This means that we have read one extra byte.  */
+++                 goto retry;
++              }
++          }
++        break;
+--- emacs-21.3.orig/debian/patches/fix-x-vs-no-x-diffs.dpatch
++++ emacs-21.3/debian/patches/fix-x-vs-no-x-diffs.dpatch
+@@ -0,0 +1,107 @@
++#! /bin/sh -e
++## 501-fix-x-vs-no-x-diffs.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** Building --with-x=yes and --with-x=no creates very few differences now.
++## DP: Author: rlb in consulatation with emacs-devel.
++## DP: 
++## DP: Eliminate as many differences between --with-x=yes and --with-x=no
++## DP: versions of emacs as possible, and accommodate the rest.
++## DP: 
++## DP: Make sure that the DOC files generated with and without X,
++## DP: i.e. --with-x=yes and --with-x=no, are the same.
++## DP: 
++## DP: Make sure that cus-dep.el generation doesn't fail by fixing some
++## DP: problems with a couple of defcustom forms.  Without the fix, the
++## DP: computation of custom-where in cus-dep.el fails because the defcustom
++## DP: eval fails.  The gnus-art.el fix does copy/paste the value of
++## DP: gnus-article-compface-xbm from gnus-ems to gnus-art.  This doesn't
++## DP: look like it should hurt anything, but it'd be better to fix this
++## DP: "right" in the long term.
++## DP: 
++## DP: Sort the custom-group entries in cus-dep before generating
++## DP: custom-loads so the output doesn't differ from run-to-run.
++## DP: 
++## DP: Add a tag so that we can insert our own name for the fns-*.el file
++## DP: into help.el at package build time.  fns-*.el is the only difference
++## DP: remaining, and we just allow two versions, fns-*-x.el and fns-*-nox.el
++## DP: and arrange for help.el to load the right one.
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++diff -ru 0/lisp/scroll-bar.el 1/lisp/scroll-bar.el
++--- 0/lisp/scroll-bar.el      2002-09-15 17:14:25.000000000 -0500
+++++ 1/lisp/scroll-bar.el      2002-09-15 17:15:39.000000000 -0500
++@@ -99,6 +99,7 @@
++               (const left)
++               (const right))
++   :group 'frames
+++  :initialize 'custom-initialize-default
++   :set 'set-scroll-bar-mode-1)
++ 
++ ;; We just set scroll-bar-mode, but that was the default.
++diff -ru 0/lisp/gnus/gnus-art.el 1/lisp/gnus/gnus-art.el
++--- 0/lisp/gnus/gnus-art.el   2002-03-22 11:03:55.000000000 -0600
+++++ 1/lisp/gnus/gnus-art.el   2002-09-15 16:42:46.000000000 -0500
++@@ -207,7 +207,10 @@
++   (if (and (fboundp 'image-type-available-p)
++         (image-type-available-p 'xbm))
++       'gnus-article-display-xface
++-    (if gnus-article-compface-xbm
+++    (if (or (and (boundp 'gnus-article-compface-xbm)
+++                 gnus-article-compface-xbm)
+++            (eq 0 (string-match "#define"
+++                                (shell-command-to-string "uncompface -X"))))
++      "{ echo '/* Width=48, Height=48 */'; uncompface; } | display -"
++       "{ echo '/* Width=48, Height=48 */'; uncompface; } | icontopbm | \
++ display -"))
++--- 0/lisp/cus-dep.el 2002-07-30 20:15:40.000000000 -0500
+++++ 1/lisp/cus-dep.el 2002-09-15 18:20:53.000000000 -0500
++@@ -35,7 +35,7 @@
++   "Batch function to extract custom dependencies from .el files.
++ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
++   (let ((enable-local-eval nil)
++-     (all-subdirs command-line-args-left)
+++     (all-subdirs (sort command-line-args-left 'string<))
++      (start-directory default-directory))
++     (get-buffer-create " cus-dep temp")
++     (set-buffer " cus-dep temp")
++@@ -86,6 +86,10 @@
++            (let ((members (get symbol 'custom-group))
++                  item where found)
++              (when members
+++                  ;; So x and no-x builds won't differ.
+++                  (setq members
+++                        (sort (copy-sequence members)
+++                              (lambda (x y) (string< (car x) (car y)))))
++                (while members
++                  (setq item (car (car members))
++                        members (cdr members)
++--- 0/lisp/help.el    2001-10-21 20:26:01.000000000 -0500
+++++ 1/lisp/help.el    2002-09-19 23:29:30.000000000 -0500
++@@ -612,7 +612,10 @@
++         ;; fns-XX.YY.ZZ.el does not work on DOS filesystem.
++         (if (eq system-type 'ms-dos)
++             "fns.el"
++-          (format "fns-%s.el" emacs-version))
+++            ;; Modified for Debian to support x and nox parallel installs.
+++            (format "fns-%s-%s.el"
+++                    emacs-version
+++                    (or (and (featurep 'x-toolkit) "x") "nox")))
++         exec-directory)
++        ;; The file name fns-%s.el already has a .el extension.
++        nil nil t)
+--- emacs-21.3.orig/debian/patches/version-mention-debian.dpatch
++++ emacs-21.3/debian/patches/version-mention-debian.dpatch
+@@ -0,0 +1,36 @@
++#! /bin/sh -e
++## 500-version-mention-debian.dpatch by Rob Browning <rlb@defaultvalue.org>
++##
++## DP: ** (version) has been modified to indicate Debian modifications.
++## DP: Author: rlb
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++      *)
++              echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++              exit 1;;
++esac
++
++exit 0
++@DPATCH@
++--- emacs21-21.2.orig/lisp/version.el
+++++ emacs21-21.2/lisp/version.el
++@@ -55,8 +55,8 @@
++   (interactive "P")
++   (let ((version-string
++          (format (if (not (interactive-p))
++-                  "GNU Emacs %s (%s%s%s)\n of %s on %s"
++-                "GNU Emacs %s (%s%s%s) of %s on %s")
+++                  "GNU Emacs %s (%s%s%s)\n of %s on %s, modified by Debian"
+++                "GNU Emacs %s (%s%s%s) of %s on %s, modified by Debian")
++                  emacs-version
++               system-configuration
++               (cond ((featurep 'motif)
+--- emacs-21.3.orig/debian/patches/autoconf-updates.dpatch
++++ emacs-21.3/debian/patches/autoconf-updates.dpatch
+@@ -0,0 +1,91 @@
++#! /bin/sh -e
++## autoconf-updates.dpatch by  <rlb@raven.defaultvalue.org>
++##
++
++## DP: ** Autoconf files have been updated to work with the latest versions.
++## DP: Status: new
++
++if [ $# -lt 1 ]; then
++    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
++
++case "$1" in
++    -patch) patch -p1 ${patch_opts} < $0;;
++    -unpatch) patch -R -p1 ${patch_opts} < $0;;
++    *)
++        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
++        exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/rlb/deb/emacs/trunk-21/configure.in trunk-21/configure.in
++--- /home/rlb/deb/emacs/trunk-21/configure.in 2004-02-21 21:05:44.000000000 -0600
+++++ trunk-21/configure.in     2004-02-22 10:01:39.000000000 -0600
++@@ -26,6 +26,7 @@
++ AC_PREREQ(2.8)dnl
++ AC_INIT(src/lisp.h)
++ AC_CONFIG_HEADER(src/config.h:src/config.in)
+++AC_CONFIG_LIBOBJ_DIR(src)
++ 
++ lispdir='${datadir}/emacs/${version}/lisp'
++ locallisppath='${datadir}/emacs/${version}/site-lisp:'\
++@@ -2037,12 +2038,8 @@
++   if test "${with_kerberos5+set}" = set; then
++     AC_CHECK_HEADERS(krb5.h)
++   else
++-    AC_CHECK_HEADERS(des.h,,
++-                  AC_CHECK_HEADERS(kerberosIV/des.h,,
++-                                   AC_CHECK_HEADERS(kerberos/des.h)))
++-    AC_CHECK_HEADERS(krb.h,,
++-                  AC_CHECK_HEADERS(kerberosIV/krb.h,,
++-                                   AC_CHECK_HEADERS(kerberos/krb.h)))
+++    AC_CHECK_HEADERS([des.h kerberosIV/des.h kerberos/des.h], break)
+++    AC_CHECK_HEADERS([krb.h kerberosIV/krb.h kerberos/krb.h], break)
++   fi
++   AC_CHECK_HEADERS(com_err.h)
++ fi
++@@ -2326,7 +2323,7 @@
++ # the C preprocessor to some helpful value like 1, or maybe the empty
++ # string.  Needless to say consequent macro substitutions are less
++ # than conducive to the makefile finding the correct directory.
++-undefs="`echo $top_srcdir $configuration $canonical |
+++undefs="`echo $ac_top_srcdir $configuration $canonical |
++ sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
++     -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
++ `"
++@@ -2350,7 +2347,7 @@
++   sed -e '1,/start of cpp stuff/d'\
++       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++       < Makefile.c > junk.c
++-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
+++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++       sed -e 's/^ /  /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++   cat junk1.c junk2.c > Makefile.new
++   rm -f junk.c junk1.c junk2.c
++@@ -2366,7 +2363,7 @@
++   sed -e '1,/start of cpp stuff/d'\
++       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++       < Makefile.c > junk.c
++-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
+++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++       sed -e 's/^ /  /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++   cat junk1.c junk2.c > Makefile.new
++   rm -f junk.c junk1.c junk2.c
++@@ -2374,9 +2371,9 @@
++   mv -f Makefile.new Makefile
++ )
++ 
++-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
+++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
++   echo creating src/.gdbinit
++-  echo source $top_srcdir/src/.gdbinit > src/.gdbinit
+++  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
++ fi
++ 
++ # This is how we know whether to re-run configure in certain cases.
+--- emacs-21.3.orig/debian/patches/save-buffer.dpatch
++++ emacs-21.3/debian/patches/save-buffer.dpatch
+@@ -0,0 +1,83 @@
++#!/bin/sh -e
++## save-buffer.dpatch by Jerome Marant <jerome@debian.org>
++##
++## DP: ** Fixes cases where Emacs does not rename a backup file
++## DP: to the original one when the coding system of the buffer
++## DP: has changed and saving has been canceled.
++## DP: Status: has been incorporated upstream
++## DP: Date: Sun, 26 Oct 2003 17:48:46 +0100
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el emacs21/lisp/files.el
++--- /home/jerome/pkg/emacs21/svn/emacs21/lisp/files.el        2003-10-01 20:01:28.000000000 +0200
+++++ emacs21/lisp/files.el     2003-10-26 17:45:31.000000000 +0100
++@@ -2207,7 +2207,8 @@
++                           (copy-file real-file-name backupname t t)))
++                      ;; rename-file should delete old backup.
++                      (rename-file real-file-name backupname t)
++-                     (setq setmodes (file-modes backupname)))
+++                     (setq setmodes
+++                           (cons (file-modes backupname) backupname)))
++                  (file-error
++                   ;; If trouble writing the backup, write it in ~.
++                   (setq backupname (expand-file-name
++@@ -2682,7 +2683,7 @@
++                (nthcdr 10 (file-attributes buffer-file-name)))
++          (if setmodes
++              (condition-case ()
++-                 (set-file-modes buffer-file-name setmodes)
+++                 (set-file-modes buffer-file-name (car setmodes))
++                (error nil))))
++        ;; If the auto-save file was recent before this command,
++        ;; delete it now.
++@@ -2760,7 +2761,8 @@
++          ;; Since we have created an entirely new file
++          ;; and renamed it, make sure it gets the
++          ;; right permission bits set.
++-         (setq setmodes (file-modes buffer-file-name))
+++         (setq setmodes (or setmodes (cons (file-modes buffer-file-name)
+++                                           buffer-file-name)))
++          ;; We succeeded in writing the temp file,
++          ;; so rename it.
++          (rename-file tempname buffer-file-name t))
++@@ -2770,10 +2772,18 @@
++      ;; (setmodes is set) because that says we're superseding.
++      (cond ((and tempsetmodes (not setmodes))
++             ;; Change the mode back, after writing.
++-            (setq setmodes (file-modes buffer-file-name))
++-            (set-file-modes buffer-file-name (logior setmodes 128))))
++-     (write-region (point-min) (point-max)
++-                   buffer-file-name nil t buffer-file-truename)))
+++            (setq setmodes (cons (file-modes buffer-file-name) buffer-file-name))
+++            (set-file-modes buffer-file-name (logior (car setmodes) 128))))
+++     (let (success)
+++       (unwind-protect
+++           (progn
+++             (write-region (point-min) (point-max)
+++                           buffer-file-name nil t buffer-file-truename)
+++             (setq success t))
+++         ;; If we get an error writing the new file, and we made
+++         ;; the backup by renaming, undo the backing-up.
+++         (and setmodes (not success)
+++              (rename-file (cdr setmodes) buffer-file-name))))))
++     setmodes))
++ 
++ (defun save-some-buffers (&optional arg pred)
+--- emacs-21.3.orig/debian/patches/hurd-libio-glibc.dpatch
++++ emacs-21.3/debian/patches/hurd-libio-glibc.dpatch
+@@ -0,0 +1,47 @@
++#!/bin/sh -e
++## hurd-libio-glibc.dpatch by Jerome Marant <jerome@debian.org>
++##
++## DP: ** Support for libio-based (instead of stdio) glibc
++## DP: on Hurd systems has been added.
++## DP: Status: has been incorporated upstream
++## DP: Author: Marcus Brinkmann <marcus@gnu.org>
++## DP: Date: Tue, 16 Apr 2002 18:55:03 -0400
++
++if [ $# -ne 1 ]; then
++    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++    exit 1
++fi
++
++[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
++patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
++
++case "$1" in
++       -patch) patch $patch_opts -p1 < $0;;
++       -unpatch) patch $patch_opts -p1 -R < $0;;
++        *)
++                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
++                exit 1;;
++esac
++
++exit 0
++
++@DPATCH@
++diff -urNad /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h emacs/src/s/gnu.h
++--- /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h    2003-09-26 19:50:09.000000000 +0200
+++++ emacs/src/s/gnu.h 2003-09-27 15:01:16.000000000 +0200
++@@ -64,6 +64,15 @@
++ #define WAIT_USE_INT
++ #define HAVE_UNION_WAIT
++ 
+++#ifdef emacs
+++#include <stdio.h>  /* Get the definition of _IO_STDIO_H.  */
+++#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
+++/* new C libio names */
+++#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+++  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
+++#endif
+++#endif
+++
++ /* GNU needs its own crt0, and libc defines data_start.  */
++ #define ORDINARY_LINK
++ #define DATA_START ({ extern int data_start; (char *) &data_start; })
+--- emacs-21.3.orig/debian/emacs-bin-common.postrm
++++ emacs-21.3/debian/emacs-bin-common.postrm
+@@ -0,0 +1,15 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++MOVEMAIL_BIN=@MOVEMAIL_BIN@
++
++# Legacy removal...
++if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
++  suidunregister -s emacs${MAJOR} ${MOVEMAIL_BIN}
++fi
++
++exit 0
+--- emacs-21.3.orig/debian/README.in
++++ emacs-21.3/debian/README.in
+@@ -0,0 +1,31 @@
++Non-patch changes:
++
++    ** The Debian copy of the upstream source contains no .elc files.
++
++       The .elc files have been removed because we always regenerate
++       them and because Emacs modifies them in the source tree during
++       the build process, even when using a VPATH build.  This means
++       that a "make clean" can't easily return the tree to the
++       upstream state, resulting in a giant Debian binary diff.  There
++       are other solutions if this turns out to be a problem.  If
++       nothing else, we can keep the current infrastructure and just
++       add the .elc files to protected_files in debian/rules.
++       Removing the .elc files doesn't affect whether or not our
++       source archive would match the upstream md5sum because we
++       have to repackage it anyway to add leim support.
++
++    ** The -i icon is the Emacs GNU.
++
++    ** Those who prefer the old-style scrollbars can edit debian/rules
++
++       If you prefer the old-style, non-toolkit scrollbars, just edit
++       debian/rules to uncomment the --without-toolkit-scrollbars line
++       and rebuild.
++
++@@PATCH_LIST_HERE@@
++
++Local Variables:
++mode: outline
++outline-regexp: " *\\*+"
++End:
++
+--- emacs-21.3.orig/debian/emacs.desktop
++++ emacs-21.3/debian/emacs.desktop
+@@ -0,0 +1,12 @@
++[Desktop Entry]
++Version=1.0
++Encoding=UTF-8
++Name=Emacs @MAJOR_VERSION@ (X11)
++GenericName=Emacs
++Comment=GNU Emacs @MAJOR_VERSION@ Text Editor
++Exec=/usr/bin/emacs@MAJOR_VERSION@
++TryExec=emacs@MAJOR_VERSION@
++Terminal=false
++Type=Application
++Icon=/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm
++Categories=Application;Utility;TextEditor;
+--- emacs-21.3.orig/debian/build-binary-pkg
++++ emacs-21.3/debian/build-binary-pkg
+@@ -0,0 +1,103 @@
++#!/bin/bash
++
++set -e
++set -x
++
++test "${pkgname}" || (echo pkgname unset; false)
++test "${pkgdir}" || (echo pkgdir unset; false)
++test "${tmppkgdir}" || (echo pkgdir unset; false)
++test "${runver}" || (echo runver unset; false)
++test "${majorver}" || (echo majorver unset; false)
++test "${minorver}" || (echo minorver unset; false)
++test "${target}" || (echo target unset; false)
++test "${xsupport}" || (echo xsupport unset; false)
++
++install -d debian/${pkgdir}
++install -d debian/${pkgdir}/usr/bin/
++mv debian/${tmppkgdir}/usr/bin/emacs-* \
++  debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
++(cd debian/${pkgdir}/usr/bin/ \
++ && ln -s emacs${majorver}-${xsupport} emacs${majorver})
++
++install -d debian/${pkgdir}/usr/share/emacs/${runver}/etc/
++
++mv debian/${tmppkgdir}/usr/share/emacs/${runver}/etc/DOC-${runver}.1 \
++   debian/${pkgdir}/usr/share/emacs/${runver}/etc/
++
++# move files to the build directory
++install -d debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
++mv debian/${tmppkgdir}/usr/lib/emacs/${runver}/${target}/fns-*.el \
++   debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/
++
++# rename fns-*.el and elc files
++(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
++ && test `ls fns-*.el | wc -l` -eq 1 \
++ && mv fns-*.el \
++   `echo fns-*.el | perl -pe "s/^fns-(.*)\.el\$/fns-\\$1-${xsupport}.el/ or die;"`)
++(cd debian/${pkgdir}/usr/lib/emacs/${runver}/${target}/ \
++ && test `ls fns-*.elc | wc -l` -eq 1 \
++ && mv fns-*.elc \
++   `echo fns-*.elc | perl -pe "s/^fns-(.*)\.elc\$/fns-\\$1-${xsupport}.elc/ or die;"`)
++
++rm -rf debian/${tmppkgdir}
++
++# /usr/bin files
++test -f debian/${pkgdir}/usr/bin/emacs${majorver}-${xsupport}
++
++if test "${xsupport}" = x
++then
++  # install desktop entry
++  install -d debian/${pkgdir}/usr/share/applications
++  install -m 0644 debian/emacs${major_ver}.desktop \
++    debian/${pkgdir}/usr/share/applications
++fi
++
++# Can this just be a symlink to the emacsXY-common's doc dir?
++# /usr/share/doc/emacs${majorver} directory
++install -d debian/${pkgdir}/usr/share/doc/${pkgname}
++cp debian/changelog debian/${pkgdir}/usr/share/doc/${pkgname}/changelog.Debian
++cp debian/README.binpkg debian/${pkgdir}/usr/share/doc/${pkgname}/README.Debian
++find debian/${pkgdir}/usr/share/doc/${pkgname} -type f | xargs gzip -9v
++cp debian/copyright debian/${pkgdir}/usr/share/doc/${pkgname}
++
++# menu items
++install -d debian/${pkgdir}/usr/lib/menu
++cp debian/menu-${pkgname} debian/${pkgdir}/usr/lib/menu/${pkgname}
++
++# Mangle permissions to conform.
++chown -R root.root debian/${pkgdir}
++find debian/${pkgdir} -type d | xargs chmod 755
++find debian/${pkgdir} -not -type d -a -not -type l | xargs chmod 644
++chmod 755 debian/${pkgdir}/usr/bin/*
++
++# control scripts     
++install -d debian/${pkgdir}/DEBIAN
++install -m 755 debian/emacs.postinst debian/${pkgdir}/DEBIAN/postinst
++install -m 755 debian/emacs.prerm debian/${pkgdir}/DEBIAN/prerm
++install -m 755 debian/emacs.postrm debian/${pkgdir}/DEBIAN/postrm
++
++BIN_PRIORITY=24
++
++perl -w -p -i \
++  -e "s/\@PKG_NAME\@/${pkgname}/go;" \
++  -e "s/\@MAJOR_VERSION\@/${majorver}/go;" \
++  -e "s/\@X_SUPPORT\@/${xsupport}/go;" \
++  -e "s/\@BIN_PRIORITY\@/${BIN_PRIORITY}/go;" \
++  \
++  debian/${pkgdir}/DEBIAN/postinst \
++  debian/${pkgdir}/DEBIAN/prerm \
++  debian/${pkgdir}/DEBIAN/postrm
++
++dpkg-shlibdeps debian/${pkgdir}/usr/bin/*
++
++# Generate DEBIAN/md5sums file
++test -e DEBIAN/md5sums && exit 1
++(cd debian/${pkgdir} &&
++ for dir in `ls | grep -v DEBIAN`
++ do
++   find "${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums
++ done)
++chmod 0644 debian/${pkgdir}/DEBIAN/md5sums
++
++dpkg-gencontrol -isp -p${pkgname} -Pdebian/${pkgdir}
++dpkg --build debian/${pkgdir} ..
+--- emacs-21.3.orig/debian/emacs.postinst
++++ emacs-21.3/debian/emacs.postinst
+@@ -0,0 +1,22 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++
++update-alternatives \
++  --install /usr/bin/emacs emacs \
++            /usr/bin/emacs${MAJOR}-@X_SUPPORT@ @BIN_PRIORITY@ \
++  --slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \
++          /usr/share/man/man1/emacs.1emacs${MAJOR}.gz
++
++update-alternatives \
++  --install /usr/bin/editor editor \
++            /usr/bin/emacs${MAJOR} 0
++
++if test -x /usr/bin/update-menus; then update-menus; fi
++
++# emacsen-common registration.
++/usr/lib/emacsen-common/emacs-install emacs${MAJOR}
++
++exit 0
+--- emacs-21.3.orig/debian/README.add-on-package-maintainers
++++ emacs-21.3/debian/README.add-on-package-maintainers
+@@ -0,0 +1,2 @@
++Please see /usr/share/doc/emacsen-common/debian-emacs-policy.gz for
++information on how to properly structure your emacs add-on packages.
+--- emacs-21.3.orig/debian/emacs-el.prerm
++++ emacs-21.3/debian/emacs-el.prerm
+@@ -0,0 +1,12 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++
++if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/emacs${MAJOR}-el ]
++then
++  rm -f /usr/doc/emacs${MAJOR}-el
++fi
+--- emacs-21.3.orig/debian/emacs.postrm
++++ emacs-21.3/debian/emacs.postrm
+@@ -0,0 +1,7 @@
++#!/bin/sh
++
++set -e
++
++if test -x /usr/bin/update-menus; then update-menus; fi
++
++exit 0
+--- emacs-21.3.orig/debian/autofiles.diff
++++ emacs-21.3/debian/autofiles.diff
+@@ -0,0 +1,23481 @@
++diff -ruN -x autom4te.cache autodiff-old/aclocal.m4 autodiff-new/aclocal.m4
++--- autodiff-old/aclocal.m4   2004-02-25 19:14:52.000000000 -0600
+++++ autodiff-new/aclocal.m4   2004-04-06 17:47:06.000000000 -0500
++@@ -1,532 +0,0 @@
++-
++-% Copyright (C) 2000, 2001  Free Software Foundation, Inc.
++-%
++-% This file is part of GNU Emacs.
++-%
++-% GNU Emacs is free software; you can redistribute it and/or modify
++-% it under the terms of the GNU General Public License as published by
++-% the Free Software Foundation; either version 2, or (at your option)
++-% any later version.
++-%
++-% GNU Emacs is distributed in the hope that it will be useful,
++-% but WITHOUT ANY WARRANTY; without even the implied warranty of
++-% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++-% GNU General Public License for more details.
++-%
++-% You should have received a copy of the GNU General Public License
++-% along with GNU Emacs; see the file COPYING.  If not, write to the
++-% Free Software Foundation, Inc., 59 Temple Place - Suite 330,
++-% Boston, MA 02111-1307, USA.
++-
++-ifelse(_AC_VERSION_COMPARE(AC_ACVERSION, [2.14]), -1,
++-
++-# AC_PROG_CC_STDC
++-# ---------------
++-# If the C compiler in not in ANSI C mode by default, try to add an
++-# option to output variable @code{CC} to make it so.  This macro tries
++-# various options that select ANSI C on some system or another.  It
++-# considers the compiler to be in ANSI C mode if it handles function
++-# prototypes correctly.
++-AC_DEFUN(AC_PROG_CC_STDC,
++-[AC_REQUIRE([AC_PROG_CC])dnl
++-AC_BEFORE([$0], [AC_C_INLINE])dnl
++-AC_BEFORE([$0], [AC_C_CONST])dnl
++-dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
++-dnl a magic option to avoid problems with ANSI preprocessor commands
++-dnl like #elif.
++-dnl FIXME: can't do this because then AC_AIX won't work due to a
++-dnl circular dependency.
++-dnl AC_BEFORE([$0], [AC_PROG_CPP])
++-AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
++-AC_CACHE_VAL(ac_cv_prog_cc_stdc,
++-[ac_cv_prog_cc_stdc=no
++-ac_save_CC="$CC"
++-# Don't try gcc -ansi; that turns off useful extensions and
++-# breaks some systems' header files.
++-# AIX                        -qlanglvl=ansi
++-# Ultrix and OSF/1   -std1
++-# HP-UX 10.20 and later      -Ae
++-# HP-UX older versions       -Aa -D_HPUX_SOURCE
++-# SVR4                       -Xc -D__EXTENSIONS__
++-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++-do
++-  CC="$ac_save_CC $ac_arg"
++-  AC_TRY_COMPILE(
++-[#include <stdarg.h>
++-#include <stdio.h>
++-#include <sys/types.h>
++-#include <sys/stat.h>
++-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
++-struct buf { int x; };
++-FILE * (*rcsopen) (struct buf *, struct stat *, int);
++-static char *e (p, i)
++-     char **p;
++-     int i;
++-{
++-  return p[i];
++-}
++-static char *f (char * (*g) (char **, int), char **p, ...)
++-{
++-  char *s;
++-  va_list v;
++-  va_start (v,p);
++-  s = g (p, va_arg (v,int));
++-  va_end (v);
++-  return s;
++-}
++-int test (int i, double x);
++-struct s1 {int (*f) (int a);};
++-struct s2 {int (*f) (double a);};
++-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++-int argc;
++-char **argv;],
++-[return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];],
++-[ac_cv_prog_cc_stdc="$ac_arg"; break])
++-done
++-CC="$ac_save_CC"
++-])
++-case "x$ac_cv_prog_cc_stdc" in
++-  x|xno)
++-    AC_MSG_RESULT([none needed]) ;;
++-  *)
++-    AC_MSG_RESULT($ac_cv_prog_cc_stdc)
++-    CC="$CC $ac_cv_prog_cc_stdc" ;;
++-esac
++-])# AC_PROG_CC_STDC
++-
++-# AC_FUNC_MKTIME
++-# --------------
++-AC_DEFUN(AC_FUNC_MKTIME,
++-[AC_REQUIRE([AC_HEADER_TIME])dnl
++-AC_CHECK_HEADERS(sys/time.h unistd.h)
++-AC_CHECK_FUNCS(alarm)
++-AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime,
++-[AC_TRY_RUN(
++-[/* Test program from Paul Eggert (eggert@twinsun.com)
++-   and Tony Leneis (tony@plaza.ds.adp.com).  */
++-#if TIME_WITH_SYS_TIME
++-# include <sys/time.h>
++-# include <time.h>
++-#else
++-# if HAVE_SYS_TIME_H
++-#  include <sys/time.h>
++-# else
++-#  include <time.h>
++-# endif
++-#endif
++-
++-#if HAVE_UNISTD_H
++-# include <unistd.h>
++-#endif
++-
++-#if !HAVE_ALARM
++-# define alarm(X) /* empty */
++-#endif
++-
++-/* Work around redefinition to rpl_putenv by other config tests.  */
++-#undef putenv
++-
++-static time_t time_t_max;
++-
++-/* Values we'll use to set the TZ environment variable.  */
++-static const char *const tz_strings[] = {
++-  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
++-  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
++-};
++-#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
++-
++-/* Fail if mktime fails to convert a date in the spring-forward gap.
++-   Based on a problem report from Andreas Jaeger.  */
++-static void
++-spring_forward_gap ()
++-{
++-  /* glibc (up to about 1998-10-07) failed this test) */
++-  struct tm tm;
++-
++-  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
++-     instead of "TZ=America/Vancouver" in order to detect the bug even
++-     on systems that don't support the Olson extension, or don't have the
++-     full zoneinfo tables installed.  */
++-  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
++-
++-  tm.tm_year = 98;
++-  tm.tm_mon = 3;
++-  tm.tm_mday = 5;
++-  tm.tm_hour = 2;
++-  tm.tm_min = 0;
++-  tm.tm_sec = 0;
++-  tm.tm_isdst = -1;
++-  if (mktime (&tm) == (time_t)-1)
++-    exit (1);
++-}
++-
++-static void
++-mktime_test (now)
++-     time_t now;
++-{
++-  struct tm *lt;
++-  if ((lt = localtime (&now)) && mktime (lt) != now)
++-    exit (1);
++-  now = time_t_max - now;
++-  if ((lt = localtime (&now)) && mktime (lt) != now)
++-    exit (1);
++-}
++-
++-static void
++-irix_6_4_bug ()
++-{
++-  /* Based on code from Ariel Faigon.  */
++-  struct tm tm;
++-  tm.tm_year = 96;
++-  tm.tm_mon = 3;
++-  tm.tm_mday = 0;
++-  tm.tm_hour = 0;
++-  tm.tm_min = 0;
++-  tm.tm_sec = 0;
++-  tm.tm_isdst = -1;
++-  mktime (&tm);
++-  if (tm.tm_mon != 2 || tm.tm_mday != 31)
++-    exit (1);
++-}
++-
++-static void
++-bigtime_test (j)
++-     int j;
++-{
++-  struct tm tm;
++-  time_t now;
++-  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
++-  now = mktime (&tm);
++-  if (now != (time_t) -1)
++-    {
++-      struct tm *lt = localtime (&now);
++-      if (! (lt
++-          && lt->tm_year == tm.tm_year
++-          && lt->tm_mon == tm.tm_mon
++-          && lt->tm_mday == tm.tm_mday
++-          && lt->tm_hour == tm.tm_hour
++-          && lt->tm_min == tm.tm_min
++-          && lt->tm_sec == tm.tm_sec
++-          && lt->tm_yday == tm.tm_yday
++-          && lt->tm_wday == tm.tm_wday
++-          && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
++-               == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
++-     exit (1);
++-    }
++-}
++-
++-int
++-main ()
++-{
++-  time_t t, delta;
++-  int i, j;
++-
++-  /* This test makes some buggy mktime implementations loop.
++-     Give up after 60 seconds; a mktime slower than that
++-     isn't worth using anyway.  */
++-  alarm (60);
++-
++-  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
++-    continue;
++-  time_t_max--;
++-  delta = time_t_max / 997; /* a suitable prime number */
++-  for (i = 0; i < N_STRINGS; i++)
++-    {
++-      if (tz_strings[i])
++-     putenv (tz_strings[i]);
++-
++-      for (t = 0; t <= time_t_max - delta; t += delta)
++-     mktime_test (t);
++-      mktime_test ((time_t) 60 * 60);
++-      mktime_test ((time_t) 60 * 60 * 24);
++-
++-      for (j = 1; 0 < j; j *= 2)
++-        bigtime_test (j);
++-      bigtime_test (j - 1);
++-    }
++-  irix_6_4_bug ();
++-  spring_forward_gap ();
++-  exit (0);
++-}],
++-ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no,
++-ac_cv_func_working_mktime=no)])
++-if test $ac_cv_func_working_mktime = no; then
++-  LIBOBJS="$LIBOBJS mktime.${ac_objext}"
++-fi
++-AC_SUBST(LIBOBJS)dnl
++-])# AC_FUNC_MKTIME
++-
++-# AC_C_VOLATILE
++-# -------------
++-# Note that, unlike const, #defining volatile to be the empty string can
++-# actually turn a correct program into an incorrect one, since removing
++-# uses of volatile actually grants the compiler permission to perform
++-# optimizations that could break the user's code.  So, do not #define
++-# volatile away unless it is really necessary to allow the user's code
++-# to compile cleanly.  Benign compiler failures should be tolerated.
++-AC_DEFUN(AC_C_VOLATILE,
++-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
++-AC_CACHE_CHECK([for working volatile], ac_cv_c_volatile,
++-[AC_TRY_COMPILE(,[
++-volatile int x;
++-int * volatile y;],
++-ac_cv_c_volatile=yes, ac_cv_c_volatile=no)])
++-if test $ac_cv_c_volatile = no; then
++-  AC_DEFINE(volatile,,
++-            [Define to empty if the keyword `volatile' does not work.
++-             Warning: valid code using `volatile' can become incorrect
++-             without.  Disable with care.])
++-fi
++-])
++-
++-# AC_C_PROTOTYPES
++-# ---------------
++-# Check if the C compiler supports prototypes, included if it needs
++-# options.
++-AC_DEFUN(AC_C_PROTOTYPES,
++-[AC_REQUIRE([AC_PROG_CC_STDC])dnl
++-AC_REQUIRE([AC_PROG_CPP])dnl
++-AC_MSG_CHECKING([for function prototypes])
++-if test "$ac_cv_prog_cc_stdc" != no; then
++-  AC_MSG_RESULT(yes)
++-  AC_DEFINE(PROTOTYPES, 1,
++-            [Define if the compiler supports function prototypes.])
++-else
++-  AC_MSG_RESULT(no)
++-fi
++-])# AC_C_PROTOTYPES
++-
++-dnl The following is a bit different from the prerelease autoconf at
++-dnl this time since that requires extra definitions.
++-
++-dnl By default, many hosts won't let programs access large files;
++-dnl one must use special compiler options to get large-file access to work.
++-dnl For more details about this brain damage please see:
++-dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
++-
++-dnl Written by Paul Eggert <eggert@twinsun.com>.
++-
++-dnl Internal subroutine of AC_SYS_LARGEFILE.
++-dnl AC_SYS_LARGEFILE_TEST_INCLUDES
++-AC_DEFUN(AC_SYS_LARGEFILE_TEST_INCLUDES,
++-  [[#include <sys/types.h>
++-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
++-  ]])
++-
++-dnl Internal subroutine of AC_SYS_LARGEFILE.
++-dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
++-AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
++-  [AC_CACHE_CHECK([for $1 value needed for large files], $3,
++-     [$3=no
++-      AC_TRY_COMPILE([$5],
++-     [$6], 
++-     ,
++-     [AC_TRY_COMPILE([#define $1 $2]
++-[$5]
++-        ,
++-        [$6],
++-        [$3=$2])])])
++-   if test "[$]$3" != no; then
++-     AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
++-   fi])
++-
++-AC_DEFUN(AC_SYS_LARGEFILE,
++-  [AC_REQUIRE([AC_PROG_CC])
++-   AC_ARG_ENABLE(largefile,
++-     [  --disable-largefile     omit support for large files])
++-   if test "$enable_largefile" != no; then
++-
++-     AC_CACHE_CHECK([for special C compiler options needed for large files],
++-       ac_cv_sys_largefile_CC,
++-       [ac_cv_sys_largefile_CC=no
++-        if test "$GCC" != yes; then
++-       # IRIX 6.2 and later do not support large files by default,
++-       # so use the C compiler's -n32 option if that helps.
++-       AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
++-         [ac_save_CC="$CC"
++-          CC="$CC -n32"
++-          AC_TRY_COMPILE(AC_SYS_LARGEFILE_TEST_INCLUDES, ,
++-            ac_cv_sys_largefile_CC=' -n32')
++-          CC="$ac_save_CC"])
++-        fi])
++-     if test "$ac_cv_sys_largefile_CC" != no; then
++-       CC="$CC$ac_cv_sys_largefile_CC"
++-     fi
++-
++-     AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
++-       ac_cv_sys_file_offset_bits,
++-       [Number of bits in a file offset, on hosts where this is settable.],
++-       AC_SYS_LARGEFILE_TEST_INCLUDES)
++-     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
++-       ac_cv_sys_large_files,
++-       [Define for large files, on AIX-style hosts.]
++-       AC_SYS_LARGEFILE_TEST_INCLUDES)
++-   fi
++-  ])
++-
++-AC_DEFUN(AC_FUNC_FSEEKO,
++-  [AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
++-     ac_cv_sys_largefile_source,
++-     [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
++-     [#include <stdio.h>], [return !fseeko;])
++-   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
++-   # in glibc 2.1.3, but that breaks too many other things.
++-   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
++-
++-   AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko,
++-     [ac_cv_func_fseeko=no
++-      AC_TRY_LINK([#include <stdio.h>],
++-        [return fseeko && fseeko (stdin, 0, 0);],
++-     [ac_cv_func_fseeko=yes])])
++-   if test $ac_cv_func_fseeko != no; then
++-     AC_DEFINE(HAVE_FSEEKO, 1,
++-       [Define if fseeko (and presumably ftello) exists and is declared.])
++-   fi])
++-
++-undefine([AC_FUNC_MMAP])dnl
++-dnl The autoconf 2.13 version loses on OSF, at least,
++-dnl by messing up the declaration of malloc.
++-AC_DEFUN([AC_FUNC_MMAP],
++-[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h)
++-AC_CHECK_FUNCS(getpagesize)
++-AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
++-[AC_TRY_RUN(
++-[/* Thanks to Mike Haertel and Jim Avera for this test.
++-   Here is a matrix of mmap possibilities:
++-     mmap private not fixed
++-     mmap private fixed at somewhere currently unmapped
++-     mmap private fixed at somewhere already mapped
++-     mmap shared not fixed
++-     mmap shared fixed at somewhere currently unmapped
++-     mmap shared fixed at somewhere already mapped
++-   For private mappings, we should verify that changes cannot be read()
++-   back from the file, nor mmap's back from the file at a different
++-   address.  (There have been systems where private was not correctly
++-   implemented like the infamous i386 svr4.0, and systems where the
++-   VM page cache was not coherent with the file system buffer cache
++-   like early versions of FreeBSD and possibly contemporary NetBSD.)
++-   For shared mappings, we should conversely verify that changes get
++-   propogated back to all the places they're supposed to be.
++-
++-   Grep wants private fixed already mapped.
++-   The main things grep needs to know about mmap are:
++-   * does it exist and is it safe to write into the mmap'd area
++-   * how to use it (BSD variants)  */
++-#include <sys/types.h>
++-#include <fcntl.h>
++-#include <sys/mman.h>
++-
++-#if STDC_HEADERS || HAVE_STDLIB_H
++-# include <stdlib.h>
++-#else
++-char *malloc ();
++-#endif
++-#if HAVE_UNISTD_H
++-# include <unistd.h>
++-#endif
++-#if HAVE_SYS_STAT_H
++-# include <sys/stat.h>
++-#endif
++-
++-/* This mess was copied from the GNU getpagesize.h.  */
++-#if !HAVE_GETPAGESIZE
++-/* Assume that all systems that can run configure have sys/param.h.  */
++-# if !HAVE_SYS_PARAM_H
++-#  define HAVE_SYS_PARAM_H 1
++-# endif
++-
++-# ifdef _SC_PAGESIZE
++-#  define getpagesize() sysconf(_SC_PAGESIZE)
++-# else /* no _SC_PAGESIZE */
++-#  if HAVE_SYS_PARAM_H
++-#   include <sys/param.h>
++-#   ifdef EXEC_PAGESIZE
++-#    define getpagesize() EXEC_PAGESIZE
++-#   else /* no EXEC_PAGESIZE */
++-#    ifdef NBPG
++-#     define getpagesize() NBPG * CLSIZE
++-#     ifndef CLSIZE
++-#      define CLSIZE 1
++-#     endif /* no CLSIZE */
++-#    else /* no NBPG */
++-#     ifdef NBPC
++-#      define getpagesize() NBPC
++-#     else /* no NBPC */
++-#      ifdef PAGESIZE
++-#       define getpagesize() PAGESIZE
++-#      endif /* PAGESIZE */
++-#     endif /* no NBPC */
++-#    endif /* no NBPG */
++-#   endif /* no EXEC_PAGESIZE */
++-#  else /* no HAVE_SYS_PARAM_H */
++-#   define getpagesize() 8192        /* punt totally */
++-#  endif /* no HAVE_SYS_PARAM_H */
++-# endif /* no _SC_PAGESIZE */
++-
++-#endif /* no HAVE_GETPAGESIZE */
++-
++-int
++-main ()
++-{
++-  char *data, *data2, *data3;
++-  int i, pagesize;
++-  int fd;
++-
++-  pagesize = getpagesize ();
++-
++-  /* First, make a file with some known garbage in it. */
++-  data = (char *) malloc (pagesize);
++-  if (!data)
++-    exit (1);
++-  for (i = 0; i < pagesize; ++i)
++-    *(data + i) = rand ();
++-  umask (0);
++-  fd = creat ("conftestmmap", 0600);
++-  if (fd < 0)
++-    exit (1);
++-  if (write (fd, data, pagesize) != pagesize)
++-    exit (1);
++-  close (fd);
++-
++-  /* Next, try to mmap the file at a fixed address which already has
++-     something else allocated at it.  If we can, also make sure that
++-     we see the same garbage.  */
++-  fd = open ("conftestmmap", O_RDWR);
++-  if (fd < 0)
++-    exit (1);
++-  data2 = (char *) malloc (2 * pagesize);
++-  if (!data2)
++-    exit (1);
++-  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
++-  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
++-                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
++-    exit (1);
++-  for (i = 0; i < pagesize; ++i)
++-    if (*(data + i) != *(data2 + i))
++-      exit (1);
++-
++-  /* Finally, make sure that changes to the mapped area do not
++-     percolate back to the file as seen by read().  (This is a bug on
++-     some variants of i386 svr4.0.)  */
++-  for (i = 0; i < pagesize; ++i)
++-    *(data2 + i) = *(data2 + i) + 1;
++-  data3 = (char *) malloc (pagesize);
++-  if (!data3)
++-    exit (1);
++-  if (read (fd, data3, pagesize) != pagesize)
++-    exit (1);
++-  for (i = 0; i < pagesize; ++i)
++-    if (*(data + i) != *(data3 + i))
++-      exit (1);
++-  close (fd);
++-  unlink ("conftestmmap");
++-  exit (0);
++-}], ac_cv_func_mmap_fixed_mapped=yes, ac_cv_func_mmap_fixed_mapped=no,
++-ac_cv_func_mmap_fixed_mapped=no)])
++-if test $ac_cv_func_mmap_fixed_mapped = yes; then
++-  AC_DEFINE(HAVE_MMAP, 1,
++-            [Define if you have a working `mmap' system call.])
++-fi
++-])# AC_FUNC_MMAP
++-
++-) dnl ifelse
++diff -ruN -x autom4te.cache autodiff-old/configure autodiff-new/configure
++--- autodiff-old/configure    2004-02-25 19:14:52.000000000 -0600
+++++ autodiff-new/configure    2004-04-06 17:47:16.000000000 -0500
++@@ -1,57 +1,326 @@
++ #! /bin/sh
++-
++ # Guess values for system-dependent variables and create Makefiles.
++-# Generated automatically using autoconf version 2.13 
++-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
+++# Generated by GNU Autoconf 2.59.
++ #
+++# Copyright (C) 2003 Free Software Foundation, Inc.
++ # This configure script is free software; the Free Software Foundation
++ # gives unlimited permission to copy, distribute and modify it.
+++## --------------------- ##
+++## M4sh Initialization.  ##
+++## --------------------- ##
+++
+++# Be Bourne compatible
+++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+++  emulate sh
+++  NULLCMD=:
+++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+++  # is contrary to our usage.  Disable this feature.
+++  alias -g '${1+"$@"}'='"$@"'
+++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+++  set -o posix
+++fi
+++DUALCASE=1; export DUALCASE # for MKS sh
+++
+++# Support unset when possible.
+++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+++  as_unset=unset
+++else
+++  as_unset=false
+++fi
+++
+++
+++# Work around bugs in pre-3.0 UWIN ksh.
+++$as_unset ENV MAIL MAILPATH
+++PS1='$ '
+++PS2='> '
+++PS4='+ '
+++
+++# NLS nuisances.
+++for as_var in \
+++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+++  LC_TELEPHONE LC_TIME
+++do
+++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
+++    eval $as_var=C; export $as_var
+++  else
+++    $as_unset $as_var
+++  fi
+++done
+++
+++# Required to use basename.
+++if expr a : '\(a\)' >/dev/null 2>&1; then
+++  as_expr=expr
+++else
+++  as_expr=false
+++fi
+++
+++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+++  as_basename=basename
+++else
+++  as_basename=false
+++fi
+++
+++
+++# Name of the executable.
+++as_me=`$as_basename "$0" ||
+++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+++      X"$0" : 'X\(//\)$' \| \
+++      X"$0" : 'X\(/\)$' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X/"$0" |
+++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+++       /^X\/\(\/\/\)$/{ s//\1/; q; }
+++       /^X\/\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++
+++
+++# PATH needs CR, and LINENO needs CR and PATH.
+++# Avoid depending upon Character Ranges.
+++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+++as_cr_digits='0123456789'
+++as_cr_alnum=$as_cr_Letters$as_cr_digits
+++
+++# The user is always right.
+++if test "${PATH_SEPARATOR+set}" != set; then
+++  echo "#! /bin/sh" >conf$$.sh
+++  echo  "exit 0"   >>conf$$.sh
+++  chmod +x conf$$.sh
+++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+++    PATH_SEPARATOR=';'
+++  else
+++    PATH_SEPARATOR=:
+++  fi
+++  rm -f conf$$.sh
+++fi
+++
+++
+++  as_lineno_1=$LINENO
+++  as_lineno_2=$LINENO
+++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+++  test "x$as_lineno_1" != "x$as_lineno_2" &&
+++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+++  # Find who we are.  Look in the path if we contain no path at all
+++  # relative or not.
+++  case $0 in
+++    *[\\/]* ) as_myself=$0 ;;
+++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+++done
+++
+++       ;;
+++  esac
+++  # We did not find ourselves, most probably we were run as `sh COMMAND'
+++  # in which case we are not to be found in the path.
+++  if test "x$as_myself" = x; then
+++    as_myself=$0
+++  fi
+++  if test ! -f "$as_myself"; then
+++    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
+++   { (exit 1); exit 1; }; }
+++  fi
+++  case $CONFIG_SHELL in
+++  '')
+++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for as_base in sh bash ksh sh5; do
+++      case $as_dir in
+++      /*)
+++        if ("$as_dir/$as_base" -c '
+++  as_lineno_1=$LINENO
+++  as_lineno_2=$LINENO
+++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+++  test "x$as_lineno_1" != "x$as_lineno_2" &&
+++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+++          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+++          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+++          CONFIG_SHELL=$as_dir/$as_base
+++          export CONFIG_SHELL
+++          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+++        fi;;
+++      esac
+++       done
+++done
+++;;
+++  esac
+++
+++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+++  # uniformly replaced by the line number.  The first 'sed' inserts a
+++  # line-number line before each line; the second 'sed' does the real
+++  # work.  The second script uses 'N' to pair each line-number line
+++  # with the numbered line, and appends trailing '-' during
+++  # substitution so that $LINENO is not a special case at line end.
+++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+++  sed '=' <$as_myself |
+++    sed '
+++      N
+++      s,$,-,
+++      : loop
+++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+++      t loop
+++      s,-$,,
+++      s,^['$as_cr_digits']*\n,,
+++    ' >$as_me.lineno &&
+++  chmod +x $as_me.lineno ||
+++    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+++   { (exit 1); exit 1; }; }
+++
+++  # Don't try to exec as it changes $[0], causing all sort of problems
+++  # (the dirname of $[0] is not the place where we might find the
+++  # original and so on.  Autoconf is especially sensible to this).
+++  . ./$as_me.lineno
+++  # Exit status is that of the last command.
+++  exit
+++}
+++
+++
+++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+++  *c*,-n*) ECHO_N= ECHO_C='
+++' ECHO_T='   ' ;;
+++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+++esac
+++
+++if expr a : '\(a\)' >/dev/null 2>&1; then
+++  as_expr=expr
+++else
+++  as_expr=false
+++fi
+++
+++rm -f conf$$ conf$$.exe conf$$.file
+++echo >conf$$.file
+++if ln -s conf$$.file conf$$ 2>/dev/null; then
+++  # We could just check for DJGPP; but this test a) works b) is more generic
+++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+++  if test -f conf$$.exe; then
+++    # Don't use ln at all; we don't have any links
+++    as_ln_s='cp -p'
+++  else
+++    as_ln_s='ln -s'
+++  fi
+++elif ln conf$$.file conf$$ 2>/dev/null; then
+++  as_ln_s=ln
+++else
+++  as_ln_s='cp -p'
+++fi
+++rm -f conf$$ conf$$.exe conf$$.file
+++
+++if mkdir -p . 2>/dev/null; then
+++  as_mkdir_p=:
+++else
+++  test -d ./-p && rmdir ./-p
+++  as_mkdir_p=false
+++fi
+++
+++as_executable_p="test -f"
+++
+++# Sed expression to map a string onto a valid CPP name.
+++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+++
+++# Sed expression to map a string onto a valid variable name.
+++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+++
++ 
++-# Defaults:
++-ac_help=
+++# IFS
+++# We need space, tab and new line, in precisely that order.
+++as_nl='
+++'
+++IFS="        $as_nl"
+++
+++# CDPATH.
+++$as_unset CDPATH
+++
+++
+++# Name of the host.
+++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+++# so uname gets run too.
+++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+++
+++exec 6>&1
+++
+++#
+++# Initializations.
+++#
++ ac_default_prefix=/usr/local
++-# Any additions from configure.in:
++-ac_help="$ac_help
++-  --without-gcc           don't use GCC to compile Emacs if GCC is found"
++-ac_help="$ac_help
++-  --without-pop           don't support POP mail retrieval with movemail"
++-ac_help="$ac_help
++-  --with-kerberos         support Kerberos-authenticated POP"
++-ac_help="$ac_help
++-  --with-kerberos5        support Kerberos version 5 authenticated POP"
++-ac_help="$ac_help
++-  --with-hesiod           support Hesiod to get the POP server host"
++-ac_help="$ac_help
++-  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)"
++-ac_help="$ac_help
++-  --with-xpm              use -lXpm for displaying XPM images"
++-ac_help="$ac_help
++-  --with-jpeg             use -ljpeg for displaying JPEG images"
++-ac_help="$ac_help
++-  --with-tiff             use -ltiff for displaying TIFF images"
++-ac_help="$ac_help
++-  --with-gif              use -lungif for displaying GIF images"
++-ac_help="$ac_help
++-  --with-png              use -lpng for displaying PNG images"
++-ac_help="$ac_help
++-  --without-toolkit-scroll-bars
++-                          don't use Motif or Xaw3d scroll bars"
++-ac_help="$ac_help
++-  --without-xim           don't use X11 XIM"
++-ac_help="$ac_help
++-  --disable-largefile     omit support for large files"
++-ac_help="$ac_help
++-  --with-x                use the X Window System"
+++ac_config_libobj_dir=.
+++cross_compiling=no
+++subdirs=
+++MFLAGS=
+++MAKEFLAGS=
+++SHELL=${CONFIG_SHELL-/bin/sh}
+++
+++# Maximum number of lines to put in a shell here document.
+++# This variable seems obsolete.  It should probably be removed, and
+++# only ac_max_sed_lines should be used.
+++: ${ac_max_here_lines=38}
+++
+++# Identity of this package.
+++PACKAGE_NAME=
+++PACKAGE_TARNAME=
+++PACKAGE_VERSION=
+++PACKAGE_STRING=
+++PACKAGE_BUGREPORT=
+++
+++ac_unique_file="src/lisp.h"
+++ac_config_libobj_dir=src
+++# Factoring default headers for most tests.
+++ac_includes_default="\
+++#include <stdio.h>
+++#if HAVE_SYS_TYPES_H
+++# include <sys/types.h>
+++#endif
+++#if HAVE_SYS_STAT_H
+++# include <sys/stat.h>
+++#endif
+++#if STDC_HEADERS
+++# include <stdlib.h>
+++# include <stddef.h>
+++#else
+++# if HAVE_STDLIB_H
+++#  include <stdlib.h>
+++# endif
+++#endif
+++#if HAVE_STRING_H
+++# if !STDC_HEADERS && HAVE_MEMORY_H
+++#  include <memory.h>
+++# endif
+++# include <string.h>
+++#endif
+++#if HAVE_STRINGS_H
+++# include <strings.h>
+++#endif
+++#if HAVE_INTTYPES_H
+++# include <inttypes.h>
+++#else
+++# if HAVE_STDINT_H
+++#  include <stdint.h>
+++# endif
+++#endif
+++#if HAVE_UNISTD_H
+++# include <unistd.h>
+++#endif"
+++
+++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'
+++ac_subst_files=''
++ 
++ # Initialize some variables set by options.
+++ac_init_help=
+++ac_init_version=false
++ # The variables have the same names as the options, with
++ # dashes changed to underlines.
++-build=NONE
++-cache_file=./config.cache
+++cache_file=/dev/null
++ exec_prefix=NONE
++-host=NONE
++ no_create=
++-nonopt=NONE
++ no_recursion=
++ prefix=NONE
++ program_prefix=NONE
++@@ -60,10 +329,15 @@
++ silent=
++ site=
++ srcdir=
++-target=NONE
++ verbose=
++ x_includes=NONE
++ x_libraries=NONE
+++
+++# Installation directory options.
+++# These are left unexpanded so users can "make install exec_prefix=/foo"
+++# and all the variables that are supposed to be based on exec_prefix
+++# by default will actually change.
+++# Use braces instead of parens because sh, perl, etc. also accept them.
++ bindir='${exec_prefix}/bin'
++ sbindir='${exec_prefix}/sbin'
++ libexecdir='${exec_prefix}/libexec'
++@@ -77,17 +351,9 @@
++ infodir='${prefix}/info'
++ mandir='${prefix}/man'
++ 
++-# Initialize some other variables.
++-subdirs=
++-MFLAGS= MAKEFLAGS=
++-SHELL=${CONFIG_SHELL-/bin/sh}
++-# Maximum number of lines to put in a shell here document.
++-ac_max_here_lines=12
++-
++ ac_prev=
++ for ac_option
++ do
++-
++   # If the previous option needs an argument, assign it.
++   if test -n "$ac_prev"; then
++     eval "$ac_prev=\$ac_option"
++@@ -95,59 +361,59 @@
++     continue
++   fi
++ 
++-  case "$ac_option" in
++-  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
++-  *) ac_optarg= ;;
++-  esac
+++  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
++ 
++   # Accept the important Cygnus configure options, so we can diagnose typos.
++ 
++-  case "$ac_option" in
+++  case $ac_option in
++ 
++   -bindir | --bindir | --bindi | --bind | --bin | --bi)
++     ac_prev=bindir ;;
++   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
++-    bindir="$ac_optarg" ;;
+++    bindir=$ac_optarg ;;
++ 
++   -build | --build | --buil | --bui | --bu)
++-    ac_prev=build ;;
+++    ac_prev=build_alias ;;
++   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
++-    build="$ac_optarg" ;;
+++    build_alias=$ac_optarg ;;
++ 
++   -cache-file | --cache-file | --cache-fil | --cache-fi \
++   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
++     ac_prev=cache_file ;;
++   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
++   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
++-    cache_file="$ac_optarg" ;;
+++    cache_file=$ac_optarg ;;
+++
+++  --config-cache | -C)
+++    cache_file=config.cache ;;
++ 
++   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
++     ac_prev=datadir ;;
++   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
++   | --da=*)
++-    datadir="$ac_optarg" ;;
+++    datadir=$ac_optarg ;;
++ 
++   -disable-* | --disable-*)
++-    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
+++    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
++     # Reject names that are not valid shell variable names.
++-    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
++-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
++-    fi
++-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
++-    eval "enable_${ac_feature}=no" ;;
+++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+++   { (exit 1); exit 1; }; }
+++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+++    eval "enable_$ac_feature=no" ;;
++ 
++   -enable-* | --enable-*)
++-    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
+++    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
++     # Reject names that are not valid shell variable names.
++-    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
++-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
++-    fi
++-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
++-    case "$ac_option" in
++-      *=*) ;;
+++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+++   { (exit 1); exit 1; }; }
+++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+++    case $ac_option in
+++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++       *) ac_optarg=yes ;;
++     esac
++-    eval "enable_${ac_feature}='$ac_optarg'" ;;
+++    eval "enable_$ac_feature='$ac_optarg'" ;;
++ 
++   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
++   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
++@@ -156,95 +422,47 @@
++   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
++   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
++   | --exec=* | --exe=* | --ex=*)
++-    exec_prefix="$ac_optarg" ;;
+++    exec_prefix=$ac_optarg ;;
++ 
++   -gas | --gas | --ga | --g)
++     # Obsolete; use --with-gas.
++     with_gas=yes ;;
++ 
++-  -help | --help | --hel | --he)
++-    # Omit some internal or obsolete options to make the list less imposing.
++-    # This message is too long to be a string in the A/UX 3.1 sh.
++-    cat << EOF
++-Usage: configure [options] [host]
++-Options: [defaults in brackets after descriptions]
++-Configuration:
++-  --cache-file=FILE       cache test results in FILE
++-  --help                  print this message
++-  --no-create             do not create output files
++-  --quiet, --silent       do not print \`checking...' messages
++-  --version               print the version of autoconf that created configure
++-Directory and file names:
++-  --prefix=PREFIX         install architecture-independent files in PREFIX
++-                          [$ac_default_prefix]
++-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
++-                          [same as prefix]
++-  --bindir=DIR            user executables in DIR [EPREFIX/bin]
++-  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
++-  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
++-  --datadir=DIR           read-only architecture-independent data in DIR
++-                          [PREFIX/share]
++-  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
++-  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
++-                          [PREFIX/com]
++-  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
++-  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
++-  --includedir=DIR        C header files in DIR [PREFIX/include]
++-  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
++-  --infodir=DIR           info documentation in DIR [PREFIX/info]
++-  --mandir=DIR            man documentation in DIR [PREFIX/man]
++-  --srcdir=DIR            find the sources in DIR [configure dir or ..]
++-  --program-prefix=PREFIX prepend PREFIX to installed program names
++-  --program-suffix=SUFFIX append SUFFIX to installed program names
++-  --program-transform-name=PROGRAM
++-                          run sed PROGRAM on installed program names
++-EOF
++-    cat << EOF
++-Host type:
++-  --build=BUILD           configure for building on BUILD [BUILD=HOST]
++-  --host=HOST             configure for HOST [guessed]
++-  --target=TARGET         configure for TARGET [TARGET=HOST]
++-Features and packages:
++-  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
++-  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
++-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
++-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
++-  --x-includes=DIR        X include files are in DIR
++-  --x-libraries=DIR       X library files are in DIR
++-EOF
++-    if test -n "$ac_help"; then
++-      echo "--enable and --with options recognized:$ac_help"
++-    fi
++-    exit 0 ;;
+++  -help | --help | --hel | --he | -h)
+++    ac_init_help=long ;;
+++  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+++    ac_init_help=recursive ;;
+++  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+++    ac_init_help=short ;;
++ 
++   -host | --host | --hos | --ho)
++-    ac_prev=host ;;
+++    ac_prev=host_alias ;;
++   -host=* | --host=* | --hos=* | --ho=*)
++-    host="$ac_optarg" ;;
+++    host_alias=$ac_optarg ;;
++ 
++   -includedir | --includedir | --includedi | --included | --include \
++   | --includ | --inclu | --incl | --inc)
++     ac_prev=includedir ;;
++   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
++   | --includ=* | --inclu=* | --incl=* | --inc=*)
++-    includedir="$ac_optarg" ;;
+++    includedir=$ac_optarg ;;
++ 
++   -infodir | --infodir | --infodi | --infod | --info | --inf)
++     ac_prev=infodir ;;
++   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
++-    infodir="$ac_optarg" ;;
+++    infodir=$ac_optarg ;;
++ 
++   -libdir | --libdir | --libdi | --libd)
++     ac_prev=libdir ;;
++   -libdir=* | --libdir=* | --libdi=* | --libd=*)
++-    libdir="$ac_optarg" ;;
+++    libdir=$ac_optarg ;;
++ 
++   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
++   | --libexe | --libex | --libe)
++     ac_prev=libexecdir ;;
++   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
++   | --libexe=* | --libex=* | --libe=*)
++-    libexecdir="$ac_optarg" ;;
+++    libexecdir=$ac_optarg ;;
++ 
++   -localstatedir | --localstatedir | --localstatedi | --localstated \
++   | --localstate | --localstat | --localsta | --localst \
++@@ -253,19 +471,19 @@
++   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
++   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
++   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
++-    localstatedir="$ac_optarg" ;;
+++    localstatedir=$ac_optarg ;;
++ 
++   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
++     ac_prev=mandir ;;
++   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
++-    mandir="$ac_optarg" ;;
+++    mandir=$ac_optarg ;;
++ 
++   -nfp | --nfp | --nf)
++     # Obsolete; use --without-fp.
++     with_fp=no ;;
++ 
++   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
++-  | --no-cr | --no-c)
+++  | --no-cr | --no-c | -n)
++     no_create=yes ;;
++ 
++   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
++@@ -279,26 +497,26 @@
++   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
++   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
++   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
++-    oldincludedir="$ac_optarg" ;;
+++    oldincludedir=$ac_optarg ;;
++ 
++   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
++     ac_prev=prefix ;;
++   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
++-    prefix="$ac_optarg" ;;
+++    prefix=$ac_optarg ;;
++ 
++   -program-prefix | --program-prefix | --program-prefi | --program-pref \
++   | --program-pre | --program-pr | --program-p)
++     ac_prev=program_prefix ;;
++   -program-prefix=* | --program-prefix=* | --program-prefi=* \
++   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
++-    program_prefix="$ac_optarg" ;;
+++    program_prefix=$ac_optarg ;;
++ 
++   -program-suffix | --program-suffix | --program-suffi | --program-suff \
++   | --program-suf | --program-su | --program-s)
++     ac_prev=program_suffix ;;
++   -program-suffix=* | --program-suffix=* | --program-suffi=* \
++   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
++-    program_suffix="$ac_optarg" ;;
+++    program_suffix=$ac_optarg ;;
++ 
++   -program-transform-name | --program-transform-name \
++   | --program-transform-nam | --program-transform-na \
++@@ -315,7 +533,7 @@
++   | --program-transfo=* | --program-transf=* \
++   | --program-trans=* | --program-tran=* \
++   | --progr-tra=* | --program-tr=* | --program-t=*)
++-    program_transform_name="$ac_optarg" ;;
+++    program_transform_name=$ac_optarg ;;
++ 
++   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++   | -silent | --silent | --silen | --sile | --sil)
++@@ -325,7 +543,7 @@
++     ac_prev=sbindir ;;
++   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
++   | --sbi=* | --sb=*)
++-    sbindir="$ac_optarg" ;;
+++    sbindir=$ac_optarg ;;
++ 
++   -sharedstatedir | --sharedstatedir | --sharedstatedi \
++   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
++@@ -336,58 +554,57 @@
++   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
++   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
++   | --sha=* | --sh=*)
++-    sharedstatedir="$ac_optarg" ;;
+++    sharedstatedir=$ac_optarg ;;
++ 
++   -site | --site | --sit)
++     ac_prev=site ;;
++   -site=* | --site=* | --sit=*)
++-    site="$ac_optarg" ;;
+++    site=$ac_optarg ;;
++ 
++   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
++     ac_prev=srcdir ;;
++   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
++-    srcdir="$ac_optarg" ;;
+++    srcdir=$ac_optarg ;;
++ 
++   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
++   | --syscon | --sysco | --sysc | --sys | --sy)
++     ac_prev=sysconfdir ;;
++   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
++   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
++-    sysconfdir="$ac_optarg" ;;
+++    sysconfdir=$ac_optarg ;;
++ 
++   -target | --target | --targe | --targ | --tar | --ta | --t)
++-    ac_prev=target ;;
+++    ac_prev=target_alias ;;
++   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
++-    target="$ac_optarg" ;;
+++    target_alias=$ac_optarg ;;
++ 
++   -v | -verbose | --verbose | --verbos | --verbo | --verb)
++     verbose=yes ;;
++ 
++-  -version | --version | --versio | --versi | --vers)
++-    echo "configure generated by autoconf version 2.13"
++-    exit 0 ;;
+++  -version | --version | --versio | --versi | --vers | -V)
+++    ac_init_version=: ;;
++ 
++   -with-* | --with-*)
++-    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
+++    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
++     # Reject names that are not valid shell variable names.
++-    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
++-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
++-    fi
+++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+++      { echo "$as_me: error: invalid package name: $ac_package" >&2
+++   { (exit 1); exit 1; }; }
++     ac_package=`echo $ac_package| sed 's/-/_/g'`
++-    case "$ac_option" in
++-      *=*) ;;
+++    case $ac_option in
+++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++       *) ac_optarg=yes ;;
++     esac
++-    eval "with_${ac_package}='$ac_optarg'" ;;
+++    eval "with_$ac_package='$ac_optarg'" ;;
++ 
++   -without-* | --without-*)
++-    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
+++    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
++     # Reject names that are not valid shell variable names.
++-    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
++-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
++-    fi
++-    ac_package=`echo $ac_package| sed 's/-/_/g'`
++-    eval "with_${ac_package}=no" ;;
+++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+++      { echo "$as_me: error: invalid package name: $ac_package" >&2
+++   { (exit 1); exit 1; }; }
+++    ac_package=`echo $ac_package | sed 's/-/_/g'`
+++    eval "with_$ac_package=no" ;;
++ 
++   --x)
++     # Obsolete; use --with-x.
++@@ -398,99 +615,110 @@
++     ac_prev=x_includes ;;
++   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
++   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
++-    x_includes="$ac_optarg" ;;
+++    x_includes=$ac_optarg ;;
++ 
++   -x-libraries | --x-libraries | --x-librarie | --x-librari \
++   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
++     ac_prev=x_libraries ;;
++   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
++   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
++-    x_libraries="$ac_optarg" ;;
+++    x_libraries=$ac_optarg ;;
++ 
++-  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
+++  -*) { echo "$as_me: error: unrecognized option: $ac_option
+++Try \`$0 --help' for more information." >&2
+++   { (exit 1); exit 1; }; }
++     ;;
++ 
+++  *=*)
+++    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+++    # Reject names that are not valid shell variable names.
+++    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+++      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+++   { (exit 1); exit 1; }; }
+++    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+++    eval "$ac_envvar='$ac_optarg'"
+++    export $ac_envvar ;;
+++
++   *)
++-    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
++-      echo "configure: warning: $ac_option: invalid host type" 1>&2
++-    fi
++-    if test "x$nonopt" != xNONE; then
++-      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
++-    fi
++-    nonopt="$ac_option"
+++    # FIXME: should be removed in autoconf 3.0.
+++    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+++    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+++      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+++    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
++     ;;
++ 
++   esac
++ done
++ 
++ if test -n "$ac_prev"; then
++-  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
+++  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+++  { echo "$as_me: error: missing argument to $ac_option" >&2
+++   { (exit 1); exit 1; }; }
++ fi
++ 
++-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
++-
++-# File descriptor usage:
++-# 0 standard input
++-# 1 file creation
++-# 2 errors and warnings
++-# 3 some systems may open it to /dev/tty
++-# 4 used on the Kubota Titan
++-# 6 checking for... messages and results
++-# 5 compiler messages saved in config.log
++-if test "$silent" = yes; then
++-  exec 6>/dev/null
++-else
++-  exec 6>&1
++-fi
++-exec 5>./config.log
++-
++-echo "\
++-This file contains any messages produced by compilers while
++-running configure, to aid debugging if configure makes a mistake.
++-" 1>&5
+++# Be sure to have absolute paths.
+++for ac_var in exec_prefix prefix
+++do
+++  eval ac_val=$`echo $ac_var`
+++  case $ac_val in
+++    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+++   { (exit 1); exit 1; }; };;
+++  esac
+++done
++ 
++-# Strip out --no-create and --no-recursion so they do not pile up.
++-# Also quote any args containing shell metacharacters.
++-ac_configure_args=
++-for ac_arg
+++# Be sure to have absolute paths.
+++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+++           localstatedir libdir includedir oldincludedir infodir mandir
++ do
++-  case "$ac_arg" in
++-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
++-  | --no-cr | --no-c) ;;
++-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
++-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
++-  *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
++-  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
++-  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+++  eval ac_val=$`echo $ac_var`
+++  case $ac_val in
+++    [\\/$]* | ?:[\\/]* ) ;;
+++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+++   { (exit 1); exit 1; }; };;
++   esac
++ done
++ 
++-# NLS nuisances.
++-# Only set these to C if already set.  These must not be set unconditionally
++-# because not all systems understand e.g. LANG=C (notably SCO).
++-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
++-# Non-C LC_CTYPE values break the ctype check.
++-if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
++-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
++-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
++-if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+++# There might be people who depend on the old broken behavior: `$host'
+++# used to hold the argument of --host etc.
+++# FIXME: To remove some day.
+++build=$build_alias
+++host=$host_alias
+++target=$target_alias
+++
+++# FIXME: To remove some day.
+++if test "x$host_alias" != x; then
+++  if test "x$build_alias" = x; then
+++    cross_compiling=maybe
+++    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+++    If a cross compiler is detected then cross compile mode will be used." >&2
+++  elif test "x$build_alias" != "x$host_alias"; then
+++    cross_compiling=yes
+++  fi
+++fi
++ 
++-# confdefs.h avoids OS command line length limits that DEFS can exceed.
++-rm -rf conftest* confdefs.h
++-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
++-echo > confdefs.h
+++ac_tool_prefix=
+++test -n "$host_alias" && ac_tool_prefix=$host_alias-
+++
+++test "$silent" = yes && exec 6>/dev/null
++ 
++-# A filename unique to this package, relative to the directory that
++-# configure is in, which we can look for to find out if srcdir is correct.
++-ac_unique_file=src/lisp.h
++ 
++ # Find the source files, if location was not specified.
++ if test -z "$srcdir"; then
++   ac_srcdir_defaulted=yes
++   # Try the directory containing this script, then its parent.
++-  ac_prog=$0
++-  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
++-  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+++  ac_confdir=`(dirname "$0") 2>/dev/null ||
+++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$0" : 'X\(//\)[^/]' \| \
+++      X"$0" : 'X\(//\)$' \| \
+++      X"$0" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$0" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
++   srcdir=$ac_confdir
++   if test ! -r $srcdir/$ac_unique_file; then
++     srcdir=..
++@@ -500,13 +728,487 @@
++ fi
++ if test ! -r $srcdir/$ac_unique_file; then
++   if test "$ac_srcdir_defaulted" = yes; then
++-    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+++   { (exit 1); exit 1; }; }
++   else
++-    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+++   { (exit 1); exit 1; }; }
++   fi
++ fi
++-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+++  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+++   { (exit 1); exit 1; }; }
+++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+++ac_env_build_alias_set=${build_alias+set}
+++ac_env_build_alias_value=$build_alias
+++ac_cv_env_build_alias_set=${build_alias+set}
+++ac_cv_env_build_alias_value=$build_alias
+++ac_env_host_alias_set=${host_alias+set}
+++ac_env_host_alias_value=$host_alias
+++ac_cv_env_host_alias_set=${host_alias+set}
+++ac_cv_env_host_alias_value=$host_alias
+++ac_env_target_alias_set=${target_alias+set}
+++ac_env_target_alias_value=$target_alias
+++ac_cv_env_target_alias_set=${target_alias+set}
+++ac_cv_env_target_alias_value=$target_alias
+++ac_env_CC_set=${CC+set}
+++ac_env_CC_value=$CC
+++ac_cv_env_CC_set=${CC+set}
+++ac_cv_env_CC_value=$CC
+++ac_env_CFLAGS_set=${CFLAGS+set}
+++ac_env_CFLAGS_value=$CFLAGS
+++ac_cv_env_CFLAGS_set=${CFLAGS+set}
+++ac_cv_env_CFLAGS_value=$CFLAGS
+++ac_env_LDFLAGS_set=${LDFLAGS+set}
+++ac_env_LDFLAGS_value=$LDFLAGS
+++ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+++ac_cv_env_LDFLAGS_value=$LDFLAGS
+++ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+++ac_env_CPPFLAGS_value=$CPPFLAGS
+++ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+++ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+++ac_env_CPP_set=${CPP+set}
+++ac_env_CPP_value=$CPP
+++ac_cv_env_CPP_set=${CPP+set}
+++ac_cv_env_CPP_value=$CPP
+++
+++#
+++# Report the --help message.
+++#
+++if test "$ac_init_help" = "long"; then
+++  # Omit some internal or obsolete options to make the list less imposing.
+++  # This message is too long to be a string in the A/UX 3.1 sh.
+++  cat <<_ACEOF
+++\`configure' configures this package to adapt to many kinds of systems.
+++
+++Usage: $0 [OPTION]... [VAR=VALUE]...
+++
+++To assign environment variables (e.g., CC, CFLAGS...), specify them as
+++VAR=VALUE.  See below for descriptions of some of the useful variables.
+++
+++Defaults for the options are specified in brackets.
+++
+++Configuration:
+++  -h, --help              display this help and exit
+++      --help=short        display options specific to this package
+++      --help=recursive    display the short help of all the included packages
+++  -V, --version           display version information and exit
+++  -q, --quiet, --silent   do not print \`checking...' messages
+++      --cache-file=FILE   cache test results in FILE [disabled]
+++  -C, --config-cache      alias for \`--cache-file=config.cache'
+++  -n, --no-create         do not create output files
+++      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+++
+++_ACEOF
+++
+++  cat <<_ACEOF
+++Installation directories:
+++  --prefix=PREFIX         install architecture-independent files in PREFIX
+++                       [$ac_default_prefix]
+++  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+++                       [PREFIX]
+++
+++By default, \`make install' will install all the files in
+++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+++an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+++for instance \`--prefix=\$HOME'.
+++
+++For better control, use the options below.
+++
+++Fine tuning of the installation directories:
+++  --bindir=DIR           user executables [EPREFIX/bin]
+++  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+++  --libexecdir=DIR       program executables [EPREFIX/libexec]
+++  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+++  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+++  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+++  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+++  --libdir=DIR           object code libraries [EPREFIX/lib]
+++  --includedir=DIR       C header files [PREFIX/include]
+++  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+++  --infodir=DIR          info documentation [PREFIX/info]
+++  --mandir=DIR           man documentation [PREFIX/man]
+++_ACEOF
+++
+++  cat <<\_ACEOF
+++
+++X features:
+++  --x-includes=DIR    X include files are in DIR
+++  --x-libraries=DIR   X library files are in DIR
+++
+++System types:
+++  --build=BUILD     configure for building on BUILD [guessed]
+++  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
+++_ACEOF
+++fi
+++
+++if test -n "$ac_init_help"; then
+++
+++  cat <<\_ACEOF
+++
+++Optional Features:
+++  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+++  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+++  --disable-largefile     omit support for large files
+++
+++Optional Packages:
+++  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+++  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+++  --without-gcc           don't use GCC to compile Emacs if GCC is found
+++  --without-pop           don't support POP mail retrieval with movemail
+++  --with-kerberos         support Kerberos-authenticated POP
+++  --with-kerberos5        support Kerberos version 5 authenticated POP
+++  --with-hesiod           support Hesiod to get the POP server host
+++  --with-mail-spool-directory=DIR   system mail spool is DIR
+++  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)
+++  --with-xpm              use -lXpm for displaying XPM images
+++  --with-jpeg             use -ljpeg for displaying JPEG images
+++  --with-tiff             use -ltiff for displaying TIFF images
+++  --with-gif              use -lungif for displaying GIF images
+++  --with-png              use -lpng for displaying PNG images
+++  --without-toolkit-scroll-bars
+++                          don't use Motif or Xaw3d scroll bars
+++  --without-xim           don't use X11 XIM
+++  --with-x                use the X Window System
+++
+++Some influential environment variables:
+++  CC          C compiler command
+++  CFLAGS      C compiler flags
+++  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+++              nonstandard directory <lib dir>
+++  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+++              headers in a nonstandard directory <include dir>
+++  CPP         C preprocessor
+++
+++Use these variables to override the choices made by `configure' or to help
+++it to find libraries and programs with nonstandard names/locations.
+++
+++_ACEOF
+++fi
+++
+++if test "$ac_init_help" = "recursive"; then
+++  # If there are subdirs, report their specific --help.
+++  ac_popdir=`pwd`
+++  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+++    test -d $ac_dir || continue
+++    ac_builddir=.
+++
+++if test "$ac_dir" != .; then
+++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+++  # A "../" for each directory in $ac_dir_suffix.
+++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+++else
+++  ac_dir_suffix= ac_top_builddir=
+++fi
+++
+++case $srcdir in
+++  .)  # No --srcdir option.  We are building in place.
+++    ac_srcdir=.
+++    if test -z "$ac_top_builddir"; then
+++       ac_top_srcdir=.
+++    else
+++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+++    fi ;;
+++  [\\/]* | ?:[\\/]* )  # Absolute path.
+++    ac_srcdir=$srcdir$ac_dir_suffix;
+++    ac_top_srcdir=$srcdir ;;
+++  *) # Relative path.
+++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+++esac
+++
+++# Do not use `cd foo && pwd` to compute absolute paths, because
+++# the directories may not exist.
+++case `pwd` in
+++.) ac_abs_builddir="$ac_dir";;
+++*)
+++  case "$ac_dir" in
+++  .) ac_abs_builddir=`pwd`;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_builddir=${ac_top_builddir}.;;
+++*)
+++  case ${ac_top_builddir}. in
+++  .) ac_abs_top_builddir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_srcdir=$ac_srcdir;;
+++*)
+++  case $ac_srcdir in
+++  .) ac_abs_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_srcdir=$ac_top_srcdir;;
+++*)
+++  case $ac_top_srcdir in
+++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+++  esac;;
+++esac
+++
+++    cd $ac_dir
+++    # Check for guested configure; otherwise get Cygnus style configure.
+++    if test -f $ac_srcdir/configure.gnu; then
+++      echo
+++      $SHELL $ac_srcdir/configure.gnu  --help=recursive
+++    elif test -f $ac_srcdir/configure; then
+++      echo
+++      $SHELL $ac_srcdir/configure  --help=recursive
+++    elif test -f $ac_srcdir/configure.ac ||
+++        test -f $ac_srcdir/configure.in; then
+++      echo
+++      $ac_configure --help
+++    else
+++      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+++    fi
+++    cd "$ac_popdir"
+++  done
+++fi
+++
+++test -n "$ac_init_help" && exit 0
+++if $ac_init_version; then
+++  cat <<\_ACEOF
+++
+++Copyright (C) 2003 Free Software Foundation, Inc.
+++This configure script is free software; the Free Software Foundation
+++gives unlimited permission to copy, distribute and modify it.
+++_ACEOF
+++  exit 0
+++fi
+++exec 5>config.log
+++cat >&5 <<_ACEOF
+++This file contains any messages produced by compilers while
+++running configure, to aid debugging if configure makes a mistake.
+++
+++It was created by $as_me, which was
+++generated by GNU Autoconf 2.59.  Invocation command line was
+++
+++  $ $0 $@
+++
+++_ACEOF
+++{
+++cat <<_ASUNAME
+++## --------- ##
+++## Platform. ##
+++## --------- ##
+++
+++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+++uname -m = `(uname -m) 2>/dev/null || echo unknown`
+++uname -r = `(uname -r) 2>/dev/null || echo unknown`
+++uname -s = `(uname -s) 2>/dev/null || echo unknown`
+++uname -v = `(uname -v) 2>/dev/null || echo unknown`
+++
+++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+++/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
+++
+++/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
+++/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
+++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+++hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
+++/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
+++/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
+++/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
+++
+++_ASUNAME
+++
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  echo "PATH: $as_dir"
+++done
+++
+++} >&5
+++
+++cat >&5 <<_ACEOF
+++
+++
+++## ----------- ##
+++## Core tests. ##
+++## ----------- ##
+++
+++_ACEOF
+++
+++
+++# Keep a trace of the command line.
+++# Strip out --no-create and --no-recursion so they do not pile up.
+++# Strip out --silent because we don't want to record it for future runs.
+++# Also quote any args containing shell meta-characters.
+++# Make two passes to allow for proper duplicate-argument suppression.
+++ac_configure_args=
+++ac_configure_args0=
+++ac_configure_args1=
+++ac_sep=
+++ac_must_keep_next=false
+++for ac_pass in 1 2
+++do
+++  for ac_arg
+++  do
+++    case $ac_arg in
+++    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+++    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+++    | -silent | --silent | --silen | --sile | --sil)
+++      continue ;;
+++    *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+++      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+++    esac
+++    case $ac_pass in
+++    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+++    2)
+++      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+++      if test $ac_must_keep_next = true; then
+++     ac_must_keep_next=false # Got value, back to normal.
+++      else
+++     case $ac_arg in
+++       *=* | --config-cache | -C | -disable-* | --disable-* \
+++       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+++       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+++       | -with-* | --with-* | -without-* | --without-* | --x)
+++         case "$ac_configure_args0 " in
+++           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+++         esac
+++         ;;
+++       -* ) ac_must_keep_next=true ;;
+++     esac
+++      fi
+++      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+++      # Get rid of the leading space.
+++      ac_sep=" "
+++      ;;
+++    esac
+++  done
+++done
+++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
+++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+++
+++# When interrupted or exit'd, cleanup temporary files, and complete
+++# config.log.  We remove comments because anyway the quotes in there
+++# would cause problems or look ugly.
+++# WARNING: Be sure not to use single quotes in there, as some shells,
+++# such as our DU 5.0 friend, will then `close' the trap.
+++trap 'exit_status=$?
+++  # Save into config.log some information that might help in debugging.
+++  {
+++    echo
+++
+++    cat <<\_ASBOX
+++## ---------------- ##
+++## Cache variables. ##
+++## ---------------- ##
+++_ASBOX
+++    echo
+++    # The following way of writing the cache mishandles newlines in values,
+++{
+++  (set) 2>&1 |
+++    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+++    *ac_space=\ *)
+++      sed -n \
+++     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+++       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+++      ;;
+++    *)
+++      sed -n \
+++     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+++      ;;
+++    esac;
+++}
+++    echo
+++
+++    cat <<\_ASBOX
+++## ----------------- ##
+++## Output variables. ##
+++## ----------------- ##
+++_ASBOX
+++    echo
+++    for ac_var in $ac_subst_vars
+++    do
+++      eval ac_val=$`echo $ac_var`
+++      echo "$ac_var='"'"'$ac_val'"'"'"
+++    done | sort
+++    echo
+++
+++    if test -n "$ac_subst_files"; then
+++      cat <<\_ASBOX
+++## ------------- ##
+++## Output files. ##
+++## ------------- ##
+++_ASBOX
+++      echo
+++      for ac_var in $ac_subst_files
+++      do
+++     eval ac_val=$`echo $ac_var`
+++     echo "$ac_var='"'"'$ac_val'"'"'"
+++      done | sort
+++      echo
+++    fi
+++
+++    if test -s confdefs.h; then
+++      cat <<\_ASBOX
+++## ----------- ##
+++## confdefs.h. ##
+++## ----------- ##
+++_ASBOX
+++      echo
+++      sed "/^$/d" confdefs.h | sort
+++      echo
+++    fi
+++    test "$ac_signal" != 0 &&
+++      echo "$as_me: caught signal $ac_signal"
+++    echo "$as_me: exit $exit_status"
+++  } >&5
+++  rm -f core *.core &&
+++  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
+++    exit $exit_status
+++     ' 0
+++for ac_signal in 1 2 13 15; do
+++  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+++done
+++ac_signal=0
+++
+++# confdefs.h avoids OS command line length limits that DEFS can exceed.
+++rm -rf conftest* confdefs.h
+++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+++echo >confdefs.h
++ 
+++# Predefined preprocessor variables.
+++
+++cat >>confdefs.h <<_ACEOF
+++#define PACKAGE_NAME "$PACKAGE_NAME"
+++_ACEOF
+++
+++
+++cat >>confdefs.h <<_ACEOF
+++#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+++_ACEOF
+++
+++
+++cat >>confdefs.h <<_ACEOF
+++#define PACKAGE_VERSION "$PACKAGE_VERSION"
+++_ACEOF
+++
+++
+++cat >>confdefs.h <<_ACEOF
+++#define PACKAGE_STRING "$PACKAGE_STRING"
+++_ACEOF
+++
+++
+++cat >>confdefs.h <<_ACEOF
+++#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+++_ACEOF
+++
+++
+++# Let the site file select an alternate cache file if it wants to.
++ # Prefer explicitly selected file to automatically selected ones.
++ if test -z "$CONFIG_SITE"; then
++   if test "x$prefix" != xNONE; then
++@@ -517,43 +1219,109 @@
++ fi
++ for ac_site_file in $CONFIG_SITE; do
++   if test -r "$ac_site_file"; then
++-    echo "loading site script $ac_site_file"
+++    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+++echo "$as_me: loading site script $ac_site_file" >&6;}
+++    sed 's/^/| /' "$ac_site_file" >&5
++     . "$ac_site_file"
++   fi
++ done
++ 
++ if test -r "$cache_file"; then
++-  echo "loading cache $cache_file"
++-  . $cache_file
+++  # Some versions of bash will fail to source /dev/null (special
+++  # files actually), so we avoid doing that.
+++  if test -f "$cache_file"; then
+++    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
+++echo "$as_me: loading cache $cache_file" >&6;}
+++    case $cache_file in
+++      [\\/]* | ?:[\\/]* ) . $cache_file;;
+++      *)                      . ./$cache_file;;
+++    esac
+++  fi
++ else
++-  echo "creating cache $cache_file"
++-  > $cache_file
+++  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
+++echo "$as_me: creating cache $cache_file" >&6;}
+++  >$cache_file
+++fi
+++
+++# Check that the precious variables saved in the cache have kept the same
+++# value.
+++ac_cache_corrupted=false
+++for ac_var in `(set) 2>&1 |
+++            sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+++  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+++  eval ac_new_set=\$ac_env_${ac_var}_set
+++  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+++  eval ac_new_val="\$ac_env_${ac_var}_value"
+++  case $ac_old_set,$ac_new_set in
+++    set,)
+++      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+++      ac_cache_corrupted=: ;;
+++    ,set)
+++      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+++      ac_cache_corrupted=: ;;
+++    ,);;
+++    *)
+++      if test "x$ac_old_val" != "x$ac_new_val"; then
+++     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+++     { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
+++echo "$as_me:   former value:  $ac_old_val" >&2;}
+++     { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
+++echo "$as_me:   current value: $ac_new_val" >&2;}
+++     ac_cache_corrupted=:
+++      fi;;
+++  esac
+++  # Pass precious variables to config.status.
+++  if test "$ac_new_set" = set; then
+++    case $ac_new_val in
+++    *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+++      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+++    *) ac_arg=$ac_var=$ac_new_val ;;
+++    esac
+++    case " $ac_configure_args " in
+++      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+++      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+++    esac
+++  fi
+++done
+++if $ac_cache_corrupted; then
+++  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+++echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+++  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+++   { (exit 1); exit 1; }; }
++ fi
++ 
++ ac_ext=c
++-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
++ ac_cpp='$CPP $CPPFLAGS'
++-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
++-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
++-cross_compiling=$ac_cv_prog_cc_cross
++-
++-ac_exeext=
++-ac_objext=o
++-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
++-  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
++-  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
++-    ac_n= ac_c='
++-' ac_t='     '
++-  else
++-    ac_n=-n ac_c= ac_t=
++-  fi
++-else
++-  ac_n= ac_c='\c' ac_t=
++-fi
+++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+++ac_compiler_gnu=$ac_cv_c_compiler_gnu
+++
+++
+++
+++
+++
+++
+++
+++
+++
++ 
++ 
++ 
++ 
+++
+++
+++
+++
+++
+++
+++          ac_config_headers="$ac_config_headers src/config.h:src/config.in"
+++
+++
+++
++ lispdir='${datadir}/emacs/${version}/lisp'
++ locallisppath='${datadir}/emacs/${version}/site-lisp:'\
++ '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
++@@ -562,37 +1330,38 @@
++ archlibdir='${libexecdir}/emacs/${version}/${configuration}'
++ docdir='${datadir}/emacs/${version}/etc'
++ 
+++
++ # Check whether --with-gcc or --without-gcc was given.
++ if test "${with_gcc+set}" = set; then
++   withval="$with_gcc"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-pop or --without-pop was given.
++ if test "${with_pop+set}" = set; then
++   withval="$with_pop"
++   if test "$withval" = yes; then
++-   cat >> confdefs.h <<\EOF
+++   cat >>confdefs.h <<\_ACEOF
++ #define MAIL_USE_POP 1
++-EOF
+++_ACEOF
++ 
++ else :
++ fi
++ else
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define MAIL_USE_POP 1
++-EOF
+++_ACEOF
++ 
++-fi
+++fi;
++ 
++ # Check whether --with-kerberos or --without-kerberos was given.
++ if test "${with_kerberos+set}" = set; then
++   withval="$with_kerberos"
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define KERBEROS 1
++-EOF
+++_ACEOF
++ 
++-fi
+++fi;
++ 
++ # Check whether --with-kerberos5 or --without-kerberos5 was given.
++ if test "${with_kerberos5+set}" = set; then
++@@ -600,26 +1369,35 @@
++   if test "${with_kerberos5+set}" = set; then
++   if test "${with_kerberos+set}" != set; then
++     with_kerberos=yes
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define KERBEROS 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++-cat >> confdefs.h <<\EOF
+++cat >>confdefs.h <<\_ACEOF
++ #define KERBEROS5 1
++-EOF
+++_ACEOF
++ 
++-fi
+++fi;
++ 
++ # Check whether --with-hesiod or --without-hesiod was given.
++ if test "${with_hesiod+set}" = set; then
++   withval="$with_hesiod"
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HESIOD 1
++-EOF
+++_ACEOF
++ 
++-fi
+++fi;
+++
+++# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
+++if test "${with_mail_spool_directory+set}" = set; then
+++  withval="$with_mail_spool_directory"
+++  cat >>confdefs.h <<_ACEOF
+++#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
+++_ACEOF
+++
+++fi;
++ 
++ # Check whether --with-x-toolkit or --without-x-toolkit was given.
++ if test "${with_x_toolkit+set}" = set; then
++@@ -631,57 +1409,60 @@
++          a | at | ath | athe | athen | athena )      val=athena ;;
++          m | mo | mot | moti | motif )       val=motif ;;
++          * )
++-{ echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
+++{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
+++this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
+++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
+++echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
++ this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
++-Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
+++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
+++   { (exit 1); exit 1; }; }
++          ;;
++        esac
++        with_x_toolkit=$val
++ 
++-fi
+++fi;
++ 
++ # Check whether --with-xpm or --without-xpm was given.
++ if test "${with_xpm+set}" = set; then
++   withval="$with_xpm"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-jpeg or --without-jpeg was given.
++ if test "${with_jpeg+set}" = set; then
++   withval="$with_jpeg"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-tiff or --without-tiff was given.
++ if test "${with_tiff+set}" = set; then
++   withval="$with_tiff"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-gif or --without-gif was given.
++ if test "${with_gif+set}" = set; then
++   withval="$with_gif"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-png or --without-png was given.
++ if test "${with_png+set}" = set; then
++   withval="$with_png"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
++ if test "${with_toolkit_scroll_bars+set}" = set; then
++   withval="$with_toolkit_scroll_bars"
++-  :
++-fi
+++
+++fi;
++ 
++ # Check whether --with-xim or --without-xim was given.
++ if test "${with_xim+set}" = set; then
++   withval="$with_xim"
++-  :
++-fi
++ 
+++fi;
++ 
++ #### Make srcdir absolute, if it isn't already.  It's important to
++ #### avoid running the path through pwd unnecessarily, since pwd can
++@@ -707,12 +1488,18 @@
++ #### Check if the source directory already has a configured system in it.
++ if test `pwd` != `(cd ${srcdir} && pwd)` \
++    && test -f "${srcdir}/src/config.h" ; then
++-  echo "configure: warning: The directory tree \`${srcdir}' is being used
+++  { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
+++   as a build directory right now; it has been configured in its own
+++   right.  To configure in another directory as well, you MUST
+++   use GNU make.  If you do not have GNU make, then you must
+++   now do \`make distclean' in ${srcdir},
+++   and then run $0 again." >&5
+++echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
++    as a build directory right now; it has been configured in its own
++    right.  To configure in another directory as well, you MUST
++    use GNU make.  If you do not have GNU make, then you must
++    now do \`make distclean' in ${srcdir},
++-   and then run $0 again." 1>&2
+++   and then run $0 again." >&2;}
++ 
++   extrasub='/^VPATH[  ]*=/c\
++ vpath %.c $(srcdir)\
++@@ -739,41 +1526,74 @@
++     ac_aux_dir=$ac_dir
++     ac_install_sh="$ac_aux_dir/install.sh -c"
++     break
+++  elif test -f $ac_dir/shtool; then
+++    ac_aux_dir=$ac_dir
+++    ac_install_sh="$ac_aux_dir/shtool install -c"
+++    break
++   fi
++ done
++ if test -z "$ac_aux_dir"; then
++-  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
++-fi
++-ac_config_guess=$ac_aux_dir/config.guess
++-ac_config_sub=$ac_aux_dir/config.sub
++-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
++-
+++  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+++echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+++   { (exit 1); exit 1; }; }
+++fi
+++ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+++ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
++ 
++ # Make sure we can run config.sub.
++-if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
++-else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
++-fi
++-
++-echo $ac_n "checking host system type""... $ac_c" 1>&6
++-echo "configure:759: checking host system type" >&5
++-
++-host_alias=$host
++-case "$host_alias" in
++-NONE)
++-  case $nonopt in
++-  NONE)
++-    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
++-    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
++-    fi ;;
++-  *) host_alias=$nonopt ;;
++-  esac ;;
++-esac
+++$ac_config_sub sun4 >/dev/null 2>&1 ||
+++  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
+++echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++echo "$as_me:$LINENO: checking build system type" >&5
+++echo $ECHO_N "checking build system type... $ECHO_C" >&6
+++if test "${ac_cv_build+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_build_alias=$build_alias
+++test -z "$ac_cv_build_alias" &&
+++  ac_cv_build_alias=`$ac_config_guess`
+++test -z "$ac_cv_build_alias" &&
+++  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
+++echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+++   { (exit 1); exit 1; }; }
+++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
+++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+++echo "${ECHO_T}$ac_cv_build" >&6
+++build=$ac_cv_build
+++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+++
+++
+++echo "$as_me:$LINENO: checking host system type" >&5
+++echo $ECHO_N "checking host system type... $ECHO_C" >&6
+++if test "${ac_cv_host+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_host_alias=$host_alias
+++test -z "$ac_cv_host_alias" &&
+++  ac_cv_host_alias=$ac_cv_build_alias
+++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
+++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
+++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+++echo "${ECHO_T}$ac_cv_host" >&6
+++host=$ac_cv_host
+++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++ 
++-host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
++-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++-echo "$ac_t""$host" 1>&6
++ 
++ canonical=$host
++ configuration=$host_alias
++@@ -1178,6 +1998,9 @@
++   hppa*-*-nextstep* )
++     machine=hp800 opsys=nextstep
++   ;;
+++  hppa*-*-linux-gnu* )
+++    machine=hp800 opsys=gnu-linux
+++  ;;
++ 
++   ## Orion machines
++   orion-orion-bsd* )
++@@ -1246,6 +2069,10 @@
++     machine=ibmrt-aix opsys=usg5-2-2
++   ;;
++ 
+++  s390*-*-linux-gnu* )
+++    machine=s390 opsys=gnu-linux
+++  ;;
+++
++   ## Integrated Solutions `Optimum V'
++   m68*-isi-bsd4.2* )
++     machine=isi-ov opsys=bsd4-2
++@@ -1650,7 +2477,7 @@
++       *-xenix* )             opsys=xenix ;;
++       *-linux-gnu* )         opsys=gnu-linux ;;
++       *-sco3.2v4* )          opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
++-      *-sco3.2v5* )          opsys=sco5 
+++      *-sco3.2v5* )          opsys=sco5
++                              NON_GNU_CPP=/lib/cpp
++                              # Prevent -belf from being passed to $CPP.
++                              # /lib/cpp does not accept it.
++@@ -1674,6 +2501,11 @@
++     machine=mips opsys=gnu-linux
++   ;;
++ 
+++  ## Mipsel (little endian) Linux-based GNU system
+++  mipsel-*-linux-gnu* )
+++    machine=mipsel opsys=gnu-linux
+++  ;;
+++
++   ## UXP/DS
++   sparc-fujitsu-sysv4* )
++     machine=sparc opsys=uxpds
++@@ -1729,8 +2561,11 @@
++ 
++ 
++ if test $unported = yes; then
++-  { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
++-Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
+++  { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
+++Check \`etc/MACHINES' for recognized configuration names." >&5
+++echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
+++Check \`etc/MACHINES' for recognized configuration names." >&2;}
+++   { (exit 1); exit 1; }; }
++ fi
++ 
++ machfile="m/${machine}.h"
++@@ -1746,214 +2581,657 @@
++ case ${with_gcc} in
++   "yes" ) CC="gcc" GCC=yes ;;
++   "no"  ) : ${CC=cc} ;;
++-  * ) # Extract the first word of "gcc", so it can be a program name with args.
+++  * ) ac_ext=c
+++ac_cpp='$CPP $CPPFLAGS'
+++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+++ac_compiler_gnu=$ac_cv_c_compiler_gnu
+++if test -n "$ac_tool_prefix"; then
+++  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+++set dummy ${ac_tool_prefix}gcc; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test -n "$CC"; then
+++  ac_cv_prog_CC="$CC" # Let the user override the test.
+++else
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
+++fi
+++fi
+++CC=$ac_cv_prog_CC
+++if test -n "$CC"; then
+++  echo "$as_me:$LINENO: result: $CC" >&5
+++echo "${ECHO_T}$CC" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++fi
+++if test -z "$ac_cv_prog_CC"; then
+++  ac_ct_CC=$CC
+++  # Extract the first word of "gcc", so it can be a program name with args.
++ set dummy gcc; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:1753: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test -n "$ac_ct_CC"; then
+++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+++else
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_ac_ct_CC="gcc"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
+++fi
+++fi
+++ac_ct_CC=$ac_cv_prog_ac_ct_CC
+++if test -n "$ac_ct_CC"; then
+++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+++echo "${ECHO_T}$ac_ct_CC" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++  CC=$ac_ct_CC
+++else
+++  CC="$ac_cv_prog_CC"
+++fi
+++
+++if test -z "$CC"; then
+++  if test -n "$ac_tool_prefix"; then
+++  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+++set dummy ${ac_tool_prefix}cc; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test -n "$CC"; then
++   ac_cv_prog_CC="$CC" # Let the user override the test.
++ else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++-  ac_dummy="$PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      ac_cv_prog_CC="gcc"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_CC="${ac_tool_prefix}cc"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
++ fi
++ fi
++-CC="$ac_cv_prog_CC"
+++CC=$ac_cv_prog_CC
++ if test -n "$CC"; then
++-  echo "$ac_t""$CC" 1>&6
+++  echo "$as_me:$LINENO: result: $CC" >&5
+++echo "${ECHO_T}$CC" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++fi
+++if test -z "$ac_cv_prog_CC"; then
+++  ac_ct_CC=$CC
+++  # Extract the first word of "cc", so it can be a program name with args.
+++set dummy cc; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test -n "$ac_ct_CC"; then
+++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+++else
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_ac_ct_CC="cc"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
+++fi
+++fi
+++ac_ct_CC=$ac_cv_prog_ac_ct_CC
+++if test -n "$ac_ct_CC"; then
+++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+++echo "${ECHO_T}$ac_ct_CC" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++  CC=$ac_ct_CC
++ else
++-  echo "$ac_t""no" 1>&6
+++  CC="$ac_cv_prog_CC"
++ fi
++ 
+++fi
++ if test -z "$CC"; then
++   # Extract the first word of "cc", so it can be a program name with args.
++ set dummy cc; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:1783: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test -n "$CC"; then
++   ac_cv_prog_CC="$CC" # Let the user override the test.
++ else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++   ac_prog_rejected=no
++-  ac_dummy="$PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
++-        ac_prog_rejected=yes
++-     continue
++-      fi
++-      ac_cv_prog_CC="cc"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+++       ac_prog_rejected=yes
+++       continue
+++     fi
+++    ac_cv_prog_CC="cc"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
++ if test $ac_prog_rejected = yes; then
++   # We found a bogon in the path, so make sure we never use it.
++   set dummy $ac_cv_prog_CC
++   shift
++-  if test $# -gt 0; then
+++  if test $# != 0; then
++     # We chose a different compiler from the bogus one.
++     # However, it has the same basename, so the bogon will be chosen
++     # first if we set CC to just the basename; use the full file name.
++     shift
++-    set dummy "$ac_dir/$ac_word" "$@"
++-    shift
++-    ac_cv_prog_CC="$@"
+++    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
++   fi
++ fi
++ fi
++ fi
++-CC="$ac_cv_prog_CC"
+++CC=$ac_cv_prog_CC
++ if test -n "$CC"; then
++-  echo "$ac_t""$CC" 1>&6
+++  echo "$as_me:$LINENO: result: $CC" >&5
+++echo "${ECHO_T}$CC" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++ 
++-  if test -z "$CC"; then
++-    case "`uname -s`" in
++-    *win32* | *WIN32*)
++-      # Extract the first word of "cl", so it can be a program name with args.
++-set dummy cl; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:1834: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++fi
+++if test -z "$CC"; then
+++  if test -n "$ac_tool_prefix"; then
+++  for ac_prog in cl
+++  do
+++    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test -n "$CC"; then
++   ac_cv_prog_CC="$CC" # Let the user override the test.
++ else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++-  ac_dummy="$PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      ac_cv_prog_CC="cl"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
++ fi
++ fi
++-CC="$ac_cv_prog_CC"
+++CC=$ac_cv_prog_CC
++ if test -n "$CC"; then
++-  echo "$ac_t""$CC" 1>&6
+++  echo "$as_me:$LINENO: result: $CC" >&5
+++echo "${ECHO_T}$CC" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++- ;;
++-    esac
+++
+++    test -n "$CC" && break
+++  done
+++fi
+++if test -z "$CC"; then
+++  ac_ct_CC=$CC
+++  for ac_prog in cl
+++do
+++  # Extract the first word of "$ac_prog", so it can be a program name with args.
+++set dummy $ac_prog; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test -n "$ac_ct_CC"; then
+++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+++else
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_ac_ct_CC="$ac_prog"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
++   fi
++-  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+++done
+++done
+++
++ fi
+++fi
+++ac_ct_CC=$ac_cv_prog_ac_ct_CC
+++if test -n "$ac_ct_CC"; then
+++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+++echo "${ECHO_T}$ac_ct_CC" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++  test -n "$ac_ct_CC" && break
+++done
++ 
++-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
++-echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+++  CC=$ac_ct_CC
+++fi
+++
+++fi
++ 
++-ac_ext=c
++-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
++-ac_cpp='$CPP $CPPFLAGS'
++-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
++-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
++-cross_compiling=$ac_cv_prog_cc_cross
++ 
++-cat > conftest.$ac_ext << EOF
+++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: no acceptable C compiler found in \$PATH
+++See \`config.log' for more details." >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++# Provide some information about the compiler.
+++echo "$as_me:$LINENO:" \
+++     "checking for C compiler version" >&5
+++ac_compiler=`set X $ac_compile; echo $2`
+++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+++  (eval $ac_compiler --version </dev/null >&5) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }
+++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+++  (eval $ac_compiler -v </dev/null >&5) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }
+++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+++  (eval $ac_compiler -V </dev/null >&5) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }
+++
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++int
+++main ()
+++{
++ 
++-#line 1877 "configure"
++-#include "confdefs.h"
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++ac_clean_files_save=$ac_clean_files
+++ac_clean_files="$ac_clean_files a.out a.exe b.out"
+++# Try to create an executable without -o first, disregard a.out.
+++# It will help us diagnose broken compilers, and finding out an intuition
+++# of exeext.
+++echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
+++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
+++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+++  (eval $ac_link_default) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; then
+++  # Find the output, starting from the most likely.  This scheme is
+++# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+++# resort.
+++
+++# Be careful to initialize this variable, since it used to be cached.
+++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+++ac_cv_exeext=
+++# b.out is created by i960 compilers.
+++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+++do
+++  test -f "$ac_file" || continue
+++  case $ac_file in
+++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+++     ;;
+++    conftest.$ac_ext )
+++     # This is the source file.
+++     ;;
+++    [ab].out )
+++     # We found the default executable, but exeext='' is most
+++     # certainly right.
+++     break;;
+++    *.* )
+++     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+++     # FIXME: I believe we export ac_cv_exeext for Libtool,
+++     # but it would be cool to find out if it's true.  Does anybody
+++     # maintain Libtool? --akim.
+++     export ac_cv_exeext
+++     break;;
+++    * )
+++     break;;
+++  esac
+++done
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-main(){return(0);}
++-EOF
++-if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  ac_cv_prog_cc_works=yes
++-  # If we can't run a trivial program, we are probably using a cross compiler.
++-  if (./conftest; exit) 2>/dev/null; then
++-    ac_cv_prog_cc_cross=no
+++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: C compiler cannot create executables
+++See \`config.log' for more details." >&2;}
+++   { (exit 77); exit 77; }; }
+++fi
+++
+++ac_exeext=$ac_cv_exeext
+++echo "$as_me:$LINENO: result: $ac_file" >&5
+++echo "${ECHO_T}$ac_file" >&6
+++
+++# Check the compiler produces executables we can run.  If not, either
+++# the compiler is broken, or we cross compile.
+++echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
+++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+++# If not cross compiling, check that we can run a simple program.
+++if test "$cross_compiling" != yes; then
+++  if { ac_try='./$ac_file'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++    cross_compiling=no
++   else
++-    ac_cv_prog_cc_cross=yes
+++    if test "$cross_compiling" = maybe; then
+++     cross_compiling=yes
+++    else
+++     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+++If you meant to cross compile, use \`--host'.
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: cannot run C compiled programs.
+++If you meant to cross compile, use \`--host'.
+++See \`config.log' for more details." >&2;}
+++   { (exit 1); exit 1; }; }
+++    fi
++   fi
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  ac_cv_prog_cc_works=no
++ fi
++-rm -fr conftest*
++-ac_ext=c
++-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
++-ac_cpp='$CPP $CPPFLAGS'
++-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
++-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
++-cross_compiling=$ac_cv_prog_cc_cross
++-
++-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
++-if test $ac_cv_prog_cc_works = no; then
++-  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
++-fi
++-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
++-echo "configure:1908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
++-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
++-cross_compiling=$ac_cv_prog_cc_cross
++-
++-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
++-echo "configure:1913: checking whether we are using GNU C" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.c <<EOF
++-#ifdef __GNUC__
++-  yes;
++-#endif
++-EOF
++-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
++-  ac_cv_prog_gcc=yes
+++echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
+++
+++rm -f a.out a.exe conftest$ac_cv_exeext b.out
+++ac_clean_files=$ac_clean_files_save
+++# Check the compiler produces executables we can run.  If not, either
+++# the compiler is broken, or we cross compile.
+++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+++echo "$as_me:$LINENO: result: $cross_compiling" >&5
+++echo "${ECHO_T}$cross_compiling" >&6
+++
+++echo "$as_me:$LINENO: checking for suffix of executables" >&5
+++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; then
+++  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+++# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+++# work properly (i.e., refer to `conftest.exe'), while it won't with
+++# `rm'.
+++for ac_file in conftest.exe conftest conftest.*; do
+++  test -f "$ac_file" || continue
+++  case $ac_file in
+++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
+++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+++       export ac_cv_exeext
+++       break;;
+++    * ) break;;
+++  esac
+++done
++ else
++-  ac_cv_prog_gcc=no
++-fi
++-fi
+++  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+++See \`config.log' for more details." >&2;}
+++   { (exit 1); exit 1; }; }
+++fi
+++
+++rm -f conftest$ac_cv_exeext
+++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+++echo "${ECHO_T}$ac_cv_exeext" >&6
+++
+++rm -f conftest.$ac_ext
+++EXEEXT=$ac_cv_exeext
+++ac_exeext=$EXEEXT
+++echo "$as_me:$LINENO: checking for suffix of object files" >&5
+++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
+++if test "${ac_cv_objext+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+++int
+++main ()
+++{
++ 
++-if test $ac_cv_prog_gcc = yes; then
++-  GCC=yes
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.o conftest.obj
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; then
+++  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+++  case $ac_file in
+++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+++    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+++       break;;
+++  esac
+++done
++ else
++-  GCC=
++-fi
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-ac_test_CFLAGS="${CFLAGS+set}"
++-ac_save_CFLAGS="$CFLAGS"
++-CFLAGS=
++-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
++-echo "configure:1941: checking whether ${CC-cc} accepts -g" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  echo 'void f(){}' > conftest.c
++-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: cannot compute suffix of object files: cannot compile
+++See \`config.log' for more details." >&2;}
+++   { (exit 1); exit 1; }; }
+++fi
+++
+++rm -f conftest.$ac_cv_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+++echo "${ECHO_T}$ac_cv_objext" >&6
+++OBJEXT=$ac_cv_objext
+++ac_objext=$OBJEXT
+++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
+++if test "${ac_cv_c_compiler_gnu+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++int
+++main ()
+++{
+++#ifndef __GNUC__
+++       choke me
+++#endif
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_compiler_gnu=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_compiler_gnu=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++ac_cv_c_compiler_gnu=$ac_compiler_gnu
+++
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+++GCC=`test $ac_compiler_gnu = yes && echo yes`
+++ac_test_CFLAGS=${CFLAGS+set}
+++ac_save_CFLAGS=$CFLAGS
+++CFLAGS="-g"
+++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+++if test "${ac_cv_prog_cc_g+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_prog_cc_g=yes
++ else
++-  ac_cv_prog_cc_g=no
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
+++ac_cv_prog_cc_g=no
++ fi
++-
++-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
++ if test "$ac_test_CFLAGS" = set; then
++-  CFLAGS="$ac_save_CFLAGS"
+++  CFLAGS=$ac_save_CFLAGS
++ elif test $ac_cv_prog_cc_g = yes; then
++   if test "$GCC" = yes; then
++     CFLAGS="-g -O2"
++@@ -1967,26 +3245,285 @@
++     CFLAGS=
++   fi
++ fi
+++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+++if test "${ac_cv_prog_cc_stdc+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_prog_cc_stdc=no
+++ac_save_CC=$CC
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <stdarg.h>
+++#include <stdio.h>
+++#include <sys/types.h>
+++#include <sys/stat.h>
+++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+++struct buf { int x; };
+++FILE * (*rcsopen) (struct buf *, struct stat *, int);
+++static char *e (p, i)
+++     char **p;
+++     int i;
+++{
+++  return p[i];
+++}
+++static char *f (char * (*g) (char **, int), char **p, ...)
+++{
+++  char *s;
+++  va_list v;
+++  va_start (v,p);
+++  s = g (p, va_arg (v,int));
+++  va_end (v);
+++  return s;
+++}
++ 
++-esac
+++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+++   function prototypes and stuff, but not '\xHH' hex character constants.
+++   These don't provoke an error unfortunately, instead are silently treated
+++   as 'x'.  The following induces an error, until -std1 is added to get
+++   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+++   array size at least.  It's necessary to write '\x00'==0 to get something
+++   that's true only with -std1.  */
+++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+++
+++int test (int i, double x);
+++struct s1 {int (*f) (int a);};
+++struct s2 {int (*f) (double a);};
+++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+++int argc;
+++char **argv;
+++int
+++main ()
+++{
+++return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++# Don't try gcc -ansi; that turns off useful extensions and
+++# breaks some systems' header files.
+++# AIX                        -qlanglvl=ansi
+++# Ultrix and OSF/1   -std1
+++# HP-UX 10.20 and later      -Ae
+++# HP-UX older versions       -Aa -D_HPUX_SOURCE
+++# SVR4                       -Xc -D__EXTENSIONS__
+++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+++do
+++  CC="$ac_save_CC $ac_arg"
+++  rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_prog_cc_stdc=$ac_arg
+++break
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-# On Suns, sometimes $CPP names a directory.
++-if test -n "$CPP" && test -d "$CPP"; then
++-  CPP=
++ fi
+++rm -f conftest.err conftest.$ac_objext
+++done
+++rm -f conftest.$ac_ext conftest.$ac_objext
+++CC=$ac_save_CC
++ 
++-#### Some systems specify a CPP to use unless we are using GCC.
++-#### Now that we know whether we are using GCC, we can decide whether
++-#### to use that one.
++-if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
++-then
++-  CPP="$NON_GNU_CPP"
++ fi
++ 
++-#### Some systems specify a CC to use unless we are using GCC.
++-#### Now that we know whether we are using GCC, we can decide whether
++-#### to use that one.
++-if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
+++case "x$ac_cv_prog_cc_stdc" in
+++  x|xno)
+++    echo "$as_me:$LINENO: result: none needed" >&5
+++echo "${ECHO_T}none needed" >&6 ;;
+++  *)
+++    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+++    CC="$CC $ac_cv_prog_cc_stdc" ;;
+++esac
+++
+++# Some people use a C++ compiler to compile C.  Since we use `exit',
+++# in C++ we need to declare it.  In case someone uses the same compiler
+++# for both compiling C and C++ we need to have the C++ compiler decide
+++# the declaration of exit, since it's the most demanding environment.
+++cat >conftest.$ac_ext <<_ACEOF
+++#ifndef __cplusplus
+++  choke me
+++#endif
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  for ac_declaration in \
+++   '' \
+++   'extern "C" void std::exit (int) throw (); using std::exit;' \
+++   'extern "C" void std::exit (int); using std::exit;' \
+++   'extern "C" void exit (int) throw ();' \
+++   'extern "C" void exit (int);' \
+++   'void exit (int);'
+++do
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_declaration
+++#include <stdlib.h>
+++int
+++main ()
+++{
+++exit (42);
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  :
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++continue
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_declaration
+++int
+++main ()
+++{
+++exit (42);
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  break
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++done
+++rm -f conftest*
+++if test -n "$ac_declaration"; then
+++  echo '#ifdef __cplusplus' >>confdefs.h
+++  echo $ac_declaration      >>confdefs.h
+++  echo '#endif'             >>confdefs.h
+++fi
+++
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++ac_ext=c
+++ac_cpp='$CPP $CPPFLAGS'
+++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+++ac_compiler_gnu=$ac_cv_c_compiler_gnu
+++
+++esac
+++
+++# On Suns, sometimes $CPP names a directory.
+++if test -n "$CPP" && test -d "$CPP"; then
+++  CPP=
+++fi
+++
+++#### Some systems specify a CPP to use unless we are using GCC.
+++#### Now that we know whether we are using GCC, we can decide whether
+++#### to use that one.
+++if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
+++then
+++  CPP="$NON_GNU_CPP"
+++fi
+++
+++#### Some systems specify a CC to use unless we are using GCC.
+++#### Now that we know whether we are using GCC, we can decide whether
+++#### to use that one.
+++if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
++   test x$cc_specified != xyes
++ then
++   CC="$NON_GNU_CC"
++@@ -2016,106 +3553,250 @@
++ #### should make an entry in src/config.h, don't forget to add an
++ #### #undef clause to src/config.h.in for autoconf to modify.
++ 
++-echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
++-echo "configure:2021: checking whether ln -s works" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  rm -f conftestdata
++-if ln -s X conftestdata 2>/dev/null
++-then
++-  rm -f conftestdata
++-  ac_cv_prog_LN_S="ln -s"
+++echo "$as_me:$LINENO: checking whether ln -s works" >&5
+++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
+++LN_S=$as_ln_s
+++if test "$LN_S" = "ln -s"; then
+++  echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
++ else
++-  ac_cv_prog_LN_S=ln
++-fi
++-fi
++-LN_S="$ac_cv_prog_LN_S"
++-if test "$ac_cv_prog_LN_S" = "ln -s"; then
++-  echo "$ac_t""yes" 1>&6
++-else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+++echo "${ECHO_T}no, using $LN_S" >&6
++ fi
++ 
++-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
++-echo "configure:2042: checking how to run the C preprocessor" >&5
+++ac_ext=c
+++ac_cpp='$CPP $CPPFLAGS'
+++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+++ac_compiler_gnu=$ac_cv_c_compiler_gnu
+++echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
++ # On Suns, sometimes $CPP names a directory.
++ if test -n "$CPP" && test -d "$CPP"; then
++   CPP=
++ fi
++ if test -z "$CPP"; then
++-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  if test "${ac_cv_prog_CPP+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-    # This must be in double quotes, not single quotes, because CPP may get
++-  # substituted into the Makefile and "${CC-cc}" will confuse make.
++-  CPP="${CC-cc} -E"
+++      # Double quotes because CPP needs to be expanded
+++    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+++    do
+++      ac_preproc_ok=false
+++for ac_c_preproc_warn_flag in '' yes
+++do
+++  # Use a header file that comes with gcc, so configuring glibc
+++  # with a fresh cross-compiler works.
+++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++  # <limits.h> exists even on freestanding compilers.
++   # On the NeXT, cc -E runs the code through the compiler's parser,
++-  # not just through cpp.
++-  cat > conftest.$ac_ext <<EOF
++-#line 2057 "configure"
++-#include "confdefs.h"
++-#include <assert.h>
++-Syntax Error
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  :
+++  # not just through cpp. "Syntax error" is here to catch this case.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
+++                  Syntax error
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  CPP="${CC-cc} -E -traditional-cpp"
++-  cat > conftest.$ac_ext <<EOF
++-#line 2074 "configure"
++-#include "confdefs.h"
++-#include <assert.h>
++-Syntax Error
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
++   :
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  CPP="${CC-cc} -nologo -E"
++-  cat > conftest.$ac_ext <<EOF
++-#line 2091 "configure"
++-#include "confdefs.h"
++-#include <assert.h>
++-Syntax Error
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  :
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  # Broken: fails on valid input.
+++continue
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++
+++  # OK, works on sane cases.  Now check whether non-existent headers
+++  # can be detected and how.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <ac_nonexistent.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  CPP=/lib/cpp
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  # Broken: success on invalid input.
+++continue
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  # Passes both tests.
+++ac_preproc_ok=:
+++break
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_ext
+++
+++done
+++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+++rm -f conftest.err conftest.$ac_ext
+++if $ac_preproc_ok; then
+++  break
++ fi
++-rm -f conftest*
++-  ac_cv_prog_CPP="$CPP"
+++
+++    done
+++    ac_cv_prog_CPP=$CPP
+++
+++fi
+++  CPP=$ac_cv_prog_CPP
+++else
+++  ac_cv_prog_CPP=$CPP
+++fi
+++echo "$as_me:$LINENO: result: $CPP" >&5
+++echo "${ECHO_T}$CPP" >&6
+++ac_preproc_ok=false
+++for ac_c_preproc_warn_flag in '' yes
+++do
+++  # Use a header file that comes with gcc, so configuring glibc
+++  # with a fresh cross-compiler works.
+++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++  # <limits.h> exists even on freestanding compilers.
+++  # On the NeXT, cc -E runs the code through the compiler's parser,
+++  # not just through cpp. "Syntax error" is here to catch this case.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
+++                  Syntax error
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  :
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  # Broken: fails on valid input.
+++continue
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++
+++  # OK, works on sane cases.  Now check whether non-existent headers
+++  # can be detected and how.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <ac_nonexistent.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-  CPP="$ac_cv_prog_CPP"
+++if test -z "$ac_cpp_err"; then
+++  # Broken: success on invalid input.
+++continue
++ else
++-  ac_cv_prog_CPP="$CPP"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  # Passes both tests.
+++ac_preproc_ok=:
+++break
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++
+++done
+++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+++rm -f conftest.err conftest.$ac_ext
+++if $ac_preproc_ok; then
+++  :
+++else
+++  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
+++See \`config.log' for more details." >&5
+++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+++See \`config.log' for more details." >&2;}
+++   { (exit 1); exit 1; }; }
++ fi
++-echo "$ac_t""$CPP" 1>&6
+++
+++ac_ext=c
+++ac_cpp='$CPP $CPPFLAGS'
+++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++ 
++ # Find a good install program.  We prefer a C program (faster),
++ # so one script is as good as another.  But avoid the broken or
++@@ -2124,151 +3805,244 @@
++ # SunOS /usr/etc/install
++ # IRIX /sbin/install
++ # AIX /bin/install
+++# AmigaOS /C/install, which installs bootblocks on floppy discs
++ # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
++ # AFS /usr/afsws/bin/install, which mishandles nonexistent args
++ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+++# OS/2's system install, which has a completely different semantic
++ # ./install, which can be erroneously created by make from ./install.sh.
++-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
++-echo "configure:2133: checking for a BSD compatible install" >&5
+++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
++ if test -z "$INSTALL"; then
++-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++if test "${ac_cv_path_install+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-    IFS="${IFS=      }"; ac_save_IFS="$IFS"; IFS=":"
++-  for ac_dir in $PATH; do
++-    # Account for people who put trailing slashes in PATH elements.
++-    case "$ac_dir/" in
++-    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
++-    *)
++-      # OSF1 and SCO ODT 3.0 have their own names for install.
++-      # Don't use installbsd from OSF since it installs stuff as root
++-      # by default.
++-      for ac_prog in ginstall scoinst install; do
++-        if test -f $ac_dir/$ac_prog; then
+++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  # Account for people who put trailing slashes in PATH elements.
+++case $as_dir/ in
+++  ./ | .// | /cC/* | \
+++  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+++  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+++  /usr/ucb/* ) ;;
+++  *)
+++    # OSF1 and SCO ODT 3.0 have their own names for install.
+++    # Don't use installbsd from OSF since it installs stuff as root
+++    # by default.
+++    for ac_prog in ginstall scoinst install; do
+++      for ac_exec_ext in '' $ac_executable_extensions; do
+++     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
++        if test $ac_prog = install &&
++-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+++         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++          # AIX install.  It has an incompatible calling convention.
++          :
+++       elif test $ac_prog = install &&
+++         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+++         # program-specific install script used by HP pwplus--don't use.
+++         :
++        else
++-         ac_cv_path_install="$ac_dir/$ac_prog -c"
++-         break 2
+++         ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+++         break 3
++        fi
++      fi
++       done
++-      ;;
++-    esac
++-  done
++-  IFS="$ac_save_IFS"
+++    done
+++    ;;
+++esac
+++done
+++
++ 
++ fi
++   if test "${ac_cv_path_install+set}" = set; then
++-    INSTALL="$ac_cv_path_install"
+++    INSTALL=$ac_cv_path_install
++   else
++     # As a last resort, use the slow shell script.  We don't cache a
++     # path for INSTALL within a source directory, because that will
++     # break other packages using the cache if that directory is
++     # removed, or if the path is relative.
++-    INSTALL="$ac_install_sh"
+++    INSTALL=$ac_install_sh
++   fi
++ fi
++-echo "$ac_t""$INSTALL" 1>&6
+++echo "$as_me:$LINENO: result: $INSTALL" >&5
+++echo "${ECHO_T}$INSTALL" >&6
++ 
++ # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
++ # It thinks the first close brace ends the variable substitution.
++ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
++ 
++-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
++ 
++ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
++ 
++ for ac_prog in 'bison -y' byacc
++ do
++-# Extract the first word of "$ac_prog", so it can be a program name with args.
+++  # Extract the first word of "$ac_prog", so it can be a program name with args.
++ set dummy $ac_prog; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:2190: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_YACC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test -n "$YACC"; then
++   ac_cv_prog_YACC="$YACC" # Let the user override the test.
++ else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++-  ac_dummy="$PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      ac_cv_prog_YACC="$ac_prog"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_YACC="$ac_prog"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
++ fi
++ fi
++-YACC="$ac_cv_prog_YACC"
+++YACC=$ac_cv_prog_YACC
++ if test -n "$YACC"; then
++-  echo "$ac_t""$YACC" 1>&6
+++  echo "$as_me:$LINENO: result: $YACC" >&5
+++echo "${ECHO_T}$YACC" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++ 
++-test -n "$YACC" && break
+++  test -n "$YACC" && break
++ done
++ test -n "$YACC" || YACC="yacc"
++ 
++ if test "x$RANLIB" = x; then
++-  # Extract the first word of "ranlib", so it can be a program name with args.
++-set dummy ranlib; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:2224: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  if test -n "$ac_tool_prefix"; then
+++  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_RANLIB+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test -n "$RANLIB"; then
++   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
++ else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++-  ac_dummy="$PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      ac_cv_prog_RANLIB="ranlib"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
++-  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
++ fi
++ fi
++-RANLIB="$ac_cv_prog_RANLIB"
+++RANLIB=$ac_cv_prog_RANLIB
++ if test -n "$RANLIB"; then
++-  echo "$ac_t""$RANLIB" 1>&6
+++  echo "$as_me:$LINENO: result: $RANLIB" >&5
+++echo "${ECHO_T}$RANLIB" >&6
+++else
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++fi
+++if test -z "$ac_cv_prog_RANLIB"; then
+++  ac_ct_RANLIB=$RANLIB
+++  # Extract the first word of "ranlib", so it can be a program name with args.
+++set dummy ranlib; ac_word=$2
+++echo "$as_me:$LINENO: checking for $ac_word" >&5
+++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test -n "$ac_ct_RANLIB"; then
+++  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+++else
+++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for ac_exec_ext in '' $ac_executable_extensions; do
+++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+++    ac_cv_prog_ac_ct_RANLIB="ranlib"
+++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+++    break 2
+++  fi
+++done
+++done
+++
+++  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
+++fi
+++fi
+++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+++if test -n "$ac_ct_RANLIB"; then
+++  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+++echo "${ECHO_T}$ac_ct_RANLIB" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
+++fi
+++
+++  RANLIB=$ac_ct_RANLIB
+++else
+++  RANLIB="$ac_cv_prog_RANLIB"
+++fi
+++
++ fi
++ 
+++
+++
+++echo "$as_me:$LINENO: checking for egrep" >&5
+++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+++if test "${ac_cv_prog_egrep+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+++    then ac_cv_prog_egrep='grep -E'
+++    else ac_cv_prog_egrep='egrep'
+++    fi
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+++ EGREP=$ac_cv_prog_egrep
+++
++ 
++-echo $ac_n "checking for AIX""... $ac_c" 1>&6
++-echo "configure:2254: checking for AIX" >&5
++-cat > conftest.$ac_ext <<EOF
++-#line 2256 "configure"
++-#include "confdefs.h"
+++
+++echo "$as_me:$LINENO: checking for AIX" >&5
+++echo $ECHO_N "checking for AIX... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #ifdef _AIX
++   yes
++ #endif
++ 
++-EOF
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "yes" >/dev/null 2>&1; then
++-  rm -rf conftest*
++-  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
+++  $EGREP "yes" >/dev/null 2>&1; then
+++  echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
+++cat >>confdefs.h <<\_ACEOF
++ #define _ALL_SOURCE 1
++-EOF
+++_ACEOF
++ 
++ else
++-  rm -rf conftest*
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++ rm -f conftest*
++ 
++@@ -2276,12 +4050,12 @@
++ 
++ #### Extract some information from the operating system and machine files.
++ 
++-echo "checking the machine- and system-dependent files to find out
+++{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
++  - which libraries the lib-src programs will want, and
++- - whether the GNU malloc routines are usable" 1>&6
++-echo "configure:2283: checking the machine- and system-dependent files to find out
+++ - whether the GNU malloc routines are usable..." >&5
+++echo "$as_me: checking the machine- and system-dependent files to find out
++  - which libraries the lib-src programs will want, and
++- - whether the GNU malloc routines are usable" >&5
+++ - whether the GNU malloc routines are usable..." >&6;}
++ 
++ ### First figure out CFLAGS (which we use for running the compiler here)
++ ### and REAL_CFLAGS (which we use for real compilation).
++@@ -2370,7 +4144,7 @@
++ 
++ #ifndef LD_SWITCH_X_SITE_AUX
++ #define LD_SWITCH_X_SITE_AUX
++-#endif  
+++#endif
++ 
++ configure___ ld_switch_system=LD_SWITCH_SYSTEM
++ configure___ ld_switch_machine=LD_SWITCH_MACHINE
++@@ -2419,343 +4193,1060 @@
++   CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
++ fi
++ 
++-
++-   # Check whether --enable-largefile or --disable-largefile was given.
+++# Check whether --enable-largefile or --disable-largefile was given.
++ if test "${enable_largefile+set}" = set; then
++   enableval="$enable_largefile"
++-  :
++-fi
++ 
++-   if test "$enable_largefile" != no; then
+++fi;
+++if test "$enable_largefile" != no; then
++ 
++-     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
++-echo "configure:2433: checking for special C compiler options needed for large files" >&5
++-if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
+++echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
+++if test "${ac_cv_sys_largefile_CC+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   ac_cv_sys_largefile_CC=no
++-        if test "$GCC" != yes; then
++-       # IRIX 6.2 and later do not support large files by default,
++-       # so use the C compiler's -n32 option if that helps.
++-       cat > conftest.$ac_ext <<EOF
++-#line 2442 "configure"
++-#include "confdefs.h"
++-#include <sys/types.h>
++-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
++-  
++-int main() {
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  :
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_save_CC="$CC"
++-          CC="$CC -n32"
++-          cat > conftest.$ac_ext <<EOF
++-#line 2460 "configure"
++-#include "confdefs.h"
+++     if test "$GCC" != yes; then
+++       ac_save_CC=$CC
+++       while :; do
+++              # IRIX 6.2 and later do not support large files by default,
+++              # so use the C compiler's -n32 option if that helps.
+++      cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
++-  
++-int main() {
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_sys_largefile_CC=' -n32'
+++ /* Check that off_t can represent 2**63 - 1 correctly.
+++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
+++    since some C++ compilers masquerading as C compilers
+++    incorrectly reject 9223372036854775807.  */
+++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+++                    && LARGE_OFF_T % 2147483647 == 1)
+++                   ? 1 : -1];
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++              rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-fi
++-rm -f conftest*
++-          CC="$ac_save_CC"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
++ fi
++-rm -f conftest*
++-        fi
+++rm -f conftest.err conftest.$ac_objext
+++              CC="$CC -n32"
+++              rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_sys_largefile_CC=' -n32'; break
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++fi
+++rm -f conftest.err conftest.$ac_objext
+++      break
+++       done
+++       CC=$ac_save_CC
+++       rm -f conftest.$ac_ext
+++    fi
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
+++echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
+++  if test "$ac_cv_sys_largefile_CC" != no; then
+++    CC=$CC$ac_cv_sys_largefile_CC
+++  fi
++ 
++-echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
++-     if test "$ac_cv_sys_largefile_CC" != no; then
++-       CC="$CC$ac_cv_sys_largefile_CC"
++-     fi
++-
++-     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
++-echo "configure:2489: checking for _FILE_OFFSET_BITS value needed for large files" >&5
++-if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+++echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
+++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
+++  while :; do
++   ac_cv_sys_file_offset_bits=no
++-      cat > conftest.$ac_ext <<EOF
++-#line 2495 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
++-  
++-int main() {
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:2504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  :
+++ /* Check that off_t can represent 2**63 - 1 correctly.
+++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
+++    since some C++ compilers masquerading as C compilers
+++    incorrectly reject 9223372036854775807.  */
+++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+++                    && LARGE_OFF_T % 2147483647 == 1)
+++                   ? 1 : -1];
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  cat > conftest.$ac_ext <<EOF
++-#line 2511 "configure"
++-#include "confdefs.h"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #define _FILE_OFFSET_BITS 64
++ #include <sys/types.h>
++-    int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
++-  
++-        
++-int main() {
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_sys_file_offset_bits=64
+++ /* Check that off_t can represent 2**63 - 1 correctly.
+++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
+++    since some C++ compilers masquerading as C compilers
+++    incorrectly reject 9223372036854775807.  */
+++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+++                    && LARGE_OFF_T % 2147483647 == 1)
+++                   ? 1 : -1];
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_sys_file_offset_bits=64; break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  break
+++done
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
+++echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
+++if test "$ac_cv_sys_file_offset_bits" != no; then
++ 
++-echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
++-   if test "$ac_cv_sys_file_offset_bits" != no; then
++-     cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
++-EOF
+++_ACEOF
++ 
++-   fi
++-     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
++-echo "configure:2542: checking for _LARGE_FILES value needed for large files" >&5
++-if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++fi
+++rm -f conftest*
+++  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
+++echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
+++if test "${ac_cv_sys_large_files+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
+++  while :; do
++   ac_cv_sys_large_files=no
++-      cat > conftest.$ac_ext <<EOF
++-#line 2548 "configure"
++-#include "confdefs.h"
++-
++-int main() {
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:2555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  :
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <sys/types.h>
+++ /* Check that off_t can represent 2**63 - 1 correctly.
+++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
+++    since some C++ compilers masquerading as C compilers
+++    incorrectly reject 9223372036854775807.  */
+++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+++                    && LARGE_OFF_T % 2147483647 == 1)
+++                   ? 1 : -1];
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  cat > conftest.$ac_ext <<EOF
++-#line 2562 "configure"
++-#include "confdefs.h"
++-#define _LARGE_FILES 1
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-        
++-int main() {
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#define _LARGE_FILES 1
+++#include <sys/types.h>
+++ /* Check that off_t can represent 2**63 - 1 correctly.
+++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
+++    since some C++ compilers masquerading as C compilers
+++    incorrectly reject 9223372036854775807.  */
+++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+++                    && LARGE_OFF_T % 2147483647 == 1)
+++                   ? 1 : -1];
+++int
+++main ()
+++{
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:2571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_sys_large_files=1
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_sys_large_files=1; break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  break
+++done
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
+++echo "${ECHO_T}$ac_cv_sys_large_files" >&6
+++if test "$ac_cv_sys_large_files" != no; then
++ 
++-echo "$ac_t""$ac_cv_sys_large_files" 1>&6
++-   if test "$ac_cv_sys_large_files" != no; then
++-     cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define _LARGE_FILES $ac_cv_sys_large_files
++-EOF
+++_ACEOF
++ 
++-   fi
++-   fi
++-  
++-
++-# Sound support for GNU/Linux and the free BSDs.
++-for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:2598: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2603 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++ fi
++ rm -f conftest*
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-fi
++-done
++-
++-# Emulation library used on NetBSD.
++-echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
++-echo "configure:2636: checking for _oss_ioctl in -lossaudio" >&5
++-ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lossaudio  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 2644 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char _oss_ioctl();
++-
++-int main() {
++-_oss_ioctl()
++-; return 0; }
++-EOF
++-if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  LIBSOUND=-lossaudio
++-else
++-  echo "$ac_t""no" 1>&6
++-LIBSOUND=
++-fi
++ 
+++# Sound support for GNU/Linux and the free BSDs.
+++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+++if test "${ac_cv_header_stdc+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <stdlib.h>
+++#include <stdarg.h>
+++#include <string.h>
+++#include <float.h>
++ 
+++int
+++main ()
+++{
++ 
++-for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_header_stdc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_header_stdc=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++
+++if test $ac_cv_header_stdc = yes; then
+++  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <string.h>
+++
+++_ACEOF
+++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+++  $EGREP "memchr" >/dev/null 2>&1; then
+++  :
+++else
+++  ac_cv_header_stdc=no
+++fi
+++rm -f conftest*
+++
+++fi
+++
+++if test $ac_cv_header_stdc = yes; then
+++  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <stdlib.h>
+++
+++_ACEOF
+++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+++  $EGREP "free" >/dev/null 2>&1; then
+++  :
+++else
+++  ac_cv_header_stdc=no
+++fi
+++rm -f conftest*
+++
+++fi
+++
+++if test $ac_cv_header_stdc = yes; then
+++  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+++  if test "$cross_compiling" = yes; then
+++  :
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <ctype.h>
+++#if ((' ' & 0x0FF) == 0x020)
+++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+++#else
+++# define ISLOWER(c) \
+++                (('a' <= (c) && (c) <= 'i') \
+++                  || ('j' <= (c) && (c) <= 'r') \
+++                  || ('s' <= (c) && (c) <= 'z'))
+++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+++#endif
+++
+++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+++int
+++main ()
+++{
+++  int i;
+++  for (i = 0; i < 256; i++)
+++    if (XOR (islower (i), ISLOWER (i))
+++     || toupper (i) != TOUPPER (i))
+++      exit(2);
+++  exit (0);
+++}
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  :
+++else
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_header_stdc=no
+++fi
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+++fi
+++fi
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+++echo "${ECHO_T}$ac_cv_header_stdc" >&6
+++if test $ac_cv_header_stdc = yes; then
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define STDC_HEADERS 1
+++_ACEOF
+++
+++fi
+++
+++# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+++               inttypes.h stdint.h unistd.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_Header=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_Header=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
+++fi
+++
+++done
+++
+++
+++
+++
+++
+++for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
+++fi
+++
+++done
+++
+++# Emulation library used on NetBSD.
+++echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
+++echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
+++if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lossaudio  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char _oss_ioctl ();
+++int
+++main ()
+++{
+++_oss_ioctl ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_ossaudio__oss_ioctl=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_ossaudio__oss_ioctl=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
+++echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
+++if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
+++  LIBSOUND=-lossaudio
+++else
+++  LIBSOUND=
+++fi
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
++   linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
++   termcap.h stdio_ext.h fcntl.h term.h strings.h
++ do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:2684: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2689 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++
++ done
++ 
++-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
++-echo "configure:2721: checking for ANSI C header files" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2726 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+++if test "${ac_cv_header_stdc+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <stdlib.h>
++ #include <stdarg.h>
++ #include <string.h>
++ #include <float.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
+++
+++int
+++main ()
+++{
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_header_stdc=yes
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_header_stdc=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_header_stdc=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ 
++ if test $ac_cv_header_stdc = yes; then
++   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
++-cat > conftest.$ac_ext <<EOF
++-#line 2751 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <string.h>
++-EOF
+++
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "memchr" >/dev/null 2>&1; then
+++  $EGREP "memchr" >/dev/null 2>&1; then
++   :
++ else
++-  rm -rf conftest*
++   ac_cv_header_stdc=no
++ fi
++ rm -f conftest*
++@@ -2764,16 +5255,19 @@
++ 
++ if test $ac_cv_header_stdc = yes; then
++   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
++-cat > conftest.$ac_ext <<EOF
++-#line 2769 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <stdlib.h>
++-EOF
+++
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "free" >/dev/null 2>&1; then
+++  $EGREP "free" >/dev/null 2>&1; then
++   :
++ else
++-  rm -rf conftest*
++   ac_cv_header_stdc=no
++ fi
++ rm -f conftest*
++@@ -2782,168 +5276,297 @@
++ 
++ if test $ac_cv_header_stdc = yes; then
++   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
++-if test "$cross_compiling" = yes; then
+++  if test "$cross_compiling" = yes; then
++   :
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2790 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <ctype.h>
++-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
++-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
++-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
++-int main () { int i; for (i = 0; i < 256; i++)
++-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
++-exit (0); }
+++#if ((' ' & 0x0FF) == 0x020)
+++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+++#else
+++# define ISLOWER(c) \
+++                (('a' <= (c) && (c) <= 'i') \
+++                  || ('j' <= (c) && (c) <= 'r') \
+++                  || ('s' <= (c) && (c) <= 'z'))
+++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+++#endif
++ 
++-EOF
++-if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+++int
+++main ()
+++{
+++  int i;
+++  for (i = 0; i < 256; i++)
+++    if (XOR (islower (i), ISLOWER (i))
+++     || toupper (i) != TOUPPER (i))
+++      exit(2);
+++  exit (0);
+++}
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   :
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  ac_cv_header_stdc=no
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_header_stdc=no
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ fi
++ fi
++-
++-echo "$ac_t""$ac_cv_header_stdc" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+++echo "${ECHO_T}$ac_cv_header_stdc" >&6
++ if test $ac_cv_header_stdc = yes; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define STDC_HEADERS 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
++-echo "configure:2825: checking whether time.h and sys/time.h may both be included" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
+++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
+++if test "${ac_cv_header_time+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2830 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <sys/time.h>
++ #include <time.h>
++-int main() {
++-struct tm *tp;
++-; return 0; }
++-EOF
++-if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++
+++int
+++main ()
+++{
+++if ((struct tm *) 0)
+++return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_header_time=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_header_time=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_header_time=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_header_time" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
+++echo "${ECHO_T}$ac_cv_header_time" >&6
++ if test $ac_cv_header_time = yes; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define TIME_WITH_SYS_TIME 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
++-echo "configure:2860: checking for sys_siglist declaration in signal.h or unistd.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
+++echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
+++if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2865 "configure"
++-#include "confdefs.h"
++-#include <sys/types.h>
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <signal.h>
++ /* NetBSD declares sys_siglist in unistd.h.  */
++-#ifdef HAVE_UNISTD_H
++-#include <unistd.h>
+++#if HAVE_UNISTD_H
+++# include <unistd.h>
++ #endif
++-int main() {
++-char *msg = *(sys_siglist + 1);
++-; return 0; }
++-EOF
++-if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_decl_sys_siglist=yes
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_decl_sys_siglist=no
++-fi
++-rm -f conftest*
++-fi
++ 
++-echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
++-if test $ac_cv_decl_sys_siglist = yes; then
++-  cat >> confdefs.h <<\EOF
++-#define SYS_SIGLIST_DECLARED 1
++-EOF
+++
+++int
+++main ()
+++{
+++#ifndef sys_siglist
+++  char *p = (char *) sys_siglist;
+++#endif
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_have_decl_sys_siglist=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_have_decl_sys_siglist=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
+++echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
+++if test $ac_cv_have_decl_sys_siglist = yes; then
+++
+++cat >>confdefs.h <<_ACEOF
+++#define HAVE_DECL_SYS_SIGLIST 1
+++_ACEOF
+++
+++
+++else
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_DECL_SYS_SIGLIST 0
+++_ACEOF
+++
++ 
++ fi
++ 
++-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
++-echo "configure:2898: checking for sys/wait.h that is POSIX.1 compatible" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2903 "configure"
++-#include "confdefs.h"
+++
+++
+++echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
+++echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
+++if test "${ac_cv_header_sys_wait_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <sys/wait.h>
++ #ifndef WEXITSTATUS
++-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+++# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
++ #endif
++ #ifndef WIFEXITED
++-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+++# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
++ #endif
++-int main() {
++-int s;
++-wait (&s);
++-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
++-; return 0; }
++-EOF
++-if { (eval echo configure:2919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++
+++int
+++main ()
+++{
+++  int s;
+++  wait (&s);
+++  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_header_sys_wait_h=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_header_sys_wait_h=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_header_sys_wait_h=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
+++echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
++ if test $ac_cv_header_sys_wait_h = yes; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_SYS_WAIT_H 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ 
++-echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
++-echo "configure:2941: checking for struct utimbuf" >&5
++-if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for struct utimbuf" >&5
+++echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
+++if test "${emacs_cv_struct_utimbuf+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2946 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #ifdef TIME_WITH_SYS_TIME
++ #include <sys/time.h>
++ #include <time.h>
++@@ -2957,42 +5580,68 @@
++ #ifdef HAVE_UTIME_H
++ #include <utime.h>
++ #endif
++-int main() {
+++int
+++main ()
+++{
++ static struct utimbuf x; x.actime = x.modtime;
++-; return 0; }
++-EOF
++-if { (eval echo configure:2965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_struct_utimbuf=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_struct_utimbuf=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_struct_utimbuf=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
+++echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
++ if test $emacs_cv_struct_utimbuf = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_STRUCT_UTIMBUF 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
++-echo "configure:2986: checking return type of signal handlers" >&5
++-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking return type of signal handlers" >&5
+++echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
+++if test "${ac_cv_type_signal+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 2991 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <signal.h>
++ #ifdef signal
++-#undef signal
+++# undef signal
++ #endif
++ #ifdef __cplusplus
++ extern "C" void (*signal (int, void (*)(int)))(int);
++@@ -3000,70 +5649,123 @@
++ void (*signal ()) ();
++ #endif
++ 
++-int main() {
+++int
+++main ()
+++{
++ int i;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_type_signal=void
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_type_signal=int
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_type_signal=int
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
+++echo "${ECHO_T}$ac_cv_type_signal" >&6
++ 
++-echo "$ac_t""$ac_cv_type_signal" 1>&6
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define RETSIGTYPE $ac_cv_type_signal
++-EOF
+++_ACEOF
++ 
++ 
++ 
++-echo $ac_n "checking for speed_t""... $ac_c" 1>&6
++-echo "configure:3028: checking for speed_t" >&5
++-if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for speed_t" >&5
+++echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
+++if test "${emacs_cv_speed_t+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3033 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <termios.h>
++-int main() {
+++int
+++main ()
+++{
++ speed_t x = 1;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_speed_t=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_speed_t=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_speed_t=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_speed_t" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
+++echo "${ECHO_T}$emacs_cv_speed_t" >&6
++ if test $emacs_cv_speed_t = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_SPEED_T 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
++-echo "configure:3061: checking for struct timeval" >&5
++-if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for struct timeval" >&5
+++echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
+++if test "${emacs_cv_struct_timeval+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3066 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #ifdef TIME_WITH_SYS_TIME
++ #include <sys/time.h>
++ #include <time.h>
++@@ -3074,468 +5776,710 @@
++ #include <time.h>
++ #endif
++ #endif
++-int main() {
+++int
+++main ()
+++{
++ static struct timeval x; x.tv_sec = x.tv_usec;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_struct_timeval=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_struct_timeval=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_struct_timeval=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
+++echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
++ HAVE_TIMEVAL=$emacs_cv_struct_timeval
++ if test $emacs_cv_struct_timeval = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_TIMEVAL 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for struct exception""... $ac_c" 1>&6
++-echo "configure:3104: checking for struct exception" >&5
++-if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for struct exception" >&5
+++echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
+++if test "${emacs_cv_struct_exception+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3109 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <math.h>
++-int main() {
+++int
+++main ()
+++{
++ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_struct_exception=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_struct_exception=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_struct_exception=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_struct_exception" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
+++echo "${ECHO_T}$emacs_cv_struct_exception" >&6
++ HAVE_EXCEPTION=$emacs_cv_struct_exception
++ if test $emacs_cv_struct_exception != yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define NO_MATHERR 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
++-echo "configure:3138: checking whether struct tm is in sys/time.h or time.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
+++echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
+++if test "${ac_cv_struct_tm+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3143 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <time.h>
++-int main() {
+++
+++int
+++main ()
+++{
++ struct tm *tp; tp->tm_sec;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_struct_tm=time.h
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_struct_tm=sys/time.h
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_struct_tm=sys/time.h
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_struct_tm" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
+++echo "${ECHO_T}$ac_cv_struct_tm" >&6
++ if test $ac_cv_struct_tm = sys/time.h; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define TM_IN_SYS_TIME 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
++-echo "configure:3172: checking for tm_zone in struct tm" >&5
++-if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
+++echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
+++if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3177 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/types.h>
++ #include <$ac_cv_struct_tm>
++-int main() {
++-struct tm tm; tm.tm_zone;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_struct_tm_zone=yes
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_struct_tm_zone=no
++-fi
++-rm -f conftest*
+++
+++
+++int
+++main ()
+++{
+++static struct tm ac_aggr;
+++if (ac_aggr.tm_zone)
+++return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_member_struct_tm_tm_zone=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <sys/types.h>
+++#include <$ac_cv_struct_tm>
+++
+++
+++int
+++main ()
+++{
+++static struct tm ac_aggr;
+++if (sizeof ac_aggr.tm_zone)
+++return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_member_struct_tm_tm_zone=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_member_struct_tm_tm_zone=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
+++echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
+++if test $ac_cv_member_struct_tm_tm_zone = yes; then
+++
+++cat >>confdefs.h <<_ACEOF
+++#define HAVE_STRUCT_TM_TM_ZONE 1
+++_ACEOF
+++
+++
++ fi
++ 
++-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
++-if test "$ac_cv_struct_tm_zone" = yes; then
++-  cat >> confdefs.h <<\EOF
+++if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_TM_ZONE 1
++-EOF
+++_ACEOF
++ 
++ else
++-  echo $ac_n "checking for tzname""... $ac_c" 1>&6
++-echo "configure:3205: checking for tzname" >&5
++-if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3210 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for tzname" >&5
+++echo $ECHO_N "checking for tzname... $ECHO_C" >&6
+++if test "${ac_cv_var_tzname+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <time.h>
++ #ifndef tzname /* For SGI.  */
++ extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
++ #endif
++-int main() {
+++
+++int
+++main ()
+++{
++ atoi(*tzname);
++-; return 0; }
++-EOF
++-if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_var_tzname=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_var_tzname=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_var_tzname=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_var_tzname" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
+++echo "${ECHO_T}$ac_cv_var_tzname" >&6
++   if test $ac_cv_var_tzname = yes; then
++-    cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_TZNAME 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++ 
++-echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
++-echo "configure:3242: checking for tm_gmtoff in struct tm" >&5
++-if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3247 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
+++echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
+++if test "${emacs_cv_tm_gmtoff+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <time.h>
++-int main() {
+++int
+++main ()
+++{
++ struct tm t; t.tm_gmtoff = 0
++-; return 0; }
++-EOF
++-if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_tm_gmtoff=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_tm_gmtoff=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_tm_gmtoff=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
+++echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
++ if test $emacs_cv_tm_gmtoff = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_TM_GMTOFF 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ 
++-echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
++-echo "configure:3276: checking for ${CC-cc} option to accept ANSI C" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  ac_cv_prog_cc_stdc=no
++-ac_save_CC="$CC"
++-# Don't try gcc -ansi; that turns off useful extensions and
++-# breaks some systems' header files.
++-# AIX                        -qlanglvl=ansi
++-# Ultrix and OSF/1   -std1
++-# HP-UX 10.20 and later      -Ae
++-# HP-UX older versions       -Aa -D_HPUX_SOURCE
++-# SVR4                       -Xc -D__EXTENSIONS__
++-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++-do
++-  CC="$ac_save_CC $ac_arg"
++-  cat > conftest.$ac_ext <<EOF
++-#line 3293 "configure"
++-#include "confdefs.h"
++-#include <stdarg.h>
++-#include <stdio.h>
++-#include <sys/types.h>
++-#include <sys/stat.h>
++-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
++-struct buf { int x; };
++-FILE * (*rcsopen) (struct buf *, struct stat *, int);
++-static char *e (p, i)
++-     char **p;
++-     int i;
++-{
++-  return p[i];
++-}
++-static char *f (char * (*g) (char **, int), char **p, ...)
++-{
++-  char *s;
++-  va_list v;
++-  va_start (v,p);
++-  s = g (p, va_arg (v,int));
++-  va_end (v);
++-  return s;
++-}
++-int test (int i, double x);
++-struct s1 {int (*f) (int a);};
++-struct s2 {int (*f) (double a);};
++-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++-int argc;
++-char **argv;
++-int main() {
++-return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
++-; return 0; }
++-EOF
++-if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_prog_cc_stdc="$ac_arg"; break
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-fi
++-rm -f conftest*
++-done
++-CC="$ac_save_CC"
+++echo "$as_me:$LINENO: checking for function prototypes" >&5
+++echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
+++if test "$ac_cv_prog_cc_stdc" != no; then
+++  echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
++ 
++-fi
+++cat >>confdefs.h <<\_ACEOF
+++#define PROTOTYPES 1
+++_ACEOF
++ 
++-case "x$ac_cv_prog_cc_stdc" in
++-  x|xno)
++-    echo "$ac_t""none needed" 1>&6 ;;
++-  *)
++-    echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
++-    CC="$CC $ac_cv_prog_cc_stdc" ;;
++-esac
++ 
++-echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
++-echo "configure:3349: checking for function prototypes" >&5
++-if test "$ac_cv_prog_cc_stdc" != no; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<\EOF
++-#define PROTOTYPES 1
++-EOF
+++cat >>confdefs.h <<\_ACEOF
+++#define __PROTOTYPES 1
+++_ACEOF
++ 
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++ 
++-echo $ac_n "checking for working volatile""... $ac_c" 1>&6
++-echo "configure:3361: checking for working volatile" >&5
++-if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for working volatile" >&5
+++echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
+++if test "${ac_cv_c_volatile+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3366 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
+++int
+++main ()
+++{
++ 
++ volatile int x;
++ int * volatile y;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_c_volatile=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_c_volatile=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_c_volatile=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_c_volatile" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
+++echo "${ECHO_T}$ac_cv_c_volatile" >&6
++ if test $ac_cv_c_volatile = no; then
++-  cat >> confdefs.h <<\EOF
++-#define volatile 
++-EOF
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define volatile
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for working const""... $ac_c" 1>&6
++-echo "configure:3396: checking for working const" >&5
++-if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3401 "configure"
++-#include "confdefs.h"
++-
++-int main() {
++-
++-/* Ultrix mips cc rejects this.  */
++-typedef int charset[2]; const charset x;
++-/* SunOS 4.1.1 cc rejects this.  */
++-char const *const *ccp;
++-char **p;
++-/* NEC SVR4.0.2 mips cc rejects this.  */
++-struct point {int x, y;};
++-static struct point const zero = {0,0};
++-/* AIX XL C 1.02.0.0 rejects this.
++-   It does not let you subtract one const X* pointer from another in an arm
++-   of an if-expression whose if-part is not a constant expression */
++-const char *g = "string";
++-ccp = &g + (g ? g-g : 0);
++-/* HPUX 7.0 cc rejects these. */
++-++ccp;
++-p = (char**) ccp;
++-ccp = (char const *const *) p;
++-{ /* SCO 3.2v4 cc rejects this.  */
++-  char *t;
++-  char const *s = 0 ? (char *) 0 : (char const *) 0;
++-
++-  *t++ = 0;
++-}
++-{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
++-  int x[] = {25, 17};
++-  const int *foo = &x[0];
++-  ++foo;
++-}
++-{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
++-  typedef const int *iptr;
++-  iptr p = 0;
++-  ++p;
++-}
++-{ /* AIX XL C 1.02.0.0 rejects this saying
++-     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
++-  struct s { int j; const int *ap[3]; };
++-  struct s *b; b->j = 5;
++-}
++-{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
++-  const int foo = 10;
++-}
++-
++-; return 0; }
++-EOF
++-if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
+++echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
+++if test "${ac_cv_c_const+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++int
+++main ()
+++{
+++/* FIXME: Include the comments suggested by Paul. */
+++#ifndef __cplusplus
+++  /* Ultrix mips cc rejects this.  */
+++  typedef int charset[2];
+++  const charset x;
+++  /* SunOS 4.1.1 cc rejects this.  */
+++  char const *const *ccp;
+++  char **p;
+++  /* NEC SVR4.0.2 mips cc rejects this.  */
+++  struct point {int x, y;};
+++  static struct point const zero = {0,0};
+++  /* AIX XL C 1.02.0.0 rejects this.
+++     It does not let you subtract one const X* pointer from another in
+++     an arm of an if-expression whose if-part is not a constant
+++     expression */
+++  const char *g = "string";
+++  ccp = &g + (g ? g-g : 0);
+++  /* HPUX 7.0 cc rejects these. */
+++  ++ccp;
+++  p = (char**) ccp;
+++  ccp = (char const *const *) p;
+++  { /* SCO 3.2v4 cc rejects this.  */
+++    char *t;
+++    char const *s = 0 ? (char *) 0 : (char const *) 0;
+++
+++    *t++ = 0;
+++  }
+++  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
+++    int x[] = {25, 17};
+++    const int *foo = &x[0];
+++    ++foo;
+++  }
+++  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+++    typedef const int *iptr;
+++    iptr p = 0;
+++    ++p;
+++  }
+++  { /* AIX XL C 1.02.0.0 rejects this saying
+++       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+++    struct s { int j; const int *ap[3]; };
+++    struct s *b; b->j = 5;
+++  }
+++  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+++    const int foo = 10;
+++  }
+++#endif
+++
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_c_const=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_c_const=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_c_const=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$ac_cv_c_const" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
+++echo "${ECHO_T}$ac_cv_c_const" >&6
++ if test $ac_cv_c_const = no; then
++-  cat >> confdefs.h <<\EOF
++-#define const 
++-EOF
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define const
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for void * support""... $ac_c" 1>&6
++-echo "configure:3471: checking for void * support" >&5
++-if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3476 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for void * support" >&5
+++echo $ECHO_N "checking for void * support... $ECHO_C" >&6
+++if test "${emacs_cv_void_star+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
+++int
+++main ()
+++{
++ void * foo;
++-; return 0; }
++-EOF
++-if { (eval echo configure:3483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_void_star=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_void_star=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_void_star=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_void_star" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
+++echo "${ECHO_T}$emacs_cv_void_star" >&6
++ if test $emacs_cv_void_star = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define POINTER_TYPE void
++-EOF
+++_ACEOF
++ 
++ else
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define POINTER_TYPE char
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
++-echo "configure:3509: checking whether ${MAKE-make} sets \${MAKE}" >&5
++-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
+++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
+++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftestmake <<\EOF
+++  cat >conftest.make <<\_ACEOF
++ all:
++-     @echo 'ac_maketemp="${MAKE}"'
++-EOF
+++     @echo 'ac_maketemp="$(MAKE)"'
+++_ACEOF
++ # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
++-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
+++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
++ if test -n "$ac_maketemp"; then
++   eval ac_cv_prog_make_${ac_make}_set=yes
++ else
++   eval ac_cv_prog_make_${ac_make}_set=no
++ fi
++-rm -f conftestmake
+++rm -f conftest.make
++ fi
++ if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++  echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
++   SET_MAKE=
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++   SET_MAKE="MAKE=${MAKE-make}"
++ fi
++ 
++ 
++-echo $ac_n "checking for long file names""... $ac_c" 1>&6
++-echo "configure:3537: checking for long file names" >&5
++-if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for long file names" >&5
+++echo $ECHO_N "checking for long file names... $ECHO_C" >&6
+++if test "${ac_cv_sys_long_file_names+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   ac_cv_sys_long_file_names=yes
++ # Test for long file names in all the places we know might matter:
++@@ -3549,49 +6493,51 @@
++ #      /var/tmp              likewise
++ #      /usr/tmp              likewise
++ if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
++-  ac_tmpdirs="$TMPDIR"
+++  ac_tmpdirs=$TMPDIR
++ else
++   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
++ fi
++ for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
++   test -d $ac_dir || continue
++   test -w $ac_dir || continue # It is less confusing to not echo anything here.
++-  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
++-  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
++-  val=`cat $ac_dir/conftest9012345 2>/dev/null`
++-  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
+++  ac_xdir=$ac_dir/cf$$
+++  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
+++  ac_tf1=$ac_xdir/conftest9012345
+++  ac_tf2=$ac_xdir/conftest9012346
+++  (echo 1 >$ac_tf1) 2>/dev/null
+++  (echo 2 >$ac_tf2) 2>/dev/null
+++  ac_val=`cat $ac_tf1 2>/dev/null`
+++  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
++     ac_cv_sys_long_file_names=no
++-    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+++    rm -rf $ac_xdir 2>/dev/null
++     break
++   fi
++-  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
+++  rm -rf $ac_xdir 2>/dev/null
++ done
++ fi
++-
++-echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
+++echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
++ if test $ac_cv_sys_long_file_names = yes; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_LONG_FILE_NAMES 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ 
++ #### Choose a window system.
++ 
++-# If we find X, set shell vars x_includes and x_libraries to the
++-# paths, otherwise set no_x=yes.
++-# Uses ac_ vars as temps to allow command line to override cache and checks.
++-# --without-x overrides everything else, but does not touch the cache.
++-echo $ac_n "checking for X""... $ac_c" 1>&6
++-echo "configure:3588: checking for X" >&5
+++echo "$as_me:$LINENO: checking for X" >&5
+++echo $ECHO_N "checking for X... $ECHO_C" >&6
+++
+++ac_path_x_has_been_run=yes
++ 
++ # Check whether --with-x or --without-x was given.
++ if test "${with_x+set}" = set; then
++   withval="$with_x"
++-  :
++-fi
++ 
+++fi;
++ # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
++ if test "x$with_x" = xno; then
++   # The user explicitly disabled X.
++@@ -3601,207 +6547,209 @@
++     # Both variables are already set.
++     have_x=yes
++   else
++-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++    if test "${ac_cv_have_x+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   # One or both of the vars are not set, and there is no cached value.
++-ac_x_includes=NO ac_x_libraries=NO
++-rm -fr conftestdir
++-if mkdir conftestdir; then
++-  cd conftestdir
+++ac_x_includes=no ac_x_libraries=no
+++rm -fr conftest.dir
+++if mkdir conftest.dir; then
+++  cd conftest.dir
++   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
++-  cat > Imakefile <<'EOF'
+++  cat >Imakefile <<'_ACEOF'
++ acfindx:
++      @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
++-EOF
+++_ACEOF
++   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
++     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
++     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
++     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
++     for ac_extension in a so sl; do
++       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
++-        test -f $ac_im_libdir/libX11.$ac_extension; then
++-        ac_im_usrlibdir=$ac_im_libdir; break
+++      test -f $ac_im_libdir/libX11.$ac_extension; then
+++     ac_im_usrlibdir=$ac_im_libdir; break
++       fi
++     done
++     # Screen out bogus values from the imake configuration.  They are
++     # bogus both because they are the default anyway, and because
++     # using them would break gcc on systems where it needs fixed includes.
++-    case "$ac_im_incroot" in
+++    case $ac_im_incroot in
++      /usr/include) ;;
++-     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
+++     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
++     esac
++-    case "$ac_im_usrlibdir" in
+++    case $ac_im_usrlibdir in
++      /usr/lib | /lib) ;;
++-     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
+++     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
++     esac
++   fi
++   cd ..
++-  rm -fr conftestdir
+++  rm -fr conftest.dir
++ fi
++ 
++-if test "$ac_x_includes" = NO; then
++-  # Guess where to find include files, by looking for this one X11 .h file.
++-  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+++# Standard set of common directories for X headers.
+++# Check X11 before X11Rn because it is often a symlink to the current release.
+++ac_x_header_dirs='
+++/usr/X11/include
+++/usr/X11R6/include
+++/usr/X11R5/include
+++/usr/X11R4/include
+++
+++/usr/include/X11
+++/usr/include/X11R6
+++/usr/include/X11R5
+++/usr/include/X11R4
+++
+++/usr/local/X11/include
+++/usr/local/X11R6/include
+++/usr/local/X11R5/include
+++/usr/local/X11R4/include
+++
+++/usr/local/include/X11
+++/usr/local/include/X11R6
+++/usr/local/include/X11R5
+++/usr/local/include/X11R4
+++
+++/usr/X386/include
+++/usr/x386/include
+++/usr/XFree86/include/X11
+++
+++/usr/include
+++/usr/local/include
+++/usr/unsupported/include
+++/usr/athena/include
+++/usr/local/x11r5/include
+++/usr/lpp/Xamples/include
+++
+++/usr/openwin/include
+++/usr/openwin/share/include'
++ 
+++if test "$ac_x_includes" = no; then
+++  # Guess where to find include files, by looking for a specified header file.
++   # First, try using that file with no special directory specified.
++-cat > conftest.$ac_ext <<EOF
++-#line 3650 "configure"
++-#include "confdefs.h"
++-#include <$x_direct_test_include>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:3655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <X11/Intrinsic.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
++   # We can compile using X headers with no special include directory.
++ ac_x_includes=
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  # Look for the header file in a standard set of common directories.
++-# Check X11 before X11Rn because it is often a symlink to the current release.
++-  for ac_dir in               \
++-    /usr/X11/include          \
++-    /usr/X11R6/include        \
++-    /usr/X11R5/include        \
++-    /usr/X11R4/include        \
++-                              \
++-    /usr/include/X11          \
++-    /usr/include/X11R6        \
++-    /usr/include/X11R5        \
++-    /usr/include/X11R4        \
++-                              \
++-    /usr/local/X11/include    \
++-    /usr/local/X11R6/include  \
++-    /usr/local/X11R5/include  \
++-    /usr/local/X11R4/include  \
++-                              \
++-    /usr/local/include/X11    \
++-    /usr/local/include/X11R6  \
++-    /usr/local/include/X11R5  \
++-    /usr/local/include/X11R4  \
++-                              \
++-    /usr/X386/include         \
++-    /usr/x386/include         \
++-    /usr/XFree86/include/X11  \
++-                              \
++-    /usr/include              \
++-    /usr/local/include        \
++-    /usr/unsupported/include  \
++-    /usr/athena/include       \
++-    /usr/local/x11r5/include  \
++-    /usr/lpp/Xamples/include  \
++-                              \
++-    /usr/openwin/include      \
++-    /usr/openwin/share/include \
++-    ; \
++-  do
++-    if test -r "$ac_dir/$x_direct_test_include"; then
++-      ac_x_includes=$ac_dir
++-      break
++-    fi
++-  done
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  for ac_dir in $ac_x_header_dirs; do
+++  if test -r "$ac_dir/X11/Intrinsic.h"; then
+++    ac_x_includes=$ac_dir
+++    break
+++  fi
+++done
++ fi
++-rm -f conftest*
++-fi # $ac_x_includes = NO
+++rm -f conftest.err conftest.$ac_ext
+++fi # $ac_x_includes = no
++ 
++-if test "$ac_x_libraries" = NO; then
+++if test "$ac_x_libraries" = no; then
++   # Check for the libraries.
++-
++-  test -z "$x_direct_test_library" && x_direct_test_library=Xt
++-  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
++-
++   # See if we find them without any special options.
++   # Don't add to $LIBS permanently.
++-  ac_save_LIBS="$LIBS"
++-  LIBS="-l$x_direct_test_library $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 3724 "configure"
++-#include "confdefs.h"
++-
++-int main() {
++-${x_direct_test_function}()
++-; return 0; }
++-EOF
++-if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  LIBS="$ac_save_LIBS"
+++  ac_save_LIBS=$LIBS
+++  LIBS="-lXt $LIBS"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <X11/Intrinsic.h>
+++int
+++main ()
+++{
+++XtMalloc (0)
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  LIBS=$ac_save_LIBS
++ # We can link X programs with no special library path.
++ ac_x_libraries=
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  LIBS="$ac_save_LIBS"
++-# First see if replacing the include by lib works.
++-# Check X11 before X11Rn because it is often a symlink to the current release.
++-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
++-    /usr/X11/lib          \
++-    /usr/X11R6/lib        \
++-    /usr/X11R5/lib        \
++-    /usr/X11R4/lib        \
++-                          \
++-    /usr/lib/X11          \
++-    /usr/lib/X11R6        \
++-    /usr/lib/X11R5        \
++-    /usr/lib/X11R4        \
++-                          \
++-    /usr/local/X11/lib    \
++-    /usr/local/X11R6/lib  \
++-    /usr/local/X11R5/lib  \
++-    /usr/local/X11R4/lib  \
++-                          \
++-    /usr/local/lib/X11    \
++-    /usr/local/lib/X11R6  \
++-    /usr/local/lib/X11R5  \
++-    /usr/local/lib/X11R4  \
++-                          \
++-    /usr/X386/lib         \
++-    /usr/x386/lib         \
++-    /usr/XFree86/lib/X11  \
++-                          \
++-    /usr/lib              \
++-    /usr/local/lib        \
++-    /usr/unsupported/lib  \
++-    /usr/athena/lib       \
++-    /usr/local/x11r5/lib  \
++-    /usr/lpp/Xamples/lib  \
++-    /lib/usr/lib/X11   \
++-                          \
++-    /usr/openwin/lib      \
++-    /usr/openwin/share/lib \
++-    ; \
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++LIBS=$ac_save_LIBS
+++for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
++ do
+++  # Don't even attempt the hair of trying to link an X program!
++   for ac_extension in a so sl; do
++-    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+++    if test -r $ac_dir/libXt.$ac_extension; then
++       ac_x_libraries=$ac_dir
++       break 2
++     fi
++   done
++ done
++ fi
++-rm -f conftest*
++-fi # $ac_x_libraries = NO
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi # $ac_x_libraries = no
++ 
++-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+++if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
++   # Didn't find X anywhere.  Cache the known absence of X.
++   ac_cv_have_x="have_x=no"
++ else
++   # Record where we found X for the cache.
++   ac_cv_have_x="have_x=yes \
++-             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
+++             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
++ fi
++ fi
+++
++   fi
++   eval "$ac_cv_have_x"
++ fi # $with_x != no
++ 
++ if test "$have_x" != yes; then
++-  echo "$ac_t""$have_x" 1>&6
+++  echo "$as_me:$LINENO: result: $have_x" >&5
+++echo "${ECHO_T}$have_x" >&6
++   no_x=yes
++ else
++   # If each of the values was on the command line, it overrides each guess.
++@@ -3810,7 +6758,12 @@
++   # Update the cache value to reflect the command line values.
++   ac_cv_have_x="have_x=yes \
++              ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
++-  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
+++  # It might be that x_includes is empty (headers are found in the
+++  # standard search path. Then output the corresponding message
+++  ac_out_x_includes=$x_includes
+++  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
+++  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
+++echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
++ fi
++ 
++ if test "$no_x" = yes; then
++@@ -3883,7 +6836,7 @@
++ case ${HAVE_X11} in
++   yes ) HAVE_MENUS=yes ;;
++ esac
++-  
+++
++ if test "${opsys}" = "hpux9"; then
++   case "${x_libraries}" in
++     *X11R4* )
++@@ -3907,130 +6860,249 @@
++ # Assume not, until told otherwise.
++ GNU_MALLOC=yes
++ doug_lea_malloc=yes
++-echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
++-echo "configure:3912: checking for malloc_get_state" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3917 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for malloc_get_state" >&5
+++echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
+++if test "${ac_cv_func_malloc_get_state+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define malloc_get_state innocuous_malloc_get_state
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char malloc_get_state(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char malloc_get_state();
+++    which can conflict with char malloc_get_state (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef malloc_get_state
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char malloc_get_state ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
++ choke me
++ #else
++-malloc_get_state();
+++char (*f) () = malloc_get_state;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_malloc_get_state=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_malloc_get_state=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != malloc_get_state;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_malloc_get_state=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_malloc_get_state=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
+++echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
+++if test $ac_cv_func_malloc_get_state = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-doug_lea_malloc=no
+++  doug_lea_malloc=no
++ fi
++ 
++-echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
++-echo "configure:3961: checking for malloc_set_state" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 3966 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for malloc_set_state" >&5
+++echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
+++if test "${ac_cv_func_malloc_set_state+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define malloc_set_state innocuous_malloc_set_state
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char malloc_set_state(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char malloc_set_state();
+++    which can conflict with char malloc_set_state (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef malloc_set_state
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char malloc_set_state ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
++ choke me
++ #else
++-malloc_set_state();
+++char (*f) () = malloc_set_state;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_malloc_set_state=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_malloc_set_state=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != malloc_set_state;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_malloc_set_state=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_malloc_set_state=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
+++echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
+++if test $ac_cv_func_malloc_set_state = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-doug_lea_malloc=no
+++  doug_lea_malloc=no
++ fi
++ 
++-echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
++-echo "configure:4010: checking whether __after_morecore_hook exists" >&5
++-if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4015 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
+++echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
+++if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ extern void (* __after_morecore_hook)();
++-int main() {
+++int
+++main ()
+++{
++ __after_morecore_hook = 0
++-; return 0; }
++-EOF
++-if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_var___after_morecore_hook=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_var___after_morecore_hook=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_var___after_morecore_hook=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
+++echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
++ if test $emacs_cv_var___after_morecore_hook = no; then
++   doug_lea_malloc=no
++ fi
++@@ -4044,9 +7116,9 @@
++     GNU_MALLOC_reason="
++       (Using Doug Lea's new malloc from the GNU C Library.)"
++   fi
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define DOUG_LEA_MALLOC 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++@@ -4055,112 +7127,275 @@
++ fi
++ 
++ 
++-for ac_hdr in stdlib.h unistd.h sys/stat.h
+++
+++
+++for ac_header in stdlib.h unistd.h
++ do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:4063: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4068 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:4073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++
++ done
++ 
+++
++ for ac_func in getpagesize
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:4102: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4107 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++-echo $ac_n "checking for working mmap""... $ac_c" 1>&6
++-echo "configure:4155: checking for working mmap" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for working mmap" >&5
+++echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
+++if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test "$cross_compiling" = yes; then
++   ac_cv_func_mmap_fixed_mapped=no
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4163 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++/* malloc might have been renamed as rpl_malloc. */
+++#undef malloc
+++
++ /* Thanks to Mike Haertel and Jim Avera for this test.
++    Here is a matrix of mmap possibilities:
++      mmap private not fixed
++@@ -4176,27 +7411,19 @@
++    VM page cache was not coherent with the file system buffer cache
++    like early versions of FreeBSD and possibly contemporary NetBSD.)
++    For shared mappings, we should conversely verify that changes get
++-   propogated back to all the places they're supposed to be.
+++   propagated back to all the places they're supposed to be.
++ 
++    Grep wants private fixed already mapped.
++    The main things grep needs to know about mmap are:
++    * does it exist and is it safe to write into the mmap'd area
++    * how to use it (BSD variants)  */
++-#include <sys/types.h>
+++
++ #include <fcntl.h>
++ #include <sys/mman.h>
++ 
++-#if STDC_HEADERS || HAVE_STDLIB_H
++-# include <stdlib.h>
++-#else
+++#if !STDC_HEADERS && !HAVE_STDLIB_H
++ char *malloc ();
++ #endif
++-#if HAVE_UNISTD_H
++-# include <unistd.h>
++-#endif
++-#if HAVE_SYS_STAT_H
++-# include <sys/stat.h>
++-#endif
++ 
++ /* This mess was copied from the GNU getpagesize.h.  */
++ #if !HAVE_GETPAGESIZE
++@@ -4251,7 +7478,7 @@
++   for (i = 0; i < pagesize; ++i)
++     *(data + i) = rand ();
++   umask (0);
++-  fd = creat ("conftestmmap", 0600);
+++  fd = creat ("conftest.mmap", 0600);
++   if (fd < 0)
++     exit (1);
++   if (write (fd, data, pagesize) != pagesize)
++@@ -4261,15 +7488,15 @@
++   /* Next, try to mmap the file at a fixed address which already has
++      something else allocated at it.  If we can, also make sure that
++      we see the same garbage.  */
++-  fd = open ("conftestmmap", O_RDWR);
+++  fd = open ("conftest.mmap", O_RDWR);
++   if (fd < 0)
++     exit (1);
++   data2 = (char *) malloc (2 * pagesize);
++   if (!data2)
++     exit (1);
++-  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
+++  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
++   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
++-                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
+++                  MAP_PRIVATE | MAP_FIXED, fd, 0L))
++     exit (1);
++   for (i = 0; i < pagesize; ++i)
++     if (*(data + i) != *(data2 + i))
++@@ -4289,31 +7516,42 @@
++     if (*(data + i) != *(data3 + i))
++       exit (1);
++   close (fd);
++-  unlink ("conftestmmap");
++   exit (0);
++ }
++-EOF
++-if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_func_mmap_fixed_mapped=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  ac_cv_func_mmap_fixed_mapped=no
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_func_mmap_fixed_mapped=no
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ fi
++-
++-echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
+++echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
++ if test $ac_cv_func_mmap_fixed_mapped = yes; then
++-  cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_MMAP 1
++-EOF
+++_ACEOF
++ 
++ fi
+++rm -f conftest.mmap
++ 
++ if test $use_mmap_for_buffers = yes; then
++   REL_ALLOC=no
++@@ -4321,185 +7559,291 @@
++ 
++ LIBS="$libsrc_libs $LIBS"
++ 
++-echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
++-echo "configure:4326: checking for dnet_ntoa in -ldnet" >&5
++-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
+++echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
+++if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-ldnet  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 4334 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char dnet_ntoa();
++-
++-int main() {
++-dnet_ntoa()
++-; return 0; }
++-EOF
++-if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char dnet_ntoa ();
+++int
+++main ()
+++{
+++dnet_ntoa ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_dnet_dnet_ntoa=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_dnet_dnet_ntoa=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
+++echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
+++if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBDNET 1
+++_ACEOF
++ 
++   LIBS="-ldnet $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++-echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
++-echo "configure:4374: checking for main in -lXbsd" >&5
++-ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
+++echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xbsd_main+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lXbsd  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 4382 "configure"
++-#include "confdefs.h"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
++-main()
++-; return 0; }
++-EOF
++-if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++main ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xbsd_main=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xbsd_main=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
+++if test $ac_cv_lib_Xbsd_main = yes; then
++   LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++-echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
++-echo "configure:4411: checking for cma_open in -lpthreads" >&5
++-ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
+++echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
+++if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lpthreads  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 4419 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char cma_open();
++-
++-int main() {
++-cma_open()
++-; return 0; }
++-EOF
++-if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char cma_open ();
+++int
+++main ()
+++{
+++cma_open ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_pthreads_cma_open=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_pthreads_cma_open=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
+++echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
+++if test $ac_cv_lib_pthreads_cma_open = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBPTHREADS 1
+++_ACEOF
++ 
++   LIBS="-lpthreads $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++-echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
++-echo "configure:4459: checking for XFree86 in /usr/X386" >&5
+++echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
+++echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
++ if test -d /usr/X386/include; then
++   HAVE_XFREE386=yes
++   : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
++ else
++   HAVE_XFREE386=no
++ fi
++-echo "$ac_t""$HAVE_XFREE386" 1>&6
+++echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
+++echo "${ECHO_T}$HAVE_XFREE386" >&6
++ 
++ 
++ case ${host_os} in
++ aix*)
++-  echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
++-echo "configure:4472: checking for -bbigtoc option" >&5
++-if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
+++echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
+++if test "${gdb_cv_bigtoc+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  
+++
++     case $GCC in
++     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
++     *) gdb_cv_bigtoc=-bbigtoc ;;
++     esac
++ 
++     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
++-    cat > conftest.$ac_ext <<EOF
++-#line 4484 "configure"
++-#include "confdefs.h"
+++    cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
+++int
+++main ()
+++{
++ int i;
++-; return 0; }
++-EOF
++-if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   :
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  gdb_cv_bigtoc=
++-fi
++-rm -f conftest*
++-  
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++gdb_cv_bigtoc=
++ fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ 
++-echo "$ac_t""$gdb_cv_bigtoc" 1>&6
+++fi
+++echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
+++echo "${ECHO_T}$gdb_cv_bigtoc" >&6
++   ;;
++ esac
++ 
++@@ -4525,26 +7869,53 @@
++   fi
++ 
++   if test "${opsys}" = "gnu-linux"; then
++-    echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
++-echo "configure:4530: checking whether X on GNU/Linux needs -b to link" >&5
++-    cat > conftest.$ac_ext <<EOF
++-#line 4532 "configure"
++-#include "confdefs.h"
+++    echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
+++echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
+++    cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
+++int
+++main ()
+++{
++ XOpenDisplay ("foo");
++-; return 0; }
++-EOF
++-if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   xlinux_first_failure=no
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  xlinux_first_failure=yes
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++xlinux_first_failure=yes
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++     if test "${xlinux_first_failure}" = "yes"; then
++       OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
++       OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
++@@ -4554,24 +7925,51 @@
++       C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
++       CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
++       LIBS="$LIBS -b i486-linuxaout"
++-      cat > conftest.$ac_ext <<EOF
++-#line 4559 "configure"
++-#include "confdefs.h"
+++      cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-int main() {
+++int
+++main ()
+++{
++ XOpenDisplay ("foo");
++-; return 0; }
++-EOF
++-if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   xlinux_second_failure=no
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  xlinux_second_failure=yes
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++xlinux_second_failure=yes
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++       if test "${xlinux_second_failure}" = "yes"; then
++      # If we get the same failure with -b, there is no use adding -b.
++      # So take it out.  This plays safe.
++@@ -4579,220 +7977,387 @@
++      C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
++      CPPFLAGS="$OLD_CPPFLAGS"
++      LIBS="$OLD_LIBS"
++-        echo "$ac_t""no" 1>&6
+++        echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++       else
++-        echo "$ac_t""yes" 1>&6
+++        echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
++       fi
++     else
++-      echo "$ac_t""no" 1>&6
+++      echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++     fi
++   fi
++ 
++   # Reportedly, some broken Solaris systems have XKBlib.h but are missing
++   # header files included from there.
++-  echo $ac_n "checking for Xkb""... $ac_c" 1>&6
++-echo "configure:4595: checking for Xkb" >&5
++-  cat > conftest.$ac_ext <<EOF
++-#line 4597 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for Xkb" >&5
+++echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <X11/Xlib.h>
++ #include <X11/XKBlib.h>
++-int main() {
+++int
+++main ()
+++{
++ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
++-; return 0; }
++-EOF
++-if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_xkb=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_xkb=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_xkb=no
++ fi
++-rm -f conftest*
++-  echo "$ac_t""$emacs_xkb" 1>&6
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++  echo "$as_me:$LINENO: result: $emacs_xkb" >&5
+++echo "${ECHO_T}$emacs_xkb" >&6
++   if test $emacs_xkb = yes; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_XKBGETKEYBOARD 1
++-EOF
+++_ACEOF
++ 
++   fi
++ 
++-  for ac_func in XrmSetDatabase XScreenResourceString \
+++
+++
+++
+++
+++for ac_func in XrmSetDatabase XScreenResourceString \
++ XScreenNumberOfScreen XSetWMProtocols
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:4627: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4632 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++ fi
++ 
++ if test "${window_system}" = "x11"; then
++-  echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
++-echo "configure:4683: checking X11 version 6" >&5
++-  if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4688 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking X11 version 6" >&5
+++echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
+++  if test "${emacs_cv_x11_version_6+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <X11/Xlib.h>
++-int main() {
+++int
+++main ()
+++{
++ #if XlibSpecificationRelease < 6
++ fail;
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_x11_version_6=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_x11_version_6=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_x11_version_6=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++ 
++   if test $emacs_cv_x11_version_6 = yes; then
++-    echo "$ac_t""6 or newer" 1>&6
++-    cat >> confdefs.h <<\EOF
+++    echo "$as_me:$LINENO: result: 6 or newer" >&5
+++echo "${ECHO_T}6 or newer" >&6
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_X11R6 1
++-EOF
+++_ACEOF
++ 
++   else
++-    echo "$ac_t""before 6" 1>&6
+++    echo "$as_me:$LINENO: result: before 6" >&5
+++echo "${ECHO_T}before 6" >&6
++   fi
++ fi
++ 
++ if test "${window_system}" = "x11"; then
++-  echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
++-echo "configure:4723: checking X11 version 5" >&5
++-  if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4728 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking X11 version 5" >&5
+++echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
+++  if test "${emacs_cv_x11_version_5+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <X11/Xlib.h>
++-int main() {
+++int
+++main ()
+++{
++ #if XlibSpecificationRelease < 5
++ fail;
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_x11_version_5=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_x11_version_5=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_x11_version_5=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++ 
++   if test $emacs_cv_x11_version_5 = yes; then
++-    echo "$ac_t""5 or newer" 1>&6
+++    echo "$as_me:$LINENO: result: 5 or newer" >&5
+++echo "${ECHO_T}5 or newer" >&6
++     HAVE_X11R5=yes
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_X11R5 1
++-EOF
+++_ACEOF
++ 
++   else
++     HAVE_X11R5=no
++-    echo "$ac_t""before 5" 1>&6
+++    echo "$as_me:$LINENO: result: before 5" >&5
+++echo "${ECHO_T}before 5" >&6
++   fi
++ fi
++ 
++ if test x"${USE_X_TOOLKIT}" = xmaybe; then
++   if test x"${HAVE_X11R5}" = xyes; then
++-    echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
++-echo "configure:4766: checking X11 version 5 with Xaw" >&5
++-    if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4771 "configure"
++-#include "confdefs.h"
+++    echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
+++echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
+++    if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++ #include <X11/Intrinsic.h>
++ #include <X11/Xaw/Simple.h>
++-int main() {
+++int
+++main ()
+++{
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_x11_version_5_with_xaw=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_x11_version_5_with_xaw=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_x11_version_5_with_xaw=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++ 
++     if test $emacs_cv_x11_version_5_with_xaw = yes; then
++-      echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
+++      echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
+++echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
++       USE_X_TOOLKIT=LUCID
++     else
++-      echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
+++      echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
+++echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
++       USE_X_TOOLKIT=none
++     fi
++   else
++@@ -4803,43 +8368,72 @@
++ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
++ 
++ if test "${USE_X_TOOLKIT}" != "none"; then
++-  echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
++-echo "configure:4808: checking X11 toolkit version" >&5
++-  if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4813 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking X11 toolkit version" >&5
+++echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
+++  if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <X11/Intrinsic.h>
++-int main() {
+++int
+++main ()
+++{
++ #if XtSpecificationRelease < 6
++ fail;
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_x11_toolkit_version_6=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_x11_toolkit_version_6=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_x11_toolkit_version_6=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++ 
++   HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
++   if test $emacs_cv_x11_toolkit_version_6 = yes; then
++-    echo "$ac_t""6 or newer" 1>&6
++-    cat >> confdefs.h <<\EOF
+++    echo "$as_me:$LINENO: result: 6 or newer" >&5
+++echo "${ECHO_T}6 or newer" >&6
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_X11XTR6 1
++-EOF
+++_ACEOF
++ 
++   else
++-    echo "$ac_t""before 6" 1>&6
+++    echo "$as_me:$LINENO: result: before 6" >&5
+++echo "${ECHO_T}before 6" >&6
++   fi
++ 
++   OLDLIBS="$LIBS"
++@@ -4848,51 +8442,77 @@
++   else
++     LIBS="-lXt $LIBS"
++   fi
++-  echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
++-echo "configure:4853: checking for XmuConvertStandardSelection in -lXmu" >&5
++-ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
+++echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lXmu  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 4861 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char XmuConvertStandardSelection();
++-
++-int main() {
++-XmuConvertStandardSelection()
++-; return 0; }
++-EOF
++-if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char XmuConvertStandardSelection ();
+++int
+++main ()
+++{
+++XmuConvertStandardSelection ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xmu_XmuConvertStandardSelection=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
+++if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBXMU 1
+++_ACEOF
++ 
++   LIBS="-lXmu $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++   test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
++@@ -4901,140 +8521,219 @@
++ # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${USE_X_TOOLKIT}" != "none"; then
++-    echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
++-echo "configure:4906: checking for XShapeQueryExtension in -lXext" >&5
++-ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
+++echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lXext  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 4914 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char XShapeQueryExtension();
++-
++-int main() {
++-XShapeQueryExtension()
++-; return 0; }
++-EOF
++-if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char XShapeQueryExtension ();
+++int
+++main ()
+++{
+++XShapeQueryExtension ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xext_XShapeQueryExtension=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xext_XShapeQueryExtension=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
+++if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBXEXT 1
+++_ACEOF
++ 
++   LIBS="-lXext $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++   fi
++ fi
++ 
++ if test "${USE_X_TOOLKIT}" = "MOTIF"; then
++-  echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
++-echo "configure:4957: checking for Motif version 2.1" >&5
++-if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 4962 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
+++echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
+++if test "${emacs_cv_motif_version_2_1+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <Xm/Xm.h>
++-int main() {
+++int
+++main ()
+++{
++ #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
++ int x = 5;
++ #else
++ Motif version prior to 2.1.
++ #endif
++-; return 0; }
++-EOF
++-if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_motif_version_2_1=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_motif_version_2_1=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_motif_version_2_1=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
+++echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
++   HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
++   if test $emacs_cv_motif_version_2_1 = yes; then
++     HAVE_LIBXP=no
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_MOTIF_2_1 1
++-EOF
+++_ACEOF
++ 
++-    echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
++-echo "configure:4994: checking for XpCreateContext in -lXp" >&5
++-ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++    echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
+++echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lXp  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5002 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char XpCreateContext();
++-
++-int main() {
++-XpCreateContext()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char XpCreateContext ();
+++int
+++main ()
+++{
+++XpCreateContext ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xp_XpCreateContext=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xp_XpCreateContext=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
+++if test $ac_cv_lib_Xp_XpCreateContext = yes; then
++   HAVE_LIBXP=yes
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++     if test ${HAVE_LIBXP} = yes; then
++-      cat >> confdefs.h <<\EOF
+++      cat >>confdefs.h <<\_ACEOF
++ #define HAVE_LIBXP 1
++-EOF
+++_ACEOF
++ 
++-    fi       
+++    fi
++   fi
++ fi
++ 
++@@ -5042,102 +8741,237 @@
++ HAVE_XAW3D=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${USE_X_TOOLKIT}" != "none"; then
++-    ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
++-echo "configure:5048: checking for X11/Xaw3d/Scrollbar.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5053 "configure"
++-#include "confdefs.h"
+++    if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
+++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
+++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
+++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
+++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <X11/Xaw3d/Scrollbar.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
+++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <X11/Xaw3d/Scrollbar.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
++-echo "configure:5075: checking for XawScrollbarSetThumb in -lXaw3d" >&5
++-ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lXaw3d  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5083 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char XawScrollbarSetThumb();
++-
++-int main() {
++-XawScrollbarSetThumb()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
+++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
+++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
+++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  HAVE_XAW3D=yes
+++if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
+++  echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
+++echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lXaw3d  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char XawScrollbarSetThumb ();
+++int
+++main ()
+++{
+++XawScrollbarSetThumb ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
+++if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
+++  HAVE_XAW3D=yes
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++     if test "${HAVE_XAW3D}" = "yes"; then
++-     cat >> confdefs.h <<\EOF
+++     cat >>confdefs.h <<\_ACEOF
++ #define HAVE_XAW3D 1
++-EOF
+++_ACEOF
++ 
++     fi
++   fi
++ fi
++-  
+++
++ 
++ USE_TOOLKIT_SCROLL_BARS=no
++ if test "${with_toolkit_scroll_bars}" != "no"; then
++   if test "${USE_X_TOOLKIT}" != "none"; then
++     if test "${USE_X_TOOLKIT}" = "MOTIF"; then
++-      cat >> confdefs.h <<\EOF
+++      cat >>confdefs.h <<\_ACEOF
++ #define USE_TOOLKIT_SCROLL_BARS 1
++-EOF
+++_ACEOF
++ 
++       HAVE_XAW3D=no
++       USE_TOOLKIT_SCROLL_BARS=yes
++     elif test "${HAVE_XAW3D}" = "yes"; then
++-      cat >> confdefs.h <<\EOF
+++      cat >>confdefs.h <<\_ACEOF
++ #define USE_TOOLKIT_SCROLL_BARS 1
++-EOF
+++_ACEOF
++ 
++       USE_TOOLKIT_SCROLL_BARS=yes
++     fi
++@@ -5146,9 +8980,9 @@
++ 
++ 
++ if test "${with_xim}" != "no"; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define USE_XIM 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++@@ -5156,565 +8990,1302 @@
++ HAVE_XPM=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${with_xpm}" != "no"; then
++-    ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
++-echo "configure:5162: checking for X11/xpm.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5167 "configure"
++-#include "confdefs.h"
+++    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
+++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
+++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
+++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
+++echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <X11/xpm.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
+++echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <X11/xpm.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
++-echo "configure:5189: checking for XpmReadFileToPixmap in -lXpm" >&5
++-ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lXpm -lX11 $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5197 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char XpmReadFileToPixmap();
++-
++-int main() {
++-XpmReadFileToPixmap()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
+++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
+++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_X11_xpm_h=$ac_header_preproc
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
+++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  HAVE_XPM=yes
+++if test $ac_cv_header_X11_xpm_h = yes; then
+++  echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
+++echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
+++if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lXpm -lX11 $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char XpmReadFileToPixmap ();
+++int
+++main ()
+++{
+++XpmReadFileToPixmap ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_Xpm_XpmReadFileToPixmap=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
+++echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
+++if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
+++  HAVE_XPM=yes
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++     if test "${HAVE_XPM}" = "yes"; then
++-      echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
++-echo "configure:5234: checking for XpmReturnAllocPixels preprocessor define" >&5
++-      cat > conftest.$ac_ext <<EOF
++-#line 5236 "configure"
++-#include "confdefs.h"
+++      echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
+++echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
+++      cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include "X11/xpm.h"
++ #ifndef XpmReturnAllocPixels
++ no_return_alloc_pixels
++ #endif
++-      
++-EOF
+++
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++  $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
++   HAVE_XPM=no
++ else
++-  rm -rf conftest*
++   HAVE_XPM=yes
++ fi
++ rm -f conftest*
++ 
++ 
++       if test "${HAVE_XPM}" = "yes"; then
++-     echo "$ac_t""yes" 1>&6
+++     echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
++       else
++-     echo "$ac_t""no" 1>&6
+++     echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++       fi
++     fi
++   fi
++ 
++   if test "${HAVE_XPM}" = "yes"; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_XPM 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++-  
+++
++ ### Use -ljpeg if available, unless `--with-jpeg=no'.
++ HAVE_JPEG=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${with_jpeg}" != "no"; then
++-            ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
++-echo "configure:5277: checking for jerror.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5282 "configure"
++-#include "confdefs.h"
+++            if test "${ac_cv_header_jerror_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for jerror.h" >&5
+++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
+++if test "${ac_cv_header_jerror_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
+++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking jerror.h usability" >&5
+++echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <jerror.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking jerror.h presence" >&5
+++echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <jerror.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
++-echo "configure:5304: checking for jpeg_destroy_compress in -ljpeg" >&5
++-ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-ljpeg  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5312 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char jpeg_destroy_compress();
++-
++-int main() {
++-jpeg_destroy_compress()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: jerror.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for jerror.h" >&5
+++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
+++if test "${ac_cv_header_jerror_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_jerror_h=$ac_header_preproc
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
+++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  HAVE_JPEG=yes
+++if test $ac_cv_header_jerror_h = yes; then
+++  echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
+++echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
+++if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-ljpeg  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char jpeg_destroy_compress ();
+++int
+++main ()
+++{
+++jpeg_destroy_compress ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_jpeg_jpeg_destroy_compress=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_jpeg_jpeg_destroy_compress=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
+++echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
+++if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
+++  HAVE_JPEG=yes
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++   fi
++ 
++   if test "${HAVE_JPEG}" = "yes"; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_JPEG 1
++-EOF
+++_ACEOF
++ 
++-    cat > conftest.$ac_ext <<EOF
++-#line 5355 "configure"
++-#include "confdefs.h"
+++    cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++         #include <jpeglib.h>
++       version=JPEG_LIB_VERSION
++ 
++-EOF
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
++-  rm -rf conftest*
++-  cat >> confdefs.h <<\EOF
+++  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_JPEG 1
++-EOF
+++_ACEOF
++ 
++ else
++-  rm -rf conftest*
++-  echo "configure: warning: libjpeg found, but not version 6b or later" 1>&2
+++  { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
+++echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
++         HAVE_JPEG=no
++ fi
++ rm -f conftest*
++ 
++   fi
++ fi
++-  
+++
++ ### Use -lpng if available, unless `--with-png=no'.
++ HAVE_PNG=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${with_png}" != "no"; then
++-    ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for png.h""... $ac_c" 1>&6
++-echo "configure:5384: checking for png.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5389 "configure"
++-#include "confdefs.h"
+++    if test "${ac_cv_header_png_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for png.h" >&5
+++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
+++if test "${ac_cv_header_png_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
+++echo "${ECHO_T}$ac_cv_header_png_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking png.h usability" >&5
+++echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <png.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking png.h presence" >&5
+++echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <png.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
++-echo "configure:5411: checking for png_get_channels in -lpng" >&5
++-ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lpng -lz -lm $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5419 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char png_get_channels();
++-
++-int main() {
++-png_get_channels()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for png.h" >&5
+++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
+++if test "${ac_cv_header_png_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_png_h=$ac_header_preproc
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
+++echo "${ECHO_T}$ac_cv_header_png_h" >&6
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  HAVE_PNG=yes
+++if test $ac_cv_header_png_h = yes; then
+++  echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
+++echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
+++if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lpng -lz -lm $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char png_get_channels ();
+++int
+++main ()
+++{
+++png_get_channels ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_png_png_get_channels=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_png_png_get_channels=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
+++echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
+++if test $ac_cv_lib_png_png_get_channels = yes; then
+++  HAVE_PNG=yes
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++   fi
++ 
++   if test "${HAVE_PNG}" = "yes"; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_PNG 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++-  
+++
++ ### Use -ltiff if available, unless `--with-tiff=no'.
++ HAVE_TIFF=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${with_tiff}" != "no"; then
++-    ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
++-echo "configure:5470: checking for tiffio.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5475 "configure"
++-#include "confdefs.h"
+++    if test "${ac_cv_header_tiffio_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for tiffio.h" >&5
+++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
+++if test "${ac_cv_header_tiffio_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
+++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking tiffio.h usability" >&5
+++echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <tiffio.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking tiffio.h presence" >&5
+++echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <tiffio.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for tiffio.h" >&5
+++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
+++if test "${ac_cv_header_tiffio_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_tiffio_h=$ac_header_preproc
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
+++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++if test $ac_cv_header_tiffio_h = yes; then
++   tifflibs="-lz -lm"
++       # At least one tiff package requires the jpeg library.
++       if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
++-      echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
++-echo "configure:5500: checking for TIFFGetVersion in -ltiff" >&5
++-ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++      echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
+++echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
+++if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-ltiff $tifflibs $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5508 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char TIFFGetVersion();
++-
++-int main() {
++-TIFFGetVersion()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char TIFFGetVersion ();
+++int
+++main ()
+++{
+++TIFFGetVersion ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_tiff_TIFFGetVersion=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_tiff_TIFFGetVersion=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
+++echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
+++if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
++   HAVE_TIFF=yes
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++   fi
++ 
++   if test "${HAVE_TIFF}" = "yes"; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_TIFF 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++-  
+++
++ ### Use -lgif if available, unless `--with-gif=no'.
++ HAVE_GIF=no
++ if test "${HAVE_X11}" = "yes"; then
++   if test "${with_gif}" != "no"; then
++-    ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
++-echo "configure:5559: checking for gif_lib.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5564 "configure"
++-#include "confdefs.h"
+++    if test "${ac_cv_header_gif_lib_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for gif_lib.h" >&5
+++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
+++if test "${ac_cv_header_gif_lib_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
+++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
+++echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
++ #include <gif_lib.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:5569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
+++echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <gif_lib.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for gif_lib.h" >&5
+++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
+++if test "${ac_cv_header_gif_lib_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_gif_lib_h=$ac_header_preproc
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
+++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++if test $ac_cv_header_gif_lib_h = yes; then
++   # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
++ # Earlier versions can crash Emacs.
++-      echo $ac_n "checking for EGifPutExtensionLast in -lungif""... $ac_c" 1>&6
++-echo "configure:5588: checking for EGifPutExtensionLast in -lungif" >&5
++-ac_lib_var=`echo ungif'_'EGifPutExtensionLast | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++      echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
+++echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
+++if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lungif  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5596 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char EGifPutExtensionLast();
++-
++-int main() {
++-EGifPutExtensionLast()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char EGifPutExtensionLast ();
+++int
+++main ()
+++{
+++EGifPutExtensionLast ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_ungif_EGifPutExtensionLast=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_ungif_EGifPutExtensionLast=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
+++echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
+++if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
++   HAVE_GIF=yes
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++
++   fi
++ 
++   if test "${HAVE_GIF}" = "yes"; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_GIF 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++ 
++ # If netdb.h doesn't declare h_errno, we must declare it by hand.
++-echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
++-echo "configure:5643: checking whether netdb declares h_errno" >&5
++-if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5648 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
+++echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
+++if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <netdb.h>
++-int main() {
+++int
+++main ()
+++{
++ return h_errno;
++-; return 0; }
++-EOF
++-if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_netdb_declares_h_errno=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_netdb_declares_h_errno=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_netdb_declares_h_errno=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
+++echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
++ if test $emacs_cv_netdb_declares_h_errno = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_H_ERRNO 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
++ # for constant arguments.  Useless!
++-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
++-echo "configure:5678: checking for working alloca.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5683 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for working alloca.h" >&5
+++echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
+++if test "${ac_cv_working_alloca_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <alloca.h>
++-int main() {
++-char *p = alloca(2 * sizeof(int));
++-; return 0; }
++-EOF
++-if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  ac_cv_header_alloca_h=yes
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_header_alloca_h=no
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++char *p = (char *) alloca (2 * sizeof (int));
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_working_alloca_h=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_working_alloca_h=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
+++echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
+++if test $ac_cv_working_alloca_h = yes; then
++ 
++-echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
++-if test $ac_cv_header_alloca_h = yes; then
++-  cat >> confdefs.h <<\EOF
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_ALLOCA_H 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking for alloca""... $ac_c" 1>&6
++-echo "configure:5711: checking for alloca" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for alloca" >&5
+++echo $ECHO_N "checking for alloca... $ECHO_C" >&6
+++if test "${ac_cv_func_alloca_works+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5716 "configure"
++-#include "confdefs.h"
++-
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #ifdef __GNUC__
++ # define alloca __builtin_alloca
++ #else
++@@ -5736,137 +10307,215 @@
++ # endif
++ #endif
++ 
++-int main() {
++-char *p = (char *) alloca(1);
++-; return 0; }
++-EOF
++-if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++int
+++main ()
+++{
+++char *p = (char *) alloca (1);
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_func_alloca_works=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_func_alloca_works=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_alloca_works=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
+++echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
++ 
++-echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
++ if test $ac_cv_func_alloca_works = yes; then
++-  cat >> confdefs.h <<\EOF
++-#define HAVE_ALLOCA 1
++-EOF
++ 
++-fi
+++cat >>confdefs.h <<\_ACEOF
+++#define HAVE_ALLOCA 1
+++_ACEOF
++ 
++-if test $ac_cv_func_alloca_works = no; then
+++else
++   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
++-  # that cause trouble.  Some versions do not even contain alloca or
++-  # contain a buggy version.  If you still want to use their alloca,
++-  # use ar to extract alloca.o from them instead of compiling alloca.c.
++-  ALLOCA=alloca.${ac_objext}
++-  cat >> confdefs.h <<\EOF
+++# that cause trouble.  Some versions do not even contain alloca or
+++# contain a buggy version.  If you still want to use their alloca,
+++# use ar to extract alloca.o from them instead of compiling alloca.c.
+++
+++ALLOCA=alloca.$ac_objext
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define C_ALLOCA 1
++-EOF
+++_ACEOF
++ 
++ 
++-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
++-echo "configure:5776: checking whether alloca needs Cray hooks" >&5
++-if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5781 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
+++echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
+++if test "${ac_cv_os_cray+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #if defined(CRAY) && ! defined(CRAY2)
++ webecray
++ #else
++ wenotbecray
++ #endif
++ 
++-EOF
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "webecray" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++  $EGREP "webecray" >/dev/null 2>&1; then
++   ac_cv_os_cray=yes
++ else
++-  rm -rf conftest*
++   ac_cv_os_cray=no
++ fi
++ rm -f conftest*
++ 
++ fi
++-
++-echo "$ac_t""$ac_cv_os_cray" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
+++echo "${ECHO_T}$ac_cv_os_cray" >&6
++ if test $ac_cv_os_cray = yes; then
++-for ac_func in _getb67 GETB67 getb67; do
++-  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:5806: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5811 "configure"
++-#include "confdefs.h"
+++  for ac_func in _getb67 GETB67 getb67; do
+++    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define CRAY_STACKSEG_END $ac_func
++-EOF
+++_ACEOF
++ 
++-  break
++-else
++-  echo "$ac_t""no" 1>&6
+++    break
++ fi
++ 
++-done
+++  done
++ fi
++ 
++-echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
++-echo "configure:5861: checking stack direction for C alloca" >&5
++-if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
+++echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
+++if test "${ac_cv_c_stack_direction+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test "$cross_compiling" = yes; then
++   ac_cv_c_stack_direction=0
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 5869 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++int
++ find_stack_direction ()
++ {
++   static char *addr = 0;
++@@ -5879,489 +10528,1301 @@
++   else
++     return (&dummy > addr) ? 1 : -1;
++ }
+++
+++int
++ main ()
++ {
++-  exit (find_stack_direction() < 0);
+++  exit (find_stack_direction () < 0);
++ }
++-EOF
++-if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_c_stack_direction=1
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  ac_cv_c_stack_direction=-1
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_c_stack_direction=-1
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
+++echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
++ 
++-echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define STACK_DIRECTION $ac_cv_c_stack_direction
++-EOF
+++_ACEOF
+++
++ 
++ fi
++ 
++ 
++ # fmod, logb, and frexp are found in -lm on most systems.
++ # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
++-echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
++-echo "configure:5913: checking for sqrt in -lm" >&5
++-ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
+++echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
+++if test "${ac_cv_lib_m_sqrt+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lm  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5921 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char sqrt();
++-
++-int main() {
++-sqrt()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char sqrt ();
+++int
+++main ()
+++{
+++sqrt ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_m_sqrt=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_m_sqrt=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
+++echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
+++if test $ac_cv_lib_m_sqrt = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBM 1
+++_ACEOF
++ 
++   LIBS="-lm $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++-# Check for mail-locking functions in a "mail" library
++-echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
++-echo "configure:5962: checking for maillock in -lmail" >&5
++-ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++# Check for mail-locking functions in a "mail" library Check for
+++# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
+++# for touchlock because we don't want to have to put the lock libs
+++# into LIBS and AC_CHECK_FUNCS would require that.
+++
+++echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
+++echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
+++if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lmail  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 5970 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char maillock();
++-
++-int main() {
++-maillock()
++-; return 0; }
++-EOF
++-if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-llockfile  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char maillock ();
+++int
+++main ()
+++{
+++maillock ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_lockfile_maillock=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_lockfile_maillock=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
+++echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
+++if test $ac_cv_lib_lockfile_maillock = yes; then
+++   cat >>confdefs.h <<\_ACEOF
+++#define HAVE_LIBMAIL 1
+++_ACEOF
+++
+++    MOVEMAIL_LOCK_LIBS="-llockfile"
+++    echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
+++echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
+++if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-llockfile  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char touchlock ();
+++int
+++main ()
+++{
+++touchlock ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_lockfile_touchlock=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_lockfile_touchlock=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
+++echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
+++if test $ac_cv_lib_lockfile_touchlock = yes; then
+++  cat >>confdefs.h <<\_ACEOF
+++#define HAVE_TOUCHLOCK 1
+++_ACEOF
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
++ 
++-  LIBS="-lmail $LIBS"
++ 
+++for ac_header in maillock.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_cpp_err=yes
++ fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
++-echo "configure:6009: checking for maillock in -llockfile" >&5
++-ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-llockfile  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6017 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char maillock();
++-
++-int main() {
++-maillock()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++  eval "$as_ac_Header=\$ac_header_preproc"
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
++-
++-  LIBS="-llockfile $LIBS"
++-
++-else
++-  echo "$ac_t""no" 1>&6
++-fi
++-
++-# If we have the shared liblockfile, assume we must use it for mail
++-# locking (e.g. Debian).  If we couldn't link against liblockfile
++-# (no liblockfile.a installed), ensure that we don't need to.
++-if test "$ac_cv_lib_lockfile_maillock" = no; then
++-      # Extract the first word of "liblockfile.so", so it can be a program name with args.
++-set dummy liblockfile.so; ac_word=$2
++-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++-echo "configure:6062: checking for $ac_word" >&5
++-if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  if test -n "$liblockfile"; then
++-  ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
++-else
++-  IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS=":"
++-  ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
++-  for ac_dir in $ac_dummy; do
++-    test -z "$ac_dir" && ac_dir=.
++-    if test -f $ac_dir/$ac_word; then
++-      ac_cv_prog_liblockfile="yes"
++-      break
++-    fi
++-  done
++-  IFS="$ac_save_ifs"
++-  test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
++-fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
++-liblockfile="$ac_cv_prog_liblockfile"
++-if test -n "$liblockfile"; then
++-  echo "$ac_t""$liblockfile" 1>&6
+++
+++done
+++
++ else
++-  echo "$ac_t""no" 1>&6
++-fi
+++   echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
+++echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
+++if test "${ac_cv_lib_mail_maillock+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lmail  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-  if test $ac_cv_prog_liblockfile = yes; then
++-    { echo "configure: error: Shared liblockfile found but can't link against it.
++-This probably means that movemail could lose mail.
++-There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
++-  else cat >> confdefs.h <<\EOF
++-#define LIBMAIL -llockfile
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char maillock ();
+++int
+++main ()
+++{
+++maillock ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_mail_maillock=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_mail_maillock=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
+++echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
+++if test $ac_cv_lib_mail_maillock = yes; then
+++   cat >>confdefs.h <<\_ACEOF
+++#define HAVE_LIBMAIL 1
+++_ACEOF
+++
+++               MOVEMAIL_LOCK_LIBS="-lmail"
+++               echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
+++echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
+++if test "${ac_cv_lib_mail_touchlock+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lmail  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char touchlock ();
+++int
+++main ()
+++{
+++touchlock ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_mail_touchlock=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_mail_touchlock=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
+++echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
+++if test $ac_cv_lib_mail_touchlock = yes; then
+++  cat >>confdefs.h <<\_ACEOF
+++#define HAVE_TOUCHLOCK 1
+++_ACEOF
++ 
++-  fi
++-  else :
++ fi
+++
+++
++ for ac_func in touchlock
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:6103: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6108 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++-for ac_hdr in maillock.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:6159: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6164 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:6169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++
+++for ac_header in maillock.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  eval "$as_ac_Header=\$ac_header_preproc"
++ fi
++-done
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++ 
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-for ac_func in gethostname getdomainname dup2 \
++-rename closedir mkdir rmdir sysinfo \
+++fi
+++
+++done
+++
+++fi
+++
+++fi
+++
+++
+++
+++# Tests borrowed (and slightly rearranged) from old paths.el
+++# rmail-spool-directory tests.  They should be in the order most
+++# likely to get the right answer.  You can always override them on the
+++# system level in src/s/* and on a one-shot basis with
+++# --with-mail-spool-directory.
+++
+++echo "$as_me:$LINENO: checking for mail spool location" >&5
+++echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
+++if test "${with_mail_spool+set}" = set; then
+++  echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
+++echo "${ECHO_T}${with_mail_spool}" >&6
+++elif test -d /var/mail/; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
+++echo "${ECHO_T}\"/var/mail\"" >&6
+++elif test -d /var/spool/mail/; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
+++echo "${ECHO_T}\"/var/spool/mail\"" >&6
+++elif test -d /usr/mail/; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
+++echo "${ECHO_T}\"/usr/mail\"" >&6
+++elif test -d /usr/spool/mail/; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
+++echo "${ECHO_T}\"/usr/spool/mail\"" >&6
+++else
+++  echo "$as_me:$LINENO: result: not found" >&5
+++echo "${ECHO_T}not found" >&6
+++fi
+++
+++# Find the location of "mail".  This is critical for fakemail at
+++# least.  before fakemail would silently fail if this was wrong, so
+++# insist on finding it.
+++echo "$as_me:$LINENO: checking for mail binary" >&5
+++echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
+++if test -x /bin/mail; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
+++echo "${ECHO_T}\"/bin/mail\"" >&6
+++elif test -x /usr/bin/mail; then
+++  cat >>confdefs.h <<_ACEOF
+++#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
+++_ACEOF
+++
+++  echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
+++echo "${ECHO_T}\"/usr/bin/mail\"" >&6
+++else
+++  { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
+++echo "$as_me: error: could not find mail binary" >&2;}
+++   { (exit 1); exit 1; }; }
+++fi
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++
+++for ac_func in gethostname getdomainname dup2 \
+++rename closedir mkdir rmdir sysinfo \
++ random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
++ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
++ utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
++ __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
++ gai_strerror mkstemp
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:6205: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6210 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++ 
++-for ac_hdr in sys/time.h unistd.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:6262: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6267 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:6272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++
+++
+++
+++for ac_header in stdlib.h sys/time.h unistd.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++
++ done
++ 
+++
++ for ac_func in alarm
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:6301: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6306 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef $ac_func
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++-echo $ac_n "checking for working mktime""... $ac_c" 1>&6
++-echo "configure:6354: checking for working mktime" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for working mktime" >&5
+++echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
+++if test "${ac_cv_func_working_mktime+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test "$cross_compiling" = yes; then
++   ac_cv_func_working_mktime=no
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6362 "configure"
++-#include "confdefs.h"
++-/* Test program from Paul Eggert (eggert@twinsun.com)
++-   and Tony Leneis (tony@plaza.ds.adp.com).  */
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Test program from Paul Eggert and Tony Leneis.  */
++ #if TIME_WITH_SYS_TIME
++ # include <sys/time.h>
++ # include <time.h>
++@@ -6373,6 +11834,10 @@
++ # endif
++ #endif
++ 
+++#if HAVE_STDLIB_H
+++# include <stdlib.h>
+++#endif
+++
++ #if HAVE_UNISTD_H
++ # include <unistd.h>
++ #endif
++@@ -6385,10 +11850,11 @@
++ #undef putenv
++ 
++ static time_t time_t_max;
+++static time_t time_t_min;
++ 
++ /* Values we'll use to set the TZ environment variable.  */
++-static const char *const tz_strings[] = {
++-  (const char *) 0, "TZ=GMT0", "TZ=JST-9",
+++static char *tz_strings[] = {
+++  (char *) 0, "TZ=GMT0", "TZ=JST-9",
++   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
++ };
++ #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
++@@ -6398,7 +11864,7 @@
++ static void
++ spring_forward_gap ()
++ {
++-  /* glibc (up to about 1998-10-07) failed this test) */
+++  /* glibc (up to about 1998-10-07) failed this test. */
++   struct tm tm;
++ 
++   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
++@@ -6419,15 +11885,21 @@
++ }
++ 
++ static void
++-mktime_test (now)
+++mktime_test1 (now)
++      time_t now;
++ {
++   struct tm *lt;
++   if ((lt = localtime (&now)) && mktime (lt) != now)
++     exit (1);
++-  now = time_t_max - now;
++-  if ((lt = localtime (&now)) && mktime (lt) != now)
++-    exit (1);
+++}
+++
+++static void
+++mktime_test (now)
+++     time_t now;
+++{
+++  mktime_test1 (now);
+++  mktime_test1 ((time_t) (time_t_max - now));
+++  mktime_test1 ((time_t) (time_t_min + now));
++ }
++ 
++ static void
++@@ -6487,6 +11959,9 @@
++   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
++     continue;
++   time_t_max--;
+++  if ((time_t) -1 < 0)
+++    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
+++      continue;
++   delta = time_t_max / 997; /* a suitable prime number */
++   for (i = 0; i < N_STRINGS; i++)
++     {
++@@ -6495,219 +11970,555 @@
++ 
++       for (t = 0; t <= time_t_max - delta; t += delta)
++      mktime_test (t);
++-      mktime_test ((time_t) 60 * 60);
++-      mktime_test ((time_t) 60 * 60 * 24);
+++      mktime_test ((time_t) 1);
+++      mktime_test ((time_t) (60 * 60));
+++      mktime_test ((time_t) (60 * 60 * 24));
++ 
++       for (j = 1; 0 < j; j *= 2)
++-        bigtime_test (j);
+++     bigtime_test (j);
++       bigtime_test (j - 1);
++     }
++   irix_6_4_bug ();
++   spring_forward_gap ();
++   exit (0);
++ }
++-EOF
++-if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_func_working_mktime=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  ac_cv_func_working_mktime=no
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_func_working_mktime=no
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ fi
++-
++-echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
+++echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
++ if test $ac_cv_func_working_mktime = no; then
++-  LIBOBJS="$LIBOBJS mktime.${ac_objext}"
+++  case $LIBOBJS in
+++    "mktime.$ac_objext"   | \
+++  *" mktime.$ac_objext"   | \
+++    "mktime.$ac_objext "* | \
+++  *" mktime.$ac_objext "* ) ;;
+++  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
+++esac
+++
++ fi
++ 
++ if test "$ac_cv_func_working_mktime" = no; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define BROKEN_MKTIME 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ ac_have_func=no # yes means we've found a way to get the load average.
++ 
++-# Some systems have getloadavg without any extra libraries.
++-echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
++-echo "configure:6541: checking for getloadavg" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6546 "configure"
++-#include "confdefs.h"
+++# Make sure getloadavg.c is where it belongs, at configure-time.
+++test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
+++  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
+++echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++ac_save_LIBS=$LIBS
+++
+++# Check for getloadavg, but be sure not to touch the cache variable.
+++(echo "$as_me:$LINENO: checking for getloadavg" >&5
+++echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
+++if test "${ac_cv_func_getloadavg+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define getloadavg innocuous_getloadavg
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char getloadavg(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char getloadavg();
+++    which can conflict with char getloadavg (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef getloadavg
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char getloadavg ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
++ choke me
++ #else
++-getloadavg();
+++char (*f) () = getloadavg;
++ #endif
+++#ifdef __cplusplus
+++}
+++#endif
+++
+++int
+++main ()
+++{
+++return f != getloadavg;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_getloadavg=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_getloadavg=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_getloadavg=no"
+++ac_cv_func_getloadavg=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
++-
++-if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  ac_have_func=yes
+++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
+++echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
+++if test $ac_cv_func_getloadavg = yes; then
+++  exit 0
++ else
++-  echo "$ac_t""no" 1>&6
+++  exit 1
+++fi
+++) && ac_have_func=yes
+++
+++# On HPUX9, an unprivileged user can get load averages through this function.
+++
+++for ac_func in pstat_getdynamic
+++do
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
+++/* System header to define __stub macros and hopefully few prototypes,
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
+++
+++#undef $ac_func
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
+++/* The GNU C library defines this for functions which it implements
+++    to always fail with ENOSYS.  Some functions are actually named
+++    something starting with __ and the normal name is an alias.  */
+++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+++choke me
+++#else
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
+++#endif
+++
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++done
+++
+++
+++# Solaris has libkstat which does not require root.
+++
+++echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
+++echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
+++if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lkstat  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char kstat_open ();
+++int
+++main ()
+++{
+++kstat_open ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_kstat_kstat_open=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_kstat_kstat_open=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
+++echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
+++if test $ac_cv_lib_kstat_kstat_open = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBKSTAT 1
+++_ACEOF
+++
+++  LIBS="-lkstat $LIBS"
++ 
+++fi
++ 
+++test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
+++
+++# Some systems with -lutil have (and need) -lkvm as well, some do not.
+++# On Solaris, -lkvm requires nlist from -lelf, so check that first
+++# to get the right answer into the cache.
+++# For kstat on solaris, we need libelf to force the definition of SVR4 below.
++ if test $ac_have_func = no; then
++-  # Some systems with -lutil have (and need) -lkvm as well, some do not.
++-  # On Solaris, -lkvm requires nlist from -lelf, so check that first
++-  # to get the right answer into the cache.
++-  echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
++-echo "configure:6594: checking for elf_begin in -lelf" >&5
++-ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
+++echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
+++if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lelf  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6602 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char elf_begin();
++-
++-int main() {
++-elf_begin()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char elf_begin ();
+++int
+++main ()
+++{
+++elf_begin ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_elf_elf_begin=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_elf_elf_begin=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
+++echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
+++if test $ac_cv_lib_elf_elf_begin = yes; then
++   LIBS="-lelf $LIBS"
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-  echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
++-echo "configure:6634: checking for kvm_open in -lkvm" >&5
++-ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++fi
+++if test $ac_have_func = no; then
+++  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
+++echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
+++if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lkvm  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6642 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char kvm_open();
++-
++-int main() {
++-kvm_open()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char kvm_open ();
+++int
+++main ()
+++{
+++kvm_open ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_kvm_kvm_open=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_kvm_kvm_open=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
+++echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
+++if test $ac_cv_lib_kvm_kvm_open = yes; then
++   LIBS="-lkvm $LIBS"
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++   # Check for the 4.4BSD definition of getloadavg.
++-  echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
++-echo "configure:6675: checking for getloadavg in -lutil" >&5
++-ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
+++echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
+++if test "${ac_cv_lib_util_getloadavg+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lutil  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6683 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char getloadavg();
++-
++-int main() {
++-getloadavg()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char getloadavg ();
+++int
+++main ()
+++{
+++getloadavg ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_util_getloadavg=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_util_getloadavg=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
+++echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
+++if test $ac_cv_lib_util_getloadavg = yes; then
++   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ fi
++@@ -6715,660 +12526,1830 @@
++ if test $ac_have_func = no; then
++   # There is a commonly available library for RS/6000 AIX.
++   # Since it is not a standard part of AIX, it might be installed locally.
++-  ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
++-  echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
++-echo "configure:6721: checking for getloadavg in -lgetloadavg" >&5
++-ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  ac_getloadavg_LIBS=$LIBS
+++  LIBS="-L/usr/local/lib $LIBS"
+++  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
+++echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
+++if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lgetloadavg  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6729 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char getloadavg();
++-
++-int main() {
++-getloadavg()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
++-
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  LIBS="-lgetloadavg $LIBS"
++-else
++-  echo "$ac_t""no" 1>&6
++-LIBS="$ac_getloadavg_LIBS"
++-fi
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char getloadavg ();
+++int
+++main ()
+++{
+++getloadavg ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_getloadavg_getloadavg=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_getloadavg_getloadavg=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
+++echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
+++if test $ac_cv_lib_getloadavg_getloadavg = yes; then
+++  LIBS="-lgetloadavg $LIBS"
+++else
+++  LIBS=$ac_getloadavg_LIBS
+++fi
+++
+++fi
+++
+++# Make sure it is really in the library, if we think we found it,
+++# otherwise set up the replacement function.
++ 
++-# Make sure it is really in the library, if we think we found it.
++ for ac_func in getloadavg
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:6767: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6772 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
+++
+++else
+++  case $LIBOBJS in
+++    "getloadavg.$ac_objext"   | \
+++  *" getloadavg.$ac_objext"   | \
+++    "getloadavg.$ac_objext "* | \
+++  *" getloadavg.$ac_objext "* ) ;;
+++  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
+++esac
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define C_GETLOADAVG 1
+++_ACEOF
+++
+++# Figure out what our getloadavg.c needs.
+++ac_have_func=no
+++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
+++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
+++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
+++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
+++echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <sys/dg_sys_info.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
+++echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <sys/dg_sys_info.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_t""no" 1>&6
++-LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
+++  ac_cpp_err=yes
++ fi
++-done
++-
++-
++-
++-if test $ac_cv_func_getloadavg = yes; then
++-  cat >> confdefs.h <<\EOF
++-#define HAVE_GETLOADAVG 1
++-EOF
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-  ac_have_func=yes
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
+++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
+++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  # Figure out what our getloadavg.c needs.
++-  ac_have_func=no
++-  ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
++-echo "configure:6833: checking for sys/dg_sys_info.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6838 "configure"
++-#include "confdefs.h"
++-#include <sys/dg_sys_info.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
++ fi
++-rm -f conftest*
+++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
+++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  ac_have_func=yes; cat >> confdefs.h <<\EOF
+++if test $ac_cv_header_sys_dg_sys_info_h = yes; then
+++  ac_have_func=yes
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define DGUX 1
++-EOF
+++_ACEOF
++ 
++-  echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
++-echo "configure:6864: checking for dg_sys_info in -ldgc" >&5
++-ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
+++echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
+++if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-ldgc  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 6872 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char dg_sys_info();
++-
++-int main() {
++-dg_sys_info()
++-; return 0; }
++-EOF
++-if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char dg_sys_info ();
+++int
+++main ()
+++{
+++dg_sys_info ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_dgc_dg_sys_info=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_dgc_dg_sys_info=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
+++echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
+++if test $ac_cv_lib_dgc_dg_sys_info = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBDGC 1
+++_ACEOF
+++
+++  LIBS="-ldgc $LIBS"
+++
++ fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
++ 
++ fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
++ 
++-  LIBS="-ldgc $LIBS"
++ 
+++
+++if test "${ac_cv_header_locale_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for locale.h" >&5
+++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
+++if test "${ac_cv_header_locale_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
+++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking locale.h usability" >&5
+++echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <locale.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking locale.h presence" >&5
+++echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <locale.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_cpp_err=yes
++ fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for locale.h" >&5
+++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
+++if test "${ac_cv_header_locale_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_cv_header_locale_h=$ac_header_preproc
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
+++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
+++
+++fi
+++
+++
+++
+++for ac_func in setlocale
+++do
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
+++/* System header to define __stub macros and hopefully few prototypes,
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
+++
+++#undef $ac_func
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
+++/* The GNU C library defines this for functions which it implements
+++    to always fail with ENOSYS.  Some functions are actually named
+++    something starting with __ and the normal name is an alias.  */
+++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+++choke me
+++#else
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
+++#endif
+++
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++done
++ 
++ 
++-  # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
++-  # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
++-  # Irix 4.0.5F has the header but not the library.
++-  if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then
++-    ac_have_func=yes; cat >> confdefs.h <<\EOF
+++# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
+++# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
+++# Irix 4.0.5F has the header but not the library.
+++if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
+++  ac_have_func=yes
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define SVR4 1
++-EOF
+++_ACEOF
+++
+++fi
++ 
+++if test $ac_have_func = no; then
+++  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
+++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
+++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
+++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
+++echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <inq_stats/cpustats.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
+++echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <inq_stats/cpustats.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
++   fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-  if test $ac_have_func = no; then
++-    ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
++-echo "configure:6928: checking for inq_stats/cpustats.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
+++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
+++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6933 "configure"
++-#include "confdefs.h"
++-#include <inq_stats/cpustats.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
++ fi
++-rm -f conftest*
+++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
+++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  ac_have_func=yes; cat >> confdefs.h <<\EOF
+++if test $ac_cv_header_inq_stats_cpustats_h = yes; then
+++  ac_have_func=yes
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define UMAX 1
++-EOF
+++_ACEOF
++ 
++-    cat >> confdefs.h <<\EOF
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define UMAX4_3 1
++-EOF
+++_ACEOF
+++
+++fi
+++
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
+++if test $ac_have_func = no; then
+++  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
+++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
+++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
+++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
+++echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <sys/cpustats.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
+++echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <sys/cpustats.h>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
++   fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-  if test $ac_have_func = no; then
++-    ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
++-echo "configure:6971: checking for sys/cpustats.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
+++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
+++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 6976 "configure"
++-#include "confdefs.h"
++-#include <sys/cpustats.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:6981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++  ac_cv_header_sys_cpustats_h=$ac_header_preproc
++ fi
++-rm -f conftest*
+++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
+++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  ac_have_func=yes; cat >> confdefs.h <<\EOF
+++if test $ac_cv_header_sys_cpustats_h = yes; then
+++  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
++ #define UMAX 1
++-EOF
+++_ACEOF
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-  fi
++ 
++-  if test $ac_have_func = no; then
++-    for ac_hdr in mach/mach.h
+++fi
+++
+++if test $ac_have_func = no; then
+++
+++for ac_header in mach/mach.h
++ do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:7012: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7017 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:7022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++  eval "$as_ac_Header=\$ac_header_preproc"
++ fi
++-rm -f conftest*
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++
++ done
++ 
++-  fi
+++fi
++ 
++-  ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
++-echo "configure:7052: checking for nlist.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++for ac_header in nlist.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7057 "configure"
++-#include "confdefs.h"
++-#include <nlist.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:7062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<\EOF
++-#define NLIST_STRUCT 1
++-EOF
++-
++-  echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
++-echo "configure:7083: checking for n_un in struct nlist" >&5
++-if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7088 "configure"
++-#include "confdefs.h"
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++ echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
+++echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
+++if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <nlist.h>
+++
+++int
+++main ()
+++{
+++static struct nlist ac_aggr;
+++if (ac_aggr.n_un.n_name)
+++return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_member_struct_nlist_n_un_n_name=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <nlist.h>
++-int main() {
++-struct nlist n; n.n_un.n_name = 0;
++-; return 0; }
++-EOF
++-if { (eval echo configure:7095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_struct_nlist_n_un=yes
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  ac_cv_struct_nlist_n_un=no
+++
+++int
+++main ()
+++{
+++static struct nlist ac_aggr;
+++if (sizeof ac_aggr.n_un.n_name)
+++return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_member_struct_nlist_n_un_n_name=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_member_struct_nlist_n_un_n_name=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
+++echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
+++if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
+++
+++cat >>confdefs.h <<_ACEOF
+++#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
+++_ACEOF
+++
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define NLIST_NAME_UNION 1
+++_ACEOF
+++
++ fi
++-rm -f conftest*
+++
+++
++ fi
++ 
++-echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
++-  if test $ac_cv_struct_nlist_n_un = yes; then
++-    cat >> confdefs.h <<\EOF
++-#define NLIST_NAME_UNION 1
++-EOF
+++done
++ 
++-  fi
++-  
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++-fi # Do not have getloadavg in system libraries.
+++done
+++
++ 
++ # Some definitions of getloadavg require that the program be installed setgid.
++-echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
++-echo "configure:7122: checking whether getloadavg requires setgid" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7127 "configure"
++-#include "confdefs.h"
++-#include "$srcdir/getloadavg.c"
+++echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
+++echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
+++if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
++ #ifdef LDAV_PRIVILEGED
++ Yowza Am I SETGID yet
++ #endif
++-EOF
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
++   ac_cv_func_getloadavg_setgid=yes
++ else
++-  rm -rf conftest*
++   ac_cv_func_getloadavg_setgid=no
++ fi
++ rm -f conftest*
++ 
++ fi
++-
++-echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
+++echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
++ if test $ac_cv_func_getloadavg_setgid = yes; then
++-  NEED_SETGID=true; cat >> confdefs.h <<\EOF
+++  NEED_SETGID=true
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define GETLOADAVG_PRIVILEGED 1
++-EOF
+++_ACEOF
++ 
++ else
++   NEED_SETGID=false
++ fi
++ 
++ if test $ac_cv_func_getloadavg_setgid = yes; then
++-  echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
++-echo "configure:7158: checking group of /dev/kmem" >&5
++-if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
+++echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
+++if test "${ac_cv_group_kmem+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
+++   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
++   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
++   # If we got an error (system does not support symlinks), try without -L.
++   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
++   ac_cv_group_kmem=`echo $ac_ls_output \
++-    | sed -ne 's/[   ][      ]*/ /g;
+++    | sed -ne 's/[    ][      ]*/ /g;
++             s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
++             / /s/.* //;p;'`
++ 
++ fi
++-
++-echo "$ac_t""$ac_cv_group_kmem" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
+++echo "${ECHO_T}$ac_cv_group_kmem" >&6
++   KMEM_GROUP=$ac_cv_group_kmem
++ fi
+++if test "x$ac_save_LIBS" = x; then
+++  GETLOADAVG_LIBS=$LIBS
+++else
+++  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
+++fi
+++LIBS=$ac_save_LIBS
++ 
++ 
++-echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
++-echo "configure:7179: checking for _LARGEFILE_SOURCE value needed for large files" >&5
++-if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
+++echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
+++if test "${ac_cv_sys_largefile_source+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
+++  while :; do
++   ac_cv_sys_largefile_source=no
++-      cat > conftest.$ac_ext <<EOF
++-#line 7185 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <stdio.h>
++-int main() {
+++int
+++main ()
+++{
++ return !fseeko;
++-; return 0; }
++-EOF
++-if { (eval echo configure:7192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  :
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  cat > conftest.$ac_ext <<EOF
++-#line 7199 "configure"
++-#include "confdefs.h"
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #define _LARGEFILE_SOURCE 1
++ #include <stdio.h>
++-        
++-int main() {
+++int
+++main ()
+++{
++ return !fseeko;
++-; return 0; }
++-EOF
++-if { (eval echo configure:7208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
++-  ac_cv_sys_largefile_source=1
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_sys_largefile_source=1; break
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++  break
+++done
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
+++echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
+++if test "$ac_cv_sys_largefile_source" != no; then
++ 
++-echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
++-   if test "$ac_cv_sys_largefile_source" != no; then
++-     cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
++-EOF
+++_ACEOF
++ 
++-   fi
++-   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
++-   # in glibc 2.1.3, but that breaks too many other things.
++-   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
++-
++-   echo $ac_n "checking for fseeko""... $ac_c" 1>&6
++-echo "configure:7232: checking for fseeko" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  ac_cv_func_fseeko=no
++-      cat > conftest.$ac_ext <<EOF
++-#line 7238 "configure"
++-#include "confdefs.h"
+++fi
+++rm -f conftest*
+++
+++# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
+++# in glibc 2.1.3, but that breaks too many other things.
+++# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
+++echo "$as_me:$LINENO: checking for fseeko" >&5
+++echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
+++if test "${ac_cv_func_fseeko+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <stdio.h>
++-int main() {
+++int
+++main ()
+++{
++ return fseeko && fseeko (stdin, 0, 0);
++-; return 0; }
++-EOF
++-if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_func_fseeko=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_fseeko=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
+++echo "${ECHO_T}$ac_cv_func_fseeko" >&6
+++if test $ac_cv_func_fseeko = yes; then
++ 
++-echo "$ac_t""$ac_cv_func_fseeko" 1>&6
++-   if test $ac_cv_func_fseeko != no; then
++-     cat >> confdefs.h <<\EOF
+++cat >>confdefs.h <<\_ACEOF
++ #define HAVE_FSEEKO 1
++-EOF
+++_ACEOF
+++
+++fi
++ 
++-   fi
++ 
++ # UNIX98 PTYs.
+++
++ for ac_func in grantpt
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:7267: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7272 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
+++
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++ 
++ # PTY-related GNU extensions.
+++
++ for ac_func in getpt
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:7324: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7329 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef $ac_func
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++@@ -7377,51 +14358,77 @@
++ # That is because we have not set up to link ncurses in lib-src.
++ # It's better to believe a function is not available
++ # than to expect to find it in ncurses.
++-echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
++-echo "configure:7382: checking for tparm in -lncurses" >&5
++-ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
+++echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
+++if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lncurses  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7390 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char tparm();
++-
++-int main() {
++-tparm()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char tparm ();
+++int
+++main ()
+++{
+++tparm ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_ncurses_tparm=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_ncurses_tparm=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
+++echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
+++if test $ac_cv_lib_ncurses_tparm = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBNCURSES 1
+++_ACEOF
++ 
++   LIBS="-lncurses $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++@@ -7429,174 +14436,321 @@
++ if test "$with_hesiod" = yes ; then
++   # Don't set $LIBS here -- see comments above.
++   resolv=no
++-  echo $ac_n "checking for res_send""... $ac_c" 1>&6
++-echo "configure:7434: checking for res_send" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7439 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for res_send" >&5
+++echo $ECHO_N "checking for res_send... $ECHO_C" >&6
+++if test "${ac_cv_func_res_send+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define res_send innocuous_res_send
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char res_send(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char res_send();
+++    which can conflict with char res_send (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef res_send
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char res_send ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_res_send) || defined (__stub___res_send)
++ choke me
++ #else
++-res_send();
+++char (*f) () = res_send;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_res_send=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_res_send=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != res_send;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_res_send=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_res_send=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
+++echo "${ECHO_T}$ac_cv_func_res_send" >&6
+++if test $ac_cv_func_res_send = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for __res_send""... $ac_c" 1>&6
++-echo "configure:7480: checking for __res_send" >&5
++-if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7485 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for __res_send" >&5
+++echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
+++if test "${ac_cv_func___res_send+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define __res_send innocuous___res_send
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char __res_send(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char __res_send();
+++    which can conflict with char __res_send (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef __res_send
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char __res_send ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub___res_send) || defined (__stub_____res_send)
++ choke me
++ #else
++-__res_send();
+++char (*f) () = __res_send;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func___res_send=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func___res_send=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != __res_send;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func___res_send=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func___res_send=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
+++echo "${ECHO_T}$ac_cv_func___res_send" >&6
+++if test $ac_cv_func___res_send = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
++-echo "configure:7526: checking for res_send in -lresolv" >&5
++-ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
+++echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
+++if test "${ac_cv_lib_resolv_res_send+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lresolv  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7534 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char res_send();
++-
++-int main() {
++-res_send()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char res_send ();
+++int
+++main ()
+++{
+++res_send ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_resolv_res_send=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_resolv_res_send=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
+++echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
+++if test $ac_cv_lib_resolv_res_send = yes; then
++   resolv=yes
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
++-echo "configure:7564: checking for __res_send in -lresolv" >&5
++-ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
+++echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
+++if test "${ac_cv_lib_resolv___res_send+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lresolv  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7572 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char __res_send();
++-
++-int main() {
++-__res_send()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char __res_send ();
+++int
+++main ()
+++{
+++__res_send ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_resolv___res_send=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_resolv___res_send=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
+++echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
+++if test $ac_cv_lib_resolv___res_send = yes; then
++   resolv=yes
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ fi
++@@ -7607,101 +14761,175 @@
++ 
++   if test "$resolv" = yes ; then
++     RESOLVLIB=-lresolv
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define HAVE_LIBRESOLV 1
++-EOF
+++_ACEOF
++ 
++   else
++     RESOLVLIB=
++   fi
++-  echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
++-echo "configure:7619: checking for hes_getmailhost" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 7624 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
+++echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
+++if test "${ac_cv_func_hes_getmailhost+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define hes_getmailhost innocuous_hes_getmailhost
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char hes_getmailhost(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char hes_getmailhost();
+++    which can conflict with char hes_getmailhost (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef hes_getmailhost
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char hes_getmailhost ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
++ choke me
++ #else
++-hes_getmailhost();
+++char (*f) () = hes_getmailhost;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_hes_getmailhost=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_hes_getmailhost=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != hes_getmailhost;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_hes_getmailhost=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_hes_getmailhost=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
+++echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
+++if test $ac_cv_func_hes_getmailhost = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
++-echo "configure:7665: checking for hes_getmailhost in -lhesiod" >&5
++-ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
+++echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
+++if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lhesiod $RESOLVLIB $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7673 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char hes_getmailhost();
++-
++-int main() {
++-hes_getmailhost()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<\EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char hes_getmailhost ();
+++int
+++main ()
+++{
+++hes_getmailhost ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_hesiod_hes_getmailhost=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_hesiod_hes_getmailhost=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
+++echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
+++if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_LIBHESIOD 1
++-EOF
+++_ACEOF
++ 
++ else
++-  echo "$ac_t""no" 1>&6
++-:
+++  :
++ fi
++ 
++ fi
++@@ -7710,379 +14938,589 @@
++ 
++ # These tell us which Kerberos-related libraries to use.
++ if test "${with_kerberos+set}" = set; then
++-  echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
++-echo "configure:7715: checking for com_err in -lcom_err" >&5
++-ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
+++echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
+++if test "${ac_cv_lib_com_err_com_err+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lcom_err  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7723 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char com_err();
++-
++-int main() {
++-com_err()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char com_err ();
+++int
+++main ()
+++{
+++com_err ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_com_err_com_err=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_com_err_com_err=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
+++echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
+++if test $ac_cv_lib_com_err_com_err = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBCOM_ERR 1
+++_ACEOF
++ 
++   LIBS="-lcom_err $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-  echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
++-echo "configure:7762: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
++-ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
+++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
+++if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lk5crypto  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7770 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char mit_des_cbc_encrypt();
++-
++-int main() {
++-mit_des_cbc_encrypt()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char mit_des_cbc_encrypt ();
+++int
+++main ()
+++{
+++mit_des_cbc_encrypt ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
+++echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
+++if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBK5CRYPTO 1
+++_ACEOF
++ 
++   LIBS="-lk5crypto $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-  echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
++-echo "configure:7809: checking for mit_des_cbc_encrypt in -lcrypto" >&5
++-ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
+++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
+++if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lcrypto  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7817 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char mit_des_cbc_encrypt();
++-
++-int main() {
++-mit_des_cbc_encrypt()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char mit_des_cbc_encrypt ();
+++int
+++main ()
+++{
+++mit_des_cbc_encrypt ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_crypto_mit_des_cbc_encrypt=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
+++echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
+++if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBCRYPTO 1
+++_ACEOF
++ 
++   LIBS="-lcrypto $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++-  echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
++-echo "configure:7856: checking for krb5_init_context in -lkrb5" >&5
++-ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
+++echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
+++if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lkrb5  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7864 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char krb5_init_context();
++-
++-int main() {
++-krb5_init_context()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char krb5_init_context ();
+++int
+++main ()
+++{
+++krb5_init_context ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_krb5_krb5_init_context=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_krb5_krb5_init_context=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
+++echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
+++if test $ac_cv_lib_krb5_krb5_init_context = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBKRB5 1
+++_ACEOF
++ 
++   LIBS="-lkrb5 $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++   if test "${with_kerberos5+set}" != set; then
++-    echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
++-echo "configure:7904: checking for des_cbc_encrypt in -ldes425" >&5
++-ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
+++echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
+++if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-ldes425  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7912 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char des_cbc_encrypt();
++-
++-int main() {
++-des_cbc_encrypt()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char des_cbc_encrypt ();
+++int
+++main ()
+++{
+++des_cbc_encrypt ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_des425_des_cbc_encrypt=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_des425_des_cbc_encrypt=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
+++echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
+++if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBDES425 1
+++_ACEOF
++ 
++   LIBS="-ldes425 $LIBS"
++ 
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
++-echo "configure:7949: checking for des_cbc_encrypt in -ldes" >&5
++-ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
+++echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
+++if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-ldes  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 7957 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char des_cbc_encrypt();
++-
++-int main() {
++-des_cbc_encrypt()
++-; return 0; }
++-EOF
++-if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char des_cbc_encrypt ();
+++int
+++main ()
+++{
+++des_cbc_encrypt ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_des_des_cbc_encrypt=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_des_des_cbc_encrypt=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
+++echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
+++if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBDES 1
+++_ACEOF
++ 
++   LIBS="-ldes $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ fi
++ 
++-    echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
++-echo "configure:7998: checking for krb_get_cred in -lkrb4" >&5
++-ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
+++echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
+++if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lkrb4  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 8006 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char krb_get_cred();
++-
++-int main() {
++-krb_get_cred()
++-; return 0; }
++-EOF
++-if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char krb_get_cred ();
+++int
+++main ()
+++{
+++krb_get_cred ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_krb4_krb_get_cred=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_krb4_krb_get_cred=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
+++echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
+++if test $ac_cv_lib_krb4_krb_get_cred = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBKRB4 1
+++_ACEOF
++ 
++   LIBS="-lkrb4 $LIBS"
++ 
++ else
++-  echo "$ac_t""no" 1>&6
++-echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
++-echo "configure:8043: checking for krb_get_cred in -lkrb" >&5
++-ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
+++echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
+++if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
++-LIBS="-lkrb  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 8051 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char krb_get_cred();
++-
++-int main() {
++-krb_get_cred()
++-; return 0; }
++-EOF
++-if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
+++LIBS="-lkrb  $LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char krb_get_cred ();
+++int
+++main ()
+++{
+++krb_get_cred ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_krb_krb_get_cred=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_krb_krb_get_cred=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
+++echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
+++if test $ac_cv_lib_krb_krb_get_cred = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBKRB 1
+++_ACEOF
++ 
++   LIBS="-lkrb $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ fi
++@@ -8090,393 +15528,702 @@
++   fi
++ 
++   if test "${with_kerberos5+set}" = set; then
++-    for ac_hdr in krb5.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8098: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8103 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-fi
++-done
++ 
+++for ac_header in krb5.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++   else
++-    for ac_hdr in des.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8139: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8144 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-for ac_hdr in kerberosIV/des.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8176: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8181 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-for ac_hdr in kerberos/des.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8213: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8218 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_t""no" 1>&6
+++  eval "$as_ac_Header=\$ac_header_preproc"
++ fi
++-done
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++ 
++ fi
++-done
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
++ 
++ fi
+++
++ done
++ 
++-    for ac_hdr in krb.h
+++  else
+++
+++
+++
+++for ac_header in des.h kerberosIV/des.h kerberos/des.h
++ do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8259: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8264 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-for ac_hdr in kerberosIV/krb.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8296: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8301 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
+++  ac_cpp_err=yes
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++-for ac_hdr in kerberos/krb.h
++-do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8333: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8338 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++ break
++ fi
+++
++ done
++ 
+++
+++
+++
+++for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-done
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++ break
++ fi
+++
++ done
++ 
++   fi
++-  for ac_hdr in com_err.h
+++
+++for ac_header in com_err.h
++ do
++-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++-echo "configure:8380: checking for $ac_hdr" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8385 "configure"
++-#include "confdefs.h"
++-#include <$ac_hdr>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
+++  ac_cpp_err=yes
+++fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++  eval "$as_ac_Header=\$ac_header_preproc"
++ fi
++-rm -f conftest*
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_hdr 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++
++ done
++ 
++ fi
++ 
++ # Solaris requires -lintl if you want strerror (which calls dgettext)
++ # to return localized messages.
++-echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
++-echo "configure:8421: checking for dgettext in -lintl" >&5
++-ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
++-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++
+++echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
+++echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
+++if test "${ac_cv_lib_intl_dgettext+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  ac_save_LIBS="$LIBS"
+++  ac_check_lib_save_LIBS=$LIBS
++ LIBS="-lintl  $LIBS"
++-cat > conftest.$ac_ext <<EOF
++-#line 8429 "configure"
++-#include "confdefs.h"
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char dgettext();
++-
++-int main() {
++-dgettext()
++-; return 0; }
++-EOF
++-if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_lib_$ac_lib_var=no"
++-fi
++-rm -f conftest*
++-LIBS="$ac_save_LIBS"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++-fi
++-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_lib 1
++-EOF
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char dgettext ();
+++int
+++main ()
+++{
+++dgettext ();
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_lib_intl_dgettext=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_lib_intl_dgettext=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++LIBS=$ac_check_lib_save_LIBS
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
+++echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
+++if test $ac_cv_lib_intl_dgettext = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define HAVE_LIBINTL 1
+++_ACEOF
++ 
++   LIBS="-lintl $LIBS"
++ 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ 
++ 
++-echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
++-echo "configure:8469: checking whether localtime caches TZ" >&5
++-if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
+++echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
+++if test "${emacs_cv_localtime_cache+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++   if test x$ac_cv_func_tzset = xyes; then
++ if test "$cross_compiling" = yes; then
++   # If we have tzset, assume the worst when cross-compiling.
++ emacs_cv_localtime_cache=yes
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8479 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <time.h>
++ extern char **environ;
++ unset_TZ ()
++@@ -8506,97 +16253,157 @@
++     exit (1);
++   exit (0);
++ }
++-EOF
++-if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_localtime_cache=no
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  emacs_cv_localtime_cache=yes
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++emacs_cv_localtime_cache=yes
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ else
++      # If we lack tzset, report that localtime does not cache TZ,
++      # since we can't invalidate the cache if we don't have tzset.
++      emacs_cv_localtime_cache=no
++ fi
++ fi
++-echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
+++echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
++ if test $emacs_cv_localtime_cache = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define LOCALTIME_CACHE 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ if test "x$HAVE_TIMEVAL" = xyes; then
++-  for ac_func in gettimeofday
+++
+++for ac_func in gettimeofday
++ do
++-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++-echo "configure:8541: checking for $ac_func" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8546 "configure"
++-#include "confdefs.h"
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char $ac_func(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char $ac_func();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
++ 
++-int main() {
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
+++#undef $ac_func
+++
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-$ac_func();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_$ac_func=no"
++-fi
++-rm -f conftest*
++-fi
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
++ 
++-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++-  cat >> confdefs.h <<EOF
++-#define $ac_tr_func 1
++-EOF
++- 
++-else
++-  echo "$ac_t""no" 1>&6
++ fi
++ done
++ 
++-  echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
++-echo "configure:8594: checking whether gettimeofday can accept two arguments" >&5
++-if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8599 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
+++echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
+++if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++ #ifdef TIME_WITH_SYS_TIME
++ #include <sys/time.h>
++@@ -8608,54 +16415,106 @@
++ #include <time.h>
++ #endif
++ #endif
++-int main() {
+++int
+++main ()
+++{
++ struct timeval time;
++      gettimeofday (&time, 0);
++-; return 0; }
++-EOF
++-if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_gettimeofday_two_arguments=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_gettimeofday_two_arguments=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_gettimeofday_two_arguments=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
+++echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
++   if test $emacs_cv_gettimeofday_two_arguments = no; then
++-    cat >> confdefs.h <<\EOF
+++    cat >>confdefs.h <<\_ACEOF
++ #define GETTIMEOFDAY_ONE_ARGUMENT 1
++-EOF
+++_ACEOF
++ 
++   fi
++ fi
++ 
++ if test "$ac_cv_func_gettimeofday" = yes; then
++-  echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
++-echo "configure:8640: checking for struct timezone" >&5
++-if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8645 "configure"
++-#include "confdefs.h"
+++  echo "$as_me:$LINENO: checking for struct timezone" >&5
+++echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
+++if test "${emacs_cv_struct_timezone+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <sys/time.h>
++-int main() {
+++int
+++main ()
+++{
++ struct timezone tz;
++-; return 0; }
++-EOF
++-if { (eval echo configure:8652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++-  rm -rf conftest*
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++               if test "$cross_compiling" = yes; then
++   emacs_cv_struct_timezone=yes
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8658 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ 
++ #ifdef TIME_WITH_SYS_TIME
++ #include <sys/time.h>
++@@ -8672,327 +16531,875 @@
++   struct timezone dummy;
++   exit (gettimeofday (&time, &dummy));
++ }
++-EOF
++-if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   emacs_cv_struct_timezone=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  emacs_cv_struct_timezone=no
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++emacs_cv_struct_timezone=no
++ fi
++-rm -fr conftest*
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  emacs_cv_struct_timezone=no
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++emacs_cv_struct_timezone=no
++ fi
++-rm -f conftest*
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ fi
++-
++-echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
+++echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
+++echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
++ fi
++ 
++ ok_so_far=yes
++-echo $ac_n "checking for socket""... $ac_c" 1>&6
++-echo "configure:8703: checking for socket" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8708 "configure"
++-#include "confdefs.h"
+++echo "$as_me:$LINENO: checking for socket" >&5
+++echo $ECHO_N "checking for socket... $ECHO_C" >&6
+++if test "${ac_cv_func_socket+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define socket to an innocuous variant, in case <limits.h> declares socket.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define socket innocuous_socket
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char socket(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char socket();
+++    which can conflict with char socket (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef socket
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char socket ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++ #if defined (__stub_socket) || defined (__stub___socket)
++ choke me
++ #else
++-socket();
+++char (*f) () = socket;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_socket=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_socket=no"
++-fi
++-rm -f conftest*
++-fi
++-
++-if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++int
+++main ()
+++{
+++return f != socket;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_socket=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_cv_func_socket=no
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
+++echo "${ECHO_T}$ac_cv_func_socket" >&6
+++if test $ac_cv_func_socket = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-ok_so_far=no
+++  ok_so_far=no
++ fi
++ 
++ if test $ok_so_far = yes; then
++-  ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
++-echo "configure:8754: checking for netinet/in.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8759 "configure"
++-#include "confdefs.h"
+++  if test "${ac_cv_header_netinet_in_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for netinet/in.h" >&5
+++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
+++if test "${ac_cv_header_netinet_in_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
+++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
+++echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <netinet/in.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
+++echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <netinet/in.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for netinet/in.h" >&5
+++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
+++if test "${ac_cv_header_netinet_in_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_netinet_in_h=$ac_header_preproc
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
+++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
+++
+++fi
+++if test $ac_cv_header_netinet_in_h = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-ok_so_far=no
+++  ok_so_far=no
++ fi
++ 
+++
++ fi
++ if test $ok_so_far = yes; then
++-  ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
++-echo "configure:8790: checking for arpa/inet.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8795 "configure"
++-#include "confdefs.h"
+++  if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+++  echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
+++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
+++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
+++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
+++echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <arpa/inet.h>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
+++echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ #include <arpa/inet.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
+++else
+++  ac_cpp_err=yes
++ fi
++-rm -f conftest*
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
+++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
+++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  ac_cv_header_arpa_inet_h=$ac_header_preproc
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
+++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
+++
++ fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
+++if test $ac_cv_header_arpa_inet_h = yes; then
++   :
++ else
++-  echo "$ac_t""no" 1>&6
++-ok_so_far=no
+++  ok_so_far=no
++ fi
++ 
+++
++ fi
++ if test $ok_so_far = yes; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_INET_SOCKETS 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++ if test -f /usr/lpp/X11/bin/smt.exp; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_AIX_SMT_EXP 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
++-echo "configure:8838: checking whether system supports dynamic ptys" >&5
+++echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
+++echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
++ if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<\EOF
+++  echo "$as_me:$LINENO: result: yes" >&5
+++echo "${ECHO_T}yes" >&6
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_DEV_PTMX 1
++-EOF
+++_ACEOF
++ 
++ else
++-  echo "$ac_t""no" 1>&6
+++  echo "$as_me:$LINENO: result: no" >&5
+++echo "${ECHO_T}no" >&6
++ fi
++ 
++-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
++-echo "configure:8850: checking for pid_t" >&5
++-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++echo "$as_me:$LINENO: checking for pid_t" >&5
+++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
+++if test "${ac_cv_type_pid_t+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8855 "configure"
++-#include "confdefs.h"
++-#include <sys/types.h>
++-#if STDC_HEADERS
++-#include <stdlib.h>
++-#include <stddef.h>
++-#endif
++-EOF
++-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++int
+++main ()
+++{
+++if ((pid_t *) 0)
+++  return 0;
+++if (sizeof (pid_t))
+++  return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_type_pid_t=yes
++ else
++-  rm -rf conftest*
++-  ac_cv_type_pid_t=no
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
+++ac_cv_type_pid_t=no
++ fi
++-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
++-if test $ac_cv_type_pid_t = no; then
++-  cat >> confdefs.h <<\EOF
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
+++echo "${ECHO_T}$ac_cv_type_pid_t" >&6
+++if test $ac_cv_type_pid_t = yes; then
+++  :
+++else
+++
+++cat >>confdefs.h <<_ACEOF
++ #define pid_t int
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++-ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
++-echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
++-echo "configure:8884: checking for vfork.h" >&5
++-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8889 "configure"
++-#include "confdefs.h"
++-#include <vfork.h>
++-EOF
++-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++-{ (eval echo configure:8894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++-if test -z "$ac_err"; then
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=yes"
++-else
++-  echo "$ac_err" >&5
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_header_$ac_safe=no"
++-fi
++-rm -f conftest*
++-fi
++-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  cat >> confdefs.h <<\EOF
++-#define HAVE_VFORK_H 1
++-EOF
++ 
+++
+++for ac_header in unistd.h vfork.h
+++do
+++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++else
+++  # Is the header compilable?
+++echo "$as_me:$LINENO: checking $ac_header usability" >&5
+++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++#include <$ac_header>
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_header_compiler=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++ac_header_compiler=no
+++fi
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+++echo "${ECHO_T}$ac_header_compiler" >&6
+++
+++# Is the header present?
+++echo "$as_me:$LINENO: checking $ac_header presence" >&5
+++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++#include <$ac_header>
+++_ACEOF
+++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } >/dev/null; then
+++  if test -s conftest.err; then
+++    ac_cpp_err=$ac_c_preproc_warn_flag
+++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
+++  else
+++    ac_cpp_err=
+++  fi
++ else
++-  echo "$ac_t""no" 1>&6
+++  ac_cpp_err=yes
++ fi
+++if test -z "$ac_cpp_err"; then
+++  ac_header_preproc=yes
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
++-echo $ac_n "checking for working vfork""... $ac_c" 1>&6
++-echo "configure:8919: checking for working vfork" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
+++  ac_header_preproc=no
+++fi
+++rm -f conftest.err conftest.$ac_ext
+++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+++echo "${ECHO_T}$ac_header_preproc" >&6
+++
+++# So?  What about this header?
+++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+++  yes:no: )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+++    ac_header_preproc=yes
+++    ;;
+++  no:yes:* )
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
+++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
+++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+++    (
+++      cat <<\_ASBOX
+++## ------------------------------------------ ##
+++## Report this to the AC_PACKAGE_NAME lists.  ##
+++## ------------------------------------------ ##
+++_ASBOX
+++    ) |
+++      sed "s/^/$as_me: WARNING:     /" >&2
+++    ;;
+++esac
+++echo "$as_me:$LINENO: checking for $ac_header" >&5
+++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_Header+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
++ else
++-  if test "$cross_compiling" = yes; then
++-  echo $ac_n "checking for vfork""... $ac_c" 1>&6
++-echo "configure:8925: checking for vfork" >&5
++-if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8930 "configure"
++-#include "confdefs.h"
+++  eval "$as_ac_Header=\$ac_header_preproc"
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+++
+++fi
+++if test `eval echo '${'$as_ac_Header'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+++_ACEOF
+++
+++fi
+++
+++done
+++
+++
+++
+++for ac_func in fork vfork
+++do
+++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+++echo "$as_me:$LINENO: checking for $ac_func" >&5
+++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+++if eval "test \"\${$as_ac_var+set}\" = set"; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+++#define $ac_func innocuous_$ac_func
+++
++ /* System header to define __stub macros and hopefully few prototypes,
++-    which can conflict with char vfork(); below.  */
++-#include <assert.h>
++-/* Override any gcc2 internal prototype to avoid an error.  */
++-/* We use char because int might match the return type of a gcc2
++-    builtin and then its argument prototype would still apply.  */
++-char vfork();
+++    which can conflict with char $ac_func (); below.
+++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+++    <limits.h> exists even on freestanding compilers.  */
+++
+++#ifdef __STDC__
+++# include <limits.h>
+++#else
+++# include <assert.h>
+++#endif
++ 
++-int main() {
+++#undef $ac_func
++ 
+++/* Override any gcc2 internal prototype to avoid an error.  */
+++#ifdef __cplusplus
+++extern "C"
+++{
+++#endif
+++/* We use char because int might match the return type of a gcc2
+++   builtin and then its argument prototype would still apply.  */
+++char $ac_func ();
++ /* The GNU C library defines this for functions which it implements
++     to always fail with ENOSYS.  Some functions are actually named
++     something starting with __ and the normal name is an alias.  */
++-#if defined (__stub_vfork) || defined (__stub___vfork)
+++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++ choke me
++ #else
++-vfork();
+++char (*f) () = $ac_func;
+++#endif
+++#ifdef __cplusplus
+++}
++ #endif
++ 
++-; return 0; }
++-EOF
++-if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
++-  rm -rf conftest*
++-  eval "ac_cv_func_vfork=yes"
++-else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -rf conftest*
++-  eval "ac_cv_func_vfork=no"
++-fi
++-rm -f conftest*
+++int
+++main ()
+++{
+++return f != $ac_func;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  eval "$as_ac_var=yes"
+++else
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++eval "$as_ac_var=no"
+++fi
+++rm -f conftest.err conftest.$ac_objext \
+++      conftest$ac_exeext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+++if test `eval echo '${'$as_ac_var'}'` = yes; then
+++  cat >>confdefs.h <<_ACEOF
+++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+++_ACEOF
+++
++ fi
+++done
++ 
++-if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
++-  echo "$ac_t""yes" 1>&6
++-  :
+++if test "x$ac_cv_func_fork" = xyes; then
+++  echo "$as_me:$LINENO: checking for working fork" >&5
+++echo $ECHO_N "checking for working fork... $ECHO_C" >&6
+++if test "${ac_cv_func_fork_works+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test "$cross_compiling" = yes; then
+++  ac_cv_func_fork_works=cross
++ else
++-  echo "$ac_t""no" 1>&6
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* By Ruediger Kuhlmann. */
+++      #include <sys/types.h>
+++      #if HAVE_UNISTD_H
+++      # include <unistd.h>
+++      #endif
+++      /* Some systems only have a dummy stub for fork() */
+++      int main ()
+++      {
+++     if (fork() < 0)
+++       exit (1);
+++     exit (0);
+++      }
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
+++  ac_cv_func_fork_works=yes
+++else
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_func_fork_works=no
+++fi
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+++fi
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
+++echo "${ECHO_T}$ac_cv_func_fork_works" >&6
+++
+++else
+++  ac_cv_func_fork_works=$ac_cv_func_fork
+++fi
+++if test "x$ac_cv_func_fork_works" = xcross; then
+++  case $host in
+++    *-*-amigaos* | *-*-msdosdjgpp*)
+++      # Override, as these systems have only a dummy fork() stub
+++      ac_cv_func_fork_works=no
+++      ;;
+++    *)
+++      ac_cv_func_fork_works=yes
+++      ;;
+++  esac
+++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
+++echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
++ fi
++-
++ ac_cv_func_vfork_works=$ac_cv_func_vfork
+++if test "x$ac_cv_func_vfork" = xyes; then
+++  echo "$as_me:$LINENO: checking for working vfork" >&5
+++echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
+++if test "${ac_cv_func_vfork_works+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  if test "$cross_compiling" = yes; then
+++  ac_cv_func_vfork_works=cross
++ else
++-  cat > conftest.$ac_ext <<EOF
++-#line 8975 "configure"
++-#include "confdefs.h"
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ /* Thanks to Paul Eggert for this test.  */
++ #include <stdio.h>
+++#include <stdlib.h>
++ #include <sys/types.h>
++ #include <sys/stat.h>
++-#ifdef HAVE_UNISTD_H
++-#include <unistd.h>
+++#include <sys/wait.h>
+++#if HAVE_UNISTD_H
+++# include <unistd.h>
++ #endif
++-#ifdef HAVE_VFORK_H
++-#include <vfork.h>
+++#if HAVE_VFORK_H
+++# include <vfork.h>
++ #endif
++ /* On some sparc systems, changes by the child to local and incoming
++-   argument registers are propagated back to the parent.
++-   The compiler is told about this with #include <vfork.h>,
++-   but some compilers (e.g. gcc -O) don't grok <vfork.h>.
++-   Test for this by using a static variable whose address
++-   is put into a register that is clobbered by the vfork.  */
++-static
+++   argument registers are propagated back to the parent.  The compiler
+++   is told about this with #include <vfork.h>, but some compilers
+++   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
+++   static variable whose address is put into a register that is
+++   clobbered by the vfork.  */
+++static void
++ #ifdef __cplusplus
++ sparc_address_test (int arg)
++-#else
+++# else
++ sparc_address_test (arg) int arg;
++ #endif
++ {
++@@ -9010,25 +17417,27 @@
++     }
++   }
++ }
++-main() {
+++
+++int
+++main ()
+++{
++   pid_t parent = getpid ();
++   pid_t child;
++ 
++-  sparc_address_test ();
+++  sparc_address_test (0);
++ 
++   child = vfork ();
++ 
++   if (child == 0) {
++-    /* Here is another test for sparc vfork register problems.
++-       This test uses lots of local variables, at least
++-       as many local variables as main has allocated so far
++-       including compiler temporaries.  4 locals are enough for
++-       gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
++-       A buggy compiler should reuse the register of parent
++-       for one of the local variables, since it will think that
++-       parent can't possibly be used any more in this routine.
++-       Assigning to the local variable will thus munge parent
++-       in the parent process.  */
+++    /* Here is another test for sparc vfork register problems.  This
+++       test uses lots of local variables, at least as many local
+++       variables as main has allocated so far including compiler
+++       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
+++       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
+++       reuse the register of parent for one of the local variables,
+++       since it will think that parent can't possibly be used any more
+++       in this routine.  Assigning to the local variable will thus
+++       munge parent in the parent process.  */
++     pid_t
++       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
++       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
++@@ -9038,11 +17447,10 @@
++      || p != p5 || p != p6 || p != p7)
++       _exit(1);
++ 
++-    /* On some systems (e.g. IRIX 3.3),
++-       vfork doesn't separate parent from child file descriptors.
++-       If the child closes a descriptor before it execs or exits,
++-       this munges the parent's descriptor as well.
++-       Test for this by closing stdout in the child.  */
+++    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
+++       from child file descriptors.  If the child closes a descriptor
+++       before it execs or exits, this munges the parent's descriptor
+++       as well.  Test for this by closing stdout in the child.  */
++     _exit(close(fileno(stdout)) != 0);
++   } else {
++     int status;
++@@ -9065,61 +17473,125 @@
++       );
++   }
++ }
++-EOF
++-if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++-then
+++_ACEOF
+++rm -f conftest$ac_exeext
+++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+++  (eval $ac_link) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_func_vfork_works=yes
++ else
++-  echo "configure: failed program was:" >&5
++-  cat conftest.$ac_ext >&5
++-  rm -fr conftest*
++-  ac_cv_func_vfork_works=no
+++  echo "$as_me: program exited with status $ac_status" >&5
+++echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
+++
+++( exit $ac_status )
+++ac_cv_func_vfork_works=no
+++fi
+++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++ fi
++-rm -fr conftest*
++ fi
+++echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
+++echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
++ 
+++fi;
+++if test "x$ac_cv_func_fork_works" = xcross; then
+++  ac_cv_func_vfork_works=$ac_cv_func_vfork
+++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
+++echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
++ fi
++ 
++-echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
++-if test $ac_cv_func_vfork_works = no; then
++-  cat >> confdefs.h <<\EOF
+++if test "x$ac_cv_func_vfork_works" = xyes; then
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define HAVE_WORKING_VFORK 1
+++_ACEOF
+++
+++else
+++
+++cat >>confdefs.h <<\_ACEOF
++ #define vfork fork
++-EOF
+++_ACEOF
+++
+++fi
+++if test "x$ac_cv_func_fork_works" = xyes; then
+++
+++cat >>confdefs.h <<\_ACEOF
+++#define HAVE_WORKING_FORK 1
+++_ACEOF
++ 
++ fi
++ 
++ 
++ # Fixme: This should be replaced when we have autoconf 2.14.
++-echo $ac_n "checking for size_t""... $ac_c" 1>&6
++-echo "configure:9095: checking for size_t" >&5
++-if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
++-  echo $ac_n "(cached) $ac_c" 1>&6
++-else
++-  cat > conftest.$ac_ext <<EOF
++-#line 9100 "configure"
++-#include "confdefs.h"
++-#include <sys/types.h>
++-#if STDC_HEADERS
++-#include <stdlib.h>
++-#include <stddef.h>
++-#endif
++-EOF
++-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++echo "$as_me:$LINENO: checking for size_t" >&5
+++echo $ECHO_N "checking for size_t... $ECHO_C" >&6
+++if test "${ac_cv_type_size_t+set}" = set; then
+++  echo $ECHO_N "(cached) $ECHO_C" >&6
+++else
+++  cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
+++$ac_includes_default
+++int
+++main ()
+++{
+++if ((size_t *) 0)
+++  return 0;
+++if (sizeof (size_t))
+++  return 0;
+++  ;
+++  return 0;
+++}
+++_ACEOF
+++rm -f conftest.$ac_objext
+++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+++  (eval $ac_compile) 2>conftest.er1
+++  ac_status=$?
+++  grep -v '^ *+' conftest.er1 >conftest.err
+++  rm -f conftest.er1
+++  cat conftest.err >&5
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); } &&
+++      { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; } &&
+++      { ac_try='test -s conftest.$ac_objext'
+++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+++  (eval $ac_try) 2>&5
+++  ac_status=$?
+++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+++  (exit $ac_status); }; }; then
++   ac_cv_type_size_t=yes
++ else
++-  rm -rf conftest*
++-  ac_cv_type_size_t=no
++-fi
++-rm -f conftest*
+++  echo "$as_me: failed program was:" >&5
+++sed 's/^/| /' conftest.$ac_ext >&5
++ 
+++ac_cv_type_size_t=no
++ fi
++-echo "$ac_t""$ac_cv_type_size_t" 1>&6
++-if test $ac_cv_type_size_t = no; then
++-  cat >> confdefs.h <<\EOF
+++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+++fi
+++echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
+++echo "${ECHO_T}$ac_cv_type_size_t" >&6
+++if test $ac_cv_type_size_t = yes; then
+++  :
+++else
+++
+++cat >>confdefs.h <<_ACEOF
++ #define size_t unsigned
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++@@ -9132,7 +17604,9 @@
++ version=`grep 'defconst[      ]*emacs-version' ${srcdir}/lisp/version.el \
++       | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
++ if test x"${version}" = x; then
++-  { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
+++  { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
+++echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
+++   { (exit 1); exit 1; }; }
++ fi
++ 
++ ### Specify what sort of things we'll be editing into Makefile and config.h.
++@@ -9168,79 +17642,80 @@
++ 
++ 
++ 
++-cat >> confdefs.h <<EOF
+++
+++cat >>confdefs.h <<_ACEOF
++ #define EMACS_CONFIGURATION "${canonical}"
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define config_machfile "${machfile}"
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define config_opsysfile "${opsysfile}"
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
++-EOF
+++_ACEOF
++ 
++-cat >> confdefs.h <<EOF
+++cat >>confdefs.h <<_ACEOF
++ #define UNEXEC_SRC ${UNEXEC_SRC}
++-EOF
+++_ACEOF
++ 
++ 
++ if test "${HAVE_X_WINDOWS}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_X_WINDOWS 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${USE_X_TOOLKIT}" != "none" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define USE_X_TOOLKIT 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${HAVE_X11}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_X11 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${HAVE_XFREE386}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_XFREE386 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${HAVE_MENUS}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define HAVE_MENUS 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${GNU_MALLOC}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define GNU_MALLOC 1
++-EOF
+++_ACEOF
++ 
++ fi
++ if test "${REL_ALLOC}" = "yes" ; then
++-  cat >> confdefs.h <<\EOF
+++  cat >>confdefs.h <<\_ACEOF
++ #define REL_ALLOC 1
++-EOF
+++_ACEOF
++ 
++ fi
++ 
++@@ -9289,414 +17764,1286 @@
++ ## from Makefile.c can correctly provide the arg `-traditional' to the
++ ## C preprocessor.
++ 
++-cat > conftest.$ac_ext <<EOF
++-#line 9294 "configure"
++-#include "confdefs.h"
+++cat >conftest.$ac_ext <<_ACEOF
+++/* confdefs.h.  */
+++_ACEOF
+++cat confdefs.h >>conftest.$ac_ext
+++cat >>conftest.$ac_ext <<_ACEOF
+++/* end confdefs.h.  */
++ yes..yes
++-EOF
+++_ACEOF
++ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++-  egrep "yes..yes" >/dev/null 2>&1; then
++-  rm -rf conftest*
+++  $EGREP "yes..yes" >/dev/null 2>&1; then
++   CPP_NEED_TRADITIONAL=no
++ else
++-  rm -rf conftest*
++   CPP_NEED_TRADITIONAL=yes
++ fi
++ rm -f conftest*
++ 
++ 
++-trap '' 1 2 15
++-cat > confcache <<\EOF
+++                                                                                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"
+++          ac_config_commands="$ac_config_commands default"
+++cat >confcache <<\_ACEOF
++ # This file is a shell script that caches the results of configure
++ # tests run on this system so they can be shared between configure
++-# scripts and configure runs.  It is not useful on other systems.
++-# If it contains results you don't want to keep, you may remove or edit it.
+++# scripts and configure runs, see configure's option --config-cache.
+++# It is not useful on other systems.  If it contains results you don't
+++# want to keep, you may remove or edit it.
++ #
++-# By default, configure uses ./config.cache as the cache file,
++-# creating it if it does not exist already.  You can give configure
++-# the --cache-file=FILE option to use a different cache file; that is
++-# what configure does when it calls configure scripts in
++-# subdirectories, so they share the cache.
++-# Giving --cache-file=/dev/null disables caching, for debugging configure.
++-# config.status only pays attention to the cache file if you give it the
++-# --recheck option to rerun configure.
+++# config.status only pays attention to the cache file if you give it
+++# the --recheck option to rerun configure.
++ #
++-EOF
+++# `ac_cv_env_foo' variables (set or unset) will be overridden when
+++# loading this file, other *unset* `ac_cv_foo' will be assigned the
+++# following values.
+++
+++_ACEOF
+++
++ # The following way of writing the cache mishandles newlines in values,
++ # but we know of no workaround that is simple, portable, and efficient.
++ # So, don't put newlines in cache variables' values.
++ # Ultrix sh set writes to stderr and can't be redirected directly,
++ # and sets the high bit in the cache file unless we assign to the vars.
++-(set) 2>&1 |
++-  case `(ac_space=' '; set | grep ac_space) 2>&1` in
++-  *ac_space=\ *)
++-    # `set' does not quote correctly, so add quotes (double-quote substitution
++-    # turns \\\\ into \\, and sed turns \\ into \).
++-    sed -n \
++-      -e "s/'/'\\\\''/g" \
++-      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
++-    ;;
++-  *)
++-    # `set' quotes correctly as required by POSIX, so do not add quotes.
++-    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
++-    ;;
++-  esac >> confcache
++-if cmp -s $cache_file confcache; then
++-  :
++-else
+++{
+++  (set) 2>&1 |
+++    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+++    *ac_space=\ *)
+++      # `set' does not quote correctly, so add quotes (double-quote
+++      # substitution turns \\\\ into \\, and sed turns \\ into \).
+++      sed -n \
+++     "s/'/'\\\\''/g;
+++       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+++      ;;
+++    *)
+++      # `set' quotes correctly as required by POSIX, so do not add quotes.
+++      sed -n \
+++     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+++      ;;
+++    esac;
+++} |
+++  sed '
+++     t clear
+++     : clear
+++     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+++     t end
+++     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+++     : end' >>confcache
+++if diff $cache_file confcache >/dev/null 2>&1; then :; else
++   if test -w $cache_file; then
++-    echo "updating cache $cache_file"
++-    cat confcache > $cache_file
+++    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+++    cat confcache >$cache_file
++   else
++     echo "not updating unwritable cache $cache_file"
++   fi
++ fi
++ rm -f confcache
++ 
++-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
++-
++ test "x$prefix" = xNONE && prefix=$ac_default_prefix
++ # Let make expand exec_prefix.
++ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
++ 
++-# Any assignment to VPATH causes Sun make to only execute
++-# the first set of double-colon rules, so remove it if not needed.
++-# If there is a colon in the path, we need to keep it.
+++# VPATH may cause trouble with some makes, so we remove $(srcdir),
+++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+++# trailing colons and then remove the whole line if VPATH becomes empty
+++# (actually we leave an empty line to preserve line numbers).
++ if test "x$srcdir" = x.; then
++-  ac_vpsub='/^[      ]*VPATH[        ]*=[^:]*$/d'
+++  ac_vpsub='/^[       ]*VPATH[        ]*=/{
+++s/:*\$(srcdir):*/:/;
+++s/:*\${srcdir}:*/:/;
+++s/:*@srcdir@:*/:/;
+++s/^\([^=]*=[  ]*\):*/\1/;
+++s/:*$//;
+++s/^[^=]*=[    ]*$//;
+++}'
++ fi
++ 
++-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
++-
++ DEFS=-DHAVE_CONFIG_H
++ 
++-# Without the "./", some shells look in PATH for config.status.
++-: ${CONFIG_STATUS=./config.status}
+++ac_libobjs=
+++ac_ltlibobjs=
+++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+++  # 1. Remove the extension, and $U if already installed.
+++  ac_i=`echo "$ac_i" |
+++      sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+++  # 2. Add them.
+++  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
+++  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+++done
+++LIBOBJS=$ac_libobjs
++ 
++-echo creating $CONFIG_STATUS
++-rm -f $CONFIG_STATUS
++-cat > $CONFIG_STATUS <<EOF
++-#! /bin/sh
++-# Generated automatically by configure.
+++LTLIBOBJS=$ac_ltlibobjs
+++
+++
+++
+++: ${CONFIG_STATUS=./config.status}
+++ac_clean_files_save=$ac_clean_files
+++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+++echo "$as_me: creating $CONFIG_STATUS" >&6;}
+++cat >$CONFIG_STATUS <<_ACEOF
+++#! $SHELL
+++# Generated by $as_me.
++ # Run this file to recreate the current configuration.
++-# This directory was configured as follows,
++-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
++-#
++-# $0 $ac_configure_args
++-#
++ # Compiler output produced by configure, useful for debugging
++-# configure, is in ./config.log if it exists.
+++# configure, is in config.log if it exists.
++ 
++-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
++-for ac_option
+++debug=false
+++ac_cs_recheck=false
+++ac_cs_silent=false
+++SHELL=\${CONFIG_SHELL-$SHELL}
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++## --------------------- ##
+++## M4sh Initialization.  ##
+++## --------------------- ##
+++
+++# Be Bourne compatible
+++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+++  emulate sh
+++  NULLCMD=:
+++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+++  # is contrary to our usage.  Disable this feature.
+++  alias -g '${1+"$@"}'='"$@"'
+++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+++  set -o posix
+++fi
+++DUALCASE=1; export DUALCASE # for MKS sh
+++
+++# Support unset when possible.
+++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+++  as_unset=unset
+++else
+++  as_unset=false
+++fi
+++
+++
+++# Work around bugs in pre-3.0 UWIN ksh.
+++$as_unset ENV MAIL MAILPATH
+++PS1='$ '
+++PS2='> '
+++PS4='+ '
+++
+++# NLS nuisances.
+++for as_var in \
+++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+++  LC_TELEPHONE LC_TIME
++ do
++-  case "\$ac_option" in
++-  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++-    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
++-    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
++-  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
++-    echo "$CONFIG_STATUS generated by autoconf version 2.13"
++-    exit 0 ;;
++-  -help | --help | --hel | --he | --h)
++-    echo "\$ac_cs_usage"; exit 0 ;;
++-  *) echo "\$ac_cs_usage"; exit 1 ;;
+++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
+++    eval $as_var=C; export $as_var
+++  else
+++    $as_unset $as_var
+++  fi
+++done
+++
+++# Required to use basename.
+++if expr a : '\(a\)' >/dev/null 2>&1; then
+++  as_expr=expr
+++else
+++  as_expr=false
+++fi
+++
+++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+++  as_basename=basename
+++else
+++  as_basename=false
+++fi
+++
+++
+++# Name of the executable.
+++as_me=`$as_basename "$0" ||
+++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+++      X"$0" : 'X\(//\)$' \| \
+++      X"$0" : 'X\(/\)$' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X/"$0" |
+++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+++       /^X\/\(\/\/\)$/{ s//\1/; q; }
+++       /^X\/\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++
+++
+++# PATH needs CR, and LINENO needs CR and PATH.
+++# Avoid depending upon Character Ranges.
+++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+++as_cr_digits='0123456789'
+++as_cr_alnum=$as_cr_Letters$as_cr_digits
+++
+++# The user is always right.
+++if test "${PATH_SEPARATOR+set}" != set; then
+++  echo "#! /bin/sh" >conf$$.sh
+++  echo  "exit 0"   >>conf$$.sh
+++  chmod +x conf$$.sh
+++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+++    PATH_SEPARATOR=';'
+++  else
+++    PATH_SEPARATOR=:
+++  fi
+++  rm -f conf$$.sh
+++fi
+++
+++
+++  as_lineno_1=$LINENO
+++  as_lineno_2=$LINENO
+++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+++  test "x$as_lineno_1" != "x$as_lineno_2" &&
+++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+++  # Find who we are.  Look in the path if we contain no path at all
+++  # relative or not.
+++  case $0 in
+++    *[\\/]* ) as_myself=$0 ;;
+++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in $PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+++done
+++
+++       ;;
++   esac
+++  # We did not find ourselves, most probably we were run as `sh COMMAND'
+++  # in which case we are not to be found in the path.
+++  if test "x$as_myself" = x; then
+++    as_myself=$0
+++  fi
+++  if test ! -f "$as_myself"; then
+++    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+++   { (exit 1); exit 1; }; }
+++  fi
+++  case $CONFIG_SHELL in
+++  '')
+++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+++do
+++  IFS=$as_save_IFS
+++  test -z "$as_dir" && as_dir=.
+++  for as_base in sh bash ksh sh5; do
+++      case $as_dir in
+++      /*)
+++        if ("$as_dir/$as_base" -c '
+++  as_lineno_1=$LINENO
+++  as_lineno_2=$LINENO
+++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+++  test "x$as_lineno_1" != "x$as_lineno_2" &&
+++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+++          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+++          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+++          CONFIG_SHELL=$as_dir/$as_base
+++          export CONFIG_SHELL
+++          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+++        fi;;
+++      esac
+++       done
++ done
+++;;
+++  esac
++ 
++-ac_given_srcdir=$srcdir
++-ac_given_INSTALL="$INSTALL"
+++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+++  # uniformly replaced by the line number.  The first 'sed' inserts a
+++  # line-number line before each line; the second 'sed' does the real
+++  # work.  The second script uses 'N' to pair each line-number line
+++  # with the numbered line, and appends trailing '-' during
+++  # substitution so that $LINENO is not a special case at line end.
+++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+++  sed '=' <$as_myself |
+++    sed '
+++      N
+++      s,$,-,
+++      : loop
+++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+++      t loop
+++      s,-$,,
+++      s,^['$as_cr_digits']*\n,,
+++    ' >$as_me.lineno &&
+++  chmod +x $as_me.lineno ||
+++    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+++   { (exit 1); exit 1; }; }
+++
+++  # Don't try to exec as it changes $[0], causing all sort of problems
+++  # (the dirname of $[0] is not the place where we might find the
+++  # original and so on.  Autoconf is especially sensible to this).
+++  . ./$as_me.lineno
+++  # Exit status is that of the last command.
+++  exit
+++}
++ 
++-trap 'rm -fr `echo "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 src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
++-EOF
++-cat >> $CONFIG_STATUS <<EOF
++-
++-# Protect against being on the right side of a sed subst in config.status.
++-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
++- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
++-$ac_vpsub
++-$extrasub
++-s%@SHELL@%$SHELL%g
++-s%@CFLAGS@%$CFLAGS%g
++-s%@CPPFLAGS@%$CPPFLAGS%g
++-s%@CXXFLAGS@%$CXXFLAGS%g
++-s%@FFLAGS@%$FFLAGS%g
++-s%@DEFS@%$DEFS%g
++-s%@LDFLAGS@%$LDFLAGS%g
++-s%@LIBS@%$LIBS%g
++-s%@exec_prefix@%$exec_prefix%g
++-s%@prefix@%$prefix%g
++-s%@program_transform_name@%$program_transform_name%g
++-s%@bindir@%$bindir%g
++-s%@sbindir@%$sbindir%g
++-s%@libexecdir@%$libexecdir%g
++-s%@datadir@%$datadir%g
++-s%@sysconfdir@%$sysconfdir%g
++-s%@sharedstatedir@%$sharedstatedir%g
++-s%@localstatedir@%$localstatedir%g
++-s%@libdir@%$libdir%g
++-s%@includedir@%$includedir%g
++-s%@oldincludedir@%$oldincludedir%g
++-s%@infodir@%$infodir%g
++-s%@mandir@%$mandir%g
++-s%@host@%$host%g
++-s%@host_alias@%$host_alias%g
++-s%@host_cpu@%$host_cpu%g
++-s%@host_vendor@%$host_vendor%g
++-s%@host_os@%$host_os%g
++-s%@CC@%$CC%g
++-s%@LN_S@%$LN_S%g
++-s%@CPP@%$CPP%g
++-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
++-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
++-s%@INSTALL_DATA@%$INSTALL_DATA%g
++-s%@YACC@%$YACC%g
++-s%@RANLIB@%$RANLIB%g
++-s%@LIBSOUND@%$LIBSOUND%g
++-s%@SET_MAKE@%$SET_MAKE%g
++-s%@ALLOCA@%$ALLOCA%g
++-s%@liblockfile@%$liblockfile%g
++-s%@LIBOBJS@%$LIBOBJS%g
++-s%@NEED_SETGID@%$NEED_SETGID%g
++-s%@KMEM_GROUP@%$KMEM_GROUP%g
++-s%@version@%$version%g
++-s%@configuration@%$configuration%g
++-s%@canonical@%$canonical%g
++-s%@srcdir@%$srcdir%g
++-s%@lispdir@%$lispdir%g
++-s%@locallisppath@%$locallisppath%g
++-s%@lisppath@%$lisppath%g
++-s%@x_default_search_path@%$x_default_search_path%g
++-s%@etcdir@%$etcdir%g
++-s%@archlibdir@%$archlibdir%g
++-s%@docdir@%$docdir%g
++-s%@bitmapdir@%$bitmapdir%g
++-s%@c_switch_system@%$c_switch_system%g
++-s%@c_switch_machine@%$c_switch_machine%g
++-s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
++-s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
++-s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
++-s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
++-s%@machfile@%$machfile%g
++-s%@opsysfile@%$opsysfile%g
++-s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
++ 
++-CEOF
++-EOF
+++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+++  *c*,-n*) ECHO_N= ECHO_C='
+++' ECHO_T='   ' ;;
+++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+++esac
++ 
++-cat >> $CONFIG_STATUS <<\EOF
+++if expr a : '\(a\)' >/dev/null 2>&1; then
+++  as_expr=expr
+++else
+++  as_expr=false
+++fi
++ 
++-# Split the substitutions into bite-sized pieces for seds with
++-# small command number limits, like on Digital OSF/1 and HP-UX.
++-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
++-ac_file=1 # Number of current file.
++-ac_beg=1 # First line for current file.
++-ac_end=$ac_max_sed_cmds # Line after last line for current file.
++-ac_more_lines=:
++-ac_sed_cmds=""
++-while $ac_more_lines; do
++-  if test $ac_beg -gt 1; then
++-    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
++-  else
++-    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
++-  fi
++-  if test ! -s conftest.s$ac_file; then
++-    ac_more_lines=false
++-    rm -f conftest.s$ac_file
+++rm -f conf$$ conf$$.exe conf$$.file
+++echo >conf$$.file
+++if ln -s conf$$.file conf$$ 2>/dev/null; then
+++  # We could just check for DJGPP; but this test a) works b) is more generic
+++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+++  if test -f conf$$.exe; then
+++    # Don't use ln at all; we don't have any links
+++    as_ln_s='cp -p'
++   else
++-    if test -z "$ac_sed_cmds"; then
++-      ac_sed_cmds="sed -f conftest.s$ac_file"
++-    else
++-      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
++-    fi
++-    ac_file=`expr $ac_file + 1`
++-    ac_beg=$ac_end
++-    ac_end=`expr $ac_end + $ac_max_sed_cmds`
+++    as_ln_s='ln -s'
++   fi
++-done
++-if test -z "$ac_sed_cmds"; then
++-  ac_sed_cmds=cat
+++elif ln conf$$.file conf$$ 2>/dev/null; then
+++  as_ln_s=ln
+++else
+++  as_ln_s='cp -p'
+++fi
+++rm -f conf$$ conf$$.exe conf$$.file
+++
+++if mkdir -p . 2>/dev/null; then
+++  as_mkdir_p=:
+++else
+++  test -d ./-p && rmdir ./-p
+++  as_mkdir_p=false
++ fi
++-EOF
++ 
++-cat >> $CONFIG_STATUS <<EOF
+++as_executable_p="test -f"
++ 
++-CONFIG_FILES=\${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"}
++-EOF
++-cat >> $CONFIG_STATUS <<\EOF
++-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
++-  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++-  case "$ac_file" in
++-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
++-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
++-  *) ac_file_in="${ac_file}.in" ;;
+++# Sed expression to map a string onto a valid CPP name.
+++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+++
+++# Sed expression to map a string onto a valid variable name.
+++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+++
+++
+++# IFS
+++# We need space, tab and new line, in precisely that order.
+++as_nl='
+++'
+++IFS="        $as_nl"
+++
+++# CDPATH.
+++$as_unset CDPATH
+++
+++exec 6>&1
+++
+++# Open the log real soon, to keep \$[0] and so on meaningful, and to
+++# report actual input values of CONFIG_FILES etc. instead of their
+++# values after options handling.  Logging --version etc. is OK.
+++exec 5>>config.log
+++{
+++  echo
+++  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+++## Running $as_me. ##
+++_ASBOX
+++} >&5
+++cat >&5 <<_CSEOF
+++
+++This file was extended by $as_me, which was
+++generated by GNU Autoconf 2.59.  Invocation command line was
+++
+++  CONFIG_FILES    = $CONFIG_FILES
+++  CONFIG_HEADERS  = $CONFIG_HEADERS
+++  CONFIG_LINKS    = $CONFIG_LINKS
+++  CONFIG_COMMANDS = $CONFIG_COMMANDS
+++  $ $0 $@
+++
+++_CSEOF
+++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+++echo >&5
+++_ACEOF
+++
+++# Files that config.status was made for.
+++if test -n "$ac_config_files"; then
+++  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+++fi
+++
+++if test -n "$ac_config_headers"; then
+++  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+++fi
+++
+++if test -n "$ac_config_links"; then
+++  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+++fi
+++
+++if test -n "$ac_config_commands"; then
+++  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+++fi
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++
+++ac_cs_usage="\
+++\`$as_me' instantiates files from templates according to the
+++current configuration.
+++
+++Usage: $0 [OPTIONS] [FILE]...
+++
+++  -h, --help       print this help, then exit
+++  -V, --version    print version number, then exit
+++  -q, --quiet      do not print progress messages
+++  -d, --debug      don't remove temporary files
+++      --recheck    update $as_me by reconfiguring in the same conditions
+++  --file=FILE[:TEMPLATE]
+++                instantiate the configuration file FILE
+++  --header=FILE[:TEMPLATE]
+++                instantiate the configuration header FILE
+++
+++Configuration files:
+++$config_files
+++
+++Configuration headers:
+++$config_headers
+++
+++Configuration commands:
+++$config_commands
+++
+++Report bugs to <bug-autoconf@gnu.org>."
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<_ACEOF
+++ac_cs_version="\\
+++config.status
+++configured by $0, generated by GNU Autoconf 2.59,
+++  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+++
+++Copyright (C) 2003 Free Software Foundation, Inc.
+++This config.status script is free software; the Free Software Foundation
+++gives unlimited permission to copy, distribute and modify it."
+++srcdir=$srcdir
+++INSTALL="$INSTALL"
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++# If no file are specified by the user, then we need to provide default
+++# value.  By we need to know if files were specified by the user.
+++ac_need_defaults=:
+++while test $# != 0
+++do
+++  case $1 in
+++  --*=*)
+++    ac_option=`expr "x$1" : 'x\([^=]*\)='`
+++    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+++    ac_shift=:
+++    ;;
+++  -*)
+++    ac_option=$1
+++    ac_optarg=$2
+++    ac_shift=shift
+++    ;;
+++  *) # This is not an option, so the user has probably given explicit
+++     # arguments.
+++     ac_option=$1
+++     ac_need_defaults=false;;
++   esac
++ 
++-  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+++  case $ac_option in
+++  # Handling of the options.
+++_ACEOF
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+++    ac_cs_recheck=: ;;
+++  --version | --vers* | -V )
+++    echo "$ac_cs_version"; exit 0 ;;
+++  --he | --h)
+++    # Conflict between --help and --header
+++    { { echo "$as_me:$LINENO: error: ambiguous option: $1
+++Try \`$0 --help' for more information." >&5
+++echo "$as_me: error: ambiguous option: $1
+++Try \`$0 --help' for more information." >&2;}
+++   { (exit 1); exit 1; }; };;
+++  --help | --hel | -h )
+++    echo "$ac_cs_usage"; exit 0 ;;
+++  --debug | --d* | -d )
+++    debug=: ;;
+++  --file | --fil | --fi | --f )
+++    $ac_shift
+++    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+++    ac_need_defaults=false;;
+++  --header | --heade | --head | --hea )
+++    $ac_shift
+++    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+++    ac_need_defaults=false;;
+++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+++    ac_cs_silent=: ;;
+++
+++  # This is an error.
+++  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+++Try \`$0 --help' for more information." >&5
+++echo "$as_me: error: unrecognized option: $1
+++Try \`$0 --help' for more information." >&2;}
+++   { (exit 1); exit 1; }; } ;;
++ 
++-  # Remove last slash and all that follows it.  Not all systems have dirname.
++-  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
++-  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
++-    # The file is in a subdirectory.
++-    test ! -d "$ac_dir" && mkdir "$ac_dir"
++-    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
++-    # A "../" for each directory in $ac_dir_suffix.
++-    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
++-  else
++-    ac_dir_suffix= ac_dots=
++-  fi
++-
++-  case "$ac_given_srcdir" in
++-  .)  srcdir=.
++-      if test -z "$ac_dots"; then top_srcdir=.
++-      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
++-  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
++-  *) # Relative path.
++-    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
++-    top_srcdir="$ac_dots$ac_given_srcdir" ;;
+++  *) ac_config_targets="$ac_config_targets $1" ;;
+++
+++  esac
+++  shift
+++done
+++
+++ac_configure_extra_args=
+++
+++if $ac_cs_silent; then
+++  exec 6>/dev/null
+++  ac_configure_extra_args="$ac_configure_extra_args --silent"
+++fi
+++
+++_ACEOF
+++cat >>$CONFIG_STATUS <<_ACEOF
+++if \$ac_cs_recheck; then
+++  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+++  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+++fi
+++
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<_ACEOF
+++#
+++# INIT-COMMANDS section.
+++#
+++
+++GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
+++
+++_ACEOF
+++
+++
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++for ac_config_target in $ac_config_targets
+++do
+++  case "$ac_config_target" in
+++  # Handling of arguments.
+++  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+++  "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
+++  "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
+++  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
+++  "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
+++  "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
+++  "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
+++  "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
+++  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
+++  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
+++  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+++echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+++   { (exit 1); exit 1; }; };;
++   esac
+++done
+++
+++# If the user did not use the arguments to specify the items to instantiate,
+++# then the envvar interface is used.  Set only those that are not.
+++# We use the long form for the default assignment because of an extremely
+++# bizarre bug on SunOS 4.1.3.
+++if $ac_need_defaults; then
+++  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+++  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+++  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+++fi
+++
+++# Have a temporary directory for convenience.  Make it in the build tree
+++# simply because there is no reason to put it here, and in addition,
+++# creating and moving files from /tmp can sometimes cause problems.
+++# Create a temporary directory, and hook for its removal unless debugging.
+++$debug ||
+++{
+++  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+++  trap '{ (exit 1); exit 1; }' 1 2 13 15
+++}
+++
+++# Create a (secure) tmp directory for tmp files.
+++
+++{
+++  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
+++  test -n "$tmp" && test -d "$tmp"
+++}  ||
+++{
+++  tmp=./confstat$$-$RANDOM
+++  (umask 077 && mkdir $tmp)
+++} ||
+++{
+++   echo "$me: cannot create a temporary directory in ." >&2
+++   { (exit 1); exit 1; }
+++}
+++
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<_ACEOF
+++
+++#
+++# CONFIG_FILES section.
+++#
+++
+++# No need to generate the scripts if there are no CONFIG_FILES.
+++# This happens for instance when ./config.status config.h
+++if test -n "\$CONFIG_FILES"; then
+++  # Protect against being on the right side of a sed subst in config.status.
+++  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+++   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+++s,@SHELL@,$SHELL,;t t
+++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+++s,@exec_prefix@,$exec_prefix,;t t
+++s,@prefix@,$prefix,;t t
+++s,@program_transform_name@,$program_transform_name,;t t
+++s,@bindir@,$bindir,;t t
+++s,@sbindir@,$sbindir,;t t
+++s,@libexecdir@,$libexecdir,;t t
+++s,@datadir@,$datadir,;t t
+++s,@sysconfdir@,$sysconfdir,;t t
+++s,@sharedstatedir@,$sharedstatedir,;t t
+++s,@localstatedir@,$localstatedir,;t t
+++s,@libdir@,$libdir,;t t
+++s,@includedir@,$includedir,;t t
+++s,@oldincludedir@,$oldincludedir,;t t
+++s,@infodir@,$infodir,;t t
+++s,@mandir@,$mandir,;t t
+++s,@build_alias@,$build_alias,;t t
+++s,@host_alias@,$host_alias,;t t
+++s,@target_alias@,$target_alias,;t t
+++s,@DEFS@,$DEFS,;t t
+++s,@ECHO_C@,$ECHO_C,;t t
+++s,@ECHO_N@,$ECHO_N,;t t
+++s,@ECHO_T@,$ECHO_T,;t t
+++s,@LIBS@,$LIBS,;t t
+++s,@build@,$build,;t t
+++s,@build_cpu@,$build_cpu,;t t
+++s,@build_vendor@,$build_vendor,;t t
+++s,@build_os@,$build_os,;t t
+++s,@host@,$host,;t t
+++s,@host_cpu@,$host_cpu,;t t
+++s,@host_vendor@,$host_vendor,;t t
+++s,@host_os@,$host_os,;t t
+++s,@CC@,$CC,;t t
+++s,@CFLAGS@,$CFLAGS,;t t
+++s,@LDFLAGS@,$LDFLAGS,;t t
+++s,@CPPFLAGS@,$CPPFLAGS,;t t
+++s,@ac_ct_CC@,$ac_ct_CC,;t t
+++s,@EXEEXT@,$EXEEXT,;t t
+++s,@OBJEXT@,$OBJEXT,;t t
+++s,@LN_S@,$LN_S,;t t
+++s,@CPP@,$CPP,;t t
+++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+++s,@INSTALL_DATA@,$INSTALL_DATA,;t t
+++s,@YACC@,$YACC,;t t
+++s,@RANLIB@,$RANLIB,;t t
+++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+++s,@EGREP@,$EGREP,;t t
+++s,@LIBSOUND@,$LIBSOUND,;t t
+++s,@SET_MAKE@,$SET_MAKE,;t t
+++s,@ALLOCA@,$ALLOCA,;t t
+++s,@LIBOBJS@,$LIBOBJS,;t t
+++s,@NEED_SETGID@,$NEED_SETGID,;t t
+++s,@KMEM_GROUP@,$KMEM_GROUP,;t t
+++s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
+++s,@version@,$version,;t t
+++s,@configuration@,$configuration,;t t
+++s,@canonical@,$canonical,;t t
+++s,@srcdir@,$srcdir,;t t
+++s,@lispdir@,$lispdir,;t t
+++s,@locallisppath@,$locallisppath,;t t
+++s,@lisppath@,$lisppath,;t t
+++s,@x_default_search_path@,$x_default_search_path,;t t
+++s,@etcdir@,$etcdir,;t t
+++s,@archlibdir@,$archlibdir,;t t
+++s,@docdir@,$docdir,;t t
+++s,@bitmapdir@,$bitmapdir,;t t
+++s,@c_switch_system@,$c_switch_system,;t t
+++s,@c_switch_machine@,$c_switch_machine,;t t
+++s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
+++s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
+++s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
+++s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
+++s,@machfile@,$machfile,;t t
+++s,@opsysfile@,$opsysfile,;t t
+++s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
+++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+++CEOF
+++
+++_ACEOF
+++
+++  cat >>$CONFIG_STATUS <<\_ACEOF
+++  # Split the substitutions into bite-sized pieces for seds with
+++  # small command number limits, like on Digital OSF/1 and HP-UX.
+++  ac_max_sed_lines=48
+++  ac_sed_frag=1 # Number of current file.
+++  ac_beg=1 # First line for current file.
+++  ac_end=$ac_max_sed_lines # Line after last line for current file.
+++  ac_more_lines=:
+++  ac_sed_cmds=
+++  while $ac_more_lines; do
+++    if test $ac_beg -gt 1; then
+++      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+++    else
+++      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+++    fi
+++    if test ! -s $tmp/subs.frag; then
+++      ac_more_lines=false
+++    else
+++      # The purpose of the label and of the branching condition is to
+++      # speed up the sed processing (if there are no `@' at all, there
+++      # is no need to browse any of the substitutions).
+++      # These are the two extra sed commands mentioned above.
+++      (echo ':t
+++  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+++      if test -z "$ac_sed_cmds"; then
+++     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+++      else
+++     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+++      fi
+++      ac_sed_frag=`expr $ac_sed_frag + 1`
+++      ac_beg=$ac_end
+++      ac_end=`expr $ac_end + $ac_max_sed_lines`
+++    fi
+++  done
+++  if test -z "$ac_sed_cmds"; then
+++    ac_sed_cmds=cat
+++  fi
+++fi # test -n "$CONFIG_FILES"
++ 
++-  case "$ac_given_INSTALL" in
++-  [/$]*) INSTALL="$ac_given_INSTALL" ;;
++-  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+++_ACEOF
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+++  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+++  case $ac_file in
+++  - | *:- | *:-:* ) # input from stdin
+++     cat >$tmp/stdin
+++     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+++     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+++     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+++  * )   ac_file_in=$ac_file.in ;;
++   esac
++ 
++-  echo creating "$ac_file"
++-  rm -f "$ac_file"
++-  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
++-  case "$ac_file" in
++-  *Makefile*) ac_comsub="1i\\
++-# $configure_input" ;;
++-  *) ac_comsub= ;;
+++  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+++  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$ac_file" : 'X\(//\)[^/]' \| \
+++      X"$ac_file" : 'X\(//\)$' \| \
+++      X"$ac_file" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$ac_file" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++  { if $as_mkdir_p; then
+++    mkdir -p "$ac_dir"
+++  else
+++    as_dir="$ac_dir"
+++    as_dirs=
+++    while test ! -d "$as_dir"; do
+++      as_dirs="$as_dir $as_dirs"
+++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$as_dir" : 'X\(//\)[^/]' \| \
+++      X"$as_dir" : 'X\(//\)$' \| \
+++      X"$as_dir" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$as_dir" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++    done
+++    test ! -n "$as_dirs" || mkdir $as_dirs
+++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+++   { (exit 1); exit 1; }; }; }
+++
+++  ac_builddir=.
+++
+++if test "$ac_dir" != .; then
+++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+++  # A "../" for each directory in $ac_dir_suffix.
+++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+++else
+++  ac_dir_suffix= ac_top_builddir=
+++fi
+++
+++case $srcdir in
+++  .)  # No --srcdir option.  We are building in place.
+++    ac_srcdir=.
+++    if test -z "$ac_top_builddir"; then
+++       ac_top_srcdir=.
+++    else
+++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+++    fi ;;
+++  [\\/]* | ?:[\\/]* )  # Absolute path.
+++    ac_srcdir=$srcdir$ac_dir_suffix;
+++    ac_top_srcdir=$srcdir ;;
+++  *) # Relative path.
+++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+++esac
+++
+++# Do not use `cd foo && pwd` to compute absolute paths, because
+++# the directories may not exist.
+++case `pwd` in
+++.) ac_abs_builddir="$ac_dir";;
+++*)
+++  case "$ac_dir" in
+++  .) ac_abs_builddir=`pwd`;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_builddir=${ac_top_builddir}.;;
+++*)
+++  case ${ac_top_builddir}. in
+++  .) ac_abs_top_builddir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_srcdir=$ac_srcdir;;
+++*)
+++  case $ac_srcdir in
+++  .) ac_abs_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_srcdir=$ac_top_srcdir;;
+++*)
+++  case $ac_top_srcdir in
+++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+++  esac;;
+++esac
+++
+++
+++  case $INSTALL in
+++  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+++  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
++   esac
++ 
++-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
++-  sed -e "$ac_comsub
++-s%@configure_input@%$configure_input%g
++-s%@srcdir@%$srcdir%g
++-s%@top_srcdir@%$top_srcdir%g
++-s%@INSTALL@%$INSTALL%g
++-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
++-fi; done
++-rm -f conftest.s*
+++  # Let's still pretend it is `configure' which instantiates (i.e., don't
+++  # use $as_me), people would be surprised to read:
+++  #    /* config.h.  Generated by config.status.  */
+++  if test x"$ac_file" = x-; then
+++    configure_input=
+++  else
+++    configure_input="$ac_file.  "
+++  fi
+++  configure_input=$configure_input"Generated from `echo $ac_file_in |
+++                                  sed 's,.*/,,'` by configure."
+++
+++  # First look for the input files in the build tree, otherwise in the
+++  # src tree.
+++  ac_file_inputs=`IFS=:
+++    for f in $ac_file_in; do
+++      case $f in
+++      -) echo $tmp/stdin ;;
+++      [\\/$]*)
+++      # Absolute (can't be DOS-style, as IFS=:)
+++      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+++echo "$as_me: error: cannot find input file: $f" >&2;}
+++   { (exit 1); exit 1; }; }
+++      echo "$f";;
+++      *) # Relative
+++      if test -f "$f"; then
+++        # Build tree
+++        echo "$f"
+++      elif test -f "$srcdir/$f"; then
+++        # Source tree
+++        echo "$srcdir/$f"
+++      else
+++        # /dev/null tree
+++        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+++echo "$as_me: error: cannot find input file: $f" >&2;}
+++   { (exit 1); exit 1; }; }
+++      fi;;
+++      esac
+++    done` || { (exit 1); exit 1; }
+++
+++  if test x"$ac_file" != x-; then
+++    { echo "$as_me:$LINENO: creating $ac_file" >&5
+++echo "$as_me: creating $ac_file" >&6;}
+++    rm -f "$ac_file"
+++  fi
+++_ACEOF
+++cat >>$CONFIG_STATUS <<_ACEOF
+++  sed "$ac_vpsub
+++$extrasub
+++_ACEOF
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++:t
+++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+++s,@configure_input@,$configure_input,;t t
+++s,@srcdir@,$ac_srcdir,;t t
+++s,@abs_srcdir@,$ac_abs_srcdir,;t t
+++s,@top_srcdir@,$ac_top_srcdir,;t t
+++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+++s,@builddir@,$ac_builddir,;t t
+++s,@abs_builddir@,$ac_abs_builddir,;t t
+++s,@top_builddir@,$ac_top_builddir,;t t
+++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+++s,@INSTALL@,$ac_INSTALL,;t t
+++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+++  rm -f $tmp/stdin
+++  if test x"$ac_file" != x-; then
+++    mv $tmp/out $ac_file
+++  else
+++    cat $tmp/out
+++    rm -f $tmp/out
+++  fi
+++
+++done
+++_ACEOF
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++
+++#
+++# CONFIG_HEADER section.
+++#
++ 
++ # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
++ # NAME is the cpp macro being defined and VALUE is the value it is being given.
++ #
++ # ac_d sets the value in "#define NAME VALUE" lines.
++-ac_dA='s%^\([        ]*\)#\([        ]*define[       ][      ]*\)'
++-ac_dB='\([   ][      ]*\)[^  ]*%\1#\2'
++-ac_dC='\3'
++-ac_dD='%g'
++-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
++-ac_uA='s%^\([        ]*\)#\([        ]*\)undef\([    ][      ]*\)'
++-ac_uB='\([   ]\)%\1#\2define\3'
+++ac_dA='s,^\([         ]*\)#\([        ]*define[       ][      ]*\)'
+++ac_dB='[      ].*$,\1#\2'
+++ac_dC=' '
+++ac_dD=',;t'
+++# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+++ac_uA='s,^\([         ]*\)#\([        ]*\)undef\([    ][      ]*\)'
+++ac_uB='$,\1#\2define\3'
++ ac_uC=' '
++-ac_uD='\4%g'
++-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
++-ac_eA='s%^\([        ]*\)#\([        ]*\)undef\([    ][      ]*\)'
++-ac_eB='$%\1#\2define\3'
++-ac_eC=' '
++-ac_eD='%g'
++-
++-if test "${CONFIG_HEADERS+set}" != set; then
++-EOF
++-cat >> $CONFIG_STATUS <<EOF
++-  CONFIG_HEADERS="src/config.h:src/config.in"
++-EOF
++-cat >> $CONFIG_STATUS <<\EOF
++-fi
++-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+++ac_uD=',;t'
+++
+++for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
++   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++-  case "$ac_file" in
++-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
++-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
++-  *) ac_file_in="${ac_file}.in" ;;
+++  case $ac_file in
+++  - | *:- | *:-:* ) # input from stdin
+++     cat >$tmp/stdin
+++     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+++     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+++     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+++  * )   ac_file_in=$ac_file.in ;;
++   esac
++ 
++-  echo creating $ac_file
+++  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
+++echo "$as_me: creating $ac_file" >&6;}
++ 
++-  rm -f conftest.frag conftest.in conftest.out
++-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
++-  cat $ac_file_inputs > conftest.in
++-
++-EOF
++-
++-# Transform confdefs.h into a sed script conftest.vals that substitutes
++-# the proper values into config.h.in to produce config.h.  And first:
++-# Protect against being on the right side of a sed subst in config.status.
++-# Protect against being in an unquoted here document in config.status.
++-rm -f conftest.vals
++-cat > conftest.hdr <<\EOF
++-s/[\\&%]/\\&/g
++-s%[\\$`]%\\&%g
++-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
++-s%ac_d%ac_u%gp
++-s%ac_u%ac_e%gp
++-EOF
++-sed -n -f conftest.hdr confdefs.h > conftest.vals
++-rm -f conftest.hdr
+++  # First look for the input files in the build tree, otherwise in the
+++  # src tree.
+++  ac_file_inputs=`IFS=:
+++    for f in $ac_file_in; do
+++      case $f in
+++      -) echo $tmp/stdin ;;
+++      [\\/$]*)
+++      # Absolute (can't be DOS-style, as IFS=:)
+++      test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+++echo "$as_me: error: cannot find input file: $f" >&2;}
+++   { (exit 1); exit 1; }; }
+++      # Do quote $f, to prevent DOS paths from being IFS'd.
+++      echo "$f";;
+++      *) # Relative
+++      if test -f "$f"; then
+++        # Build tree
+++        echo "$f"
+++      elif test -f "$srcdir/$f"; then
+++        # Source tree
+++        echo "$srcdir/$f"
+++      else
+++        # /dev/null tree
+++        { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+++echo "$as_me: error: cannot find input file: $f" >&2;}
+++   { (exit 1); exit 1; }; }
+++      fi;;
+++      esac
+++    done` || { (exit 1); exit 1; }
+++  # Remove the trailing spaces.
+++  sed 's/[    ]*$//' $ac_file_inputs >$tmp/in
+++
+++_ACEOF
+++
+++# Transform confdefs.h into two sed scripts, `conftest.defines' and
+++# `conftest.undefs', that substitutes the proper values into
+++# config.h.in to produce config.h.  The first handles `#define'
+++# templates, and the second `#undef' templates.
+++# And first: Protect against being on the right side of a sed subst in
+++# config.status.  Protect against being in an unquoted here document
+++# in config.status.
+++rm -f conftest.defines conftest.undefs
+++# Using a here document instead of a string reduces the quoting nightmare.
+++# Putting comments in sed scripts is not portable.
+++#
+++# `end' is used to avoid that the second main sed command (meant for
+++# 0-ary CPP macros) applies to n-ary macro definitions.
+++# See the Autoconf documentation for `clear'.
+++cat >confdef2sed.sed <<\_ACEOF
+++s/[\\&,]/\\&/g
+++s,[\\$`],\\&,g
+++t clear
+++: clear
+++s,^[  ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+++t end
+++s,^[  ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+++: end
+++_ACEOF
+++# If some macros were called several times there might be several times
+++# the same #defines, which is useless.  Nevertheless, we may not want to
+++# sort them, since we want the *last* AC-DEFINE to be honored.
+++uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
+++sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
+++rm -f confdef2sed.sed
++ 
++ # This sed command replaces #undef with comments.  This is necessary, for
++ # example, in the case of _POSIX_SOURCE, which is predefined and required
++ # on some systems where configure will not decide to define it.
++-cat >> conftest.vals <<\EOF
++-s%^[         ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
++-EOF
++-
++-# Break up conftest.vals because some shells have a limit on
++-# the size of here documents, and old seds have small limits too.
++-
+++cat >>conftest.undefs <<\_ACEOF
+++s,^[  ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+++_ACEOF
+++
+++# Break up conftest.defines because some shells have a limit on the size
+++# of here documents, and old seds have small limits too (100 cmds).
+++echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
+++echo '  if grep "^[   ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
+++echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
+++echo '  :' >>$CONFIG_STATUS
+++rm -f conftest.tail
+++while grep . conftest.defines >/dev/null
+++do
+++  # Write a limited-size here document to $tmp/defines.sed.
+++  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
+++  # Speed up: don't consider the non `#define' lines.
+++  echo '/^[   ]*#[    ]*define/!b' >>$CONFIG_STATUS
+++  # Work around the forget-to-reset-the-flag bug.
+++  echo 't clr' >>$CONFIG_STATUS
+++  echo ': clr' >>$CONFIG_STATUS
+++  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
+++  echo 'CEOF
+++  sed -f $tmp/defines.sed $tmp/in >$tmp/out
+++  rm -f $tmp/in
+++  mv $tmp/out $tmp/in
+++' >>$CONFIG_STATUS
+++  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
+++  rm -f conftest.defines
+++  mv conftest.tail conftest.defines
+++done
+++rm -f conftest.defines
+++echo '  fi # grep' >>$CONFIG_STATUS
+++echo >>$CONFIG_STATUS
+++
+++# Break up conftest.undefs because some shells have a limit on the size
+++# of here documents, and old seds have small limits too (100 cmds).
+++echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
++ rm -f conftest.tail
++-while :
+++while grep . conftest.undefs >/dev/null
++ do
++-  ac_lines=`grep -c . conftest.vals`
++-  # grep -c gives empty output for an empty file on some AIX systems.
++-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
++-  # Write a limited-size here document to conftest.frag.
++-  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
++-  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+++  # Write a limited-size here document to $tmp/undefs.sed.
+++  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
+++  # Speed up: don't consider the non `#undef'
+++  echo '/^[   ]*#[    ]*undef/!b' >>$CONFIG_STATUS
+++  # Work around the forget-to-reset-the-flag bug.
+++  echo 't clr' >>$CONFIG_STATUS
+++  echo ': clr' >>$CONFIG_STATUS
+++  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
++   echo 'CEOF
++-  sed -f conftest.frag conftest.in > conftest.out
++-  rm -f conftest.in
++-  mv conftest.out conftest.in
++-' >> $CONFIG_STATUS
++-  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
++-  rm -f conftest.vals
++-  mv conftest.tail conftest.vals
++-done
++-rm -f conftest.vals
++-
++-cat >> $CONFIG_STATUS <<\EOF
++-  rm -f conftest.frag conftest.h
++-  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
++-  cat conftest.in >> conftest.h
++-  rm -f conftest.in
++-  if cmp -s $ac_file conftest.h 2>/dev/null; then
++-    echo "$ac_file is unchanged"
++-    rm -f conftest.h
++-  else
++-    # Remove last slash and all that follows it.  Not all systems have dirname.
++-      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
++-      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
++-      # The file is in a subdirectory.
++-      test ! -d "$ac_dir" && mkdir "$ac_dir"
+++  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+++  rm -f $tmp/in
+++  mv $tmp/out $tmp/in
+++' >>$CONFIG_STATUS
+++  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
+++  rm -f conftest.undefs
+++  mv conftest.tail conftest.undefs
+++done
+++rm -f conftest.undefs
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
+++  # Let's still pretend it is `configure' which instantiates (i.e., don't
+++  # use $as_me), people would be surprised to read:
+++  #    /* config.h.  Generated by config.status.  */
+++  if test x"$ac_file" = x-; then
+++    echo "/* Generated by configure.  */" >$tmp/config.h
+++  else
+++    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
+++  fi
+++  cat $tmp/in >>$tmp/config.h
+++  rm -f $tmp/in
+++  if test x"$ac_file" != x-; then
+++    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
+++      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+++echo "$as_me: $ac_file is unchanged" >&6;}
+++    else
+++      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$ac_file" : 'X\(//\)[^/]' \| \
+++      X"$ac_file" : 'X\(//\)$' \| \
+++      X"$ac_file" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$ac_file" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++      { if $as_mkdir_p; then
+++    mkdir -p "$ac_dir"
+++  else
+++    as_dir="$ac_dir"
+++    as_dirs=
+++    while test ! -d "$as_dir"; do
+++      as_dirs="$as_dir $as_dirs"
+++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$as_dir" : 'X\(//\)[^/]' \| \
+++      X"$as_dir" : 'X\(//\)$' \| \
+++      X"$as_dir" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$as_dir" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++    done
+++    test ! -n "$as_dirs" || mkdir $as_dirs
+++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+++   { (exit 1); exit 1; }; }; }
+++
+++      rm -f $ac_file
+++      mv $tmp/config.h $ac_file
++     fi
++-    rm -f $ac_file
++-    mv conftest.h $ac_file
+++  else
+++    cat $tmp/config.h
+++    rm -f $tmp/config.h
++   fi
++-fi; done
+++done
+++_ACEOF
+++cat >>$CONFIG_STATUS <<\_ACEOF
++ 
++-EOF
++-cat >> $CONFIG_STATUS <<EOF
++-GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
++-EOF
++-cat >> $CONFIG_STATUS <<\EOF
+++#
+++# CONFIG_COMMANDS section.
+++#
+++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
+++  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+++  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+++  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
+++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$ac_dest" : 'X\(//\)[^/]' \| \
+++      X"$ac_dest" : 'X\(//\)$' \| \
+++      X"$ac_dest" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$ac_dest" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++  { if $as_mkdir_p; then
+++    mkdir -p "$ac_dir"
+++  else
+++    as_dir="$ac_dir"
+++    as_dirs=
+++    while test ! -d "$as_dir"; do
+++      as_dirs="$as_dir $as_dirs"
+++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+++      X"$as_dir" : 'X\(//\)[^/]' \| \
+++      X"$as_dir" : 'X\(//\)$' \| \
+++      X"$as_dir" : 'X\(/\)' \| \
+++      .     : '\(.\)' 2>/dev/null ||
+++echo X"$as_dir" |
+++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+++       /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+++       /^X\(\/\/\)$/{ s//\1/; q; }
+++       /^X\(\/\).*/{ s//\1/; q; }
+++       s/.*/./; q'`
+++    done
+++    test ! -n "$as_dirs" || mkdir $as_dirs
+++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+++   { (exit 1); exit 1; }; }; }
+++
+++  ac_builddir=.
+++
+++if test "$ac_dir" != .; then
+++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+++  # A "../" for each directory in $ac_dir_suffix.
+++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+++else
+++  ac_dir_suffix= ac_top_builddir=
+++fi
+++
+++case $srcdir in
+++  .)  # No --srcdir option.  We are building in place.
+++    ac_srcdir=.
+++    if test -z "$ac_top_builddir"; then
+++       ac_top_srcdir=.
+++    else
+++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+++    fi ;;
+++  [\\/]* | ?:[\\/]* )  # Absolute path.
+++    ac_srcdir=$srcdir$ac_dir_suffix;
+++    ac_top_srcdir=$srcdir ;;
+++  *) # Relative path.
+++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+++esac
+++
+++# Do not use `cd foo && pwd` to compute absolute paths, because
+++# the directories may not exist.
+++case `pwd` in
+++.) ac_abs_builddir="$ac_dir";;
+++*)
+++  case "$ac_dir" in
+++  .) ac_abs_builddir=`pwd`;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_builddir=${ac_top_builddir}.;;
+++*)
+++  case ${ac_top_builddir}. in
+++  .) ac_abs_top_builddir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_srcdir=$ac_srcdir;;
+++*)
+++  case $ac_srcdir in
+++  .) ac_abs_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+++  esac;;
+++esac
+++case $ac_abs_builddir in
+++.) ac_abs_top_srcdir=$ac_top_srcdir;;
+++*)
+++  case $ac_top_srcdir in
+++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+++  esac;;
+++esac
++ 
++ 
+++  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
+++echo "$as_me: executing $ac_dest commands" >&6;}
+++  case $ac_dest in
+++    default )
+++
++ ### Make the necessary directories, if they don't exist.
++ for dir in etc lisp ; do
++   test -d ${dir} || mkdir ${dir}
++@@ -9712,7 +19059,7 @@
++ # the C preprocessor to some helpful value like 1, or maybe the empty
++ # string.  Needless to say consequent macro substitutions are less
++ # than conducive to the makefile finding the correct directory.
++-undefs="`echo $top_srcdir $configuration $canonical |
+++undefs="`echo $ac_top_srcdir $configuration $canonical |
++ sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
++     -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
++ `"
++@@ -9735,7 +19082,7 @@
++   sed -e '1,/start of cpp stuff/d'\
++       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++       < Makefile.c > junk.c
++-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
+++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++       sed -e 's/^ /  /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++   cat junk1.c junk2.c > Makefile.new
++   rm -f junk.c junk1.c junk2.c
++@@ -9751,7 +19098,7 @@
++   sed -e '1,/start of cpp stuff/d'\
++       -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++       < Makefile.c > junk.c
++-  $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
+++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++       sed -e 's/^ /  /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++   cat junk1.c junk2.c > Makefile.new
++   rm -f junk.c junk1.c junk2.c
++@@ -9759,19 +19106,46 @@
++   mv -f Makefile.new Makefile
++ )
++ 
++-if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
+++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
++   echo creating src/.gdbinit
++-  echo source $top_srcdir/src/.gdbinit > src/.gdbinit
+++  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
++ fi
++ 
++ # This is how we know whether to re-run configure in certain cases.
++ touch src/config.stamp
++ 
+++ ;;
+++  esac
+++done
+++_ACEOF
+++
+++cat >>$CONFIG_STATUS <<\_ACEOF
++ 
++-exit 0
++-EOF
+++{ (exit 0); exit 0; }
+++_ACEOF
++ chmod +x $CONFIG_STATUS
++-rm -fr confdefs* $ac_clean_files
++-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+++ac_clean_files=$ac_clean_files_save
+++
+++
+++# configure is writing to config.log, and then calls config.status.
+++# config.status does its own redirection, appending to config.log.
+++# Unfortunately, on DOS this fails, as config.log is still kept open
+++# by configure, so config.status won't be able to write to it; its
+++# output is simply discarded.  So we exec the FD to /dev/null,
+++# effectively closing config.log, so it can be properly (re)opened and
+++# appended to by config.status.  When coming back to configure, we
+++# need to make the FD available again.
+++if test "$no_create" != yes; then
+++  ac_cs_success=:
+++  ac_config_status_args=
+++  test "$silent" = yes &&
+++    ac_config_status_args="$ac_config_status_args --quiet"
+++  exec 5>/dev/null
+++  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+++  exec 5>>config.log
+++  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+++  # would make configure fail if this is the last instruction.
+++  $ac_cs_success || { (exit 1); exit 1; }
+++fi
++ 
++ 
+--- emacs-21.3.orig/debian/TODO
++++ emacs-21.3/debian/TODO
+@@ -0,0 +1,15 @@
++-*-text-*-
++
++* add a "latest emacs" meta-package?  (bug 82687)
++
++* add "check" and check-installed infrastructure to debian/rules
++
++* check on tmp-alt-list -- do we still need it -- is it working?
++
++* Decide what to do with emacsclient-plus.
++
++* See about breaking movemail out as a separate program.
++
++* the x and -nox versions should be able to use the same DOC file.
++
++* check with upstream about x-vs-nox "sort/copy-sequence" fix.
+--- emacs-21.3.orig/debian/bin/info/install-info
++++ emacs-21.3/debian/bin/info/install-info
+@@ -0,0 +1,5 @@
++#!/bin/sh
++
++# Dummy script to fool emacs install into thinking it did something useful.
++
++exit 0
+--- emacs-21.3.orig/debian/gnu-32x32.xpm
++++ emacs-21.3/debian/gnu-32x32.xpm
+@@ -0,0 +1,59 @@
++/* XPM */
++static char * gnu_32x32_xpm[] = {
++"32 32 24 1",
++"     c None",
++".    c #000000",
++"+    c #7F7F7F",
++"@    c #CCCCCC",
++"#    c #0000FF",
++"$    c #FFFF00",
++"%    c #007F7F",
++"&    c #333333",
++"*    c #B2B2B2",
++"=    c #FFFFFF",
++"-    c #7F007F",
++";    c #00FF00",
++">    c #00007F",
++",    c #7F7F00",
++"'    c #191919",
++")    c #FF0000",
++"!    c #007F00",
++"~    c #666667",
++"{    c #E5E5E5",
++"]    c #00FFFF",
++"^    c #FF00FF",
++"/    c #4C4C4C",
++"(    c #999999",
++"_    c #7F0000",
++"                                ",
++"                       _        ",
++"                        _       ",
++"                         __     ",
++"       _          _       __    ",
++"      _       __ ____      __   ",
++"     __    ___________     __   ",
++"    __    _____________   ___   ",
++"   ___   _______________ ____   ",
++"   ___  ______+(/+(~/~(+/&_&_   ",
++"   ___  _____+++@==@((@{@@@~~   ",
++"   _________++*=={{@@++*@*{==(  ",
++"   ________(+(~+*@@*@@+~   ~+   ",
++"   _______(@+(~{=*+*@@@+/       ",
++"     ___~{{/*/*##*(+@@@(/       ",
++"      _@==(+{+*#/@/+@@@*/       ",
++"     +=@~/~=+@===*{@@@@*~       ",
++"     +*//~+***=*++{@@@@@~/      ",
++"       /++(**~@=({{{@@@@(/      ",
++"       ~*~((((*@{===@@@@@(      ",
++"      /+@(/~{(*=*{==={@@(~      ",
++"      /~@@+(*@+(*+*/~~*(/_/     ",
++"      /+@@~*~((*(+*___//_//     ",
++"       /(@++((*~(+/&_____//     ",
++"       /+@@++~+@/*//____&/      ",
++"        /*@(~++(+///&___&/      ",
++"        /+@@@+*~~*(//___//      ",
++"         /+*@@(*/@+///_&/       ",
++"          //(@@@+~/  ///        ",
++"            /~@@//              ",
++"              /~                ",
++"                                "};
+--- emacs-21.3.orig/debian/mangle-info
++++ emacs-21.3/debian/mangle-info
+@@ -0,0 +1,17 @@
++#!/usr/bin/perl -w -i
++
++use English;
++use strict;
++
++$RS = undef;
++
++my $prefix = $ENV{"DEBIAN_INFO_PREFIX"};
++
++my $x = <>;
++if(!($x =~ m/^(\s*START-INFO-DIR-ENTRY\s+\*\s*[^:]+:\s*)\(([^\)]+)\)/mo)) {
++  die "Couldn't find START-INFO-DIR-ENTRY.";
++}
++   
++print ${PREMATCH};
++print "$1($prefix/$2)";
++print ${POSTMATCH};
+--- emacs-21.3.orig/debian/emacs.prerm
++++ emacs-21.3/debian/emacs.prerm
+@@ -0,0 +1,22 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++
++if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
++then
++  rm -f /usr/doc/@PKG_NAME@
++fi
++
++# update-alternatives on things that collide with xemacs, other editors
++if [ "$1" != "upgrade" ]
++then
++  update-alternatives --remove emacs /usr/bin/emacs${MAJOR}-@X_SUPPORT@
++  update-alternatives --remove editor /usr/bin/emacs${MAJOR}
++fi
++
++# emacsen-common registration.
++/usr/lib/emacsen-common/emacs-remove emacs${MAJOR}
++
++exit 0
+--- emacs-21.3.orig/debian/emacs-common.prerm
++++ emacs-21.3/debian/emacs-common.prerm
+@@ -0,0 +1,25 @@
++#!/bin/sh
++
++set -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++INFOFILES="@INFOFILES@"
++
++if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/@PKG_NAME@ ]
++then
++  rm -f /usr/doc/@PKG_NAME@
++fi
++
++for file in ${INFOFILES}
++do
++  install-info --quiet --remove-exactly emacs-${MAJOR}/${file} || true
++done
++
++# emacsen-common/emacs-remove used to be here.
++
++(rmdir /usr/local/share/emacs/${FULL}/site-lisp 2>/dev/null && \
++ rmdir /usr/local/share/emacs/${FULL}           2>/dev/null) || true
++
++exit 0
+--- emacs-21.3.orig/debian/README.binpkg.in
++++ emacs-21.3/debian/README.binpkg.in
+@@ -0,0 +1,3 @@
++
++Please see /usr/share/doc/emacs@MAJOR_VERSION@-common/ as the primary
++documentation directory.
+--- emacs-21.3.orig/debian/emacs.preinst
++++ emacs-21.3/debian/emacs.preinst
+@@ -0,0 +1,7 @@
++#!/bin/sh -e
++
++MAJOR=@MAJOR_VERSION@
++MINOR=@MINOR_VERSION@
++FULL=@FULL_VERSION@
++
++exit 0
+--- emacs-21.3.orig/debian/copyright
++++ emacs-21.3/debian/copyright
+@@ -0,0 +1,36 @@
++-*-text-*-
++
++This package was debianized by Rob Browning <rlb@defaultvalue.org> on
++Tue, 16 Dec 1997 00:05:45 -0600.
++
++The source is a combination of the following files:
++
++  prep.ai.mit.edu:/pub/gnu/emacs/emacs-21.3.tar.gz
++  prep.ai.mit.edu:/pub/gnu/emacs/leim-21.3.tar.gz
++
++Copyright:
++
++  GNU Emacs is Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996,
++  1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
++  59 Temple Place, Suite 330 Boston, MA 02111-1307 USA and is covered
++  under the terms of the GPL.  See the file
++  /usr/share/common-licenses/GPL for more information.
++
++  The GNU Emacs Manual is Copyright (C) 1985, 1986, 1987, 1993, 1994,
++  1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software
++  Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307
++  USA.  It is covered under the terms of the GNU Free Documentation
++  License, version 1.1 or later.  See node `GNU Free Documentation
++  License' in the Info manual (emacs) for details.
++
++  The GNU Emacs Manual and related manuals in /usr/info/emacs-21 are
++  Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998,
++  1999, 2000, 2001, 2002 Free Software Foundation, Inc. 59 Temple
++  Place, Suite 330 Boston, MA 02111-1307 USA.  They are covered under
++  the terms of the GNU Free Documentation License, version 1.1 or
++  later.  See node `GNU Free Documentation License' in the Info manual
++  (emacs) for details.
++ 
++Please see /usr/share/doc/emacs21-common/README.Debian.gz for a
++description of the Debian specific differences from the upstream
++version.
+--- emacs-21.3.orig/debian/rules
++++ emacs-21.3/debian/rules
+@@ -0,0 +1,791 @@
++#!/usr/bin/make -f
++
++# This file is licensed under the terms of the Gnu Public License.
++# With the one additional provision that Ian Jackson's name may not be
++# removed from the file.
++
++# Copyright 1994,1995 by Ian Jackson.
++# Copyright 1998-2001 Rob Browning <rlb@defaultvalue.org>.
++
++# Originally copied from the GNU Hello Debian rules file (1.3).
++# modified for emacs by Mark Eichin <eichin@kitten.gen.ma.us>
++# modified for emacs20 by Rob Browning <rlb@defaultvalue.org>
++# modified for emacs21 by Rob Browning <rlb@defaultvalue.org>
++
++include /usr/share/dpatch/dpatch.make
++PACKAGE := emacs21
++
++SHELL := /bin/bash
++pwd := $(shell pwd)
++
++DEB_TRASH :=
++
++# For now we assume that emacs' versioning scheme is always
++# MAJOR.MINORtinyrev where MAJOR and MINOR are integers and tinyrev is
++# an optional lowercase letter (or letters).  We also assume that
++# upstream uses a numbering scheme that sorts in a "Debian friendly"
++# way.  So far that's always been true.  If it becomes false, some of
++# the values below will have to be set manually.
++
++# At the moment, we try to make it so that a "debian/rules clean" will
++# get you back to the same state you were in before "debian/rules
++# build".  With the original upstream source that's somewhat tricky
++# because they ship the .elc files, but we need to re-build them when
++# we patch the corresponding .el files.  This is further complicated
++# by the fact that any of these .el files may have macros, and if
++# those are changed, then any other .el files that use those macros
++# must also be recompiled.  Over time (over the years), we've tried
++# various ways to handle this problem, originally by trying to keep
++# track of which files need to be recompiled and only recompiling
++# those, then later by just re-building all the .elc files with "make
++# bootstrap".  In either case, if you don't want to have diff bloat,
++# you have to do something to keep track of the original .elc files so
++# you can restore them during make clean.
++
++# All of this was a lot of work, and was using quite a bit of
++# unnecessary storage both in the .orig.tar.gz and during the package
++# build.  So in order to avoid this, and to dramatically simplify
++# things, we now just remove the .elc files from the upstream
++# distribution whenever we create the debian .orig.tar.gz file for a
++# given upstream release.  Since were always clobbering all of the
++# .elc files during the package build anyway, this shouldn't be any
++# great loss, and it also means that "debian/rules clean" is now a
++# simple matter of little more than a "make distclean" followed by a
++# purge of all the remaining .elc files.
++
++# NOTE -- emacs doesn't respect .elc files in VPATH build.  They're
++# modified in srcdir, not builddir.  We don't worry about this because
++# it shouldn't affect our builds ATM, but if we ever have more than
++# one emacs configuration which could produce differing .elc files,
++# we'll need to be careful -- probably have to build completely
++# separate packages from completely separate source trees.
++
++# For now we handle the autofiles.diff file separately from the other
++# dpatch patches.  This is so that we don't have to worry about
++# possible problems with unpatch after a failed automatic diff
++# generation, and so we don't have to try to apply all the patches
++# *except* the autofiles.dpatch during the automatic generation.
++
++# working directly on the source tree, rather than copying to
++# debian/build-src to create the build-src has some drawbacks.  In
++# particular, it makes it a lot easier to get wedged if you don't put
++# the source tree into the right state before starting to edit.  If
++# you make it so that you can't unpatch cleanly then you can get the
++# tree into a can't go forward, can't go back state.
++
++######################################################################
++# Important top-level targets:
++#
++# check-vars - displays how the version number has been parsed.
++# prepare-release - prepare and check debs for upload.
++# autodiff-sync - force a new debian/autofiles.diff to be generated.
++#
++######################################################################
++
++# The version from the changelog (i.e. 20.5-1)
++debian_ver := $(shell dpkg-parsechangelog | egrep '^Version:')
++debian_ver := $(shell echo ${debian_ver} | perl -pe 's/Version:\s+//o')
++# The Debian revision (i.e. the 1 from 20.5-1)
++# Always everything after the last '-'
++debian_rev := $(shell echo ${debian_ver} | perl -pe 's/.*-//o')
++
++# This is the official upstream version (the one in the tarfile names).
++nominal_ver := $(shell echo ${debian_ver} | perl -pe 's/[-+].*?$$//o')
++
++# This must be the version that's actually used at runtime for things
++# like load-path.  It may not be the same as the upstream version
++# (i.e. when you have upstream 20.5a, the functional version may still
++# be 20.5), so we do this by hand.
++runtime_ver := $(shell echo ${nominal_ver} | perl -pe 's/[a-z]+$$//o')
++
++major_ver := $(shell echo ${runtime_ver} | perl -pe 's/\..*$$//o')
++minor_ver := $(shell echo ${runtime_ver} | perl -pe 's/^[^.]*\.//o')
++
++# version for the debian source, i.e. if the upstream is 21.3, this
++# might be 21.3, or it might be 21.3+1 if we've had to have more than
++# one re-release of the upstream source.  Rare, but it happens...
++# Always everything before the last '-'
++debsrc_ver := $(shell echo ${debian_ver} | perl -pe 's/-[^-]+$$//o')
++
++DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
++DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
++
++DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
++DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
++
++ifndef DEB_HOST_GNU_TYPE
++  ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
++    DEB_HOST_GNU_TYPE := \
++      $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-gnu
++  else
++    DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
++  endif
++  export DEB_HOST_GNU_TYPE
++endif
++
++ifndef DEB_BUILD_GNU_TYPE
++  ifeq ($(DEB_BUILD_GNU_SYSTEM), linux)
++    DEB_BUILD_GNU_TYPE := \
++      $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)-gnu
++  else
++    DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
++  endif
++  export DEB_BUILD_GNU_TYPE
++endif
++
++confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
++
++# Uncomment if strip is broken
++# CFLAGS    := -DDEBIAN -O2
++# LDFLAGS   :=
++
++CFLAGS    := -DDEBIAN -g
++
++# fix problem with newer versions of gcc on m68k
++# -O2 causes a build failure (broken byte compiler)
++ifeq (m68k,${DEB_HOST_ARCH})
++  CFLAGS += -O1
++else
++  CFLAGS += -O2
++endif
++
++LDFLAGS   := -g
++
++# These files must always exist, i.e. can't ever be cleaned.
++PERSISTENT_AUTOGEN_FILES := debian/control debian/copyright
++
++NONPERSISTENT_AUTOGEN_FILES := \
++  debian/README \
++  debian/README.binpkg \
++  debian/menu-emacs${major_ver} \
++  debian/menu-emacs${major_ver}-nox \
++  debian/emacs${major_ver}.desktop
++
++DEBPKGFILES := ${PERSISTENT_AUTOGEN_FILES} ${NONPERSISTENT_AUTOGEN_FILES}
++
++# These files may be modified in the *source* tree during the build.
++# Wonder if we could patch emacs to copy/use these files to/from the
++# build tree...
++protected_files := config.sub config.guess lisp/loaddefs.el
++
++local_lpath := /etc/emacs${major_ver}:/etc/emacs
++local_lpath := ${local_lpath}:/usr/local/share/emacs/${runtime_ver}/site-lisp
++local_lpath := ${local_lpath}:/usr/local/share/emacs/site-lisp
++local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/site-lisp
++local_lpath := ${local_lpath}:/usr/share/emacs/site-lisp
++
++# This shouldn't be needed as of 20.3
++local_lpath := ${local_lpath}:/usr/share/emacs/${runtime_ver}/leim
++
++target := ${DEB_BUILD_GNU_TYPE}
++movemail_bin := usr/lib/emacs/${runtime_ver}/${target}/movemail
++
++# Info files that are going to show up in the main dir.
++main_dir_info_files := \
++  info \
++  emacs \
++  efaq \
++  cl \
++  dired-x \
++  ediff \
++  pcl-cvs \
++  speedbar \
++  ada-mode \
++  ccmode \
++  ebrowse \
++  idlwave \
++  gnus \
++  message \
++  mh-e \
++  emacs-mime \
++  sc \
++  autotype \
++  eshell \
++  eudc \
++  forms \
++  reftex \
++  widget \
++  woman \
++  viper \
++  vip
++
++
++define checkdir
++      test -f debian/emacs.postinst
++endef
++
++define build_cmd
++      ${MAKE} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
++          prefix=/usr \
++          sharedstatedir=/var/lib \
++          libexecdir=/usr/lib \
++          infodir=/usr/share/info \
++          manext=.1emacs${major_ver} \
++          locallisppath=${local_lpath}
++endef
++
++emacs_inst = (cd debian/${1} && \
++      PATH=${pwd}/debian/bin/info:${PATH} ${MAKE} install \
++              INSTALL_STRIP="-s" \
++              debepkgdir=${pwd}/debian/${2} \
++              prefix=${pwd}/debian/${2}/usr \
++              sharedstatedir=${pwd}/debian/${2}/var/lib \
++              libexecdir=${pwd}/debian/${2}/usr/lib \
++              infodir=${pwd}/debian/${2}/usr/share/info/emacs-${major_ver} \
++              mandir=${pwd}/debian/${2}/usr/share/man \
++              manext=.1emacs${major_ver} \
++              locallisppath=${local_lpath})
++
++define cleanup_all
++      -${MAKE} distclean
++      find -name "*.elc" | xargs --no-run-if-empty rm
++      if [ -e debian/autofiles.diff -a -e debian/stamp/autofiles.patched ]; \
++        then patch -p1 -R -s < debian/autofiles.diff; \
++      fi
++      ${MAKE} -f debian/rules unpatch
++      if [ -e debian/protected-files.tgz ]; then \
++        tar xzpf debian/protected-files.tgz; \
++      fi
++      rm -f debian/protected-files.tgz
++      find -name '*~' | xargs --no-run-if-empty rm -f
++      rm -rf debian/stamp
++      rm -f debian/substvars
++      rm -f ${NONPERSISTENT_AUTOGEN_FILES}
++      rm -rf \
++        debian/autodiff-old \
++        debian/autodiff-new \
++        debian/build-x \
++        debian/build-nox \
++        debian/pkg-x \
++        debian/pkg-nox \
++        debian/pkg-bin-common \
++        debian/pkg-common \
++        debian/pkg-el \
++        debian/pkg-el-all \
++        debian/tmp-alt-list \
++          debian/files*
++      rm -rf ${DEB_TRASH}
++endef
++
++define update_debian_autofiles_diff
++      ${cleanup_all}
++      rm -rf debian/autodiff-old debian/autodiff-new
++      ${MAKE} -f debian/rules patch
++      mkdir debian/autodiff-old
++      cp -a `ls | grep -v debian` debian/autodiff-old
++      cp -a debian/autodiff-old debian/autodiff-new
++        # rm aclocal.m4 so it doesn't confuse newer autoconfs, but touch it
++        # so ./Makefile won't be upset if it's not recreated (b/c not needed).
++      cd debian/autodiff-new && rm -f aclocal.m4 && touch aclocal.m4
++      cd debian/autodiff-new && aclocal
++      cd debian/autodiff-new && autoconf
++      cd debian && diff -ruN -x autom4te.cache autodiff-old autodiff-new \
++        > autofiles.diff.tmp; test $$? -eq 0 -o $$? -eq 1
++      mv debian/autofiles.diff.tmp debian/autofiles.diff
++endef
++DEB_TRASH += debian/autofiles.diff.tmp
++
++define expand_file_subst_vars
++      test -n "${major_ver}" && \
++      perl -p \
++        -e "s/\@PKGNAME\@/${pkg_name}/go;" \
++        -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
++          -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
++          -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
++          -e "s/\@PACKAGE_VERSION\@/${debian_ver}/go;" \
++          -e "s/\@DEBIAN_REV\@/${deb_rev}/go;" \
++          -e "s/\@NOMINAL_VERSION\@/${nominal_ver}/go;" \
++                      > $@ < $<
++endef
++
++check-vars:
++      @echo "pwd: ${pwd}"
++      @echo "debian_ver: ${debian_ver}"
++      @echo "debsrc_ver: ${debsrc_ver}"
++      @echo "debian_rev: ${debian_rev}"
++      @echo "nominal_ver: ${nominal_ver}"
++      @echo "runtime_ver: ${runtime_ver}"
++      @echo "major_ver: ${major_ver}"
++      @echo "minor_ver: ${minor_ver}"
++.PHONY: check-vars
++
++prepare-release:
++      ${checkdir}
++      dpkg-parsechangelog > /dev/null
++        # don't want to be root -- using fakeroot below.
++        # also, stacking fakeroots seems to cause trouble generating diff.
++      test "`whoami`" != root
++        # TODO: make sure we actually installed the binary.
++        # TODO: run tests (use a check target?)
++      @read -p "Regenerate autofiles.diff? [y/n] "; \
++          if test "$${REPLY}" == y; \
++        then \
++          ${MAKE} -f debian/rules autodiff-sync; \
++        else \
++          true; \
++        fi
++      ${MAKE} -f debian/rules clean
++      rm -rf ../deb-tmp
++      mkdir ../deb-tmp
++      svn export . ../deb-tmp/emacs${major_ver}-${debsrc_ver}
++      cd ../deb-tmp \
++        && ln -s ../dist/emacs${major_ver}_${debsrc_ver}.orig.tar.gz .
++      cd ../deb-tmp/emacs${major_ver}-${debsrc_ver} \
++        && dpkg-buildpackage -rfakeroot -D
++      @if [ $$(zgrep '^---' \
++                 ../deb-tmp/emacs${major_ver}_${debian_ver}.diff.gz  \
++                   | grep -v /debian/ | wc -c) -ne 0 ]; \
++      then \
++        echo "Diffs outside debian/ found, please fix and retry."; \
++        echo "This probably means either something wasn't cleaned"; \
++        echo "properly, or you need to do some work in debian/patches."; \
++        false; \
++      else \
++        echo "Everything looks OK.  Ready for release."; \
++      fi
++.PHONY: prepare-release 
++
++# we don't sync this automatically on clean because it's expensive and
++# should only be done by a maintainer with time to deal with any mess
++# it might create.
++autodiff-sync:
++      ${update_debian_autofiles_diff}
++.PHONY: autodiff-sync
++
++debian/autofiles.diff: debian/patches/*.dpatch
++      ${update_debian_autofiles_diff}
++
++debian-sync: ${PERSISTENT_AUTOGEN_FILES}
++
++# we use PHONY because deleting patches won't cause rebuild otherwise.
++debian/README: debian/README.in debian/patches/*.dpatch
++      cd debian && csplit -s -f README. README.in '/@@PATCH_LIST_HERE@@/'
++      cp debian/README.00 debian/README.tmp
++      dpatch-list-patch >> debian/README.tmp
++      tail +1 < debian/README.01 >> debian/README.tmp
++      mv debian/README.tmp debian/README
++.PHONY: debian/README
++DEB_TRASH += debian/README.tmp debian/README.00 debian/README.01
++
++debian/menu-emacs${major_ver}: pkg_name := emacs${major_ver}
++debian/menu-emacs${major_ver}: debian/menu.in
++      ${expand_file_subst_vars}
++
++debian/menu-emacs${major_ver}-nox: pkg_name := emacs${major_ver}-nox
++debian/menu-emacs${major_ver}-nox: debian/menu.in
++      ${expand_file_subst_vars}
++
++debian/emacs${major_ver}.desktop: debian/emacs.desktop
++      ${expand_file_subst_vars}
++
++debian/%: debian/%.in debian/changelog
++      ${expand_file_subst_vars}
++
++debian/protected-files.tgz:
++      tar czpSf debian/protected-files.tgz.tmp ${protected_files}
++      mv debian/protected-files.tgz.tmp $@
++
++patch-stamp: debian/protected-files.tgz
++
++debian/stamp/autofiles.patched: debian/autofiles.diff patch-stamp
++      if test -e debian/autofiles.diff; \
++        then patch -p1 -s < debian/autofiles.diff; \
++      fi
++      cp /usr/share/misc/config.sub .
++      cp /usr/share/misc/config.guess .
++      mkdir -p debian/stamp && touch $@
++
++debian/stamp/setup: debian/stamp/autofiles.patched
++      find debian/bin -type f | xargs chmod 775
++      mkdir -p debian/stamp && touch $@
++
++confflags += --prefix=/usr
++confflags += --sharedstatedir=/var/lib
++confflags += --libexecdir=/usr/lib
++confflags += --localstatedir=/var/lib
++confflags += --infodir=/usr/share/info
++confflags += --mandir=/usr/share/man
++confflags += --with-pop=yes
++
++configure: debian/stamp/configure
++.PHONY: configure
++
++debian/stamp/configure: debian/stamp/configure-x debian/stamp/configure-nox
++      mkdir -p debian/stamp && touch $@
++
++debian/stamp/configure-x: confflags += --with-x=yes
++debian/stamp/configure-x: confflags += --with-x-toolkit=athena
++debian/stamp/configure-x: BUILDDIR := debian/build-x
++
++# For those who prefer the old-style non-toolkit scrollbars, just
++# uncomment this line, and re-build.  The resulting emacsXY package
++# will have the old scrollbars.
++#
++#debian/stamp/configure-x: confflags += --without-toolkit-scroll-bars
++
++debian/stamp/configure-nox: confflags += --with-x=no
++debian/stamp/configure-nox: BUILDDIR := debian/build-nox
++
++debian/stamp/configure-%: debian/stamp/setup
++      ${checkdir}
++      rm -rf ${BUILDDIR}
++      mkdir ${BUILDDIR}
++      cd ${BUILDDIR} && CFLAGS="${CFLAGS}" ../../configure ${confflags}
++        # Because paths-force is called in configure, but configure
++        # doesn't support --locallisppath (do we still need this?)
++      (cd ${BUILDDIR} && ${build_cmd} epaths-force)
++      mkdir -p debian/stamp && touch $@
++
++build: debian/stamp/build
++.PHONY: build
++
++debian/stamp/build: debian/stamp/configure
++      ${checkdir}
++      @if test -d .svn; \
++      then \
++        echo "The Emacs source can't build from a subversion working"; \
++        echo "directory right now.  Please try something like this:"; \
++        echo "  rm -r ../deb-tmp && svn export . ../deb-tmp"; \
++        echo "  (cd ../deb-tmp && fakeroot debian/rules WHATEVER)"; \
++      fi
++      cd debian/build-x && ${build_cmd}
++      cd debian/build-nox && ${build_cmd}
++#        # rebuild the info pages (in case we've changed the .texi files)
++#     cd debian/build-nox/info && \
++#       rm -f `ls | grep -v COPYING | grep -v dir | grep -v CVS`
++#     cd debian/build-nox/man && make
++      mkdir -p debian/stamp && touch $@
++
++binary-indep: checkroot debian/stamp/build ${DEBPKGFILES}
++      ${checkdir}
++      dpkg-parsechangelog > /dev/null
++      rm -rf debian/pkg-el debian/pkg-el-all
++      $(call emacs_inst,build-x,pkg-el-all)
++
++        # emacs${major_ver}-el files (move all the .el files that have 
++        # a corresponding .elc file to the emacs${major_ver}-el package)
++      install -d debian/pkg-el
++      (cd debian/pkg-el-all && \
++        find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | \
++          tar cpf - --files-from -) | \
++            (cd debian/pkg-el && tar xpf -)
++
++      rm -rf debian/pkg-el-all
++      install -d debian/pkg-el/usr/share/doc/emacs${major_ver}-el
++
++      cp debian/changelog \
++        debian/pkg-el/usr/share/doc/emacs${major_ver}-el/changelog.Debian
++
++        # Now compress before adding copyright.
++      find debian/pkg-el/usr/share/doc/emacs${major_ver}-el -type f | \
++        xargs gzip -9v
++
++      cp debian/copyright debian/pkg-el/usr/share/doc/emacs${major_ver}-el
++
++        # Mangle permissions to conform.
++      chown -R root.root debian/pkg-el
++      find debian/pkg-el -type d | xargs chmod 755
++      find debian/pkg-el -not -type d -a -not -type l | xargs chmod 644
++
++      install -d --mode 755 debian/pkg-el/DEBIAN
++        # control scripts     
++      install -m 755 debian/emacs-el.prerm debian/pkg-el/DEBIAN/prerm
++
++      perl -w -p -i \
++        -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
++        -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
++        -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
++        \
++        debian/pkg-el/DEBIAN/prerm
++
++        # Generate DEBIAN/md5sums file
++      cd debian/pkg-el && \
++      for dir in `ls | grep -v DEBIAN` ; do \
++        find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
++      done
++      chmod 644 debian/pkg-el/DEBIAN/md5sums
++
++      dpkg-gencontrol -isp -pemacs${major_ver}-el -Pdebian/pkg-el
++      dpkg --build debian/pkg-el ..
++
++        ##################################################
++        # emacsXY-common
++      rm -rf debian/pkg-common
++      install -d debian/pkg-common
++      $(call emacs_inst,build-x,pkg-common)
++
++        # remove stuff that should only be in the binary packages
++      rm debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/DOC-${runtime_ver}.1
++      rm -r debian/pkg-common/usr/bin
++      rm -r debian/pkg-common/usr/lib
++
++        # make sure /usr/local dir doesn't exist in pkg.
++      rmdir debian/pkg-common/usr/local/share/emacs/site-lisp
++      rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}/site-lisp
++      rmdir debian/pkg-common/usr/local/share/emacs/${runtime_ver}
++      rmdir debian/pkg-common/usr/local/share/emacs
++      rmdir debian/pkg-common/usr/local/share
++      rmdir debian/pkg-common/usr/local
++
++        # So any test pkgs I build from CVS will be OK -- emacs' build system
++        # accidentally installs CVS dirs in a few places.
++      rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/ja-dic/CVS
++      rm -rf debian/pkg-common/usr/share/emacs/${runtime_ver}/leim/quail/CVS
++
++        # manpages
++      install -m 0644 etc/emacsclient.1 \
++        debian/pkg-common/usr/share/man/man1/emacsclient.1emacs${major_ver}
++
++      perl -pi -e "s|man1/etags\\.1|man1/etags\\.1emacs${major_ver}|" \
++        debian/pkg-common/usr/share/man/man1/ctags.1emacs${major_ver}
++      find debian/pkg-common/usr/share/man -type f | xargs gzip -9v
++
++        # lisp path directories
++      install -d debian/pkg-common/etc/emacs${major_ver}/site-start.d
++      install -d debian/pkg-common/usr/share/emacs${major_ver}/
++
++        # The version-specific site-lisp dir, say emacs/21.1/site-lisp, needs
++        # to be in share/emacs21 so that as we upgrade from 21.1 to 21.2, etc.,
++        # add-on package bits don't get left behind.
++      mv debian/pkg-common/usr/share/emacs/${runtime_ver}/site-lisp \
++         debian/pkg-common/usr/share/emacs${major_ver}
++      cd debian/pkg-common/usr/share/emacs/${runtime_ver} && \
++       ln -sf ../../emacs${major_ver}/site-lisp .
++
++      cd debian/pkg-common && \
++        find -name "*.elc" | perl -pe 's/\.elc$$/\.el/o' | xargs rm
++
++        # This is a duplicate of the file in emacs21/site-lisp
++      rm debian/pkg-common/usr/share/emacs/site-lisp/subdirs.el
++
++        # /usr/share/doc/emacs${major_ver} directory
++      install -d debian/pkg-common/usr/share/doc/emacs${major_ver}-common
++      cp README BUGS debian/pkg-common/usr/share/doc/emacs${major_ver}-common
++      cp ChangeLog \
++        debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog
++      cp debian/changelog \
++        debian/pkg-common/usr/share/doc/emacs${major_ver}-common/changelog.Debian
++      cp debian/README \
++        debian/pkg-common/usr/share/doc/emacs${major_ver}-common/README.Debian
++      cp debian/README.add-on-package-maintainers \
++        debian/pkg-common/usr/share/doc/emacs${major_ver}-common
++      find debian/pkg-common/usr/share/doc/emacs${major_ver}-common -type f \
++        | xargs gzip -9v
++      cp debian/copyright \
++        debian/pkg-common/usr/share/doc/emacs${major_ver}-common
++
++      cd debian/pkg-common/usr/share/doc/emacs${major_ver}-common \
++        && ln -s ../../../share/emacs/${runtime_ver}/etc .
++
++        # info files
++        # Mangle menu entries for subdir.
++      chmod 755 debian/mangle-info
++      for f in ${main_dir_info_files}; \
++      do \
++        DEBIAN_INFO_PREFIX=emacs-${major_ver} \
++          debian/mangle-info \
++            debian/pkg-common/usr/share/info/emacs-${major_ver}/$$f; \
++      done
++
++        # Get rid of unwanted dir file.
++      rm debian/pkg-common/usr/share/info/emacs-${major_ver}/dir
++
++        # compress
++      find debian/pkg-common/usr/share/info -type f | xargs gzip -9v
++
++      cp debian/gnu-32x32.xpm \
++        debian/pkg-common/usr/share/emacs/${runtime_ver}/etc/gnu-32x32.xpm
++
++        # Mangle permissions to conform.
++      chown -R root.root debian/pkg-common
++      find debian/pkg-common -type d | xargs chmod 755
++      find debian/pkg-common -not -type d -a -not -type l | xargs chmod 644
++
++        # control scripts     
++      install -d debian/pkg-common/DEBIAN
++      install -m 755 debian/emacs-common.postinst \
++        debian/pkg-common/DEBIAN/postinst
++      install -m 755 debian/emacs-common.prerm debian/pkg-common/DEBIAN/prerm
++
++      perl -w -p -i \
++        -e "s/\@PKG_NAME\@/emacs${major_ver}-common/go;" \
++        -e "s/\@MAJOR_VERSION\@/${major_ver}/go;" \
++        -e "s/\@MINOR_VERSION\@/${minor_ver}/go;" \
++        -e "s/\@FULL_VERSION\@/${runtime_ver}/go;" \
++        -e "s/\@INFOFILES\@/${main_dir_info_files}/go;" \
++        \
++        debian/pkg-common/DEBIAN/postinst \
++        debian/pkg-common/DEBIAN/prerm
++
++        # Generate DEBIAN/md5sums file
++      cd debian/pkg-common && \
++      for dir in `ls | grep -v DEBIAN` ; do \
++        find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
++      done
++      chmod 644 debian/pkg-common/DEBIAN/md5sums
++
++      dpkg-gencontrol -isp -pemacs${major_ver}-common -Pdebian/pkg-common
++      dpkg --build debian/pkg-common ..
++
++
++binary-arch: checkroot debian/stamp/build ${DEBPKGFILES}
++      ${checkdir}
++      dpkg-parsechangelog > /dev/null
++      rm -rf debian/pkg-x
++      rm -rf debian/pkg-x.tmp
++      rm -rf debian/pkg-nox
++      rm -rf debian/pkg-nox.tmp
++      rm -rf debian/pkg-bin-common
++      rm -rf debian/pkg-bin-common.tmp
++
++        ##################################################
++        # emacsXY-nox
++        # We install, grab the bits we need, and then delete the tree
++        # to save diskspace.  (Do we actually need to run install -- can we
++        # grab the files from the build tree instead?)
++
++      $(call emacs_inst,build-nox,pkg-nox.tmp)
++      chmod a+x debian/build-binary-pkg
++        # emacsXY-nox
++      pkgname=emacs${major_ver}-nox \
++      pkgdir=pkg-nox \
++      tmppkgdir=pkg-nox.tmp \
++      runver="${runtime_ver}" \
++      majorver="${major_ver}" \
++      minorver="${minor_ver}" \
++      target="${target}" \
++      xsupport="nox" \
++        debian/build-binary-pkg
++
++        ##################################################
++        # emacsXY
++        # We install, grab the bits we need, and then delete the tree
++        # to save diskspace.  (Do we actually need to run install -- can we
++        # grab the files from the build tree instead?)
++
++      $(call emacs_inst,build-x,pkg-x.tmp)
++      chmod a+x debian/build-binary-pkg
++      pkgname=emacs${major_ver} \
++      pkgdir=pkg-x \
++      tmppkgdir=pkg-x.tmp \
++      runver="${runtime_ver}" \
++      majorver="${major_ver}" \
++      minorver="${minor_ver}" \
++      target="${target}" \
++      xsupport="x" \
++        debian/build-binary-pkg
++
++        ##################################################
++        # emacsXY-bin-common
++      rm -rf debian/pkg-bin-common
++      rm -rf debian/pkg-bin-common.tmp
++
++      $(call emacs_inst,build-x,pkg-bin-common.tmp)
++      install -d debian/pkg-bin-common
++      install -d debian/pkg-bin-common/usr
++      mv debian/pkg-bin-common.tmp/usr/bin debian/pkg-bin-common/usr/
++      mv debian/pkg-bin-common.tmp/usr/lib debian/pkg-bin-common/usr/
++      rm -rf debian/pkg-bin-common.tmp
++
++        # remove stuff that should only be in the binary packages
++        # make sure it's only one file
++      test -f debian/pkg-bin-common/usr/bin/emacs-*
++      rm debian/pkg-bin-common/usr/bin/emacs-*
++      rm debian/pkg-bin-common/usr/bin/emacs
++      cd debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
++        && test `ls fns-*.el | wc -l` -eq 1 \
++        && rm fns-*.el
++
++      cd debian/pkg-bin-common/usr/bin && ls > ../../../tmp-alt-list
++
++      for file in `cat debian/tmp-alt-list | grep -v 'emacs$$'`; \
++      do \
++        mv debian/pkg-bin-common/usr/bin/$${file} \
++           debian/pkg-bin-common/usr/bin/$${file}.emacs${major_ver}; \
++      done
++
++        # /usr/share/doc/emacs${major_ver} directory
++      install -d debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/
++      cp debian/changelog \
++        debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/changelog.Debian
++      cp debian/README.binpkg \
++        debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common/README.Debian
++      find debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common \
++        -type f | xargs gzip -9v
++      cp debian/copyright \
++        debian/pkg-bin-common/usr/share/doc/emacs${major_ver}-bin-common
++
++        # Mangle permissions to conform.
++      chown -R root.root debian/pkg-bin-common
++      find debian/pkg-bin-common -type d | xargs chmod 755
++      find debian/pkg-bin-common -not -type d -a -not -type l \
++        | xargs chmod 644
++      find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
++        -type f -not -name "*.el" | xargs chmod 755
++      chmod 755 debian/pkg-bin-common/usr/bin/*
++
++        # control scripts
++      install -d debian/pkg-bin-common/DEBIAN
++      install -m 755 debian/emacs-bin-common.postinst \
++        debian/pkg-bin-common/DEBIAN/postinst
++      install -m 755 debian/emacs-bin-common.prerm \
++        debian/pkg-bin-common/DEBIAN/prerm
++      install -m 755 debian/emacs-bin-common.postrm \
++        debian/pkg-bin-common/DEBIAN/postrm
++
++      perl -pi -e 's/\n/ /gmo;' debian/tmp-alt-list
++
++      perl -w -p -i \
++        -e "s|\@PKG_NAME\@|emacs${major_ver}-bin-common|go;" \
++        -e "s|\@MAJOR_VERSION\@|${major_ver}|go;" \
++        -e "s|\@MINOR_VERSION\@|${minor_ver}|go;" \
++        -e "s|\@FULL_VERSION\@|${runtime_ver}|go;" \
++        -e "s|\@INFOFILES\@|${main_dir_info_files}|go;" \
++        -e "s|\@ALTERNATIVES\@|`cat debian/tmp-alt-list`|go;" \
++        -e "s|\@MOVEMAIL_BIN\@|${movemail_bin}|go;" \
++        \
++        debian/pkg-bin-common/DEBIAN/postinst \
++        debian/pkg-bin-common/DEBIAN/prerm \
++        debian/pkg-bin-common/DEBIAN/postrm
++
++      dpkg-shlibdeps debian/pkg-bin-common/usr/bin/* \
++        `find debian/pkg-bin-common/usr/lib/emacs/${runtime_ver}/${target}/ \
++           -type f -perm +u=x`
++
++        # Set up movemail (after dpkg-shlibdeps to avoid fakeroot sgid problem)
++      chown root debian/pkg-bin-common/${movemail_bin}
++      chgrp mail debian/pkg-bin-common/${movemail_bin}
++      chmod g+s debian/pkg-bin-common/${movemail_bin}
++
++        # Generate DEBIAN/md5sums file
++      cd debian/pkg-bin-common && \
++      for dir in `ls | grep -v DEBIAN` ; do \
++        find "$${dir}" -type f | xargs -r md5sum >> DEBIAN/md5sums ; \
++      done
++      chmod 644 debian/pkg-bin-common/DEBIAN/md5sums
++
++      dpkg-gencontrol -isp \
++        -pemacs${major_ver}-bin-common -Pdebian/pkg-bin-common
++      dpkg --build debian/pkg-bin-common ..
++
++
++clean: debian-sync
++      ${checkdir}
++      ${cleanup_all}
++
++# Below here is fairly generic really
++
++binary: binary-indep binary-arch
++
++source diff:
++      @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
++
++checkroot:
++      ${checkdir}
++      test root = "`whoami`"
++
++.PHONY: binary binary-arch binary-indep clean checkroot
++
++# Local variables:
++# mode: makefile
++# End:
+--- emacs-21.3.orig/debian/menu.in
++++ emacs-21.3/debian/menu.in
+@@ -0,0 +1,15 @@
++?package(@PKGNAME@):\
++  needs="X11"\
++  section="Apps/Editors"\
++  title="Emacs @MAJOR_VERSION@ (X11)"\
++  command="/usr/bin/emacs@MAJOR_VERSION@"\
++  icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
++  hints="Text"
++
++?package(@PKGNAME@):\
++  needs="text"\
++  section="Apps/Editors"\
++  title="Emacs @MAJOR_VERSION@ (text)"\
++  command="/usr/bin/emacs@MAJOR_VERSION@ -nw"\
++  icon="/usr/share/emacs/@FULL_VERSION@/etc/gnu-32x32.xpm"\
++  hints="Text"
+--- emacs-21.3.orig/configure.orig
++++ emacs-21.3/configure.orig
+@@ -0,0 +1,19156 @@
++#! /bin/sh
++# Guess values for system-dependent variables and create Makefiles.
++# Generated by GNU Autoconf 2.59.
++#
++# Copyright (C) 2003 Free Software Foundation, Inc.
++# This configure script is free software; the Free Software Foundation
++# gives unlimited permission to copy, distribute and modify it.
++## --------------------- ##
++## M4sh Initialization.  ##
++## --------------------- ##
++
++# Be Bourne compatible
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
++  emulate sh
++  NULLCMD=:
++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+"$@"}'='"$@"'
++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
++  set -o posix
++fi
++DUALCASE=1; export DUALCASE # for MKS sh
++
++# Support unset when possible.
++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
++  as_unset=unset
++else
++  as_unset=false
++fi
++
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++  LC_TELEPHONE LC_TIME
++do
++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
++    eval $as_var=C; export $as_var
++  else
++    $as_unset $as_var
++  fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++  as_basename=basename
++else
++  as_basename=false
++fi
++
++
++# Name of the executable.
++as_me=`$as_basename "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++       X"$0" : 'X\(//\)$' \| \
++       X"$0" : 'X\(/\)$' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X/"$0" |
++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
++        /^X\/\(\/\/\)$/{ s//\1/; q; }
++        /^X\/\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++
++
++# PATH needs CR, and LINENO needs CR and PATH.
++# Avoid depending upon Character Ranges.
++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
++as_cr_digits='0123456789'
++as_cr_alnum=$as_cr_Letters$as_cr_digits
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++  echo "#! /bin/sh" >conf$$.sh
++  echo  "exit 0"   >>conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
++fi
++
++
++  as_lineno_1=$LINENO
++  as_lineno_2=$LINENO
++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++  test "x$as_lineno_1" != "x$as_lineno_2" &&
++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
++  # Find who we are.  Look in the path if we contain no path at all
++  # relative or not.
++  case $0 in
++    *[\\/]* ) as_myself=$0 ;;
++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++done
++
++       ;;
++  esac
++  # We did not find ourselves, most probably we were run as `sh COMMAND'
++  # in which case we are not to be found in the path.
++  if test "x$as_myself" = x; then
++    as_myself=$0
++  fi
++  if test ! -f "$as_myself"; then
++    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
++   { (exit 1); exit 1; }; }
++  fi
++  case $CONFIG_SHELL in
++  '')
++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for as_base in sh bash ksh sh5; do
++       case $as_dir in
++       /*)
++         if ("$as_dir/$as_base" -c '
++  as_lineno_1=$LINENO
++  as_lineno_2=$LINENO
++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++  test "x$as_lineno_1" != "x$as_lineno_2" &&
++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
++           $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++           $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
++           CONFIG_SHELL=$as_dir/$as_base
++           export CONFIG_SHELL
++           exec "$CONFIG_SHELL" "$0" ${1+"$@"}
++         fi;;
++       esac
++       done
++done
++;;
++  esac
++
++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
++  # uniformly replaced by the line number.  The first 'sed' inserts a
++  # line-number line before each line; the second 'sed' does the real
++  # work.  The second script uses 'N' to pair each line-number line
++  # with the numbered line, and appends trailing '-' during
++  # substitution so that $LINENO is not a special case at line end.
++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
++  sed '=' <$as_myself |
++    sed '
++      N
++      s,$,-,
++      : loop
++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
++      t loop
++      s,-$,,
++      s,^['$as_cr_digits']*\n,,
++    ' >$as_me.lineno &&
++  chmod +x $as_me.lineno ||
++    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
++   { (exit 1); exit 1; }; }
++
++  # Don't try to exec as it changes $[0], causing all sort of problems
++  # (the dirname of $[0] is not the place where we might find the
++  # original and so on.  Autoconf is especially sensible to this).
++  . ./$as_me.lineno
++  # Exit status is that of the last command.
++  exit
++}
++
++
++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
++  *c*,-n*) ECHO_N= ECHO_C='
++' ECHO_T='    ' ;;
++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
++esac
++
++if expr a : '\(a\)' >/dev/null 2>&1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++rm -f conf$$ conf$$.exe conf$$.file
++echo >conf$$.file
++if ln -s conf$$.file conf$$ 2>/dev/null; then
++  # We could just check for DJGPP; but this test a) works b) is more generic
++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
++  if test -f conf$$.exe; then
++    # Don't use ln at all; we don't have any links
++    as_ln_s='cp -p'
++  else
++    as_ln_s='ln -s'
++  fi
++elif ln conf$$.file conf$$ 2>/dev/null; then
++  as_ln_s=ln
++else
++  as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.file
++
++if mkdir -p . 2>/dev/null; then
++  as_mkdir_p=:
++else
++  test -d ./-p && rmdir ./-p
++  as_mkdir_p=false
++fi
++
++as_executable_p="test -f"
++
++# Sed expression to map a string onto a valid CPP name.
++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
++
++# Sed expression to map a string onto a valid variable name.
++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.
++as_nl='
++'
++IFS="         $as_nl"
++
++# CDPATH.
++$as_unset CDPATH
++
++
++# Name of the host.
++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
++# so uname gets run too.
++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
++
++exec 6>&1
++
++#
++# Initializations.
++#
++ac_default_prefix=/usr/local
++ac_config_libobj_dir=.
++cross_compiling=no
++subdirs=
++MFLAGS=
++MAKEFLAGS=
++SHELL=${CONFIG_SHELL-/bin/sh}
++
++# Maximum number of lines to put in a shell here document.
++# This variable seems obsolete.  It should probably be removed, and
++# only ac_max_sed_lines should be used.
++: ${ac_max_here_lines=38}
++
++# Identity of this package.
++PACKAGE_NAME=
++PACKAGE_TARNAME=
++PACKAGE_VERSION=
++PACKAGE_STRING=
++PACKAGE_BUGREPORT=
++
++ac_unique_file="src/lisp.h"
++ac_config_libobj_dir=src
++# Factoring default headers for most tests.
++ac_includes_default="\
++#include <stdio.h>
++#if HAVE_SYS_TYPES_H
++# include <sys/types.h>
++#endif
++#if HAVE_SYS_STAT_H
++# include <sys/stat.h>
++#endif
++#if STDC_HEADERS
++# include <stdlib.h>
++# include <stddef.h>
++#else
++# if HAVE_STDLIB_H
++#  include <stdlib.h>
++# endif
++#endif
++#if HAVE_STRING_H
++# if !STDC_HEADERS && HAVE_MEMORY_H
++#  include <memory.h>
++# endif
++# include <string.h>
++#endif
++#if HAVE_STRINGS_H
++# include <strings.h>
++#endif
++#if HAVE_INTTYPES_H
++# include <inttypes.h>
++#else
++# if HAVE_STDINT_H
++#  include <stdint.h>
++# endif
++#endif
++#if HAVE_UNISTD_H
++# include <unistd.h>
++#endif"
++
++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'
++ac_subst_files=''
++
++# Initialize some variables set by options.
++ac_init_help=
++ac_init_version=false
++# The variables have the same names as the options, with
++# dashes changed to underlines.
++cache_file=/dev/null
++exec_prefix=NONE
++no_create=
++no_recursion=
++prefix=NONE
++program_prefix=NONE
++program_suffix=NONE
++program_transform_name=s,x,x,
++silent=
++site=
++srcdir=
++verbose=
++x_includes=NONE
++x_libraries=NONE
++
++# Installation directory options.
++# These are left unexpanded so users can "make install exec_prefix=/foo"
++# and all the variables that are supposed to be based on exec_prefix
++# by default will actually change.
++# Use braces instead of parens because sh, perl, etc. also accept them.
++bindir='${exec_prefix}/bin'
++sbindir='${exec_prefix}/sbin'
++libexecdir='${exec_prefix}/libexec'
++datadir='${prefix}/share'
++sysconfdir='${prefix}/etc'
++sharedstatedir='${prefix}/com'
++localstatedir='${prefix}/var'
++libdir='${exec_prefix}/lib'
++includedir='${prefix}/include'
++oldincludedir='/usr/include'
++infodir='${prefix}/info'
++mandir='${prefix}/man'
++
++ac_prev=
++for ac_option
++do
++  # If the previous option needs an argument, assign it.
++  if test -n "$ac_prev"; then
++    eval "$ac_prev=\$ac_option"
++    ac_prev=
++    continue
++  fi
++
++  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
++
++  # Accept the important Cygnus configure options, so we can diagnose typos.
++
++  case $ac_option in
++
++  -bindir | --bindir | --bindi | --bind | --bin | --bi)
++    ac_prev=bindir ;;
++  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
++    bindir=$ac_optarg ;;
++
++  -build | --build | --buil | --bui | --bu)
++    ac_prev=build_alias ;;
++  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
++    build_alias=$ac_optarg ;;
++
++  -cache-file | --cache-file | --cache-fil | --cache-fi \
++  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
++    ac_prev=cache_file ;;
++  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
++  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
++    cache_file=$ac_optarg ;;
++
++  --config-cache | -C)
++    cache_file=config.cache ;;
++
++  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
++    ac_prev=datadir ;;
++  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
++  | --da=*)
++    datadir=$ac_optarg ;;
++
++  -disable-* | --disable-*)
++    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
++    # Reject names that are not valid shell variable names.
++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
++   { (exit 1); exit 1; }; }
++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
++    eval "enable_$ac_feature=no" ;;
++
++  -enable-* | --enable-*)
++    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
++    # Reject names that are not valid shell variable names.
++    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
++   { (exit 1); exit 1; }; }
++    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
++    case $ac_option in
++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++      *) ac_optarg=yes ;;
++    esac
++    eval "enable_$ac_feature='$ac_optarg'" ;;
++
++  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
++  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
++  | --exec | --exe | --ex)
++    ac_prev=exec_prefix ;;
++  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
++  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
++  | --exec=* | --exe=* | --ex=*)
++    exec_prefix=$ac_optarg ;;
++
++  -gas | --gas | --ga | --g)
++    # Obsolete; use --with-gas.
++    with_gas=yes ;;
++
++  -help | --help | --hel | --he | -h)
++    ac_init_help=long ;;
++  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
++    ac_init_help=recursive ;;
++  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
++    ac_init_help=short ;;
++
++  -host | --host | --hos | --ho)
++    ac_prev=host_alias ;;
++  -host=* | --host=* | --hos=* | --ho=*)
++    host_alias=$ac_optarg ;;
++
++  -includedir | --includedir | --includedi | --included | --include \
++  | --includ | --inclu | --incl | --inc)
++    ac_prev=includedir ;;
++  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
++  | --includ=* | --inclu=* | --incl=* | --inc=*)
++    includedir=$ac_optarg ;;
++
++  -infodir | --infodir | --infodi | --infod | --info | --inf)
++    ac_prev=infodir ;;
++  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
++    infodir=$ac_optarg ;;
++
++  -libdir | --libdir | --libdi | --libd)
++    ac_prev=libdir ;;
++  -libdir=* | --libdir=* | --libdi=* | --libd=*)
++    libdir=$ac_optarg ;;
++
++  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
++  | --libexe | --libex | --libe)
++    ac_prev=libexecdir ;;
++  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
++  | --libexe=* | --libex=* | --libe=*)
++    libexecdir=$ac_optarg ;;
++
++  -localstatedir | --localstatedir | --localstatedi | --localstated \
++  | --localstate | --localstat | --localsta | --localst \
++  | --locals | --local | --loca | --loc | --lo)
++    ac_prev=localstatedir ;;
++  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
++  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
++  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
++    localstatedir=$ac_optarg ;;
++
++  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
++    ac_prev=mandir ;;
++  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
++    mandir=$ac_optarg ;;
++
++  -nfp | --nfp | --nf)
++    # Obsolete; use --without-fp.
++    with_fp=no ;;
++
++  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
++  | --no-cr | --no-c | -n)
++    no_create=yes ;;
++
++  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
++  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
++    no_recursion=yes ;;
++
++  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
++  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
++  | --oldin | --oldi | --old | --ol | --o)
++    ac_prev=oldincludedir ;;
++  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
++  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
++  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
++    oldincludedir=$ac_optarg ;;
++
++  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
++    ac_prev=prefix ;;
++  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
++    prefix=$ac_optarg ;;
++
++  -program-prefix | --program-prefix | --program-prefi | --program-pref \
++  | --program-pre | --program-pr | --program-p)
++    ac_prev=program_prefix ;;
++  -program-prefix=* | --program-prefix=* | --program-prefi=* \
++  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
++    program_prefix=$ac_optarg ;;
++
++  -program-suffix | --program-suffix | --program-suffi | --program-suff \
++  | --program-suf | --program-su | --program-s)
++    ac_prev=program_suffix ;;
++  -program-suffix=* | --program-suffix=* | --program-suffi=* \
++  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
++    program_suffix=$ac_optarg ;;
++
++  -program-transform-name | --program-transform-name \
++  | --program-transform-nam | --program-transform-na \
++  | --program-transform-n | --program-transform- \
++  | --program-transform | --program-transfor \
++  | --program-transfo | --program-transf \
++  | --program-trans | --program-tran \
++  | --progr-tra | --program-tr | --program-t)
++    ac_prev=program_transform_name ;;
++  -program-transform-name=* | --program-transform-name=* \
++  | --program-transform-nam=* | --program-transform-na=* \
++  | --program-transform-n=* | --program-transform-=* \
++  | --program-transform=* | --program-transfor=* \
++  | --program-transfo=* | --program-transf=* \
++  | --program-trans=* | --program-tran=* \
++  | --progr-tra=* | --program-tr=* | --program-t=*)
++    program_transform_name=$ac_optarg ;;
++
++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++  | -silent | --silent | --silen | --sile | --sil)
++    silent=yes ;;
++
++  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
++    ac_prev=sbindir ;;
++  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
++  | --sbi=* | --sb=*)
++    sbindir=$ac_optarg ;;
++
++  -sharedstatedir | --sharedstatedir | --sharedstatedi \
++  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
++  | --sharedst | --shareds | --shared | --share | --shar \
++  | --sha | --sh)
++    ac_prev=sharedstatedir ;;
++  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
++  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
++  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
++  | --sha=* | --sh=*)
++    sharedstatedir=$ac_optarg ;;
++
++  -site | --site | --sit)
++    ac_prev=site ;;
++  -site=* | --site=* | --sit=*)
++    site=$ac_optarg ;;
++
++  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
++    ac_prev=srcdir ;;
++  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
++    srcdir=$ac_optarg ;;
++
++  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
++  | --syscon | --sysco | --sysc | --sys | --sy)
++    ac_prev=sysconfdir ;;
++  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
++  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
++    sysconfdir=$ac_optarg ;;
++
++  -target | --target | --targe | --targ | --tar | --ta | --t)
++    ac_prev=target_alias ;;
++  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
++    target_alias=$ac_optarg ;;
++
++  -v | -verbose | --verbose | --verbos | --verbo | --verb)
++    verbose=yes ;;
++
++  -version | --version | --versio | --versi | --vers | -V)
++    ac_init_version=: ;;
++
++  -with-* | --with-*)
++    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
++    # Reject names that are not valid shell variable names.
++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++      { echo "$as_me: error: invalid package name: $ac_package" >&2
++   { (exit 1); exit 1; }; }
++    ac_package=`echo $ac_package| sed 's/-/_/g'`
++    case $ac_option in
++      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
++      *) ac_optarg=yes ;;
++    esac
++    eval "with_$ac_package='$ac_optarg'" ;;
++
++  -without-* | --without-*)
++    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
++    # Reject names that are not valid shell variable names.
++    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
++      { echo "$as_me: error: invalid package name: $ac_package" >&2
++   { (exit 1); exit 1; }; }
++    ac_package=`echo $ac_package | sed 's/-/_/g'`
++    eval "with_$ac_package=no" ;;
++
++  --x)
++    # Obsolete; use --with-x.
++    with_x=yes ;;
++
++  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
++  | --x-incl | --x-inc | --x-in | --x-i)
++    ac_prev=x_includes ;;
++  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
++  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
++    x_includes=$ac_optarg ;;
++
++  -x-libraries | --x-libraries | --x-librarie | --x-librari \
++  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
++    ac_prev=x_libraries ;;
++  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
++  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
++    x_libraries=$ac_optarg ;;
++
++  -*) { echo "$as_me: error: unrecognized option: $ac_option
++Try \`$0 --help' for more information." >&2
++   { (exit 1); exit 1; }; }
++    ;;
++
++  *=*)
++    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
++    # Reject names that are not valid shell variable names.
++    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
++      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
++   { (exit 1); exit 1; }; }
++    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
++    eval "$ac_envvar='$ac_optarg'"
++    export $ac_envvar ;;
++
++  *)
++    # FIXME: should be removed in autoconf 3.0.
++    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
++    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
++      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
++    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
++    ;;
++
++  esac
++done
++
++if test -n "$ac_prev"; then
++  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
++  { echo "$as_me: error: missing argument to $ac_option" >&2
++   { (exit 1); exit 1; }; }
++fi
++
++# Be sure to have absolute paths.
++for ac_var in exec_prefix prefix
++do
++  eval ac_val=$`echo $ac_var`
++  case $ac_val in
++    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
++   { (exit 1); exit 1; }; };;
++  esac
++done
++
++# Be sure to have absolute paths.
++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
++            localstatedir libdir includedir oldincludedir infodir mandir
++do
++  eval ac_val=$`echo $ac_var`
++  case $ac_val in
++    [\\/$]* | ?:[\\/]* ) ;;
++    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
++   { (exit 1); exit 1; }; };;
++  esac
++done
++
++# There might be people who depend on the old broken behavior: `$host'
++# used to hold the argument of --host etc.
++# FIXME: To remove some day.
++build=$build_alias
++host=$host_alias
++target=$target_alias
++
++# FIXME: To remove some day.
++if test "x$host_alias" != x; then
++  if test "x$build_alias" = x; then
++    cross_compiling=maybe
++    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
++    If a cross compiler is detected then cross compile mode will be used." >&2
++  elif test "x$build_alias" != "x$host_alias"; then
++    cross_compiling=yes
++  fi
++fi
++
++ac_tool_prefix=
++test -n "$host_alias" && ac_tool_prefix=$host_alias-
++
++test "$silent" = yes && exec 6>/dev/null
++
++
++# Find the source files, if location was not specified.
++if test -z "$srcdir"; then
++  ac_srcdir_defaulted=yes
++  # Try the directory containing this script, then its parent.
++  ac_confdir=`(dirname "$0") 2>/dev/null ||
++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$0" : 'X\(//\)[^/]' \| \
++       X"$0" : 'X\(//\)$' \| \
++       X"$0" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$0" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++  srcdir=$ac_confdir
++  if test ! -r $srcdir/$ac_unique_file; then
++    srcdir=..
++  fi
++else
++  ac_srcdir_defaulted=no
++fi
++if test ! -r $srcdir/$ac_unique_file; then
++  if test "$ac_srcdir_defaulted" = yes; then
++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
++   { (exit 1); exit 1; }; }
++  else
++    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
++   { (exit 1); exit 1; }; }
++  fi
++fi
++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
++  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
++   { (exit 1); exit 1; }; }
++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
++ac_env_build_alias_set=${build_alias+set}
++ac_env_build_alias_value=$build_alias
++ac_cv_env_build_alias_set=${build_alias+set}
++ac_cv_env_build_alias_value=$build_alias
++ac_env_host_alias_set=${host_alias+set}
++ac_env_host_alias_value=$host_alias
++ac_cv_env_host_alias_set=${host_alias+set}
++ac_cv_env_host_alias_value=$host_alias
++ac_env_target_alias_set=${target_alias+set}
++ac_env_target_alias_value=$target_alias
++ac_cv_env_target_alias_set=${target_alias+set}
++ac_cv_env_target_alias_value=$target_alias
++ac_env_CC_set=${CC+set}
++ac_env_CC_value=$CC
++ac_cv_env_CC_set=${CC+set}
++ac_cv_env_CC_value=$CC
++ac_env_CFLAGS_set=${CFLAGS+set}
++ac_env_CFLAGS_value=$CFLAGS
++ac_cv_env_CFLAGS_set=${CFLAGS+set}
++ac_cv_env_CFLAGS_value=$CFLAGS
++ac_env_LDFLAGS_set=${LDFLAGS+set}
++ac_env_LDFLAGS_value=$LDFLAGS
++ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
++ac_cv_env_LDFLAGS_value=$LDFLAGS
++ac_env_CPPFLAGS_set=${CPPFLAGS+set}
++ac_env_CPPFLAGS_value=$CPPFLAGS
++ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
++ac_cv_env_CPPFLAGS_value=$CPPFLAGS
++ac_env_CPP_set=${CPP+set}
++ac_env_CPP_value=$CPP
++ac_cv_env_CPP_set=${CPP+set}
++ac_cv_env_CPP_value=$CPP
++
++#
++# Report the --help message.
++#
++if test "$ac_init_help" = "long"; then
++  # Omit some internal or obsolete options to make the list less imposing.
++  # This message is too long to be a string in the A/UX 3.1 sh.
++  cat <<_ACEOF
++\`configure' configures this package to adapt to many kinds of systems.
++
++Usage: $0 [OPTION]... [VAR=VALUE]...
++
++To assign environment variables (e.g., CC, CFLAGS...), specify them as
++VAR=VALUE.  See below for descriptions of some of the useful variables.
++
++Defaults for the options are specified in brackets.
++
++Configuration:
++  -h, --help              display this help and exit
++      --help=short        display options specific to this package
++      --help=recursive    display the short help of all the included packages
++  -V, --version           display version information and exit
++  -q, --quiet, --silent   do not print \`checking...' messages
++      --cache-file=FILE   cache test results in FILE [disabled]
++  -C, --config-cache      alias for \`--cache-file=config.cache'
++  -n, --no-create         do not create output files
++      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
++
++_ACEOF
++
++  cat <<_ACEOF
++Installation directories:
++  --prefix=PREFIX         install architecture-independent files in PREFIX
++                        [$ac_default_prefix]
++  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
++                        [PREFIX]
++
++By default, \`make install' will install all the files in
++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
++an installation prefix other than \`$ac_default_prefix' using \`--prefix',
++for instance \`--prefix=\$HOME'.
++
++For better control, use the options below.
++
++Fine tuning of the installation directories:
++  --bindir=DIR           user executables [EPREFIX/bin]
++  --sbindir=DIR          system admin executables [EPREFIX/sbin]
++  --libexecdir=DIR       program executables [EPREFIX/libexec]
++  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
++  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
++  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
++  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
++  --libdir=DIR           object code libraries [EPREFIX/lib]
++  --includedir=DIR       C header files [PREFIX/include]
++  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
++  --infodir=DIR          info documentation [PREFIX/info]
++  --mandir=DIR           man documentation [PREFIX/man]
++_ACEOF
++
++  cat <<\_ACEOF
++
++X features:
++  --x-includes=DIR    X include files are in DIR
++  --x-libraries=DIR   X library files are in DIR
++
++System types:
++  --build=BUILD     configure for building on BUILD [guessed]
++  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
++_ACEOF
++fi
++
++if test -n "$ac_init_help"; then
++
++  cat <<\_ACEOF
++
++Optional Features:
++  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
++  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
++  --disable-largefile     omit support for large files
++
++Optional Packages:
++  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
++  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
++  --without-gcc           don't use GCC to compile Emacs if GCC is found
++  --without-pop           don't support POP mail retrieval with movemail
++  --with-kerberos         support Kerberos-authenticated POP
++  --with-kerberos5        support Kerberos version 5 authenticated POP
++  --with-hesiod           support Hesiod to get the POP server host
++  --with-mail-spool-directory=DIR   system mail spool is DIR
++  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)
++  --with-xpm              use -lXpm for displaying XPM images
++  --with-jpeg             use -ljpeg for displaying JPEG images
++  --with-tiff             use -ltiff for displaying TIFF images
++  --with-gif              use -lungif for displaying GIF images
++  --with-png              use -lpng for displaying PNG images
++  --without-toolkit-scroll-bars
++                          don't use Motif or Xaw3d scroll bars
++  --without-xim           don't use X11 XIM
++  --with-x                use the X Window System
++
++Some influential environment variables:
++  CC          C compiler command
++  CFLAGS      C compiler flags
++  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
++              nonstandard directory <lib dir>
++  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
++              headers in a nonstandard directory <include dir>
++  CPP         C preprocessor
++
++Use these variables to override the choices made by `configure' or to help
++it to find libraries and programs with nonstandard names/locations.
++
++_ACEOF
++fi
++
++if test "$ac_init_help" = "recursive"; then
++  # If there are subdirs, report their specific --help.
++  ac_popdir=`pwd`
++  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
++    test -d $ac_dir || continue
++    ac_builddir=.
++
++if test "$ac_dir" != .; then
++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++  # A "../" for each directory in $ac_dir_suffix.
++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++  ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++  .)  # No --srcdir option.  We are building in place.
++    ac_srcdir=.
++    if test -z "$ac_top_builddir"; then
++       ac_top_srcdir=.
++    else
++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++    fi ;;
++  [\\/]* | ?:[\\/]* )  # Absolute path.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir ;;
++  *) # Relative path.
++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++
++# Do not use `cd foo && pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir="$ac_dir";;
++*)
++  case "$ac_dir" in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac
++
++    cd $ac_dir
++    # Check for guested configure; otherwise get Cygnus style configure.
++    if test -f $ac_srcdir/configure.gnu; then
++      echo
++      $SHELL $ac_srcdir/configure.gnu  --help=recursive
++    elif test -f $ac_srcdir/configure; then
++      echo
++      $SHELL $ac_srcdir/configure  --help=recursive
++    elif test -f $ac_srcdir/configure.ac ||
++         test -f $ac_srcdir/configure.in; then
++      echo
++      $ac_configure --help
++    else
++      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
++    fi
++    cd "$ac_popdir"
++  done
++fi
++
++test -n "$ac_init_help" && exit 0
++if $ac_init_version; then
++  cat <<\_ACEOF
++
++Copyright (C) 2003 Free Software Foundation, Inc.
++This configure script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it.
++_ACEOF
++  exit 0
++fi
++exec 5>config.log
++cat >&5 <<_ACEOF
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by $as_me, which was
++generated by GNU Autoconf 2.59.  Invocation command line was
++
++  $ $0 $@
++
++_ACEOF
++{
++cat <<_ASUNAME
++## --------- ##
++## Platform. ##
++## --------- ##
++
++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
++uname -m = `(uname -m) 2>/dev/null || echo unknown`
++uname -r = `(uname -r) 2>/dev/null || echo unknown`
++uname -s = `(uname -s) 2>/dev/null || echo unknown`
++uname -v = `(uname -v) 2>/dev/null || echo unknown`
++
++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
++/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
++
++/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
++/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
++hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
++/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
++/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
++/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
++
++_ASUNAME
++
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  echo "PATH: $as_dir"
++done
++
++} >&5
++
++cat >&5 <<_ACEOF
++
++
++## ----------- ##
++## Core tests. ##
++## ----------- ##
++
++_ACEOF
++
++
++# Keep a trace of the command line.
++# Strip out --no-create and --no-recursion so they do not pile up.
++# Strip out --silent because we don't want to record it for future runs.
++# Also quote any args containing shell meta-characters.
++# Make two passes to allow for proper duplicate-argument suppression.
++ac_configure_args=
++ac_configure_args0=
++ac_configure_args1=
++ac_sep=
++ac_must_keep_next=false
++for ac_pass in 1 2
++do
++  for ac_arg
++  do
++    case $ac_arg in
++    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
++    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++    | -silent | --silent | --silen | --sile | --sil)
++      continue ;;
++    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
++      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
++    esac
++    case $ac_pass in
++    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
++    2)
++      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
++      if test $ac_must_keep_next = true; then
++      ac_must_keep_next=false # Got value, back to normal.
++      else
++      case $ac_arg in
++        *=* | --config-cache | -C | -disable-* | --disable-* \
++        | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
++        | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
++        | -with-* | --with-* | -without-* | --without-* | --x)
++          case "$ac_configure_args0 " in
++            "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
++          esac
++          ;;
++        -* ) ac_must_keep_next=true ;;
++      esac
++      fi
++      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
++      # Get rid of the leading space.
++      ac_sep=" "
++      ;;
++    esac
++  done
++done
++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
++
++# When interrupted or exit'd, cleanup temporary files, and complete
++# config.log.  We remove comments because anyway the quotes in there
++# would cause problems or look ugly.
++# WARNING: Be sure not to use single quotes in there, as some shells,
++# such as our DU 5.0 friend, will then `close' the trap.
++trap 'exit_status=$?
++  # Save into config.log some information that might help in debugging.
++  {
++    echo
++
++    cat <<\_ASBOX
++## ---------------- ##
++## Cache variables. ##
++## ---------------- ##
++_ASBOX
++    echo
++    # The following way of writing the cache mishandles newlines in values,
++{
++  (set) 2>&1 |
++    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
++    *ac_space=\ *)
++      sed -n \
++      "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
++        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
++      ;;
++    *)
++      sed -n \
++      "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
++      ;;
++    esac;
++}
++    echo
++
++    cat <<\_ASBOX
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++_ASBOX
++    echo
++    for ac_var in $ac_subst_vars
++    do
++      eval ac_val=$`echo $ac_var`
++      echo "$ac_var='"'"'$ac_val'"'"'"
++    done | sort
++    echo
++
++    if test -n "$ac_subst_files"; then
++      cat <<\_ASBOX
++## ------------- ##
++## Output files. ##
++## ------------- ##
++_ASBOX
++      echo
++      for ac_var in $ac_subst_files
++      do
++      eval ac_val=$`echo $ac_var`
++      echo "$ac_var='"'"'$ac_val'"'"'"
++      done | sort
++      echo
++    fi
++
++    if test -s confdefs.h; then
++      cat <<\_ASBOX
++## ----------- ##
++## confdefs.h. ##
++## ----------- ##
++_ASBOX
++      echo
++      sed "/^$/d" confdefs.h | sort
++      echo
++    fi
++    test "$ac_signal" != 0 &&
++      echo "$as_me: caught signal $ac_signal"
++    echo "$as_me: exit $exit_status"
++  } >&5
++  rm -f core *.core &&
++  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
++    exit $exit_status
++     ' 0
++for ac_signal in 1 2 13 15; do
++  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
++done
++ac_signal=0
++
++# confdefs.h avoids OS command line length limits that DEFS can exceed.
++rm -rf conftest* confdefs.h
++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
++echo >confdefs.h
++
++# Predefined preprocessor variables.
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_NAME "$PACKAGE_NAME"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_VERSION "$PACKAGE_VERSION"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_STRING "$PACKAGE_STRING"
++_ACEOF
++
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
++_ACEOF
++
++
++# Let the site file select an alternate cache file if it wants to.
++# Prefer explicitly selected file to automatically selected ones.
++if test -z "$CONFIG_SITE"; then
++  if test "x$prefix" != xNONE; then
++    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
++  else
++    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
++  fi
++fi
++for ac_site_file in $CONFIG_SITE; do
++  if test -r "$ac_site_file"; then
++    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
++echo "$as_me: loading site script $ac_site_file" >&6;}
++    sed 's/^/| /' "$ac_site_file" >&5
++    . "$ac_site_file"
++  fi
++done
++
++if test -r "$cache_file"; then
++  # Some versions of bash will fail to source /dev/null (special
++  # files actually), so we avoid doing that.
++  if test -f "$cache_file"; then
++    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
++echo "$as_me: loading cache $cache_file" >&6;}
++    case $cache_file in
++      [\\/]* | ?:[\\/]* ) . $cache_file;;
++      *)                      . ./$cache_file;;
++    esac
++  fi
++else
++  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
++echo "$as_me: creating cache $cache_file" >&6;}
++  >$cache_file
++fi
++
++# Check that the precious variables saved in the cache have kept the same
++# value.
++ac_cache_corrupted=false
++for ac_var in `(set) 2>&1 |
++             sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
++  eval ac_old_set=\$ac_cv_env_${ac_var}_set
++  eval ac_new_set=\$ac_env_${ac_var}_set
++  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
++  eval ac_new_val="\$ac_env_${ac_var}_value"
++  case $ac_old_set,$ac_new_set in
++    set,)
++      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
++      ac_cache_corrupted=: ;;
++    ,set)
++      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
++      ac_cache_corrupted=: ;;
++    ,);;
++    *)
++      if test "x$ac_old_val" != "x$ac_new_val"; then
++      { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
++      { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
++echo "$as_me:   former value:  $ac_old_val" >&2;}
++      { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
++echo "$as_me:   current value: $ac_new_val" >&2;}
++      ac_cache_corrupted=:
++      fi;;
++  esac
++  # Pass precious variables to config.status.
++  if test "$ac_new_set" = set; then
++    case $ac_new_val in
++    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
++      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
++    *) ac_arg=$ac_var=$ac_new_val ;;
++    esac
++    case " $ac_configure_args " in
++      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
++      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
++    esac
++  fi
++done
++if $ac_cache_corrupted; then
++  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
++echo "$as_me: error: changes in the environment can compromise the build" >&2;}
++  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++          ac_config_headers="$ac_config_headers src/config.h:src/config.in"
++
++
++
++lispdir='${datadir}/emacs/${version}/lisp'
++locallisppath='${datadir}/emacs/${version}/site-lisp:'\
++'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
++lisppath='${locallisppath}:${lispdir}'
++etcdir='${datadir}/emacs/${version}/etc'
++archlibdir='${libexecdir}/emacs/${version}/${configuration}'
++docdir='${datadir}/emacs/${version}/etc'
++
++
++# Check whether --with-gcc or --without-gcc was given.
++if test "${with_gcc+set}" = set; then
++  withval="$with_gcc"
++
++fi;
++
++# Check whether --with-pop or --without-pop was given.
++if test "${with_pop+set}" = set; then
++  withval="$with_pop"
++  if test "$withval" = yes; then
++   cat >>confdefs.h <<\_ACEOF
++#define MAIL_USE_POP 1
++_ACEOF
++
++else :
++fi
++else
++  cat >>confdefs.h <<\_ACEOF
++#define MAIL_USE_POP 1
++_ACEOF
++
++fi;
++
++# Check whether --with-kerberos or --without-kerberos was given.
++if test "${with_kerberos+set}" = set; then
++  withval="$with_kerberos"
++  cat >>confdefs.h <<\_ACEOF
++#define KERBEROS 1
++_ACEOF
++
++fi;
++
++# Check whether --with-kerberos5 or --without-kerberos5 was given.
++if test "${with_kerberos5+set}" = set; then
++  withval="$with_kerberos5"
++  if test "${with_kerberos5+set}" = set; then
++  if test "${with_kerberos+set}" != set; then
++    with_kerberos=yes
++    cat >>confdefs.h <<\_ACEOF
++#define KERBEROS 1
++_ACEOF
++
++  fi
++fi
++cat >>confdefs.h <<\_ACEOF
++#define KERBEROS5 1
++_ACEOF
++
++fi;
++
++# Check whether --with-hesiod or --without-hesiod was given.
++if test "${with_hesiod+set}" = set; then
++  withval="$with_hesiod"
++  cat >>confdefs.h <<\_ACEOF
++#define HESIOD 1
++_ACEOF
++
++fi;
++
++# Check whether --with-mail-spool-directory or --without-mail-spool-directory was given.
++if test "${with_mail_spool_directory+set}" = set; then
++  withval="$with_mail_spool_directory"
++  cat >>confdefs.h <<_ACEOF
++#define USE_MAIL_SPOOL_DIRECTORY "${withval}"
++_ACEOF
++
++fi;
++
++# Check whether --with-x-toolkit or --without-x-toolkit was given.
++if test "${with_x_toolkit+set}" = set; then
++  withval="$with_x_toolkit"
++        case "${withval}" in
++          y | ye | yes )      val=athena ;;
++          n | no )            val=no  ;;
++          l | lu | luc | luci | lucid )       val=lucid ;;
++          a | at | ath | athe | athen | athena )      val=athena ;;
++          m | mo | mot | moti | motif )       val=motif ;;
++          * )
++{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
++this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
++echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
++this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
++Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
++   { (exit 1); exit 1; }; }
++          ;;
++        esac
++        with_x_toolkit=$val
++
++fi;
++
++# Check whether --with-xpm or --without-xpm was given.
++if test "${with_xpm+set}" = set; then
++  withval="$with_xpm"
++
++fi;
++
++# Check whether --with-jpeg or --without-jpeg was given.
++if test "${with_jpeg+set}" = set; then
++  withval="$with_jpeg"
++
++fi;
++
++# Check whether --with-tiff or --without-tiff was given.
++if test "${with_tiff+set}" = set; then
++  withval="$with_tiff"
++
++fi;
++
++# Check whether --with-gif or --without-gif was given.
++if test "${with_gif+set}" = set; then
++  withval="$with_gif"
++
++fi;
++
++# Check whether --with-png or --without-png was given.
++if test "${with_png+set}" = set; then
++  withval="$with_png"
++
++fi;
++
++# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
++if test "${with_toolkit_scroll_bars+set}" = set; then
++  withval="$with_toolkit_scroll_bars"
++
++fi;
++
++# Check whether --with-xim or --without-xim was given.
++if test "${with_xim+set}" = set; then
++  withval="$with_xim"
++
++fi;
++
++#### Make srcdir absolute, if it isn't already.  It's important to
++#### avoid running the path through pwd unnecessarily, since pwd can
++#### give you automounter prefixes, which can go away.  We do all this
++#### so Emacs can find its files when run uninstalled.
++## Make sure CDPATH doesn't affect cd (in case PWD is relative).
++unset CDPATH
++case "${srcdir}" in
++  /* ) ;;
++  . )
++    ## We may be able to use the $PWD environment variable to make this
++    ## absolute.  But sometimes PWD is inaccurate.
++    if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}"  ;
++    then
++      srcdir="$PWD"
++    else
++      srcdir="`(cd ${srcdir}; pwd)`"
++    fi
++  ;;
++  *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
++esac
++
++#### Check if the source directory already has a configured system in it.
++if test `pwd` != `(cd ${srcdir} && pwd)` \
++   && test -f "${srcdir}/src/config.h" ; then
++  { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
++   as a build directory right now; it has been configured in its own
++   right.  To configure in another directory as well, you MUST
++   use GNU make.  If you do not have GNU make, then you must
++   now do \`make distclean' in ${srcdir},
++   and then run $0 again." >&5
++echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
++   as a build directory right now; it has been configured in its own
++   right.  To configure in another directory as well, you MUST
++   use GNU make.  If you do not have GNU make, then you must
++   now do \`make distclean' in ${srcdir},
++   and then run $0 again." >&2;}
++
++  extrasub='/^VPATH[   ]*=/c\
++vpath %.c $(srcdir)\
++vpath %.h $(srcdir)\
++vpath %.y $(srcdir)\
++vpath %.l $(srcdir)\
++vpath %.s $(srcdir)\
++vpath %.in $(srcdir)\
++vpath %.texi $(srcdir)'
++fi
++
++#### Given the configuration name, set machfile and opsysfile to the
++#### names of the m/*.h and s/*.h files we should use.
++
++### Canonicalize the configuration name.
++
++ac_aux_dir=
++for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
++  if test -f $ac_dir/install-sh; then
++    ac_aux_dir=$ac_dir
++    ac_install_sh="$ac_aux_dir/install-sh -c"
++    break
++  elif test -f $ac_dir/install.sh; then
++    ac_aux_dir=$ac_dir
++    ac_install_sh="$ac_aux_dir/install.sh -c"
++    break
++  elif test -f $ac_dir/shtool; then
++    ac_aux_dir=$ac_dir
++    ac_install_sh="$ac_aux_dir/shtool install -c"
++    break
++  fi
++done
++if test -z "$ac_aux_dir"; then
++  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
++echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++ac_config_guess="$SHELL $ac_aux_dir/config.guess"
++ac_config_sub="$SHELL $ac_aux_dir/config.sub"
++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
++
++# Make sure we can run config.sub.
++$ac_config_sub sun4 >/dev/null 2>&1 ||
++  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
++echo "$as_me: error: cannot run $ac_config_sub" >&2;}
++   { (exit 1); exit 1; }; }
++
++echo "$as_me:$LINENO: checking build system type" >&5
++echo $ECHO_N "checking build system type... $ECHO_C" >&6
++if test "${ac_cv_build+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_build_alias=$build_alias
++test -z "$ac_cv_build_alias" &&
++  ac_cv_build_alias=`$ac_config_guess`
++test -z "$ac_cv_build_alias" &&
++  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
++echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
++   { (exit 1); exit 1; }; }
++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
++   { (exit 1); exit 1; }; }
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_build" >&5
++echo "${ECHO_T}$ac_cv_build" >&6
++build=$ac_cv_build
++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++
++
++echo "$as_me:$LINENO: checking host system type" >&5
++echo $ECHO_N "checking host system type... $ECHO_C" >&6
++if test "${ac_cv_host+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_host_alias=$host_alias
++test -z "$ac_cv_host_alias" &&
++  ac_cv_host_alias=$ac_cv_build_alias
++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
++  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
++   { (exit 1); exit 1; }; }
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_host" >&5
++echo "${ECHO_T}$ac_cv_host" >&6
++host=$ac_cv_host
++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
++
++
++canonical=$host
++configuration=$host_alias
++
++
++### If you add support for a new configuration, add code to this
++### switch statement to recognize your configuration name and select
++### the appropriate operating system and machine description files.
++
++### You would hope that you could choose an m/*.h file pretty much
++### based on the machine portion of the configuration name, and an s-
++### file based on the operating system portion.  However, it turns out
++### that each m/*.h file is pretty manufacturer-specific - for
++### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
++### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
++### machines.  So we basically have to have a special case for each
++### configuration name.
++###
++### As far as handling version numbers on operating systems is
++### concerned, make sure things will fail in a fixable way.  If
++### /etc/MACHINES doesn't say anything about version numbers, be
++### prepared to handle anything reasonably.  If version numbers
++### matter, be sure /etc/MACHINES says something about it.
++###
++### Eric Raymond says we should accept strings like "sysvr4" to mean
++### "System V Release 4"; he writes, "The old convention encouraged
++### confusion between `system' and `release' levels'."
++
++machine='' opsys='' unported=no
++case "${canonical}" in
++
++  ## NetBSD ports
++  *-*-netbsd* )
++    opsys=netbsd
++    case "${canonical}" in
++      alpha*-*-netbsd*)       machine=alpha ;;
++      i[3456]86-*-netbsd*) machine=intel386 ;;
++      m68k-*-netbsd*)
++                      # This is somewhat bogus.
++                      machine=hp9000s300 ;;
++      powerpc-apple-netbsd*) machine=macppc ;;
++      mips-*-netbsd*) machine=pmax ;;
++      mipsel-*-netbsd*)       machine=pmax ;;
++      ns32k-*-netbsd*)        machine=ns32000 ;;
++      powerpc-*-netbsd*) machine=macppc ;;
++      sparc*-*-netbsd*)       machine=sparc ;;
++      vax-*-netbsd*)  machine=vax ;;
++      arm-*-netbsd*)  machine=arm ;;
++    esac
++  ;;
++
++  ## OpenBSD ports
++  *-*-openbsd* )
++    opsys=openbsd
++    case "${canonical}" in
++      alpha*-*-openbsd*)      machine=alpha ;;
++      i386-*-openbsd*)        machine=intel386 ;;
++      m68k-*-openbsd*)  machine=hp9000s300 ;;
++      mipsel-*-openbsd*) machine=pmax ;;
++      ns32k-*-openbsd*)       machine=ns32000 ;;
++      sparc-*-openbsd*)       machine=sparc ;;
++      vax-*-openbsd*) machine=vax ;;
++    esac
++  ;;
++
++  ## Acorn RISCiX:
++  arm-acorn-riscix1.1* )
++    machine=acorn opsys=riscix1-1
++  ;;
++  arm-acorn-riscix1.2* | arm-acorn-riscix )
++    ## This name is riscix12 instead of riscix1.2
++    ## to avoid a file name conflict on MSDOS.
++    machine=acorn opsys=riscix12
++  ;;
++
++  ## BSDI ports
++  *-*-bsdi* )
++    opsys=bsdi
++    case "${canonical}" in
++      i[345]86-*-bsdi*) machine=intel386 ;;
++      sparc-*-bsdi*)  machine=sparc ;;
++      powerpc-*-bsdi*)  machine=macppc ;;
++    esac
++    case "${canonical}" in
++      *-*-bsd386* | *-*-bsdi1* )      opsys=bsd386 ;;
++      *-*-bsdi2.0* )          opsys=bsdos2 ;;
++      *-*-bsdi2* )            opsys=bsdos2-1 ;;
++      *-*-bsdi3* )            opsys=bsdos3 ;;
++      *-*-bsdi[45]* )         opsys=bsdos4 ;;
++    esac
++  ;;
++
++  ## Alliant machines
++  ## Strictly speaking, we need the version of the alliant operating
++  ## system to choose the right machine file, but currently the
++  ## configuration name doesn't tell us enough to choose the right
++  ## one; we need to give alliants their own operating system name to
++  ## do this right.  When someone cares, they can help us.
++  fx80-alliant-* )
++    machine=alliant4 opsys=bsd4-2
++  ;;
++  i860-alliant-* )
++    machine=alliant-2800 opsys=bsd4-3
++  ;;
++
++  ## Alpha (DEC) machines.
++  alpha*-dec-osf* )
++    machine=alpha opsys=osf1
++    # This is needed to find X11R6.1 libraries for certain tests.
++    NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
++    GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
++    # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
++    # due to non-traditional preprocessing with the current compiler
++    # defaults.  OSF 4 can also have that compiler version, and there
++    # seems always to have been a usable /usr/bin/cpp.
++    NON_GNU_CPP=/usr/bin/cpp
++    case "${canonical}" in
++    alpha*-dec-osf[5-9]*)
++      opsys=osf5-0 ;;
++    esac
++  ;;
++
++  alpha*-*-linux-gnu* )
++    machine=alpha opsys=gnu-linux
++  ;;
++
++  arm*-*-linux-gnu* )
++    machine=arm opsys=gnu-linux
++  ;;
++
++  ppc-*-linux | \
++  powerpc-*-linux* )
++    machine=macppc opsys=gnu-linux
++  ;;
++
++  ## Altos 3068
++  m68*-altos-sysv* )
++    machine=altos opsys=usg5-2
++  ;;
++
++  ## Amdahl UTS
++  580-amdahl-sysv* )
++    machine=amdahl opsys=usg5-2-2
++  ;;
++
++  ## Apollo, Domain/OS
++  m68*-apollo-* )
++    machine=apollo opsys=bsd4-3
++  ;;
++
++  ## AT&T 3b2, 3b5, 3b15, 3b20
++  we32k-att-sysv* )
++    machine=att3b opsys=usg5-2-2
++  ;;
++
++  ## AT&T 3b1 - The Mighty Unix PC!
++  m68*-att-sysv* )
++    machine=7300 opsys=usg5-2-2
++  ;;
++
++  ## Bull dpx20
++  rs6000-bull-bosx* )
++    machine=ibmrs6000 opsys=aix3-2
++  ;;
++
++  ## Bull dpx2
++  m68*-bull-sysv3* )
++    machine=dpx2 opsys=usg5-3
++  ;;
++
++  ## Bull sps7
++  m68*-bull-sysv2* )
++    machine=sps7 opsys=usg5-2
++  ;;
++
++  ## CCI 5/32, 6/32 -- see "Tahoe".
++
++  ## Celerity
++  ## I don't know what configuration name to use for this; config.sub
++  ## doesn't seem to know anything about it.  Hey, Celerity users, get
++  ## in touch with us!
++  celerity-celerity-bsd* )
++    machine=celerity opsys=bsd4-2
++  ;;
++
++  ## Clipper
++  ## What operating systems does this chip run that Emacs has been
++  ## tested on?
++  clipper-* )
++    machine=clipper
++    ## We'll use the catch-all code at the bottom to guess the
++    ## operating system.
++  ;;
++
++  ## Convex
++  *-convex-bsd* | *-convex-convexos* )
++    machine=convex opsys=bsd4-3
++    ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
++    NON_GNU_CPP="cc -E -P"
++  ;;
++
++  ## Cubix QBx/386
++  i[3456]86-cubix-sysv* )
++    machine=intel386 opsys=usg5-3
++  ;;
++
++  ## Cydra 5
++  cydra*-cydrome-sysv* )
++    machine=cydra5 opsys=usg5-3
++  ;;
++
++  ## Data General AViiON Machines
++  ## DG changed naming conventions with the release of 5.4.4.10, they
++  ## dropped the initial 5.4 but left the intervening R.  Because of the
++  ## R this shouldn't conflict with older versions of the OS (which I
++  ## think were named like dgux4.*). In addition, DG new AViiONs series
++  ## uses either Motorola M88k or Intel Pentium CPUs.
++  m88k-dg-dguxR4.* | m88k-dg-dgux4* )
++    machine=aviion opsys=dgux4
++  ;;
++  m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
++    ## This name is dgux5-4-3 instead of dgux5-4r3
++    ## to avoid a file name conflict on MSDOS.
++    machine=aviion opsys=dgux5-4-3
++  ;;
++  m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
++    machine=aviion opsys=dgux5-4r2
++  ;;
++  m88k-dg-dgux* )
++    machine=aviion opsys=dgux
++  ;;
++
++  ## Data General AViiON Intel (x86) Machines
++  ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
++  ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
++  i[345]86-dg-dguxR4* )
++    machine=aviion-intel opsys=dgux4
++  ;;
++
++  ## DECstations
++  mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
++    machine=pmax opsys=bsd4-2
++  ;;
++  mips-dec-ultrix4.[12]* | mips-dec-bsd* )
++    machine=pmax opsys=bsd4-3
++  ;;
++  mips-dec-ultrix* )
++    machine=pmax opsys=ultrix4-3
++  ;;
++  mips-dec-osf* )
++    machine=pmax opsys=osf1
++  ;;
++  mips-dec-mach_bsd4.3* )
++    machine=pmax opsys=mach-bsd4-3
++  ;;
++
++  ## Motorola Delta machines
++  m68k-motorola-sysv* | m68000-motorola-sysv* )
++    machine=delta opsys=usg5-3
++    if test -z "`type gnucc | grep 'not found'`"
++    then
++      if test -s /etc/167config
++      then CC="gnucc -m68040"
++      else CC="gnucc -m68881"
++      fi
++    else
++      if test -z "`type gcc | grep 'not found'`"
++      then CC=gcc
++      else CC=cc
++      fi
++    fi
++  ;;
++  m88k-motorola-sysv4* )
++    # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
++    # needs POSIX_SIGNALS and therefore needs usg5-4-2.
++    # I hope there are not other 4.0 versions for this machine
++    # which really need usg5-4 instead.
++    machine=delta88k opsys=usg5-4-2
++  ;;
++  m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
++    machine=delta88k opsys=usg5-3
++  ;;
++
++  ## Dual machines
++  m68*-dual-sysv* )
++    machine=dual opsys=usg5-2
++  ;;
++  m68*-dual-uniplus* )
++    machine=dual opsys=unipl5-2
++  ;;
++
++  ## Elxsi 6400
++  elxsi-elxsi-sysv* )
++    machine=elxsi opsys=usg5-2
++  ;;
++
++  ## Encore machines
++  ns16k-encore-bsd* )
++    machine=ns16000 opsys=umax
++  ;;
++
++  ## The GEC 63 - apparently, this port isn't really finished yet.
++  #  I'm sure we finished off the last of the machines, though.  -- fx
++
++  ## Gould Power Node and NP1
++  pn-gould-bsd4.2* )
++    machine=gould opsys=bsd4-2
++  ;;
++  pn-gould-bsd4.3* )
++    machine=gould opsys=bsd4-3
++  ;;
++  np1-gould-bsd* )
++    machine=gould-np1 opsys=bsd4-3
++  ;;
++
++  ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
++  ## as far as Emacs is concerned).
++  m88k-harris-cxux* )
++    # Build needs to be different on 7.0 and later releases
++    case "`uname -r`" in
++       [56].[0-9] ) machine=nh4000 opsys=cxux ;;
++       [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
++    esac
++    NON_GNU_CPP="/lib/cpp"
++  ;;
++  ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
++  m68k-harris-cxux* )
++    machine=nh3000 opsys=cxux
++  ;;
++  ## Harris power pc NightHawk running Power UNIX (Series 6000)
++  powerpc-harris-powerunix )
++    machine=nh6000 opsys=powerunix
++    NON_GNU_CPP="cc -Xo -E -P"
++  ;;
++  ## SR2001/SR2201 running HI-UX/MPP
++  hppa1.1-hitachi-hiuxmpp* )
++    machine=sr2k opsys=hiuxmpp
++  ;;
++  hppa1.1-hitachi-hiuxwe2* )
++    machine=sr2k opsys=hiuxwe2
++  ;;
++  ## Honeywell XPS100
++  xps*-honeywell-sysv* )
++    machine=xps100 opsys=usg5-2
++  ;;
++
++  ## HP 9000 series 200 or 300
++  m68*-hp-bsd* )
++    machine=hp9000s300 opsys=bsd4-3
++  ;;
++  ## HP/UX 7, 8, 9, and 10 are supported on these machines.
++  m68*-hp-hpux* )
++    case "`uname -r`" in
++      ## Someone's system reports A.B8.05 for this.
++      ## I wonder what other possibilities there are.
++      *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
++      *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
++      *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
++      *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
++      *) machine=hp9000s300 opsys=hpux ;;
++    esac
++  ;;
++
++  ## HP 9000 series 700 and 800, running HP/UX
++  hppa*-hp-hpux7* )
++    machine=hp800 opsys=hpux
++  ;;
++  hppa*-hp-hpux8* )
++    machine=hp800 opsys=hpux8
++  ;;
++  hppa*-hp-hpux9shr* )
++    machine=hp800 opsys=hpux9shr
++  ;;
++  hppa*-hp-hpux9* )
++    machine=hp800 opsys=hpux9
++  ;;
++
++  hppa*-hp-hpux10.2* )
++    machine=hp800 opsys=hpux10-20
++  ;;
++
++  hppa*-hp-hpux10* )
++    machine=hp800 opsys=hpux10
++  ;;
++
++  hppa*-hp-hpux1[1-9]* )
++    machine=hp800 opsys=hpux11
++  ;;
++
++  ## HP 9000 series 700 and 800, running HP/UX
++  hppa*-hp-hpux* )
++    ## Cross-compilation?  Nah!
++    case "`uname -r`" in
++      ## Someone's system reports A.B8.05 for this.
++      ## I wonder what other possibilities there are.
++      *.B8.* ) machine=hp800 opsys=hpux8 ;;
++      *.08.* ) machine=hp800 opsys=hpux8 ;;
++      *.09.* ) machine=hp800 opsys=hpux9 ;;
++      *) machine=hp800 opsys=hpux10 ;;
++    esac
++  ;;
++  hppa*-*-nextstep* )
++    machine=hp800 opsys=nextstep
++  ;;
++  hppa*-*-linux-gnu* )
++    machine=hp800 opsys=gnu-linux
++  ;;
++
++  ## Orion machines
++  orion-orion-bsd* )
++    machine=orion opsys=bsd4-2
++  ;;
++  clipper-orion-bsd* )
++    machine=orion105 opsys=bsd4-2
++  ;;
++
++  ## IBM machines
++  i[3456]86-ibm-aix1.1* )
++    machine=ibmps2-aix opsys=usg5-2-2
++  ;;
++  i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
++    machine=ibmps2-aix opsys=usg5-3
++  ;;
++  i370-ibm-aix*)
++    machine=ibm370aix opsys=usg5-3
++  ;;
++  s390-*-linux-gnu)
++    machine=ibms390 opsys=gnu-linux
++  ;;
++  rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
++    machine=ibmrs6000 opsys=aix3-1
++  ;;
++  rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
++    machine=ibmrs6000 opsys=aix3-2-5
++  ;;
++  rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
++    machine=ibmrs6000 opsys=aix4-1
++  ;;
++  rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
++    machine=ibmrs6000 opsys=aix4-2
++  ;;
++  rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
++    machine=ibmrs6000 opsys=aix4-2
++  ;;
++  rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
++    machine=ibmrs6000 opsys=aix4
++  ;;
++  rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
++    machine=ibmrs6000 opsys=aix4-1
++  ;;
++  rs6000-ibm-aix* | powerpc-ibm-aix* )
++    machine=ibmrs6000 opsys=aix3-2
++  ;;
++  romp-ibm-bsd4.3* )
++    machine=ibmrt opsys=bsd4-3
++  ;;
++  romp-ibm-bsd4.2* )
++    machine=ibmrt opsys=bsd4-2
++  ;;
++  romp-ibm-aos4.3* )
++    machine=ibmrt opsys=bsd4-3
++  ;;
++  romp-ibm-aos4.2* )
++    machine=ibmrt opsys=bsd4-2
++  ;;
++  romp-ibm-aos* )
++    machine=ibmrt opsys=bsd4-3
++  ;;
++  romp-ibm-bsd* )
++    machine=ibmrt opsys=bsd4-3
++  ;;
++  romp-ibm-aix* )
++    machine=ibmrt-aix opsys=usg5-2-2
++  ;;
++
++  s390*-*-linux-gnu* )
++    machine=s390 opsys=gnu-linux
++  ;;
++
++  ## Integrated Solutions `Optimum V'
++  m68*-isi-bsd4.2* )
++    machine=isi-ov opsys=bsd4-2
++  ;;
++  m68*-isi-bsd4.3* )
++    machine=isi-ov opsys=bsd4-3
++  ;;
++
++  ## Intel 386 machines where we do care about the manufacturer
++  i[3456]86-intsys-sysv* )
++    machine=is386 opsys=usg5-2-2
++  ;;
++
++  ## Prime EXL
++  i[3456]86-prime-sysv* )
++    machine=i386 opsys=usg5-3
++  ;;
++
++  ## Sequent Symmetry running Dynix
++  i[3456]86-sequent-bsd* )
++    machine=symmetry opsys=bsd4-3
++  ;;
++
++  ## Sequent Symmetry running ptx 4, which is a modified SVR4.
++  i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
++    machine=sequent-ptx opsys=ptx4
++    NON_GNU_CPP=/lib/cpp
++  ;;
++
++  ## Sequent Symmetry running DYNIX/ptx
++  ## Use the old cpp rather than the newer ANSI one.
++  i[3456]86-sequent-ptx* )
++    machine=sequent-ptx opsys=ptx
++    NON_GNU_CPP="/lib/cpp"
++  ;;
++
++  ## ncr machine running svr4.3.
++  i[3456]86-ncr-sysv4.3 )
++    machine=ncr386 opsys=usg5-4-3
++  ;;
++
++  ## Unspecified sysv on an ncr machine defaults to svr4.2.
++  ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
++  i[3456]86-ncr-sysv* )
++    machine=ncr386 opsys=usg5-4-2
++  ;;
++
++  ## Intel Paragon OSF/1
++  i860-intel-osf1* )
++    machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
++  ;;
++
++  ## Intel 860
++  i860-*-sysv4* )
++    machine=i860 opsys=usg5-4
++    NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
++    NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
++  ;;
++
++  ## Macintosh PowerPC
++  powerpc*-*-linux-gnu* )
++    machine=macppc opsys=gnu-linux
++  ;;
++
++  ## Masscomp machines
++  m68*-masscomp-rtu* )
++    machine=masscomp opsys=rtu
++  ;;
++
++  ## Megatest machines
++  m68*-megatest-bsd* )
++    machine=mega68 opsys=bsd4-2
++  ;;
++
++  ## Workstations sold by MIPS
++  ## This is not necessarily all workstations using the MIPS processor -
++  ## Irises are produced by SGI, and DECstations by DEC.
++
++  ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
++  ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
++  ## it gives for choosing between the alternatives seems to be "Use
++  ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
++  ## the BSD world."  I'll assume that these are instructions for
++  ## handling two odd situations, and that every other situation
++  ## should use mips.h and usg5-2-2, they being listed first.
++  mips-mips-usg* )
++    machine=mips4
++    ## Fall through to the general code at the bottom to decide on the OS.
++  ;;
++  mips-mips-riscos4* )
++    machine=mips4 opsys=bsd4-3
++    NON_GNU_CC="cc -systype bsd43"
++    NON_GNU_CPP="cc -systype bsd43 -E"
++  ;;
++  mips-mips-riscos5* )
++    machine=mips4 opsys=riscos5
++    NON_GNU_CC="cc -systype bsd43"
++    NON_GNU_CPP="cc -systype bsd43 -E"
++  ;;
++  mips-mips-bsd* )
++    machine=mips opsys=bsd4-3
++  ;;
++  mips-mips-* )
++    machine=mips opsys=usg5-2-2
++  ;;
++
++  ## NeXT
++  m68*-next-* | m68k-*-nextstep* )
++    machine=m68k opsys=nextstep
++  ;;
++
++  ## The complete machine from National Semiconductor
++  ns32k-ns-genix* )
++    machine=ns32000 opsys=usg5-2
++  ;;
++
++  ## NCR machines
++  m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
++    machine=tower32 opsys=usg5-2-2
++  ;;
++  m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
++    machine=tower32v3 opsys=usg5-3
++  ;;
++
++  ## NEC EWS4800
++  mips-nec-sysv4*)
++  machine=ews4800 opsys=ux4800
++  ;;
++
++  ## Nixdorf Targon 31
++  m68*-nixdorf-sysv* )
++    machine=targon31 opsys=usg5-2-2
++  ;;
++
++  ## Nu (TI or LMI)
++  m68*-nu-sysv* )
++    machine=nu opsys=usg5-2
++  ;;
++
++  ## Plexus
++  m68*-plexus-sysv* )
++    machine=plexus opsys=usg5-2
++  ;;
++
++  ## PowerPC reference platform
++  powerpcle-*-solaris2* )
++    machine=prep
++    opsys=sol2-5
++  ;;
++
++  ## Pyramid machines
++  ## I don't really have any idea what sort of processor the Pyramid has,
++  ## so I'm assuming it is its own architecture.
++  pyramid-pyramid-bsd* )
++    machine=pyramid opsys=bsd4-2
++  ;;
++
++  ## Sequent Balance
++  ns32k-sequent-bsd4.2* )
++    machine=sequent opsys=bsd4-2
++  ;;
++  ns32k-sequent-bsd4.3* )
++    machine=sequent opsys=bsd4-3
++  ;;
++
++  ## Siemens Nixdorf
++  mips-siemens-sysv* | mips-sni-sysv*)
++    machine=mips-siemens opsys=usg5-4
++    NON_GNU_CC=/usr/ccs/bin/cc
++    NON_GNU_CPP=/usr/ccs/lib/cpp
++  ;;
++
++  ## Silicon Graphics machines
++  ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
++  m68*-sgi-iris3.5* )
++    machine=irist opsys=iris3-5
++  ;;
++  m68*-sgi-iris3.6* | m68*-sgi-iris*)
++    machine=irist opsys=iris3-6
++  ;;
++  ## Iris 4D
++  mips-sgi-irix3* )
++    machine=iris4d opsys=irix3-3
++  ;;
++  mips-sgi-irix4* )
++    machine=iris4d opsys=irix4-0
++  ;;
++  mips-sgi-irix6.5 )
++    machine=iris4d opsys=irix6-5
++    # Without defining _LANGUAGE_C, things get masked out in the headers
++    # so that, for instance, grepping for `free' in stdlib.h fails and
++    # AC_HEADER_STD_C fails.   (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
++    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
++    NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
++  ;;
++  mips-sgi-irix6* )
++    machine=iris4d opsys=irix6-0
++    # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
++    # but presumably it does no harm.
++    NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
++    # -32 probably isn't necessary in later v.6s -- anyone know which?
++    NON_GCC_TEST_OPTIONS=-32
++  ;;
++  mips-sgi-irix5.[01]* )
++    machine=iris4d opsys=irix5-0
++  ;;
++  mips-sgi-irix5* | mips-sgi-irix* )
++    machine=iris4d opsys=irix5-2
++  ;;
++
++  ## SONY machines
++  m68*-sony-bsd4.2* )
++    machine=news opsys=bsd4-2
++  ;;
++  m68*-sony-bsd4.3* )
++    machine=news opsys=bsd4-3
++  ;;
++  m68*-sony-newsos3* | m68*-sony-news3*)
++    machine=news opsys=bsd4-3
++  ;;
++  mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
++    machine=news-risc opsys=bsd4-3
++  ;;
++  mips-sony-newsos6* )
++    machine=news-r6 opsys=newsos6
++  ;;
++  mips-sony-news* )
++    machine=news-risc opsys=newsos5
++  ;;
++
++  ## Stride
++  m68*-stride-sysv* )
++    machine=stride opsys=usg5-2
++  ;;
++
++  ## Suns
++  sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
++    machine=sparc opsys=gnu-linux
++  ;;
++
++  *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
++    | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
++    | rs6000-*-solaris2*)
++    case "${canonical}" in
++      m68*-sunos1* )  machine=sun1 ;;
++      m68*-sunos2* )  machine=sun2 ;;
++      m68* )          machine=sun3 ;;
++      i[3456]86-sun-sunos[34]* )      machine=sun386 ;;
++      i[3456]86-*-* )     machine=intel386 ;;
++      powerpcle* )      machine=powerpcle ;;
++      powerpc* | rs6000* )  machine=ibmrs6000 ;;
++      sparc* )                machine=sparc ;;
++      * )             unported=yes ;;
++    esac
++    case "${canonical}" in
++      ## The Sun386 didn't get past 4.0.
++      i[3456]86-*-sunos4        ) opsys=sunos4-0 ;;
++      *-sunos4.0*       ) opsys=sunos4-0 ;;
++      *-sunos4.1.[3-9]*noshare )
++              ## This name is sunos413 instead of sunos4-1-3
++              ## to avoid a file name conflict on MSDOS.
++              opsys=sunos413
++              NON_GNU_CPP=/usr/lib/cpp
++              NON_GCC_TEST_OPTIONS=-Bstatic
++              GCC_TEST_OPTIONS=-static
++              ;;
++      *-sunos4.1.[3-9]* | *-sunos4shr*)
++              opsys=sunos4shr
++              NON_GNU_CPP=/usr/lib/cpp
++              ;;
++      *-sunos4* | *-sunos )
++              opsys=sunos4-1
++              NON_GCC_TEST_OPTIONS=-Bstatic
++              GCC_TEST_OPTIONS=-static
++              ;;
++      *-sunos5.3* | *-solaris2.3* )
++              opsys=sol2-3
++              NON_GNU_CPP=/usr/ccs/lib/cpp
++              ;;
++      *-sunos5.4* | *-solaris2.4* )
++              opsys=sol2-4
++              NON_GNU_CPP=/usr/ccs/lib/cpp
++              RANLIB="ar -ts"
++              ;;
++      *-sunos5.5* | *-solaris2.5* )
++              opsys=sol2-5
++              NON_GNU_CPP=/usr/ccs/lib/cpp
++              RANLIB="ar -ts"
++              ;;
++      *-sunos5* | *-solaris* )
++              opsys=sol2-5
++              NON_GNU_CPP=/usr/ccs/lib/cpp
++              ;;
++      *                         ) opsys=bsd4-2   ;;
++    esac
++    ## Watch out for a compiler that we know will not work.
++    case "${canonical}" in
++     *-solaris* | *-sunos5* )
++              if [ "x$CC" = x/usr/ucb/cc ]; then
++                ## /usr/ucb/cc doesn't work;
++                ## we should find some other compiler that does work.
++                unset CC
++              fi
++              ;;
++      *) ;;
++    esac
++  ;;
++  sparc-*-nextstep* )
++    machine=sparc opsys=nextstep
++  ;;
++
++  ## Tadpole 68k
++  m68*-tadpole-sysv* )
++    machine=tad68k opsys=usg5-3
++  ;;
++
++  ## Tahoe machines
++  tahoe-tahoe-bsd4.2* )
++    machine=tahoe opsys=bsd4-2
++  ;;
++  tahoe-tahoe-bsd4.3* )
++    machine=tahoe opsys=bsd4-3
++  ;;
++
++  ## Tandem Integrity S2
++  mips-tandem-sysv* )
++    machine=tandem-s2 opsys=usg5-3
++  ;;
++
++  ## Tektronix XD88
++  m88k-tektronix-sysv3* )
++  machine=tekxd88 opsys=usg5-3
++  ;;
++
++  ## Tektronix 16000 box (6130?)
++  ns16k-tektronix-bsd* )
++    machine=ns16000 opsys=bsd4-2
++  ;;
++  ## Tektronix 4300
++  ## src/m/tek4300.h hints that this is a m68k machine.
++  m68*-tektronix-bsd* )
++    machine=tek4300 opsys=bsd4-3
++  ;;
++
++  ## Titan P2 or P3
++  ## We seem to have lost the machine-description file titan.h!
++  titan-titan-sysv* )
++    machine=titan opsys=usg5-3
++  ;;
++
++  ## Ustation E30 (SS5E)
++  m68*-unisys-uniplus* )
++    machine=ustation opsystem=unipl5-2
++  ;;
++
++  ## Vaxen.
++  vax-dec-* )
++    machine=vax
++    case "${canonical}" in
++      *-bsd4.1* )                                     opsys=bsd4-1 ;;
++      *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )    opsys=bsd4-2 ;;
++      *-bsd4.3* | *-ultrix* )                                 opsys=bsd4-3 ;;
++      *-sysv[01]* | *-sysvr[01]* )                    opsys=usg5-0 ;;
++      *-sysv2* | *-sysvr2* )                          opsys=usg5-2 ;;
++      *-vms* )                                                opsys=vms ;;
++      * )                                             unported=yes
++    esac
++  ;;
++
++  ## Whitechapel MG1
++  ns16k-whitechapel-* )
++    machine=mg1
++    ## We don't know what sort of OS runs on these; we'll let the
++    ## operating system guessing code below try.
++  ;;
++
++  ## Wicat
++  m68*-wicat-sysv* )
++    machine=wicat opsys=usg5-2
++  ;;
++
++  ## IA-64
++  ia64*-*-linux* )
++    machine=ia64 opsys=gnu-linux
++  ;;
++
++  ## Intel 386 machines where we don't care about the manufacturer
++  i[3456]86-*-* )
++    machine=intel386
++    case "${canonical}" in
++      *-lynxos* )               opsys=lynxos ;;
++      *-isc1.* | *-isc2.[01]* )       opsys=386-ix ;;
++      *-isc2.2* )             opsys=isc2-2 ;;
++      *-isc4.0* )             opsys=isc4-0 ;;
++      *-isc4.* )              opsys=isc4-1
++                              GCC_TEST_OPTIONS=-posix
++                              NON_GCC_TEST_OPTIONS=-Xp
++                              ;;
++      *-isc* )                        opsys=isc3-0 ;;
++      *-esix5* )              opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
++      *-esix* )                       opsys=esix ;;
++      *-xenix* )              opsys=xenix ;;
++      *-linux-gnu* )          opsys=gnu-linux ;;
++      *-sco3.2v4* )           opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
++      *-sco3.2v5* )           opsys=sco5
++                              NON_GNU_CPP=/lib/cpp
++                              # Prevent -belf from being passed to $CPP.
++                              # /lib/cpp does not accept it.
++                              OVERRIDE_CPPFLAGS=" "
++                              ;;
++      *-sysv4.2uw* )          opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
++      *-386bsd* )             opsys=386bsd ;;
++      *-freebsd* )            opsys=freebsd ;;
++      *-nextstep* )             opsys=nextstep ;;
++      ## Otherwise, we'll fall through to the generic opsys code at the bottom.
++    esac
++  ;;
++
++  ## m68k Linux-based GNU system
++  m68k-*-linux-gnu* )
++    machine=m68k opsys=gnu-linux
++  ;;
++
++  ## Mips Linux-based GNU system
++  mips-*-linux-gnu* | mipsel-*-linux-gnu* )
++    machine=mips opsys=gnu-linux
++  ;;
++
++  ## Mipsel (little endian) Linux-based GNU system
++  mipsel-*-linux-gnu* )
++    machine=mipsel opsys=gnu-linux
++  ;;
++
++  ## UXP/DS
++  sparc-fujitsu-sysv4* )
++    machine=sparc opsys=uxpds
++    NON_GNU_CPP=/usr/ccs/lib/cpp
++    RANLIB="ar -ts"
++  ;;
++
++  ## UXP/V
++  f301-fujitsu-uxpv4.1)
++    machine=f301 opsys=uxpv
++  ;;
++
++  ## AMD x86-64 Linux-based GNU system
++  x86_64-*-linux-gnu* )
++    machine=amdx86-64 opsys=gnu-linux
++  ;;
++
++  * )
++    unported=yes
++  ;;
++esac
++
++### If the code above didn't choose an operating system, just choose
++### an operating system based on the configuration name.  You really
++### only want to use this when you have no idea what the right
++### operating system is; if you know what operating systems a machine
++### runs, it's cleaner to make it explicit in the case statement
++### above.
++if test x"${opsys}" = x; then
++  case "${canonical}" in
++    *-gnu* )                          opsys=gnu ;;
++    *-bsd4.[01] )                     opsys=bsd4-1 ;;
++    *-bsd4.2 )                                opsys=bsd4-2 ;;
++    *-bsd4.3 )                                opsys=bsd4-3 ;;
++    *-sysv0 | *-sysvr0 )              opsys=usg5-0 ;;
++    *-sysv2 | *-sysvr2 )              opsys=usg5-2 ;;
++    *-sysv2.2 | *-sysvr2.2 )          opsys=usg5-2-2 ;;
++    *-sysv3* | *-sysvr3* )            opsys=usg5-3 ;;
++    *-sysv4.2uw* )                    opsys=unixware ;;
++    *-sysv4.1* | *-sysvr4.1* )
++      NON_GNU_CPP=/usr/lib/cpp
++      opsys=usg5-4 ;;
++    *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
++      if [ x$NON_GNU_CPP = x ]; then
++        if [ -f /usr/ccs/lib/cpp ]; then
++          NON_GNU_CPP=/usr/ccs/lib/cpp
++        else
++          NON_GNU_CPP=/lib/cpp
++        fi
++      fi
++      opsys=usg5-4-2 ;;
++    *-sysv4* | *-sysvr4* )            opsys=usg5-4 ;;
++    * )
++      unported=yes
++    ;;
++  esac
++fi
++
++
++if test $unported = yes; then
++  { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
++Check \`etc/MACHINES' for recognized configuration names." >&5
++echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
++Check \`etc/MACHINES' for recognized configuration names." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++machfile="m/${machine}.h"
++opsysfile="s/${opsys}.h"
++
++
++#### Choose a compiler.
++test -n "$CC" && cc_specified=yes
++
++# Save the value of CFLAGS that the user specified.
++SPECIFIED_CFLAGS="$CFLAGS"
++
++case ${with_gcc} in
++  "yes" ) CC="gcc" GCC=yes ;;
++  "no"  ) : ${CC=cc} ;;
++  * ) ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++if test -n "$ac_tool_prefix"; then
++  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$CC"; then
++  ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_CC="${ac_tool_prefix}gcc"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++  ac_ct_CC=$CC
++  # Extract the first word of "gcc", so it can be a program name with args.
++set dummy gcc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$ac_ct_CC"; then
++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_ac_ct_CC="gcc"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++  CC=$ac_ct_CC
++else
++  CC="$ac_cv_prog_CC"
++fi
++
++if test -z "$CC"; then
++  if test -n "$ac_tool_prefix"; then
++  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
++set dummy ${ac_tool_prefix}cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$CC"; then
++  ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_CC="${ac_tool_prefix}cc"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_CC"; then
++  ac_ct_CC=$CC
++  # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$ac_ct_CC"; then
++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_ac_ct_CC="cc"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++  CC=$ac_ct_CC
++else
++  CC="$ac_cv_prog_CC"
++fi
++
++fi
++if test -z "$CC"; then
++  # Extract the first word of "cc", so it can be a program name with args.
++set dummy cc; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$CC"; then
++  ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++  ac_prog_rejected=no
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
++       ac_prog_rejected=yes
++       continue
++     fi
++    ac_cv_prog_CC="cc"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++if test $ac_prog_rejected = yes; then
++  # We found a bogon in the path, so make sure we never use it.
++  set dummy $ac_cv_prog_CC
++  shift
++  if test $# != 0; then
++    # We chose a different compiler from the bogus one.
++    # However, it has the same basename, so the bogon will be chosen
++    # first if we set CC to just the basename; use the full file name.
++    shift
++    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
++  fi
++fi
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$CC"; then
++  if test -n "$ac_tool_prefix"; then
++  for ac_prog in cl
++  do
++    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
++set dummy $ac_tool_prefix$ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$CC"; then
++  ac_cv_prog_CC="$CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  echo "$as_me:$LINENO: result: $CC" >&5
++echo "${ECHO_T}$CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++    test -n "$CC" && break
++  done
++fi
++if test -z "$CC"; then
++  ac_ct_CC=$CC
++  for ac_prog in cl
++do
++  # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$ac_ct_CC"; then
++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_ac_ct_CC="$ac_prog"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
++echo "${ECHO_T}$ac_ct_CC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++  test -n "$ac_ct_CC" && break
++done
++
++  CC=$ac_ct_CC
++fi
++
++fi
++
++
++test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&5
++echo "$as_me: error: no acceptable C compiler found in \$PATH
++See \`config.log' for more details." >&2;}
++   { (exit 1); exit 1; }; }
++
++# Provide some information about the compiler.
++echo "$as_me:$LINENO:" \
++     "checking for C compiler version" >&5
++ac_compiler=`set X $ac_compile; echo $2`
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
++  (eval $ac_compiler --version </dev/null >&5) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
++  (eval $ac_compiler -v </dev/null >&5) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }
++{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
++  (eval $ac_compiler -V </dev/null >&5) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }
++
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files a.out a.exe b.out"
++# Try to create an executable without -o first, disregard a.out.
++# It will help us diagnose broken compilers, and finding out an intuition
++# of exeext.
++echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
++echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
++ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
++if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
++  (eval $ac_link_default) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; then
++  # Find the output, starting from the most likely.  This scheme is
++# not robust to junk in `.', hence go to wildcards (a.*) only as a last
++# resort.
++
++# Be careful to initialize this variable, since it used to be cached.
++# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
++ac_cv_exeext=
++# b.out is created by i960 compilers.
++for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
++do
++  test -f "$ac_file" || continue
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
++      ;;
++    conftest.$ac_ext )
++      # This is the source file.
++      ;;
++    [ab].out )
++      # We found the default executable, but exeext='' is most
++      # certainly right.
++      break;;
++    *.* )
++      ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++      # FIXME: I believe we export ac_cv_exeext for Libtool,
++      # but it would be cool to find out if it's true.  Does anybody
++      # maintain Libtool? --akim.
++      export ac_cv_exeext
++      break;;
++    * )
++      break;;
++  esac
++done
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
++See \`config.log' for more details." >&5
++echo "$as_me: error: C compiler cannot create executables
++See \`config.log' for more details." >&2;}
++   { (exit 77); exit 77; }; }
++fi
++
++ac_exeext=$ac_cv_exeext
++echo "$as_me:$LINENO: result: $ac_file" >&5
++echo "${ECHO_T}$ac_file" >&6
++
++# Check the compiler produces executables we can run.  If not, either
++# the compiler is broken, or we cross compile.
++echo "$as_me:$LINENO: checking whether the C compiler works" >&5
++echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
++# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
++# If not cross compiling, check that we can run a simple program.
++if test "$cross_compiling" != yes; then
++  if { ac_try='./$ac_file'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++    cross_compiling=no
++  else
++    if test "$cross_compiling" = maybe; then
++      cross_compiling=yes
++    else
++      { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot run C compiled programs.
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details." >&2;}
++   { (exit 1); exit 1; }; }
++    fi
++  fi
++fi
++echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++rm -f a.out a.exe conftest$ac_cv_exeext b.out
++ac_clean_files=$ac_clean_files_save
++# Check the compiler produces executables we can run.  If not, either
++# the compiler is broken, or we cross compile.
++echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
++echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
++echo "$as_me:$LINENO: result: $cross_compiling" >&5
++echo "${ECHO_T}$cross_compiling" >&6
++
++echo "$as_me:$LINENO: checking for suffix of executables" >&5
++echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; then
++  # If both `conftest.exe' and `conftest' are `present' (well, observable)
++# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
++# work properly (i.e., refer to `conftest.exe'), while it won't with
++# `rm'.
++for ac_file in conftest.exe conftest conftest.*; do
++  test -f "$ac_file" || continue
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++        export ac_cv_exeext
++        break;;
++    * ) break;;
++  esac
++done
++else
++  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++rm -f conftest$ac_cv_exeext
++echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
++echo "${ECHO_T}$ac_cv_exeext" >&6
++
++rm -f conftest.$ac_ext
++EXEEXT=$ac_cv_exeext
++ac_exeext=$EXEEXT
++echo "$as_me:$LINENO: checking for suffix of object files" >&5
++echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
++if test "${ac_cv_objext+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.o conftest.obj
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; then
++  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
++    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
++       break;;
++  esac
++done
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&5
++echo "$as_me: error: cannot compute suffix of object files: cannot compile
++See \`config.log' for more details." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++rm -f conftest.$ac_cv_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
++echo "${ECHO_T}$ac_cv_objext" >&6
++OBJEXT=$ac_cv_objext
++ac_objext=$OBJEXT
++echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
++echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
++if test "${ac_cv_c_compiler_gnu+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++#ifndef __GNUC__
++       choke me
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_compiler_gnu=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_compiler_gnu=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_cv_c_compiler_gnu=$ac_compiler_gnu
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
++GCC=`test $ac_compiler_gnu = yes && echo yes`
++ac_test_CFLAGS=${CFLAGS+set}
++ac_save_CFLAGS=$CFLAGS
++CFLAGS="-g"
++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_g+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_prog_cc_g=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_prog_cc_g=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
++if test "$ac_test_CFLAGS" = set; then
++  CFLAGS=$ac_save_CFLAGS
++elif test $ac_cv_prog_cc_g = yes; then
++  if test "$GCC" = yes; then
++    CFLAGS="-g -O2"
++  else
++    CFLAGS="-g"
++  fi
++else
++  if test "$GCC" = yes; then
++    CFLAGS="-O2"
++  else
++    CFLAGS=
++  fi
++fi
++echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
++echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
++if test "${ac_cv_prog_cc_stdc+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_prog_cc_stdc=no
++ac_save_CC=$CC
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdarg.h>
++#include <stdio.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
++struct buf { int x; };
++FILE * (*rcsopen) (struct buf *, struct stat *, int);
++static char *e (p, i)
++     char **p;
++     int i;
++{
++  return p[i];
++}
++static char *f (char * (*g) (char **, int), char **p, ...)
++{
++  char *s;
++  va_list v;
++  va_start (v,p);
++  s = g (p, va_arg (v,int));
++  va_end (v);
++  return s;
++}
++
++/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
++   function prototypes and stuff, but not '\xHH' hex character constants.
++   These don't provoke an error unfortunately, instead are silently treated
++   as 'x'.  The following induces an error, until -std1 is added to get
++   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
++   array size at least.  It's necessary to write '\x00'==0 to get something
++   that's true only with -std1.  */
++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
++
++int test (int i, double x);
++struct s1 {int (*f) (int a);};
++struct s2 {int (*f) (double a);};
++int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
++int argc;
++char **argv;
++int
++main ()
++{
++return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
++  ;
++  return 0;
++}
++_ACEOF
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX                 -qlanglvl=ansi
++# Ultrix and OSF/1    -std1
++# HP-UX 10.20 and later       -Ae
++# HP-UX older versions        -Aa -D_HPUX_SOURCE
++# SVR4                        -Xc -D__EXTENSIONS__
++for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++  CC="$ac_save_CC $ac_arg"
++  rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_prog_cc_stdc=$ac_arg
++break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++done
++rm -f conftest.$ac_ext conftest.$ac_objext
++CC=$ac_save_CC
++
++fi
++
++case "x$ac_cv_prog_cc_stdc" in
++  x|xno)
++    echo "$as_me:$LINENO: result: none needed" >&5
++echo "${ECHO_T}none needed" >&6 ;;
++  *)
++    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
++echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
++    CC="$CC $ac_cv_prog_cc_stdc" ;;
++esac
++
++# Some people use a C++ compiler to compile C.  Since we use `exit',
++# in C++ we need to declare it.  In case someone uses the same compiler
++# for both compiling C and C++ we need to have the C++ compiler decide
++# the declaration of exit, since it's the most demanding environment.
++cat >conftest.$ac_ext <<_ACEOF
++#ifndef __cplusplus
++  choke me
++#endif
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  for ac_declaration in \
++   '' \
++   'extern "C" void std::exit (int) throw (); using std::exit;' \
++   'extern "C" void std::exit (int); using std::exit;' \
++   'extern "C" void exit (int) throw ();' \
++   'extern "C" void exit (int);' \
++   'void exit (int);'
++do
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++#include <stdlib.h>
++int
++main ()
++{
++exit (42);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++continue
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_declaration
++int
++main ()
++{
++exit (42);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++done
++rm -f conftest*
++if test -n "$ac_declaration"; then
++  echo '#ifdef __cplusplus' >>confdefs.h
++  echo $ac_declaration      >>confdefs.h
++  echo '#endif'             >>confdefs.h
++fi
++
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++esac
++
++# On Suns, sometimes $CPP names a directory.
++if test -n "$CPP" && test -d "$CPP"; then
++  CPP=
++fi
++
++#### Some systems specify a CPP to use unless we are using GCC.
++#### Now that we know whether we are using GCC, we can decide whether
++#### to use that one.
++if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
++then
++  CPP="$NON_GNU_CPP"
++fi
++
++#### Some systems specify a CC to use unless we are using GCC.
++#### Now that we know whether we are using GCC, we can decide whether
++#### to use that one.
++if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
++  test x$cc_specified != xyes
++then
++  CC="$NON_GNU_CC"
++fi
++
++if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
++then
++  CC="$CC $GCC_TEST_OPTIONS"
++fi
++
++if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
++then
++  CC="$CC $NON_GCC_TEST_OPTIONS"
++fi
++
++if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
++then
++  ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
++fi
++
++if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
++then
++  ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
++fi
++
++#### Some other nice autoconf tests.  If you add a test here which
++#### should make an entry in src/config.h, don't forget to add an
++#### #undef clause to src/config.h.in for autoconf to modify.
++
++echo "$as_me:$LINENO: checking whether ln -s works" >&5
++echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
++LN_S=$as_ln_s
++if test "$LN_S" = "ln -s"; then
++  echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++else
++  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
++echo "${ECHO_T}no, using $LN_S" >&6
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
++echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
++# On Suns, sometimes $CPP names a directory.
++if test -n "$CPP" && test -d "$CPP"; then
++  CPP=
++fi
++if test -z "$CPP"; then
++  if test "${ac_cv_prog_CPP+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++      # Double quotes because CPP needs to be expanded
++    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
++    do
++      ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++  # <limits.h> exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. "Syntax error" is here to catch this case.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++                   Syntax error
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  :
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <ac_nonexistent.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  # Broken: success on invalid input.
++continue
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  break
++fi
++
++    done
++    ac_cv_prog_CPP=$CPP
++
++fi
++  CPP=$ac_cv_prog_CPP
++else
++  ac_cv_prog_CPP=$CPP
++fi
++echo "$as_me:$LINENO: result: $CPP" >&5
++echo "${ECHO_T}$CPP" >&6
++ac_preproc_ok=false
++for ac_c_preproc_warn_flag in '' yes
++do
++  # Use a header file that comes with gcc, so configuring glibc
++  # with a fresh cross-compiler works.
++  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++  # <limits.h> exists even on freestanding compilers.
++  # On the NeXT, cc -E runs the code through the compiler's parser,
++  # not just through cpp. "Syntax error" is here to catch this case.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++                   Syntax error
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  :
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether non-existent headers
++  # can be detected and how.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <ac_nonexistent.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  # Broken: success on invalid input.
++continue
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then
++  :
++else
++  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&5
++echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++# Find a good install program.  We prefer a C program (faster),
++# so one script is as good as another.  But avoid the broken or
++# incompatible versions:
++# SysV /etc/install, /usr/sbin/install
++# SunOS /usr/etc/install
++# IRIX /sbin/install
++# AIX /bin/install
++# AmigaOS /C/install, which installs bootblocks on floppy discs
++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
++# AFS /usr/afsws/bin/install, which mishandles nonexistent args
++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
++# OS/2's system install, which has a completely different semantic
++# ./install, which can be erroneously created by make from ./install.sh.
++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
++if test -z "$INSTALL"; then
++if test "${ac_cv_path_install+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  # Account for people who put trailing slashes in PATH elements.
++case $as_dir/ in
++  ./ | .// | /cC/* | \
++  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
++  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
++  /usr/ucb/* ) ;;
++  *)
++    # OSF1 and SCO ODT 3.0 have their own names for install.
++    # Don't use installbsd from OSF since it installs stuff as root
++    # by default.
++    for ac_prog in ginstall scoinst install; do
++      for ac_exec_ext in '' $ac_executable_extensions; do
++      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
++        if test $ac_prog = install &&
++          grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++          # AIX install.  It has an incompatible calling convention.
++          :
++        elif test $ac_prog = install &&
++          grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
++          # program-specific install script used by HP pwplus--don't use.
++          :
++        else
++          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
++          break 3
++        fi
++      fi
++      done
++    done
++    ;;
++esac
++done
++
++
++fi
++  if test "${ac_cv_path_install+set}" = set; then
++    INSTALL=$ac_cv_path_install
++  else
++    # As a last resort, use the slow shell script.  We don't cache a
++    # path for INSTALL within a source directory, because that will
++    # break other packages using the cache if that directory is
++    # removed, or if the path is relative.
++    INSTALL=$ac_install_sh
++  fi
++fi
++echo "$as_me:$LINENO: result: $INSTALL" >&5
++echo "${ECHO_T}$INSTALL" >&6
++
++# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
++# It thinks the first close brace ends the variable substitution.
++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
++
++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
++
++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
++
++for ac_prog in 'bison -y' byacc
++do
++  # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_YACC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$YACC"; then
++  ac_cv_prog_YACC="$YACC" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_YACC="$ac_prog"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++YACC=$ac_cv_prog_YACC
++if test -n "$YACC"; then
++  echo "$as_me:$LINENO: result: $YACC" >&5
++echo "${ECHO_T}$YACC" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++  test -n "$YACC" && break
++done
++test -n "$YACC" || YACC="yacc"
++
++if test "x$RANLIB" = x; then
++  if test -n "$ac_tool_prefix"; then
++  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_RANLIB+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$RANLIB"; then
++  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++fi
++fi
++RANLIB=$ac_cv_prog_RANLIB
++if test -n "$RANLIB"; then
++  echo "$as_me:$LINENO: result: $RANLIB" >&5
++echo "${ECHO_T}$RANLIB" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++fi
++if test -z "$ac_cv_prog_RANLIB"; then
++  ac_ct_RANLIB=$RANLIB
++  # Extract the first word of "ranlib", so it can be a program name with args.
++set dummy ranlib; ac_word=$2
++echo "$as_me:$LINENO: checking for $ac_word" >&5
++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
++if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test -n "$ac_ct_RANLIB"; then
++  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
++else
++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for ac_exec_ext in '' $ac_executable_extensions; do
++  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
++    ac_cv_prog_ac_ct_RANLIB="ranlib"
++    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++done
++
++  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
++fi
++fi
++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
++if test -n "$ac_ct_RANLIB"; then
++  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
++echo "${ECHO_T}$ac_ct_RANLIB" >&6
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++  RANLIB=$ac_ct_RANLIB
++else
++  RANLIB="$ac_cv_prog_RANLIB"
++fi
++
++fi
++
++
++
++echo "$as_me:$LINENO: checking for egrep" >&5
++echo $ECHO_N "checking for egrep... $ECHO_C" >&6
++if test "${ac_cv_prog_egrep+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
++    then ac_cv_prog_egrep='grep -E'
++    else ac_cv_prog_egrep='egrep'
++    fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
++echo "${ECHO_T}$ac_cv_prog_egrep" >&6
++ EGREP=$ac_cv_prog_egrep
++
++
++
++echo "$as_me:$LINENO: checking for AIX" >&5
++echo $ECHO_N "checking for AIX... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef _AIX
++  yes
++#endif
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "yes" >/dev/null 2>&1; then
++  echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++cat >>confdefs.h <<\_ACEOF
++#define _ALL_SOURCE 1
++_ACEOF
++
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++rm -f conftest*
++
++
++
++#### Extract some information from the operating system and machine files.
++
++{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
++ - which libraries the lib-src programs will want, and
++ - whether the GNU malloc routines are usable..." >&5
++echo "$as_me: checking the machine- and system-dependent files to find out
++ - which libraries the lib-src programs will want, and
++ - whether the GNU malloc routines are usable..." >&6;}
++
++### First figure out CFLAGS (which we use for running the compiler here)
++### and REAL_CFLAGS (which we use for real compilation).
++### The two are the same except on a few systems, where they are made
++### different to work around various lossages.  For example,
++### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
++### as implying static linking.
++
++### If the CFLAGS env var is specified, we use that value
++### instead of the default.
++
++### It's not important that this name contain the PID; you can't run
++### two configures in the same directory and have anything work
++### anyway.
++tempcname="conftest.c"
++
++echo '
++#include "'${srcdir}'/src/'${opsysfile}'"
++#include "'${srcdir}'/src/'${machfile}'"
++#ifndef LIBS_MACHINE
++#define LIBS_MACHINE
++#endif
++#ifndef LIBS_SYSTEM
++#define LIBS_SYSTEM
++#endif
++#ifndef C_SWITCH_SYSTEM
++#define C_SWITCH_SYSTEM
++#endif
++#ifndef C_SWITCH_MACHINE
++#define C_SWITCH_MACHINE
++#endif
++configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
++configure___ c_switch_system=C_SWITCH_SYSTEM
++configure___ c_switch_machine=C_SWITCH_MACHINE
++
++#ifndef LIB_X11_LIB
++#define LIB_X11_LIB -lX11
++#endif
++
++#ifndef LIBX11_MACHINE
++#define LIBX11_MACHINE
++#endif
++
++#ifndef LIBX11_SYSTEM
++#define LIBX11_SYSTEM
++#endif
++configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
++
++#ifdef UNEXEC
++configure___ unexec=UNEXEC
++#else
++configure___ unexec=unexec.o
++#endif
++
++#ifdef SYSTEM_MALLOC
++configure___ system_malloc=yes
++#else
++configure___ system_malloc=no
++#endif
++
++#ifdef USE_MMAP_FOR_BUFFERS
++configure___ use_mmap_for_buffers=yes
++#else
++configure___ use_mmap_for_buffers=no
++#endif
++
++#ifndef C_DEBUG_SWITCH
++#define C_DEBUG_SWITCH -g
++#endif
++
++#ifndef C_OPTIMIZE_SWITCH
++#ifdef __GNUC__
++#define C_OPTIMIZE_SWITCH -O2
++#else
++#define C_OPTIMIZE_SWITCH -O
++#endif
++#endif
++
++#ifndef LD_SWITCH_MACHINE
++#define LD_SWITCH_MACHINE
++#endif
++
++#ifndef LD_SWITCH_SYSTEM
++#define LD_SWITCH_SYSTEM
++#endif
++
++#ifndef LD_SWITCH_X_SITE_AUX
++#define LD_SWITCH_X_SITE_AUX
++#endif
++
++configure___ ld_switch_system=LD_SWITCH_SYSTEM
++configure___ ld_switch_machine=LD_SWITCH_MACHINE
++
++#ifdef THIS_IS_CONFIGURE
++
++/* Get the CFLAGS for tests in configure.  */
++#ifdef __GNUC__
++configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
++#else
++configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
++#endif
++
++#else /* not THIS_IS_CONFIGURE */
++
++/* Get the CFLAGS for real compilation.  */
++#ifdef __GNUC__
++configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
++#else
++configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
++#endif
++
++#endif /* not THIS_IS_CONFIGURE */
++' > ${tempcname}
++
++# The value of CPP is a quoted variable reference, so we need to do this
++# to get its actual value...
++CPP=`eval "echo $CPP"`
++eval `${CPP} -Isrc ${tempcname} \
++       | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
++if test "x$SPECIFIED_CFLAGS" = x; then
++  eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
++       | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
++else
++  REAL_CFLAGS="$CFLAGS"
++fi
++rm ${tempcname}
++
++ac_link="$ac_link $ld_switch_machine $ld_switch_system"
++
++### Make sure subsequent tests use flags consistent with the build flags.
++
++if test x"${OVERRIDE_CPPFLAGS}" != x; then
++  CPPFLAGS="${OVERRIDE_CPPFLAGS}"
++else
++  CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
++fi
++
++# Check whether --enable-largefile or --disable-largefile was given.
++if test "${enable_largefile+set}" = set; then
++  enableval="$enable_largefile"
++
++fi;
++if test "$enable_largefile" != no; then
++
++  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
++echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_largefile_CC+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_sys_largefile_CC=no
++     if test "$GCC" != yes; then
++       ac_save_CC=$CC
++       while :; do
++       # IRIX 6.2 and later do not support large files by default,
++       # so use the C compiler's -n32 option if that helps.
++       cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++                     && LARGE_OFF_T % 2147483647 == 1)
++                    ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++       rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++       CC="$CC -n32"
++       rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_largefile_CC=' -n32'; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext
++       break
++       done
++       CC=$ac_save_CC
++       rm -f conftest.$ac_ext
++    fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
++echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
++  if test "$ac_cv_sys_largefile_CC" != no; then
++    CC=$CC$ac_cv_sys_largefile_CC
++  fi
++
++  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
++echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_file_offset_bits+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  while :; do
++  ac_cv_sys_file_offset_bits=no
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++                     && LARGE_OFF_T % 2147483647 == 1)
++                    ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#define _FILE_OFFSET_BITS 64
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++                     && LARGE_OFF_T % 2147483647 == 1)
++                    ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_file_offset_bits=64; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  break
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
++echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
++if test "$ac_cv_sys_file_offset_bits" != no; then
++
++cat >>confdefs.h <<_ACEOF
++#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
++_ACEOF
++
++fi
++rm -f conftest*
++  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
++echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_large_files+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  while :; do
++  ac_cv_sys_large_files=no
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++                     && LARGE_OFF_T % 2147483647 == 1)
++                    ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#define _LARGE_FILES 1
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++    We can't simply define LARGE_OFF_T to be 9223372036854775807,
++    since some C++ compilers masquerading as C compilers
++    incorrectly reject 9223372036854775807.  */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++                     && LARGE_OFF_T % 2147483647 == 1)
++                    ? 1 : -1];
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_large_files=1; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  break
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
++echo "${ECHO_T}$ac_cv_sys_large_files" >&6
++if test "$ac_cv_sys_large_files" != no; then
++
++cat >>confdefs.h <<_ACEOF
++#define _LARGE_FILES $ac_cv_sys_large_files
++_ACEOF
++
++fi
++rm -f conftest*
++fi
++
++
++# Sound support for GNU/Linux and the free BSDs.
++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
++if test "${ac_cv_header_stdc+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdlib.h>
++#include <stdarg.h>
++#include <string.h>
++#include <float.h>
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_header_stdc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_stdc=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++
++if test $ac_cv_header_stdc = yes; then
++  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <string.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "memchr" >/dev/null 2>&1; then
++  :
++else
++  ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdlib.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "free" >/dev/null 2>&1; then
++  :
++else
++  ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
++  if test "$cross_compiling" = yes; then
++  :
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <ctype.h>
++#if ((' ' & 0x0FF) == 0x020)
++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
++#else
++# define ISLOWER(c) \
++                 (('a' <= (c) && (c) <= 'i') \
++                   || ('j' <= (c) && (c) <= 'r') \
++                   || ('s' <= (c) && (c) <= 'z'))
++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
++#endif
++
++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
++int
++main ()
++{
++  int i;
++  for (i = 0; i < 256; i++)
++    if (XOR (islower (i), ISLOWER (i))
++      || toupper (i) != TOUPPER (i))
++      exit(2);
++  exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_header_stdc=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
++echo "${ECHO_T}$ac_cv_header_stdc" >&6
++if test $ac_cv_header_stdc = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define STDC_HEADERS 1
++_ACEOF
++
++fi
++
++# On IRIX 5.3, sys/types and inttypes.h are conflicting.
++
++
++
++
++
++
++
++
++
++for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
++                inttypes.h stdint.h unistd.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_Header=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_Header=no"
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++
++
++
++for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++# Emulation library used on NetBSD.
++echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
++echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
++if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lossaudio  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char _oss_ioctl ();
++int
++main ()
++{
++_oss_ioctl ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_ossaudio__oss_ioctl=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_ossaudio__oss_ioctl=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
++echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
++if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
++  LIBSOUND=-lossaudio
++else
++  LIBSOUND=
++fi
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
++  linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
++  termcap.h stdio_ext.h fcntl.h term.h strings.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++echo "$as_me:$LINENO: checking for ANSI C header files" >&5
++echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
++if test "${ac_cv_header_stdc+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdlib.h>
++#include <stdarg.h>
++#include <string.h>
++#include <float.h>
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_header_stdc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_stdc=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++
++if test $ac_cv_header_stdc = yes; then
++  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <string.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "memchr" >/dev/null 2>&1; then
++  :
++else
++  ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdlib.h>
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "free" >/dev/null 2>&1; then
++  :
++else
++  ac_cv_header_stdc=no
++fi
++rm -f conftest*
++
++fi
++
++if test $ac_cv_header_stdc = yes; then
++  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
++  if test "$cross_compiling" = yes; then
++  :
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <ctype.h>
++#if ((' ' & 0x0FF) == 0x020)
++# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
++# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
++#else
++# define ISLOWER(c) \
++                 (('a' <= (c) && (c) <= 'i') \
++                   || ('j' <= (c) && (c) <= 'r') \
++                   || ('s' <= (c) && (c) <= 'z'))
++# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
++#endif
++
++#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
++int
++main ()
++{
++  int i;
++  for (i = 0; i < 256; i++)
++    if (XOR (islower (i), ISLOWER (i))
++      || toupper (i) != TOUPPER (i))
++      exit(2);
++  exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_header_stdc=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
++echo "${ECHO_T}$ac_cv_header_stdc" >&6
++if test $ac_cv_header_stdc = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define STDC_HEADERS 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
++echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
++if test "${ac_cv_header_time+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <sys/time.h>
++#include <time.h>
++
++int
++main ()
++{
++if ((struct tm *) 0)
++return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_header_time=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_time=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
++echo "${ECHO_T}$ac_cv_header_time" >&6
++if test $ac_cv_header_time = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define TIME_WITH_SYS_TIME 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
++echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
++if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <signal.h>
++/* NetBSD declares sys_siglist in unistd.h.  */
++#if HAVE_UNISTD_H
++# include <unistd.h>
++#endif
++
++
++int
++main ()
++{
++#ifndef sys_siglist
++  char *p = (char *) sys_siglist;
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_have_decl_sys_siglist=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_have_decl_sys_siglist=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
++echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
++if test $ac_cv_have_decl_sys_siglist = yes; then
++
++cat >>confdefs.h <<_ACEOF
++#define HAVE_DECL_SYS_SIGLIST 1
++_ACEOF
++
++
++else
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_DECL_SYS_SIGLIST 0
++_ACEOF
++
++
++fi
++
++
++
++echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
++echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
++if test "${ac_cv_header_sys_wait_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <sys/wait.h>
++#ifndef WEXITSTATUS
++# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
++#endif
++#ifndef WIFEXITED
++# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
++#endif
++
++int
++main ()
++{
++  int s;
++  wait (&s);
++  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_header_sys_wait_h=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_header_sys_wait_h=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
++echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
++if test $ac_cv_header_sys_wait_h = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_SYS_WAIT_H 1
++_ACEOF
++
++fi
++
++
++echo "$as_me:$LINENO: checking for struct utimbuf" >&5
++echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
++if test "${emacs_cv_struct_utimbuf+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef TIME_WITH_SYS_TIME
++#include <sys/time.h>
++#include <time.h>
++#else
++#ifdef HAVE_SYS_TIME_H
++#include <sys/time.h>
++#else
++#include <time.h>
++#endif
++#endif
++#ifdef HAVE_UTIME_H
++#include <utime.h>
++#endif
++int
++main ()
++{
++static struct utimbuf x; x.actime = x.modtime;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_struct_utimbuf=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_struct_utimbuf=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
++echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
++if test $emacs_cv_struct_utimbuf = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_STRUCT_UTIMBUF 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking return type of signal handlers" >&5
++echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
++if test "${ac_cv_type_signal+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <signal.h>
++#ifdef signal
++# undef signal
++#endif
++#ifdef __cplusplus
++extern "C" void (*signal (int, void (*)(int)))(int);
++#else
++void (*signal ()) ();
++#endif
++
++int
++main ()
++{
++int i;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_type_signal=void
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_signal=int
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
++echo "${ECHO_T}$ac_cv_type_signal" >&6
++
++cat >>confdefs.h <<_ACEOF
++#define RETSIGTYPE $ac_cv_type_signal
++_ACEOF
++
++
++
++echo "$as_me:$LINENO: checking for speed_t" >&5
++echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
++if test "${emacs_cv_speed_t+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <termios.h>
++int
++main ()
++{
++speed_t x = 1;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_speed_t=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_speed_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
++echo "${ECHO_T}$emacs_cv_speed_t" >&6
++if test $emacs_cv_speed_t = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_SPEED_T 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for struct timeval" >&5
++echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
++if test "${emacs_cv_struct_timeval+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef TIME_WITH_SYS_TIME
++#include <sys/time.h>
++#include <time.h>
++#else
++#ifdef HAVE_SYS_TIME_H
++#include <sys/time.h>
++#else
++#include <time.h>
++#endif
++#endif
++int
++main ()
++{
++static struct timeval x; x.tv_sec = x.tv_usec;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_struct_timeval=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_struct_timeval=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
++echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
++HAVE_TIMEVAL=$emacs_cv_struct_timeval
++if test $emacs_cv_struct_timeval = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_TIMEVAL 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for struct exception" >&5
++echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
++if test "${emacs_cv_struct_exception+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <math.h>
++int
++main ()
++{
++static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_struct_exception=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_struct_exception=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
++echo "${ECHO_T}$emacs_cv_struct_exception" >&6
++HAVE_EXCEPTION=$emacs_cv_struct_exception
++if test $emacs_cv_struct_exception != yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define NO_MATHERR 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
++echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
++if test "${ac_cv_struct_tm+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <time.h>
++
++int
++main ()
++{
++struct tm *tp; tp->tm_sec;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_struct_tm=time.h
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_struct_tm=sys/time.h
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
++echo "${ECHO_T}$ac_cv_struct_tm" >&6
++if test $ac_cv_struct_tm = sys/time.h; then
++
++cat >>confdefs.h <<\_ACEOF
++#define TM_IN_SYS_TIME 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
++echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
++if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <$ac_cv_struct_tm>
++
++
++int
++main ()
++{
++static struct tm ac_aggr;
++if (ac_aggr.tm_zone)
++return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_member_struct_tm_tm_zone=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/types.h>
++#include <$ac_cv_struct_tm>
++
++
++int
++main ()
++{
++static struct tm ac_aggr;
++if (sizeof ac_aggr.tm_zone)
++return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_member_struct_tm_tm_zone=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_member_struct_tm_tm_zone=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
++echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
++if test $ac_cv_member_struct_tm_tm_zone = yes; then
++
++cat >>confdefs.h <<_ACEOF
++#define HAVE_STRUCT_TM_TM_ZONE 1
++_ACEOF
++
++
++fi
++
++if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_TM_ZONE 1
++_ACEOF
++
++else
++  echo "$as_me:$LINENO: checking for tzname" >&5
++echo $ECHO_N "checking for tzname... $ECHO_C" >&6
++if test "${ac_cv_var_tzname+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <time.h>
++#ifndef tzname /* For SGI.  */
++extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
++#endif
++
++int
++main ()
++{
++atoi(*tzname);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_var_tzname=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_var_tzname=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
++echo "${ECHO_T}$ac_cv_var_tzname" >&6
++  if test $ac_cv_var_tzname = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_TZNAME 1
++_ACEOF
++
++  fi
++fi
++
++echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
++echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
++if test "${emacs_cv_tm_gmtoff+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <time.h>
++int
++main ()
++{
++struct tm t; t.tm_gmtoff = 0
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_tm_gmtoff=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_tm_gmtoff=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
++echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
++if test $emacs_cv_tm_gmtoff = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_TM_GMTOFF 1
++_ACEOF
++
++fi
++
++
++echo "$as_me:$LINENO: checking for function prototypes" >&5
++echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
++if test "$ac_cv_prog_cc_stdc" != no; then
++  echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++
++cat >>confdefs.h <<\_ACEOF
++#define PROTOTYPES 1
++_ACEOF
++
++
++cat >>confdefs.h <<\_ACEOF
++#define __PROTOTYPES 1
++_ACEOF
++
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++echo "$as_me:$LINENO: checking for working volatile" >&5
++echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
++if test "${ac_cv_c_volatile+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++volatile int x;
++int * volatile y;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_c_volatile=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_c_volatile=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
++echo "${ECHO_T}$ac_cv_c_volatile" >&6
++if test $ac_cv_c_volatile = no; then
++
++cat >>confdefs.h <<\_ACEOF
++#define volatile
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
++echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
++if test "${ac_cv_c_const+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++/* FIXME: Include the comments suggested by Paul. */
++#ifndef __cplusplus
++  /* Ultrix mips cc rejects this.  */
++  typedef int charset[2];
++  const charset x;
++  /* SunOS 4.1.1 cc rejects this.  */
++  char const *const *ccp;
++  char **p;
++  /* NEC SVR4.0.2 mips cc rejects this.  */
++  struct point {int x, y;};
++  static struct point const zero = {0,0};
++  /* AIX XL C 1.02.0.0 rejects this.
++     It does not let you subtract one const X* pointer from another in
++     an arm of an if-expression whose if-part is not a constant
++     expression */
++  const char *g = "string";
++  ccp = &g + (g ? g-g : 0);
++  /* HPUX 7.0 cc rejects these. */
++  ++ccp;
++  p = (char**) ccp;
++  ccp = (char const *const *) p;
++  { /* SCO 3.2v4 cc rejects this.  */
++    char *t;
++    char const *s = 0 ? (char *) 0 : (char const *) 0;
++
++    *t++ = 0;
++  }
++  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
++    int x[] = {25, 17};
++    const int *foo = &x[0];
++    ++foo;
++  }
++  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
++    typedef const int *iptr;
++    iptr p = 0;
++    ++p;
++  }
++  { /* AIX XL C 1.02.0.0 rejects this saying
++       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
++    struct s { int j; const int *ap[3]; };
++    struct s *b; b->j = 5;
++  }
++  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
++    const int foo = 10;
++  }
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_c_const=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_c_const=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
++echo "${ECHO_T}$ac_cv_c_const" >&6
++if test $ac_cv_c_const = no; then
++
++cat >>confdefs.h <<\_ACEOF
++#define const
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for void * support" >&5
++echo $ECHO_N "checking for void * support... $ECHO_C" >&6
++if test "${emacs_cv_void_star+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++void * foo;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_void_star=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_void_star=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
++echo "${ECHO_T}$emacs_cv_void_star" >&6
++if test $emacs_cv_void_star = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define POINTER_TYPE void
++_ACEOF
++
++else
++  cat >>confdefs.h <<\_ACEOF
++#define POINTER_TYPE char
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.make <<\_ACEOF
++all:
++      @echo 'ac_maketemp="$(MAKE)"'
++_ACEOF
++# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
++if test -n "$ac_maketemp"; then
++  eval ac_cv_prog_make_${ac_make}_set=yes
++else
++  eval ac_cv_prog_make_${ac_make}_set=no
++fi
++rm -f conftest.make
++fi
++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
++  echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++  SET_MAKE=
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++  SET_MAKE="MAKE=${MAKE-make}"
++fi
++
++
++echo "$as_me:$LINENO: checking for long file names" >&5
++echo $ECHO_N "checking for long file names... $ECHO_C" >&6
++if test "${ac_cv_sys_long_file_names+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_sys_long_file_names=yes
++# Test for long file names in all the places we know might matter:
++#      .              the current directory, where building will happen
++#      $prefix/lib    where we will be installing things
++#      $exec_prefix/lib       likewise
++# eval it to expand exec_prefix.
++#      $TMPDIR                if set, where it might want to write temporary files
++# if $TMPDIR is not set:
++#      /tmp           where it might want to write temporary files
++#      /var/tmp               likewise
++#      /usr/tmp               likewise
++if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
++  ac_tmpdirs=$TMPDIR
++else
++  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
++fi
++for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
++  test -d $ac_dir || continue
++  test -w $ac_dir || continue # It is less confusing to not echo anything here.
++  ac_xdir=$ac_dir/cf$$
++  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
++  ac_tf1=$ac_xdir/conftest9012345
++  ac_tf2=$ac_xdir/conftest9012346
++  (echo 1 >$ac_tf1) 2>/dev/null
++  (echo 2 >$ac_tf2) 2>/dev/null
++  ac_val=`cat $ac_tf1 2>/dev/null`
++  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
++    ac_cv_sys_long_file_names=no
++    rm -rf $ac_xdir 2>/dev/null
++    break
++  fi
++  rm -rf $ac_xdir 2>/dev/null
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
++echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
++if test $ac_cv_sys_long_file_names = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_LONG_FILE_NAMES 1
++_ACEOF
++
++fi
++
++
++#### Choose a window system.
++
++echo "$as_me:$LINENO: checking for X" >&5
++echo $ECHO_N "checking for X... $ECHO_C" >&6
++
++ac_path_x_has_been_run=yes
++
++# Check whether --with-x or --without-x was given.
++if test "${with_x+set}" = set; then
++  withval="$with_x"
++
++fi;
++# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
++if test "x$with_x" = xno; then
++  # The user explicitly disabled X.
++  have_x=disabled
++else
++  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
++    # Both variables are already set.
++    have_x=yes
++  else
++    if test "${ac_cv_have_x+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  # One or both of the vars are not set, and there is no cached value.
++ac_x_includes=no ac_x_libraries=no
++rm -fr conftest.dir
++if mkdir conftest.dir; then
++  cd conftest.dir
++  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
++  cat >Imakefile <<'_ACEOF'
++acfindx:
++      @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
++_ACEOF
++  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
++    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
++    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
++    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
++    for ac_extension in a so sl; do
++      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
++       test -f $ac_im_libdir/libX11.$ac_extension; then
++      ac_im_usrlibdir=$ac_im_libdir; break
++      fi
++    done
++    # Screen out bogus values from the imake configuration.  They are
++    # bogus both because they are the default anyway, and because
++    # using them would break gcc on systems where it needs fixed includes.
++    case $ac_im_incroot in
++      /usr/include) ;;
++      *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
++    esac
++    case $ac_im_usrlibdir in
++      /usr/lib | /lib) ;;
++      *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
++    esac
++  fi
++  cd ..
++  rm -fr conftest.dir
++fi
++
++# Standard set of common directories for X headers.
++# Check X11 before X11Rn because it is often a symlink to the current release.
++ac_x_header_dirs='
++/usr/X11/include
++/usr/X11R6/include
++/usr/X11R5/include
++/usr/X11R4/include
++
++/usr/include/X11
++/usr/include/X11R6
++/usr/include/X11R5
++/usr/include/X11R4
++
++/usr/local/X11/include
++/usr/local/X11R6/include
++/usr/local/X11R5/include
++/usr/local/X11R4/include
++
++/usr/local/include/X11
++/usr/local/include/X11R6
++/usr/local/include/X11R5
++/usr/local/include/X11R4
++
++/usr/X386/include
++/usr/x386/include
++/usr/XFree86/include/X11
++
++/usr/include
++/usr/local/include
++/usr/unsupported/include
++/usr/athena/include
++/usr/local/x11r5/include
++/usr/lpp/Xamples/include
++
++/usr/openwin/include
++/usr/openwin/share/include'
++
++if test "$ac_x_includes" = no; then
++  # Guess where to find include files, by looking for a specified header file.
++  # First, try using that file with no special directory specified.
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Intrinsic.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  # We can compile using X headers with no special include directory.
++ac_x_includes=
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  for ac_dir in $ac_x_header_dirs; do
++  if test -r "$ac_dir/X11/Intrinsic.h"; then
++    ac_x_includes=$ac_dir
++    break
++  fi
++done
++fi
++rm -f conftest.err conftest.$ac_ext
++fi # $ac_x_includes = no
++
++if test "$ac_x_libraries" = no; then
++  # Check for the libraries.
++  # See if we find them without any special options.
++  # Don't add to $LIBS permanently.
++  ac_save_LIBS=$LIBS
++  LIBS="-lXt $LIBS"
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Intrinsic.h>
++int
++main ()
++{
++XtMalloc (0)
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  LIBS=$ac_save_LIBS
++# We can link X programs with no special library path.
++ac_x_libraries=
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++LIBS=$ac_save_LIBS
++for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
++do
++  # Don't even attempt the hair of trying to link an X program!
++  for ac_extension in a so sl; do
++    if test -r $ac_dir/libXt.$ac_extension; then
++      ac_x_libraries=$ac_dir
++      break 2
++    fi
++  done
++done
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi # $ac_x_libraries = no
++
++if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
++  # Didn't find X anywhere.  Cache the known absence of X.
++  ac_cv_have_x="have_x=no"
++else
++  # Record where we found X for the cache.
++  ac_cv_have_x="have_x=yes \
++              ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
++fi
++fi
++
++  fi
++  eval "$ac_cv_have_x"
++fi # $with_x != no
++
++if test "$have_x" != yes; then
++  echo "$as_me:$LINENO: result: $have_x" >&5
++echo "${ECHO_T}$have_x" >&6
++  no_x=yes
++else
++  # If each of the values was on the command line, it overrides each guess.
++  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
++  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
++  # Update the cache value to reflect the command line values.
++  ac_cv_have_x="have_x=yes \
++              ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
++  # It might be that x_includes is empty (headers are found in the
++  # standard search path. Then output the corresponding message
++  ac_out_x_includes=$x_includes
++  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
++  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
++echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
++fi
++
++if test "$no_x" = yes; then
++  window_system=none
++else
++  window_system=x11
++fi
++
++if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
++  LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
++  LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
++  x_default_search_path=""
++  for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
++    x_search_path="\
++${x_library}/X11/%L/%T/%N%C%S:\
++${x_library}/X11/%l/%T/%N%C%S:\
++${x_library}/X11/%T/%N%C%S:\
++${x_library}/X11/%L/%T/%N%S:\
++${x_library}/X11/%l/%T/%N%S:\
++${x_library}/X11/%T/%N%S"
++    if test x"${x_default_search_path}" = x; then
++      x_default_search_path=${x_search_path}
++    else
++      x_default_search_path="${x_search_path}:${x_default_search_path}"
++    fi
++  done
++fi
++if test "${x_includes}" != NONE && test -n "${x_includes}"; then
++  C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
++fi
++
++if test x"${x_includes}" = x; then
++  bitmapdir=/usr/include/X11/bitmaps
++else
++  # accumulate include directories that have X11 bitmap subdirectories
++  bmd_acc="dummyval"
++  for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
++    if test -d "${bmd}/X11/bitmaps"; then
++      bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
++    fi
++    if test -d "${bmd}/bitmaps"; then
++      bmd_acc="${bmd_acc}:${bmd}/bitmaps"
++    fi
++  done
++  if test ${bmd_acc} != "dummyval"; then
++    bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
++  fi
++fi
++
++case "${window_system}" in
++  x11 )
++    HAVE_X_WINDOWS=yes
++    HAVE_X11=yes
++    case "${with_x_toolkit}" in
++      athena | lucid ) USE_X_TOOLKIT=LUCID ;;
++      motif ) USE_X_TOOLKIT=MOTIF ;;
++      no ) USE_X_TOOLKIT=none ;;
++      * ) USE_X_TOOLKIT=maybe ;;
++    esac
++  ;;
++  none )
++    HAVE_X_WINDOWS=no
++    HAVE_X11=no
++    USE_X_TOOLKIT=none
++  ;;
++esac
++
++### If we're using X11, we should use the X menu package.
++HAVE_MENUS=no
++case ${HAVE_X11} in
++  yes ) HAVE_MENUS=yes ;;
++esac
++
++if test "${opsys}" = "hpux9"; then
++  case "${x_libraries}" in
++    *X11R4* )
++      opsysfile="s/hpux9-x11r4.h"
++      ;;
++  esac
++fi
++
++if test "${opsys}" = "hpux9shr"; then
++  case "${x_libraries}" in
++    *X11R4* )
++      opsysfile="s/hpux9shxr4.h"
++      ;;
++  esac
++fi
++
++### Compute the unexec source name from the object name.
++UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
++
++# Do the opsystem or machine files prohibit the use of the GNU malloc?
++# Assume not, until told otherwise.
++GNU_MALLOC=yes
++doug_lea_malloc=yes
++echo "$as_me:$LINENO: checking for malloc_get_state" >&5
++echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
++if test "${ac_cv_func_malloc_get_state+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define malloc_get_state innocuous_malloc_get_state
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char malloc_get_state (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef malloc_get_state
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char malloc_get_state ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
++choke me
++#else
++char (*f) () = malloc_get_state;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != malloc_get_state;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_malloc_get_state=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_malloc_get_state=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
++echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
++if test $ac_cv_func_malloc_get_state = yes; then
++  :
++else
++  doug_lea_malloc=no
++fi
++
++echo "$as_me:$LINENO: checking for malloc_set_state" >&5
++echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
++if test "${ac_cv_func_malloc_set_state+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define malloc_set_state innocuous_malloc_set_state
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char malloc_set_state (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef malloc_set_state
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char malloc_set_state ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
++choke me
++#else
++char (*f) () = malloc_set_state;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != malloc_set_state;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_malloc_set_state=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_malloc_set_state=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
++echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
++if test $ac_cv_func_malloc_set_state = yes; then
++  :
++else
++  doug_lea_malloc=no
++fi
++
++echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
++echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
++if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++extern void (* __after_morecore_hook)();
++int
++main ()
++{
++__after_morecore_hook = 0
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_var___after_morecore_hook=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_var___after_morecore_hook=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
++echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
++if test $emacs_cv_var___after_morecore_hook = no; then
++  doug_lea_malloc=no
++fi
++if test "${system_malloc}" = "yes"; then
++  GNU_MALLOC=no
++  GNU_MALLOC_reason="
++    (The GNU allocators don't work with this system configuration.)"
++fi
++if test "$doug_lea_malloc" = "yes" ; then
++  if test "$GNU_MALLOC" = yes ; then
++    GNU_MALLOC_reason="
++      (Using Doug Lea's new malloc from the GNU C Library.)"
++  fi
++  cat >>confdefs.h <<\_ACEOF
++#define DOUG_LEA_MALLOC 1
++_ACEOF
++
++fi
++
++if test x"${REL_ALLOC}" = x; then
++  REL_ALLOC=${GNU_MALLOC}
++fi
++
++
++
++
++for ac_header in stdlib.h unistd.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_func in getpagesize
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++echo "$as_me:$LINENO: checking for working mmap" >&5
++echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
++if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test "$cross_compiling" = yes; then
++  ac_cv_func_mmap_fixed_mapped=no
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++/* malloc might have been renamed as rpl_malloc. */
++#undef malloc
++
++/* Thanks to Mike Haertel and Jim Avera for this test.
++   Here is a matrix of mmap possibilities:
++      mmap private not fixed
++      mmap private fixed at somewhere currently unmapped
++      mmap private fixed at somewhere already mapped
++      mmap shared not fixed
++      mmap shared fixed at somewhere currently unmapped
++      mmap shared fixed at somewhere already mapped
++   For private mappings, we should verify that changes cannot be read()
++   back from the file, nor mmap's back from the file at a different
++   address.  (There have been systems where private was not correctly
++   implemented like the infamous i386 svr4.0, and systems where the
++   VM page cache was not coherent with the file system buffer cache
++   like early versions of FreeBSD and possibly contemporary NetBSD.)
++   For shared mappings, we should conversely verify that changes get
++   propagated back to all the places they're supposed to be.
++
++   Grep wants private fixed already mapped.
++   The main things grep needs to know about mmap are:
++   * does it exist and is it safe to write into the mmap'd area
++   * how to use it (BSD variants)  */
++
++#include <fcntl.h>
++#include <sys/mman.h>
++
++#if !STDC_HEADERS && !HAVE_STDLIB_H
++char *malloc ();
++#endif
++
++/* This mess was copied from the GNU getpagesize.h.  */
++#if !HAVE_GETPAGESIZE
++/* Assume that all systems that can run configure have sys/param.h.  */
++# if !HAVE_SYS_PARAM_H
++#  define HAVE_SYS_PARAM_H 1
++# endif
++
++# ifdef _SC_PAGESIZE
++#  define getpagesize() sysconf(_SC_PAGESIZE)
++# else /* no _SC_PAGESIZE */
++#  if HAVE_SYS_PARAM_H
++#   include <sys/param.h>
++#   ifdef EXEC_PAGESIZE
++#    define getpagesize() EXEC_PAGESIZE
++#   else /* no EXEC_PAGESIZE */
++#    ifdef NBPG
++#     define getpagesize() NBPG * CLSIZE
++#     ifndef CLSIZE
++#      define CLSIZE 1
++#     endif /* no CLSIZE */
++#    else /* no NBPG */
++#     ifdef NBPC
++#      define getpagesize() NBPC
++#     else /* no NBPC */
++#      ifdef PAGESIZE
++#       define getpagesize() PAGESIZE
++#      endif /* PAGESIZE */
++#     endif /* no NBPC */
++#    endif /* no NBPG */
++#   endif /* no EXEC_PAGESIZE */
++#  else /* no HAVE_SYS_PARAM_H */
++#   define getpagesize() 8192 /* punt totally */
++#  endif /* no HAVE_SYS_PARAM_H */
++# endif /* no _SC_PAGESIZE */
++
++#endif /* no HAVE_GETPAGESIZE */
++
++int
++main ()
++{
++  char *data, *data2, *data3;
++  int i, pagesize;
++  int fd;
++
++  pagesize = getpagesize ();
++
++  /* First, make a file with some known garbage in it. */
++  data = (char *) malloc (pagesize);
++  if (!data)
++    exit (1);
++  for (i = 0; i < pagesize; ++i)
++    *(data + i) = rand ();
++  umask (0);
++  fd = creat ("conftest.mmap", 0600);
++  if (fd < 0)
++    exit (1);
++  if (write (fd, data, pagesize) != pagesize)
++    exit (1);
++  close (fd);
++
++  /* Next, try to mmap the file at a fixed address which already has
++     something else allocated at it.  If we can, also make sure that
++     we see the same garbage.  */
++  fd = open ("conftest.mmap", O_RDWR);
++  if (fd < 0)
++    exit (1);
++  data2 = (char *) malloc (2 * pagesize);
++  if (!data2)
++    exit (1);
++  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
++  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
++                   MAP_PRIVATE | MAP_FIXED, fd, 0L))
++    exit (1);
++  for (i = 0; i < pagesize; ++i)
++    if (*(data + i) != *(data2 + i))
++      exit (1);
++
++  /* Finally, make sure that changes to the mapped area do not
++     percolate back to the file as seen by read().  (This is a bug on
++     some variants of i386 svr4.0.)  */
++  for (i = 0; i < pagesize; ++i)
++    *(data2 + i) = *(data2 + i) + 1;
++  data3 = (char *) malloc (pagesize);
++  if (!data3)
++    exit (1);
++  if (read (fd, data3, pagesize) != pagesize)
++    exit (1);
++  for (i = 0; i < pagesize; ++i)
++    if (*(data + i) != *(data3 + i))
++      exit (1);
++  close (fd);
++  exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_mmap_fixed_mapped=yes
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_func_mmap_fixed_mapped=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
++echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
++if test $ac_cv_func_mmap_fixed_mapped = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_MMAP 1
++_ACEOF
++
++fi
++rm -f conftest.mmap
++
++if test $use_mmap_for_buffers = yes; then
++  REL_ALLOC=no
++fi
++
++LIBS="$libsrc_libs $LIBS"
++
++
++echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
++echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
++if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ldnet  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dnet_ntoa ();
++int
++main ()
++{
++dnet_ntoa ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dnet_dnet_ntoa=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_dnet_dnet_ntoa=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
++echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
++if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBDNET 1
++_ACEOF
++
++  LIBS="-ldnet $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
++echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
++if test "${ac_cv_lib_Xbsd_main+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXbsd  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++
++int
++main ()
++{
++main ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xbsd_main=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xbsd_main=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
++echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
++if test $ac_cv_lib_Xbsd_main = yes; then
++  LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
++fi
++
++
++
++echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
++echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
++if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lpthreads  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char cma_open ();
++int
++main ()
++{
++cma_open ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_pthreads_cma_open=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_pthreads_cma_open=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
++echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
++if test $ac_cv_lib_pthreads_cma_open = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBPTHREADS 1
++_ACEOF
++
++  LIBS="-lpthreads $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
++echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
++if test -d /usr/X386/include; then
++  HAVE_XFREE386=yes
++  : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
++else
++  HAVE_XFREE386=no
++fi
++echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
++echo "${ECHO_T}$HAVE_XFREE386" >&6
++
++
++case ${host_os} in
++aix*)
++  echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
++echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
++if test "${gdb_cv_bigtoc+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++
++    case $GCC in
++    yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
++    *) gdb_cv_bigtoc=-bbigtoc ;;
++    esac
++
++    LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
++    cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++int i;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  :
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++gdb_cv_bigtoc=
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++
++fi
++echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
++echo "${ECHO_T}$gdb_cv_bigtoc" >&6
++  ;;
++esac
++
++# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
++# for the tests that follow.  We set it back to REAL_CFLAGS later on.
++
++REAL_CPPFLAGS="$CPPFLAGS"
++
++if test "${HAVE_X11}" = "yes"; then
++  DEFS="$C_SWITCH_X_SITE $DEFS"
++  LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
++  LIBS="$LIBX $LIBS"
++  CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
++  CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
++
++  # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
++  # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
++  # but it's more convenient here to set LD_RUN_PATH
++  # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
++  if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
++    LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
++    export LD_RUN_PATH
++  fi
++
++  if test "${opsys}" = "gnu-linux"; then
++    echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
++echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
++    cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++XOpenDisplay ("foo");
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  xlinux_first_failure=no
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++xlinux_first_failure=yes
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++    if test "${xlinux_first_failure}" = "yes"; then
++      OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
++      OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
++      OLD_CPPFLAGS="$CPPFLAGS"
++      OLD_LIBS="$LIBS"
++      LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
++      C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
++      CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
++      LIBS="$LIBS -b i486-linuxaout"
++      cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++int
++main ()
++{
++XOpenDisplay ("foo");
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  xlinux_second_failure=no
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++xlinux_second_failure=yes
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++      if test "${xlinux_second_failure}" = "yes"; then
++      # If we get the same failure with -b, there is no use adding -b.
++      # So take it out.  This plays safe.
++      LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
++      C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
++      CPPFLAGS="$OLD_CPPFLAGS"
++      LIBS="$OLD_LIBS"
++        echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++      else
++        echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++      fi
++    else
++      echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++    fi
++  fi
++
++  # Reportedly, some broken Solaris systems have XKBlib.h but are missing
++  # header files included from there.
++  echo "$as_me:$LINENO: checking for Xkb" >&5
++echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Xlib.h>
++#include <X11/XKBlib.h>
++int
++main ()
++{
++XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_xkb=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_xkb=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++  echo "$as_me:$LINENO: result: $emacs_xkb" >&5
++echo "${ECHO_T}$emacs_xkb" >&6
++  if test $emacs_xkb = yes; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_XKBGETKEYBOARD 1
++_ACEOF
++
++  fi
++
++
++
++
++
++for ac_func in XrmSetDatabase XScreenResourceString \
++XScreenNumberOfScreen XSetWMProtocols
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++fi
++
++if test "${window_system}" = "x11"; then
++  echo "$as_me:$LINENO: checking X11 version 6" >&5
++echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
++  if test "${emacs_cv_x11_version_6+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Xlib.h>
++int
++main ()
++{
++#if XlibSpecificationRelease < 6
++fail;
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_x11_version_6=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_x11_version_6=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++
++  if test $emacs_cv_x11_version_6 = yes; then
++    echo "$as_me:$LINENO: result: 6 or newer" >&5
++echo "${ECHO_T}6 or newer" >&6
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_X11R6 1
++_ACEOF
++
++  else
++    echo "$as_me:$LINENO: result: before 6" >&5
++echo "${ECHO_T}before 6" >&6
++  fi
++fi
++
++if test "${window_system}" = "x11"; then
++  echo "$as_me:$LINENO: checking X11 version 5" >&5
++echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
++  if test "${emacs_cv_x11_version_5+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Xlib.h>
++int
++main ()
++{
++#if XlibSpecificationRelease < 5
++fail;
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_x11_version_5=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_x11_version_5=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++
++  if test $emacs_cv_x11_version_5 = yes; then
++    echo "$as_me:$LINENO: result: 5 or newer" >&5
++echo "${ECHO_T}5 or newer" >&6
++    HAVE_X11R5=yes
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_X11R5 1
++_ACEOF
++
++  else
++    HAVE_X11R5=no
++    echo "$as_me:$LINENO: result: before 5" >&5
++echo "${ECHO_T}before 5" >&6
++  fi
++fi
++
++if test x"${USE_X_TOOLKIT}" = xmaybe; then
++  if test x"${HAVE_X11R5}" = xyes; then
++    echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
++echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
++    if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++#include <X11/Intrinsic.h>
++#include <X11/Xaw/Simple.h>
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_x11_version_5_with_xaw=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_x11_version_5_with_xaw=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++
++    if test $emacs_cv_x11_version_5_with_xaw = yes; then
++      echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
++echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
++      USE_X_TOOLKIT=LUCID
++    else
++      echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
++echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
++      USE_X_TOOLKIT=none
++    fi
++  else
++    USE_X_TOOLKIT=none
++  fi
++fi
++
++X_TOOLKIT_TYPE=$USE_X_TOOLKIT
++
++if test "${USE_X_TOOLKIT}" != "none"; then
++  echo "$as_me:$LINENO: checking X11 toolkit version" >&5
++echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
++  if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Intrinsic.h>
++int
++main ()
++{
++#if XtSpecificationRelease < 6
++fail;
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_x11_toolkit_version_6=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_x11_toolkit_version_6=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++
++  HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
++  if test $emacs_cv_x11_toolkit_version_6 = yes; then
++    echo "$as_me:$LINENO: result: 6 or newer" >&5
++echo "${ECHO_T}6 or newer" >&6
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_X11XTR6 1
++_ACEOF
++
++  else
++    echo "$as_me:$LINENO: result: before 6" >&5
++echo "${ECHO_T}before 6" >&6
++  fi
++
++  OLDLIBS="$LIBS"
++  if test x$HAVE_X11XTR6 = xyes; then
++    LIBS="-lXt -lSM -lICE $LIBS"
++  else
++    LIBS="-lXt $LIBS"
++  fi
++
++echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
++echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
++if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXmu  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char XmuConvertStandardSelection ();
++int
++main ()
++{
++XmuConvertStandardSelection ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xmu_XmuConvertStandardSelection=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
++echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
++if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBXMU 1
++_ACEOF
++
++  LIBS="-lXmu $LIBS"
++
++fi
++
++  test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
++fi
++
++# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
++if test "${HAVE_X11}" = "yes"; then
++  if test "${USE_X_TOOLKIT}" != "none"; then
++
++echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
++echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
++if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXext  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char XShapeQueryExtension ();
++int
++main ()
++{
++XShapeQueryExtension ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xext_XShapeQueryExtension=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xext_XShapeQueryExtension=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
++echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
++if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBXEXT 1
++_ACEOF
++
++  LIBS="-lXext $LIBS"
++
++fi
++
++  fi
++fi
++
++if test "${USE_X_TOOLKIT}" = "MOTIF"; then
++  echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
++echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
++if test "${emacs_cv_motif_version_2_1+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <Xm/Xm.h>
++int
++main ()
++{
++#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
++int x = 5;
++#else
++Motif version prior to 2.1.
++#endif
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_motif_version_2_1=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_motif_version_2_1=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
++echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
++  HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
++  if test $emacs_cv_motif_version_2_1 = yes; then
++    HAVE_LIBXP=no
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_MOTIF_2_1 1
++_ACEOF
++
++    echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
++echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
++if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXp  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char XpCreateContext ();
++int
++main ()
++{
++XpCreateContext ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xp_XpCreateContext=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xp_XpCreateContext=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
++echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
++if test $ac_cv_lib_Xp_XpCreateContext = yes; then
++  HAVE_LIBXP=yes
++fi
++
++    if test ${HAVE_LIBXP} = yes; then
++      cat >>confdefs.h <<\_ACEOF
++#define HAVE_LIBXP 1
++_ACEOF
++
++    fi
++  fi
++fi
++
++### Is -lXaw3d available?
++HAVE_XAW3D=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${USE_X_TOOLKIT}" != "none"; then
++    if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <X11/Xaw3d/Scrollbar.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
++echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/Xaw3d/Scrollbar.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
++echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
++if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
++echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
++
++fi
++if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
++  echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
++echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
++if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXaw3d  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char XawScrollbarSetThumb ();
++int
++main ()
++{
++XawScrollbarSetThumb ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
++echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
++if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
++  HAVE_XAW3D=yes
++fi
++
++fi
++
++
++    if test "${HAVE_XAW3D}" = "yes"; then
++      cat >>confdefs.h <<\_ACEOF
++#define HAVE_XAW3D 1
++_ACEOF
++
++    fi
++  fi
++fi
++
++
++USE_TOOLKIT_SCROLL_BARS=no
++if test "${with_toolkit_scroll_bars}" != "no"; then
++  if test "${USE_X_TOOLKIT}" != "none"; then
++    if test "${USE_X_TOOLKIT}" = "MOTIF"; then
++      cat >>confdefs.h <<\_ACEOF
++#define USE_TOOLKIT_SCROLL_BARS 1
++_ACEOF
++
++      HAVE_XAW3D=no
++      USE_TOOLKIT_SCROLL_BARS=yes
++    elif test "${HAVE_XAW3D}" = "yes"; then
++      cat >>confdefs.h <<\_ACEOF
++#define USE_TOOLKIT_SCROLL_BARS 1
++_ACEOF
++
++      USE_TOOLKIT_SCROLL_BARS=yes
++    fi
++  fi
++fi
++
++
++if test "${with_xim}" != "no"; then
++  cat >>confdefs.h <<\_ACEOF
++#define USE_XIM 1
++_ACEOF
++
++fi
++
++### Use -lXpm if available, unless `--with-xpm=no'.
++HAVE_XPM=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${with_xpm}" != "no"; then
++    if test "${ac_cv_header_X11_xpm_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
++echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <X11/xpm.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
++echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <X11/xpm.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
++echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
++if test "${ac_cv_header_X11_xpm_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_X11_xpm_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
++echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
++
++fi
++if test $ac_cv_header_X11_xpm_h = yes; then
++  echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
++echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
++if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lXpm -lX11 $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char XpmReadFileToPixmap ();
++int
++main ()
++{
++XpmReadFileToPixmap ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_Xpm_XpmReadFileToPixmap=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
++echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
++if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
++  HAVE_XPM=yes
++fi
++
++fi
++
++
++    if test "${HAVE_XPM}" = "yes"; then
++      echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
++echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
++      cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include "X11/xpm.h"
++#ifndef XpmReturnAllocPixels
++no_return_alloc_pixels
++#endif
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
++  HAVE_XPM=no
++else
++  HAVE_XPM=yes
++fi
++rm -f conftest*
++
++
++      if test "${HAVE_XPM}" = "yes"; then
++      echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++      else
++      echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++      fi
++    fi
++  fi
++
++  if test "${HAVE_XPM}" = "yes"; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_XPM 1
++_ACEOF
++
++  fi
++fi
++
++### Use -ljpeg if available, unless `--with-jpeg=no'.
++HAVE_JPEG=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${with_jpeg}" != "no"; then
++            if test "${ac_cv_header_jerror_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for jerror.h" >&5
++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
++if test "${ac_cv_header_jerror_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking jerror.h usability" >&5
++echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <jerror.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking jerror.h presence" >&5
++echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <jerror.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: jerror.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: jerror.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for jerror.h" >&5
++echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
++if test "${ac_cv_header_jerror_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_jerror_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
++echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
++
++fi
++if test $ac_cv_header_jerror_h = yes; then
++  echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
++echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
++if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ljpeg  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char jpeg_destroy_compress ();
++int
++main ()
++{
++jpeg_destroy_compress ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_jpeg_jpeg_destroy_compress=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_jpeg_jpeg_destroy_compress=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
++echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
++if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
++  HAVE_JPEG=yes
++fi
++
++fi
++
++
++  fi
++
++  if test "${HAVE_JPEG}" = "yes"; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_JPEG 1
++_ACEOF
++
++    cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++        #include <jpeglib.h>
++       version=JPEG_LIB_VERSION
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_JPEG 1
++_ACEOF
++
++else
++  { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
++echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
++        HAVE_JPEG=no
++fi
++rm -f conftest*
++
++  fi
++fi
++
++### Use -lpng if available, unless `--with-png=no'.
++HAVE_PNG=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${with_png}" != "no"; then
++    if test "${ac_cv_header_png_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for png.h" >&5
++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
++if test "${ac_cv_header_png_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
++echo "${ECHO_T}$ac_cv_header_png_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking png.h usability" >&5
++echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <png.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking png.h presence" >&5
++echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <png.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for png.h" >&5
++echo $ECHO_N "checking for png.h... $ECHO_C" >&6
++if test "${ac_cv_header_png_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_png_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
++echo "${ECHO_T}$ac_cv_header_png_h" >&6
++
++fi
++if test $ac_cv_header_png_h = yes; then
++  echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
++echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
++if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lpng -lz -lm $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char png_get_channels ();
++int
++main ()
++{
++png_get_channels ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_png_png_get_channels=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_png_png_get_channels=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
++echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
++if test $ac_cv_lib_png_png_get_channels = yes; then
++  HAVE_PNG=yes
++fi
++
++fi
++
++
++  fi
++
++  if test "${HAVE_PNG}" = "yes"; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_PNG 1
++_ACEOF
++
++  fi
++fi
++
++### Use -ltiff if available, unless `--with-tiff=no'.
++HAVE_TIFF=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${with_tiff}" != "no"; then
++    if test "${ac_cv_header_tiffio_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for tiffio.h" >&5
++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
++if test "${ac_cv_header_tiffio_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking tiffio.h usability" >&5
++echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <tiffio.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking tiffio.h presence" >&5
++echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <tiffio.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for tiffio.h" >&5
++echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
++if test "${ac_cv_header_tiffio_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_tiffio_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
++echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
++
++fi
++if test $ac_cv_header_tiffio_h = yes; then
++  tifflibs="-lz -lm"
++      # At least one tiff package requires the jpeg library.
++      if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
++      echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
++echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
++if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ltiff $tifflibs $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char TIFFGetVersion ();
++int
++main ()
++{
++TIFFGetVersion ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_tiff_TIFFGetVersion=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_tiff_TIFFGetVersion=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
++echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
++if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
++  HAVE_TIFF=yes
++fi
++
++fi
++
++
++  fi
++
++  if test "${HAVE_TIFF}" = "yes"; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_TIFF 1
++_ACEOF
++
++  fi
++fi
++
++### Use -lgif if available, unless `--with-gif=no'.
++HAVE_GIF=no
++if test "${HAVE_X11}" = "yes"; then
++  if test "${with_gif}" != "no"; then
++    if test "${ac_cv_header_gif_lib_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for gif_lib.h" >&5
++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
++if test "${ac_cv_header_gif_lib_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
++echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <gif_lib.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
++echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <gif_lib.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: gif_lib.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: gif_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for gif_lib.h" >&5
++echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
++if test "${ac_cv_header_gif_lib_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_gif_lib_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
++echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
++
++fi
++if test $ac_cv_header_gif_lib_h = yes; then
++  # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
++# Earlier versions can crash Emacs.
++      echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
++echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
++if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lungif  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char EGifPutExtensionLast ();
++int
++main ()
++{
++EGifPutExtensionLast ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_ungif_EGifPutExtensionLast=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_ungif_EGifPutExtensionLast=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
++echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
++if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
++  HAVE_GIF=yes
++fi
++
++fi
++
++
++  fi
++
++  if test "${HAVE_GIF}" = "yes"; then
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_GIF 1
++_ACEOF
++
++  fi
++fi
++
++# If netdb.h doesn't declare h_errno, we must declare it by hand.
++echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
++echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
++if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <netdb.h>
++int
++main ()
++{
++return h_errno;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_netdb_declares_h_errno=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_netdb_declares_h_errno=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
++echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
++if test $emacs_cv_netdb_declares_h_errno = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_H_ERRNO 1
++_ACEOF
++
++fi
++
++# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
++# for constant arguments.  Useless!
++echo "$as_me:$LINENO: checking for working alloca.h" >&5
++echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
++if test "${ac_cv_working_alloca_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <alloca.h>
++int
++main ()
++{
++char *p = (char *) alloca (2 * sizeof (int));
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_working_alloca_h=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_working_alloca_h=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
++echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
++if test $ac_cv_working_alloca_h = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_ALLOCA_H 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking for alloca" >&5
++echo $ECHO_N "checking for alloca... $ECHO_C" >&6
++if test "${ac_cv_func_alloca_works+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#ifdef __GNUC__
++# define alloca __builtin_alloca
++#else
++# ifdef _MSC_VER
++#  include <malloc.h>
++#  define alloca _alloca
++# else
++#  if HAVE_ALLOCA_H
++#   include <alloca.h>
++#  else
++#   ifdef _AIX
++ #pragma alloca
++#   else
++#    ifndef alloca /* predefined by HP cc +Olibcalls */
++char *alloca ();
++#    endif
++#   endif
++#  endif
++# endif
++#endif
++
++int
++main ()
++{
++char *p = (char *) alloca (1);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_alloca_works=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_alloca_works=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
++echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
++
++if test $ac_cv_func_alloca_works = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_ALLOCA 1
++_ACEOF
++
++else
++  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
++# that cause trouble.  Some versions do not even contain alloca or
++# contain a buggy version.  If you still want to use their alloca,
++# use ar to extract alloca.o from them instead of compiling alloca.c.
++
++ALLOCA=alloca.$ac_objext
++
++cat >>confdefs.h <<\_ACEOF
++#define C_ALLOCA 1
++_ACEOF
++
++
++echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
++echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
++if test "${ac_cv_os_cray+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#if defined(CRAY) && ! defined(CRAY2)
++webecray
++#else
++wenotbecray
++#endif
++
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "webecray" >/dev/null 2>&1; then
++  ac_cv_os_cray=yes
++else
++  ac_cv_os_cray=no
++fi
++rm -f conftest*
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
++echo "${ECHO_T}$ac_cv_os_cray" >&6
++if test $ac_cv_os_cray = yes; then
++  for ac_func in _getb67 GETB67 getb67; do
++    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++
++cat >>confdefs.h <<_ACEOF
++#define CRAY_STACKSEG_END $ac_func
++_ACEOF
++
++    break
++fi
++
++  done
++fi
++
++echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
++echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
++if test "${ac_cv_c_stack_direction+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test "$cross_compiling" = yes; then
++  ac_cv_c_stack_direction=0
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++int
++find_stack_direction ()
++{
++  static char *addr = 0;
++  auto char dummy;
++  if (addr == 0)
++    {
++      addr = &dummy;
++      return find_stack_direction ();
++    }
++  else
++    return (&dummy > addr) ? 1 : -1;
++}
++
++int
++main ()
++{
++  exit (find_stack_direction () < 0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_c_stack_direction=1
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_c_stack_direction=-1
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
++echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
++
++cat >>confdefs.h <<_ACEOF
++#define STACK_DIRECTION $ac_cv_c_stack_direction
++_ACEOF
++
++
++fi
++
++
++# fmod, logb, and frexp are found in -lm on most systems.
++# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
++
++echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
++echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
++if test "${ac_cv_lib_m_sqrt+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lm  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char sqrt ();
++int
++main ()
++{
++sqrt ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_m_sqrt=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_m_sqrt=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
++echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
++if test $ac_cv_lib_m_sqrt = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBM 1
++_ACEOF
++
++  LIBS="-lm $LIBS"
++
++fi
++
++
++# Check for mail-locking functions in a "mail" library Check for
++# lockfile first, a free replacement for -lmail.  We use AC_CHECK_LIB
++# for touchlock because we don't want to have to put the lock libs
++# into LIBS and AC_CHECK_FUNCS would require that.
++
++echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
++echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
++if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-llockfile  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char maillock ();
++int
++main ()
++{
++maillock ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_lockfile_maillock=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_lockfile_maillock=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
++echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
++if test $ac_cv_lib_lockfile_maillock = yes; then
++   cat >>confdefs.h <<\_ACEOF
++#define HAVE_LIBMAIL 1
++_ACEOF
++
++    MOVEMAIL_LOCK_LIBS="-llockfile"
++    echo "$as_me:$LINENO: checking for touchlock in -llockfile" >&5
++echo $ECHO_N "checking for touchlock in -llockfile... $ECHO_C" >&6
++if test "${ac_cv_lib_lockfile_touchlock+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-llockfile  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char touchlock ();
++int
++main ()
++{
++touchlock ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_lockfile_touchlock=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_lockfile_touchlock=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_touchlock" >&5
++echo "${ECHO_T}$ac_cv_lib_lockfile_touchlock" >&6
++if test $ac_cv_lib_lockfile_touchlock = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_TOUCHLOCK 1
++_ACEOF
++
++fi
++
++
++for ac_header in maillock.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++else
++   echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
++echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
++if test "${ac_cv_lib_mail_maillock+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lmail  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char maillock ();
++int
++main ()
++{
++maillock ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_mail_maillock=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_mail_maillock=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
++echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
++if test $ac_cv_lib_mail_maillock = yes; then
++   cat >>confdefs.h <<\_ACEOF
++#define HAVE_LIBMAIL 1
++_ACEOF
++
++               MOVEMAIL_LOCK_LIBS="-lmail"
++               echo "$as_me:$LINENO: checking for touchlock in -lmail" >&5
++echo $ECHO_N "checking for touchlock in -lmail... $ECHO_C" >&6
++if test "${ac_cv_lib_mail_touchlock+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lmail  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char touchlock ();
++int
++main ()
++{
++touchlock ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_mail_touchlock=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_mail_touchlock=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_mail_touchlock" >&5
++echo "${ECHO_T}$ac_cv_lib_mail_touchlock" >&6
++if test $ac_cv_lib_mail_touchlock = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_TOUCHLOCK 1
++_ACEOF
++
++fi
++
++
++for ac_func in touchlock
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++for ac_header in maillock.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++fi
++
++fi
++
++
++
++# Tests borrowed (and slightly rearranged) from old paths.el
++# rmail-spool-directory tests.  They should be in the order most
++# likely to get the right answer.  You can always override them on the
++# system level in src/s/* and on a one-shot basis with
++# --with-mail-spool-directory.
++
++echo "$as_me:$LINENO: checking for mail spool location" >&5
++echo $ECHO_N "checking for mail spool location... $ECHO_C" >&6
++if test "${with_mail_spool+set}" = set; then
++  echo "$as_me:$LINENO: result: ${with_mail_spool}" >&5
++echo "${ECHO_T}${with_mail_spool}" >&6
++elif test -d /var/mail/; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_SPOOL_DIRECTORY "/var/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/var/mail\"" >&5
++echo "${ECHO_T}\"/var/mail\"" >&6
++elif test -d /var/spool/mail/; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_SPOOL_DIRECTORY "/var/spool/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/var/spool/mail\"" >&5
++echo "${ECHO_T}\"/var/spool/mail\"" >&6
++elif test -d /usr/mail/; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/usr/mail\"" >&5
++echo "${ECHO_T}\"/usr/mail\"" >&6
++elif test -d /usr/spool/mail/; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_SPOOL_DIRECTORY "/usr/spool/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/usr/spool/mail\"" >&5
++echo "${ECHO_T}\"/usr/spool/mail\"" >&6
++else
++  echo "$as_me:$LINENO: result: not found" >&5
++echo "${ECHO_T}not found" >&6
++fi
++
++# Find the location of "mail".  This is critical for fakemail at
++# least.  before fakemail would silently fail if this was wrong, so
++# insist on finding it.
++echo "$as_me:$LINENO: checking for mail binary" >&5
++echo $ECHO_N "checking for mail binary... $ECHO_C" >&6
++if test -x /bin/mail; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_PROGRAM_NAME "/bin/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/bin/mail\"" >&5
++echo "${ECHO_T}\"/bin/mail\"" >&6
++elif test -x /usr/bin/mail; then
++  cat >>confdefs.h <<_ACEOF
++#define CONF_MAIL_PROGRAM_NAME "/usr/bin/mail"
++_ACEOF
++
++  echo "$as_me:$LINENO: result: \"/usr/bin/mail\"" >&5
++echo "${ECHO_T}\"/usr/bin/mail\"" >&6
++else
++  { { echo "$as_me:$LINENO: error: could not find mail binary" >&5
++echo "$as_me: error: could not find mail binary" >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++for ac_func in gethostname getdomainname dup2 \
++rename closedir mkdir rmdir sysinfo \
++random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
++strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
++utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
++__fpending mblen mbrlen strsignal setitimer ualarm index rindex \
++gai_strerror mkstemp
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++
++
++
++for ac_header in stdlib.h sys/time.h unistd.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++for ac_func in alarm
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++echo "$as_me:$LINENO: checking for working mktime" >&5
++echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
++if test "${ac_cv_func_working_mktime+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test "$cross_compiling" = yes; then
++  ac_cv_func_working_mktime=no
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Test program from Paul Eggert and Tony Leneis.  */
++#if TIME_WITH_SYS_TIME
++# include <sys/time.h>
++# include <time.h>
++#else
++# if HAVE_SYS_TIME_H
++#  include <sys/time.h>
++# else
++#  include <time.h>
++# endif
++#endif
++
++#if HAVE_STDLIB_H
++# include <stdlib.h>
++#endif
++
++#if HAVE_UNISTD_H
++# include <unistd.h>
++#endif
++
++#if !HAVE_ALARM
++# define alarm(X) /* empty */
++#endif
++
++/* Work around redefinition to rpl_putenv by other config tests.  */
++#undef putenv
++
++static time_t time_t_max;
++static time_t time_t_min;
++
++/* Values we'll use to set the TZ environment variable.  */
++static char *tz_strings[] = {
++  (char *) 0, "TZ=GMT0", "TZ=JST-9",
++  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
++};
++#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
++
++/* Fail if mktime fails to convert a date in the spring-forward gap.
++   Based on a problem report from Andreas Jaeger.  */
++static void
++spring_forward_gap ()
++{
++  /* glibc (up to about 1998-10-07) failed this test. */
++  struct tm tm;
++
++  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
++     instead of "TZ=America/Vancouver" in order to detect the bug even
++     on systems that don't support the Olson extension, or don't have the
++     full zoneinfo tables installed.  */
++  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
++
++  tm.tm_year = 98;
++  tm.tm_mon = 3;
++  tm.tm_mday = 5;
++  tm.tm_hour = 2;
++  tm.tm_min = 0;
++  tm.tm_sec = 0;
++  tm.tm_isdst = -1;
++  if (mktime (&tm) == (time_t)-1)
++    exit (1);
++}
++
++static void
++mktime_test1 (now)
++     time_t now;
++{
++  struct tm *lt;
++  if ((lt = localtime (&now)) && mktime (lt) != now)
++    exit (1);
++}
++
++static void
++mktime_test (now)
++     time_t now;
++{
++  mktime_test1 (now);
++  mktime_test1 ((time_t) (time_t_max - now));
++  mktime_test1 ((time_t) (time_t_min + now));
++}
++
++static void
++irix_6_4_bug ()
++{
++  /* Based on code from Ariel Faigon.  */
++  struct tm tm;
++  tm.tm_year = 96;
++  tm.tm_mon = 3;
++  tm.tm_mday = 0;
++  tm.tm_hour = 0;
++  tm.tm_min = 0;
++  tm.tm_sec = 0;
++  tm.tm_isdst = -1;
++  mktime (&tm);
++  if (tm.tm_mon != 2 || tm.tm_mday != 31)
++    exit (1);
++}
++
++static void
++bigtime_test (j)
++     int j;
++{
++  struct tm tm;
++  time_t now;
++  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
++  now = mktime (&tm);
++  if (now != (time_t) -1)
++    {
++      struct tm *lt = localtime (&now);
++      if (! (lt
++           && lt->tm_year == tm.tm_year
++           && lt->tm_mon == tm.tm_mon
++           && lt->tm_mday == tm.tm_mday
++           && lt->tm_hour == tm.tm_hour
++           && lt->tm_min == tm.tm_min
++           && lt->tm_sec == tm.tm_sec
++           && lt->tm_yday == tm.tm_yday
++           && lt->tm_wday == tm.tm_wday
++           && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
++                == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
++      exit (1);
++    }
++}
++
++int
++main ()
++{
++  time_t t, delta;
++  int i, j;
++
++  /* This test makes some buggy mktime implementations loop.
++     Give up after 60 seconds; a mktime slower than that
++     isn't worth using anyway.  */
++  alarm (60);
++
++  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
++    continue;
++  time_t_max--;
++  if ((time_t) -1 < 0)
++    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
++      continue;
++  delta = time_t_max / 997; /* a suitable prime number */
++  for (i = 0; i < N_STRINGS; i++)
++    {
++      if (tz_strings[i])
++      putenv (tz_strings[i]);
++
++      for (t = 0; t <= time_t_max - delta; t += delta)
++      mktime_test (t);
++      mktime_test ((time_t) 1);
++      mktime_test ((time_t) (60 * 60));
++      mktime_test ((time_t) (60 * 60 * 24));
++
++      for (j = 1; 0 < j; j *= 2)
++      bigtime_test (j);
++      bigtime_test (j - 1);
++    }
++  irix_6_4_bug ();
++  spring_forward_gap ();
++  exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_working_mktime=yes
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_func_working_mktime=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
++echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
++if test $ac_cv_func_working_mktime = no; then
++  case $LIBOBJS in
++    "mktime.$ac_objext"   | \
++  *" mktime.$ac_objext"   | \
++    "mktime.$ac_objext "* | \
++  *" mktime.$ac_objext "* ) ;;
++  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
++esac
++
++fi
++
++if test "$ac_cv_func_working_mktime" = no; then
++  cat >>confdefs.h <<\_ACEOF
++#define BROKEN_MKTIME 1
++_ACEOF
++
++fi
++
++ac_have_func=no # yes means we've found a way to get the load average.
++
++# Make sure getloadavg.c is where it belongs, at configure-time.
++test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
++  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
++echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
++   { (exit 1); exit 1; }; }
++
++ac_save_LIBS=$LIBS
++
++# Check for getloadavg, but be sure not to touch the cache variable.
++(echo "$as_me:$LINENO: checking for getloadavg" >&5
++echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
++if test "${ac_cv_func_getloadavg+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define getloadavg innocuous_getloadavg
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char getloadavg (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef getloadavg
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char getloadavg ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
++choke me
++#else
++char (*f) () = getloadavg;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != getloadavg;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_getloadavg=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_getloadavg=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
++echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
++if test $ac_cv_func_getloadavg = yes; then
++  exit 0
++else
++  exit 1
++fi
++) && ac_have_func=yes
++
++# On HPUX9, an unprivileged user can get load averages through this function.
++
++for ac_func in pstat_getdynamic
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++# Solaris has libkstat which does not require root.
++
++echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
++echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
++if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lkstat  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char kstat_open ();
++int
++main ()
++{
++kstat_open ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_kstat_kstat_open=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_kstat_kstat_open=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
++echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
++if test $ac_cv_lib_kstat_kstat_open = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBKSTAT 1
++_ACEOF
++
++  LIBS="-lkstat $LIBS"
++
++fi
++
++test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
++
++# Some systems with -lutil have (and need) -lkvm as well, some do not.
++# On Solaris, -lkvm requires nlist from -lelf, so check that first
++# to get the right answer into the cache.
++# For kstat on solaris, we need libelf to force the definition of SVR4 below.
++if test $ac_have_func = no; then
++  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
++echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
++if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lelf  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char elf_begin ();
++int
++main ()
++{
++elf_begin ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_elf_elf_begin=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_elf_elf_begin=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
++echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
++if test $ac_cv_lib_elf_elf_begin = yes; then
++  LIBS="-lelf $LIBS"
++fi
++
++fi
++if test $ac_have_func = no; then
++  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
++echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
++if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lkvm  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char kvm_open ();
++int
++main ()
++{
++kvm_open ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_kvm_kvm_open=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_kvm_kvm_open=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
++echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
++if test $ac_cv_lib_kvm_kvm_open = yes; then
++  LIBS="-lkvm $LIBS"
++fi
++
++  # Check for the 4.4BSD definition of getloadavg.
++  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
++echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
++if test "${ac_cv_lib_util_getloadavg+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lutil  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char getloadavg ();
++int
++main ()
++{
++getloadavg ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_util_getloadavg=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_util_getloadavg=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
++echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
++if test $ac_cv_lib_util_getloadavg = yes; then
++  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
++fi
++
++fi
++
++if test $ac_have_func = no; then
++  # There is a commonly available library for RS/6000 AIX.
++  # Since it is not a standard part of AIX, it might be installed locally.
++  ac_getloadavg_LIBS=$LIBS
++  LIBS="-L/usr/local/lib $LIBS"
++  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
++echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
++if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lgetloadavg  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char getloadavg ();
++int
++main ()
++{
++getloadavg ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_getloadavg_getloadavg=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_getloadavg_getloadavg=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
++echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
++if test $ac_cv_lib_getloadavg_getloadavg = yes; then
++  LIBS="-lgetloadavg $LIBS"
++else
++  LIBS=$ac_getloadavg_LIBS
++fi
++
++fi
++
++# Make sure it is really in the library, if we think we found it,
++# otherwise set up the replacement function.
++
++for ac_func in getloadavg
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++else
++  case $LIBOBJS in
++    "getloadavg.$ac_objext"   | \
++  *" getloadavg.$ac_objext"   | \
++    "getloadavg.$ac_objext "* | \
++  *" getloadavg.$ac_objext "* ) ;;
++  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
++esac
++
++
++cat >>confdefs.h <<\_ACEOF
++#define C_GETLOADAVG 1
++_ACEOF
++
++# Figure out what our getloadavg.c needs.
++ac_have_func=no
++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
++echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <sys/dg_sys_info.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
++echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/dg_sys_info.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
++echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
++if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
++echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
++
++fi
++if test $ac_cv_header_sys_dg_sys_info_h = yes; then
++  ac_have_func=yes
++
++cat >>confdefs.h <<\_ACEOF
++#define DGUX 1
++_ACEOF
++
++
++echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
++echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
++if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ldgc  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dg_sys_info ();
++int
++main ()
++{
++dg_sys_info ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_dgc_dg_sys_info=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_dgc_dg_sys_info=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
++echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
++if test $ac_cv_lib_dgc_dg_sys_info = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBDGC 1
++_ACEOF
++
++  LIBS="-ldgc $LIBS"
++
++fi
++
++fi
++
++
++
++if test "${ac_cv_header_locale_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for locale.h" >&5
++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
++if test "${ac_cv_header_locale_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking locale.h usability" >&5
++echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <locale.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking locale.h presence" >&5
++echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <locale.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for locale.h" >&5
++echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
++if test "${ac_cv_header_locale_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_locale_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
++echo "${ECHO_T}$ac_cv_header_locale_h" >&6
++
++fi
++
++
++
++for ac_func in setlocale
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
++# uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
++# Irix 4.0.5F has the header but not the library.
++if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
++  ac_have_func=yes
++
++cat >>confdefs.h <<\_ACEOF
++#define SVR4 1
++_ACEOF
++
++fi
++
++if test $ac_have_func = no; then
++  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
++echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <inq_stats/cpustats.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
++echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <inq_stats/cpustats.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
++echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
++if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
++echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
++
++fi
++if test $ac_cv_header_inq_stats_cpustats_h = yes; then
++  ac_have_func=yes
++
++cat >>confdefs.h <<\_ACEOF
++#define UMAX 1
++_ACEOF
++
++
++cat >>confdefs.h <<\_ACEOF
++#define UMAX4_3 1
++_ACEOF
++
++fi
++
++
++fi
++
++if test $ac_have_func = no; then
++  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
++echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <sys/cpustats.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
++echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/cpustats.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
++echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
++if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_sys_cpustats_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
++echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
++
++fi
++if test $ac_cv_header_sys_cpustats_h = yes; then
++  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
++#define UMAX 1
++_ACEOF
++
++fi
++
++
++fi
++
++if test $ac_have_func = no; then
++
++for ac_header in mach/mach.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++fi
++
++
++for ac_header in nlist.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++ echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
++echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
++if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <nlist.h>
++
++int
++main ()
++{
++static struct nlist ac_aggr;
++if (ac_aggr.n_un.n_name)
++return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_member_struct_nlist_n_un_n_name=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <nlist.h>
++
++int
++main ()
++{
++static struct nlist ac_aggr;
++if (sizeof ac_aggr.n_un.n_name)
++return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_member_struct_nlist_n_un_n_name=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_member_struct_nlist_n_un_n_name=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
++echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
++if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
++
++cat >>confdefs.h <<_ACEOF
++#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
++_ACEOF
++
++
++cat >>confdefs.h <<\_ACEOF
++#define NLIST_NAME_UNION 1
++_ACEOF
++
++fi
++
++
++fi
++
++done
++
++fi
++done
++
++
++# Some definitions of getloadavg require that the program be installed setgid.
++echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
++echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
++if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
++#ifdef LDAV_PRIVILEGED
++Yowza Am I SETGID yet
++#endif
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
++  ac_cv_func_getloadavg_setgid=yes
++else
++  ac_cv_func_getloadavg_setgid=no
++fi
++rm -f conftest*
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
++echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
++if test $ac_cv_func_getloadavg_setgid = yes; then
++  NEED_SETGID=true
++
++cat >>confdefs.h <<\_ACEOF
++#define GETLOADAVG_PRIVILEGED 1
++_ACEOF
++
++else
++  NEED_SETGID=false
++fi
++
++if test $ac_cv_func_getloadavg_setgid = yes; then
++  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
++echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
++if test "${ac_cv_group_kmem+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
++  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
++  # If we got an error (system does not support symlinks), try without -L.
++  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
++  ac_cv_group_kmem=`echo $ac_ls_output \
++    | sed -ne 's/[     ][      ]*/ /g;
++             s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
++             / /s/.* //;p;'`
++
++fi
++echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
++echo "${ECHO_T}$ac_cv_group_kmem" >&6
++  KMEM_GROUP=$ac_cv_group_kmem
++fi
++if test "x$ac_save_LIBS" = x; then
++  GETLOADAVG_LIBS=$LIBS
++else
++  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
++fi
++LIBS=$ac_save_LIBS
++
++
++
++echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
++echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
++if test "${ac_cv_sys_largefile_source+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  while :; do
++  ac_cv_sys_largefile_source=no
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdio.h>
++int
++main ()
++{
++return !fseeko;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#define _LARGEFILE_SOURCE 1
++#include <stdio.h>
++int
++main ()
++{
++return !fseeko;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_sys_largefile_source=1; break
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  break
++done
++fi
++echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
++echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
++if test "$ac_cv_sys_largefile_source" != no; then
++
++cat >>confdefs.h <<_ACEOF
++#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
++_ACEOF
++
++fi
++rm -f conftest*
++
++# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
++# in glibc 2.1.3, but that breaks too many other things.
++# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
++echo "$as_me:$LINENO: checking for fseeko" >&5
++echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
++if test "${ac_cv_func_fseeko+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <stdio.h>
++int
++main ()
++{
++return fseeko && fseeko (stdin, 0, 0);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_fseeko=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_fseeko=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
++echo "${ECHO_T}$ac_cv_func_fseeko" >&6
++if test $ac_cv_func_fseeko = yes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_FSEEKO 1
++_ACEOF
++
++fi
++
++
++# UNIX98 PTYs.
++
++for ac_func in grantpt
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++# PTY-related GNU extensions.
++
++for ac_func in getpt
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++
++# Check this now, so that we will NOT find the above functions in ncurses.
++# That is because we have not set up to link ncurses in lib-src.
++# It's better to believe a function is not available
++# than to expect to find it in ncurses.
++
++echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
++echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
++if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lncurses  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char tparm ();
++int
++main ()
++{
++tparm ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_ncurses_tparm=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_ncurses_tparm=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
++echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
++if test $ac_cv_lib_ncurses_tparm = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBNCURSES 1
++_ACEOF
++
++  LIBS="-lncurses $LIBS"
++
++fi
++
++
++# Do we need the Hesiod library to provide the support routines?
++if test "$with_hesiod" = yes ; then
++  # Don't set $LIBS here -- see comments above.
++  resolv=no
++  echo "$as_me:$LINENO: checking for res_send" >&5
++echo $ECHO_N "checking for res_send... $ECHO_C" >&6
++if test "${ac_cv_func_res_send+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define res_send innocuous_res_send
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char res_send (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef res_send
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char res_send ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_res_send) || defined (__stub___res_send)
++choke me
++#else
++char (*f) () = res_send;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != res_send;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_res_send=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_res_send=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
++echo "${ECHO_T}$ac_cv_func_res_send" >&6
++if test $ac_cv_func_res_send = yes; then
++  :
++else
++  echo "$as_me:$LINENO: checking for __res_send" >&5
++echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
++if test "${ac_cv_func___res_send+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define __res_send innocuous___res_send
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char __res_send (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef __res_send
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char __res_send ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub___res_send) || defined (__stub_____res_send)
++choke me
++#else
++char (*f) () = __res_send;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != __res_send;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func___res_send=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func___res_send=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
++echo "${ECHO_T}$ac_cv_func___res_send" >&6
++if test $ac_cv_func___res_send = yes; then
++  :
++else
++  echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
++echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
++if test "${ac_cv_lib_resolv_res_send+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lresolv  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char res_send ();
++int
++main ()
++{
++res_send ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_resolv_res_send=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_resolv_res_send=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
++echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
++if test $ac_cv_lib_resolv_res_send = yes; then
++  resolv=yes
++else
++  echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
++echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
++if test "${ac_cv_lib_resolv___res_send+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lresolv  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char __res_send ();
++int
++main ()
++{
++__res_send ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_resolv___res_send=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_resolv___res_send=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
++echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
++if test $ac_cv_lib_resolv___res_send = yes; then
++  resolv=yes
++fi
++
++fi
++
++fi
++
++fi
++
++  if test "$resolv" = yes ; then
++    RESOLVLIB=-lresolv
++    cat >>confdefs.h <<\_ACEOF
++#define HAVE_LIBRESOLV 1
++_ACEOF
++
++  else
++    RESOLVLIB=
++  fi
++  echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
++echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
++if test "${ac_cv_func_hes_getmailhost+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define hes_getmailhost innocuous_hes_getmailhost
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char hes_getmailhost (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef hes_getmailhost
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char hes_getmailhost ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
++choke me
++#else
++char (*f) () = hes_getmailhost;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != hes_getmailhost;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_hes_getmailhost=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_hes_getmailhost=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
++echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
++if test $ac_cv_func_hes_getmailhost = yes; then
++  :
++else
++  echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
++echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
++if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lhesiod $RESOLVLIB $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char hes_getmailhost ();
++int
++main ()
++{
++hes_getmailhost ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_hesiod_hes_getmailhost=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_hesiod_hes_getmailhost=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
++echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
++if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_LIBHESIOD 1
++_ACEOF
++
++else
++  :
++fi
++
++fi
++
++fi
++
++# These tell us which Kerberos-related libraries to use.
++if test "${with_kerberos+set}" = set; then
++
++echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
++echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
++if test "${ac_cv_lib_com_err_com_err+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lcom_err  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char com_err ();
++int
++main ()
++{
++com_err ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_com_err_com_err=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_com_err_com_err=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
++echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
++if test $ac_cv_lib_com_err_com_err = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBCOM_ERR 1
++_ACEOF
++
++  LIBS="-lcom_err $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
++if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lk5crypto  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char mit_des_cbc_encrypt ();
++int
++main ()
++{
++mit_des_cbc_encrypt ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
++echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
++if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBK5CRYPTO 1
++_ACEOF
++
++  LIBS="-lk5crypto $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
++echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
++if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lcrypto  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char mit_des_cbc_encrypt ();
++int
++main ()
++{
++mit_des_cbc_encrypt ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_crypto_mit_des_cbc_encrypt=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
++echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
++if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBCRYPTO 1
++_ACEOF
++
++  LIBS="-lcrypto $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
++echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
++if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lkrb5  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char krb5_init_context ();
++int
++main ()
++{
++krb5_init_context ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_krb5_krb5_init_context=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_krb5_krb5_init_context=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
++echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
++if test $ac_cv_lib_krb5_krb5_init_context = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBKRB5 1
++_ACEOF
++
++  LIBS="-lkrb5 $LIBS"
++
++fi
++
++  if test "${with_kerberos5+set}" != set; then
++
++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
++echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
++if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ldes425  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char des_cbc_encrypt ();
++int
++main ()
++{
++des_cbc_encrypt ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_des425_des_cbc_encrypt=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_des425_des_cbc_encrypt=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
++echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
++if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBDES425 1
++_ACEOF
++
++  LIBS="-ldes425 $LIBS"
++
++else
++
++echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
++echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
++if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-ldes  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char des_cbc_encrypt ();
++int
++main ()
++{
++des_cbc_encrypt ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_des_des_cbc_encrypt=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_des_des_cbc_encrypt=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
++echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
++if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBDES 1
++_ACEOF
++
++  LIBS="-ldes $LIBS"
++
++fi
++
++fi
++
++
++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
++echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
++if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lkrb4  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char krb_get_cred ();
++int
++main ()
++{
++krb_get_cred ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_krb4_krb_get_cred=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_krb4_krb_get_cred=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
++echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
++if test $ac_cv_lib_krb4_krb_get_cred = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBKRB4 1
++_ACEOF
++
++  LIBS="-lkrb4 $LIBS"
++
++else
++
++echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
++echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
++if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lkrb  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char krb_get_cred ();
++int
++main ()
++{
++krb_get_cred ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_krb_krb_get_cred=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_krb_krb_get_cred=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
++echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
++if test $ac_cv_lib_krb_krb_get_cred = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBKRB 1
++_ACEOF
++
++  LIBS="-lkrb $LIBS"
++
++fi
++
++fi
++
++  fi
++
++  if test "${with_kerberos5+set}" = set; then
++
++for ac_header in krb5.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++  else
++
++
++
++for ac_header in des.h kerberosIV/des.h kerberos/des.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++ break
++fi
++
++done
++
++
++
++
++for ac_header in krb.h kerberosIV/krb.h kerberos/krb.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++ break
++fi
++
++done
++
++  fi
++
++for ac_header in com_err.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++fi
++
++# Solaris requires -lintl if you want strerror (which calls dgettext)
++# to return localized messages.
++
++echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
++echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
++if test "${ac_cv_lib_intl_dgettext+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lintl  $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char dgettext ();
++int
++main ()
++{
++dgettext ();
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_lib_intl_dgettext=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_lib_intl_dgettext=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
++echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
++if test $ac_cv_lib_intl_dgettext = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define HAVE_LIBINTL 1
++_ACEOF
++
++  LIBS="-lintl $LIBS"
++
++fi
++
++
++echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
++echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
++if test "${emacs_cv_localtime_cache+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test x$ac_cv_func_tzset = xyes; then
++if test "$cross_compiling" = yes; then
++  # If we have tzset, assume the worst when cross-compiling.
++emacs_cv_localtime_cache=yes
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <time.h>
++extern char **environ;
++unset_TZ ()
++{
++  char **from, **to;
++  for (to = from = environ; (*to = *from); from++)
++    if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
++      to++;
++}
++char TZ_GMT0[] = "TZ=GMT0";
++char TZ_PST8[] = "TZ=PST8";
++main()
++{
++  time_t now = time ((time_t *) 0);
++  int hour_GMT0, hour_unset;
++  if (putenv (TZ_GMT0) != 0)
++    exit (1);
++  hour_GMT0 = localtime (&now)->tm_hour;
++  unset_TZ ();
++  hour_unset = localtime (&now)->tm_hour;
++  if (putenv (TZ_PST8) != 0)
++    exit (1);
++  if (localtime (&now)->tm_hour == hour_GMT0)
++    exit (1);
++  unset_TZ ();
++  if (localtime (&now)->tm_hour != hour_unset)
++    exit (1);
++  exit (0);
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_localtime_cache=no
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++emacs_cv_localtime_cache=yes
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++else
++      # If we lack tzset, report that localtime does not cache TZ,
++      # since we can't invalidate the cache if we don't have tzset.
++      emacs_cv_localtime_cache=no
++fi
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
++echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
++if test $emacs_cv_localtime_cache = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define LOCALTIME_CACHE 1
++_ACEOF
++
++fi
++
++if test "x$HAVE_TIMEVAL" = xyes; then
++
++for ac_func in gettimeofday
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++  echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
++echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
++if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++#ifdef TIME_WITH_SYS_TIME
++#include <sys/time.h>
++#include <time.h>
++#else
++#ifdef HAVE_SYS_TIME_H
++#include <sys/time.h>
++#else
++#include <time.h>
++#endif
++#endif
++int
++main ()
++{
++struct timeval time;
++     gettimeofday (&time, 0);
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_gettimeofday_two_arguments=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_gettimeofday_two_arguments=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
++echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
++  if test $emacs_cv_gettimeofday_two_arguments = no; then
++    cat >>confdefs.h <<\_ACEOF
++#define GETTIMEOFDAY_ONE_ARGUMENT 1
++_ACEOF
++
++  fi
++fi
++
++if test "$ac_cv_func_gettimeofday" = yes; then
++  echo "$as_me:$LINENO: checking for struct timezone" >&5
++echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
++if test "${emacs_cv_struct_timezone+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <sys/time.h>
++int
++main ()
++{
++struct timezone tz;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++              if test "$cross_compiling" = yes; then
++  emacs_cv_struct_timezone=yes
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++
++#ifdef TIME_WITH_SYS_TIME
++#include <sys/time.h>
++#include <time.h>
++#else
++#ifdef HAVE_SYS_TIME_H
++#include <sys/time.h>
++#else
++#include <time.h>
++#endif
++#endif
++main () {
++  struct timeval time;
++  struct timezone dummy;
++  exit (gettimeofday (&time, &dummy));
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  emacs_cv_struct_timezone=yes
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++emacs_cv_struct_timezone=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++emacs_cv_struct_timezone=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
++echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
++fi
++
++ok_so_far=yes
++echo "$as_me:$LINENO: checking for socket" >&5
++echo $ECHO_N "checking for socket... $ECHO_C" >&6
++if test "${ac_cv_func_socket+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define socket to an innocuous variant, in case <limits.h> declares socket.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define socket innocuous_socket
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char socket (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef socket
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char socket ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_socket) || defined (__stub___socket)
++choke me
++#else
++char (*f) () = socket;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != socket;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_socket=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_func_socket=no
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
++echo "${ECHO_T}$ac_cv_func_socket" >&6
++if test $ac_cv_func_socket = yes; then
++  :
++else
++  ok_so_far=no
++fi
++
++if test $ok_so_far = yes; then
++  if test "${ac_cv_header_netinet_in_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for netinet/in.h" >&5
++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
++if test "${ac_cv_header_netinet_in_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
++echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <netinet/in.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
++echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <netinet/in.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: netinet/in.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: netinet/in.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for netinet/in.h" >&5
++echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
++if test "${ac_cv_header_netinet_in_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_netinet_in_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
++echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
++
++fi
++if test $ac_cv_header_netinet_in_h = yes; then
++  :
++else
++  ok_so_far=no
++fi
++
++
++fi
++if test $ok_so_far = yes; then
++  if test "${ac_cv_header_arpa_inet_h+set}" = set; then
++  echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
++echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <arpa/inet.h>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
++echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <arpa/inet.h>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
++echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: arpa/inet.h:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: arpa/inet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
++echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
++if test "${ac_cv_header_arpa_inet_h+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  ac_cv_header_arpa_inet_h=$ac_header_preproc
++fi
++echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
++echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
++
++fi
++if test $ac_cv_header_arpa_inet_h = yes; then
++  :
++else
++  ok_so_far=no
++fi
++
++
++fi
++if test $ok_so_far = yes; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_INET_SOCKETS 1
++_ACEOF
++
++fi
++
++if test -f /usr/lpp/X11/bin/smt.exp; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_AIX_SMT_EXP 1
++_ACEOF
++
++fi
++
++echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
++echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
++if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
++  echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_DEV_PTMX 1
++_ACEOF
++
++else
++  echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++fi
++
++echo "$as_me:$LINENO: checking for pid_t" >&5
++echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
++if test "${ac_cv_type_pid_t+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++if ((pid_t *) 0)
++  return 0;
++if (sizeof (pid_t))
++  return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_type_pid_t=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_pid_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
++echo "${ECHO_T}$ac_cv_type_pid_t" >&6
++if test $ac_cv_type_pid_t = yes; then
++  :
++else
++
++cat >>confdefs.h <<_ACEOF
++#define pid_t int
++_ACEOF
++
++fi
++
++
++
++for ac_header in unistd.h vfork.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++else
++  # Is the header compilable?
++echo "$as_me:$LINENO: checking $ac_header usability" >&5
++echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_header_compiler=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_header_compiler=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
++echo "${ECHO_T}$ac_header_compiler" >&6
++
++# Is the header present?
++echo "$as_me:$LINENO: checking $ac_header presence" >&5
++echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++#include <$ac_header>
++_ACEOF
++if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
++  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } >/dev/null; then
++  if test -s conftest.err; then
++    ac_cpp_err=$ac_c_preproc_warn_flag
++    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
++  else
++    ac_cpp_err=
++  fi
++else
++  ac_cpp_err=yes
++fi
++if test -z "$ac_cpp_err"; then
++  ac_header_preproc=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.$ac_ext
++echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
++echo "${ECHO_T}$ac_header_preproc" >&6
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
++  yes:no: )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
++echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
++    ac_header_preproc=yes
++    ;;
++  no:yes:* )
++    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
++echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
++echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
++echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
++echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
++echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
++    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
++echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
++    (
++      cat <<\_ASBOX
++## ------------------------------------------ ##
++## Report this to the AC_PACKAGE_NAME lists.  ##
++## ------------------------------------------ ##
++_ASBOX
++    ) |
++      sed "s/^/$as_me: WARNING:     /" >&2
++    ;;
++esac
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  eval "$as_ac_Header=\$ac_header_preproc"
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++
++fi
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
++
++for ac_func in fork vfork
++do
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $ac_func innocuous_$ac_func
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $ac_func (); below.
++    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++    <limits.h> exists even on freestanding compilers.  */
++
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++
++#undef $ac_func
++
++/* Override any gcc2 internal prototype to avoid an error.  */
++#ifdef __cplusplus
++extern "C"
++{
++#endif
++/* We use char because int might match the return type of a gcc2
++   builtin and then its argument prototype would still apply.  */
++char $ac_func ();
++/* The GNU C library defines this for functions which it implements
++    to always fail with ENOSYS.  Some functions are actually named
++    something starting with __ and the normal name is an alias.  */
++#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
++choke me
++#else
++char (*f) () = $ac_func;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
++int
++main ()
++{
++return f != $ac_func;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++if test "x$ac_cv_func_fork" = xyes; then
++  echo "$as_me:$LINENO: checking for working fork" >&5
++echo $ECHO_N "checking for working fork... $ECHO_C" >&6
++if test "${ac_cv_func_fork_works+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test "$cross_compiling" = yes; then
++  ac_cv_func_fork_works=cross
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* By Ruediger Kuhlmann. */
++      #include <sys/types.h>
++      #if HAVE_UNISTD_H
++      # include <unistd.h>
++      #endif
++      /* Some systems only have a dummy stub for fork() */
++      int main ()
++      {
++      if (fork() < 0)
++        exit (1);
++      exit (0);
++      }
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_fork_works=yes
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_func_fork_works=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
++echo "${ECHO_T}$ac_cv_func_fork_works" >&6
++
++else
++  ac_cv_func_fork_works=$ac_cv_func_fork
++fi
++if test "x$ac_cv_func_fork_works" = xcross; then
++  case $host in
++    *-*-amigaos* | *-*-msdosdjgpp*)
++      # Override, as these systems have only a dummy fork() stub
++      ac_cv_func_fork_works=no
++      ;;
++    *)
++      ac_cv_func_fork_works=yes
++      ;;
++  esac
++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
++echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
++fi
++ac_cv_func_vfork_works=$ac_cv_func_vfork
++if test "x$ac_cv_func_vfork" = xyes; then
++  echo "$as_me:$LINENO: checking for working vfork" >&5
++echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
++if test "${ac_cv_func_vfork_works+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  if test "$cross_compiling" = yes; then
++  ac_cv_func_vfork_works=cross
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++/* Thanks to Paul Eggert for this test.  */
++#include <stdio.h>
++#include <stdlib.h>
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <sys/wait.h>
++#if HAVE_UNISTD_H
++# include <unistd.h>
++#endif
++#if HAVE_VFORK_H
++# include <vfork.h>
++#endif
++/* On some sparc systems, changes by the child to local and incoming
++   argument registers are propagated back to the parent.  The compiler
++   is told about this with #include <vfork.h>, but some compilers
++   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
++   static variable whose address is put into a register that is
++   clobbered by the vfork.  */
++static void
++#ifdef __cplusplus
++sparc_address_test (int arg)
++# else
++sparc_address_test (arg) int arg;
++#endif
++{
++  static pid_t child;
++  if (!child) {
++    child = vfork ();
++    if (child < 0) {
++      perror ("vfork");
++      _exit(2);
++    }
++    if (!child) {
++      arg = getpid();
++      write(-1, "", 0);
++      _exit (arg);
++    }
++  }
++}
++
++int
++main ()
++{
++  pid_t parent = getpid ();
++  pid_t child;
++
++  sparc_address_test (0);
++
++  child = vfork ();
++
++  if (child == 0) {
++    /* Here is another test for sparc vfork register problems.  This
++       test uses lots of local variables, at least as many local
++       variables as main has allocated so far including compiler
++       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
++       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
++       reuse the register of parent for one of the local variables,
++       since it will think that parent can't possibly be used any more
++       in this routine.  Assigning to the local variable will thus
++       munge parent in the parent process.  */
++    pid_t
++      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
++      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
++    /* Convince the compiler that p..p7 are live; otherwise, it might
++       use the same hardware register for all 8 local variables.  */
++    if (p != p1 || p != p2 || p != p3 || p != p4
++      || p != p5 || p != p6 || p != p7)
++      _exit(1);
++
++    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
++       from child file descriptors.  If the child closes a descriptor
++       before it execs or exits, this munges the parent's descriptor
++       as well.  Test for this by closing stdout in the child.  */
++    _exit(close(fileno(stdout)) != 0);
++  } else {
++    int status;
++    struct stat st;
++
++    while (wait(&status) != child)
++      ;
++    exit(
++       /* Was there some problem with vforking?  */
++       child < 0
++
++       /* Did the child fail?  (This shouldn't happen.)  */
++       || status
++
++       /* Did the vfork/compiler bug occur?  */
++       || parent != getpid()
++
++       /* Did the file descriptor bug occur?  */
++       || fstat(fileno(stdout), &st) != 0
++       );
++  }
++}
++_ACEOF
++rm -f conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_func_vfork_works=yes
++else
++  echo "$as_me: program exited with status $ac_status" >&5
++echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++( exit $ac_status )
++ac_cv_func_vfork_works=no
++fi
++rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
++fi
++fi
++echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
++echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
++
++fi;
++if test "x$ac_cv_func_fork_works" = xcross; then
++  ac_cv_func_vfork_works=$ac_cv_func_vfork
++  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
++echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
++fi
++
++if test "x$ac_cv_func_vfork_works" = xyes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_WORKING_VFORK 1
++_ACEOF
++
++else
++
++cat >>confdefs.h <<\_ACEOF
++#define vfork fork
++_ACEOF
++
++fi
++if test "x$ac_cv_func_fork_works" = xyes; then
++
++cat >>confdefs.h <<\_ACEOF
++#define HAVE_WORKING_FORK 1
++_ACEOF
++
++fi
++
++
++# Fixme: This should be replaced when we have autoconf 2.14.
++echo "$as_me:$LINENO: checking for size_t" >&5
++echo $ECHO_N "checking for size_t... $ECHO_C" >&6
++if test "${ac_cv_type_size_t+set}" = set; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++$ac_includes_default
++int
++main ()
++{
++if ((size_t *) 0)
++  return 0;
++if (sizeof (size_t))
++  return 0;
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++  (eval $ac_compile) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++       { ac_try='test -s conftest.$ac_objext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  ac_cv_type_size_t=yes
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++ac_cv_type_size_t=no
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
++echo "${ECHO_T}$ac_cv_type_size_t" >&6
++if test $ac_cv_type_size_t = yes; then
++  :
++else
++
++cat >>confdefs.h <<_ACEOF
++#define size_t unsigned
++_ACEOF
++
++fi
++
++
++# Set up the CFLAGS for real compilation, so we can substitute it.
++CFLAGS="$REAL_CFLAGS"
++CPPFLAGS="$REAL_CPPFLAGS"
++
++#### Find out which version of Emacs this is.
++version=`grep 'defconst[       ]*emacs-version' ${srcdir}/lisp/version.el \
++       | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
++if test x"${version}" = x; then
++  { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
++echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
++   { (exit 1); exit 1; }; }
++fi
++
++### Specify what sort of things we'll be editing into Makefile and config.h.
++### Use configuration here uncanonicalized to avoid exceeding size limits.
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++cat >>confdefs.h <<_ACEOF
++#define EMACS_CONFIGURATION "${canonical}"
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define config_machfile "${machfile}"
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define config_opsysfile "${opsysfile}"
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
++_ACEOF
++
++cat >>confdefs.h <<_ACEOF
++#define UNEXEC_SRC ${UNEXEC_SRC}
++_ACEOF
++
++
++if test "${HAVE_X_WINDOWS}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_X_WINDOWS 1
++_ACEOF
++
++fi
++if test "${USE_X_TOOLKIT}" != "none" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define USE_X_TOOLKIT 1
++_ACEOF
++
++fi
++if test "${HAVE_X11}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_X11 1
++_ACEOF
++
++fi
++if test "${HAVE_XFREE386}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_XFREE386 1
++_ACEOF
++
++fi
++if test "${HAVE_MENUS}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define HAVE_MENUS 1
++_ACEOF
++
++fi
++if test "${GNU_MALLOC}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define GNU_MALLOC 1
++_ACEOF
++
++fi
++if test "${REL_ALLOC}" = "yes" ; then
++  cat >>confdefs.h <<\_ACEOF
++#define REL_ALLOC 1
++_ACEOF
++
++fi
++
++#### Report on what we decided to do.
++echo "
++Configured for \`${canonical}'.
++
++  Where should the build process find the source code?    ${srcdir}
++  What operating system and machine description files should Emacs use?
++        \`${opsysfile}' and \`${machfile}'
++  What compiler should emacs be built with?               ${CC} ${CFLAGS}
++  Should Emacs use the GNU version of malloc?             ${GNU_MALLOC}${GNU_MALLOC_reason}
++  Should Emacs use a relocating allocator for buffers?    ${REL_ALLOC}
++  Should Emacs use mmap(2) for buffer allocation?         $use_mmap_for_buffers
++  What window system should Emacs use?                    ${window_system}
++  What toolkit should Emacs use?                          ${USE_X_TOOLKIT}"
++
++if test -n "${x_includes}"; then
++echo "  Where do we find X Windows header files?                ${x_includes}"
++else
++echo "  Where do we find X Windows header files?                Standard dirs"
++fi
++if test -n "${x_libraries}"; then
++echo "  Where do we find X Windows libraries?                   ${x_libraries}"
++else
++echo "  Where do we find X Windows libraries?                   Standard dirs"
++fi
++
++echo "  Does Emacs use -lXaw3d?                                 ${HAVE_XAW3D}"
++echo "  Does Emacs use -lXpm?                                   ${HAVE_XPM}"
++echo "  Does Emacs use -ljpeg?                                  ${HAVE_JPEG}"
++echo "  Does Emacs use -ltiff?                                  ${HAVE_TIFF}"
++echo "  Does Emacs use -lungif?                                 ${HAVE_GIF}"
++echo "  Does Emacs use -lpng?                                   ${HAVE_PNG}"
++echo "  Does Emacs use X toolkit scroll bars?                   ${USE_TOOLKIT_SCROLL_BARS}"
++echo
++
++# Remove any trailing slashes in these variables.
++test "${prefix}" != NONE &&
++  prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
++test "${exec_prefix}" != NONE &&
++  exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
++
++## Check if the C preprocessor will convert `..' to `. .'.  If so, set
++## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
++## from Makefile.c can correctly provide the arg `-traditional' to the
++## C preprocessor.
++
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
++yes..yes
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "yes..yes" >/dev/null 2>&1; then
++  CPP_NEED_TRADITIONAL=no
++else
++  CPP_NEED_TRADITIONAL=yes
++fi
++rm -f conftest*
++
++
++                                                                                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"
++          ac_config_commands="$ac_config_commands default"
++cat >confcache <<\_ACEOF
++# This file is a shell script that caches the results of configure
++# tests run on this system so they can be shared between configure
++# scripts and configure runs, see configure's option --config-cache.
++# It is not useful on other systems.  If it contains results you don't
++# want to keep, you may remove or edit it.
++#
++# config.status only pays attention to the cache file if you give it
++# the --recheck option to rerun configure.
++#
++# `ac_cv_env_foo' variables (set or unset) will be overridden when
++# loading this file, other *unset* `ac_cv_foo' will be assigned the
++# following values.
++
++_ACEOF
++
++# The following way of writing the cache mishandles newlines in values,
++# but we know of no workaround that is simple, portable, and efficient.
++# So, don't put newlines in cache variables' values.
++# Ultrix sh set writes to stderr and can't be redirected directly,
++# and sets the high bit in the cache file unless we assign to the vars.
++{
++  (set) 2>&1 |
++    case `(ac_space=' '; set | grep ac_space) 2>&1` in
++    *ac_space=\ *)
++      # `set' does not quote correctly, so add quotes (double-quote
++      # substitution turns \\\\ into \\, and sed turns \\ into \).
++      sed -n \
++      "s/'/'\\\\''/g;
++        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
++      ;;
++    *)
++      # `set' quotes correctly as required by POSIX, so do not add quotes.
++      sed -n \
++      "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
++      ;;
++    esac;
++} |
++  sed '
++     t clear
++     : clear
++     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
++     t end
++     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
++     : end' >>confcache
++if diff $cache_file confcache >/dev/null 2>&1; then :; else
++  if test -w $cache_file; then
++    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
++    cat confcache >$cache_file
++  else
++    echo "not updating unwritable cache $cache_file"
++  fi
++fi
++rm -f confcache
++
++test "x$prefix" = xNONE && prefix=$ac_default_prefix
++# Let make expand exec_prefix.
++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
++
++# VPATH may cause trouble with some makes, so we remove $(srcdir),
++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
++# trailing colons and then remove the whole line if VPATH becomes empty
++# (actually we leave an empty line to preserve line numbers).
++if test "x$srcdir" = x.; then
++  ac_vpsub='/^[        ]*VPATH[        ]*=/{
++s/:*\$(srcdir):*/:/;
++s/:*\${srcdir}:*/:/;
++s/:*@srcdir@:*/:/;
++s/^\([^=]*=[   ]*\):*/\1/;
++s/:*$//;
++s/^[^=]*=[     ]*$//;
++}'
++fi
++
++DEFS=-DHAVE_CONFIG_H
++
++ac_libobjs=
++ac_ltlibobjs=
++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
++  # 1. Remove the extension, and $U if already installed.
++  ac_i=`echo "$ac_i" |
++       sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
++  # 2. Add them.
++  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
++  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
++done
++LIBOBJS=$ac_libobjs
++
++LTLIBOBJS=$ac_ltlibobjs
++
++
++
++: ${CONFIG_STATUS=./config.status}
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
++echo "$as_me: creating $CONFIG_STATUS" >&6;}
++cat >$CONFIG_STATUS <<_ACEOF
++#! $SHELL
++# Generated by $as_me.
++# Run this file to recreate the current configuration.
++# Compiler output produced by configure, useful for debugging
++# configure, is in config.log if it exists.
++
++debug=false
++ac_cs_recheck=false
++ac_cs_silent=false
++SHELL=\${CONFIG_SHELL-$SHELL}
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++## --------------------- ##
++## M4sh Initialization.  ##
++## --------------------- ##
++
++# Be Bourne compatible
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
++  emulate sh
++  NULLCMD=:
++  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+"$@"}'='"$@"'
++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
++  set -o posix
++fi
++DUALCASE=1; export DUALCASE # for MKS sh
++
++# Support unset when possible.
++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
++  as_unset=unset
++else
++  as_unset=false
++fi
++
++
++# Work around bugs in pre-3.0 UWIN ksh.
++$as_unset ENV MAIL MAILPATH
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++for as_var in \
++  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
++  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
++  LC_TELEPHONE LC_TIME
++do
++  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
++    eval $as_var=C; export $as_var
++  else
++    $as_unset $as_var
++  fi
++done
++
++# Required to use basename.
++if expr a : '\(a\)' >/dev/null 2>&1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
++  as_basename=basename
++else
++  as_basename=false
++fi
++
++
++# Name of the executable.
++as_me=`$as_basename "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++       X"$0" : 'X\(//\)$' \| \
++       X"$0" : 'X\(/\)$' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X/"$0" |
++    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
++        /^X\/\(\/\/\)$/{ s//\1/; q; }
++        /^X\/\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++
++
++# PATH needs CR, and LINENO needs CR and PATH.
++# Avoid depending upon Character Ranges.
++as_cr_letters='abcdefghijklmnopqrstuvwxyz'
++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
++as_cr_Letters=$as_cr_letters$as_cr_LETTERS
++as_cr_digits='0123456789'
++as_cr_alnum=$as_cr_Letters$as_cr_digits
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++  echo "#! /bin/sh" >conf$$.sh
++  echo  "exit 0"   >>conf$$.sh
++  chmod +x conf$$.sh
++  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
++    PATH_SEPARATOR=';'
++  else
++    PATH_SEPARATOR=:
++  fi
++  rm -f conf$$.sh
++fi
++
++
++  as_lineno_1=$LINENO
++  as_lineno_2=$LINENO
++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++  test "x$as_lineno_1" != "x$as_lineno_2" &&
++  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
++  # Find who we are.  Look in the path if we contain no path at all
++  # relative or not.
++  case $0 in
++    *[\\/]* ) as_myself=$0 ;;
++    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++done
++
++       ;;
++  esac
++  # We did not find ourselves, most probably we were run as `sh COMMAND'
++  # in which case we are not to be found in the path.
++  if test "x$as_myself" = x; then
++    as_myself=$0
++  fi
++  if test ! -f "$as_myself"; then
++    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
++   { (exit 1); exit 1; }; }
++  fi
++  case $CONFIG_SHELL in
++  '')
++    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  for as_base in sh bash ksh sh5; do
++       case $as_dir in
++       /*)
++         if ("$as_dir/$as_base" -c '
++  as_lineno_1=$LINENO
++  as_lineno_2=$LINENO
++  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
++  test "x$as_lineno_1" != "x$as_lineno_2" &&
++  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
++           $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
++           $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
++           CONFIG_SHELL=$as_dir/$as_base
++           export CONFIG_SHELL
++           exec "$CONFIG_SHELL" "$0" ${1+"$@"}
++         fi;;
++       esac
++       done
++done
++;;
++  esac
++
++  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
++  # uniformly replaced by the line number.  The first 'sed' inserts a
++  # line-number line before each line; the second 'sed' does the real
++  # work.  The second script uses 'N' to pair each line-number line
++  # with the numbered line, and appends trailing '-' during
++  # substitution so that $LINENO is not a special case at line end.
++  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
++  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
++  sed '=' <$as_myself |
++    sed '
++      N
++      s,$,-,
++      : loop
++      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
++      t loop
++      s,-$,,
++      s,^['$as_cr_digits']*\n,,
++    ' >$as_me.lineno &&
++  chmod +x $as_me.lineno ||
++    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
++   { (exit 1); exit 1; }; }
++
++  # Don't try to exec as it changes $[0], causing all sort of problems
++  # (the dirname of $[0] is not the place where we might find the
++  # original and so on.  Autoconf is especially sensible to this).
++  . ./$as_me.lineno
++  # Exit status is that of the last command.
++  exit
++}
++
++
++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
++  *c*,-n*) ECHO_N= ECHO_C='
++' ECHO_T='    ' ;;
++  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
++  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
++esac
++
++if expr a : '\(a\)' >/dev/null 2>&1; then
++  as_expr=expr
++else
++  as_expr=false
++fi
++
++rm -f conf$$ conf$$.exe conf$$.file
++echo >conf$$.file
++if ln -s conf$$.file conf$$ 2>/dev/null; then
++  # We could just check for DJGPP; but this test a) works b) is more generic
++  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
++  if test -f conf$$.exe; then
++    # Don't use ln at all; we don't have any links
++    as_ln_s='cp -p'
++  else
++    as_ln_s='ln -s'
++  fi
++elif ln conf$$.file conf$$ 2>/dev/null; then
++  as_ln_s=ln
++else
++  as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.file
++
++if mkdir -p . 2>/dev/null; then
++  as_mkdir_p=:
++else
++  test -d ./-p && rmdir ./-p
++  as_mkdir_p=false
++fi
++
++as_executable_p="test -f"
++
++# Sed expression to map a string onto a valid CPP name.
++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
++
++# Sed expression to map a string onto a valid variable name.
++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.
++as_nl='
++'
++IFS="         $as_nl"
++
++# CDPATH.
++$as_unset CDPATH
++
++exec 6>&1
++
++# Open the log real soon, to keep \$[0] and so on meaningful, and to
++# report actual input values of CONFIG_FILES etc. instead of their
++# values after options handling.  Logging --version etc. is OK.
++exec 5>>config.log
++{
++  echo
++  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
++## Running $as_me. ##
++_ASBOX
++} >&5
++cat >&5 <<_CSEOF
++
++This file was extended by $as_me, which was
++generated by GNU Autoconf 2.59.  Invocation command line was
++
++  CONFIG_FILES    = $CONFIG_FILES
++  CONFIG_HEADERS  = $CONFIG_HEADERS
++  CONFIG_LINKS    = $CONFIG_LINKS
++  CONFIG_COMMANDS = $CONFIG_COMMANDS
++  $ $0 $@
++
++_CSEOF
++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
++echo >&5
++_ACEOF
++
++# Files that config.status was made for.
++if test -n "$ac_config_files"; then
++  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_headers"; then
++  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_links"; then
++  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
++fi
++
++if test -n "$ac_config_commands"; then
++  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
++fi
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++ac_cs_usage="\
++\`$as_me' instantiates files from templates according to the
++current configuration.
++
++Usage: $0 [OPTIONS] [FILE]...
++
++  -h, --help       print this help, then exit
++  -V, --version    print version number, then exit
++  -q, --quiet      do not print progress messages
++  -d, --debug      don't remove temporary files
++      --recheck    update $as_me by reconfiguring in the same conditions
++  --file=FILE[:TEMPLATE]
++                 instantiate the configuration file FILE
++  --header=FILE[:TEMPLATE]
++                 instantiate the configuration header FILE
++
++Configuration files:
++$config_files
++
++Configuration headers:
++$config_headers
++
++Configuration commands:
++$config_commands
++
++Report bugs to <bug-autoconf@gnu.org>."
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++ac_cs_version="\\
++config.status
++configured by $0, generated by GNU Autoconf 2.59,
++  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
++
++Copyright (C) 2003 Free Software Foundation, Inc.
++This config.status script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it."
++srcdir=$srcdir
++INSTALL="$INSTALL"
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++# If no file are specified by the user, then we need to provide default
++# value.  By we need to know if files were specified by the user.
++ac_need_defaults=:
++while test $# != 0
++do
++  case $1 in
++  --*=*)
++    ac_option=`expr "x$1" : 'x\([^=]*\)='`
++    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
++    ac_shift=:
++    ;;
++  -*)
++    ac_option=$1
++    ac_optarg=$2
++    ac_shift=shift
++    ;;
++  *) # This is not an option, so the user has probably given explicit
++     # arguments.
++     ac_option=$1
++     ac_need_defaults=false;;
++  esac
++
++  case $ac_option in
++  # Handling of the options.
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
++    ac_cs_recheck=: ;;
++  --version | --vers* | -V )
++    echo "$ac_cs_version"; exit 0 ;;
++  --he | --h)
++    # Conflict between --help and --header
++    { { echo "$as_me:$LINENO: error: ambiguous option: $1
++Try \`$0 --help' for more information." >&5
++echo "$as_me: error: ambiguous option: $1
++Try \`$0 --help' for more information." >&2;}
++   { (exit 1); exit 1; }; };;
++  --help | --hel | -h )
++    echo "$ac_cs_usage"; exit 0 ;;
++  --debug | --d* | -d )
++    debug=: ;;
++  --file | --fil | --fi | --f )
++    $ac_shift
++    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
++    ac_need_defaults=false;;
++  --header | --heade | --head | --hea )
++    $ac_shift
++    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
++    ac_need_defaults=false;;
++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
++    ac_cs_silent=: ;;
++
++  # This is an error.
++  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
++Try \`$0 --help' for more information." >&5
++echo "$as_me: error: unrecognized option: $1
++Try \`$0 --help' for more information." >&2;}
++   { (exit 1); exit 1; }; } ;;
++
++  *) ac_config_targets="$ac_config_targets $1" ;;
++
++  esac
++  shift
++done
++
++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++  exec 6>/dev/null
++  ac_configure_extra_args="$ac_configure_extra_args --silent"
++fi
++
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF
++if \$ac_cs_recheck; then
++  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
++  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++fi
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++#
++# INIT-COMMANDS section.
++#
++
++GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
++
++_ACEOF
++
++
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++for ac_config_target in $ac_config_targets
++do
++  case "$ac_config_target" in
++  # Handling of arguments.
++  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
++  "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
++  "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
++  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
++  "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
++  "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
++  "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
++  "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
++  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
++  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
++  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
++echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
++   { (exit 1); exit 1; }; };;
++  esac
++done
++
++# If the user did not use the arguments to specify the items to instantiate,
++# then the envvar interface is used.  Set only those that are not.
++# We use the long form for the default assignment because of an extremely
++# bizarre bug on SunOS 4.1.3.
++if $ac_need_defaults; then
++  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
++  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
++  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
++fi
++
++# Have a temporary directory for convenience.  Make it in the build tree
++# simply because there is no reason to put it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
++# Create a temporary directory, and hook for its removal unless debugging.
++$debug ||
++{
++  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
++  trap '{ (exit 1); exit 1; }' 1 2 13 15
++}
++
++# Create a (secure) tmp directory for tmp files.
++
++{
++  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
++  test -n "$tmp" && test -d "$tmp"
++}  ||
++{
++  tmp=./confstat$$-$RANDOM
++  (umask 077 && mkdir $tmp)
++} ||
++{
++   echo "$me: cannot create a temporary directory in ." >&2
++   { (exit 1); exit 1; }
++}
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<_ACEOF
++
++#
++# CONFIG_FILES section.
++#
++
++# No need to generate the scripts if there are no CONFIG_FILES.
++# This happens for instance when ./config.status config.h
++if test -n "\$CONFIG_FILES"; then
++  # Protect against being on the right side of a sed subst in config.status.
++  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
++   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
++s,@SHELL@,$SHELL,;t t
++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
++s,@exec_prefix@,$exec_prefix,;t t
++s,@prefix@,$prefix,;t t
++s,@program_transform_name@,$program_transform_name,;t t
++s,@bindir@,$bindir,;t t
++s,@sbindir@,$sbindir,;t t
++s,@libexecdir@,$libexecdir,;t t
++s,@datadir@,$datadir,;t t
++s,@sysconfdir@,$sysconfdir,;t t
++s,@sharedstatedir@,$sharedstatedir,;t t
++s,@localstatedir@,$localstatedir,;t t
++s,@libdir@,$libdir,;t t
++s,@includedir@,$includedir,;t t
++s,@oldincludedir@,$oldincludedir,;t t
++s,@infodir@,$infodir,;t t
++s,@mandir@,$mandir,;t t
++s,@build_alias@,$build_alias,;t t
++s,@host_alias@,$host_alias,;t t
++s,@target_alias@,$target_alias,;t t
++s,@DEFS@,$DEFS,;t t
++s,@ECHO_C@,$ECHO_C,;t t
++s,@ECHO_N@,$ECHO_N,;t t
++s,@ECHO_T@,$ECHO_T,;t t
++s,@LIBS@,$LIBS,;t t
++s,@build@,$build,;t t
++s,@build_cpu@,$build_cpu,;t t
++s,@build_vendor@,$build_vendor,;t t
++s,@build_os@,$build_os,;t t
++s,@host@,$host,;t t
++s,@host_cpu@,$host_cpu,;t t
++s,@host_vendor@,$host_vendor,;t t
++s,@host_os@,$host_os,;t t
++s,@CC@,$CC,;t t
++s,@CFLAGS@,$CFLAGS,;t t
++s,@LDFLAGS@,$LDFLAGS,;t t
++s,@CPPFLAGS@,$CPPFLAGS,;t t
++s,@ac_ct_CC@,$ac_ct_CC,;t t
++s,@EXEEXT@,$EXEEXT,;t t
++s,@OBJEXT@,$OBJEXT,;t t
++s,@LN_S@,$LN_S,;t t
++s,@CPP@,$CPP,;t t
++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
++s,@INSTALL_DATA@,$INSTALL_DATA,;t t
++s,@YACC@,$YACC,;t t
++s,@RANLIB@,$RANLIB,;t t
++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
++s,@EGREP@,$EGREP,;t t
++s,@LIBSOUND@,$LIBSOUND,;t t
++s,@SET_MAKE@,$SET_MAKE,;t t
++s,@ALLOCA@,$ALLOCA,;t t
++s,@LIBOBJS@,$LIBOBJS,;t t
++s,@NEED_SETGID@,$NEED_SETGID,;t t
++s,@KMEM_GROUP@,$KMEM_GROUP,;t t
++s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
++s,@version@,$version,;t t
++s,@configuration@,$configuration,;t t
++s,@canonical@,$canonical,;t t
++s,@srcdir@,$srcdir,;t t
++s,@lispdir@,$lispdir,;t t
++s,@locallisppath@,$locallisppath,;t t
++s,@lisppath@,$lisppath,;t t
++s,@x_default_search_path@,$x_default_search_path,;t t
++s,@etcdir@,$etcdir,;t t
++s,@archlibdir@,$archlibdir,;t t
++s,@docdir@,$docdir,;t t
++s,@bitmapdir@,$bitmapdir,;t t
++s,@c_switch_system@,$c_switch_system,;t t
++s,@c_switch_machine@,$c_switch_machine,;t t
++s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
++s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
++s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
++s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
++s,@machfile@,$machfile,;t t
++s,@opsysfile@,$opsysfile,;t t
++s,@MOVEMAIL_LOCK_LIBS@,$MOVEMAIL_LOCK_LIBS,;t t
++s,@LTLIBOBJS@,$LTLIBOBJS,;t t
++CEOF
++
++_ACEOF
++
++  cat >>$CONFIG_STATUS <<\_ACEOF
++  # Split the substitutions into bite-sized pieces for seds with
++  # small command number limits, like on Digital OSF/1 and HP-UX.
++  ac_max_sed_lines=48
++  ac_sed_frag=1 # Number of current file.
++  ac_beg=1 # First line for current file.
++  ac_end=$ac_max_sed_lines # Line after last line for current file.
++  ac_more_lines=:
++  ac_sed_cmds=
++  while $ac_more_lines; do
++    if test $ac_beg -gt 1; then
++      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
++    else
++      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
++    fi
++    if test ! -s $tmp/subs.frag; then
++      ac_more_lines=false
++    else
++      # The purpose of the label and of the branching condition is to
++      # speed up the sed processing (if there are no `@' at all, there
++      # is no need to browse any of the substitutions).
++      # These are the two extra sed commands mentioned above.
++      (echo ':t
++  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
++      if test -z "$ac_sed_cmds"; then
++      ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
++      else
++      ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
++      fi
++      ac_sed_frag=`expr $ac_sed_frag + 1`
++      ac_beg=$ac_end
++      ac_end=`expr $ac_end + $ac_max_sed_lines`
++    fi
++  done
++  if test -z "$ac_sed_cmds"; then
++    ac_sed_cmds=cat
++  fi
++fi # test -n "$CONFIG_FILES"
++
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
++  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++  case $ac_file in
++  - | *:- | *:-:* ) # input from stdin
++      cat >$tmp/stdin
++      ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++  * )   ac_file_in=$ac_file.in ;;
++  esac
++
++  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
++  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$ac_file" : 'X\(//\)[^/]' \| \
++       X"$ac_file" : 'X\(//\)$' \| \
++       X"$ac_file" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$ac_file" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++  { if $as_mkdir_p; then
++    mkdir -p "$ac_dir"
++  else
++    as_dir="$ac_dir"
++    as_dirs=
++    while test ! -d "$as_dir"; do
++      as_dirs="$as_dir $as_dirs"
++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$as_dir" : 'X\(//\)[^/]' \| \
++       X"$as_dir" : 'X\(//\)$' \| \
++       X"$as_dir" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++    done
++    test ! -n "$as_dirs" || mkdir $as_dirs
++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++   { (exit 1); exit 1; }; }; }
++
++  ac_builddir=.
++
++if test "$ac_dir" != .; then
++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++  # A "../" for each directory in $ac_dir_suffix.
++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++  ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++  .)  # No --srcdir option.  We are building in place.
++    ac_srcdir=.
++    if test -z "$ac_top_builddir"; then
++       ac_top_srcdir=.
++    else
++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++    fi ;;
++  [\\/]* | ?:[\\/]* )  # Absolute path.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir ;;
++  *) # Relative path.
++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++
++# Do not use `cd foo && pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir="$ac_dir";;
++*)
++  case "$ac_dir" in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac
++
++
++  case $INSTALL in
++  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
++  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
++  esac
++
++  # Let's still pretend it is `configure' which instantiates (i.e., don't
++  # use $as_me), people would be surprised to read:
++  #    /* config.h.  Generated by config.status.  */
++  if test x"$ac_file" = x-; then
++    configure_input=
++  else
++    configure_input="$ac_file.  "
++  fi
++  configure_input=$configure_input"Generated from `echo $ac_file_in |
++                                   sed 's,.*/,,'` by configure."
++
++  # First look for the input files in the build tree, otherwise in the
++  # src tree.
++  ac_file_inputs=`IFS=:
++    for f in $ac_file_in; do
++      case $f in
++      -) echo $tmp/stdin ;;
++      [\\/$]*)
++       # Absolute (can't be DOS-style, as IFS=:)
++       test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++   { (exit 1); exit 1; }; }
++       echo "$f";;
++      *) # Relative
++       if test -f "$f"; then
++         # Build tree
++         echo "$f"
++       elif test -f "$srcdir/$f"; then
++         # Source tree
++         echo "$srcdir/$f"
++       else
++         # /dev/null tree
++         { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++   { (exit 1); exit 1; }; }
++       fi;;
++      esac
++    done` || { (exit 1); exit 1; }
++
++  if test x"$ac_file" != x-; then
++    { echo "$as_me:$LINENO: creating $ac_file" >&5
++echo "$as_me: creating $ac_file" >&6;}
++    rm -f "$ac_file"
++  fi
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF
++  sed "$ac_vpsub
++$extrasub
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++:t
++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
++s,@configure_input@,$configure_input,;t t
++s,@srcdir@,$ac_srcdir,;t t
++s,@abs_srcdir@,$ac_abs_srcdir,;t t
++s,@top_srcdir@,$ac_top_srcdir,;t t
++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
++s,@builddir@,$ac_builddir,;t t
++s,@abs_builddir@,$ac_abs_builddir,;t t
++s,@top_builddir@,$ac_top_builddir,;t t
++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
++s,@INSTALL@,$ac_INSTALL,;t t
++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
++  rm -f $tmp/stdin
++  if test x"$ac_file" != x-; then
++    mv $tmp/out $ac_file
++  else
++    cat $tmp/out
++    rm -f $tmp/out
++  fi
++
++done
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++#
++# CONFIG_HEADER section.
++#
++
++# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
++# NAME is the cpp macro being defined and VALUE is the value it is being given.
++#
++# ac_d sets the value in "#define NAME VALUE" lines.
++ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
++ac_dB='[       ].*$,\1#\2'
++ac_dC=' '
++ac_dD=',;t'
++# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
++ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
++ac_uB='$,\1#\2define\3'
++ac_uC=' '
++ac_uD=',;t'
++
++for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
++  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
++  case $ac_file in
++  - | *:- | *:-:* ) # input from stdin
++      cat >$tmp/stdin
++      ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
++      ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
++  * )   ac_file_in=$ac_file.in ;;
++  esac
++
++  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
++echo "$as_me: creating $ac_file" >&6;}
++
++  # First look for the input files in the build tree, otherwise in the
++  # src tree.
++  ac_file_inputs=`IFS=:
++    for f in $ac_file_in; do
++      case $f in
++      -) echo $tmp/stdin ;;
++      [\\/$]*)
++       # Absolute (can't be DOS-style, as IFS=:)
++       test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++   { (exit 1); exit 1; }; }
++       # Do quote $f, to prevent DOS paths from being IFS'd.
++       echo "$f";;
++      *) # Relative
++       if test -f "$f"; then
++         # Build tree
++         echo "$f"
++       elif test -f "$srcdir/$f"; then
++         # Source tree
++         echo "$srcdir/$f"
++       else
++         # /dev/null tree
++         { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
++echo "$as_me: error: cannot find input file: $f" >&2;}
++   { (exit 1); exit 1; }; }
++       fi;;
++      esac
++    done` || { (exit 1); exit 1; }
++  # Remove the trailing spaces.
++  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
++
++_ACEOF
++
++# Transform confdefs.h into two sed scripts, `conftest.defines' and
++# `conftest.undefs', that substitutes the proper values into
++# config.h.in to produce config.h.  The first handles `#define'
++# templates, and the second `#undef' templates.
++# And first: Protect against being on the right side of a sed subst in
++# config.status.  Protect against being in an unquoted here document
++# in config.status.
++rm -f conftest.defines conftest.undefs
++# Using a here document instead of a string reduces the quoting nightmare.
++# Putting comments in sed scripts is not portable.
++#
++# `end' is used to avoid that the second main sed command (meant for
++# 0-ary CPP macros) applies to n-ary macro definitions.
++# See the Autoconf documentation for `clear'.
++cat >confdef2sed.sed <<\_ACEOF
++s/[\\&,]/\\&/g
++s,[\\$`],\\&,g
++t clear
++: clear
++s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
++t end
++s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
++: end
++_ACEOF
++# If some macros were called several times there might be several times
++# the same #defines, which is useless.  Nevertheless, we may not want to
++# sort them, since we want the *last* AC-DEFINE to be honored.
++uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
++sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
++rm -f confdef2sed.sed
++
++# This sed command replaces #undef with comments.  This is necessary, for
++# example, in the case of _POSIX_SOURCE, which is predefined and required
++# on some systems where configure will not decide to define it.
++cat >>conftest.undefs <<\_ACEOF
++s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
++_ACEOF
++
++# Break up conftest.defines because some shells have a limit on the size
++# of here documents, and old seds have small limits too (100 cmds).
++echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
++echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
++echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
++echo '  :' >>$CONFIG_STATUS
++rm -f conftest.tail
++while grep . conftest.defines >/dev/null
++do
++  # Write a limited-size here document to $tmp/defines.sed.
++  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
++  # Speed up: don't consider the non `#define' lines.
++  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
++  # Work around the forget-to-reset-the-flag bug.
++  echo 't clr' >>$CONFIG_STATUS
++  echo ': clr' >>$CONFIG_STATUS
++  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
++  echo 'CEOF
++  sed -f $tmp/defines.sed $tmp/in >$tmp/out
++  rm -f $tmp/in
++  mv $tmp/out $tmp/in
++' >>$CONFIG_STATUS
++  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
++  rm -f conftest.defines
++  mv conftest.tail conftest.defines
++done
++rm -f conftest.defines
++echo '  fi # grep' >>$CONFIG_STATUS
++echo >>$CONFIG_STATUS
++
++# Break up conftest.undefs because some shells have a limit on the size
++# of here documents, and old seds have small limits too (100 cmds).
++echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
++rm -f conftest.tail
++while grep . conftest.undefs >/dev/null
++do
++  # Write a limited-size here document to $tmp/undefs.sed.
++  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
++  # Speed up: don't consider the non `#undef'
++  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
++  # Work around the forget-to-reset-the-flag bug.
++  echo 't clr' >>$CONFIG_STATUS
++  echo ': clr' >>$CONFIG_STATUS
++  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
++  echo 'CEOF
++  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
++  rm -f $tmp/in
++  mv $tmp/out $tmp/in
++' >>$CONFIG_STATUS
++  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
++  rm -f conftest.undefs
++  mv conftest.tail conftest.undefs
++done
++rm -f conftest.undefs
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++  # Let's still pretend it is `configure' which instantiates (i.e., don't
++  # use $as_me), people would be surprised to read:
++  #    /* config.h.  Generated by config.status.  */
++  if test x"$ac_file" = x-; then
++    echo "/* Generated by configure.  */" >$tmp/config.h
++  else
++    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
++  fi
++  cat $tmp/in >>$tmp/config.h
++  rm -f $tmp/in
++  if test x"$ac_file" != x-; then
++    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
++      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
++echo "$as_me: $ac_file is unchanged" >&6;}
++    else
++      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$ac_file" : 'X\(//\)[^/]' \| \
++       X"$ac_file" : 'X\(//\)$' \| \
++       X"$ac_file" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$ac_file" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++      { if $as_mkdir_p; then
++    mkdir -p "$ac_dir"
++  else
++    as_dir="$ac_dir"
++    as_dirs=
++    while test ! -d "$as_dir"; do
++      as_dirs="$as_dir $as_dirs"
++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$as_dir" : 'X\(//\)[^/]' \| \
++       X"$as_dir" : 'X\(//\)$' \| \
++       X"$as_dir" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++    done
++    test ! -n "$as_dirs" || mkdir $as_dirs
++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++   { (exit 1); exit 1; }; }; }
++
++      rm -f $ac_file
++      mv $tmp/config.h $ac_file
++    fi
++  else
++    cat $tmp/config.h
++    rm -f $tmp/config.h
++  fi
++done
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++#
++# CONFIG_COMMANDS section.
++#
++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
++  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
++  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
++  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$ac_dest" : 'X\(//\)[^/]' \| \
++       X"$ac_dest" : 'X\(//\)$' \| \
++       X"$ac_dest" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$ac_dest" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++  { if $as_mkdir_p; then
++    mkdir -p "$ac_dir"
++  else
++    as_dir="$ac_dir"
++    as_dirs=
++    while test ! -d "$as_dir"; do
++      as_dirs="$as_dir $as_dirs"
++      as_dir=`(dirname "$as_dir") 2>/dev/null ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++       X"$as_dir" : 'X\(//\)[^/]' \| \
++       X"$as_dir" : 'X\(//\)$' \| \
++       X"$as_dir" : 'X\(/\)' \| \
++       .     : '\(.\)' 2>/dev/null ||
++echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
++        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
++        /^X\(\/\/\)$/{ s//\1/; q; }
++        /^X\(\/\).*/{ s//\1/; q; }
++        s/.*/./; q'`
++    done
++    test ! -n "$as_dirs" || mkdir $as_dirs
++  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
++   { (exit 1); exit 1; }; }; }
++
++  ac_builddir=.
++
++if test "$ac_dir" != .; then
++  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
++  # A "../" for each directory in $ac_dir_suffix.
++  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
++else
++  ac_dir_suffix= ac_top_builddir=
++fi
++
++case $srcdir in
++  .)  # No --srcdir option.  We are building in place.
++    ac_srcdir=.
++    if test -z "$ac_top_builddir"; then
++       ac_top_srcdir=.
++    else
++       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
++    fi ;;
++  [\\/]* | ?:[\\/]* )  # Absolute path.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir ;;
++  *) # Relative path.
++    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_builddir$srcdir ;;
++esac
++
++# Do not use `cd foo && pwd` to compute absolute paths, because
++# the directories may not exist.
++case `pwd` in
++.) ac_abs_builddir="$ac_dir";;
++*)
++  case "$ac_dir" in
++  .) ac_abs_builddir=`pwd`;;
++  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
++  *) ac_abs_builddir=`pwd`/"$ac_dir";;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_builddir=${ac_top_builddir}.;;
++*)
++  case ${ac_top_builddir}. in
++  .) ac_abs_top_builddir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
++  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_srcdir=$ac_srcdir;;
++*)
++  case $ac_srcdir in
++  .) ac_abs_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
++  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
++  esac;;
++esac
++case $ac_abs_builddir in
++.) ac_abs_top_srcdir=$ac_top_srcdir;;
++*)
++  case $ac_top_srcdir in
++  .) ac_abs_top_srcdir=$ac_abs_builddir;;
++  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
++  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
++  esac;;
++esac
++
++
++  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
++echo "$as_me: executing $ac_dest commands" >&6;}
++  case $ac_dest in
++    default )
++
++### Make the necessary directories, if they don't exist.
++for dir in etc lisp ; do
++  test -d ${dir} || mkdir ${dir}
++done
++
++# Build src/Makefile from ${srcdir}/src/Makefile.c
++# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
++# This must be done after src/config.h is built, since we rely on that file.
++
++# Now get this: Some word that is part of the ${srcdir} directory name
++# or the ${configuration} value might, just might, happen to be an
++# identifier like `sun4' or `i386' or something, and be predefined by
++# the C preprocessor to some helpful value like 1, or maybe the empty
++# string.  Needless to say consequent macro substitutions are less
++# than conducive to the makefile finding the correct directory.
++undefs="`echo $ac_top_srcdir $configuration $canonical |
++sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
++    -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
++`"
++
++echo creating src/epaths.h
++${MAKE-make} epaths-force
++
++# As of 2000-11-19, newest development versions of GNU cpp preprocess
++# `..' to `. .'  unless invoked with -traditional
++
++if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
++  CPPFLAGS="$CPPFLAGS -traditional"
++fi
++
++echo creating lib-src/Makefile
++( cd lib-src
++  rm -f junk.c junk1.c junk2.c
++  sed -e '/start of cpp stuff/q' \
++      < Makefile.c > junk1.c
++  sed -e '1,/start of cpp stuff/d'\
++      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++      < Makefile.c > junk.c
++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++      sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++  cat junk1.c junk2.c > Makefile.new
++  rm -f junk.c junk1.c junk2.c
++  chmod 444 Makefile.new
++  mv -f Makefile.new Makefile
++)
++
++echo creating src/Makefile
++( cd src
++  rm -f junk.c junk1.c junk2.c
++  sed -e '/start of cpp stuff/q' \
++      < Makefile.c > junk1.c
++  sed -e '1,/start of cpp stuff/d'\
++      -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
++      < Makefile.c > junk.c
++  $CPP $undefs -I. -I$ac_top_srcdir/src $CPPFLAGS junk.c | \
++      sed -e 's/^ /   /' -e '/^#/d' -e '/^[   \f]*$/d' > junk2.c
++  cat junk1.c junk2.c > Makefile.new
++  rm -f junk.c junk1.c junk2.c
++  chmod 444 Makefile.new
++  mv -f Makefile.new Makefile
++)
++
++if test ! -f src/.gdbinit && test -f $ac_top_srcdir/src/.gdbinit; then
++  echo creating src/.gdbinit
++  echo source $ac_top_srcdir/src/.gdbinit > src/.gdbinit
++fi
++
++# This is how we know whether to re-run configure in certain cases.
++touch src/config.stamp
++
++ ;;
++  esac
++done
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF
++
++{ (exit 0); exit 0; }
++_ACEOF
++chmod +x $CONFIG_STATUS
++ac_clean_files=$ac_clean_files_save
++
++
++# configure is writing to config.log, and then calls config.status.
++# config.status does its own redirection, appending to config.log.
++# Unfortunately, on DOS this fails, as config.log is still kept open
++# by configure, so config.status won't be able to write to it; its
++# output is simply discarded.  So we exec the FD to /dev/null,
++# effectively closing config.log, so it can be properly (re)opened and
++# appended to by config.status.  When coming back to configure, we
++# need to make the FD available again.
++if test "$no_create" != yes; then
++  ac_cs_success=:
++  ac_config_status_args=
++  test "$silent" = yes &&
++    ac_config_status_args="$ac_config_status_args --quiet"
++  exec 5>/dev/null
++  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
++  exec 5>>config.log
++  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
++  # would make configure fail if this is the last instruction.
++  $ac_cs_success || { (exit 1); exit 1; }
++fi
++
++
This page took 2.028217 seconds and 4 git commands to generate.