mawk (1.3.3-17) debian-dir only changes

Summary

 debian/changelog                              |  301 +
 debian/clean                                  |    2 
 debian/compat                                 |    1 
 debian/control                                |   29 
 debian/copyright                              |   28 
 debian/mawk.dirs                              |    2 
 debian/mawk.docs                              |    2 
 debian/mawk.examples                          |    1 
 debian/mawk.postinst                          |   10 
 debian/mawk.prerm                             |    9 
 debian/patches/01_error-on-full-fs            |  191 
 debian/patches/02_fix-examples                |  125 
 debian/patches/03_read-and-close-redefinition |   24 
 debian/patches/04_mawk.1-fix-pi               |   19 
 debian/patches/05_-Wall-fixes                 |  848 +++
 debian/patches/06_parse.y-semicolons          |   63 
 debian/patches/07_mawktest-check-devfull      |   33 
 debian/patches/20_overlong-regexps            |   47 
 debian/patches/21_memcpy-to-memmove           |   12 
 debian/patches/autoreconf                     | 6834 ++++++++++++++++++++++++++
 debian/patches/cross-compile                  |   11 
 debian/patches/series                         |   11 
 debian/rules                                  |   16 
 debian/tests/control                          |    2 
 debian/tests/mawktest                         |    9 
 25 files changed, 8630 insertions(+)

    
download this patch

Patch contents

--- mawk-1.3.3.orig/debian/control
+++ mawk-1.3.3/debian/control
@@ -0,0 +1,29 @@
+Source: mawk
+Section: interpreters
+Priority: required
+Maintainer: Steve Langasek <vorlon@debian.org>
+Build-Depends: quilt (>= 0.46-7), bison, debhelper (>= 8.9.4)
+Build-Conflicts: byacc
+Standards-Version: 3.9.2
+Vcs-Bzr: nosmart+http://bzr.debian.org/bzr/users/vorlon/mawk/trunk/
+Vcs-Browser: http://anonscm.debian.org/loggerhead/users/vorlon/mawk/trunk/
+
+Package: mawk
+Architecture: any
+Multi-Arch: foreign
+Provides: awk
+Pre-Depends: ${shlibs:Depends}
+Depends: ${misc:Depends}
+Description: a pattern scanning and text processing language
+ Mawk is an interpreter for the AWK Programming Language. The AWK
+ language is useful for manipulation of data files, text retrieval and
+ processing, and for prototyping and experimenting with algorithms. Mawk
+ is a new awk meaning it implements the AWK language as defined in Aho,
+ Kernighan and Weinberger, The AWK Programming Language, Addison-Wesley
+ Publishing, 1988. (Hereafter referred to as the AWK book.) Mawk conforms
+ to the POSIX 1003.2 (draft 11.3) definition of the AWK language
+ which contains a few features not described in the AWK book, and mawk
+ provides a small number of extensions.
+ .
+ Mawk is smaller and much faster than gawk. It has some compile-time
+ limits such as NF = 32767 and sprintf buffer = 1020.
--- mawk-1.3.3.orig/debian/mawk.postinst
+++ mawk-1.3.3/debian/mawk.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives --quiet --install /usr/bin/awk awk /usr/bin/mawk 5 \
+  --slave /usr/share/man/man1/awk.1.gz awk.1.gz /usr/share/man/man1/mawk.1.gz \
+  --slave /usr/bin/nawk nawk /usr/bin/mawk \
+  --slave /usr/share/man/man1/nawk.1.gz nawk.1.gz /usr/share/man/man1/mawk.1.gz
+
+#DEBHELPER#
--- mawk-1.3.3.orig/debian/mawk.examples
+++ mawk-1.3.3/debian/mawk.examples
@@ -0,0 +1 @@
+examples/*
--- mawk-1.3.3.orig/debian/copyright
+++ mawk-1.3.3/debian/copyright
@@ -0,0 +1,28 @@
+This is the Debian GNU prepackaged version of mawk, an implementation
+of the AWK Programming Language.  mawk was written by Mike Brennan
+<brennan@whidbey.com>
+
+This package was put together by Chris Fearnley <cjf@netaxs.com>,
+from sources obtained from:
+  ftp://ftp.whidbey.net/pub/brennan/mawk1.3.3.tar.gz
+
+It is currently being maintained by James Troup <james@nocrew.org>.
+
+mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
+Modifications for Debian GNU/Linux Copyright (C) 1995-96 Chris Fearnley.
+Modifications for Debian GNU/Linux Copyright (C) 1998-2003 James Troup.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License version 2 as published
+by the Free Software Foundation.
+
+This program 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 with
+your Debian GNU system, in /usr/share/common-licenses/GPL-2, or with the
+Debian GNU mawk source package as the file COPYING.  If not, write to
+the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+Boston, MA 02110-1301, USA.
--- mawk-1.3.3.orig/debian/mawk.docs
+++ mawk-1.3.3/debian/mawk.docs
@@ -0,0 +1,2 @@
+README
+ACKNOWLEDGMENT
--- mawk-1.3.3.orig/debian/clean
+++ mawk-1.3.3/debian/clean
@@ -0,0 +1,2 @@
+parse.c
+parse.h
--- mawk-1.3.3.orig/debian/mawk.prerm
+++ mawk-1.3.3/debian/mawk.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+  update-alternatives --remove awk /usr/bin/mawk
+fi
+
+#DEBHELPER#
--- mawk-1.3.3.orig/debian/rules
+++ mawk-1.3.3/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with quilt
+
+override_dh_auto_install:
+	dh_auto_install -- BINDIR=$(CURDIR)/debian/mawk/usr/bin \
+	                   MANDIR=$(CURDIR)/debian/mawk/usr/share/man/man1
+
+override_dh_auto_build:
+	dh_auto_build -- mawk
+
+override_dh_auto_test:
+ifeq (,$(filter $(DEB_BUILD_OPTIONS),nocheck))
+	make mawk_test fpe_test
+endif
--- mawk-1.3.3.orig/debian/compat
+++ mawk-1.3.3/debian/compat
@@ -0,0 +1 @@
+9
--- mawk-1.3.3.orig/debian/mawk.dirs
+++ mawk-1.3.3/debian/mawk.dirs
@@ -0,0 +1,2 @@
+/usr/bin
+/usr/share/man/man1
--- mawk-1.3.3.orig/debian/changelog
+++ mawk-1.3.3/debian/changelog
@@ -0,0 +1,301 @@
+mawk (1.3.3-17) unstable; urgency=low
+
+  * debian/patches/cross-compile: fix the wrong invocation of AC_CHECK_PROG()
+    that breaks cross-compiler detection.
+  * debian/patches/21_memcpy-to-memmove: use memmove instead of memcpy in
+    FINgets.  Closes: #665383, LP: #955791.
+  * mark mawk Multi-Arch: foreign, to satisfy cross-build-dependencies.
+  * debian/patches/20_overlong-regexps: Do not crash if regexp is too
+    long for our buffer.  Thanks to Ian Jackson <iwj@ubuntu.com>,
+    Jonathan Nieder <jrnieder@gmail.com>.  Closes: #391051, LP: #23494.
+  * add autopkgtest/autodebtest support to run upstream tests.
+
+ -- Steve Langasek <vorlon@debian.org>  Fri, 23 Mar 2012 13:15:00 -0700
+
+mawk (1.3.3-16) unstable; urgency=low
+
+  * Swap out dpatch in favor of quilt.
+  * Replace debian/patches/08_fix-for-gcc3.3 with debian/patches/autoreconf,
+    which gets us modern autoconf support.
+  * Migrate to dh(1).  This gets us md5sums for the package (Closes: #507315)
+    and support for DEB_BUILD_OPTIONS=nostrip (Closes: #437557).
+  * Only run the mawk_test and fpe_test targets from override_dh_auto_test,
+    so that DEB_BUILD_OPTIONS=nocheck does the right thing.  This should
+    be sufficient to support cross-building, provided nocheck is passed in
+    the cross-build environment (as it should be).  Closes: #285418.
+  * Put mawk in Section: interpreters, along with the other awken.
+    Closes: #442071.
+  * debian/mawk.postinst: drop obsolete upgrade handling of long-gone broken
+    symlinks.
+  * Update to standards-version 3.9.2.
+  * Add Vcs-Bzr/Vcs-Browser fields.
+
+ -- Steve Langasek <vorlon@debian.org>  Tue, 25 Oct 2011 00:47:34 +0000
+
+mawk (1.3.3-15) unstable; urgency=high
+
+  * Fix debian/copyright to correctly list the license as GPLv2, not GPLv2
+    or later.  Closes: #536689
+
+ -- Steve Langasek <vorlon@debian.org>  Mon, 27 Jul 2009 11:26:47 -0700
+
+mawk (1.3.3-14) unstable; urgency=low
+
+  * Build-Conflict with byacc, as the current version doesn't appear to be
+    compatible with mawk; though we ought to fix the upstream build rules
+    to not check for byacc first in this case, this is an ok fix for now.
+    Closes: #509832.
+
+ -- Steve Langasek <vorlon@debian.org>  Fri, 26 Dec 2008 16:17:53 -0800
+
+mawk (1.3.3-13) unstable; urgency=low
+
+  * New maintainer; closes: #496711.
+  * Drop versioned gcc build-dependency, which has been satisfied since
+    before oldstable.
+  * debian/rules: fix up clean target to use a simpler, standard distclean
+    call, fixing a lintian warning.
+  * debian/rules: future-proof the clean target for patch interaction
+    with the build system, moving all the cleaning into a
+    "clean-patched" target that fires before the unpatch target
+
+ -- Steve Langasek <vorlon@debian.org>  Wed, 27 Aug 2008 10:03:33 -0700
+
+mawk (1.3.3-12) unstable; urgency=low
+
+  * New maintainer; closes: 496711
+  * Fix the following lintian issues:
+    W: ancient-standards-version 3.5.10.0 (current is 3.8.0)
+    W: mawk: unknown-section base
+    W: mawk: old-fsf-address-in-copyright-file
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Wed, 27 Aug 2008 17:41:50 +1000
+
+mawk (1.3.3-11.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/postinst: fix bashism.  Closes: #308134
+
+ -- Peter Eisentraut <petere@debian.org>  Sat, 05 Apr 2008 17:11:11 +0200
+
+mawk (1.3.3-11) unstable; urgency=low
+
+  * 08_fix-for-gcc3.3.dpatch: grossly hack configure to work around
+    gcc-3.3 providing a builtin log() function which broke the configure
+    tests.  Thanks to Daniel Schepler <schepler@math.berkeley.edu> for the
+    report.  Closes: #195371
+
+  * debian/control: add build-depends on gcc (>= 3:3.3-1) for hppa.
+  * debian/rules: remove de-optimization hack for hppa.  Thanks to LaMont
+    Jones <lamont@smallone.fc.hp.com> and Matthias Klose
+    <doko@cs.tu-berlin.de>.  Closes: #105816
+
+  * debian/control (Standards-Version): bump to 3.5.10.0.
+
+ -- James Troup <james@nocrew.org>  Fri, 30 May 2003 15:24:50 +0100
+
+mawk (1.3.3-10) unstable; urgency=low
+
+  * Move to dpatch; existing non-debian/ changes split into
+    01_error-on-full-fs, 02_fix-examples, 03_read-and-close-redefinition,
+    04_mawk.1-fix-pi and 05_-Wall-fixes.
+  * debian/rules: include /usr/share/dpatch/dpatch.make.
+  * debian/rules (build): depend on patch-stamp.
+  * debian/rules (clean): depend on unpatch.  Remove debian/patched.
+  * debian/control (Build-Depends): add dpatch.
+
+  * debian/rules: update copyright and use install_foo convenience
+    variables.
+  * debian/copyright: update copyright.
+
+  * debian/control (Standards-Version): bump to 3.5.9.0.
+  * debian/postinst, debian/prerm: no longer do /usr/doc symlinks.
+
+  * debian/prerm: use set -e rather than #!/bin/sh -e.
+
+  * 06_parse.y-semicolons.dpatch: new patch to fix missing semi-colons
+    that upset recent versions of bison.  Thanks to Paul Eggert
+    <eggert@twinsun.com>.  Closes: #170973
+  * debian/control (Build-Depends): add bison.
+  * debian/rules (clean): remove parse.c and parse.h so they're not
+    included in the .diff.gz.
+
+  * 07_mawktest-check-devfull: new patch to conditionalize the write error
+    tests on the existence of /dev/full since apparently some systems
+    don't have it.  Requested by Marcus.Brinkmann@ruhr-uni-bochum.de.
+    Closes: #51875
+
+  * debian/postinst: demote mawk to priority 5 so that gawk will be
+    selected by default.  [mawk isn't being actively maintained upstream
+    and has both long-standing bugs and isn't feature-complete WRT POSIX
+    at least.]
+
+ -- James Troup <james@nocrew.org>  Thu, 10 Apr 2003 02:22:27 +0100
+
+mawk (1.3.3-9) unstable; urgency=low
+
+  * debian/control: capitalize POSIX, thanks to Matt Zimmerman
+    <mdz@debian.org>.  Closes: #125120
+  * debian/changelog: remove obsolete local variables.
+  * man/mawk.1: add a macro provided by Colin Watson <cjwatson@debian.org>
+    to force PI to be displayed as "pi" (rather than 'n') when processed
+    by nroff.  Closes: #103699
+  * debian/control (Standards-Version): update to 3.5.6.1.
+
+ -- James Troup <james@nocrew.org>  Fri,  9 Aug 2002 15:04:23 +0100
+
+mawk (1.3.3-8) unstable; urgency=low
+
+  * debian/rules (build): compile with -O1 on hppa to work around probable
+    compiler bug.  Thanks to LaMont Jones <lamont@ia.mmjgroup.com>.
+
+ -- James Troup <james@nocrew.org>  Wed, 18 Jul 2001 20:40:37 +0100
+
+mawk (1.3.3-7) unstable; urgency=low
+
+  * mawk.h: remove bogus redefinition of read() and close() and #include
+    <unistd.h> instead, thanks to LaMont Jones <lamont@ia.mmjgroup.com>.
+    Closes: #104124
+
+ -- James Troup <james@nocrew.org>  Tue, 10 Jul 2001 03:09:24 +0100
+
+mawk (1.3.3-6) unstable; urgency=low
+
+  * debian/control (Maintainer): fixed to be me.
+  * debian/changelog: remove add-log-mailing-address.
+  * debian/rules: rewritten.
+  * debian/control (Standards-Version): bump to 3.5.5.0.
+  * Half hearted attempt at -Wall cleaning of the code.
+
+ -- James Troup <james@nocrew.org>  Mon, 25 Jun 2001 05:33:51 +0100
+
+mawk (1.3.3-5) unstable; urgency=low
+
+  * debian/postinst: manpages are in /usr/share/man now; forgot to update
+    the arguments to update-alternatives.  Thanks to Malcolm Parsons
+    <malcolm@ivywell.screaming.net> for noticing.  [#54440]
+
+ -- James Troup <awkmaint@nocrew.org>  Sun,  9 Jan 2000 16:54:14 +0000
+
+mawk (1.3.3-4) unstable; urgency=low
+
+  * debian/rules (build): make configure and the test scripts executables
+    to make builds work under aegis.
+  * debian/copyright: remove references to Linux.  Update location of the
+    GPL.  We are mawk, not hello.
+  * debian/rules (binary-arch): move to FHS; install documentation into
+    /usr/share/doc/ and manpages into /usr/share/man/.
+  * debian/postinst: add /usr/doc/ symlink.
+  * debian/prerm: remove /usr/doc/ symlink.
+  * debian/control (Standards-Version): update to 3.1.1.1.
+  * debian/rules (binary-arch): pass -isp to dpkg-gencontrol.
+
+ -- James Troup <awkmaint@nocrew.org>  Fri, 31 Dec 1999 13:53:42 +0000
+
+mawk (1.3.3-3) unstable; urgency=low
+
+  * debian/rules (binary-arch): add chmod -R go=rX to correct permissions
+    on directories.
+  * debian/control (Standards-Version): update [FSVO] to 2.5.0.0.
+
+  * The following entries are a patch from Torsten Landschoff
+    <torsten@debian.org>. [#4293, #28249]
+  * files.c: Added handling of write errors delivered when closing the
+    output file.
+  * test/mawktest: Added checking for correct handling of write errors on
+    full disks.
+
+  * The remaining entries are a patch from Edward Betts
+    <edward@debian.org>. [#36011]
+  * examples/hical: use /bin/echo to avoid bash's builtin.
+  * examples/{ct_length.awk,eatc.awk,nocomment,primes,qsort}: fix bang
+    path.
+  * examples/{decl.awk,gdecl.awk,hcal}: fix bang path, remove trailing
+    white space.
+
+ -- James Troup <awkmaint@nocrew.org>  Fri,  8 Oct 1999 18:26:49 +0100
+
+mawk (1.3.3-2) frozen unstable; urgency=low
+
+  * debian/control (Maintainer): New maintainer.  However, I'm just an
+    interim real maintainer, the package will go back to Chris as soon as
+    he's ready.
+  * debian/control (Standards-Version): Upgraded to 2.4.1.0.
+  * debian/control (Depends): Made a Pre-Depends. [#20601]
+  * debian/copyright: corrected URL of upstream source. [#20603]
+  * debian/copyright: updated the address of the FSF.
+  * Pristine upstream source.
+
+ -- James Troup <awkmaint@nocrew.org>  Thu, 30 Apr 1998 16:02:45 +0200
+
+mawk (1.3.3-1.1) unstable; urgency=low
+
+  * Non-maintainer release.
+  * Rebuilt under libc6 [#11707].
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Fri,  3 Oct 1997 20:19:36 +0200
+
+mawk (1.3.3-1) unstable; urgency=low
+
+  * Upgrade to latest upstream source (very minor bug fix)
+  * Change update-alternatives links to reflect compressed man pages.
+  * postinst: remove bad links in /usr/man/man1.
+
+ -- Chris Fearnley <cjf@netaxs.com>  Fri, 7 Mar 1997 14:41:20 -0500
+
+mawk (1.3.2-3) unstable; urgency=low
+
+  * I accidently built the last mawk from my hacked source :(
+    This version reverts to the pristine upstream (but fails to
+    completely close Bug #4293 -- which was the point of the dubious
+    hack found in mawk-1.3.2-2).  Sorry.  Glad I noticed so soon!
+
+ -- Chris Fearnley <cjf@netaxs.com>  Sun, 3 Nov 1996 22:57:45 -0500
+
+mawk (1.3.2-2) unstable; urgency=low
+
+  * Fixed postinst to install awk and nawk man pages correctly (bug#5001)
+
+ -- Chris Fearnley <cjf@netaxs.com>  Sun, 3 Nov 1996 22:28:56 -0500
+
+mawk (1.3.2-1) unstable; urgency=low
+
+  * upgrade to latest upstream source (solves bug #4293)
+  * development environment: gcc-2.7.2.1-1, libc5-5.2.18-10,
+    libc5-dev-5.2.18-10, binutils-2.6-2, and make-3.74-12
+
+ -- Chris Fearnley <cjf@netaxs.com>  Sat, 28 Sep 1996 22:58:42 -0400
+
+mawk (1.3.1-1) unstable; urgency=low
+
+  * upgrade to latest upstream source
+  * upgrade packaging to Debian Standards-Version 2.1.1.0
+  * i386 development environment: gcc-2.7.2.1-1, libc5-5.2.18-10,
+    libc5-dev-5.2.18-10, binutils-2.6-2, and make-3.74-12
+
+ -- Chris Fearnley <cjf@netaxs.com>  Wed, 18 Sep 1996 14:24:31 -0400
+
+mawk (1.2.2-2) unstable; urgency=low
+
+  * upgrade to latest debian packaging guidelines
+  * provides: awk
+  * mawk is now the default awk/nawk for Debian GNU/Linux
+  * Development environment for i386: gcc-2.7.2-8 libc5-5.2.18-9 make-3.74-12
+  * Section: base ; Priority: important
+
+ -- Chris Fearnley <cjf@netaxs.com>  Wed, 7 Aug 1996 21:51:21 -0400
+
+mawk (1.2.2-1) unstable; urgency=low
+
+  * Upgrade to new upsteam version
+  * Compiled with: gcc-2.7.2-2, binutils-2.6-2, and libc5-5.2.18-1.
+
+ -- Chris Fearnley <cjf@netaxs.com>  Mon, 29 Jan 1996 04:02:39 -0400
+
+mawk (1.2.1-1) unstable; urgency=low
+
+  * added Debian GNU/Linux package maintenance system files
+  * patched Makefile.in to make debianization more flexible
+  * initial release - ELF package
+
+ -- Chris Fearnley <cjf@netaxs.com>  Sun, 3 Dec 1995 00:48:23 -0400
--- mawk-1.3.3.orig/debian/tests/control
+++ mawk-1.3.3/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: mawktest
+Restrictions: rw-build-tree
--- mawk-1.3.3.orig/debian/tests/mawktest
+++ mawk-1.3.3/debian/tests/mawktest
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+sed -e '
+	/^PATH=/d;
+	/^mawk -W version/ s/$/ 2>&1/;
+' <test/mawktest >"$TMPDIR/mawktest"
+chmod +x "$TMPDIR/mawktest"
+cd test
+"$TMPDIR/mawktest"
--- mawk-1.3.3.orig/debian/patches/series
+++ mawk-1.3.3/debian/patches/series
@@ -0,0 +1,11 @@
+01_error-on-full-fs
+02_fix-examples
+03_read-and-close-redefinition
+04_mawk.1-fix-pi
+05_-Wall-fixes
+06_parse.y-semicolons
+07_mawktest-check-devfull
+20_overlong-regexps
+21_memcpy-to-memmove
+cross-compile
+autoreconf
--- mawk-1.3.3.orig/debian/patches/06_parse.y-semicolons
+++ mawk-1.3.3/debian/patches/06_parse.y-semicolons
@@ -0,0 +1,63 @@
+Author: Paul Eggert <eggert@twinsun.com>
+Description: Fix missing semicolons in parse.y to keep recent versions of bison happy.
+
+diff -urNad 06.mawk.tmp/parse.y 06.mawk/parse.y
+--- 06.mawk.tmp/parse.y	1995-06-11 23:55:31.000000000 +0100
++++ 06.mawk/parse.y	2003-04-09 22:34:10.000000000 +0100
+@@ -274,6 +274,7 @@
+                        code1(_PUSHINT) ; code1(0) ;
+                        code2(_PRINT, bi_print) ;
+                      }
++	;
+ 
+ statement_list :  statement
+         |  statement_list   statement
+@@ -482,6 +483,7 @@
+ /* an empty production to store the code_ptr */
+ mark : /* empty */
+          { $$ = code_offset ; }
++	;
+ 
+ /* print_statement */
+ statement :  print mark pr_args pr_direction separator
+@@ -540,6 +542,7 @@
+                 { patch_jmp(code_ptr) ; 
+ 		  patch_jmp(CDP($4)) ; 
+ 		}
++	;
+ 
+ 
+ /*  LOOPS   */
+@@ -883,7 +886,7 @@
+                  } 
+                }
+              }
+-                
++	;                
+ 
+ 
+ /* exit_statement */
+@@ -892,12 +895,14 @@
+                       code1(_EXIT0) ; }
+                |  EXIT   expr  separator
+                     { $$ = $2 ; code1(_EXIT) ; }
++	;
+ 
+ return_statement :  RETURN   separator
+                     { $$ = code_offset ;
+                       code1(_RET0) ; }
+                |  RETURN   expr  separator
+                     { $$ = $2 ; code1(_RET) ; }
++	;
+ 
+ /* getline */
+ 
+@@ -931,7 +936,7 @@
+           }
+        ;
+ 
+-getline :   GETLINE  { getline_flag = 1 ; }
++getline :   GETLINE  { getline_flag = 1 ; } ;
+ 
+ fvalue  :   lvalue  |  field  ;
+ 
--- mawk-1.3.3.orig/debian/patches/02_fix-examples
+++ mawk-1.3.3/debian/patches/02_fix-examples
@@ -0,0 +1,125 @@
+Author: Edward Betts <edward@debian.org>
+Description: Fix bang paths and echo usage in examples.
+
+diff -urNad 02.mawk.tmp/examples/ct_length.awk 02.mawk/examples/ct_length.awk
+--- 02.mawk.tmp/examples/ct_length.awk	1993-07-03 19:58:46.000000000 +0100
++++ 02.mawk/examples/ct_length.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/mawk -f
++#!/usr/bin/mawk -f
+ 
+ #  ct_length.awk
+ #
+diff -urNad 02.mawk.tmp/examples/decl.awk 02.mawk/examples/decl.awk
+--- 02.mawk.tmp/examples/decl.awk	1993-07-03 19:58:44.000000000 +0100
++++ 02.mawk/examples/decl.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,3 +1,4 @@
++#!/usr/bin/awk -f
+ 
+ # parse a C declaration by recursive descent
+ # based on a C program in KR ANSI edition
+@@ -137,7 +138,3 @@
+     }
+ 
+ }
+-
+-
+-
+-
+diff -urNad 02.mawk.tmp/examples/deps.awk 02.mawk/examples/deps.awk
+--- 02.mawk.tmp/examples/deps.awk	1994-02-24 02:54:30.000000000 +0000
++++ 02.mawk/examples/deps.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,3 +1,4 @@
++#!/usr/bin/mawk -f
+ 
+ # find include dependencies in C source
+ #
+diff -urNad 02.mawk.tmp/examples/eatc.awk 02.mawk/examples/eatc.awk
+--- 02.mawk.tmp/examples/eatc.awk	1993-07-03 19:58:46.000000000 +0100
++++ 02.mawk/examples/eatc.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,4 +1,4 @@
+-
++#!/usr/bin/mawk -f
+ 
+ #  eatc.awk
+ #  another program to remove comments
+diff -urNad 02.mawk.tmp/examples/gdecl.awk 02.mawk/examples/gdecl.awk
+--- 02.mawk.tmp/examples/gdecl.awk	1993-07-03 19:58:45.000000000 +0100
++++ 02.mawk/examples/gdecl.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,3 +1,4 @@
++#!/usr/bin/mawk
+ 
+ # parse a C declaration by recursive descent
+ # 
+@@ -130,7 +131,3 @@
+     }
+ 
+ }
+-
+-
+-
+-
+diff -urNad 02.mawk.tmp/examples/hcal 02.mawk/examples/hcal
+--- 02.mawk.tmp/examples/hcal	1996-08-25 19:45:47.000000000 +0100
++++ 02.mawk/examples/hcal	2003-04-09 22:14:56.000000000 +0100
+@@ -1,4 +1,5 @@
+-#!/usr/local/bin/mawk -We
++#!/usr/bin/mawk -We
++
+ # edit the above to be the full pathname of 'mawk'
+ # @(#) hcal - v01.00.02 - Tue Feb 27 21:21:21 EST 1996
+ # @(#) prints a 3-month (highlighted) calendar centered on the target month
+@@ -414,5 +415,3 @@
+ 	if ( ! j ) Get_J()
+ 	return Get_Num("01/01/0001",m,d,y,j)
+ }
+-
+-
+diff -urNad 02.mawk.tmp/examples/hical 02.mawk/examples/hical
+--- 02.mawk.tmp/examples/hical	1995-06-03 10:37:59.000000000 +0100
++++ 02.mawk/examples/hical	2003-04-09 22:14:56.000000000 +0100
+@@ -1,4 +1,5 @@
+-:
++#!/usr/sh
++
+ # @(#) hical - displays previous, current & next months - today highlighted
+ # @(#) an "internationalizationable" version of a 3-month 'cal' display, it
+ # @(#) may be edited for week to start with Sun or Mon & for local language
+@@ -19,8 +20,10 @@
+ # the 'awk' program file is written to a temporary file to avoid any
+ # "arg list too long" error messages, yet have all the code in one file
+ # observe when editing the program file that '\n' must be '\\n'
+-# NOTE: for the 'bash' shell on Linux, use 'echo -e' in the next line
+-echo '{
++# NOTE: to make this script portable /bin/echo has been used instead of the
++#  echo built into the shell for the 'bash' shell on Linux, use 'echo -e' in
++#  the next line (Modification made by Edward Betts <edward@debian.org>)
++/bin/echo '{
+ # USER EDITS MAY BE REQUIRED (for FMT, day & month names, and the time stuff)
+ # FMT = 0  # for weekdays ordered "Mo Tu We Th Fr Sa Su"
+   FMT = 1  # for weekdays ordered "Su Mo Tu We Th Fr Sa"
+diff -urNad 02.mawk.tmp/examples/nocomment.awk 02.mawk/examples/nocomment.awk
+--- 02.mawk.tmp/examples/nocomment.awk	1993-07-03 19:58:45.000000000 +0100
++++ 02.mawk/examples/nocomment.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,3 +1,4 @@
++#!/usr/bin/mawk -f
+ 
+ # remove C comments  from a list of files
+ # using a comment as the record separator
+diff -urNad 02.mawk.tmp/examples/primes.awk 02.mawk/examples/primes.awk
+--- 02.mawk.tmp/examples/primes.awk	1993-07-03 19:58:46.000000000 +0100
++++ 02.mawk/examples/primes.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,3 +1,4 @@
++#!/usr/bin/mawk -f
+ 
+ # primes.awk
+ #
+diff -urNad 02.mawk.tmp/examples/qsort.awk 02.mawk/examples/qsort.awk
+--- 02.mawk.tmp/examples/qsort.awk	1993-07-03 19:58:46.000000000 +0100
++++ 02.mawk/examples/qsort.awk	2003-04-09 22:14:56.000000000 +0100
+@@ -1,4 +1,4 @@
+-
++#!/usr/bin/mawk -f
+ 
+ # qsort text files
+ #
--- mawk-1.3.3.orig/debian/patches/03_read-and-close-redefinition
+++ mawk-1.3.3/debian/patches/03_read-and-close-redefinition
@@ -0,0 +1,24 @@
+Author: LaMont Jones <lamont@ia.mmjgroup.com>
+Description: Don't prototype read() and close() in mawk.h, #include <unistd.h> instead.
+
+diff -urNad 03.mawk.tmp/mawk.h 03.mawk/mawk.h
+--- 03.mawk.tmp/mawk.h	1996-11-08 14:54:52.000000000 +0000
++++ 03.mawk/mawk.h	2003-04-09 22:18:33.000000000 +0100
+@@ -52,6 +52,7 @@
+ 
+ #include  "nstd.h"
+ #include <stdio.h>
++#include <unistd.h>
+ #include "types.h"
+ 
+ #ifdef   DEBUG
+@@ -153,9 +154,6 @@
+ int   PROTO( binmode, (void)) ;
+ 
+ 
+-int   PROTO( close, (int) ) ;
+-int   PROTO( read, (int , PTR, unsigned) ) ;
+-
+ void PROTO ( parse, (void) ) ;
+ int  PROTO ( yylex, (void) ) ;
+ int  PROTO( yyparse, (void) ) ;
--- mawk-1.3.3.orig/debian/patches/21_memcpy-to-memmove
+++ mawk-1.3.3/debian/patches/21_memcpy-to-memmove
@@ -0,0 +1,12 @@
+--- a/fin.c	2003-05-30 15:24:50 +0000
++++ b/fin.c	2012-03-17 20:25:21 +0000
+@@ -326,7 +326,7 @@
+       /* move a partial line to front of buffer and try again */
+       unsigned rr ;
+ 
+-      p = (char *) memcpy(fin->buff, p, r = strlen(p)) ;
++      p = (char *) memmove(fin->buff, p, r = strlen(p)) ;
+       q = p+r ;	 rr = fin->nbuffs*BUFFSZ - r ;
+ 
+       if ((r = fillbuff(fin->fd, q, rr)) < rr)
+
--- mawk-1.3.3.orig/debian/patches/cross-compile
+++ mawk-1.3.3/debian/patches/cross-compile
@@ -0,0 +1,11 @@
+--- mawk-1.3.3.orig/mawk.ac.m4
++++ mawk-1.3.3/mawk.ac.m4
+@@ -252,7 +252,7 @@
+ dnl 
+ AC_DEFUN([PROG_CC_NO_MINUS_G_NONSENSE],
+ [AC_BEFORE([$0], [AC_PROG_CPP])dnl
+-AC_CHECK_PROG(CC, gcc, gcc, cc)
++AC_CHECK_PROG(CC)
+ dnl
+ AC_MSG_CHECKING(whether we are using GNU C)
+ AC_CACHE_VAL(ac_cv_prog_gcc,
--- mawk-1.3.3.orig/debian/patches/04_mawk.1-fix-pi
+++ mawk-1.3.3/debian/patches/04_mawk.1-fix-pi
@@ -0,0 +1,19 @@
+Author: Colin Watson <cjwatson@debian.org>
+Description: Display PI as "pi" rather than 'n' in mawk(1) when rendered by nroff.
+
+diff -urNad 04.mawk.tmp/man/mawk.1 04.mawk/man/mawk.1
+--- 04.mawk.tmp/man/mawk.1	1996-07-28 23:06:16.000000000 +0100
++++ 04.mawk/man/mawk.1	2003-04-09 22:21:29.000000000 +0100
+@@ -816,7 +816,11 @@
+ .RS
+ .PP
+ .nf
+-atan2(\fIy,x\fR)	Arctan of \fIy\fR/\fIx\fR between -\(*p and \(*p.
++.ie n \
++.ds Pi pi
++.el \
++.ds Pi \\(*p
++atan2(\fIy,x\fR)	Arctan of \fIy\fR/\fIx\fR between -\*(Pi and \*(Pi.
+ .PP  
+ cos(\fIx\fR)		Cosine function, \fIx\fR in radians.
+ .PP  
--- mawk-1.3.3.orig/debian/patches/07_mawktest-check-devfull
+++ mawk-1.3.3/debian/patches/07_mawktest-check-devfull
@@ -0,0 +1,33 @@
+Author: James Troup <james@nocrew.org>
+Description: Apparently some systems don't have /dev/full...
+
+diff -urNad 07.mawk.tmp/test/mawktest 07.mawk/test/mawktest
+--- 07.mawk.tmp/test/mawktest	2003-04-10 02:20:24.000000000 +0100
++++ 07.mawk/test/mawktest	2003-04-10 02:15:46.000000000 +0100
+@@ -39,14 +39,19 @@
+ #######################################
+ 
+ echo
+-echo testing checking for write errors
+-# Check for write errors noticed when closing the file
+-mawk '{print}' <full-awk.dat >/dev/full 2>/dev/null && exit
+-# Check for write errors noticed on writing
+-# The file has to be bigger than the buffer size of the libc
+-mawk '{print}' <../scan.c >/dev/full 2>/dev/null && exit
++if [ -c /dev/full ]; then
++    echo testing checking for write errors
++    # Check for write errors noticed when closing the file
++    mawk '{print}' <full-awk.dat >/dev/full 2>/dev/null && exit
++    # Check for write errors noticed on writing
++    # The file has to be bigger than the buffer size of the libc
++    mawk '{print}' <../scan.c >/dev/full 2>/dev/null && exit
++
++    echo checking for write errors OK
++else
++    echo "No /dev/full - check for write errors skipped"
++fi
+ 
+-echo checking for write errors OK
+ #######################################
+ 
+ echo
--- mawk-1.3.3.orig/debian/patches/autoreconf
+++ mawk-1.3.3/debian/patches/autoreconf
@@ -0,0 +1,6834 @@
+Author: Steve Langasek <vorlon@debian.org>
+Description: Run autoconf to get a modern configure script
+ This is needed to fix compatibility with recent versions of gcc.
+
+Index: mawk-1.3.3/configure
+===================================================================
+--- mawk-1.3.3.orig/configure
++++ mawk-1.3.3/configure
+@@ -1,26 +1,684 @@
+ #! /bin/sh
+-
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated automatically using autoconf version 2.4 
+-# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
++# Generated by GNU Autoconf 2.68.
++#
++#
++# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
++# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 more Bourne compatible
++DUALCASE=1; export DUALCASE # for MKS sh
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
++  emulate sh
++  NULLCMD=:
++  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+"$@"}'='"$@"'
++  setopt NO_GLOB_SUBST
++else
++  case `(set -o) 2>/dev/null` in #(
++  *posix*) :
++    set -o posix ;; #(
++  *) :
++     ;;
++esac
++fi
++
++
++as_nl='
++'
++export as_nl
++# Printing a long string crashes Solaris 7 /usr/bin/printf.
++as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
++# Prefer a ksh shell builtin over an external printf program on Solaris,
++# but without wasting forks for bash or zsh.
++if test -z "$BASH_VERSION$ZSH_VERSION" \
++    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='print -r --'
++  as_echo_n='print -rn --'
++elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='printf %s\n'
++  as_echo_n='printf %s'
++else
++  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
++    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
++    as_echo_n='/usr/ucb/echo -n'
++  else
++    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
++    as_echo_n_body='eval
++      arg=$1;
++      case $arg in #(
++      *"$as_nl"*)
++	expr "X$arg" : "X\\(.*\\)$as_nl";
++	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
++      esac;
++      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
++    '
++    export as_echo_n_body
++    as_echo_n='sh -c $as_echo_n_body as_echo'
++  fi
++  export as_echo_body
++  as_echo='sh -c $as_echo_body as_echo'
++fi
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++  PATH_SEPARATOR=:
++  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
++    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
++      PATH_SEPARATOR=';'
++  }
++fi
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.  Quoting is
++# there to prevent editors from complaining about space-tab.
++# (If _AS_PATH_WALK were called with IFS unset, it would disable word
++# splitting by setting IFS to empty value.)
++IFS=" ""	$as_nl"
++
++# Find who we are.  Look in the path if we contain no directory separator.
++as_myself=
++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
++IFS=$as_save_IFS
++
++     ;;
++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
++  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
++  exit 1
++fi
++
++# Unset variables that we do not need and which cause bugs (e.g. in
++# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
++# suppresses any "Segmentation fault" message there.  '((' could
++# trigger a bug in pdksh 5.2.14.
++for as_var in BASH_ENV ENV MAIL MAILPATH
++do eval test x\${$as_var+set} = xset \
++  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
++done
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++LC_ALL=C
++export LC_ALL
++LANGUAGE=C
++export LANGUAGE
++
++# CDPATH.
++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
++
++if test "x$CONFIG_SHELL" = x; then
++  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
++  emulate sh
++  NULLCMD=:
++  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '\${1+\"\$@\"}'='\"\$@\"'
++  setopt NO_GLOB_SUBST
++else
++  case \`(set -o) 2>/dev/null\` in #(
++  *posix*) :
++    set -o posix ;; #(
++  *) :
++     ;;
++esac
++fi
++"
++  as_required="as_fn_return () { (exit \$1); }
++as_fn_success () { as_fn_return 0; }
++as_fn_failure () { as_fn_return 1; }
++as_fn_ret_success () { return 0; }
++as_fn_ret_failure () { return 1; }
++
++exitcode=0
++as_fn_success || { exitcode=1; echo as_fn_success failed.; }
++as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
++as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
++as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
++if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
++
++else
++  exitcode=1; echo positional parameters were not saved.
++fi
++test x\$exitcode = x0 || exit 1"
++  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
++  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
++  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
++  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
++test \$(( 1 + 1 )) = 2 || exit 1"
++  if (eval "$as_required") 2>/dev/null; then :
++  as_have_required=yes
++else
++  as_have_required=no
++fi
++  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
++
++else
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++as_found=false
++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++  as_found=:
++  case $as_dir in #(
++	 /*)
++	   for as_base in sh bash ksh sh5; do
++	     # Try only shells that exist, to save several forks.
++	     as_shell=$as_dir/$as_base
++	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
++		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
++  CONFIG_SHELL=$as_shell as_have_required=yes
++		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
++  break 2
++fi
++fi
++	   done;;
++       esac
++  as_found=false
++done
++$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
++	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
++  CONFIG_SHELL=$SHELL as_have_required=yes
++fi; }
++IFS=$as_save_IFS
++
++
++      if test "x$CONFIG_SHELL" != x; then :
++  # We cannot yet assume a decent shell, so we have to provide a
++	# neutralization value for shells without unset; and this also
++	# works around shells that cannot unset nonexistent variables.
++	# Preserve -v and -x to the replacement shell.
++	BASH_ENV=/dev/null
++	ENV=/dev/null
++	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
++	export CONFIG_SHELL
++	case $- in # ((((
++	  *v*x* | *x*v* ) as_opts=-vx ;;
++	  *v* ) as_opts=-v ;;
++	  *x* ) as_opts=-x ;;
++	  * ) as_opts= ;;
++	esac
++	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
++fi
++
++    if test x$as_have_required = xno; then :
++  $as_echo "$0: This script requires a shell more modern than all"
++  $as_echo "$0: the shells that I found on your system."
++  if test x${ZSH_VERSION+set} = xset ; then
++    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
++    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
++  else
++    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
++$0: including any error possibly output before this
++$0: message. Then install a modern shell, or manually run
++$0: the script under such a shell if you do have one."
++  fi
++  exit 1
++fi
++fi
++fi
++SHELL=${CONFIG_SHELL-/bin/sh}
++export SHELL
++# Unset more variables known to interfere with behavior of common tools.
++CLICOLOR_FORCE= GREP_OPTIONS=
++unset CLICOLOR_FORCE GREP_OPTIONS
++
++## --------------------- ##
++## M4sh Shell Functions. ##
++## --------------------- ##
++# as_fn_unset VAR
++# ---------------
++# Portably unset VAR.
++as_fn_unset ()
++{
++  { eval $1=; unset $1;}
++}
++as_unset=as_fn_unset
++
++# as_fn_set_status STATUS
++# -----------------------
++# Set $? to STATUS, without forking.
++as_fn_set_status ()
++{
++  return $1
++} # as_fn_set_status
++
++# as_fn_exit STATUS
++# -----------------
++# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
++as_fn_exit ()
++{
++  set +e
++  as_fn_set_status $1
++  exit $1
++} # as_fn_exit
++
++# as_fn_mkdir_p
++# -------------
++# Create "$as_dir" as a directory, including parents if necessary.
++as_fn_mkdir_p ()
++{
++
++  case $as_dir in #(
++  -*) as_dir=./$as_dir;;
++  esac
++  test -d "$as_dir" || eval $as_mkdir_p || {
++    as_dirs=
++    while :; do
++      case $as_dir in #(
++      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
++      *) as_qdir=$as_dir;;
++      esac
++      as_dirs="'$as_qdir' $as_dirs"
++      as_dir=`$as_dirname -- "$as_dir" ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$as_dir" : 'X\(//\)[^/]' \| \
++	 X"$as_dir" : 'X\(//\)$' \| \
++	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)[^/].*/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++      test -d "$as_dir" && break
++    done
++    test -z "$as_dirs" || eval "mkdir $as_dirs"
++  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
++
++
++} # as_fn_mkdir_p
++# as_fn_append VAR VALUE
++# ----------------------
++# Append the text in VALUE to the end of the definition contained in VAR. Take
++# advantage of any shell optimizations that allow amortized linear growth over
++# repeated appends, instead of the typical quadratic growth present in naive
++# implementations.
++if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
++  eval 'as_fn_append ()
++  {
++    eval $1+=\$2
++  }'
++else
++  as_fn_append ()
++  {
++    eval $1=\$$1\$2
++  }
++fi # as_fn_append
++
++# as_fn_arith ARG...
++# ------------------
++# Perform arithmetic evaluation on the ARGs, and store the result in the
++# global $as_val. Take advantage of shells that can avoid forks. The arguments
++# must be portable across $(()) and expr.
++if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
++  eval 'as_fn_arith ()
++  {
++    as_val=$(( $* ))
++  }'
++else
++  as_fn_arith ()
++  {
++    as_val=`expr "$@" || test $? -eq 1`
++  }
++fi # as_fn_arith
++
++
++# as_fn_error STATUS ERROR [LINENO LOG_FD]
++# ----------------------------------------
++# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
++# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
++# script with STATUS, using 1 if that was 0.
++as_fn_error ()
++{
++  as_status=$1; test $as_status -eq 0 && as_status=1
++  if test "$4"; then
++    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
++  fi
++  $as_echo "$as_me: error: $2" >&2
++  as_fn_exit $as_status
++} # as_fn_error
++
++if expr a : '\(a\)' >/dev/null 2>&1 &&
++   test "X`expr 00001 : '.*\(...\)'`" = X001; 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
++
++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
++  as_dirname=dirname
++else
++  as_dirname=false
++fi
++
++as_me=`$as_basename -- "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++	 X"$0" : 'X\(//\)$' \| \
++	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X/"$0" |
++    sed '/^.*\/\([^/][^/]*\)\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++
++# 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
++
++
++  as_lineno_1=$LINENO as_lineno_1a=$LINENO
++  as_lineno_2=$LINENO as_lineno_2a=$LINENO
++  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
++  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
++  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
++  sed -n '
++    p
++    /[$]LINENO/=
++  ' <$as_myself |
++    sed '
++      s/[$]LINENO.*/&-/
++      t lineno
++      b
++      :lineno
++      N
++      :loop
++      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
++      t loop
++      s/-\n.*//
++    ' >$as_me.lineno &&
++  chmod +x "$as_me.lineno" ||
++    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_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 sensitive to this).
++  . "./$as_me.lineno"
++  # Exit status is that of the last command.
++  exit
++}
++
++ECHO_C= ECHO_N= ECHO_T=
++case `echo -n x` in #(((((
++-n*)
++  case `echo 'xy\c'` in
++  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
++  xy)  ECHO_C='\c';;
++  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
++       ECHO_T='	';;
++  esac;;
++*)
++  ECHO_N='-n';;
++esac
++
++rm -f conf$$ conf$$.exe conf$$.file
++if test -d conf$$.dir; then
++  rm -f conf$$.dir/conf$$.file
++else
++  rm -f conf$$.dir
++  mkdir conf$$.dir 2>/dev/null
++fi
++if (echo >conf$$.file) 2>/dev/null; then
++  if ln -s conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s='ln -s'
++    # ... but there are two gotchas:
++    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
++    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
++    # In both cases, we have to default to `cp -p'.
++    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
++      as_ln_s='cp -p'
++  elif ln conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s=ln
++  else
++    as_ln_s='cp -p'
++  fi
++else
++  as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
++rmdir conf$$.dir 2>/dev/null
++
++if mkdir -p . 2>/dev/null; then
++  as_mkdir_p='mkdir -p "$as_dir"'
++else
++  test -d ./-p && rmdir ./-p
++  as_mkdir_p=false
++fi
++
++if test -x / >/dev/null 2>&1; then
++  as_test_x='test -x'
++else
++  if ls -dL / >/dev/null 2>&1; then
++    as_ls_L_option=L
++  else
++    as_ls_L_option=
++  fi
++  as_test_x='
++    eval sh -c '\''
++      if test -d "$1"; then
++	test -d "$1/.";
++      else
++	case $1 in #(
++	-*)set "./$1";;
++	esac;
++	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
++	???[sx]*):;;*)false;;esac;fi
++    '\'' sh
++  '
++fi
++as_executable_p=$as_test_x
++
++# 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'"
++
++
++test -n "$DJDIR" || exec 7<&0 </dev/null
++exec 6>&1
++
++# Name of the host.
++# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
++# so uname gets run too.
++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+ 
+-# Defaults:
+-ac_help=
++#
++# Initializations.
++#
+ ac_default_prefix=/usr/local
+-# Any additions from configure.in:
++ac_clean_files=
++ac_config_libobj_dir=.
++LIBOBJS=
++cross_compiling=no
++subdirs=
++MFLAGS=
++MAKEFLAGS=
++
++# Identity of this package.
++PACKAGE_NAME=
++PACKAGE_TARNAME=
++PACKAGE_VERSION=
++PACKAGE_STRING=
++PACKAGE_BUGREPORT=
++PACKAGE_URL=
++
++ac_unique_file="mawk.h"
++# Factoring default headers for most tests.
++ac_includes_default="\
++#include <stdio.h>
++#ifdef HAVE_SYS_TYPES_H
++# include <sys/types.h>
++#endif
++#ifdef HAVE_SYS_STAT_H
++# include <sys/stat.h>
++#endif
++#ifdef STDC_HEADERS
++# include <stdlib.h>
++# include <stddef.h>
++#else
++# ifdef HAVE_STDLIB_H
++#  include <stdlib.h>
++# endif
++#endif
++#ifdef HAVE_STRING_H
++# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
++#  include <memory.h>
++# endif
++# include <string.h>
++#endif
++#ifdef HAVE_STRINGS_H
++# include <strings.h>
++#endif
++#ifdef HAVE_INTTYPES_H
++# include <inttypes.h>
++#endif
++#ifdef HAVE_STDINT_H
++# include <stdint.h>
++#endif
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif"
++
++ac_subst_vars='LTLIBOBJS
++LIBOBJS
++EGREP
++GREP
++YACC
++MATHLIB
++CPP
++OBJEXT
++EXEEXT
++ac_ct_CC
++CPPFLAGS
++LDFLAGS
++CFLAGS
++CC
++MANEXT
++MANDIR
++BINDIR
++target_alias
++host_alias
++build_alias
++LIBS
++ECHO_T
++ECHO_N
++ECHO_C
++DEFS
++mandir
++localedir
++libdir
++psdir
++pdfdir
++dvidir
++htmldir
++infodir
++docdir
++oldincludedir
++includedir
++localstatedir
++sharedstatedir
++sysconfdir
++datadir
++datarootdir
++libexecdir
++sbindir
++bindir
++program_transform_name
++prefix
++exec_prefix
++PACKAGE_URL
++PACKAGE_BUGREPORT
++PACKAGE_STRING
++PACKAGE_VERSION
++PACKAGE_TARNAME
++PACKAGE_NAME
++PATH_SEPARATOR
++SHELL'
++ac_subst_files=''
++ac_user_opts='
++enable_option_checking
++'
++      ac_precious_vars='build_alias
++host_alias
++target_alias
++CC
++CFLAGS
++LDFLAGS
++LIBS
++CPPFLAGS
++CPP'
++
+ 
+ # Initialize some variables set by options.
++ac_init_help=
++ac_init_version=false
++ac_unrecognized_opts=
++ac_unrecognized_sep=
+ # 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
+@@ -29,67 +687,132 @@
+ silent=
+ site=
+ srcdir=
+-target=NONE
+ verbose=
+ x_includes=NONE
+ x_libraries=NONE
+ 
+-# Initialize some other variables.
+-subdirs=
++# 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.
++# (The list follows the same order as the GNU Coding Standards.)
++bindir='${exec_prefix}/bin'
++sbindir='${exec_prefix}/sbin'
++libexecdir='${exec_prefix}/libexec'
++datarootdir='${prefix}/share'
++datadir='${datarootdir}'
++sysconfdir='${prefix}/etc'
++sharedstatedir='${prefix}/com'
++localstatedir='${prefix}/var'
++includedir='${prefix}/include'
++oldincludedir='/usr/include'
++docdir='${datarootdir}/doc/${PACKAGE}'
++infodir='${datarootdir}/info'
++htmldir='${docdir}'
++dvidir='${docdir}'
++pdfdir='${docdir}'
++psdir='${docdir}'
++libdir='${exec_prefix}/lib'
++localedir='${datarootdir}/locale'
++mandir='${datarootdir}/man'
+ 
+ ac_prev=
++ac_dashdash=
+ for ac_option
+ do
+-
+   # If the previous option needs an argument, assign it.
+   if test -n "$ac_prev"; then
+-    eval "$ac_prev=\$ac_option"
++    eval $ac_prev=\$ac_option
+     ac_prev=
+     continue
+   fi
+ 
+-  case "$ac_option" in
+-  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+-  *) ac_optarg= ;;
++  case $ac_option in
++  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
++  *=)   ac_optarg= ;;
++  *)    ac_optarg=yes ;;
+   esac
+ 
+   # Accept the important Cygnus configure options, so we can diagnose typos.
+ 
+-  case "$ac_option" in
+-
+-  -build | --build | --buil | --bui | --bu | --b)
+-    ac_prev=build ;;
+-  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
+-    build="$ac_optarg" ;;
++  case $ac_dashdash$ac_option in
++  --)
++    ac_dashdash=yes ;;
++
++  -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" ;;
++    cache_file=$ac_optarg ;;
++
++  --config-cache | -C)
++    cache_file=config.cache ;;
++
++  -datadir | --datadir | --datadi | --datad)
++    ac_prev=datadir ;;
++  -datadir=* | --datadir=* | --datadi=* | --datad=*)
++    datadir=$ac_optarg ;;
++
++  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
++  | --dataroo | --dataro | --datar)
++    ac_prev=datarootdir ;;
++  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
++  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
++    datarootdir=$ac_optarg ;;
+ 
+   -disable-* | --disable-*)
+-    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
++    ac_useropt=`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_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
++      as_fn_error $? "invalid feature name: $ac_useropt"
++    ac_useropt_orig=$ac_useropt
++    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
++    case $ac_user_opts in
++      *"
++"enable_$ac_useropt"
++"*) ;;
++      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
++	 ac_unrecognized_sep=', ';;
++    esac
++    eval enable_$ac_useropt=no ;;
++
++  -docdir | --docdir | --docdi | --doc | --do)
++    ac_prev=docdir ;;
++  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
++    docdir=$ac_optarg ;;
++
++  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
++    ac_prev=dvidir ;;
++  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
++    dvidir=$ac_optarg ;;
+ 
+   -enable-* | --enable-*)
+-    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
++    ac_useropt=`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
+-      *=*) ;;
+-      *) ac_optarg=yes ;;
++    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
++      as_fn_error $? "invalid feature name: $ac_useropt"
++    ac_useropt_orig=$ac_useropt
++    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
++    case $ac_user_opts in
++      *"
++"enable_$ac_useropt"
++"*) ;;
++      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
++	 ac_unrecognized_sep=', ';;
+     esac
+-    eval "enable_${ac_feature}='$ac_optarg'" ;;
++    eval enable_$ac_useropt=\$ac_optarg ;;
+ 
+   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+@@ -98,83 +821,110 @@
+   -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=PREFIX    install architecture-dependent files in PREFIX
+-                          [same as prefix]
+-  --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
+-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
+---enable and --with options recognized:$ac_help
+-EOF
+-    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 ;;
++
++  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
++    ac_prev=htmldir ;;
++  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
++  | --ht=*)
++    htmldir=$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 ;;
++
++  -localedir | --localedir | --localedi | --localed | --locale)
++    ac_prev=localedir ;;
++  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
++    localedir=$ac_optarg ;;
++
++  -localstatedir | --localstatedir | --localstatedi | --localstated \
++  | --localstate | --localstat | --localsta | --localst | --locals)
++    ac_prev=localstatedir ;;
++  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
++  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
++    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)
++  | --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" ;;
++    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 \
+@@ -191,55 +941,98 @@
+   | --program-transfo=* | --program-transf=* \
+   | --program-trans=* | --program-tran=* \
+   | --progr-tra=* | --program-tr=* | --program-t=*)
+-    program_transform_name="$ac_optarg" ;;
++    program_transform_name=$ac_optarg ;;
++
++  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
++    ac_prev=pdfdir ;;
++  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
++    pdfdir=$ac_optarg ;;
++
++  -psdir | --psdir | --psdi | --psd | --ps)
++    ac_prev=psdir ;;
++  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
++    psdir=$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" ;;
++    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 ;;
+ 
+   -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.4"
+-    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_useropt=`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
+-    ac_package=`echo $ac_package| sed 's/-/_/g'`
+-    case "$ac_option" in
+-      *=*) ;;
+-      *) ac_optarg=yes ;;
++    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
++      as_fn_error $? "invalid package name: $ac_useropt"
++    ac_useropt_orig=$ac_useropt
++    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
++    case $ac_user_opts in
++      *"
++"with_$ac_useropt"
++"*) ;;
++      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
++	 ac_unrecognized_sep=', ';;
+     esac
+-    eval "with_${ac_package}='$ac_optarg'" ;;
++    eval with_$ac_useropt=\$ac_optarg ;;
+ 
+   -without-* | --without-*)
+-    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
++    ac_useropt=`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_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
++      as_fn_error $? "invalid package name: $ac_useropt"
++    ac_useropt_orig=$ac_useropt
++    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
++    case $ac_user_opts in
++      *"
++"with_$ac_useropt"
++"*) ;;
++      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
++	 ac_unrecognized_sep=', ';;
++    esac
++    eval with_$ac_useropt=no ;;
+ 
+   --x)
+     # Obsolete; use --with-x.
+@@ -250,152 +1043,1022 @@
+     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; }
++  -*) as_fn_error $? "unrecognized option: \`$ac_option'
++Try \`$0 --help' for more information"
+     ;;
+ 
+-  *) 
+-    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"
++  *=*)
++    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
++    # Reject names that are not valid shell variable names.
++    case $ac_envvar in #(
++      '' | [0-9]* | *[!_$as_cr_alnum]* )
++      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
++    esac
++    eval $ac_envvar=\$ac_optarg
++    export $ac_envvar ;;
++
++  *)
++    # FIXME: should be removed in autoconf 3.0.
++    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
++    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
++      $as_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'`
++  as_fn_error $? "missing argument to $ac_option"
+ 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
++if test -n "$ac_unrecognized_opts"; then
++  case $enable_option_checking in
++    no) ;;
++    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
++    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
++  esac
+ 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
+ 
+-# 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
++# Check all directory arguments for consistency.
++for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
++		datadir sysconfdir sharedstatedir localstatedir includedir \
++		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
++		libdir localedir 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=\$$ac_var
++  # Remove trailing slashes.
++  case $ac_val in
++    */ )
++      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
++      eval $ac_var=\$ac_val;;
+   esac
++  # Be sure to have absolute directory names.
++  case $ac_val in
++    [\\/$]* | ?:[\\/]* )  continue;;
++    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
++  esac
++  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+ done
+ 
+-# NLS nuisances.
+-# Only set LANG and LC_ALL to C if already set.
+-# These must not be set unconditionally because not all systems understand
+-# e.g. LANG=C (notably SCO).
+-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+-if test "${LANG+set}"   = set; then LANG=C;   export LANG;   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
++    $as_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
++
++
++ac_pwd=`pwd` && test -n "$ac_pwd" &&
++ac_ls_di=`ls -di .` &&
++ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
++  as_fn_error $? "working directory cannot be determined"
++test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
++  as_fn_error $? "pwd does not report name of working directory"
+ 
+-# 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
+-
+-# 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=mawk.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=.
++  # Try the directory containing this script, then the parent directory.
++  ac_confdir=`$as_dirname -- "$as_myself" ||
++$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$as_myself" : 'X\(//\)[^/]' \| \
++	 X"$as_myself" : 'X\(//\)$' \| \
++	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$as_myself" |
++    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
++  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 "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+-  else
+-    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+-  fi
++if test ! -r "$srcdir/$ac_unique_file"; then
++  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
++  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
++fi
++ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
++ac_abs_confdir=`(
++	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
++	pwd)`
++# When building in place, set srcdir=.
++if test "$ac_abs_confdir" = "$ac_pwd"; then
++  srcdir=.
++fi
++# Remove unnecessary trailing slashes from srcdir.
++# Double slashes in file names in object file debugging info
++# mess up M-x gdb in Emacs.
++case $srcdir in
++*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
++esac
++for ac_var in $ac_precious_vars; do
++  eval ac_env_${ac_var}_set=\${${ac_var}+set}
++  eval ac_env_${ac_var}_value=\$${ac_var}
++  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
++  eval ac_cv_env_${ac_var}_value=\$${ac_var}
++done
++
++#
++# 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 \`..']
++
++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]
++  --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]
++  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
++  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
++  --infodir=DIR           info documentation [DATAROOTDIR/info]
++  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
++  --mandir=DIR            man documentation [DATAROOTDIR/man]
++  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
++  --htmldir=DIR           html documentation [DOCDIR]
++  --dvidir=DIR            dvi documentation [DOCDIR]
++  --pdfdir=DIR            pdf documentation [DOCDIR]
++  --psdir=DIR             ps documentation [DOCDIR]
++_ACEOF
++
++  cat <<\_ACEOF
++_ACEOF
++fi
++
++if test -n "$ac_init_help"; then
++
++  cat <<\_ACEOF
++
++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>
++  LIBS        libraries to pass to the linker, e.g. -l<library>
++  CPPFLAGS    (Objective) 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.
++
++Report bugs to the package provider.
++_ACEOF
++ac_status=$?
++fi
++
++if test "$ac_init_help" = "recursive"; then
++  # If there are subdirs, report their specific --help.
++  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
++    test -d "$ac_dir" ||
++      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
++      continue
++    ac_builddir=.
++
++case "$ac_dir" in
++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
++*)
++  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
++  # A ".." for each directory in $ac_dir_suffix.
++  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
++  case $ac_top_builddir_sub in
++  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
++  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
++  esac ;;
++esac
++ac_abs_top_builddir=$ac_pwd
++ac_abs_builddir=$ac_pwd$ac_dir_suffix
++# for backward compatibility:
++ac_top_builddir=$ac_top_build_prefix
++
++case $srcdir in
++  .)  # We are building in place.
++    ac_srcdir=.
++    ac_top_srcdir=$ac_top_builddir_sub
++    ac_abs_top_srcdir=$ac_pwd ;;
++  [\\/]* | ?:[\\/]* )  # Absolute name.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir
++    ac_abs_top_srcdir=$srcdir ;;
++  *) # Relative name.
++    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_build_prefix$srcdir
++    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
++esac
++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
++
++    cd "$ac_dir" || { ac_status=$?; continue; }
++    # Check for guested 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
++    else
++      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
++    fi || ac_status=$?
++    cd "$ac_pwd" || { ac_status=$?; break; }
++  done
+ fi
+-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+ 
+-# 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"
++test -n "$ac_init_help" && exit $ac_status
++if $ac_init_version; then
++  cat <<\_ACEOF
++configure
++generated by GNU Autoconf 2.68
++
++Copyright (C) 2010 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
++fi
++
++## ------------------------ ##
++## Autoconf initialization. ##
++## ------------------------ ##
++
++# ac_fn_c_try_compile LINENO
++# --------------------------
++# Try to compile conftest.$ac_ext, and return whether this succeeded.
++ac_fn_c_try_compile ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  rm -f conftest.$ac_objext
++  if { { ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_compile") 2>conftest.err
++  ac_status=$?
++  if test -s conftest.err; then
++    grep -v '^ *+' conftest.err >conftest.er1
++    cat conftest.er1 >&5
++    mv -f conftest.er1 conftest.err
++  fi
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; } && {
++	 test -z "$ac_c_werror_flag" ||
++	 test ! -s conftest.err
++       } && test -s conftest.$ac_objext; then :
++  ac_retval=0
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++	ac_retval=1
++fi
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++  as_fn_set_status $ac_retval
++
++} # ac_fn_c_try_compile
++
++# ac_fn_c_try_cpp LINENO
++# ----------------------
++# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
++ac_fn_c_try_cpp ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  if { { ac_try="$ac_cpp conftest.$ac_ext"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
++  ac_status=$?
++  if test -s conftest.err; then
++    grep -v '^ *+' conftest.err >conftest.er1
++    cat conftest.er1 >&5
++    mv -f conftest.er1 conftest.err
++  fi
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; } > conftest.i && {
++	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
++	 test ! -s conftest.err
++       }; then :
++  ac_retval=0
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++    ac_retval=1
++fi
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++  as_fn_set_status $ac_retval
++
++} # ac_fn_c_try_cpp
++
++# ac_fn_c_try_link LINENO
++# -----------------------
++# Try to link conftest.$ac_ext, and return whether this succeeded.
++ac_fn_c_try_link ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  rm -f conftest.$ac_objext conftest$ac_exeext
++  if { { ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_link") 2>conftest.err
++  ac_status=$?
++  if test -s conftest.err; then
++    grep -v '^ *+' conftest.err >conftest.er1
++    cat conftest.er1 >&5
++    mv -f conftest.er1 conftest.err
+   fi
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; } && {
++	 test -z "$ac_c_werror_flag" ||
++	 test ! -s conftest.err
++       } && test -s conftest$ac_exeext && {
++	 test "$cross_compiling" = yes ||
++	 $as_test_x conftest$ac_exeext
++       }; then :
++  ac_retval=0
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++	ac_retval=1
++fi
++  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
++  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
++  # interfere with the next link command; also delete a directory that is
++  # left behind by Apple's compiler.  We do this before executing the actions.
++  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++  as_fn_set_status $ac_retval
++
++} # ac_fn_c_try_link
++
++# ac_fn_c_check_func LINENO FUNC VAR
++# ----------------------------------
++# Tests whether FUNC exists, setting the cache variable VAR accordingly
++ac_fn_c_check_func ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
++$as_echo_n "checking for $2... " >&6; }
++if eval \${$3+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
++   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
++#define $2 innocuous_$2
++
++/* System header to define __stub macros and hopefully few prototypes,
++    which can conflict with char $2 (); 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 $2
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char $2 ();
++/* 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_$2 || defined __stub___$2
++choke me
++#endif
++
++int
++main ()
++{
++return $2 ();
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++  eval "$3=yes"
++else
++  eval "$3=no"
++fi
++rm -f core conftest.err conftest.$ac_objext \
++    conftest$ac_exeext conftest.$ac_ext
++fi
++eval ac_res=\$$3
++	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++
++} # ac_fn_c_check_func
++
++# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
++# -------------------------------------------------------
++# Tests whether HEADER exists, giving a warning if it cannot be compiled using
++# the include files in INCLUDES and setting the cache variable VAR
++# accordingly.
++ac_fn_c_check_header_mongrel ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  if eval \${$3+:} false; then :
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
++$as_echo_n "checking for $2... " >&6; }
++if eval \${$3+:} false; then :
++  $as_echo_n "(cached) " >&6
++fi
++eval ac_res=\$$3
++	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++else
++  # Is the header compilable?
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
++$as_echo_n "checking $2 usability... " >&6; }
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++$4
++#include <$2>
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  ac_header_compiler=yes
++else
++  ac_header_compiler=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
++$as_echo "$ac_header_compiler" >&6; }
++
++# Is the header present?
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
++$as_echo_n "checking $2 presence... " >&6; }
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <$2>
++_ACEOF
++if ac_fn_c_try_cpp "$LINENO"; then :
++  ac_header_preproc=yes
++else
++  ac_header_preproc=no
++fi
++rm -f conftest.err conftest.i conftest.$ac_ext
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
++$as_echo "$ac_header_preproc" >&6; }
++
++# So?  What about this header?
++case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
++  yes:no: )
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
++$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
++$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
++    ;;
++  no:yes:* )
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
++$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
++$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
++$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
++$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
++    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
++$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
++    ;;
++esac
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
++$as_echo_n "checking for $2... " >&6; }
++if eval \${$3+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  eval "$3=\$ac_header_compiler"
++fi
++eval ac_res=\$$3
++	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++fi
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++
++} # ac_fn_c_check_header_mongrel
++
++# ac_fn_c_try_run LINENO
++# ----------------------
++# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
++# that executables *can* be run.
++ac_fn_c_try_run ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  if { { ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_link") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
++  { { case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_try") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; }; then :
++  ac_retval=0
++else
++  $as_echo "$as_me: program exited with status $ac_status" >&5
++       $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++       ac_retval=$ac_status
++fi
++  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++  as_fn_set_status $ac_retval
++
++} # ac_fn_c_try_run
++
++# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
++# -------------------------------------------------------
++# Tests whether HEADER exists and can be compiled using the include files in
++# INCLUDES, setting the cache variable VAR accordingly.
++ac_fn_c_check_header_compile ()
++{
++  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
++$as_echo_n "checking for $2... " >&6; }
++if eval \${$3+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++$4
++#include <$2>
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  eval "$3=yes"
++else
++  eval "$3=no"
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++eval ac_res=\$$3
++	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
++$as_echo "$ac_res" >&6; }
++  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
++
++} # ac_fn_c_check_header_compile
++cat >config.log <<_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.68.  Invocation command line was
++
++  $ $0 $@
++
++_ACEOF
++exec 5>>config.log
++{
++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`
++/usr/bin/hostinfo      = `(/usr/bin/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=.
++    $as_echo "PATH: $as_dir"
++  done
++IFS=$as_save_IFS
++
++} >&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_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=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
++    esac
++    case $ac_pass in
++    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
++    2)
++      as_fn_append 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
++      as_fn_append ac_configure_args " '$ac_arg'"
++      ;;
++    esac
++  done
++done
++{ ac_configure_args0=; unset ac_configure_args0;}
++{ ac_configure_args1=; unset 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: Use '\'' to represent an apostrophe within the trap.
++# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
++trap 'exit_status=$?
++  # Save into config.log some information that might help in debugging.
++  {
++    echo
++
++    $as_echo "## ---------------- ##
++## Cache variables. ##
++## ---------------- ##"
++    echo
++    # The following way of writing the cache mishandles newlines in values,
++(
++  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
++    eval ac_val=\$$ac_var
++    case $ac_val in #(
++    *${as_nl}*)
++      case $ac_var in #(
++      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
++$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
++      esac
++      case $ac_var in #(
++      _ | IFS | as_nl) ;; #(
++      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
++      *) { eval $ac_var=; unset $ac_var;} ;;
++      esac ;;
++    esac
++  done
++  (set) 2>&1 |
++    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
++    *${as_nl}ac_space=\ *)
++      sed -n \
++	"s/'\''/'\''\\\\'\'''\''/g;
++	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
++      ;; #(
++    *)
++      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
++      ;;
++    esac |
++    sort
++)
++    echo
++
++    $as_echo "## ----------------- ##
++## Output variables. ##
++## ----------------- ##"
++    echo
++    for ac_var in $ac_subst_vars
++    do
++      eval ac_val=\$$ac_var
++      case $ac_val in
++      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
++      esac
++      $as_echo "$ac_var='\''$ac_val'\''"
++    done | sort
++    echo
++
++    if test -n "$ac_subst_files"; then
++      $as_echo "## ------------------- ##
++## File substitutions. ##
++## ------------------- ##"
++      echo
++      for ac_var in $ac_subst_files
++      do
++	eval ac_val=\$$ac_var
++	case $ac_val in
++	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
++	esac
++	$as_echo "$ac_var='\''$ac_val'\''"
++      done | sort
++      echo
++    fi
++
++    if test -s confdefs.h; then
++      $as_echo "## ----------- ##
++## confdefs.h. ##
++## ----------- ##"
++      echo
++      cat confdefs.h
++      echo
++    fi
++    test "$ac_signal" != 0 &&
++      $as_echo "$as_me: caught signal $ac_signal"
++    $as_echo "$as_me: exit $exit_status"
++  } >&5
++  rm -f core *.core core.conftest.* &&
++    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
++    exit $exit_status
++' 0
++for ac_signal in 1 2 13 15; do
++  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
++done
++ac_signal=0
++
++# confdefs.h avoids OS command line length limits that DEFS can exceed.
++rm -f -r conftest* confdefs.h
++
++$as_echo "/* confdefs.h */" > 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
++
++cat >>confdefs.h <<_ACEOF
++#define PACKAGE_URL "$PACKAGE_URL"
++_ACEOF
++
++
++# Let the site file select an alternate cache file if it wants to.
++# Prefer an explicitly selected file to automatically selected ones.
++ac_site_file1=NONE
++ac_site_file2=NONE
++if test -n "$CONFIG_SITE"; then
++  # We do not want a PATH search for config.site.
++  case $CONFIG_SITE in #((
++    -*)  ac_site_file1=./$CONFIG_SITE;;
++    */*) ac_site_file1=$CONFIG_SITE;;
++    *)   ac_site_file1=./$CONFIG_SITE;;
++  esac
++elif test "x$prefix" != xNONE; then
++  ac_site_file1=$prefix/share/config.site
++  ac_site_file2=$prefix/etc/config.site
++else
++  ac_site_file1=$ac_default_prefix/share/config.site
++  ac_site_file2=$ac_default_prefix/etc/config.site
+ fi
+-for ac_site_file in $CONFIG_SITE; do
+-  if test -r "$ac_site_file"; then
+-    echo "loading site script $ac_site_file"
+-    . "$ac_site_file"
++for ac_site_file in "$ac_site_file1" "$ac_site_file2"
++do
++  test "x$ac_site_file" = xNONE && continue
++  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
++    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
++$as_echo "$as_me: loading site script $ac_site_file" >&6;}
++    sed 's/^/| /' "$ac_site_file" >&5
++    . "$ac_site_file" \
++      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "failed to load site script $ac_site_file
++See \`config.log' for more details" "$LINENO" 5; }
+   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.  DJGPP emulates it as a regular file.
++  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
++    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
++$as_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
+-fi
++  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
++$as_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 $ac_precious_vars; 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,)
++      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
++$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
++      ac_cache_corrupted=: ;;
++    ,set)
++      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
++$as_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
++	# differences in whitespace do not lead to failure.
++	ac_old_val_w=`echo x $ac_old_val`
++	ac_new_val_w=`echo x $ac_new_val`
++	if test "$ac_old_val_w" != "$ac_new_val_w"; then
++	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
++$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
++	  ac_cache_corrupted=:
++	else
++	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
++$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
++	  eval $ac_var=\$ac_old_val
++	fi
++	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
++$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
++	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
++$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
++      fi;;
++  esac
++  # Pass precious variables to config.status.
++  if test "$ac_new_set" = set; then
++    case $ac_new_val in
++    *\'*) ac_arg=$ac_var=`$as_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.
++      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
++    esac
++  fi
++done
++if $ac_cache_corrupted; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
++$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
++  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
++fi
++## -------------------- ##
++## Main body of script. ##
++## -------------------- ##
+ 
+ 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 2>&5'
+-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
+-
+-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
+ 
+ 
+ 
+@@ -413,37 +2076,47 @@
+ test "${MANEXT+set}" = set || MANEXT="1"
+ 
+ echo "$USER_DEFINES" >> defines.out
+-# 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
+-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
++# Extract the first word of "", so it can be a program name with args.
++set dummy ; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_CC+:} false; then :
++  $as_echo_n "(cached) " >&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="${IFS}:"
+-  for ac_dir in $PATH; do
+-    test -z "$ac_dir" && ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      ac_cv_prog_CC="gcc"
+-      break
+-    fi
++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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_CC=""
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
+   done
+-  IFS="$ac_save_ifs"
+-  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
++IFS=$as_save_IFS
++
+ fi
+ fi
+-CC="$ac_cv_prog_CC"
++CC=$ac_cv_prog_CC
+ if test -n "$CC"; then
+-  echo "$ac_t""$CC" 1>&6
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
++$as_echo "$CC" >&6; }
+ else
+-  echo "$ac_t""no" 1>&6
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
+ fi
+ 
+-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
++
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
++$as_echo_n "checking whether we are using GNU C... " >&6; }
++if ${ac_cv_c_compiler_gnu+:} false; then :
++  $as_echo_n "(cached) " >&6
+ else
+   cat > conftest.c <<EOF
+ #ifdef __GNUC__
+@@ -451,1018 +2124,1644 @@
+ #endif
+ EOF
+ if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
+-  ac_cv_prog_gcc=yes
++  ac_cv_c_compiler_gnu=yes
+ else
+-  ac_cv_prog_gcc=no
++  ac_cv_c_compiler_gnu=no
+ fi
+ fi
+-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
++$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+ rm -f conftest*
+ 
+-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&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
+-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"
+-  # On the NeXT, cc -E runs the code through the compiler's parser,
+-  # not just through cpp.
+-  cat > conftest.$ac_ext <<EOF
+-#line 478 "configure"
+-#include "confdefs.h"
+-#include <assert.h>
+-Syntax Error
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  :
++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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_CC+:} false; then :
++  $as_echo_n "(cached) " >&6
+ else
+-  echo "$ac_err" >&5
+-  rm -rf conftest*
+-  CPP="${CC-cc} -E -traditional-cpp"
+-  cat > conftest.$ac_ext <<EOF
+-#line 492 "configure"
+-#include "confdefs.h"
+-#include <assert.h>
+-Syntax Error
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  :
++  if test -n "$CC"; then
++  ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+-  echo "$ac_err" >&5
+-  rm -rf conftest*
+-  CPP=/lib/cpp
+-fi
+-rm -f conftest*
++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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_CC="${ac_tool_prefix}gcc"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
++
+ fi
+-rm -f conftest*
+-  ac_cv_prog_CPP="$CPP"
+ fi
+-  CPP="$ac_cv_prog_CPP"
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
++$as_echo "$CC" >&6; }
+ else
+-  ac_cv_prog_CPP="$CPP"
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
+ fi
+-echo "$ac_t""$CPP" 1>&6
+-
+-test "${CFLAGS+set}" = set || CFLAGS="-O"
+ 
+ 
+-if test "${MATHLIB+set}" != set  ; then
+-echo $ac_n "checking for -lm""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
++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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_ac_ct_CC+:} false; then :
++  $as_echo_n "(cached) " >&6
+ else
+-  ac_save_LIBS="$LIBS"
+-LIBS="-lm  $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 528 "configure"
+-#include "confdefs.h"
+-
+-int main() { return 0; }
+-int t() {
+-log()
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_lib_m=yes"
++  if test -n "$ac_ct_CC"; then
++  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_lib_m=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
++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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_ac_ct_CC="gcc"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
+ 
+ fi
+-if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  MATHLIB=-lm ; LIBS="$LIBS -lm"
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
++$as_echo "$ac_ct_CC" >&6; }
+ else
+-  echo "$ac_t""no" 1>&6
+-# maybe don't need separate math library
+-echo $ac_n "checking for log""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_log'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 558 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char log(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char log(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_log) || defined (__stub___log)
+-choke me
+-#else
+-log();
+-#endif
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_log=yes"
++  if test "x$ac_ct_CC" = x; then
++    CC=""
++  else
++    case $cross_compiling:$ac_tool_warned in
++yes:)
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
++ac_tool_warned=yes ;;
++esac
++    CC=$ac_ct_CC
++  fi
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_log=no"
++  CC="$ac_cv_prog_CC"
+ fi
+-rm -f conftest*
++
++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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_CC+:} false; then :
++  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_CC="${ac_tool_prefix}cc"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
+ 
+ fi
+-if eval "test \"`echo '$ac_cv_func_'log`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  log=yes
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
++$as_echo "$CC" >&6; }
++else
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++
++  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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_CC+:} false; then :
++  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
++
++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
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
++$as_echo "$CC" >&6; }
++else
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++
++fi
++if test -z "$CC"; then
++  if test -n "$ac_tool_prefix"; then
++  for ac_prog in cl.exe
++  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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_CC+:} false; then :
++  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
++
++fi
++fi
++CC=$ac_cv_prog_CC
++if test -n "$CC"; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
++$as_echo "$CC" >&6; }
++else
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++
++    test -n "$CC" && break
++  done
++fi
++if test -z "$CC"; then
++  ac_ct_CC=$CC
++  for ac_prog in cl.exe
++do
++  # Extract the first word of "$ac_prog", so it can be a program name with args.
++set dummy $ac_prog; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_ac_ct_CC+:} false; then :
++  $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_ac_ct_CC="$ac_prog"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
++  done
++IFS=$as_save_IFS
++
++fi
++fi
++ac_ct_CC=$ac_cv_prog_ac_ct_CC
++if test -n "$ac_ct_CC"; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
++$as_echo "$ac_ct_CC" >&6; }
++else
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++fi
++
++
++  test -n "$ac_ct_CC" && break
++done
++
++  if test "x$ac_ct_CC" = x; then
++    CC=""
++  else
++    case $cross_compiling:$ac_tool_warned in
++yes:)
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
++ac_tool_warned=yes ;;
++esac
++    CC=$ac_ct_CC
++  fi
++fi
++
++fi
++
++
++test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "no acceptable C compiler found in \$PATH
++See \`config.log' for more details" "$LINENO" 5; }
++
++# Provide some information about the compiler.
++$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
++set X $ac_compile
++ac_compiler=$2
++for ac_option in --version -v -V -qversion; do
++  { { ac_try="$ac_compiler $ac_option >&5"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
++  ac_status=$?
++  if test -s conftest.err; then
++    sed '10a\
++... rest of stderr output deleted ...
++         10q' conftest.err >conftest.er1
++    cat conftest.er1 >&5
++  fi
++  rm -f conftest.er1 conftest.err
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }
++done
++
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files a.out a.out.dSYM 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.
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
++$as_echo_n "checking whether the C compiler works... " >&6; }
++ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
++
++# The possible output files:
++ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
++
++ac_rmfiles=
++for ac_file in $ac_files
++do
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
++    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
++  esac
++done
++rm -f $ac_rmfiles
++
++if { { ac_try="$ac_link_default"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_link_default") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; then :
++  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
++# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
++# in a Makefile.  We should not override ac_cv_exeext if it was cached,
++# so that the user can short-circuit this test for compilers unknown to
++# Autoconf.
++for ac_file in $ac_files ''
++do
++  test -f "$ac_file" || continue
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
++	;;
++    [ab].out )
++	# We found the default executable, but exeext='' is most
++	# certainly right.
++	break;;
++    *.* )
++	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
++	then :; else
++	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++	fi
++	# We set ac_cv_exeext here because the later test for it is not
++	# safe: cross compilers may not add the suffix if given an `-o'
++	# argument, so we may need to know it at that point already.
++	# Even if this section looks crufty: it has the advantage of
++	# actually working.
++	break;;
++    * )
++	break;;
++  esac
++done
++test "$ac_cv_exeext" = no && ac_cv_exeext=
++
+ else
+-  echo "$ac_t""no" 1>&6
++  ac_file=''
++fi
++if test -z "$ac_file"; then :
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++$as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error 77 "C compiler cannot create executables
++See \`config.log' for more details" "$LINENO" 5; }
++else
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++$as_echo "yes" >&6; }
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
++$as_echo_n "checking for C compiler default output file name... " >&6; }
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
++$as_echo "$ac_file" >&6; }
++ac_exeext=$ac_cv_exeext
++
++rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
++ac_clean_files=$ac_clean_files_save
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
++$as_echo_n "checking for suffix of executables... " >&6; }
++if { { ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_link") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; 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 | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
++    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
++	  break;;
++    * ) break;;
++  esac
++done
++else
++  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "cannot compute suffix of executables: cannot compile and link
++See \`config.log' for more details" "$LINENO" 5; }
++fi
++rm -f conftest conftest$ac_cv_exeext
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
++$as_echo "$ac_cv_exeext" >&6; }
++
++rm -f conftest.$ac_ext
++EXEEXT=$ac_cv_exeext
++ac_exeext=$EXEEXT
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <stdio.h>
++int
++main ()
++{
++FILE *f = fopen ("conftest.out", "w");
++ return ferror (f) || fclose (f) != 0;
++
++  ;
++  return 0;
++}
++_ACEOF
++ac_clean_files="$ac_clean_files conftest.out"
++# Check that the compiler produces executables we can run.  If not, either
++# the compiler is broken, or we cross compile.
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
++$as_echo_n "checking whether we are cross compiling... " >&6; }
++if test "$cross_compiling" != yes; then
++  { { ac_try="$ac_link"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_link") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }
++  if { ac_try='./conftest$ac_cv_exeext'
++  { { case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_try") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; }; then
++    cross_compiling=no
++  else
++    if test "$cross_compiling" = maybe; then
++	cross_compiling=yes
++    else
++	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "cannot run C compiled programs.
++If you meant to cross compile, use \`--host'.
++See \`config.log' for more details" "$LINENO" 5; }
++    fi
++  fi
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
++$as_echo "$cross_compiling" >&6; }
++
++rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
++ac_clean_files=$ac_clean_files_save
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
++$as_echo_n "checking for suffix of object files... " >&6; }
++if ${ac_cv_objext+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.o conftest.obj
++if { { ac_try="$ac_compile"
++case "(($ac_try" in
++  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++  *) ac_try_echo=$ac_try;;
++esac
++eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
++$as_echo "$ac_try_echo"; } >&5
++  (eval "$ac_compile") 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; then :
++  for ac_file in conftest.o conftest.obj conftest.*; do
++  test -f "$ac_file" || continue;
++  case $ac_file in
++    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
++    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
++       break;;
++  esac
++done
++else
++  $as_echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "cannot compute suffix of object files: cannot compile
++See \`config.log' for more details" "$LINENO" 5; }
++fi
++rm -f conftest.$ac_cv_objext conftest.$ac_ext
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
++$as_echo "$ac_cv_objext" >&6; }
++OBJEXT=$ac_cv_objext
++ac_objext=$OBJEXT
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
++$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
++if ${ac_cv_c_compiler_gnu+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++#ifndef __GNUC__
++       choke me
++#endif
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  ac_compiler_gnu=yes
++else
++  ac_compiler_gnu=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ac_cv_c_compiler_gnu=$ac_compiler_gnu
++
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
++$as_echo "$ac_cv_c_compiler_gnu" >&6; }
++if test $ac_compiler_gnu = yes; then
++  GCC=yes
++else
++  GCC=
++fi
++ac_test_CFLAGS=${CFLAGS+set}
++ac_save_CFLAGS=$CFLAGS
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
++$as_echo_n "checking whether $CC accepts -g... " >&6; }
++if ${ac_cv_prog_cc_g+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  ac_save_c_werror_flag=$ac_c_werror_flag
++   ac_c_werror_flag=yes
++   ac_cv_prog_cc_g=no
++   CFLAGS="-g"
++   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  ac_cv_prog_cc_g=yes
++else
++  CFLAGS=""
++      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++
++else
++  ac_c_werror_flag=$ac_save_c_werror_flag
++	 CFLAGS="-g"
++	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  ac_cv_prog_cc_g=yes
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++   ac_c_werror_flag=$ac_save_c_werror_flag
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
++$as_echo "$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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
++$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
++if ${ac_cv_prog_cc_c89+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  ac_cv_prog_cc_c89=no
++ac_save_CC=$CC
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* 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 -std 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 -std.  */
++int osf4_cc_array ['\x00' == 0 ? 1 : -1];
++
++/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
++   inside strings and character constants.  */
++#define FOO(x) 'x'
++int xlc6_cc_array[FOO(a) == 'x' ? 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
++for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
++	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
++do
++  CC="$ac_save_CC $ac_arg"
++  if ac_fn_c_try_compile "$LINENO"; then :
++  ac_cv_prog_cc_c89=$ac_arg
++fi
++rm -f core conftest.err conftest.$ac_objext
++  test "x$ac_cv_prog_cc_c89" != "xno" && break
++done
++rm -f conftest.$ac_ext
++CC=$ac_save_CC
++
++fi
++# AC_CACHE_VAL
++case "x$ac_cv_prog_cc_c89" in
++  x)
++    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
++$as_echo "none needed" >&6; } ;;
++  xno)
++    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
++$as_echo "unsupported" >&6; } ;;
++  *)
++    CC="$CC $ac_cv_prog_cc_c89"
++    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
++$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
++esac
++if test "x$ac_cv_prog_cc_c89" != xno; then :
++
++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_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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
++$as_echo_n "checking how to run the C preprocessor... " >&6; }
++# On Suns, sometimes $CPP names a directory.
++if test -n "$CPP" && test -d "$CPP"; then
++  CPP=
++fi
++if test -z "$CPP"; then
++  if ${ac_cv_prog_CPP+:} false; then :
++  $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++		     Syntax error
++_ACEOF
++if ac_fn_c_try_cpp "$LINENO"; then :
++
++else
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.i conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether nonexistent headers
++  # can be detected and how.
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <ac_nonexistent.h>
++_ACEOF
++if ac_fn_c_try_cpp "$LINENO"; then :
++  # Broken: success on invalid input.
++continue
++else
++  # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.i conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.i 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
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
++$as_echo "$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 confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
++		     Syntax error
++_ACEOF
++if ac_fn_c_try_cpp "$LINENO"; then :
++
++else
++  # Broken: fails on valid input.
++continue
++fi
++rm -f conftest.err conftest.i conftest.$ac_ext
++
++  # OK, works on sane cases.  Now check whether nonexistent headers
++  # can be detected and how.
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <ac_nonexistent.h>
++_ACEOF
++if ac_fn_c_try_cpp "$LINENO"; then :
++  # Broken: success on invalid input.
++continue
++else
++  # Passes both tests.
++ac_preproc_ok=:
++break
++fi
++rm -f conftest.err conftest.i conftest.$ac_ext
++
++done
++# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
++rm -f conftest.i conftest.err conftest.$ac_ext
++if $ac_preproc_ok; then :
++
++else
++  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
++See \`config.log' for more details" "$LINENO" 5; }
++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
++
++test "${CFLAGS+set}" = set || CFLAGS="-O"
++
++
++if test "${MATHLIB+set}" != set  ; then
++
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
++$as_echo_n "checking for log in -lm... " >&6; }
++if ${ac_cv_lib_m_log+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  ac_check_lib_save_LIBS=$LIBS
++LIBS="-lm  $LIBS"
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++/* Override any GCC internal prototype to avoid an error.
++   Use char because int might match the return type of a GCC
++   builtin and then its argument prototype would still apply.  */
++#ifdef __cplusplus
++extern "C"
++#endif
++char log ();
++int
++main ()
++{
++return log ();
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++  ac_cv_lib_m_log=yes
++else
++  ac_cv_lib_m_log=no
++fi
++rm -f core conftest.err conftest.$ac_objext \
++    conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
++$as_echo "$ac_cv_lib_m_log" >&6; }
++if test "x$ac_cv_lib_m_log" = xyes; then :
++  MATHLIB=-lm ; LIBS="$LIBS -lm"
++else
++  # maybe don't need separate math library
++ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
++if test "x$ac_cv_func_log" = xyes; then :
++  log=yes
+ fi
+ 
+ if test "$log$" = yes
+ then
+    MATHLIB='' # evidently don't need one
+ else
+-   { echo "configure: error: Cannot find a math library. You need to set MATHLIB in config.user" 1>&2; exit 1; }
++   as_fn_error $? "Cannot find a math library. You need to set MATHLIB in config.user" "$LINENO" 5
+ fi
+ fi
+ fi
+ 
+ for ac_prog in byacc bison yacc
+ 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
+-if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if ${ac_cv_prog_YACC+:} false; then :
++  $as_echo_n "(cached) " >&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="${IFS}:"
+-  for ac_dir in $PATH; do
+-    test -z "$ac_dir" && ac_dir=.
+-    if test -f $ac_dir/$ac_word; then
+-      ac_cv_prog_YACC="$ac_prog"
+-      break
+-    fi
++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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++    ac_cv_prog_YACC="$ac_prog"
++    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++    break 2
++  fi
++done
+   done
+-  IFS="$ac_save_ifs"
++IFS=$as_save_IFS
++
+ fi
+ fi
+-YACC="$ac_cv_prog_YACC"
++YACC=$ac_cv_prog_YACC
+ if test -n "$YACC"; then
+-  echo "$ac_t""$YACC" 1>&6
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
++$as_echo "$YACC" >&6; }
+ else
+-  echo "$ac_t""no" 1>&6
++  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
+ fi
+ 
+-test -n "$YACC" && break
++
++  test -n "$YACC" && break
+ done
+ 
+ test "$YACC" = bison && YACC='bison -y'
+-echo $ac_n "checking compiler supports void*""... $ac_c" 1>&6
+-cat > conftest.$ac_ext <<EOF
+-#line 641 "configure"
+-#include "confdefs.h"
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler supports void*" >&5
++$as_echo_n "checking compiler supports void*... " >&6; }
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ char *cp ;
+-void *foo() ; 
+-int main() { return 0; }
+-int t() {
++void *foo() ;
++int
++main ()
++{
+ cp = (char*)(void*)(int*)foo() ;
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
+   void_star=yes
+ else
+-  rm -rf conftest*
+   void_star=no
+ fi
+-rm -f conftest*
+-
+-echo "$ac_t""$void_star" 1>&6
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $void_star" >&5
++$as_echo "$void_star" >&6; }
+ test "$void_star" = no && echo  X 'NO_VOID_STAR' '1' >> defines.out
+-echo $ac_n "checking compiler groks prototypes""... $ac_c" 1>&6
+-cat > conftest.$ac_ext <<EOF
+-#line 663 "configure"
+-#include "confdefs.h"
+-
+-int main() { return 0; }
+-int t() {
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler groks prototypes" >&5
++$as_echo_n "checking compiler groks prototypes... " >&6; }
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++int
++main ()
++{
+ int x(char*);
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
+   protos=yes
+ else
+-  rm -rf conftest*
+   protos=no
+ fi
+-rm -f conftest*
+-
+-echo "$ac_t""$protos" 1>&6
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $protos" >&5
++$as_echo "$protos" >&6; }
+ test "$protos" = no && echo  X 'NO_PROTOS' '1' >> defines.out
+-echo $ac_n "checking for working const""... $ac_c" 1>&6
+-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 687 "configure"
+-#include "confdefs.h"
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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;
+-/* 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;
+-}
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
++$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
++if ${ac_cv_c_const+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* 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 cs;
++  /* SunOS 4.1.1 cc rejects this.  */
++  char const *const *pcpcc;
++  char **ppc;
++  /* 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";
++  pcpcc = &g + (g ? g-g : 0);
++  /* HPUX 7.0 cc rejects these. */
++  ++pcpcc;
++  ppc = (char**) pcpcc;
++  pcpcc = (char const *const *) ppc;
++  { /* SCO 3.2v4 cc rejects this.  */
++    char *t;
++    char const *s = 0 ? (char *) 0 : (char const *) 0;
++
++    *t++ = 0;
++    if (s) return 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;
++    if (!foo) return 0;
++  }
++  return !cs[0] && !zero.x;
++#endif
+ 
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
+   ac_cv_c_const=yes
+ else
+-  rm -rf conftest*
+   ac_cv_c_const=no
+ fi
+-rm -f conftest*
+-
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo "$ac_t""$ac_cv_c_const" 1>&6
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
++$as_echo "$ac_cv_c_const" >&6; }
+ if test $ac_cv_c_const = no; then
+-  cat >> confdefs.h <<\EOF
+-#define const 
+-EOF
++
++$as_echo "#define const /**/" >>confdefs.h
+ 
+ fi
+ 
+ test "$ac_cv_c_const" = no && echo  X 'const' '' >> defines.out
+ 
+   if test "$size_t_defed" != 1 ; then
+-   ac_safe=`echo "stddef.h" | tr './\055' '___'`
+-echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
+-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 764 "configure"
+-#include "confdefs.h"
+-#include <stddef.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&5
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=no"
++
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
++$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
++if ${ac_cv_path_GREP+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  if test -z "$GREP"; then
++  ac_path_GREP_found=false
++  # Loop through the user's path and test for each of PROGNAME-LIST
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++    for ac_prog in grep ggrep; do
++    for ac_exec_ext in '' $ac_executable_extensions; do
++      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
++      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
++# Check for GNU ac_path_GREP and select it if it is found.
++  # Check for GNU $ac_path_GREP
++case `"$ac_path_GREP" --version 2>&1` in
++*GNU*)
++  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
++*)
++  ac_count=0
++  $as_echo_n 0123456789 >"conftest.in"
++  while :
++  do
++    cat "conftest.in" "conftest.in" >"conftest.tmp"
++    mv "conftest.tmp" "conftest.in"
++    cp "conftest.in" "conftest.nl"
++    $as_echo 'GREP' >> "conftest.nl"
++    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
++    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
++    as_fn_arith $ac_count + 1 && ac_count=$as_val
++    if test $ac_count -gt ${ac_path_GREP_max-0}; then
++      # Best one so far, save it but keep looking for a better one
++      ac_cv_path_GREP="$ac_path_GREP"
++      ac_path_GREP_max=$ac_count
++    fi
++    # 10*(2^10) chars as input seems more than enough
++    test $ac_count -gt 10 && break
++  done
++  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
++esac
++
++      $ac_path_GREP_found && break 3
++    done
++  done
++  done
++IFS=$as_save_IFS
++  if test -z "$ac_cv_path_GREP"; then
++    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
++  fi
++else
++  ac_cv_path_GREP=$GREP
+ fi
+-rm -f conftest*
++
+ fi
+-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  size_t_header=ok
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
++$as_echo "$ac_cv_path_GREP" >&6; }
++ GREP="$ac_cv_path_GREP"
++
++
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
++$as_echo_n "checking for egrep... " >&6; }
++if ${ac_cv_path_EGREP+:} false; then :
++  $as_echo_n "(cached) " >&6
+ else
+-  echo "$ac_t""no" 1>&6
++  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
++   then ac_cv_path_EGREP="$GREP -E"
++   else
++     if test -z "$EGREP"; then
++  ac_path_EGREP_found=false
++  # Loop through the user's path and test for each of PROGNAME-LIST
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
++do
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++    for ac_prog in egrep; do
++    for ac_exec_ext in '' $ac_executable_extensions; do
++      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
++      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
++# Check for GNU ac_path_EGREP and select it if it is found.
++  # Check for GNU $ac_path_EGREP
++case `"$ac_path_EGREP" --version 2>&1` in
++*GNU*)
++  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
++*)
++  ac_count=0
++  $as_echo_n 0123456789 >"conftest.in"
++  while :
++  do
++    cat "conftest.in" "conftest.in" >"conftest.tmp"
++    mv "conftest.tmp" "conftest.in"
++    cp "conftest.in" "conftest.nl"
++    $as_echo 'EGREP' >> "conftest.nl"
++    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
++    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
++    as_fn_arith $ac_count + 1 && ac_count=$as_val
++    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
++      # Best one so far, save it but keep looking for a better one
++      ac_cv_path_EGREP="$ac_path_EGREP"
++      ac_path_EGREP_max=$ac_count
++    fi
++    # 10*(2^10) chars as input seems more than enough
++    test $ac_count -gt 10 && break
++  done
++  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
++esac
++
++      $ac_path_EGREP_found && break 3
++    done
++  done
++  done
++IFS=$as_save_IFS
++  if test -z "$ac_cv_path_EGREP"; then
++    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
++  fi
++else
++  ac_cv_path_EGREP=$EGREP
+ fi
+ 
+-   if test "$size_t_header" = ok ; then
+-   cat > conftest.$ac_ext <<EOF
+-#line 789 "configure"
+-#include "confdefs.h"
++   fi
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
++$as_echo "$ac_cv_path_EGREP" >&6; }
++ EGREP="$ac_cv_path_EGREP"
+ 
+-#include <stddef.h>
+-int main() { return 0; }
+-int t() {
+-size_t *n ;
+ 
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
+-  size_t_defed=1;
+-echo  X 'SIZE_T_STDDEF_H' '1' >> defines.out
+-echo getting size_t from '<stddef.h>'
+-fi
+-rm -f conftest*
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
++$as_echo_n "checking for ANSI C header files... " >&6; }
++if ${ac_cv_header_stdc+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <stdlib.h>
++#include <stdarg.h>
++#include <string.h>
++#include <float.h>
+ 
+-fi;fi
++int
++main ()
++{
+ 
+-  if test "$size_t_defed" != 1 ; then
+-   ac_safe=`echo "sys/types.h" | tr './\055' '___'`
+-echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
+-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 816 "configure"
+-#include "confdefs.h"
+-#include <sys/types.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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
+-  size_t_header=ok
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  ac_cv_header_stdc=yes
+ else
+-  echo "$ac_t""no" 1>&6
++  ac_cv_header_stdc=no
+ fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ 
+-   if test "$size_t_header" = ok ; then
+-   cat > conftest.$ac_ext <<EOF
+-#line 841 "configure"
+-#include "confdefs.h"
++if test $ac_cv_header_stdc = yes; then
++  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <string.h>
+ 
+-#include <sys/types.h>
+-int main() { return 0; }
+-int t() {
+-size_t *n ;
++_ACEOF
++if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
++  $EGREP "memchr" >/dev/null 2>&1; then :
+ 
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
+-  size_t_defed=1;
+-echo  X 'SIZE_T_TYPES_H' '1' >> defines.out
+-echo getting size_t from '<sys/types.h>'
++else
++  ac_cv_header_stdc=no
+ fi
+ rm -f conftest*
+ 
+-fi;fi
+-ac_safe=`echo "fcntl.h" | tr './\055' '___'`
+-echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
+-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 866 "configure"
+-#include "confdefs.h"
+-#include <fcntl.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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
+-  :
+-else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_FCNTL_H 1
+-EOF
+ 
+-echo  X 'NO_FCNTL_H' '1' >> defines.out
+-fi
+- 
+-ac_safe=`echo "errno.h" | tr './\055' '___'`
+-echo $ac_n "checking for errno.h""... $ac_c" 1>&6
+-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 900 "configure"
+-#include "confdefs.h"
+-#include <errno.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&5
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=no"
++if test $ac_cv_header_stdc = yes; then
++  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* 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 eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++
++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
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_ERRNO_H 1
+-EOF
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++#include <ctype.h>
++#include <stdlib.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
+ 
+-echo  X 'NO_ERRNO_H' '1' >> defines.out
+-fi
+- 
+-ac_safe=`echo "time.h" | tr './\055' '___'`
+-echo $ac_n "checking for time.h""... $ac_c" 1>&6
+-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 934 "configure"
+-#include "confdefs.h"
+-#include <time.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&5
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=no"
++#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))
++      return 2;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_run "$LINENO"; then :
++
++else
++  ac_cv_header_stdc=no
+ fi
+-rm -f conftest*
++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
++  conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
+-else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_TIME_H 1
+-EOF
+ 
+-echo  X 'NO_TIME_H' '1' >> defines.out
+-fi
+- 
+-ac_safe=`echo "stdarg.h" | tr './\055' '___'`
+-echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6
+-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 968 "configure"
+-#include "confdefs.h"
+-#include <stdarg.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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
+-  :
+-else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_STDARG_H 1
+-EOF
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
++$as_echo "$ac_cv_header_stdc" >&6; }
++if test $ac_cv_header_stdc = yes; then
++
++$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+ 
+-echo  X 'NO_STDARG_H' '1' >> defines.out
+ fi
+ 
+-echo $ac_n "checking for memcpy""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1001 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char memcpy(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char memcpy(); 
++# 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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
++ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
++"
++if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
++  cat >>confdefs.h <<_ACEOF
++#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
+ 
+-int main() { return 0; }
+-int t() {
++fi
+ 
+-/* 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_memcpy) || defined (__stub___memcpy)
+-choke me
+-#else
+-memcpy();
+-#endif
++done
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_memcpy=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_memcpy=no"
++
++ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
++if test "x$ac_cv_header_stddef_h" = xyes; then :
++  size_t_header=ok
+ fi
+-rm -f conftest*
+ 
++
++   if test "$size_t_header" = ok ; then
++   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
++
++#include <stddef.h>
++int
++main ()
++{
++size_t *n ;
++
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  size_t_defed=1;
++echo  X 'SIZE_T_STDDEF_H' '1' >> defines.out
++echo getting size_t from '<stddef.h>'
+ fi
+-if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
+-else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_MEMCPY 1
+-EOF
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi;fi
+ 
+-echo  X 'NO_MEMCPY' '1' >> defines.out
++  if test "$size_t_defed" != 1 ; then
++   ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
++if test "x$ac_cv_header_sys_types_h" = xyes; then :
++  size_t_header=ok
+ fi
+- 
+-echo $ac_n "checking for strchr""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1050 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char strchr(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char strchr(); 
+ 
+-int main() { return 0; }
+-int t() {
+ 
+-/* 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_strchr) || defined (__stub___strchr)
+-choke me
+-#else
+-strchr();
+-#endif
++   if test "$size_t_header" = ok ; then
++   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_strchr=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_strchr=no"
+-fi
+-rm -f conftest*
++#include <sys/types.h>
++int
++main ()
++{
++size_t *n ;
+ 
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++  size_t_defed=1;
++echo  X 'SIZE_T_TYPES_H' '1' >> defines.out
++echo getting size_t from '<sys/types.h>'
+ fi
+-if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++fi;fi
++ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
++if test "x$ac_cv_header_fcntl_h" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_STRCHR 1
+-EOF
++  $as_echo "#define NO_FCNTL_H 1" >>confdefs.h
+ 
+-echo  X 'NO_STRCHR' '1' >> defines.out
++echo  X 'NO_FCNTL_H' '1' >> defines.out
+ fi
+- 
+-echo $ac_n "checking for strerror""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1099 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char strerror(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char strerror(); 
+ 
+-int main() { return 0; }
+-int t() {
+ 
+-/* 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_strerror) || defined (__stub___strerror)
+-choke me
+-#else
+-strerror();
+-#endif
++ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
++if test "x$ac_cv_header_errno_h" = xyes; then :
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_strerror=yes"
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_strerror=no"
+-fi
+-rm -f conftest*
++  $as_echo "#define NO_ERRNO_H 1" >>confdefs.h
+ 
++echo  X 'NO_ERRNO_H' '1' >> defines.out
+ fi
+-if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++
++
++ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
++if test "x$ac_cv_header_time_h" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_STRERROR 1
+-EOF
++  $as_echo "#define NO_TIME_H 1" >>confdefs.h
+ 
+-echo  X 'NO_STRERROR' '1' >> defines.out
++echo  X 'NO_TIME_H' '1' >> defines.out
+ fi
+- 
+-echo $ac_n "checking for vfprintf""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_vfprintf'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1148 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char vfprintf(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char vfprintf(); 
+ 
+-int main() { return 0; }
+-int t() {
+ 
+-/* 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_vfprintf) || defined (__stub___vfprintf)
+-choke me
+-#else
+-vfprintf();
+-#endif
++ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
++if test "x$ac_cv_header_stdarg_h" = xyes; then :
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_vfprintf=yes"
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_vfprintf=no"
+-fi
+-rm -f conftest*
++  $as_echo "#define NO_STDARG_H 1" >>confdefs.h
+ 
++echo  X 'NO_STDARG_H' '1' >> defines.out
+ fi
+-if eval "test \"`echo '$ac_cv_func_'vfprintf`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++
++
++ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
++if test "x$ac_cv_func_memcpy" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_VFPRINTF 1
+-EOF
++  $as_echo "#define NO_MEMCPY 1" >>confdefs.h
+ 
+-echo  X 'NO_VFPRINTF' '1' >> defines.out
++echo  X 'NO_MEMCPY' '1' >> defines.out
+ fi
+- 
+-echo $ac_n "checking for strtod""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1197 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char strtod(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char strtod(); 
+-
+-int main() { return 0; }
+-int t() {
+ 
+-/* 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_strtod) || defined (__stub___strtod)
+-choke me
+-#else
+-strtod();
+-#endif
++ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
++if test "x$ac_cv_func_strchr" = xyes; then :
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_strtod=yes"
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_strtod=no"
+-fi
+-rm -f conftest*
++  $as_echo "#define NO_STRCHR 1" >>confdefs.h
+ 
++echo  X 'NO_STRCHR' '1' >> defines.out
+ fi
+-if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++
++ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
++if test "x$ac_cv_func_strerror" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_STRTOD 1
+-EOF
++  $as_echo "#define NO_STRERROR 1" >>confdefs.h
+ 
+-echo  X 'NO_STRTOD' '1' >> defines.out
++echo  X 'NO_STRERROR' '1' >> defines.out
+ fi
+- 
+-echo $ac_n "checking for fmod""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_fmod'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1246 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char fmod(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char fmod(); 
+-
+-int main() { return 0; }
+-int t() {
+ 
+-/* 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_fmod) || defined (__stub___fmod)
+-choke me
+-#else
+-fmod();
+-#endif
++ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
++if test "x$ac_cv_func_vfprintf" = xyes; then :
+ 
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_fmod=yes"
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_fmod=no"
+-fi
+-rm -f conftest*
++  $as_echo "#define NO_VFPRINTF 1" >>confdefs.h
+ 
++echo  X 'NO_VFPRINTF' '1' >> defines.out
+ fi
+-if eval "test \"`echo '$ac_cv_func_'fmod`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++
++ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
++if test "x$ac_cv_func_strtod" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_FMOD 1
+-EOF
++  $as_echo "#define NO_STRTOD 1" >>confdefs.h
+ 
+-echo  X 'NO_FMOD' '1' >> defines.out
++echo  X 'NO_STRTOD' '1' >> defines.out
+ fi
+- 
+-echo $ac_n "checking for matherr""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_matherr'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1295 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char matherr(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char matherr(); 
+ 
+-int main() { return 0; }
+-int t() {
++ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
++if test "x$ac_cv_func_fmod" = xyes; then :
+ 
+-/* 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_matherr) || defined (__stub___matherr)
+-choke me
+-#else
+-matherr();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_matherr=yes"
+ else
+-  rm -rf conftest*
+-  eval "ac_cv_func_matherr=no"
+-fi
+-rm -f conftest*
++  $as_echo "#define NO_FMOD 1" >>confdefs.h
+ 
++echo  X 'NO_FMOD' '1' >> defines.out
+ fi
+-if eval "test \"`echo '$ac_cv_func_'matherr`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
+-  :
++
++ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
++if test "x$ac_cv_func_matherr" = xyes; then :
++
+ else
+-  echo "$ac_t""no" 1>&6
+-cat >> confdefs.h <<\EOF
+-#define NO_MATHERR 1
+-EOF
++  $as_echo "#define NO_MATHERR 1" >>confdefs.h
+ 
+ echo  X 'NO_MATHERR' '1' >> defines.out
+ fi
+ 
+-cat > conftest.$ac_ext <<EOF
+-#line 1340 "configure"
+-#include "confdefs.h"
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ #include <stdio.h>
+-EOF
++
++_ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+-  egrep "[^v]fprintf" >/dev/null 2>&1; then
+-  :
++  $EGREP "[[^v]]fprintf" >/dev/null 2>&1; then :
++
+ else
+-  rm -rf conftest*
+-  cat >> confdefs.h <<\EOF
+-#define NO_FPRINTF_IN_STDIO 1
+-EOF
++  $as_echo "#define NO_FPRINTF_IN_STDIO 1" >>confdefs.h
+ 
+ echo  X 'NO_FPRINTF_IN_STDIO' '1' >> defines.out
+ fi
+ rm -f conftest*
+ 
+-cat > conftest.$ac_ext <<EOF
+-#line 1358 "configure"
+-#include "confdefs.h"
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ #include <stdio.h>
+-EOF
++
++_ACEOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+-  egrep "[^v]sprintf" >/dev/null 2>&1; then
+-  :
++  $EGREP "[[^v]]sprintf" >/dev/null 2>&1; then :
++
+ else
+-  rm -rf conftest*
+-  cat >> confdefs.h <<\EOF
+-#define NO_SPRINTF_IN_STDIO 1
+-EOF
++  $as_echo "#define NO_SPRINTF_IN_STDIO 1" >>confdefs.h
+ 
+ echo  X 'NO_SPRINTF_IN_STDIO' '1' >> defines.out
+ fi
+ rm -f conftest*
+ 
+-ac_safe=`echo "limits.h" | tr './\055' '___'`
+-echo $ac_n "checking for limits.h""... $ac_c" 1>&6
+-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 1381 "configure"
+-#include "confdefs.h"
+-#include <limits.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
++if test "x$ac_cv_header_limits_h" = xyes; then :
+   limits_h=yes
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
++
+ if test "$limits_h" = yes ; then :
+ else
+-ac_safe=`echo "values.h" | tr './\055' '___'`
+-echo $ac_n "checking for values.h""... $ac_c" 1>&6
+-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 1412 "configure"
+-#include "confdefs.h"
+-#include <values.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
++if test "x$ac_cv_header_values_h" = xyes; then :
+   values_h=yes
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+-   if test "$values_h" = yes ; then
+-   # If we cannot run a trivial program, we must be cross compiling.
+-echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  if test "$cross_compiling" = yes; then
+-  ac_cv_c_cross=yes
+-else
+-cat > conftest.$ac_ext <<EOF
+-#line 1445 "configure"
+-#include "confdefs.h"
+-main(){return(0);}
+-EOF
+-eval $ac_link
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
+-  ac_cv_c_cross=no
+-else
+-  ac_cv_c_cross=yes
+-fi
+-fi
+-rm -fr conftest*
+-fi
+-cross_compiling=$ac_cv_c_cross
+-echo "$ac_t""$ac_cv_c_cross" 1>&6
+ 
+-if test "$cross_compiling" = yes; then
+-    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
++   if test "$values_h" = yes ; then
++   if test "$cross_compiling" = yes; then :
++  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "cannot run test program while cross compiling
++See \`config.log' for more details" "$LINENO" 5; }
+ else
+-cat > conftest.$ac_ext <<EOF
+-#line 1465 "configure"
+-#include "confdefs.h"
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ #include <values.h>
+ #include <stdio.h>
+ int main()
+@@ -1473,25 +3772,28 @@
+     exit(0) ; return(0) ;
+ }
+ 
+-EOF
+-eval $ac_link
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
++_ACEOF
++if ac_fn_c_try_run "$LINENO"; then :
+   maxint_set=1
+ else
+-  { echo "configure: error: C program to compute maxint and maxlong failed.
+-Please send bug report to brennan@whidbey.com." 1>&2; exit 1; }
++  as_fn_error $? "C program to compute maxint and maxlong failed.
++Please send bug report to brennan@whidbey.com." "$LINENO" 5
+ fi
++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
++  conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+-rm -fr conftest*
++
+    fi
+-if test "$maxint_set" != 1 ; then 
++if test "$maxint_set" != 1 ; then
+ # compute it  --  assumes two's complement
+-if test "$cross_compiling" = yes; then
+-    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
++if test "$cross_compiling" = yes; then :
++  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error $? "cannot run test program while cross compiling
++See \`config.log' for more details" "$LINENO" 5; }
+ else
+-cat > conftest.$ac_ext <<EOF
+-#line 1494 "configure"
+-#include "confdefs.h"
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ #include <stdio.h>
+ int main()
+ { int y ; long yy ;
+@@ -1508,57 +3810,54 @@
+     exit(0) ;
+     return 0 ;
+  }
+-EOF
+-eval $ac_link
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
++_ACEOF
++if ac_fn_c_try_run "$LINENO"; then :
+   :
+ else
+-  { echo "configure: error: C program to compute maxint and maxlong failed.
+-Please send bug report to brennan@whidbey.com." 1>&2; exit 1; }
++  as_fn_error $? "C program to compute maxint and maxlong failed.
++Please send bug report to brennan@whidbey.com." "$LINENO" 5
+ fi
++rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
++  conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+-rm -fr conftest*
++
+ fi
+ cat maxint.out >> defines.out ; rm -f maxint.out
+ fi ;
+ if echo "$USER_DEFINES" | grep FPE_TRAPS_ON >/dev/null
+ then echo skipping fpe tests based on '$'USER_DEFINES
+ else
+-echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1533 "configure"
+-#include "confdefs.h"
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
++$as_echo_n "checking return type of signal handlers... " >&6; }
++if ${ac_cv_type_signal+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h.  */
+ #include <sys/types.h>
+ #include <signal.h>
+-#ifdef signal
+-#undef signal
+-#endif
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-void (*signal ()) ();
+-int main() { return 0; }
+-int t() {
+-int i;
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+-  rm -rf conftest*
+-  ac_cv_type_signal=void
+-else
+-  rm -rf conftest*
++
++int
++main ()
++{
++return *(signal (0, 0)) (0) == 1;
++  ;
++  return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
+   ac_cv_type_signal=int
++else
++  ac_cv_type_signal=void
+ fi
+-rm -f conftest*
+-
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+-echo "$ac_t""$ac_cv_type_signal" 1>&6
+-cat >> confdefs.h <<EOF
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
++$as_echo "$ac_cv_type_signal" >&6; }
++
++cat >>confdefs.h <<_ACEOF
+ #define RETSIGTYPE $ac_cv_type_signal
+-EOF
++_ACEOF
+ 
+ 
+ 
+@@ -1568,7 +3867,7 @@
+ if test -f fpe_check  ; then
+    ./fpe_check 2>/dev/null
+    status=$?
+-else 
++else
+    echo fpe_check.c failed to compile 1>&2
+    status=100
+ fi
+@@ -1576,139 +3875,32 @@
+ case $status in
+    0)  ;;  # good news do nothing
+    3)      # reasonably good news
+-cat >> confdefs.h <<\EOF
+-#define FPE_TRAPS_ON 1
+-EOF
++$as_echo "#define FPE_TRAPS_ON 1" >>confdefs.h
+ 
+ echo  X 'FPE_TRAPS_ON' '1' >> defines.out
+-echo $ac_n "checking for sigaction""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1590 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigaction(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigaction(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigaction) || defined (__stub___sigaction)
+-choke me
+-#else
+-sigaction();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
++if test "x$ac_cv_func_sigaction" = xyes; then :
+   sigaction=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+-ac_safe=`echo "siginfo.h" | tr './\055' '___'`
+-echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
+-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 1635 "configure"
+-#include "confdefs.h"
+-#include <siginfo.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "siginfo.h" "ac_cv_header_siginfo_h" "$ac_includes_default"
++if test "x$ac_cv_header_siginfo_h" = xyes; then :
+   siginfo_h=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
++
+ if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
+-   cat >> confdefs.h <<\EOF
+-#define SV_SIGINFO 1
+-EOF
++   $as_echo "#define SV_SIGINFO 1" >>confdefs.h
+ 
+ echo  X 'SV_SIGINFO' '1' >> defines.out
+ else
+-   echo $ac_n "checking for sigvec""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1670 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigvec(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigvec(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigvec) || defined (__stub___sigvec)
+-choke me
+-#else
+-sigvec();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++   ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
++if test "x$ac_cv_func_sigvec" = xyes; then :
+   sigvec=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+    if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
+-   else cat >> confdefs.h <<\EOF
+-#define NOINFO_SIGFPE 1
+-EOF
++   else $as_echo "#define NOINFO_SIGFPE 1" >>confdefs.h
+ 
+ echo  X 'NOINFO_SIGFPE' '1' >> defines.out
+    fi
+@@ -1716,390 +3908,115 @@
+ 
+    1|2|4)   # bad news have to turn off traps
+ 	    # only know how to do this on systemV and solaris
+-ac_safe=`echo "ieeefp.h" | tr './\055' '___'`
+-echo $ac_n "checking for ieeefp.h""... $ac_c" 1>&6
+-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 1726 "configure"
+-#include "confdefs.h"
+-#include <ieeefp.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
++if test "x$ac_cv_header_ieeefp_h" = xyes; then :
+   ieeefp_h=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+-echo $ac_n "checking for fpsetmask""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_fpsetmask'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1754 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char fpsetmask(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char fpsetmask(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_fpsetmask) || defined (__stub___fpsetmask)
+-choke me
+-#else
+-fpsetmask();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_fpsetmask=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_fpsetmask=no"
+-fi
+-rm -f conftest*
+ 
+-fi
+-if eval "test \"`echo '$ac_cv_func_'fpsetmask`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++ac_fn_c_check_func "$LINENO" "fpsetmask" "ac_cv_func_fpsetmask"
++if test "x$ac_cv_func_fpsetmask" = xyes; then :
+   fpsetmask=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+ if test "$ieeefp_h" = 1 && test "$fpsetmask" = 1 ; then
+-cat >> confdefs.h <<\EOF
+-#define FPE_TRAPS_ON 1
+-EOF
++$as_echo "#define FPE_TRAPS_ON 1" >>confdefs.h
+ 
+ echo  X 'FPE_TRAPS_ON' '1' >> defines.out
+-cat >> confdefs.h <<\EOF
+-#define USE_IEEEFP_H 1
+-EOF
++$as_echo "#define USE_IEEEFP_H 1" >>confdefs.h
+ 
+ echo  X 'USE_IEEEFP_H' '1' >> defines.out
+ echo  X 'TURN_ON_FPE_TRAPS()' 'fpsetmask(fpgetmask()|FP_X_DZ|FP_X_OFL)' >> defines.out
+-echo $ac_n "checking for sigaction""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1810 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigaction(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigaction(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigaction) || defined (__stub___sigaction)
+-choke me
+-#else
+-sigaction();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
++if test "x$ac_cv_func_sigaction" = xyes; then :
+   sigaction=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+-ac_safe=`echo "siginfo.h" | tr './\055' '___'`
+-echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
+-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 1855 "configure"
+-#include "confdefs.h"
+-#include <siginfo.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "siginfo.h" "ac_cv_header_siginfo_h" "$ac_includes_default"
++if test "x$ac_cv_header_siginfo_h" = xyes; then :
+   siginfo_h=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
++
+ if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
+-   cat >> confdefs.h <<\EOF
+-#define SV_SIGINFO 1
+-EOF
++   $as_echo "#define SV_SIGINFO 1" >>confdefs.h
+ 
+ echo  X 'SV_SIGINFO' '1' >> defines.out
+ else
+-   echo $ac_n "checking for sigvec""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1890 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigvec(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigvec(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigvec) || defined (__stub___sigvec)
+-choke me
+-#else
+-sigvec();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++   ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
++if test "x$ac_cv_func_sigvec" = xyes; then :
+   sigvec=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+    if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
+-   else cat >> confdefs.h <<\EOF
+-#define NOINFO_SIGFPE 1
+-EOF
++   else $as_echo "#define NOINFO_SIGFPE 1" >>confdefs.h
+ 
+ echo  X 'NOINFO_SIGFPE' '1' >> defines.out
+    fi
+-fi 
++fi
+ # look for strtod overflow bug
+-echo $ac_n "checking strtod bug on overflow""... $ac_c" 1>&6
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking strtod bug on overflow" >&5
++$as_echo_n "checking strtod bug on overflow... " >&6; }
+ rm -f fpe_check
+ $CC $CFLAGS -DRETSIGTYPE=$ac_cv_type_signal -DUSE_IEEEFP_H \
+ 	    -o fpe_check fpe_check.c $MATHLIB
+ if ./fpe_check phoney_arg phoney_arg 2>/dev/null
+-then 
+-   echo "$ac_t""no bug" 1>&6
++then
++   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no bug" >&5
++$as_echo "no bug" >&6; }
+ else
+-   echo "$ac_t""buggy -- will use work around" 1>&6
++   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy -- will use work around" >&5
++$as_echo "buggy -- will use work around" >&6; }
+    echo  X 'HAVE_STRTOD_OVF_BUG' '1' >> defines.out
+ fi
+ 
+ else
+    if test $status != 4 ; then
+-      cat >> confdefs.h <<\EOF
+-#define FPE_TRAPS_ON 1
+-EOF
++      $as_echo "#define FPE_TRAPS_ON 1" >>confdefs.h
+ 
+ echo  X 'FPE_TRAPS_ON' '1' >> defines.out
+-      echo $ac_n "checking for sigaction""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 1962 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigaction(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigaction(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigaction) || defined (__stub___sigaction)
+-choke me
+-#else
+-sigaction();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigaction=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++      ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
++if test "x$ac_cv_func_sigaction" = xyes; then :
+   sigaction=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+-ac_safe=`echo "siginfo.h" | tr './\055' '___'`
+-echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6
+-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 2007 "configure"
+-#include "confdefs.h"
+-#include <siginfo.h>
+-EOF
+-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-ac_err=`grep -v '^ *+' conftest.out`
+-if test -z "$ac_err"; then
+-  rm -rf conftest*
+-  eval "ac_cv_header_$ac_safe=yes"
+-else
+-  echo "$ac_err" >&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_fn_c_check_header_mongrel "$LINENO" "siginfo.h" "ac_cv_header_siginfo_h" "$ac_includes_default"
++if test "x$ac_cv_header_siginfo_h" = xyes; then :
+   siginfo_h=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
++
+ if test "$sigaction" = 1 && test "$siginfo_h" = 1 ; then
+-   cat >> confdefs.h <<\EOF
+-#define SV_SIGINFO 1
+-EOF
++   $as_echo "#define SV_SIGINFO 1" >>confdefs.h
+ 
+ echo  X 'SV_SIGINFO' '1' >> defines.out
+ else
+-   echo $ac_n "checking for sigvec""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
+-  echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-  cat > conftest.$ac_ext <<EOF
+-#line 2042 "configure"
+-#include "confdefs.h"
+-/* System header to define __stub macros and hopefully few prototypes,
+-    which can conflict with char sigvec(); below.  */
+-#include <assert.h>
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-char sigvec(); 
+-
+-int main() { return 0; }
+-int t() {
+-
+-/* 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_sigvec) || defined (__stub___sigvec)
+-choke me
+-#else
+-sigvec();
+-#endif
+-
+-; return 0; }
+-EOF
+-if eval $ac_link; then
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=yes"
+-else
+-  rm -rf conftest*
+-  eval "ac_cv_func_sigvec=no"
+-fi
+-rm -f conftest*
+-
+-fi
+-if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
+-  echo "$ac_t""yes" 1>&6
++   ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
++if test "x$ac_cv_func_sigvec" = xyes; then :
+   sigvec=1
+-else
+-  echo "$ac_t""no" 1>&6
+ fi
+ 
+    if test "$sigvec" = 1 && ./fpe_check phoney_arg >> defines.out ; then :
+-   else cat >> confdefs.h <<\EOF
+-#define NOINFO_SIGFPE 1
+-EOF
++   else $as_echo "#define NOINFO_SIGFPE 1" >>confdefs.h
+ 
+ echo  X 'NOINFO_SIGFPE' '1' >> defines.out
+    fi
+-fi 
++fi
+     fi
+ 
+     case $status in
+-    1) 
++    1)
+ cat 1>&2 <<'EOF'
+-Warning: Your system defaults generate floating point exception 
+-on divide by zero but not on overflow.  You need to 
++Warning: Your system defaults generate floating point exception
++on divide by zero but not on overflow.  You need to
+ #define TURN_ON_FPE_TRAPS() to handle overflow.
+ Please report this so I can fix this script to do it automatically.
+ EOF
+ ;;
+     2)
+ cat 1>&2 <<'EOF'
+-Warning: Your system defaults generate floating point exception 
+-on overflow  but not on divide by zero.  You need to 
++Warning: Your system defaults generate floating point exception
++on overflow  but not on divide by zero.  You need to
+ #define TURN_ON_FPE_TRAPS() to handle divide by zero.
+ Please report this so I can fix this script to do it automatically.
+ EOF
+@@ -2126,7 +4043,7 @@
+ EOF
+ # quit or not ???
+ ;;
+-esac 
++esac
+ rm -f fpe_check  # whew!!
+ fi
+ # output config.h
+@@ -2146,188 +4063,1172 @@
+ EOF
+ ) | tee config.h
+ rm defines.out
+-trap '' 1 2 15
+-cat > confcache <<\EOF
++ac_config_files="$ac_config_files Makefile"
++
++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, we kill variables containing newlines.
+ # 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 |
+-  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
+-  >> confcache
+-if cmp -s $cache_file confcache; then
+-  :
+-else
+-  if test -w $cache_file; then
+-    echo "updating cache $cache_file"
+-    cat confcache > $cache_file
++(
++  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
++    eval ac_val=\$$ac_var
++    case $ac_val in #(
++    *${as_nl}*)
++      case $ac_var in #(
++      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
++$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
++      esac
++      case $ac_var in #(
++      _ | IFS | as_nl) ;; #(
++      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
++      *) { eval $ac_var=; unset $ac_var;} ;;
++      esac ;;
++    esac
++  done
++
++  (set) 2>&1 |
++    case $as_nl`(ac_space=' '; set) 2>&1` in #(
++    *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
++      ;;
++    esac |
++    sort
++) |
++  sed '
++     /^ac_cv_env_/b end
++     t clear
++     :clear
++     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
++     t end
++     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
++     :end' >>confcache
++if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
++  if test -w "$cache_file"; then
++    if test "x$cache_file" != "x/dev/null"; then
++      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
++$as_echo "$as_me: updating cache $cache_file" >&6;}
++      if test ! -f "$cache_file" || test -h "$cache_file"; then
++	cat confcache >"$cache_file"
++      else
++        case $cache_file in #(
++        */* | ?:*)
++	  mv -f confcache "$cache_file"$$ &&
++	  mv -f "$cache_file"$$ "$cache_file" ;; #(
++        *)
++	  mv -f confcache "$cache_file" ;;
++	esac
++      fi
++    fi
+   else
+-    echo "not updating unwritable cache $cache_file"
++    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
++$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+   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.
+-if test "x$srcdir" = x.; then
+-  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
+-fi
+-
+-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+-
+ # Transform confdefs.h into DEFS.
+ # Protect against shell expansion while executing Makefile rules.
+ # Protect against Makefile macro expansion.
+-cat > conftest.defs <<\EOF
+-s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
+-s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
+-s%\[%\\&%g
+-s%\]%\\&%g
+-s%\$%$$%g
+-EOF
+-DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
+-rm -f conftest.defs
++#
++# If the first sed substitution is executed (which looks for macros that
++# take arguments), then branch to the quote section.  Otherwise,
++# look for a macro that doesn't take arguments.
++ac_script='
++:mline
++/\\$/{
++ N
++ s,\\\n,,
++ b mline
++}
++t clear
++:clear
++s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
++t quote
++s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
++t quote
++b any
++:quote
++s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
++s/\[/\\&/g
++s/\]/\\&/g
++s/\$/$$/g
++H
++:any
++${
++	g
++	s/^\n//
++	s/\n/ /g
++	p
++}
++'
++DEFS=`sed -n "$ac_script" confdefs.h`
+ 
+ 
+-# Without the "./", some shells look in PATH for config.status.
+-: ${CONFIG_STATUS=./config.status}
++ac_libobjs=
++ac_ltlibobjs=
++U=
++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
++  # 1. Remove the extension, and $U if already installed.
++  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
++  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
++  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
++  #    will be set to the directory where LIBOBJS objects are built.
++  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
++  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$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_write_fail=0
++ac_clean_files_save=$ac_clean_files
++ac_clean_files="$ac_clean_files $CONFIG_STATUS"
++{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
++$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
++as_write_fail=0
++cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
++#! $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}
++export SHELL
++_ASEOF
++cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
++## -------------------- ##
++## M4sh Initialization. ##
++## -------------------- ##
++
++# Be more Bourne compatible
++DUALCASE=1; export DUALCASE # for MKS sh
++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
++  emulate sh
++  NULLCMD=:
++  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
++  # is contrary to our usage.  Disable this feature.
++  alias -g '${1+"$@"}'='"$@"'
++  setopt NO_GLOB_SUBST
++else
++  case `(set -o) 2>/dev/null` in #(
++  *posix*) :
++    set -o posix ;; #(
++  *) :
++     ;;
++esac
++fi
++
++
++as_nl='
++'
++export as_nl
++# Printing a long string crashes Solaris 7 /usr/bin/printf.
++as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
++as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
++# Prefer a ksh shell builtin over an external printf program on Solaris,
++# but without wasting forks for bash or zsh.
++if test -z "$BASH_VERSION$ZSH_VERSION" \
++    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='print -r --'
++  as_echo_n='print -rn --'
++elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
++  as_echo='printf %s\n'
++  as_echo_n='printf %s'
++else
++  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
++    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
++    as_echo_n='/usr/ucb/echo -n'
++  else
++    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
++    as_echo_n_body='eval
++      arg=$1;
++      case $arg in #(
++      *"$as_nl"*)
++	expr "X$arg" : "X\\(.*\\)$as_nl";
++	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
++      esac;
++      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
++    '
++    export as_echo_n_body
++    as_echo_n='sh -c $as_echo_n_body as_echo'
++  fi
++  export as_echo_body
++  as_echo='sh -c $as_echo_body as_echo'
++fi
++
++# The user is always right.
++if test "${PATH_SEPARATOR+set}" != set; then
++  PATH_SEPARATOR=:
++  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
++    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
++      PATH_SEPARATOR=';'
++  }
++fi
++
++
++# IFS
++# We need space, tab and new line, in precisely that order.  Quoting is
++# there to prevent editors from complaining about space-tab.
++# (If _AS_PATH_WALK were called with IFS unset, it would disable word
++# splitting by setting IFS to empty value.)
++IFS=" ""	$as_nl"
++
++# Find who we are.  Look in the path if we contain no directory separator.
++as_myself=
++case $0 in #((
++  *[\\/]* ) as_myself=$0 ;;
++  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
+ do
+-  case "\$ac_option" in
++  IFS=$as_save_IFS
++  test -z "$as_dir" && as_dir=.
++    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
++  done
++IFS=$as_save_IFS
++
++     ;;
++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
++  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
++  exit 1
++fi
++
++# Unset variables that we do not need and which cause bugs (e.g. in
++# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
++# suppresses any "Segmentation fault" message there.  '((' could
++# trigger a bug in pdksh 5.2.14.
++for as_var in BASH_ENV ENV MAIL MAILPATH
++do eval test x\${$as_var+set} = xset \
++  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
++done
++PS1='$ '
++PS2='> '
++PS4='+ '
++
++# NLS nuisances.
++LC_ALL=C
++export LC_ALL
++LANGUAGE=C
++export LANGUAGE
++
++# CDPATH.
++(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
++
++
++# as_fn_error STATUS ERROR [LINENO LOG_FD]
++# ----------------------------------------
++# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
++# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
++# script with STATUS, using 1 if that was 0.
++as_fn_error ()
++{
++  as_status=$1; test $as_status -eq 0 && as_status=1
++  if test "$4"; then
++    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
++    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
++  fi
++  $as_echo "$as_me: error: $2" >&2
++  as_fn_exit $as_status
++} # as_fn_error
++
++
++# as_fn_set_status STATUS
++# -----------------------
++# Set $? to STATUS, without forking.
++as_fn_set_status ()
++{
++  return $1
++} # as_fn_set_status
++
++# as_fn_exit STATUS
++# -----------------
++# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
++as_fn_exit ()
++{
++  set +e
++  as_fn_set_status $1
++  exit $1
++} # as_fn_exit
++
++# as_fn_unset VAR
++# ---------------
++# Portably unset VAR.
++as_fn_unset ()
++{
++  { eval $1=; unset $1;}
++}
++as_unset=as_fn_unset
++# as_fn_append VAR VALUE
++# ----------------------
++# Append the text in VALUE to the end of the definition contained in VAR. Take
++# advantage of any shell optimizations that allow amortized linear growth over
++# repeated appends, instead of the typical quadratic growth present in naive
++# implementations.
++if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
++  eval 'as_fn_append ()
++  {
++    eval $1+=\$2
++  }'
++else
++  as_fn_append ()
++  {
++    eval $1=\$$1\$2
++  }
++fi # as_fn_append
++
++# as_fn_arith ARG...
++# ------------------
++# Perform arithmetic evaluation on the ARGs, and store the result in the
++# global $as_val. Take advantage of shells that can avoid forks. The arguments
++# must be portable across $(()) and expr.
++if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
++  eval 'as_fn_arith ()
++  {
++    as_val=$(( $* ))
++  }'
++else
++  as_fn_arith ()
++  {
++    as_val=`expr "$@" || test $? -eq 1`
++  }
++fi # as_fn_arith
++
++
++if expr a : '\(a\)' >/dev/null 2>&1 &&
++   test "X`expr 00001 : '.*\(...\)'`" = X001; 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
++
++if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
++  as_dirname=dirname
++else
++  as_dirname=false
++fi
++
++as_me=`$as_basename -- "$0" ||
++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
++	 X"$0" : 'X\(//\)$' \| \
++	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X/"$0" |
++    sed '/^.*\/\([^/][^/]*\)\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\/\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++
++# 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
++
++ECHO_C= ECHO_N= ECHO_T=
++case `echo -n x` in #(((((
++-n*)
++  case `echo 'xy\c'` in
++  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
++  xy)  ECHO_C='\c';;
++  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
++       ECHO_T='	';;
++  esac;;
++*)
++  ECHO_N='-n';;
++esac
++
++rm -f conf$$ conf$$.exe conf$$.file
++if test -d conf$$.dir; then
++  rm -f conf$$.dir/conf$$.file
++else
++  rm -f conf$$.dir
++  mkdir conf$$.dir 2>/dev/null
++fi
++if (echo >conf$$.file) 2>/dev/null; then
++  if ln -s conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s='ln -s'
++    # ... but there are two gotchas:
++    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
++    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
++    # In both cases, we have to default to `cp -p'.
++    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
++      as_ln_s='cp -p'
++  elif ln conf$$.file conf$$ 2>/dev/null; then
++    as_ln_s=ln
++  else
++    as_ln_s='cp -p'
++  fi
++else
++  as_ln_s='cp -p'
++fi
++rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
++rmdir conf$$.dir 2>/dev/null
++
++
++# as_fn_mkdir_p
++# -------------
++# Create "$as_dir" as a directory, including parents if necessary.
++as_fn_mkdir_p ()
++{
++
++  case $as_dir in #(
++  -*) as_dir=./$as_dir;;
++  esac
++  test -d "$as_dir" || eval $as_mkdir_p || {
++    as_dirs=
++    while :; do
++      case $as_dir in #(
++      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
++      *) as_qdir=$as_dir;;
++      esac
++      as_dirs="'$as_qdir' $as_dirs"
++      as_dir=`$as_dirname -- "$as_dir" ||
++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$as_dir" : 'X\(//\)[^/]' \| \
++	 X"$as_dir" : 'X\(//\)$' \| \
++	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$as_dir" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)[^/].*/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++      test -d "$as_dir" && break
++    done
++    test -z "$as_dirs" || eval "mkdir $as_dirs"
++  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
++
++
++} # as_fn_mkdir_p
++if mkdir -p . 2>/dev/null; then
++  as_mkdir_p='mkdir -p "$as_dir"'
++else
++  test -d ./-p && rmdir ./-p
++  as_mkdir_p=false
++fi
++
++if test -x / >/dev/null 2>&1; then
++  as_test_x='test -x'
++else
++  if ls -dL / >/dev/null 2>&1; then
++    as_ls_L_option=L
++  else
++    as_ls_L_option=
++  fi
++  as_test_x='
++    eval sh -c '\''
++      if test -d "$1"; then
++	test -d "$1/.";
++      else
++	case $1 in #(
++	-*)set "./$1";;
++	esac;
++	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
++	???[sx]*):;;*)false;;esac;fi
++    '\'' sh
++  '
++fi
++as_executable_p=$as_test_x
++
++# 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'"
++
++
++exec 6>&1
++## ----------------------------------- ##
++## Main body of $CONFIG_STATUS script. ##
++## ----------------------------------- ##
++_ASEOF
++test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
++
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++# Save the log message, to keep $0 and so on meaningful, and to
++# report actual input values of CONFIG_FILES etc. instead of their
++# values after options handling.
++ac_log="
++This file was extended by $as_me, which was
++generated by GNU Autoconf 2.68.  Invocation command line was
++
++  CONFIG_FILES    = $CONFIG_FILES
++  CONFIG_HEADERS  = $CONFIG_HEADERS
++  CONFIG_LINKS    = $CONFIG_LINKS
++  CONFIG_COMMANDS = $CONFIG_COMMANDS
++  $ $0 $@
++
++on `(hostname || uname -n) 2>/dev/null | sed 1q`
++"
++
++_ACEOF
++
++case $ac_config_files in *"
++"*) set x $ac_config_files; shift; ac_config_files=$*;;
++esac
++
++
++
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++# Files that config.status was made for.
++config_files="$ac_config_files"
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++ac_cs_usage="\
++\`$as_me' instantiates files and other configuration actions
++from templates according to the current configuration.  Unless the files
++and actions are specified as TAGs, all are instantiated by default.
++
++Usage: $0 [OPTION]... [TAG]...
++
++  -h, --help       print this help, then exit
++  -V, --version    print version number and configuration settings, then exit
++      --config     print configuration, then exit
++  -q, --quiet, --silent
++                   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
++
++Configuration files:
++$config_files
++
++Report bugs to the package provider."
++
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
++ac_cs_version="\\
++config.status
++configured by $0, generated by GNU Autoconf 2.68,
++  with options \\"\$ac_cs_config\\"
++
++Copyright (C) 2010 Free Software Foundation, Inc.
++This config.status script is free software; the Free Software Foundation
++gives unlimited permission to copy, distribute and modify it."
++
++ac_pwd='$ac_pwd'
++srcdir='$srcdir'
++test -n "\$AWK" || AWK=awk
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++# The default lists apply if the user does not specify any file.
++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=`expr "X$1" : 'X\([^=]*\)='`
++    ac_optarg=
++    ac_shift=:
++    ;;
++  *)
++    ac_option=$1
++    ac_optarg=$2
++    ac_shift=shift
++    ;;
++  esac
++
++  case $ac_option in
++  # Handling of the options.
+   -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.4"
+-    exit 0 ;;
+-  -help | --help | --hel | --he | --h)
+-    echo "\$ac_cs_usage"; exit 0 ;;
+-  *) echo "\$ac_cs_usage"; exit 1 ;;
++    ac_cs_recheck=: ;;
++  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
++    $as_echo "$ac_cs_version"; exit ;;
++  --config | --confi | --conf | --con | --co | --c )
++    $as_echo "$ac_cs_config"; exit ;;
++  --debug | --debu | --deb | --de | --d | -d )
++    debug=: ;;
++  --file | --fil | --fi | --f )
++    $ac_shift
++    case $ac_optarg in
++    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
++    '') as_fn_error $? "missing file argument" ;;
++    esac
++    as_fn_append CONFIG_FILES " '$ac_optarg'"
++    ac_need_defaults=false;;
++  --he | --h |  --help | --hel | -h )
++    $as_echo "$ac_cs_usage"; exit ;;
++  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
++  | -silent | --silent | --silen | --sile | --sil | --si | --s)
++    ac_cs_silent=: ;;
++
++  # This is an error.
++  -*) as_fn_error $? "unrecognized option: \`$1'
++Try \`$0 --help' for more information." ;;
++
++  *) as_fn_append ac_config_targets " $1"
++     ac_need_defaults=false ;;
++
+   esac
++  shift
+ done
+ 
+-ac_given_srcdir=$srcdir
++ac_configure_extra_args=
++
++if $ac_cs_silent; then
++  exec 6>/dev/null
++  ac_configure_extra_args="$ac_configure_extra_args --silent"
++fi
+ 
+-trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++if \$ac_cs_recheck; then
++  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++  shift
++  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
++  CONFIG_SHELL='$SHELL'
++  export CONFIG_SHELL
++  exec "\$@"
++fi
++
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++exec 5>>config.log
++{
++  echo
++  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
++## Running $as_me. ##
++_ASBOX
++  $as_echo "$ac_log"
++} >&5
++
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++_ACEOF
+ 
+-# 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%@CFLAGS@%$CFLAGS%g
+-s%@CPPFLAGS@%$CPPFLAGS%g
+-s%@CXXFLAGS@%$CXXFLAGS%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%@MANDIR@%$MANDIR%g
+-s%@MANEXT@%$MANEXT%g
+-s%@CC@%$CC%g
+-s%@CPP@%$CPP%g
+-s%@MATHLIB@%$MATHLIB%g
+-s%@YACC@%$YACC%g
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ 
+-CEOF
+-EOF
+-cat >> $CONFIG_STATUS <<EOF
++# Handling of arguments.
++for ac_config_target in $ac_config_targets
++do
++  case $ac_config_target in
++    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ 
+-CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
+-EOF
+-cat >> $CONFIG_STATUS <<\EOF
+-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+-  # Support "outfile[: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" ;;
++  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+   esac
++done
++
+ 
+-  # Adjust relative srcdir, etc. for subdirectories.
++# 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
++fi
++
++# Have a temporary directory for convenience.  Make it in the build tree
++# simply because there is no reason against having it here, and in addition,
++# creating and moving files from /tmp can sometimes cause problems.
++# Hook for its removal unless debugging.
++# Note that there is a small window in which the directory will not be cleaned:
++# after its creation but before its name has been assigned to `$tmp'.
++$debug ||
++{
++  tmp= ac_tmp=
++  trap 'exit_status=$?
++  : "${ac_tmp:=$tmp}"
++  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
++' 0
++  trap 'as_fn_exit 1' 1 2 13 15
++}
++# Create a (secure) tmp directory for tmp files.
+ 
+-  # 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'`
++{
++  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
++  test -d "$tmp"
++}  ||
++{
++  tmp=./conf$$-$RANDOM
++  (umask 077 && mkdir "$tmp")
++} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
++ac_tmp=$tmp
++
++# Set up the scripts for CONFIG_FILES section.
++# No need to generate them if there are no CONFIG_FILES.
++# This happens for instance with `./config.status config.h'.
++if test -n "$CONFIG_FILES"; then
++
++
++ac_cr=`echo X | tr X '\015'`
++# On cygwin, bash can eat \r inside `` if the user requested igncr.
++# But we know of no other shell where ac_cr would be empty at this
++# point, so we can use a bashism as a fallback.
++if test "x$ac_cr" = x; then
++  eval ac_cr=\$\'\\r\'
++fi
++ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
++if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
++  ac_cs_awk_cr='\\r'
++else
++  ac_cs_awk_cr=$ac_cr
++fi
++
++echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
++_ACEOF
++
++
++{
++  echo "cat >conf$$subs.awk <<_ACEOF" &&
++  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
++  echo "_ACEOF"
++} >conf$$subs.sh ||
++  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
++ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
++ac_delim='%!_!# '
++for ac_last_try in false false false false false :; do
++  . ./conf$$subs.sh ||
++    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
++
++  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
++  if test $ac_delim_n = $ac_delim_num; then
++    break
++  elif $ac_last_try; then
++    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+   else
+-    ac_dir_suffix= ac_dots=
++    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+   fi
++done
++rm -f conf$$subs.sh
++
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
++_ACEOF
++sed -n '
++h
++s/^/S["/; s/!.*/"]=/
++p
++g
++s/^[^!]*!//
++:repl
++t repl
++s/'"$ac_delim"'$//
++t delim
++:nl
++h
++s/\(.\{148\}\)..*/\1/
++t more1
++s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
++p
++n
++b repl
++:more1
++s/["\\]/\\&/g; s/^/"/; s/$/"\\/
++p
++g
++s/.\{148\}//
++t nl
++:delim
++h
++s/\(.\{148\}\)..*/\1/
++t more2
++s/["\\]/\\&/g; s/^/"/; s/$/"/
++p
++b
++:more2
++s/["\\]/\\&/g; s/^/"/; s/$/"\\/
++p
++g
++s/.\{148\}//
++t delim
++' <conf$$subs.awk | sed '
++/^[^""]/{
++  N
++  s/\n//
++}
++' >>$CONFIG_STATUS || ac_write_fail=1
++rm -f conf$$subs.awk
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++_ACAWK
++cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
++  for (key in S) S_is_set[key] = 1
++  FS = ""
++
++}
++{
++  line = $ 0
++  nfields = split(line, field, "@")
++  substed = 0
++  len = length(field[1])
++  for (i = 2; i < nfields; i++) {
++    key = field[i]
++    keylen = length(key)
++    if (S_is_set[key]) {
++      value = S[key]
++      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
++      len += length(value) + length(field[++i])
++      substed = 1
++    } else
++      len += 1 + keylen
++  }
++
++  print line
++}
+ 
+-  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" ;;
++_ACAWK
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
++  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
++else
++  cat
++fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
++  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
++_ACEOF
++
++# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
++# ${srcdir} and @srcdir@ entries 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[	 ]*=[	 ]*/{
++h
++s///
++s/^/:/
++s/[	 ]*$/:/
++s/:\$(srcdir):/:/g
++s/:\${srcdir}:/:/g
++s/:@srcdir@:/:/g
++s/^:*//
++s/:*$//
++x
++s/\(=[	 ]*\).*/\1/
++G
++s/\n//
++s/^[^=]*=[	 ]*$//
++}'
++fi
++
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++fi # test -n "$CONFIG_FILES"
++
++
++eval set X "  :F $CONFIG_FILES      "
++shift
++for ac_tag
++do
++  case $ac_tag in
++  :[FHLC]) ac_mode=$ac_tag; continue;;
++  esac
++  case $ac_mode$ac_tag in
++  :[FHL]*:*);;
++  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
++  :[FH]-) ac_tag=-:-;;
++  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
++  esac
++  ac_save_IFS=$IFS
++  IFS=:
++  set x $ac_tag
++  IFS=$ac_save_IFS
++  shift
++  ac_file=$1
++  shift
++
++  case $ac_mode in
++  :L) ac_source=$1;;
++  :[FH])
++    ac_file_inputs=
++    for ac_f
++    do
++      case $ac_f in
++      -) ac_f="$ac_tmp/stdin";;
++      *) # Look for the file first in the build tree, then in the source tree
++	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
++	 # because $ac_f cannot contain `:'.
++	 test -f "$ac_f" ||
++	   case $ac_f in
++	   [\\/$]*) false;;
++	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
++	   esac ||
++	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
++      esac
++      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
++      as_fn_append ac_file_inputs " '$ac_f'"
++    done
++
++    # 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.  */
++    configure_input='Generated from '`
++	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
++	`' by configure.'
++    if test x"$ac_file" != x-; then
++      configure_input="$ac_file.  $configure_input"
++      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
++$as_echo "$as_me: creating $ac_file" >&6;}
++    fi
++    # Neutralize special characters interpreted by sed in replacement strings.
++    case $configure_input in #(
++    *\&* | *\|* | *\\* )
++       ac_sed_conf_input=`$as_echo "$configure_input" |
++       sed 's/[\\\\&|]/\\\\&/g'`;; #(
++    *) ac_sed_conf_input=$configure_input;;
++    esac
++
++    case $ac_tag in
++    *:-:* | *:-) cat >"$ac_tmp/stdin" \
++      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
++    esac
++    ;;
+   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= ;;
++  ac_dir=`$as_dirname -- "$ac_file" ||
++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
++	 X"$ac_file" : 'X\(//\)[^/]' \| \
++	 X"$ac_file" : 'X\(//\)$' \| \
++	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
++$as_echo X"$ac_file" |
++    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)[^/].*/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\/\)$/{
++	    s//\1/
++	    q
++	  }
++	  /^X\(\/\).*/{
++	    s//\1/
++	    q
++	  }
++	  s/.*/./; q'`
++  as_dir="$ac_dir"; as_fn_mkdir_p
++  ac_builddir=.
++
++case "$ac_dir" in
++.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
++*)
++  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
++  # A ".." for each directory in $ac_dir_suffix.
++  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
++  case $ac_top_builddir_sub in
++  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
++  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
++  esac ;;
++esac
++ac_abs_top_builddir=$ac_pwd
++ac_abs_builddir=$ac_pwd$ac_dir_suffix
++# for backward compatibility:
++ac_top_builddir=$ac_top_build_prefix
++
++case $srcdir in
++  .)  # We are building in place.
++    ac_srcdir=.
++    ac_top_srcdir=$ac_top_builddir_sub
++    ac_abs_top_srcdir=$ac_pwd ;;
++  [\\/]* | ?:[\\/]* )  # Absolute name.
++    ac_srcdir=$srcdir$ac_dir_suffix;
++    ac_top_srcdir=$srcdir
++    ac_abs_top_srcdir=$srcdir ;;
++  *) # Relative name.
++    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
++    ac_top_srcdir=$ac_top_build_prefix$srcdir
++    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
++esac
++ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
++
++
++  case $ac_mode in
++  :F)
++  #
++  # CONFIG_FILE
++  #
++
++_ACEOF
++
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++# If the template does not know about datarootdir, expand it.
++# FIXME: This hack should be removed a few years after 2.60.
++ac_datarootdir_hack=; ac_datarootdir_seen=
++ac_sed_dataroot='
++/datarootdir/ {
++  p
++  q
++}
++/@datadir@/p
++/@docdir@/p
++/@infodir@/p
++/@localedir@/p
++/@mandir@/p'
++case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
++*datarootdir*) ac_datarootdir_seen=yes;;
++*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
++  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
++$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
++_ACEOF
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++  ac_datarootdir_hack='
++  s&@datadir@&$datadir&g
++  s&@docdir@&$docdir&g
++  s&@infodir@&$infodir&g
++  s&@localedir@&$localedir&g
++  s&@mandir@&$mandir&g
++  s&\\\${datarootdir}&$datarootdir&g' ;;
++esac
++_ACEOF
++
++# Neutralize VPATH when `$srcdir' = `.'.
++# Shell code in configure.ac might set extrasub.
++# FIXME: do we really want to maintain this feature?
++cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
++ac_sed_extra="$ac_vpsub
++$extrasub
++_ACEOF
++cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
++:t
++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
++s|@configure_input@|$ac_sed_conf_input|;t t
++s&@top_builddir@&$ac_top_builddir_sub&;t t
++s&@top_build_prefix@&$ac_top_build_prefix&;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&@abs_top_builddir@&$ac_abs_top_builddir&;t t
++$ac_datarootdir_hack
++"
++eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
++  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
++
++test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
++  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
++  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
++      "$ac_tmp/out"`; test -z "$ac_out"; } &&
++  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
++which seems to be undefined.  Please make sure it is defined" >&5
++$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
++which seems to be undefined.  Please make sure it is defined" >&2;}
++
++  rm -f "$ac_tmp/stdin"
++  case $ac_file in
++  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
++  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
++  esac \
++  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
++ ;;
++
++
++
+   esac
+-  sed -e "$ac_comsub
+-s%@configure_input@%$configure_input%g
+-s%@srcdir@%$srcdir%g
+-s%@top_srcdir@%$top_srcdir%g
+-" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
+-fi; done
+-rm -f conftest.subs
+ 
++done # for ac_tag
+ 
+ 
+-exit 0
+-EOF
+-chmod +x $CONFIG_STATUS
+-rm -fr confdefs* $ac_clean_files
+-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
++as_fn_exit 0
++_ACEOF
++ac_clean_files=$ac_clean_files_save
++
++test $ac_write_fail = 0 ||
++  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
++
++
++# 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 || as_fn_exit 1
++fi
++if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
++  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
++$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
++fi
+ 
--- mawk-1.3.3.orig/debian/patches/20_overlong-regexps
+++ mawk-1.3.3/debian/patches/20_overlong-regexps
@@ -0,0 +1,47 @@
+Description: Do not crash if regexp is too long for our buffer
+Author: Ian Jackson <iwj@ubuntu.com>, Jonathan Nieder <jrnieder@gmail.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bug/23494
+Bug-Debian: http://bugs.debian.org/391051
+
+--- a/scan.c
++++ b/scan.c
+@@ -1033,6 +1033,15 @@
+    STRING *sval ;
+ 
+    while (1)
++   {
++      if (p >= string_buff + MIN_SPRINTF - 2)
++      {
++          compile_error(
++			  "regular expression /%.10s ..."
++			  " exceeds implementation size limit",
++			  string_buff) ;
++	  mawk_exit(2) ;
++      }
+       switch (scan_code[*p++ = next()])
+       {
+ 	 case SC_DIV:		/* done */
+@@ -1070,6 +1079,7 @@
+ 	    }
+ 	    break ;
+       }
++   }
+ 
+ out:
+    /* now we've got the RE, so compile it */
+--- a/test/mawktest
++++ b/test/mawktest
+@@ -35,6 +35,13 @@
+ 
+ cmp -s  reg-awk.out temp$$ || exit
+ 
++# 640 backslashes
++backslashes='\\\\\\\\\\'
++backslashes="$backslashes$backslashes$backslashes$backslashes"
++backslashes="$backslashes$backslashes$backslashes$backslashes"
++backslashes="$backslashes$backslashes$backslashes$backslashes"
++( set +e; LC_ALL=C mawk "/a$backslashes/" $dat; test $? -eq 2 ) || exit
++
+ echo regular expression matching OK
+ #######################################
+ 
--- mawk-1.3.3.orig/debian/patches/05_-Wall-fixes
+++ mawk-1.3.3/debian/patches/05_-Wall-fixes
@@ -0,0 +1,848 @@
+Author: James Troup <james@nocrew.org>
+Description: Partial attempt at making the code -Wall clean.
+
+diff -urNad 05.mawk.tmp/array.c 05.mawk/array.c
+--- 05.mawk.tmp/array.c	1996-09-18 02:07:09.000000000 +0100
++++ 05.mawk/array.c	2003-04-09 22:26:26.000000000 +0100
+@@ -112,8 +112,10 @@
+             Int ival = d_to_I(d) ;
+             if ((double)ival == d) {
+                                       if (A->type == AY_SPLIT)
++					{
+                                          if (ival >=1 && ival <= A->size) convert_split_array_to_table(A) ;
+                                          else return ; /* ival not in range */
++					}
+                                       ap = find_by_ival(A, ival, NO_CREATE) ;
+                                       if (ap) { /* remove from the front of the ilist */
+                                          DUAL_LINK *table = (DUAL_LINK*) A->ptr ;
+diff -urNad 05.mawk.tmp/bi_funct.c 05.mawk/bi_funct.c
+--- 05.mawk.tmp/bi_funct.c	1996-01-14 17:16:11.000000000 +0000
++++ 05.mawk/bi_funct.c	2003-04-09 22:26:26.000000000 +0100
+@@ -74,37 +74,36 @@
+ #include "regexp.h"
+ #include "repl.h"
+ #include <math.h>
+-
++#include <unistd.h>
+ 
+ /* statics */
+ static STRING *PROTO(gsub, (PTR, CELL *, char *, int)) ;
+ static void PROTO(fplib_err, (char *, double, char *)) ;
+ 
+-
+ /* global for the disassembler */
+ BI_REC bi_funct[] =
+ {				/* info to load builtins */
+ 
+-   "length", bi_length, 0, 1,	/* special must come first */
+-   "index", bi_index, 2, 2,
+-   "substr", bi_substr, 2, 3,
+-   "sprintf", bi_sprintf, 1, 255,
+-   "sin", bi_sin, 1, 1,
+-   "cos", bi_cos, 1, 1,
+-   "atan2", bi_atan2, 2, 2,
+-   "exp", bi_exp, 1, 1,
+-   "log", bi_log, 1, 1,
+-   "int", bi_int, 1, 1,
+-   "sqrt", bi_sqrt, 1, 1,
+-   "rand", bi_rand, 0, 0,
+-   "srand", bi_srand, 0, 1,
+-   "close", bi_close, 1, 1,
+-   "system", bi_system, 1, 1,
+-   "toupper", bi_toupper, 1, 1,
+-   "tolower", bi_tolower, 1, 1,
+-   "fflush", bi_fflush, 0, 1,
++   {"length", bi_length, 0, 1},	/* special must come first */
++   {"index", bi_index, 2, 2},
++   {"substr", bi_substr, 2, 3},
++   {"sprintf", bi_sprintf, 1, 255},
++   {"sin", bi_sin, 1, 1},
++   {"cos", bi_cos, 1, 1},
++   {"atan2", bi_atan2, 2, 2},
++   {"exp", bi_exp, 1, 1},
++   {"log", bi_log, 1, 1},
++   {"int", bi_int, 1, 1},
++   {"sqrt", bi_sqrt, 1, 1},
++   {"rand", bi_rand, 0, 0},
++   {"srand", bi_srand, 0, 1},
++   {"close", bi_close, 1, 1},
++   {"system", bi_system, 1, 1},
++   {"toupper", bi_toupper, 1, 1},
++   {"tolower", bi_tolower, 1, 1},
++   {"fflush", bi_fflush, 0, 1},
+ 
+-   (char *) 0, (PF_CP) 0, 0, 0} ;
++   {(char *) 0, (PF_CP) 0, 0, 0}} ;
+ 
+ 
+ /* load built-in functions in symbol table */
+@@ -175,7 +174,7 @@
+       case 2:
+ 	 {
+ 	    int k1 = key[1] ;
+-	    while (target = strchr(target, k))
++	    while ((target = strchr(target, k)))
+ 	       if (target[1] == k1)  return target ;
+ 	       else  target++ ;
+ 	    /*failed*/
+@@ -184,7 +183,7 @@
+    }
+ 
+    key_len-- ;
+-   while (target = strchr(target, k))
++   while ((target = strchr(target, k)))
+    {
+       if (strncmp(target + 1, key + 1, key_len) == 0)  return target ;
+       else  target++ ;
+@@ -206,7 +205,7 @@
+    sp-- ;
+    if (TEST2(sp) != TWO_STRINGS)  cast2_to_s(sp) ;
+ 
+-   if (len = string(sp + 1)->len)
++   if ((len = string(sp + 1)->len))
+       idx = (p = str_str(string(sp)->str, string(sp + 1)->str, len))
+ 	 ? p - string(sp)->str + 1 : 0 ;
+ 
+@@ -240,7 +239,7 @@
+ 
+    if ((len = sval->len) == 0)	/* substr on null string */
+    {
+-      if (n_args == 3)	cell_destroy(sp + 2) ;
++      if (n_args == 3) { cell_destroy(sp + 2) ; }
+       cell_destroy(sp + 1) ;
+       return sp ;
+    }
+@@ -831,7 +830,7 @@
+    if (sc.type < C_STRING)  cast1_to_s(&sc) ;
+    front = string(&sc)->str ;
+ 
+-   if (middle = REmatch(front, sp->ptr, &middle_len))
++   if ((middle = REmatch(front, sp->ptr, &middle_len)))
+    {
+       front_len = middle - front ;
+       back = middle + middle_len ;
+diff -urNad 05.mawk.tmp/da.c 05.mawk/da.c
+--- 05.mawk.tmp/da.c	1995-06-18 20:19:59.000000000 +0100
++++ 05.mawk/da.c	2003-04-09 22:26:26.000000000 +0100
+@@ -68,65 +68,65 @@
+ } simple_code[] =
+ 
+ {
+-   _STOP, "stop",
+-   FE_PUSHA, "fe_pusha",
+-   FE_PUSHI, "fe_pushi",
+-   A_TEST, "a_test",
+-   A_DEL, "a_del",
+-   DEL_A, "del_a",
+-   POP_AL, "pop_al",
+-   _POP, "pop",
+-   _ADD, "add",
+-   _SUB, "sub",
+-   _MUL, "mul",
+-   _DIV, "div",
+-   _MOD, "mod",
+-   _POW, "pow",
+-   _NOT, "not",
+-   _UMINUS, "uminus",
+-   _UPLUS, "uplus",
+-   _TEST, "test",
+-   _CAT, "cat",
+-   _ASSIGN, "assign",
+-   _ADD_ASG, "add_asg",
+-   _SUB_ASG, "sub_asg",
+-   _MUL_ASG, "mul_asg",
+-   _DIV_ASG, "div_asg",
+-   _MOD_ASG, "mod_asg",
+-   _POW_ASG, "pow_asg",
+-   NF_PUSHI, "nf_pushi",
+-   F_ASSIGN, "f_assign",
+-   F_ADD_ASG, "f_add_asg",
+-   F_SUB_ASG, "f_sub_asg",
+-   F_MUL_ASG, "f_mul_asg",
+-   F_DIV_ASG, "f_div_asg",
+-   F_MOD_ASG, "f_mod_asg",
+-   F_POW_ASG, "f_pow_asg",
+-   _POST_INC, "post_inc",
+-   _POST_DEC, "post_dec",
+-   _PRE_INC, "pre_inc",
+-   _PRE_DEC, "pre_dec",
+-   F_POST_INC, "f_post_inc",
+-   F_POST_DEC, "f_post_dec",
+-   F_PRE_INC, "f_pre_inc",
+-   F_PRE_DEC, "f_pre_dec",
+-   _EQ, "eq",
+-   _NEQ, "neq",
+-   _LT, "lt",
+-   _LTE, "lte",
+-   _GT, "gt",
+-   _GTE, "gte",
+-   _MATCH2, "match2",
+-   _EXIT, "exit",
+-   _EXIT0, "exit0",
+-   _NEXT, "next",
+-   _RET, "ret",
+-   _RET0, "ret0",
+-   _OMAIN, "omain",
+-   _JMAIN, "jmain",
+-   OL_GL, "ol_gl",
+-   OL_GL_NR, "ol_gl_nr",
+-   _HALT, (char *) 0
++   {_STOP, "stop"},
++   {FE_PUSHA, "fe_pusha"},
++   {FE_PUSHI, "fe_pushi"},
++   {A_TEST, "a_test"},
++   {A_DEL, "a_del"},
++   {DEL_A, "del_a"},
++   {POP_AL, "pop_al"},
++   {_POP, "pop"},
++   {_ADD, "add"},
++   {_SUB, "sub"},
++   {_MUL, "mul"},
++   {_DIV, "div"},
++   {_MOD, "mod"},
++   {_POW, "pow"},
++   {_NOT, "not"},
++   {_UMINUS, "uminus"},
++   {_UPLUS, "uplus"},
++   {_TEST, "test"},
++   {_CAT, "cat"},
++   {_ASSIGN, "assign"},
++   {_ADD_ASG, "add_asg"},
++   {_SUB_ASG, "sub_asg"},
++   {_MUL_ASG, "mul_asg"},
++   {_DIV_ASG, "div_asg"},
++   {_MOD_ASG, "mod_asg"},
++   {_POW_ASG, "pow_asg"},
++   {NF_PUSHI, "nf_pushi"},
++   {F_ASSIGN, "f_assign"},
++   {F_ADD_ASG, "f_add_asg"},
++   {F_SUB_ASG, "f_sub_asg"},
++   {F_MUL_ASG, "f_mul_asg"},
++   {F_DIV_ASG, "f_div_asg"},
++   {F_MOD_ASG, "f_mod_asg"},
++   {F_POW_ASG, "f_pow_asg"},
++   {_POST_INC, "post_inc"},
++   {_POST_DEC, "post_dec"},
++   {_PRE_INC, "pre_inc"},
++   {_PRE_DEC, "pre_dec"},
++   {F_POST_INC, "f_post_inc"},
++   {F_POST_DEC, "f_post_dec"},
++   {F_PRE_INC, "f_pre_inc"},
++   {F_PRE_DEC, "f_pre_dec"},
++   {_EQ, "eq"},
++   {_NEQ, "neq"},
++   {_LT, "lt"},
++   {_LTE, "lte"},
++   {_GT, "gt"},
++   {_GTE, "gte"},
++   {_MATCH2, "match2"},
++   {_EXIT, "exit"},
++   {_EXIT0, "exit0"},
++   {_NEXT, "next"},
++   {_RET, "ret"},
++   {_RET0, "ret0"},
++   {_OMAIN, "omain"},
++   {_JMAIN, "jmain"},
++   {OL_GL, "ol_gl"},
++   {OL_GL_NR, "ol_gl_nr"},
++   {_HALT, (char *) 0}
+ } ;
+ 
+ static char *jfmt = "%s%s%03d\n" ; 
+@@ -367,12 +367,12 @@
+ }
+ special_cases[] =
+ {
+-   bi_split, "split",
+-   bi_match, "match",
+-   bi_getline, "getline",
+-   bi_sub, "sub",
+-   bi_gsub, "gsub",
+-   (PF_CP) 0, (char *) 0
++   {bi_split, "split"},
++   {bi_match, "match"},
++   {bi_getline, "getline"},
++   {bi_sub, "sub"},
++   {bi_gsub, "gsub"},
++   {(PF_CP) 0, (char *) 0}
+ } ;
+ 
+ static char *
+diff -urNad 05.mawk.tmp/error.c 05.mawk/error.c
+--- 05.mawk.tmp/error.c	1995-06-06 01:18:22.000000000 +0100
++++ 05.mawk/error.c	2003-04-09 22:26:26.000000000 +0100
+@@ -68,54 +68,54 @@
+ static struct token_str  {
+ short token ;
+ char *str ; }  token_str[] = {
+-EOF , "end of file" ,
+-NL , "end of line",
+-SEMI_COLON , ";" ,
+-LBRACE , "{" ,
+-RBRACE , "}" ,
+-SC_FAKE_SEMI_COLON, "}",
+-LPAREN , "(" ,
+-RPAREN , ")" ,
+-LBOX , "[",
+-RBOX , "]",
+-QMARK , "?",
+-COLON , ":",
+-OR, "||",
+-AND, "&&",
+-ASSIGN , "=" ,
+-ADD_ASG, "+=",
+-SUB_ASG, "-=",
+-MUL_ASG, "*=",
+-DIV_ASG, "/=",
+-MOD_ASG, "%=",
+-POW_ASG, "^=",
+-EQ  , "==" ,
+-NEQ , "!=",
+-LT, "<" ,
+-LTE, "<=" ,
+-GT, ">",
+-GTE, ">=" ,
+-MATCH, string_buff,
+-PLUS , "+" ,
+-MINUS, "-" ,
+-MUL , "*" ,
+-DIV, "/"  , 
+-MOD, "%" ,
+-POW, "^" ,
+-NOT, "!" ,
+-COMMA, "," ,
+-INC_or_DEC , string_buff ,
+-DOUBLE  , string_buff ,
+-STRING_  , string_buff ,
+-ID  , string_buff ,
+-FUNCT_ID  , string_buff ,
+-BUILTIN  , string_buff ,
+-IO_OUT , string_buff ,
+-IO_IN, "<" ,
+-PIPE, "|" ,
+-DOLLAR, "$" ,
+-FIELD, "$" ,
+-0, (char *) 0 } ;
++{EOF , "end of file" },
++{NL , "end of line"},
++{SEMI_COLON , ";" },
++{LBRACE , "{" },
++{RBRACE , "}" },
++{SC_FAKE_SEMI_COLON, "}"},
++{LPAREN , "(" },
++{RPAREN , ")" },
++{LBOX , "["},
++{RBOX , "]"},
++{QMARK , "?"},
++{COLON , ":"},
++{OR, "||"},
++{AND, "&&"},
++{ASSIGN , "=" },
++{ADD_ASG, "+="},
++{SUB_ASG, "-="},
++{MUL_ASG, "*="},
++{DIV_ASG, "/="},
++{MOD_ASG, "%="},
++{POW_ASG, "^="},
++{EQ  , "==" },
++{NEQ , "!="},
++{LT, "<" },
++{LTE, "<=" },
++{GT, ">"},
++{GTE, ">=" },
++{MATCH, string_buff},
++{PLUS , "+" },
++{MINUS, "-" },
++{MUL , "*" },
++{DIV, "/"  },
++{MOD, "%" },
++{POW, "^" },
++{NOT, "!" },
++{COMMA, "," },
++{INC_or_DEC , string_buff },
++{DOUBLE  , string_buff },
++{STRING_  , string_buff },
++{ID  , string_buff },
++{FUNCT_ID  , string_buff },
++{BUILTIN  , string_buff },
++{IO_OUT , string_buff },
++{IO_IN, "<" },
++{PIPE, "|" },
++{DOLLAR, "$" },
++{FIELD, "$" },
++{0, (char *) 0 }} ;
+ 
+ /* if paren_cnt >0 and we see one of these, we are missing a ')' */
+ static int missing_rparen[] =
+diff -urNad 05.mawk.tmp/fcall.c 05.mawk/fcall.c
+--- 05.mawk.tmp/fcall.c	1995-08-27 16:46:47.000000000 +0100
++++ 05.mawk/fcall.c	2003-04-09 22:26:26.000000000 +0100
+@@ -86,7 +86,7 @@
+        take q off entry_list
+        test it
+ 	   if OK  zfree(q)  else put on exit_list  */  
+-   while (q = entry_list)
++   while ((q = entry_list))
+    {
+       entry_list = q->link ;
+ 
+@@ -235,8 +235,8 @@
+       }
+       /* note p->arg_list starts with last argument */
+       else if (!p->arg_list /* nothing to do */	 ||
+-	       !p->arg_cnt_checked &&
+-	       !arg_cnt_ok(p->callee, p->arg_list, p->line_no))
++	       (!p->arg_cnt_checked &&
++		!arg_cnt_ok(p->callee, p->arg_list, p->line_no)))
+       {
+ 	 q->link = p->link ;	 /* delete p */
+ 	 /* the ! arg_list case is not an error so free memory */
+@@ -301,8 +301,8 @@
+       p = old_list ;
+       old_list = p->link ;
+ 
+-      if (p->arg_list = call_arg_check(p->callee, p->arg_list,
+-				       p->call_start, p->line_no))
++      if ((p->arg_list = call_arg_check(p->callee, p->arg_list,
++				       p->call_start, p->line_no)))
+       {
+ 	 /* still have work to do , put on new_list   */
+ 	 progress |= check_progress ;
+@@ -352,8 +352,8 @@
+       /* usually arg_list disappears here and all is well
+ 	 otherwise add to resolve list */
+ 
+-      if (arg_list = call_arg_check(callee, arg_list,
+-				    code_base, line_no))
++      if ((arg_list = call_arg_check(callee, arg_list,
++				    code_base, line_no)))
+       {
+ 	 p = ZMALLOC(FCALL_REC) ;
+ 	 p->callee = callee ;
+diff -urNad 05.mawk.tmp/field.c 05.mawk/field.c
+--- 05.mawk.tmp/field.c	1995-06-18 20:17:47.000000000 +0100
++++ 05.mawk/field.c	2003-04-09 22:26:26.000000000 +0100
+@@ -109,13 +109,15 @@
+       scan_code['\n'] = SC_UNEXPECTED ;
+ 
+    if (rs_shadow.type == SEP_STR)
+-      free_STRING((STRING *) rs_shadow.ptr) ;
++     {
++       free_STRING((STRING *) rs_shadow.ptr) ;
++     }
+ 
+    cast_for_split(cellcpy(&c, RS)) ;
+    switch (c.type)
+    {
+       case C_RE:
+-	 if (s = is_string_split(c.ptr, &len))
++	 if ((s = is_string_split(c.ptr, &len)))
+ 	 {
+ 	    if (len == 1)
+ 	    {
+@@ -276,7 +278,7 @@
+       field[cnt--].type = C_MBSTRN ;
+    }
+ 
+-   if (cp == &c)  free_STRING(string(cp)) ;
++   if (cp == &c) { free_STRING(string(cp)) ; }
+ }
+ 
+ /*
+@@ -503,7 +505,7 @@
+ 	 memcpy(p, string(cp)->str, string(cp)->len) ;
+ 	 p += string(cp)->len ;
+ 	 /* if not really string, free temp use of ptr */
+-	 if (cp->type < C_STRING)  free_STRING(string(cp)) ;
++	 if (cp->type < C_STRING) { free_STRING(string(cp)) ; }
+ 	 if (++cp == cp_limit)
+ 	 {
+ 	    cp = *++fbp ;
+diff -urNad 05.mawk.tmp/files.c 05.mawk/files.c
+--- 05.mawk.tmp/files.c	2003-04-09 22:27:02.000000000 +0100
++++ 05.mawk/files.c	2003-04-09 22:26:26.000000000 +0100
+@@ -61,6 +61,9 @@
+ #include "memory.h"
+ #include "fin.h"
+ 
++#include <sys/types.h>
++#include <sys/wait.h>
++#include <unistd.h>
+ 
+ #ifdef	V7
+ #include  <sgtty.h>		/* defines FIOCLEX */
+@@ -188,7 +191,7 @@
+       if (strcmp(name, p->name->str) == 0 &&
+ 	  (p->type == type ||
+       /* no distinction between F_APPEND and F_TRUNC here */
+-	   p->type >= F_APPEND && type >= F_APPEND))
++	   (p->type >= F_APPEND && type >= F_APPEND)))
+ 
+       {
+ 	 /* found */
+@@ -550,7 +553,7 @@
+       add_to_child_list(id, exit_status) ;
+    }
+    /* see if an earlier wait() caught our child */
+-   else if (p = remove_from_child_list(pid))
++   else if ((p = remove_from_child_list(pid)))
+    {
+       exit_status = p->exit_status ;
+       ZFREE(p) ;
+diff -urNad 05.mawk.tmp/fin.c 05.mawk/fin.c
+--- 05.mawk.tmp/fin.c	1995-12-24 22:23:22.000000000 +0000
++++ 05.mawk/fin.c	2003-04-09 22:26:26.000000000 +0100
+@@ -108,8 +108,8 @@
+    fin->nbuffs = 1 ;
+    fin->buff[0] = 0 ;
+ 
+-   if (isatty(fd) && rs_shadow.type == SEP_CHAR && rs_shadow.c == '\n'
+-       || interactive_flag && fd == 0 )
++   if ((isatty(fd) && rs_shadow.type == SEP_CHAR && rs_shadow.c == '\n')
++       || (interactive_flag && fd == 0) )
+    {
+       /* interactive, i.e., line buffer this file */
+       if (fd == 0)  fin->fp = stdin ;
+@@ -169,8 +169,10 @@
+       zfree(fin->buff, fin->nbuffs * BUFFSZ + 1) ;
+ 
+       if (fin->fd)
++	{
+ 	 if (fin->fp)  fclose(fin->fp) ;
+ 	 else  close(fin->fd) ;
++	}
+ 
+       fin->buff = fin->buffp = &dead ;	 /* marks it semi_closed */
+    }
+diff -urNad 05.mawk.tmp/init.c 05.mawk/init.c
+--- 05.mawk.tmp/init.c	1995-08-20 18:35:21.000000000 +0100
++++ 05.mawk/init.c	2003-04-09 22:26:26.000000000 +0100
+@@ -69,6 +69,7 @@
+ #include "init.h"
+ #include "bi_vars.h"
+ #include "field.h"
++#include <stdlib.h>
+ 
+ #ifdef MSDOS
+ #include <fcntl.h>
+@@ -370,7 +371,7 @@
+ 
+    while (*p)
+    {
+-      if (s = strchr(*p, '='))	/* shouldn't fail */
++      if ((s = strchr(*p, '=')))	/* shouldn't fail */
+       {
+ 	 int len = s - *p ;
+ 	 c.ptr = (PTR) new_STRING0(len) ;
+diff -urNad 05.mawk.tmp/kw.c 05.mawk/kw.c
+--- 05.mawk.tmp/kw.c	1993-07-17 14:22:59.000000000 +0100
++++ 05.mawk/kw.c	2003-04-09 22:26:26.000000000 +0100
+@@ -41,29 +41,29 @@
+ keywords[] =
+ {
+ 
+-   "print", PRINT,
+-   "printf", PRINTF,
+-   "do", DO,
+-   "while", WHILE,
+-   "for", FOR,
+-   "break", BREAK,
+-   "continue", CONTINUE,
+-   "if", IF,
+-   "else", ELSE,
+-   "in", IN,
+-   "delete", DELETE,
+-   "split", SPLIT,
+-   "match", MATCH_FUNC,
+-   "BEGIN", BEGIN,
+-   "END", END,
+-   "exit", EXIT,
+-   "next", NEXT,
+-   "return", RETURN,
+-   "getline", GETLINE,
+-   "sub", SUB,
+-   "gsub", GSUB,
+-   "function", FUNCTION,
+-   (char *) 0, 0
++   {"print", PRINT},
++   {"printf", PRINTF},
++   {"do", DO},
++   {"while", WHILE},
++   {"for", FOR},
++   {"break", BREAK},
++   {"continue", CONTINUE},
++   {"if", IF},
++   {"else", ELSE},
++   {"in", IN},
++   {"delete", DELETE},
++   {"split", SPLIT},
++   {"match", MATCH_FUNC},
++   {"BEGIN", BEGIN},
++   {"END", END},
++   {"exit", EXIT},
++   {"next", NEXT},
++   {"return", RETURN},
++   {"getline", GETLINE},
++   {"sub", SUB},
++   {"gsub", GSUB},
++   {"function", FUNCTION},
++   {(char *) 0, 0}
+ } ;
+ 
+ /* put keywords in the symbol table */
+diff -urNad 05.mawk.tmp/mawk.h 05.mawk/mawk.h
+--- 05.mawk.tmp/mawk.h	2003-04-09 22:27:02.000000000 +0100
++++ 05.mawk/mawk.h	2003-04-09 22:26:26.000000000 +0100
+@@ -146,7 +146,7 @@
+ void  PROTO( overflow, (char *, unsigned) ) ;
+ void  PROTO( rt_overflow, (char *, unsigned) ) ;
+ void  PROTO( rt_error, ( char *, ...) ) ;
+-void  PROTO( mawk_exit, (int) ) ;
++void  PROTO( mawk_exit, (int) ) __attribute__ ((noreturn)) ;
+ void PROTO( da, (INST *, FILE *)) ;
+ char *PROTO( str_str, (char*, char*, unsigned) ) ;
+ char *PROTO( rm_escape, (char *) ) ;
+@@ -160,7 +160,7 @@
+ void PROTO( yyerror, (char *) ) ;
+ void PROTO( scan_cleanup, (void)) ;
+ 
+-void PROTO( bozo, (char *) ) ;
++void PROTO( bozo, (char *) ) __attribute__ ((noreturn));
+ void PROTO( errmsg , (int, char*, ...) ) ;
+ void PROTO( compile_error, ( char *, ...) ) ;
+ 
+diff -urNad 05.mawk.tmp/re_cmpl.c 05.mawk/re_cmpl.c
+--- 05.mawk.tmp/re_cmpl.c	1994-12-13 00:14:58.000000000 +0000
++++ 05.mawk/re_cmpl.c	2003-04-09 22:26:26.000000000 +0100
+@@ -138,6 +138,8 @@
+       if (p->re == m)  return p->sval->str ;
+ #ifdef	DEBUG
+    bozo("non compiled machine") ;
++#else
++   return NULL;
+ #endif
+ }
+ 
+@@ -240,7 +242,7 @@
+       p = (STRING **) cp->ptr ;
+       for (cnt = cp->vcnt; cnt; cnt--)
+       {
+-	 if (*p)  free_STRING(*p) ;
++	 if (*p) { free_STRING(*p) ; }
+ 	 p++ ;
+       }
+       zfree(cp->ptr, cp->vcnt * sizeof(STRING *)) ;
+@@ -365,6 +367,8 @@
+ 
+ #if  DEBUG
+    bozo("unable to uncompile an repl") ;
++#else
++   return NULL;
+ #endif
+ }
+ 
+diff -urNad 05.mawk.tmp/rexp/rexp.c 05.mawk/rexp/rexp.c
+--- 05.mawk.tmp/rexp/rexp.c	1996-09-02 19:47:36.000000000 +0100
++++ 05.mawk/rexp/rexp.c	2003-04-09 22:26:26.000000000 +0100
+@@ -65,14 +65,14 @@
+ static  short  table[8][8]  =  {
+ 
+ /*        0   |   CAT   *   +   ?   (   )   */
+-/* 0 */   0,  L,  L,    L,  L,  L,  L,  E1,
+-/* | */   G,  G,  L,    L,  L,  L,  L,  G,
+-/* CAT*/  G,  G,  G,    L,  L,  L,  L,  G,
+-/* * */   G,  G,  G,    G,  G,  G, E7,  G,
+-/* + */   G,  G,  G,    G,  G,  G, E7,  G,
+-/* ? */   G,  G,  G,    G,  G,  G, E7,  G,
+-/* ( */   E2, L,  L,    L,  L,  L,  L,  EQ,
+-/* ) */   G , G,  G,    G,  G,  G,  E7,  G     }   ;
++/* 0 */   {0,  L,  L,    L,  L,  L,  L,  E1},
++/* | */   {G,  G,  L,    L,  L,  L,  L,  G},
++/* CAT*/  {G,  G,  G,    L,  L,  L,  L,  G},
++/* * */   {G,  G,  G,    G,  G,  G, E7,  G},
++/* + */   {G,  G,  G,    G,  G,  G, E7,  G},
++/* ? */   {G,  G,  G,    G,  G,  G, E7,  G},
++/* ( */   {E2, L,  L,    L,  L,  L,  L,  EQ},
++/* ) */   {G , G,  G,    G,  G,  G,  E7,  G}     }   ;
+ 
+ 
+ #define	 STACKSZ   64
+diff -urNad 05.mawk.tmp/rexp/rexp.h 05.mawk/rexp/rexp.h
+--- 05.mawk.tmp/rexp/rexp.h	1993-07-23 14:21:35.000000000 +0100
++++ 05.mawk/rexp/rexp.h	2003-04-09 22:26:26.000000000 +0100
+@@ -152,7 +152,7 @@
+ void      PROTO( RE_close, (MACHINE *) ) ;
+ void      PROTO( RE_poscl, (MACHINE *) ) ;
+ void      PROTO( RE_01, (MACHINE *) ) ;
+-void      PROTO( RE_panic, (char *) ) ;
++void      PROTO( RE_panic, (char *) ) __attribute__((noreturn)) ;
+ char     *PROTO( str_str, (char *, char *, unsigned) ) ;
+ 
+ void      PROTO( RE_lex_init , (char *) ) ;
+diff -urNad 05.mawk.tmp/rexp/rexp0.c 05.mawk/rexp/rexp0.c
+--- 05.mawk.tmp/rexp/rexp0.c	1996-11-08 15:39:27.000000000 +0000
++++ 05.mawk/rexp/rexp0.c	2003-04-09 22:26:26.000000000 +0100
+@@ -113,7 +113,6 @@
+ {
+    register int c ;
+ 
+-reswitch:
+    switch (c = char2token(*lp))
+    {
+       case T_PLUS:
+@@ -165,7 +164,7 @@
+ 	 {
+ 	    case T_ANY:
+ 	       {
+-		  static plus_is_star_flag = 0 ;
++		  static int plus_is_star_flag = 0 ;
+ 
+ 		  if (*++lp == '*')
+ 		  {
+@@ -560,14 +559,14 @@
+ }
+ escape_test[ET_END + 1] =
+ {
+-   'n', '\n',
+-   't', '\t',
+-   'f', '\f',
+-   'b', '\b',
+-   'r', '\r',
+-   'a', '\07',
+-   'v', '\013',
+-   0, 0
++   {'n', '\n'},
++   {'t', '\t'},
++   {'f', '\f'},
++   {'b', '\b'},
++   {'r', '\r'},
++   {'a', '\07'},
++   {'v', '\013'},
++   {0, 0}
+ } ;
+ 
+ 
+diff -urNad 05.mawk.tmp/rexp/rexp3.c 05.mawk/rexp/rexp3.c
+--- 05.mawk.tmp/rexp/rexp3.c	1993-07-24 18:55:15.000000000 +0100
++++ 05.mawk/rexp/rexp3.c	2003-04-09 22:26:26.000000000 +0100
+@@ -89,7 +89,7 @@
+    /* check for the easy case */
+    if ((m + 1)->type == M_ACCEPT && m->type == M_STR)
+    {
+-      if (ts = str_str(s, m->data.str, m->len))	 *lenp = m->len ;
++      if ((ts = str_str(s, m->data.str, m->len)))	 *lenp = m->len ;
+       return ts ;
+    }
+ 
+@@ -315,7 +315,7 @@
+ 
+       case M_ACCEPT + U_OFF:
+ 	 if (!ss)  ss = s ;
+-	 if (!cb_ss || ss < cb_ss || ss == cb_ss && s > cb_e)
++	 if (!cb_ss || ss < cb_ss || (ss == cb_ss && s > cb_e))
+ 	 {
+ 	    /* we have a new current best */
+ 	    cb_ss = ss ; cb_e = s ;
+@@ -326,7 +326,7 @@
+ 	 if (!ss)  ss = s ;
+ 	 else  s = str_end ? str_end : (str_end = s + strlen(s)) ;
+ 
+-	 if (!cb_ss || ss < cb_ss || ss == cb_ss && s > cb_e)
++	 if (!cb_ss || ss < cb_ss || (ss == cb_ss && s > cb_e))
+ 	 {
+ 	    /* we have a new current best */
+ 	    cb_ss = ss ; cb_e = s ;
+diff -urNad 05.mawk.tmp/scan.c 05.mawk/scan.c
+--- 05.mawk.tmp/scan.c	1996-07-28 22:47:05.000000000 +0100
++++ 05.mawk/scan.c	2003-04-09 22:26:26.000000000 +0100
+@@ -420,7 +420,7 @@
+ 	    {
+ 	       if (*p == current_token)
+ 	       {
+-		  if (*p != INC_or_DEC)	 test1_ret('=', DIV_ASG, DIV) ;
++		  if (*p != INC_or_DEC)	{ test1_ret('=', DIV_ASG, DIV) ; }
+ 
+ 		  if (next() == '=')
+ 		  {
+@@ -852,7 +852,7 @@
+ #define	 hex_value(x)	hex_val[(x)-'A']
+ 
+ #define ishex(x) (scan_code[x] == SC_DIGIT ||\
+-		  'A' <= (x) && (x) <= 'f' && hex_value(x))
++		  ('A' <= (x) && (x) <= 'f' && hex_value(x)))
+ 
+ static int PROTO(octal, (char **)) ;
+ static int PROTO(hex, (char **)) ;
+@@ -909,16 +909,16 @@
+ }
+ escape_test[ET_END + 1] =
+ {
+-   'n', '\n',
+-   't', '\t',
+-   'f', '\f',
+-   'b', '\b',
+-   'r', '\r',
+-   'a', '\07',
+-   'v', '\013',
+-   '\\', '\\',
+-   '\"', '\"',
+-   0, 0
++  {'n', '\n'},
++  {'t', '\t'},
++  {'f', '\f'},
++  {'b', '\b'},
++  {'r', '\r'},
++  {'a', '\07'},
++  {'v', '\013'},
++  {'\\', '\\'},
++  {'\"', '\"'},
++  {0, 0}
+ } ;
+ 
+ 
+diff -urNad 05.mawk.tmp/split.c 05.mawk/split.c
+--- 05.mawk.tmp/split.c	1996-02-01 05:05:43.000000000 +0000
++++ 05.mawk/split.c	2003-04-09 22:26:26.000000000 +0100
+@@ -164,7 +164,7 @@
+    register char *s ;
+ PTR re ; unsigned *lenp ;
+ {
+-   while (s = REmatch(s, re, lenp))
++   while ((s = REmatch(s, re, lenp)))
+       if (*lenp)  return s ;
+       else if (*s == 0)	 break ;
+       else  s++ ;
+@@ -225,7 +225,7 @@
+    char *t ;
+    unsigned len, mlen ;
+ 
+-   while (t = re_pos_match(s, re, &mlen))
++   while ((t = re_pos_match(s, re, &mlen)))
+    {
+       tail = tail->link = ZMALLOC(SPLIT_OV) ;
+       tail->sval = new_STRING0(len = t - s) ;
+diff -urNad 05.mawk.tmp/version.c 05.mawk/version.c
+--- 05.mawk.tmp/version.c	1996-07-28 22:47:07.000000000 +0100
++++ 05.mawk/version.c	2003-04-09 22:26:26.000000000 +0100
+@@ -46,6 +46,9 @@
+ #define DOS_STRING	""
+ #endif
+ 
++int print_compiler_id();
++int print_aux_limits();
++
+ static char fmt[] = "%-14s%10lu\n" ;
+ 
+ /* print VERSION and exit */
+diff -urNad 05.mawk.tmp/zmalloc.c 05.mawk/zmalloc.c
+--- 05.mawk.tmp/zmalloc.c	1995-06-06 01:18:35.000000000 +0100
++++ 05.mawk/zmalloc.c	2003-04-09 22:26:26.000000000 +0100
+@@ -115,7 +115,7 @@
+       return (PTR) p ;
+    }
+ 
+-   if (p = pool[blocks - 1])
++   if ((p = pool[blocks - 1]))
+    {
+       pool[blocks - 1] = p->link ;
+       return (PTR) p ;
--- mawk-1.3.3.orig/debian/patches/01_error-on-full-fs
+++ mawk-1.3.3/debian/patches/01_error-on-full-fs
@@ -0,0 +1,191 @@
+Author: Torsten Landschoff <torsten@debian.org>
+Description: Report errors when writing to a full filesystem, even if we
+ are only notified about them when closing the file.
+
+diff -urNad 01.mawk.tmp/files.c 01.mawk/files.c
+--- 01.mawk.tmp/files.c	1996-01-14 17:14:10.000000000 +0000
++++ 01.mawk/files.c	2003-04-09 22:05:20.000000000 +0100
+@@ -61,17 +61,11 @@
+ #include "memory.h"
+ #include "fin.h"
+ 
+-static FILE *PROTO(tfopen, (char *, char *)) ;
+-static void PROTO(efflush, (FILE*)) ;
+-static void PROTO(add_to_child_list, (int, int)) ;
+-static struct child *PROTO(remove_from_child_list, (int)) ;
+-extern int PROTO(isatty, (int)) ;
+ 
+ #ifdef	V7
+ #include  <sgtty.h>		/* defines FIOCLEX */
+ #endif
+ 
+-
+ #ifndef	 NO_FCNTL_H
+ 
+ #include <fcntl.h>
+@@ -103,6 +97,14 @@
+ 
+ static FILE_NODE *file_list ;
+ 
++/* Prototypes for local functions */
++
++static FILE *PROTO(tfopen, (char *, char *)) ;
++static void PROTO(efflush, (FILE*)) ;
++static void PROTO(add_to_child_list, (int, int)) ;
++static struct child *PROTO(remove_from_child_list, (int)) ;
++extern int PROTO(isatty, (int)) ;
++static void PROTO(close_error, (FILE_NODE *p));
+ 
+ /* find a file on file_list */
+ PTR
+@@ -233,16 +235,28 @@
+       if (strcmp(name, p->name->str) == 0)
+       {
+ 	 /* found */
+-	 switch (p->type)
++
++         /* Remove it from the list first because we might be called 
++            again if an error occurs leading to an infinite loop. 
++
++            Note that we don't have to consider the list corruption 
++            caused by a recursive call because it will never return. */
++
++	 q->link = p->link ;
++         file_list = dummy.link ;   /* maybe it was the first file */
++         
++         switch (p->type)
+ 	 {
+ 	    case F_TRUNC:
+ 	    case F_APPEND:
+-	       fclose((FILE *) p->ptr) ;
++	       if( fclose((FILE *) p->ptr) != 0 )
++		  close_error(p) ;
+ 	       retval = 0 ;
+ 	       break ;
+ 
+ 	    case PIPE_OUT:
+-	       fclose((FILE *) p->ptr) ;
++	       if( fclose((FILE *) p->ptr) != 0 )
++	       	  close_error(p) ;
+ 
+ #if  HAVE_REAL_PIPES
+ 	       retval = wait_for(p->pid) ;
+@@ -274,8 +288,8 @@
+ 	 }
+ 
+ 	 free_STRING(p->name) ;
+-	 hold = p ;
+-	 q->link = p = p->link ;
++         hold = p ;
++	 p = p->link ;
+ 	 ZFREE(hold) ;
+       }
+       else
+@@ -284,7 +298,6 @@
+       }
+    }
+ 
+-   file_list = dummy.link ;
+    return retval ;
+ }
+ 
+@@ -364,7 +377,14 @@
+    {
+       if (IS_OUTPUT(p->type))
+       {
+-	 fclose((FILE *) p->ptr) ;   
++	 if( fclose((FILE *) p->ptr) != 0 )
++         {
++            /* if another error occurs we do not want to be called 
++               for the same file again */
++
++            file_list = p->link ;
++	    close_error(p) ;
++         }
+ 	 if (p->type == PIPE_OUT) wait_for(p->pid) ; 
+       }
+ 
+@@ -397,7 +417,8 @@
+    {
+       if (p->type == PIPE_OUT)
+       {
+-	 fclose(p->ptr) ;
++	 if( fclose(p->ptr) != 0 )
++	    close_error(p) ;
+ 	 close_fake_outpipe(p->name->str, p->pid) ;
+       }
+       p = p->link ;
+@@ -563,18 +584,24 @@
+ set_stderr()   /* and stdout */
+ {
+    FILE_NODE *p, *q ; 
++
++   /* We insert stderr first to get it at the end of the list. This is 
++      needed because we want to output errors encountered on closing 
++      stdout. */
+    
+-   p = ZMALLOC(FILE_NODE) ;
+-   p->link = (FILE_NODE*) 0 ;
+-   p->type = F_TRUNC ;
+-   p->name = new_STRING("/dev/stdout") ;
+-   p->ptr = (PTR) stdout ;
+    q = ZMALLOC(FILE_NODE);
+-   q->link = p ;
++   q->link = (FILE_NODE*) 0 ;
+    q->type = F_TRUNC ;
+    q->name = new_STRING("/dev/stderr") ;
+    q->ptr = (PTR) stderr ;
+-   file_list = q ;
++
++   p = ZMALLOC(FILE_NODE) ;
++   p->link = q;
++   p->type = F_TRUNC ;
++   p->name = new_STRING("/dev/stdout") ;
++   p->ptr = (PTR) stdout ;
++
++   file_list = p ;
+ }
+ 
+ /* fopen() but no buffering to ttys */
+@@ -619,3 +646,13 @@
+    }
+ }
+ #endif /* MSDOS */
++
++/* An error occured closing the file referred to by P. We tell the 
++   user and terminate the program. */
++
++static void close_error(p)
++   FILE_NODE *p ;
++{
++   errmsg(errno, "close failed on file %s", p->name->str) ;
++   mawk_exit(2) ;
++}
+diff -urNad 01.mawk.tmp/test/full-awk.dat 01.mawk/test/full-awk.dat
+--- 01.mawk.tmp/test/full-awk.dat	1970-01-01 01:00:00.000000000 +0100
++++ 01.mawk/test/full-awk.dat	2003-04-09 22:05:20.000000000 +0100
+@@ -0,0 +1,3 @@
++This has to be a small file to check if mawk handles write errors correctly 
++even on a full disk. It has to be smaller than the write buffer of the 
++C library.
+diff -urNad 01.mawk.tmp/test/mawktest 01.mawk/test/mawktest
+--- 01.mawk.tmp/test/mawktest	1993-07-03 19:58:38.000000000 +0100
++++ 01.mawk/test/mawktest	2003-04-09 22:05:20.000000000 +0100
+@@ -39,6 +39,17 @@
+ #######################################
+ 
+ echo
++echo testing checking for write errors
++# Check for write errors noticed when closing the file
++mawk '{print}' <full-awk.dat >/dev/full 2>/dev/null && exit
++# Check for write errors noticed on writing
++# The file has to be bigger than the buffer size of the libc
++mawk '{print}' <../scan.c >/dev/full 2>/dev/null && exit
++
++echo checking for write errors OK
++#######################################
++
++echo
+ echo testing arrays and flow of control
+ 
+ mawk -f wfrq0.awk $dat | cmp -s - wfrq-awk.out || exit